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 any additional details upon request, and I thank you for your time in regards to this question. Best, Nic
UPDATE:
Alright, so I've figured it out! The magic of research. I can access "localhost/phpinfo.php" in my web browser. However, phpinfo.php is just a blank white page. This isn't how the page is supposed to appear is it?
UPDATE 2: After further reading, and file editing, I realized that I had not added a ";" to the code for phpinfo.php. What a simple mistake that could cause a lot of frustration. Unfortunately, that did not fix the problem. (1) I know my path is an actual URL starting with http:// (2) I know I have PHP enabled on the server. (3) I am not exactly sure what is meant in the book by "using the proper extension"
I have a test.php file that I can open with my localhost. All the code is, is as follows:
<?php
phpinfo();
?>
So that file is working properly. (I believe I made it a while back when I first started getting into PHP, but didn't pursue it and soon gave up.) Why would the older test.php file work and not the phpinfo.php?