I am new to web stuff, and am running 10.5.4. I am trying to find if it is possible to test php offline, because where I volunteer in the day has no wi-fi, but I try to work on some php im learning.
I have php installed, obviously, as well as apache. I have uncommented the lines in httpd.conf file, and I have enabled websharing in system prefs.
I created a simple test.php file that calls phpinfo(), and it works I know because I ran it from terminal. But when I put the file into /library/websharing/documents and point localhost to it, all it does is display the code, not the info. Isn't it supposed to interpret the php that way? If not, is there anyway to do that?
Thank you for help!
I have php installed, obviously, as well as apache. I have uncommented the lines in httpd.conf file, and I have enabled websharing in system prefs.
I created a simple test.php file that calls phpinfo(), and it works I know because I ran it from terminal. But when I put the file into /library/websharing/documents and point localhost to it, all it does is display the code, not the info. Isn't it supposed to interpret the php that way? If not, is there anyway to do that?
Thank you for help!