开发者

000webhost, PHP, and LoadVars AS2

开发者 https://www.devze.com 2023-04-09 01:22 出处:网络
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开发者_Go百科 little issue with the download, since the webhost

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开发者_Go百科 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.


You can disable analytics for 000webhost, read here:

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


You could talk to them and ask them not to add it to such requests.

Or you could make your Actionscript ignore everything after a line break (but AFAIK, you'd have to write your own LoadVars() for that.

Other than that, I think you're out of luck!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号