User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 361,558 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,968 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 675 | Replies: 15
Reply
Join Date: May 2008
Posts: 10
Reputation: revathis is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
revathis revathis is offline Offline
Newbie Poster

Run PHP program

  #1  
May 5th, 2008
Hi,

I am new to PHP.

I have installed apache, PHP 5.2 and MySql.

Plz tell me How I run PHP programs??

Thanks & Regards,
Revathi
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2008
Posts: 43
Reputation: Daedal is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 11
Daedal's Avatar
Daedal Daedal is offline Offline
Light Poster

Re: Run PHP program

  #2  
May 6th, 2008
Make sure they are in your http doc root folder, and then load them into your browser.
Example:
http://localhost/first.php
Reply With Quote  
Join Date: May 2008
Posts: 10
Reputation: revathis is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
revathis revathis is offline Offline
Newbie Poster

Re: Run PHP program

  #3  
May 6th, 2008
Ya, it's in C:\Program Files\Apache Group\Apache2\htdocs.

if i run this URL http://localhost/test1.php,

the output was the program wat i typed.
Reply With Quote  
Join Date: May 2008
Posts: 10
Reputation: revathis is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
revathis revathis is offline Offline
Newbie Poster

Re: Run PHP program

  #4  
May 6th, 2008
Ya, it's in C:\Program Files\Apache Group\Apache2\htdocs.if i run this URL http://localhost/test1.php,the output was the program wat i typed.
Reply With Quote  
Join Date: Nov 2007
Location: Bangalore, India
Posts: 2,861
Reputation: nav33n has a spectacular aura about nav33n has a spectacular aura about 
Rep Power: 7
Solved Threads: 205
nav33n's Avatar
nav33n nav33n is offline Offline
Posting Maven

Re: Run PHP program

  #5  
May 6th, 2008
Your apache isn't configured to parse php files. Either try http://www.expertsrt.com/tutorials/M...ll-apache.html OR install Wamp or xxamp ! Wamp/xxamp is a bundled software with pre-configured apache/php and mysql !
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

*PM asking for help will be ignored*
Reply With Quote  
Join Date: Jan 2006
Location: Balkh
Posts: 67
Reputation: jamshid is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
jamshid's Avatar
jamshid jamshid is offline Offline
Junior Poster in Training

Re: Run PHP program

  #6  
May 6th, 2008
I offer Xampp.

http://www.apachefriends.org/en/xampp.html

I am using. No need to configure anything. Just install the program.
Impossible is Nothing
Reply With Quote  
Join Date: May 2008
Posts: 10
Reputation: revathis is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
revathis revathis is offline Offline
Newbie Poster

Re: Run PHP program

  #7  
May 6th, 2008
I have installed Wampserver.
its working now.
Thanks

Originally Posted by nav33n View Post
Your apache isn't configured to parse php files. Either try http://www.expertsrt.com/tutorials/M...ll-apache.html OR install Wamp or xxamp ! Wamp/xxamp is a bundled software with pre-configured apache/php and mysql !
Reply With Quote  
Join Date: May 2008
Posts: 10
Reputation: revathis is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
revathis revathis is offline Offline
Newbie Poster

Re: Run PHP program

  #8  
May 6th, 2008
Thanks Jamshit
Reply With Quote  
Join Date: May 2008
Posts: 10
Reputation: revathis is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
revathis revathis is offline Offline
Newbie Poster

Re: Run PHP program

  #9  
May 6th, 2008
In wampserver, i got the error for database

phpMyAdmin - Error

Cannot load mysqli extension. Please check your PHP configuration. - Documentation.

pls help me.
Reply With Quote  
Join Date: May 2008
Posts: 10
Reputation: revathis is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
revathis revathis is offline Offline
Newbie Poster

Re: Run PHP program

  #10  
May 6th, 2008
In wampserver, i got the error for database

phpMyAdmin - Error

Cannot load mysqli extension. Please check your PHP configuration. - Documentation.

pls help me.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 2:26 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC