How do I run PHP from my Harddrive?

They have: 133 posts

Joined: Sep 2000

I have just started to try programming in PHP, and now I have ran into the first problem:
How do I run the file from my harddrive?
I have installed PWS(Personal Web Server) but that doesnt seem to help me on that one, what else shall I do to make it work?

I hope that you can help me, so that I can try out what I am making...

Thanks in advance
Casper

They have: 334 posts

Joined: Dec 1999

You need to use a PHP-friendly web server and PHP itself. I'm not sure if PWS handles PHP (I'd bet no) but several freeware web servers do. Look into either Apache, Xitami or Omni-HTTPD (sp?)

I'd recommend going with Apache since it's so well documented, but the other 2 are probably a little bit easier to set up. There's a good article about installing a local Windows Apache/PHP/Perl/MySQL development environment at:
http://www.thedailyspread.com/tech/tut.html

and another good one at:
http://www.e-business.auc.dk/tools/wamp.html

Those will provide step-by-step instructions as well as links to all the pertinent files that you'll need to download.

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

Running a webserver on a win 9x box is somewhat frustrating. Most webservers out there were made for *nix boxes, so it took me a while to find win32 files and get mine to work.

I'm running Win98 with Apache 1.3.12, ActivePerl, PHP4, mySQL.

I didn't know PWS supported PHP [even with an install], so I just went and installed Apache. I don't know if PWS supports all the same environment variables and other stuff.

Mark Hensler
If there is no answer on Google, then there is no question.

They have: 133 posts

Joined: Sep 2000

I have given up making PHP work on my computer, that will be way too much work, when I dont know anything about what I am doing, when I am installing it...

I think that I will try ASP instead, that seems a little more easy...

If anybody can give me a good link to some toturials (for biginners) I would appreciate that...

Thanks for your help with PHP, and now I hope that you can help me with ASP. I have found out how to amke ASP run from my computer, so that that shouldnt be the problem...

Casper

[Edited by hotcut on 09-30-2000 at 10:14 AM]

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi hotcut,

http://www.freeasp.com

Vinny

They have: 133 posts

Joined: Sep 2000

Hi vinny

I will look at the page you have given me, and see for my self, if I can find out how to program in ASP

I am (again) having some problems with running ASP from my computer, even though PWS is installed... I am getting tired of it...

Well... I will try to figure that one out

Casper

They have: 850 posts

Joined: Jul 1999

I just came across a great installer program for PHP. It installed the latest version (4.02) onto your Windows platform without any hassles.
The url is
http://php.weblogs.com/easywindows

I just used it, and it is a really great program.

They have: 5,633 posts

Joined: Jan 1970

ASP agggghhh....dont give in to the dark-side hotcut! & if you think that PWS will be an easier ride than apache - get ready for a shock - lol

if you have not already got it installed - you can download PHP4/MySQL/phpMyAdmin/Apache 1.3.12 all zipped and preconfigured to run on (98(& sometimes 95)& 2K) at http://www.firepages.com.au/bundle.php3

good luck

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.