[PHP] stream wrappers

2004-08-31 Thread jarell
m_close? Thanks Jarell -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stream wrappers

2004-09-01 Thread jarell
Here's my db_update function then your code with some mods: function update_db($location) { require_once('/usr/home/doc/mysqlconnect.php'); $query = "SELECT dl_count FROM downloads WHERE filelocation = '$location'"; $result = mysql_query($query); $dl_count = mysql_result($result, 0, "dl_count"); $

Re: [PHP] stream wrappers

2004-09-01 Thread jarell
way to control when the stream gets written to the output buffer? Maybe with Apache? Jarell John Holmes wrote: I don't really understand why you're using a custom stream here or what you're hoping to accomplish. you're incrementing the download count, but not really checking i