Jump to content
Larry Ullman's Book Forums

nicholasjamesevans

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About nicholasjamesevans

  • Rank
    Newbie
  1. Okay, so the strangest thing was going on. That specific file would not work! The code wasn't the problem, the PHP is running fine as well as Apache2. I deleted phpinfo.php and made a new file with the same exact name, phpinfo.php, and copied the same exact code to it. It worked great. I am happy it works now! But why in the world would that happen?
  2. Yes, so the code is good. The page in my browser loads as a white blank page. There are no error messages, and I am using http://localhostin Firefox. The other php file is test.php and it has this code: <?php phpinfo(); ?> That file works fine! Which is quite odd. If my code is good on the other file, and my server is working with PHP, why am I seeing a blank white page?
  3. Thank you Larry! I have the PHP working now, so the server and PHP is good, but the specific file isn't working. Is there possibly anything wrong with my code? It is as follows: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>First PHP Script</title> </head> <body> <?php phpinf
  4. Hello everyone, My name is Nicholas, but please feel free to call me Nic. I just bought Larry's "PHP for the Web" book and it has been a great intoduction so far. I've gotten to the part in which Larry talks about getting a phpinfo.php file running. Unfortunately, it covers Windows and OS X, but not linux/Ubuntu. I am currently running Ubuntu 14.04.2 LTS 64-bit. I am also using Gnome Shell Version 3.12.2 (if that is at all relevant, it wouldn't hurt to know at least) I have Apache2 installed on my system (2.4.7) and I do not know how to get phpinfo.php running on it. I'd be happy to add an
×
×
  • Create New...