p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > PHP/MySQL > Beginning PHP
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 14th, 2009, 03:57 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question How to Run a PHP file?

Hi,

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 04:05 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old September 26th, 2009, 01:33 AM
Registered User
Points: 58, Level: 1
Points: 58, Level: 1 Points: 58, Level: 1 Points: 58, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
The Following User Says Thank You to anup_prakash36 For This Useful Post:
vinayjadhav.mca (October 14th, 2009)
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW to Run php program dimpleboy PHP How-To 3 September 20th, 2009 12:12 PM
Help with PHP file reading XML file for output rydog65 Beginning PHP 0 March 26th, 2008 06:13 PM
how can i instool and run php on apple os basimshahin MySQL 0 August 24th, 2006 06:36 AM
how to run php code in asp kyleshome Classic ASP Basics 6 March 1st, 2005 06:33 PM
run several php with separate ini on IIS6 Charles Lupica PHP How-To 0 February 4th, 2005 08:18 AM



All times are GMT -4. The time now is 05:06 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc