LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   php not working Fedora 2 (blank screen) (https://www.linuxquestions.org/questions/programming-9/php-not-working-fedora-2-blank-screen-223174/)

jomama 08-27-2004 01:45 PM

php not working Fedora 2 (blank screen)
 
I trying to learn how to use php. I am trying to display the simple command

<?
php_info();
?>

I saved it as info.php in /var/www/html/
When I open it in Mozilla all I get is a blank screen. I look at the source and all I have is
<HTML><BODY><</BODY></HTML>


I have tried to write other file and Mozilla asks if I want to save the file. In that code I was trying to open and change a text file.


Anyone have any ideas?

david_ross 08-27-2004 02:03 PM

It should all be one word:

<?
phpinfo();
?>

jomama 08-27-2004 02:33 PM

That worked.

I think that the book I am reading is the problem and not the computer. I will try an new book. Thanks for your help.


All times are GMT -5. The time now is 03:32 AM.