note 15709 added to function.pg-loexport
| From: | admin at e-tones dot co dot uk | Date: | Thu, 27 Sep 2001 11:22:10 +0000 |
| Subject: | note 15709 added to function.pg-loexport | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18367@lists.php.net to get a copy of this message | ||
After hours of headache, I finally realised that pg_loexport sometimes returns true even if the BLOB
was not exported. I worked around the problem by changing the code to
pg_exec("BEGIN");
pg_loexport($bloboid,$filename,$dblink);
pg_exec("COMMIT");
if(!file_exists($filename))
{
//deal with non-existent file
}
The only way i could get pg_loexport to return FALSE was to alter the file permissions on the
directory in which the BLOB was being written. Be Warned!!!
--
http://www.php.net/manual/en/function.pg-loexport.php
http://master.php.net/manage/user-notes.php?action=edit+15709
http://master.php.net/manage/user-notes.php?action=delete+15709
http://master.php.net/manage/user-notes.php?action=reject+15709