Thursday, July 30, 2009

What do i need to strat prgramming PHP on my PC?

What do i need to strat prgramming PHP on my PC?

What do i need to strat prgramming PHP on my PC?
download and install apache http server from http://httpd.apache.org/download.cgi then download and install php from http://www.php.net/downloads.php





i to have only just started scripting with php... its a great language to learn. good luck.
Reply:You can find more information at http://www.brugbart.com/?TID=6 - An Introduction to PHP





You do not need your own server, it can be quite a step to install your own server, and setup php + mysql, just to anable handling of same locally.





The easiest way for most beginners, would be to buy a domain name and some hosting space. There however is a clear advantage running your own server, since you don't need to spend time uploading your scripts before you can test them.





Running your own server could potentially lead to security risks, if setup wrong; or if you forget to secure one of your scripts.





If you really need the server, theres a guide at http://www.php-mysql-tutorial.com/instal... covering how to install both php and mysql with apache.
Reply:You will need a web server (eg Apache - httpd.apache.org) and PHP (php.net) to setup a test environment. MySQL (mysql.com) will also be useful, since primarily PHP is used to interact with a database.





You will probably need some help configuring them to work with each other - there are plenty of guides available on the net. It isn't an easy task to setup a web server with PHP and MySQL, but it's all part of the learning experience - no point learning a new language if you don't know how to setup its environment. It's also free - sure as hell beats paying for a domain name and web hosting that you're not going to use. It never ceases to amaze me when people spend all this money, and THEN ask for help learning HTML, CSS or whatever. What a waste...





Now that you have a test environment, you need development tools. That's pretty easy - PHP, like HTML, CSS etc, is simply a plain text format. So you will want a programmer's text editor (don't use Notepad). I use PSPad (pspad.com). You will also want to keep a link to the PHP reference handy - http://www.php.net/quickref.php





Since you are learning, you will want a tutorial - try W3Schools (http://www.w3schools.com/php/).
Reply:You will need:


Apache


PHP (from http://php.net)


Windows/Linux/Other Operating System


A SQL server like MYSQL





This is available in a package called: xampp


Get it from http://apachefriends.org


No comments:

Post a Comment