I have started learning about PHP from w3school.com website..
I have installed wamp2.0i server on my computer.I used store all php files in c:/wamp/www/ directory.
While running I do right click on file and open with firefox.But I am not getting output on browser.I can only see the entire code as same as written in notepad file.
Suggest me the way.
How to run .php files?
Page 1 of 14 Replies - 2429 Views - Last Post: 05 February 2011 - 07:56 PM
Replies To: How to run .php files?
#2
Re: How to run .php files?
Posted 03 February 2011 - 06:31 AM
you have to run your files through the server, opening the files like that bypasses the PHP interpretor (since the browser can’t process PHP)
i.e. http://localhost/path/to/file.php
i.e. http://localhost/path/to/file.php
#3
Re: How to run .php files?
Posted 03 February 2011 - 08:41 AM
I've never tried WAMP, but I know in XAMPP, it has a control panel where you can turn on/off different parts. You will need to make sure PHP is checked on.
#4
Re: How to run .php files?
Posted 03 February 2011 - 10:53 AM
First of all dont save your php files directly in wamp/www folder. Make a separate folder for each of your project. Suppose its proj1. Save your php file in wamp/www/proj1.
Now run WAMP - it shows up in your system tray. Open your browser and type http://localhost/. The wamp page will open. Scroll below and you will see your proj1 folder. Click on it and run your php file.
Now run WAMP - it shows up in your system tray. Open your browser and type http://localhost/. The wamp page will open. Scroll below and you will see your proj1 folder. Click on it and run your php file.
This post has been edited by chinchang: 03 February 2011 - 10:55 AM
#5
Re: How to run .php files?
Posted 05 February 2011 - 07:56 PM
** Topic in question is not PHP coding, Moving topic to Web Servers & Hosting **
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote





|