php problem
I suspect this has either to do with permissions, browser, or php config so I'll post this question here.
For some reason my browser doesn't display embedded php scripts. I didn't notice this cause every site i've ever gone to works fine, plus i can run php scripts through my browser etc... but when i try something as simple as: <html> <body> <?php echo "Why won't this text display?" ?> </body> </html> Can someone suggest some things i should check? |
This is not a question of browsers. The php script has to be executed by a php parser on the server. The server then sends sort of html to your browser. When you run a server and want to run php - you have to install that accordingly.
Take a look at php.net => documentation cheers. j. |
The code above may not display because there is a semi colon missing at the end of your echo statement. If PHP is configured to display errors you would have seen this. Most configurations disable showing of errors so you just get a blank page.
|
All times are GMT -5. The time now is 07:55 PM. |