phpinfo prints own content to page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
awa
Forum Newbie
Posts: 14
Joined: Fri Mar 21, 2008 8:43 am

phpinfo prints own content to page

Post by awa »

Hi

I've give a client a couple of pages using PHP scripts. They uploaded it to their server and can't run it.

I got their FTP details and uploaded a phpinfo so as I could check over things and find I can't actually use it - it opens a plain text HTML page that just displays the code from my phpinfo file.

I've not seen this before - any advice, please? If it helps, they're on Demon (UK), who say they run PHP, but I know no more than that since I can't get to the phpinfo info!

Thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: phpinfo prints own content to page

Post by Christopher »

The web server appears to not be configured to run PHP script. Do the scripts you are trying to run have a '.php' extension? maybe they parse all '.html' files?
(#10850)
awa
Forum Newbie
Posts: 14
Joined: Fri Mar 21, 2008 8:43 am

Re: phpinfo prints own content to page

Post by awa »

Yes, they have a .php extension - and I know they function fine on two of my servers as I used them both while doing my testing.

I've since managed to find a little info about the server but have very limited access to info - I've advised the client to take it up with their service provider since my job was supposed to end with providing the code and that's what I have done.
Post Reply