my .PHP file doesnt seem to work -
i have rather simple .php file following code:
<!doctype html> <html> <head> </head> <body> <p>hello world</p> <?php echo "test"; ?> </body> </html>
yet when run see "hello world", checked firebug , showed me
and in chrome comments php out
am missing important here?
php pre-processed, interpreted language means web server (like apache) php interpreter installed must serve you. must install webserver on local machine , access via url http://localhost
. php cannot viewed same way locally-served html files (like happens when double click them) through file://
prototcol.
but never fear, not hard webserver installed. try xampp, install apache, php, , mysql , give nifty little control panel.
Comments
Post a Comment