954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Run PHP program

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

revathis
Newbie Poster
10 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

Make sure they are in your http doc root folder, and then load them into your browser.
Example:
http://localhost/first.php

Daedal
Junior Poster in Training
75 posts since Apr 2008
Reputation Points: 23
Solved Threads: 12
 

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.

revathis
Newbie Poster
10 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

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.

revathis
Newbie Poster
10 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

Your apache isn't configured to parse php files. Either try http://www.expertsrt.com/tutorials/Matt/install-apache.html OR install Wamp or xxamp ! :) Wamp/xxamp is a bundled software with pre-configured apache/php and mysql !

nav33n
Purple hazed!
Moderator
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
 

I offer Xampp.

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

I am using. No need to configure anything. Just install the program.

jamshid
Junior Poster in Training
70 posts since Jan 2006
Reputation Points: 8
Solved Threads: 0
 

I have installed Wampserver.
its working now.
Thanks

Your apache isn't configured to parse php files. Either try http://www.expertsrt.com/tutorials/Matt/install-apache.html OR install Wamp or xxamp ! :) Wamp/xxamp is a bundled software with pre-configured apache/php and mysql !
revathis
Newbie Poster
10 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

Thanks Jamshit

revathis
Newbie Poster
10 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

In wampserver, i got the error for database

phpMyAdmin - Error

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

pls help me.

revathis
Newbie Poster
10 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

In wampserver, i got the error for database

phpMyAdmin - Error

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

pls help me.

revathis
Newbie Poster
10 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

I found this and maybe it might be useful for you. http://www.webmasterworld.com/databases_sql_mysql/3561413.htm Btw, I have never encountered this problem !

nav33n
Purple hazed!
Moderator
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
 

In wapserver, phpmyadmin is working.

Thanks for spending time for me

revathis
Newbie Poster
10 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

Hi,

already, we have uploaded one website using javascript,JSP.

Now i want to change it to PHP.

Is it possible? If possible how to do??

Revathi S

revathis
Newbie Poster
10 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

hi

go to php configuration
and check for ;extension = php_mysqli.dll.
Remove ; and save the php configuration file.
then restart the apache server.

regards
nickyspace

nickyspace
Newbie Poster
13 posts since Apr 2008
Reputation Points: 10
Solved Threads: 0
 

Hi,
Thanks .
I want to change my site in JSP to PHP .
Is it possible????

revathis
Newbie Poster
10 posts since May 2008
Reputation Points: 10
Solved Threads: 0
 

You have to re-write your code. Or, you can search the internet for a software (if there is any) to convert jsp application to php.

nav33n
Purple hazed!
Moderator
4,465 posts since Nov 2007
Reputation Points: 524
Solved Threads: 356
 

go to c: / xampp/htdocs and save ur php files here....

then go to web browser and type http://localhost/urfile.php

prnandaec
Newbie Poster
1 post since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

Hi revathi,

1.U just create a php program in a text editor like notepad.
2.Save ur program in htdocs folder in apache2.2 with the extension '.php'.
3. For example if ur file name is ex.php, then type as "http://localhost/ex.php" in the address bar of your browser and press enter. u will find the output there!

Thanks
:)

lotus2009
Newbie Poster
2 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 
Thanks Jamshit

You are welcome.

jamshid
Junior Poster in Training
70 posts since Jan 2006
Reputation Points: 8
Solved Threads: 0
 

I want to run php basic programe . how can i do it ?

Bhaskar Mandal
Newbie Poster
1 post since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You