Page 1 of 1

php files load as blank pages

PostPosted: 24. December 2008 09:45
by Jess
Yes! Its another stupid newbie question.

I have Windows XP and uploaded the latest version of xampp. For some reason whenever I try to bring up php files in my browser they come up as blank pages.

There are no error messages and I am pretty sure that the files are in the correct place, htdocs.

Re: php files load as blank pages

PostPosted: 24. December 2008 09:58
by Sharley
Can you get to the XAMPP Welcome page by typing http://localhost in your browser?

Re: php files load as blank pages

PostPosted: 24. December 2008 15:11
by Jess
OK I knew it was a stupid question. I thought I was doing that before but I tried it again and now it works.

Thanks.

Re: php files load as blank pages

PostPosted: 09. January 2009 14:34
by wordman
OK, I am having the same problem, except that my localhost page and all pages from it are showing fine. It was working:

with files in htdocs and in subfolders in htdocs,

but stopped. Even a simple Hello World script won't run.

I got as far as querying MySQL and showing the results, then made a form to add records to same DB, then the next day or so my files stopped working.

THE WEIRD PART is that this happens on both my Windows and Linux boxes!?!

What am I doing wrong?

Yes...still a Padawan.....and Thanks.

Re: php files load as blank pages

PostPosted: 10. January 2009 01:56
by Izzy
wordman wrote:OK, I am having the same problem, except that my localhost page and all pages from it are showing fine. It was working:

with files in htdocs and in subfolders in htdocs,

but stopped. Even a simple Hello World script won't run....
If, as you say, everything worked including the demos in http://localhost then stopped all of a sudden without you doing anything that would make them stop working means you have been visited by a PC Gremlin perhaps. :)

Have you checked the xampp\apache\logs\error.log file for clues?

Check also the php.ini file is the correct one being used.

To find which php.ini file is being used by Apache in XAMPP always go to
http://localhost /xampp/phpinfo.php
(or to the phpinfo() menu item in the Welcome Page (Admin))
and look for the line
Loaded Configuration File
which in a default installation should be in
C:\xampp\apache\bin\php.ini