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.
how to display php file in explorer?
Moderator: General Moderators
-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
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)?
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)?