how do you activate and use PHP on a website?

Riiich

New member
I've heard you need to activate it somewhere or something like that. And when it's done, is it possible for me to use a program on the server run by PHP? To use as a game server. Im a complete beginner on servers and websites, could you go through step by step, thanx
i just checked and PHP is avalible on my server. say a server exe is myserver.exe could you give me an example of what a php would contain if i wanted to run that server automaticly? or write a small php script that would start the server?
 
Welcome to the world of servers!

The quick and dirty:

Webservers are just computers running software that can serve webpages. Just like you have some sort of paint program on your computer, you could download and install a webserver on your computer also. The most common webserver is Apache.

Once you have the websever software on your computer you can extend it's functionality by adding additional software. PHP allows dynamic webpages whereas a simple webserver only display static pages ( technically not 100% correct, but hopefully you get the point ).

PHP is also a software package that you can download and install on your computer. Now you have both a webserver and a PHP parser. The webserver understands and displays HTML and the PHP parses the PHP code stored inside your webpages.

You can add additional functionality by adding a database, MySQL being a very popular one, ect.

If you are "renting" webserver space, you will need to contact your webmaster and ask them if it is php capable. You should not have to turn on anything from your side. Another way is to just try to run a simple PHP script. If the script works, your server is PHP enabled. If you actually see the PHP script code on the screen then PHP is not available or something is seriously wrong with the setup. Either way you will need to contact the webmaster for assistance.

Good luck.
 
Back
Top