How to install PHP script?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
will2112
Forum Newbie
Posts: 2
Joined: Sun Feb 06, 2011 1:55 pm

How to install PHP script?

Post 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.
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: How to install PHP script?

Post 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?
will2112
Forum Newbie
Posts: 2
Joined: Sun Feb 06, 2011 1:55 pm

Re: How to install PHP script?

Post by will2112 »

Thank you for the comment! Helped me a lot
Post Reply