You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

Easy PHP question

They have: 8 posts

Joined: May 2007

Hey there I am looking to learn PHP and I am stuck on the first hurdle! And I am learning on my own with help of tutorials and forums and I was wondering if I could have some help.

I am doing this without a webserver at the moment just in windows. It's not working when I upload a php page, only the html comes up, is this because I need a working server with apache activated? Rather than trying it out in windows.

If yes how do I set this up once I get access to one of my servers (I'm in a library at the moment with a free day).

Regards Matthew

JeevesBond's picture

He has: 3,893 posts

Joined: Jun 2002

In Windows there're several ways to get a Web server up and running. I believe the easiest to setup is: XAMPP. That'll get you a working Apache + PHP + MySQL environment.

If you're interested we have an article on setting up a home Web server. That would be useful if you have an old PC to spare, and in time you could use it as an Internet facing server (just configure your router to port forward port 80 to the server).

a Padded Cell our articles site!

They have: 8 posts

Joined: May 2007

So yeh the problem is that I have to set up webserver with apache working yeh? With like a working mysql database file set up pointing locations in the right place.

thanks for the help by the way.

JeevesBond's picture

He has: 3,893 posts

Joined: Jun 2002

Yes, that's what you need. XAMPP will do that for you.

thanks for the help by the way.

No worries. Smiling

decibel.places's picture

He has: 1,550 posts

Joined: Jun 2008

For learning PHP (and much more) I would recommend Tizag and W3Schools

xampp is very useful and a good learning environment. I use xampplite for local Drupal dev.

You can also get totally FREE web site hosting with PHP/MySQL at free-space

I set up an account there, pretty simple, but haven't really tried doing anything with it.