How to get started with PHP?
So, you’ve decided to try using PHP, but you don’t know where to start?
Here’s a list of things you’ll need before you even get cracking on writing your first PHP program.
- Hosting your PHP programs – You need to find yourself a place which will allow your PHP program to run. There are a few options – you can either signup with a web hosting provider that supports the PHP technology, or you can turn your PC/Notebook into an environment suitable for running PHP programs.> Learn how you can install XAMPP Lite on a portable storage device.
- Editor for PHP programming – The next thing you need is to get yourself a text editor you can use to write the PHP codes with. Your standard Microsoft Windows on your PC/Notebook includes Notepad which is suitable, but if you’re looking for something a bit more user friendly, there are plenty of freewares available. I personally use Crimson Editor which is free, it has a small filesize, and definately way better than Notepad.
- Transfering your PHP files – If you have chosen to use a web hosting option, chances are, you will need an application to help you move the PHP files from your PC/Notebook to the web hosting provider. In this case, you’ll need an FTP program of some sorts. I recommend using a freeware called Filezilla which is available for download at http://filezilla-project.org/.
- Storing Data in a Database – Lastly, you need to get yourself a database. PHP programs are not going to be very useful, if they are not able to store and retrieve date. Luckily, most web hosting providers also includes MySQL database in their packages. If not, MySQL database is also free to download from www.mysql.com.
So, once you have all these done, you’ll be ready to write your first PHP program. Good Luck!
Related Posts:
Posted on December 13, 2007 at 11:08 am by Eldee · Permalink
In: PHP Tutorials · Tagged with: crimson editor, filezilla, getting started, hosting PHP, mysql
In: PHP Tutorials · Tagged with: crimson editor, filezilla, getting started, hosting PHP, mysql

Permalink
4. Storing Data in a Database – Lastly, you need to get yourself a database. PHP programs are not going to be very useful, if they are not able to store and retrieve data . Luckily, most web hosting providers also includes MySQL database in their packages. If not, MySQL database is also free to download from http://www.mysql.com.
just mind the spellings rest it is a good tutorial for quickly learning how to start with php
Permalink
Very good site for beginners. I have found it very useful. I can write simple php programs
Permalink
hi, im using xampplite and am struggling. i am in thrid year degree aand am creating an english to SMS translator. e.g. if someont types ‘you’ the translation will show ‘u’ for short. i have created a database with my words with the headings ‘English’ and ‘SMS’ for the translated words. however i do not know how to carry out this through php and do not know what code to use to carry out the translation. any help would be greatly appreciatted. thanks
Permalink
Hi Israar
I think you are a looking for a string replacement function. PHP has a few ways of doing this. The most obvious function is str_replace(). But it might be a bit limiting as you don’t know the number of occurrences.
http://www.php.net/str_replace
The better function to consider is preg_replace() which uses regular expressions. But this takes a bit more work, as it requires you to learn how to craft your regular expressions.
http://sg.php.net/manual/en/function.preg-replace.php
Read up on these functions, and post back here if you need more information.
Thanks!