Page 1 of 1
How to install PHP script?
Posted: Sun Feb 06, 2011 2:06 pm
by will2112
Hello everyone, I am new to php and mysql. My question is if I have a php script and I want to put it on my website, what exactly do I need to have installed on my computer to upload to my web server? Do I need mysql and php? Then if you could explain to me how you actually upload the script to the web server that would be greatly appreciated.
Re: How to install PHP script?
Posted: Sun Feb 06, 2011 6:02 pm
by califdon
will2112 wrote:Hello everyone, I am new to php and mysql. My question is if I have a php script and I want to put it on my website, what exactly do I need to have installed on my computer to upload to my web server? Do I need mysql and php? Then if you could explain to me how you actually upload the script to the web server that would be greatly appreciated.
There's nothing special about PHP scripts. Just use FTP client to upload to your server (or most host services provide an HTTP FTP client, but it's probably better to install something like FileZilla on your computer).
That aside, if you are developing a dynamic website using PHP and MySQL, you will surely want to have your own local webserver, PHP and MySQL installed, so that you can debug your scripts locally. It's a real pain trying to debug using your production server--and the whole world will see all your mistakes and the screwed-up pages you create! If your home computer is a Linux OS, just install Apache 2, PHP and MySQL. If your home computer is a Windows OS, you can do the same, but it's probably easier to install WAMP or XAMP, which bundles Apache, PHP and MysQL and installs the whole package. If your home computer is a Mac OS, who knows?
Re: How to install PHP script?
Posted: Sun Feb 06, 2011 7:20 pm
by will2112
Thank you for the comment! Helped me a lot