Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
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 Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old August 30th, 2008, 01:41 PM
Registered User
 
Join Date: Aug 2008
Location: vasco, goa, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default jus learnin

i have just started learning php. i have installed xampp on my pc. after i write a program in notepad where should i save it? and how should i run it to get the output?
could somebody please explain in detail. i have just started learning php, i don't know anything about it

m29
Reply With Quote
  #2 (permalink)  
Old August 30th, 2008, 04:01 PM
Registered User
 
Join Date: Aug 2008
Location: Boise, Idaho, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi m29

I assume an expert will get you squared away soon, but I thought it would be fun to help with a little more understanding than you seem to have now.

I don't know what is xamp, but if you plan to write PHP on your own computer and also test what it does on your own computer, then you need to install PHP in a way that it works together with a web server right there on your computer. Once you have that installed and running properly, then you would save the web pages you write with notepad (or other software) in a folder wherever you want. But you would want to pick a folder which you have told your webserver to serve as your "local" website. Then you just open that page in your web browser just as if that was a website on the internet, only it actually lives on your own machine. You put the PHP code right into your webpage and simply put the address of that page into your web browser. The way it is all set up on my mac, I can access my local PHP driven "website" by either of 2 addresses:
http://192.168.1.100/
(the IP address of this (my) computer)
or
http://mylocaltests/
this latter address works because I told my webserver Apache (Apache comes already installed on new macs nowadays) to open the default page (index.html) whenever I type in "http://mylocaltests/".
The former address works even without any setup. All computers have an IP address (those numbers "192.168.1.100").

Step by step you will understand the needed things and get it running.

Good luck.

-Govinda

Reply With Quote
  #3 (permalink)  
Old September 12th, 2008, 06:13 AM
Authorized User
 
Join Date: Jul 2008
Location: , , India.
Posts: 18
Thanks: 0
Thanked 2 Times in 2 Posts
Default

1. you should save your file at your_drive://xampp/htdocs/
Example: c://xampp/htdocs

2. open a web browser and type http://localhost/your_file_name.php

Reply With Quote
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off




All times are GMT -4. The time now is 10:12 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.