The City of knowledge
php & mysql
php quick glance book project
Aug 19th
Soon i will be Publish a new book that cover basic php and useful examples as well as small project
Coding a simple Guestbook using PHP and MySQL
Nov 25th
his is a short article which shows you how to make a simple guestbook by capturing the visitor’s input and storing the data in a database using PHP. You’ll need to know a bit of HTML, PHP and MySQL in order to do the task. For a guestbook to work, More >
Classes and OOP in PHP
Nov 25th
Object orientated programming (OOP) is a commonly used term when discussing modern programming techniques. One of the things that makes humans stand out is the ability to categorise – we put objects into categories of similar type of function. For example, we have the category vechicle. Within this category, you More >
5-second RSS parser w/ simpleXML
Oct 29th
How to: Building dynamic PHP objects and URL decoding example example
Oct 29th
PHP is a powerful programming language; with every release I’m amazed with the new power and functionality. The ability to build dynamic objects (the way I’ll describe) I believe was introduced as of PHP 5. In any case, this is good stuff. There are lots of reasons why you would More >
How To: Making a PHP REST client to call REST resources
Oct 29th
A lot of companies these days (including Amazon and Yahoo!) are exposing their web services in the form of REST resources. At a high level REST is pretty easy to understand, all you’re doing is exposing a web service in the form of a URL. Users can then query this URL, More >
A closer look into what Google Adwords charges..
Oct 29th
This is interesting, though on a small scale, it’s still relevant. I run Google Adwords (display ads on specific search terms with Google) for a service I created called WebBasedCron. A little while ago, I decided to start tracking what ads were really being clicked — i.e. when an advertisement More >
PHP: Double quotes vs Single quotes
Oct 29th
If you don’t know the difference between using double quotes or single quotes when using Strings in PHP, you should. The PHP Manual page for Strings covers all this, but basically strings created with double quotes will be parsed by PHP. This example shows what I mean:
Code: 1// they both More >
PHP: Creating a singleton class for serialization
Oct 29th
There’s a lot of examples on the internet about creating and using the singleton pattern within your application. From the PHP Docs:
The Singleton pattern applies to situations in which there needs to be a single instance of a class. The most common example of this is a database connection. Implementing More >
