php server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Kyori
Forum Newbie
Posts: 23
Joined: Mon Oct 14, 2002 5:23 am
Contact:

php server

Post by Kyori »

i'm working on a school project and we're going to use php. I'm on winXP and should I use IIS or Apache?

I still got no host but most probably we're gonna be getting an apache host /w MySQL. Is php code for Apache different from IIS assuming i write under IIS and upload it on Apache server?

any download/links on some newb tuts for php? thanks
Coco
Forum Contributor
Posts: 339
Joined: Sat Sep 07, 2002 5:28 am
Location: Leeds, UK
Contact:

Post by Coco »

so far as i know there is no difference according to the server itself, it all depends on the way that php.ini is set up....

there likely are one or 2 functions that either arent availiable or are implemented slightly different, but i havent come across any yet

if you check the php manual ( http://www.php.net ) it tells you for each function if you need any extra modules etc
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

It's really easy to get PHP running with IIS but Apache is the better server. PHP is very platform independent, so you don't write different code for Windows than you do for *nix. There are some functions which are *nix specific but if you're developing on Windows and then uploading to a *nix server you won't have used them in the first place. If you decide to go with Apache try 1.3 not 2 if you've never worked with it before because there's a lot more help available to get the older version working with PHP and you can always upgrade later if you want to.

As coco said, the main difference will be between each servers php.ini (the configuration file for PHP) and you can easily change yours to reflect your hosts.

When you install PHP, no matter which server you choose, read the installation readme that comes with it very carefully and follow the instructions step by step.

Mac
Kyori
Forum Newbie
Posts: 23
Joined: Mon Oct 14, 2002 5:23 am
Contact:

Post by Kyori »

that's great! :P

I guess i'll install IIS. I'll only use it to test my scripts. Apache servers under nix are much cheaper.

IIS won't be slowing my system for nomal use now no? it doesn't load in memory until i use it right?
Post Reply