How to install PHP script?
Moderator: General Moderators
How to install PHP script?
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?
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).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.
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?
Thank you for the comment! Helped me a lot