Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 08-10-2005, 07:20 PM   #1 (permalink)
Feis
Registered User
 
Join Date: Apr 2005
Posts: 18
Feis is on a distinguished road
setting up PHP

Ok, Im trying to set up PHP on a linux machine so I can learn php. I downloaded xampp(lampp), ran the installation instructins, and I cant start it all just fine. After that, I have no idea how to make the php pages display in the web browser. If I name it .php and open it with firefox, it asks if I want to open it with a text editor. if I name it .html, it doesnt work. The one php file that does work is if I type http://localhost and thats from the xampp installation, and I dont even know where that is. I looked @ the php manual, but I wasnt able to glean an answer from there. Much Thanks
Feis is offline   Reply With Quote
Old 08-11-2005, 01:46 AM   #2 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
You should have enabled php support in apache, in your configuration file (usualy /etc/apache/conf/httpd.conf) in there you should have lines like:
Code:
...
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
..
<IfModule mod_mime.c>
...
    AddType application/x-httpd-php .php .php3 .phtml
    AddType application/x-httpd-php-source .phps
...
</IfModule>
And make sure your php files starts with <? or <?php and ends with ?> to verify what the php-engine should enterprit.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 08-11-2005, 05:41 AM   #3 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 598
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
http://localhost is the same as http://localhost/index.html, to make other files be processed, save them in the same folder that the index page is and access them as http://localhost/new_file_name.php or whatever you called them. Try /var/www/htdocs.
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 5.0.4 and 4.3.11 Released sde Code Newbie News 0 04-20-2005 11:56 AM
PHP vs .NET Redline Lounge 1 11-24-2004 07:10 AM
I need to learn PHP Nitro PHP 9 06-28-2003 12:24 PM
Help with setting up mySQL and PHP Ilya020 PHP 11 03-19-2003 06:10 AM


All times are GMT -8. The time now is 06:57 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting