note 59081 added to features.file-upload
| From: | bryan at digitalflash dot com | Date: | Fri, 25 Nov 2005 18:29:48 +0000 |
| Subject: | note 59081 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-99096@lists.php.net to get a copy of this message | ||
I've been trying to implement therebechips method for uploading and storing large files into
the database in smaller chunks, but I am running into difficulties. Has anyone used this
successfully? And, if so, can you share the script you used?
I keep choking on the query string:
$query = "INSERT INTO fs_files_test (f_filename, f_type, f_size) VALUES(".
$DB->quote($name).", ".
$DB->quote($type).", ".
$DB->quote($size).
")";
I get the following error:
Fatal error: Call to a member function on a non-object in
/var/www/livesite/fileshare/file_process_alt.php on line 34
That's the $DB->quote($name) line. I don't understand this syntax. What is the quote()
function?
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+59081
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59081&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59081&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59081&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59081&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59081&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59081&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59081&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+59081&report=yes
Search -- http://master.php.net/manage/user-notes.php