Results 1 to 4 of 4

Thread: PHP_Upload file

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Location
    Philippines
    Posts
    9

    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

  2. #2
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    no such thing in php, where did you get those?

  3. #3
    New Member
    Join Date
    Sep 2002
    Posts
    14
    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

  4. #4
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    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
  •  



Click Here to Expand Forum to Full Width