LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-29-2010, 09:50 PM   #1
michaelinux
Member
 
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:
<?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.

Last edited by michaelinux; 12-29-2010 at 10:03 PM.
 
Old 12-29-2010, 10:21 PM   #2
mRgOBLIN
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.
 
  


Reply

Tags
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 09:24 PM
"where php code is to be written in linux "? amritpalpathak Linux - Software 6 03-16-2010 10:22 PM
PHP code for "Post comments" for your website? frenchn00b Programming 3 04-17-2009 08:39 AM
Incorrect PHP code is working, shoud I "fix" it? rblampain Programming 6 04-28-2006 10:33 PM
"$_SESSION is showing some error in PHP" manikantha Programming 7 09-22-2004 11:08 PM


All times are GMT -5. The time now is 06:57 AM.

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