PHP script stopped running on x10hosting

brucebb47

New Member
Messages
4
Reaction score
0
Points
0
I hope I have posted to the correct area.

I have a small PHP script that runs as part of a web page here http://caching.x10.mx/Untitled-1.html

The script identifies your IP address country and should then display an image with a country dependant message. The script used to run fine but now fails to display the image. As the script has remained unchanged I am wondering if anyone knows if there is a server issue that may be preventing my page displaying correctly.
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
No sample code, no error message... You're not giving us much to go on.

When looking at the output of http://caching.x10.mx/country.php (which I assume is the script you're referring to), I see a couple of issues. One is it includes PHP code in the output, code that uses short tags. Don't use short tags. Include the full <?php opening tag. Another is the Content-type is text/html, rather than an image type. Fix those issues and see where you're at. If you still need help, make sure you follow the instructions in my sig.
 
Last edited:
Top