Using dynamic methods in your PHP Classes

Hello all!

I was just trying to design an object oriented PHP interface to handle basic CRUD* operations in a PostgreSQL Database, and i came up with the idea of using dynamic methods to call the stored procedures. I’ll try to explain what i did here, and how.

Continue reading “Using dynamic methods in your PHP Classes”


A Simple CGI Phonebook Application

w00t! Hello all,

This is my first blogging experience, ever. So this post will also mean “hello, blogging world!“.

This will be about a homework given by our Perl lecturer Asst. Prof. Dr. S. Yildirim. He asked us to create a CGI Phonebook script that reads Name, Address and Phone info from a file, And make an interactive script to search or navigate in the phonebook.

In the beginning, i thought i’d read all the info into three different hashes, then i’d navigate/search or do whatever i want in them. While i was implementing, something weird has occured. My hashes had anonymous hashes as keys, instead of the integer “ID” value i read from the text file earlier. In order to catch up with the deadline, i gave up with that hashes stuff, and i decided to just read the file again when i’m searching or listing or whatever i’m doing.

Feel free to take a look at the source.

That’s all for now. See you.