Page 1 of 1

how to display php file in explorer?

Posted: Tue Dec 07, 2004 11:35 pm
by wenquxing
I am writing a web page using php, and I can see it displayed in the php compiler, but I can't display it in the explorer(only php "code" displayed,eg.
<?php echo "aaa"?> is displayed not "aaa")
anyone can tell me why??thanks.

Posted: Tue Dec 07, 2004 11:42 pm
by andre_c
php is a interpreted language, which means you need an interpreter program to execute the code (the php parser)

Posted: Tue Dec 07, 2004 11:43 pm
by kettle_drum
Have you configured the web server to parse .php? Check the installation instructions for your server in the PHP manual.

Posted: Wed Dec 08, 2004 12:38 am
by rehfeld
if your talking about double clicking on a file, its always going to just show the code.

like the others said, if you want php to parse and interpret the code, you need to request the file through the webserver. i assume thats what you meant by it working when your run it through the complier(the webserver)?