Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 14th, 2009, 02:57 AM
Registered User
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question How to Run a PHP file?


I need to know how to run a php file and what are pre requisites to run this?

I have installed Apache Tomcat and PHP5.x . I need to run a small php on this server?

What is php.ini, what modification do i need to to do in this php.ini, and where i can put this php.ini? that means what is the folder structure?

I have strong programming knowledge in Java.

Please help me out...

Last edited by majeed; August 14th, 2009 at 03:05 AM..
Old September 26th, 2009, 12:33 AM
Registered User
Join Date: Sep 2009
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
Smile answer in steps.......

Ok majeed, at first install wamp or xammp. I am using wamp which is free available.
1. Let say you installed your wamp in c:\ drive.
2. their you will a folder c:\wamp\www.
3. just paste your all .php and .html files which you want to treat as server side files.
4. This www folder become you server side address from where you will access the data.
4. Now in start your wamp server. you will an icon appear on task bar.
5. Now left click on that icon and select localhost.
6.a. This localhost will directly linked with you www address. From here you can select your file which you want to open.
6.b. Another way is to write "http://localhost/file.*" in your explorer. This will also open your file.

For your convenint i will suggest you to download "php Designer 200*" version. It is php editor.

And abut php.ini. For initial php programs you don't need to set the pages.
Later you need it for cookies and other image file storing location. But for beginning it is enough.

for other problem you can consult me. I am also a beginner. But I will try my best to solve your problem. All the best.
The Following User Says Thank You to anup_prakash36 For This Useful Post:

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW to Run php program dimpleboy PHP How-To 7 January 22nd, 2015 12:40 AM
how to run php code in asp kyleshome Classic ASP Basics 8 February 11th, 2010 05:27 PM
Help with PHP file reading XML file for output rydog65 Beginning PHP 0 March 26th, 2008 05:13 PM
how can i instool and run php on apple os basimshahin MySQL 0 August 24th, 2006 05:36 AM
run several php with separate ini on IIS6 Charles Lupica PHP How-To 0 February 4th, 2005 08:18 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.