Search code examples
phpactionscript-2loadvars

000webhost, PHP, and LoadVars AS2


I am using AS2 to download and upload data from an HTTP server using some PHP on the other end. The upload works great, but I ran into a little issue with the download, since the webhost that I am using appends a little HTML comment to the end of every file. My PHP works great, but this little HTML comment destroys the whole LoadVars variable string. For example:

&coins=211108&xp=751029&credits=5&blah=p
<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img    src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
 <!-- End Of Analytics Code -->

I was wondering if anyone could think of a workaround since I personally have been trying to brainstorm and search for one for a while and couldn't. If worst comes to worst, I guess I can always either get a new webhost or host it myself.


Solution

  • You can disable analytics for 000webhost, read here:

    http://www.000webhost.com/forum/announcements/2160-disabling-analytics-code.html