LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   php trouble... (https://www.linuxquestions.org/questions/programming-9/php-trouble-436928/)

computer_tom 04-19-2006 08:43 PM

php trouble...
 
i love html, soo easy, and i want to learn php now. i downloaded the installer ran it. i got some simple code saved it as new.php, than nothing i get a sligtly different FF icon but just a blank page. i also got MYSQL in the hopes it would work then, but no such luck. any ideas??!!!?!?!?!?!?!!! thanks- computer_tom

crewblunts 04-19-2006 10:14 PM

php differs from HTML in that when you try to open a php page you cannot just double click and open it. It must be opened from a browser pointing at it as a URL...ie http://localhost/test.php Just make sure it is in a directory on your webserver and you should be fine.

hth,

Phil

Wim Sturkenboom 04-20-2006 02:17 AM

You also need a webserver (e.g. apache, available for linux, windows and possibly other OSes).
Next you have to tell the webserver to parse php files. For apache, you have to add a few lines to httpd.conf to do this.

I assume above requirements are satisfied as you get a blank page and not a page with source code; I mentioned the above to make sure.

Apache writes errors to a log file. You can find the location of the logfiles in the httpd.conf file. Under linux the logfile is probably /var/log/apache/error.log. Under windows it will probably be in something like C:\Apache Group\Apache2\logs.


All times are GMT -5. The time now is 09:39 PM.