[PHP] What's the PHP-equivalent of Perl's AUTOLOAD feature?

2003-01-16 Thread Chip Castle
Hello -

I just read an interesting article in The Perl Journal (TPJ) about using
AUTOLOAD as a layer of abstraction for accessing database columns and I
would like to write something similar in PHP.  Is this possible?

I have written a number of PHP/MySQL applications, but do not consider
myself an expert.  I cannot find anything on various PHP-related
websites and was hoping someone with more in depth knowledge would be
able to make a few suggestions.

Thanks!

Chip Castle
chip (at) chipcastle (dot) com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] What's the PHP-equivalent of Perl's AUTOLOAD feature?

2003-01-17 Thread Chip Castle
Hi Chris,

Thanks for the info.  I probably need to make myself more clear, as I'm 
not referring to a database abstraction layer in terms of drivers (e.g., 
"dbx" in PHP, DBI in Perl).

I think the best example of what I'm talking about is in Tim Kientzle's 
"Perl and Rapid Database Prototyping" article of December's TPJ:
http://www.chipcastle.com/tpj/TPJDecember2002.pdf

The first few paragraphs should give you the basic idea, so let me know 
if you have any suggestions.

Thanks!

Chip Castle / Open Source Web Developer
http://www.chipcastle.com


Chris Hayes wrote:
At 02:06 17-1-2003, you wrote:


I just read an interesting article in The Perl Journal (TPJ) about using
AUTOLOAD as a layer of abstraction for accessing database columns and I
would like to write something similar in PHP.  Is this possible?



If you mean some sort of database abstraction so one script would work 
on MySQL as well as Oracle; there is not such a thing within PHP itself. 
The google search term would 'database abstraction layer' and a popular 
one is ADODB (not to be confused with the other adoDB), at 
http://php.weblogs.com/ADODB.

If that's not what you mean please try to explain it again

Chris Hayes









--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php