English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Do I have to install PHP software before my PHP codes will work when creating my own website? This may be a stupid question, but I'm self-learning programming and creating websites, so please forgive me if this is an incredibly stupid question. Thank you.

2007-04-26 04:47:04 · 6 answers · asked by Smily Evie 2 in Computers & Internet Programming & Design

6 answers

If you use php I would highly recommend you use it on a Linux machine with Apache. It works on windows but not as well. But go to http://www.php.net to install it on windows. I think if you were running Linux you would not have asked this question. Make sure you follow the instructions on how to run it on top of IIS instead of Apache. You can install apache on windows if you can not install iis (only windows installation that can not is windows xp home edition all of the pro and server editions have iis in the add remove programs).


RJ

2007-04-26 04:55:06 · answer #1 · answered by Anonymous · 0 0

php is a server side language.
Therefore the browser (I.E, Mozilla, etc) can not see the php code at all!

Only a server can see the stuff inside php tags, so THE SERVER executes the php code BEFORE sending the rendered html out to the browser that is making the request.

IF you want to run php locally - you will need the php and apache services running in the background.....
PHP's big advantage is that you can manipulate a database using it..... well if you are going to interact with a database - then you will need sql running in the background also...

I suggest downloading and installing:
http://www.apachefriends.org/en/xampp-windows.html

This is a bundle of all the services you will need to do all that stuff. xampp is a nifty thing....

2007-04-26 12:19:34 · answer #2 · answered by Nicholas J 7 · 0 0

No you do not have to download PHP (or an Apache server on which to test your PHP). First of all, if you insist on using PHP as part of your website, you may continuously ship tidbits of PSP to your host and provide, even, secret links from an htm file (like, say, a hidden dot that only YOU know how and where to click) that runs the PSP and either gets an error or doesn't. Second, surprisingly quite a bit can be accomplished without PHP. KISS.

2007-04-26 11:57:56 · answer #3 · answered by fjpoblam 7 · 0 1

If your website host provides php it should already be installed on the server.
If you would like to test it on your own computer before uploading it you need to install it and create a local server. Windows comes with a component called IIS that allows you to do this but unfortunately it is not available on Home editions.

2007-04-26 11:54:41 · answer #4 · answered by Allison 3 · 0 0

You will need a local server to run the php scripts. There are many out there that are free but I have provided a link which guides you through installing apache. This will do you fine:

http://www.4webhelp.net/tutorials/cgi/local.php

2007-04-26 11:54:53 · answer #5 · answered by Barry Anderson 2 · 0 0

Yes, you need to install PHP first. You can download it (if you have windows) from php.net. If you have linux, it's on your linux installation CD.

2007-04-26 11:51:01 · answer #6 · answered by Ken 3 · 1 0

fedest.com, questions and answers