Friday, May 23, 2008

PHP IDE choosing guide

There are plenty of Integrated Development Environment (IDE) - softwares or hardwares that form up the environment for the development of softwares or other hardwares - created for the programming of PHP codes.

Some of them include Dev-PHP, Aptana Studio, Adobe Dreamweaver and more.. But what is the best for you, since PHP is such a dynamic and complex language?

There are a few pointers you should consider before using that IDE of your choice.
1) Patches and security fixes to the software - are they kept up to date with the latest version of PHP?
2) Does it allow you to integrate PHP with other platforms such as AJAX and XML?
3) Are the code correctly colored?
4) Are the tools available with the packages useful?
5) Are the tools available easy to use?
6) Is it free for use/production?

Those pointers are just some guide to choosing your default IDE. Of course, you can combine them and use multiple IDE on one single project. It's good that you experiment out the available IDEs and find the one that suits you best.

Cheers
Sam Yong

NEXT UP: Directory Size Calculations

Friday, May 9, 2008

Setting up XAMPP - local php environment

Hello to all!

Today we are going to talk about how to set up a local PHP testing environment on your own computer using the server localhost or 127.0.0.1. It is understood that PHP is installed on a server in order to parse PHP files and output into the browser, but how are you going to do that on your own computer where you have so many things running about?

Well, we'll use xampp, by Apache Friends, which is an apache package with MySQL community version, PHP, FTP support, and more. It supports many platforms: Windows, Mac, Linux, Solaris and more!

What's more? xampp is free!

Installing xampp will take awhile after you have selected the appropriate download for your platform. After installing, you will be able to access the server using http://localhost/, or add the port number if you use it, on your browser.

You will need to remember that other people that can connect to you can access your apache server using your IP address. You will need to set some of the security options available on the server mainpage.

To edit the files on the server, either you can use the ftp protocol, or you can access it via your local hard drive (for example on Windows, htdocs folder inside where xampp is installed).

And if you want to upgrade MySQL, just the version of MySQL from the official website, and install into where xampp is installed.

Well, signing off.
Sam Yong

NEXT UP: PHP IDE choosing guide

Tuesday, May 6, 2008

thephpcode - opening

hello all.

i am sam yong, thephpdeveloper blogger, and i am 15 this year, yes going 16. i currently live in singapore, and i have 2 years, maybe a little more, of PHP and programming logic experience. I have opened and work in quite a number of companies, but now i am here to share my experience with you.

here in this blog, i am sharing php codes and functions together with its explanations. you might find them useful, find bugs in them or you might just love the way i do the codes. but i am willing to learn PHP with you.

if you are a beginner in PHP, i suggest that you read my next post, on how to set up a PHP server environment on your own computer and you can learn PHP without the use of purchased servers.

also, i hand-code all my codes, and they are not going to be formatted. you can format them in your own IDE (Integrated Development Environment) so that you can read them.

Cheers
Sam Yong

NEXT UP: Setting up XAMPP - local php environment