LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   php problem (https://www.linuxquestions.org/questions/linux-software-2/php-problem-472799/)

Geminias 08-10-2006 09:28 PM

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?

j-ray 08-11-2006 01:13 AM

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.

reddazz 08-11-2006 03:01 AM

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.