Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-29-2010, 10:50 PM   #1
Registered: Apr 2009
Location: El Salvador
Distribution: Slackware -current
Posts: 166

Rep: Reputation: 17
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:
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.

Last edited by michaelinux; 12-29-2010 at 11:03 PM.
Old 12-29-2010, 11:21 PM   #2
Slackware Contributor
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
Nice to see you worked it out.

Thanks for posting the solution.


php, programing

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Event Announcment: PHP | OSI Days 2010 - Asia's Largest PHP Conference" anandan1982 Linux - News 0 06-08-2010 10:24 PM
"where php code is to be written in linux "? amritpalpathak Linux - Software 6 03-16-2010 11:22 PM
PHP code for "Post comments" for your website? frenchn00b Programming 3 04-17-2009 09:39 AM
Incorrect PHP code is working, shoud I "fix" it? rblampain Programming 6 04-28-2006 11:33 PM
"$_SESSION is showing some error in PHP" manikantha Programming 7 09-23-2004 12:08 AM

All times are GMT -5. The time now is 03:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration