LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-27-2004, 01:45 PM   #1
jomama
LQ Newbie
 
Registered: Oct 2003
Location: Denver
Posts: 5

Rep: Reputation: 0
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?
 
Old 08-27-2004, 02:03 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It should all be one word:

<?
phpinfo();
?>
 
Old 08-27-2004, 02:33 PM   #3
jomama
LQ Newbie
 
Registered: Oct 2003
Location: Denver
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Boot CD is not working. I got a blank screen after prompt. BEYAZITTOSUN Linux - Laptop and Netbook 2 02-18-2005 03:37 AM
php 5.0 blank pages (fedora) spacy2003 Linux - Software 2 02-06-2005 01:34 PM
php not working Fedora 2 (blank screen) jomama Linux - Software 1 08-27-2004 10:42 AM
horde screen blank, test.php says gettext = no posixjunkie Linux - Software 1 06-21-2004 09:49 PM
PHP & MySQL, working, and yet getting a blank results page linxtc Programming 5 08-24-2003 04:51 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration