PHP

PHP MS Access connection with COM

PHP MS Access connection with COM

While doing some work where I had to make a graph module in PHP based on information from an access database, I had to know how to connect to it without a database source name (DSN). I looked up PHP COM (ADODB) which worked great.

Read more…

The ternary operator and If/Else

The ternary operator and If/Else

The ternary operator “:?” to make If/Else structures smaller and compact is a beautiful thing. Evaluate the following example and how it could be written in a much more compact and faster way. You can use this technique in several languages. I have personally used it during PHP and Javascript quite often.

Read more…

Classes in PHP5

Classes in PHP5

Illustrates how to create and use a basic class in PHP5.

Read more…