WHY IS THIS HAPPENING ?
type 2 here and see
http://erepindia.x10hosting.com/platoon/platoon.php
WHY IS THIS HAPPENING ?
type 2 here and see
http://erepindia.x10hosting.com/platoon/platoon.php
Well, when I ran it, it took about half a minute, I got the same page, but telling me that "Line 34 of platoon.php, file_get_contents(): Stream failed".
And seeing that it is trying to reference another website (http://api.erepublik.com/v1/feeds/citizens/2), thats the problem.
x10hosting doesn't allow you to get file contents from other sites, unless your using an "href/rel/src" element in an HTML tag.
If you check correctly, the page you want to add doesn't exist: http://api.erepublik.com/v1/feeds/citizens/1
Try finding the page that works, that might resolve the problem.
Last edited by xav0989; 09-22-2009 at 10:01 PM.
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
Last edited by hsr_sr; 09-22-2009 at 10:08 PM. Reason: Automerged Doublepost
█ Xavier L | Community Public Relations Manager (Free Hosting Support)
█ Yes, my position is too cool to even exist!
█ How am I helping? Rate this post by clicking theicon below! (this is even better than "liking" a post)
█ Terms of Service | Acceptable Use Policy | x10Hosting Wiki
is there any alternative for that piece of code??
Wrong. Wrong. Wrong.
This page
uses this script:
I am on Chopin.PHP Code:
<?php
$stuff = file_get_contents( 'http://api.erepublik.com/v1/feeds/citizens/2' ) ;
echo " $stuff " ;
?>
Nothing is always absolutely so.
what is shown is the above post is true it works for my friend on chopin and not on me on starka
Edit:
should i send a support ticket?
Last edited by hsr_sr; 09-22-2009 at 10:30 PM. Reason: Automerged Doublepost
Well, some admin should look into this. If the free servers are configured differently from each other, how can people know what is what?
Nothing is always absolutely so.
it was working b4 the downtime
now what should i do most of my scripts are based on this and my site iss based on these scripts