|
-
Sep 24th, 2002, 11:01 PM
#1
Thread Starter
New Member
PHP_Upload file
Sir!
To anyone concern!
I would like to ask something on how to use lo_export and lo_import in uploading files.
please help me about this!
thank you
-
Sep 25th, 2002, 05:32 PM
#2
Frenzied Member
no such thing in php, where did you get those?
-
Oct 25th, 2002, 09:40 AM
#3
New Member
echo "<FORM ENCTYPE=\"multipart/form-data\" ACTION=\"./uploadItem.php\" METHOD=\"POST\">";
echo "<INPUT TYPE=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"200000\">";
echo "<INPUT TYPE=\"hidden\" name=\"ItemID\" value=\"$II\">";
echo "Send large image:";
echo "<INPUT NAME=\"image\" TYPE=\"file\"><br><br>";
At next page-
if (!copy($image,"images/".$ItemID.".jpg"))
{
print "Error Uploading Image.";
exit();
}
unlink($image);
This way will be much easy!
Sincerely,
Sergey Booyny
AlarIT programmer
http://www.AlarIT.com
-
Oct 25th, 2002, 09:44 AM
#4
Frenzied Member
talk about an old thread???
so easy it won't work, you have to use the super globals for any version of php above 4.1.2 (if variable_globals or off) and anything over 4.2 as they are off by default.
$_FILES[image][name]
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|