PHP on non-servers?

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
Dooey Jo
Sith Devotee
Posts: 3127
Joined: 2002-08-09 01:09pm
Location: The land beyond the forest; Sweden.
Contact:

PHP on non-servers?

Post by Dooey Jo »

Does anyone know if there's any way I can test PHP (or any other server-based) scripts on my local computer, without having to upload the pages to a server? The reasons I want to do this are:
1) Dial-up connection and slow modem
2) Don't have access to the school's server from home anyway
Image
"Nippon ichi, bitches! Boing-boing."
Mai smote the demonic fires of heck...

Faker Ninjas invented ninjitsu
User avatar
Lord MJ
Jedi Council Member
Posts: 1562
Joined: 2002-07-07 07:40pm
Contact:

Post by Lord MJ »

Assuming you're on windows.

You'll need to download and install apache (or activate IIS).

You'll need to download and install PHP, and then follow the documentation to connect it to your apache (or IIS).
User avatar
Darth Wong
Sith Lord
Sith Lord
Posts: 70028
Joined: 2002-07-03 12:25am
Location: Toronto, Canada
Contact:

Post by Darth Wong »

A server is just a PC that happens to have the right software on it. But the best way to play with PHP and MySQL is to install a decent Linux distro (dual-boot if you want to keep using Windows for most things). It's the closest approximation of the webserver environment you're going to find on most hosts that support MySQL and PHP.
Image
"It's not evil for God to do it. Or for someone to do it at God's command."- Jonathan Boyd on baby-killing

"you guys are fascinated with the use of those "rules of logic" to the extent that you don't really want to discussus anything."- GC

"I do not believe Russian Roulette is a stupid act" - Embracer of Darkness

"Viagra commercials appear to save lives" - tharkûn on US health care.

http://www.stardestroyer.net/Mike/RantMode/Blurbs.html
User avatar
Slartibartfast
Emperor's Hand
Posts: 6730
Joined: 2002-09-10 05:35pm
Location: Where The Sea Meets The Sky
Contact:

Post by Slartibartfast »

One thing that you can't quite test right under windows is that Apache or PHP supports a special config file for each folder, the name begins with a period (in L*unix* it means it's hidden, i think) but in windows you have to name it something else and edit the main config. Other than that, it's easy to install the apache+php+mysql combo and run say a CMS in it.
Image
User avatar
Dooey Jo
Sith Devotee
Posts: 3127
Joined: 2002-08-09 01:09pm
Location: The land beyond the forest; Sweden.
Contact:

Post by Dooey Jo »

Darth Wong wrote:A server is just a PC that happens to have the right software on it. But the best way to play with PHP and MySQL is to install a decent Linux distro (dual-boot if you want to keep using Windows for most things). It's the closest approximation of the webserver environment you're going to find on most hosts that support MySQL and PHP.
Yeah, I've been planning to install Linux sometime soon anyway, so I might just do that. Most Linux distributions comes with PHP and MySQL, so I won't have to download anything, correct?
Lord MJ wrote:Assuming you're on windows.

You'll need to download and install apache (or activate IIS).

You'll need to download and install PHP, and then follow the documentation to connect it to your apache (or IIS).
Seems like IIS doesn't work on XP Home. Apache doesn't seem to be too huge so I'll DL it and hope for the best :wink:
Image
"Nippon ichi, bitches! Boing-boing."
Mai smote the demonic fires of heck...

Faker Ninjas invented ninjitsu
Post Reply