We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
PHP, someone please HELP!; Need some starting help
Topic Started: Aug 18 2005, 12:25 PM (741 Views)
Peachy
Member Avatar
:P
[ *  *  *  *  * ]
So I got the SAMS Teach Yourself PHP book out from my library and I was wondering if someone could help me get started? I need to know what version I should be installing from their site http://www.php.net/downloads.php#v5.1 . If it makes any difference I'm using Windows XP. :$
Offline Profile Quote Post Goto Top
 
JoeC
Euch! IE tastes horrible!
[ *  *  *  *  * ]
As far as I can tell, it's not possible to install PHP on your local machine and enable your browser to process the PHP locally, as you would do with a HTML document.

I'd recommend getting something like SmartFTP and a good host which you can keep re-uploading your file to - takes time, but I've not found an easier way yet.
Offline Profile Quote Post Goto Top
 
Rory
Member Avatar
i;m a mess
[ *  *  *  *  *  *  * ]
Boink, not true. Whilst it isn;t as easy as viewing HTML scripts locally, it is still very possible.

Basically, you need to install a webserver like Apache (i use 1.3.33), and then install PHP. I personally use php4 not php5, but it depends. php5 offers better object-orientated programming, but is different enough from php4 to cause problems with some scripts.

When you install both apache and php, you have to follow the instructions (within the php installation i believe) to get php running with apache.

Then just place all your scripts in the htdocs folder, and goto http://localhost/scriptname.php
Offline Profile Quote Post Goto Top
 
Peachy
Member Avatar
:P
[ *  *  *  *  * ]
Cheers Rory for moving this (forgot about this section), and ta for your help, I'll see how I get on
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
PM me if you like and I'll give you my MSN address or something if you'd like help :)
Offline Profile Quote Post Goto Top
 
solinent
Member Avatar
Member
[ *  *  * ]
Does apache work on WIN XP? I thought it was only the other stuff. I use iIS anyways so whatever :S

(IIS doesn't work on WIN XP Home)
Offline Profile Quote Post Goto Top
 
Ben
Member Avatar
Quantum-locked when observed.

solinent
August 19, 2005 11:54 AM
Does apache work on WIN XP? I thought it was only the other stuff. I use iIS anyways so whatever :S

(IIS doesn't work on WIN XP Home)

Apache most definitely works on Windows XP; I've installed it once on Windows XP Home Edition before along with PHP and MySQL. Once you get passed the fact that you might get an "error" if you do anything to the config files, it's really quite easy. :D

I'll agree that installing PHP 4.4.0 is preferable to PHP 5, simply because PHP 4 has a larger base still. While you're at it, you might want to look into installing MySQL simply because once you get more comfortable with PHP, you'll start learning how to use it with databases.
Offline Profile Quote Post Goto Top
 
JoeC
Euch! IE tastes horrible!
[ *  *  *  *  * ]
I started learning PHP -for- the use of it with databases :P But I never knew you could install either SQL, PHP or Apache on PCs :P
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
:ermm: what do you think servers are? Magic Boxen?
Offline Profile Quote Post Goto Top
 
JoeC
Euch! IE tastes horrible!
[ *  *  *  *  * ]
Any reason why they wouldn't be? I never really thought about it too much, TBH, other that "it doesn't seem easy to do it. :/"
Offline Profile Quote Post Goto Top
 
Seth
Member Avatar
I has a pony
[ *  *  *  *  *  *  *  *  * ]
It's easier on Linux, but even on 'doze I can have it set up with 30 minutes.
Offline Profile Quote Post Goto Top
 
solinent
Member Avatar
Member
[ *  *  * ]
30 minutes!!!!

With IIS I can set up mySQL and PHP within 3 minutes! Just install IIS and set the app mapping, and then install mySQL.

It's pretty simple:) OF course it's preffereable if you're gonna use it on a web server to do Apache, but locally IIS works fine (of course only on Windows, and not on Windows XP home though)
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply