Re: What's the PHP-equivalent of Perl's AUTOLOAD feature?
| From: | Chip Castle | Date: | Fri, 17 Jan 2003 16:40:38 +0000 |
| Subject: | Re: What's the PHP-equivalent of Perl's AUTOLOAD feature? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-132013@lists.php.net to get a copy of this message | ||
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