LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   problems with PHP, showing code trying to "run" a php file? (https://www.linuxquestions.org/questions/slackware-14/problems-with-php-showing-code-trying-to-run-a-php-file-853157/)

michaelinux 12-29-2010 09:50 PM

problems with PHP, showing code trying to "run" a php file?
 
i've been trying to learn php but i can't find a way to get started, i have mysql,php...etc i have the daemons running and if i go to http://localhost it says IT WORKS!! but if i try to "run" a php file like..
http://localhost/test.php all i get is the source code showing in my browser..lets say i want to output a simple message:
<?php
echo "Hello world";
?>
well.. that's what i get in my browser i don't see the message but the code itself.
what is the problem??
please help.

Well i really hate when this happen but.. already found the solution, i had to uncomment Include /etc/httpd/mod_php.conf at the end of htppd.conf(yeah i know stupid me blah blah..xD) anyway.. sorry.

mRgOBLIN 12-29-2010 10:21 PM

Nice to see you worked it out.

Thanks for posting the solution.


All times are GMT -5. The time now is 12:03 AM.