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 enter image description here

and in chrome comments php out

enter image description here

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

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -