note 32877 deleted from function.stream-wrapper-register by nlopess

From: Date: Fri, 13 Aug 2004 23:15:10 +0000
Subject: note 32877 deleted from function.stream-wrapper-register by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-74594@lists.php.net to get a copy of this message
Note Submitter: sab@brandbyge.dk ---- This is what I've waited for for a long time! Did produce a small wrapper to extract php-code from at database. The code is allmost a duplicate of the var-example above, and it works like a charm. The semantics are along the lines of: $resource = 'mysql://<username>:<password>@<mysqlhost>/<database>.<table>? <fieldname>=<value2match> [optional <sort options>][# <optional name-of-field2return>]' include($resource); And that's it. An example (in one line: <?php include('mysql://tester:testpass@localhost/testdb.testtable? indexfield="abc" order by seqfield#contentfield'); ?> One problem though: Don't try to use include / require / ... to a selfdefined protocol from within the Zend development environment (Zend studio), or with debug enabled in your php. It will blast your apache into orbit. I'll post a link to the source when I get access to a web-server.

« previous php.notes (#74594) next »