Help uploading files

Discussion in 'PHP' started by Klian, Nov 5, 2006.

  1. #1
    Hi,

    I have script that upload a file.

    This script works great If I run it in my webhosting company, but It doesnt work when I run it in my home PC.

    Ive tried with this:

    $tamano_archivo = $HTTP_POST_FILES['archivo']['size'];
    echo "Size :".$tamano_archivo;
    PHP:
    and the print is:
    Size:
    PHP:
    File uploads directive is set to ON in php.ini

    Any idea ?
     
    Klian, Nov 5, 2006 IP
  2. Klian

    Klian Member

    Messages:
    81
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #2
    Fixed.

    Just changed $HTTP_POST_FILES for $_FILES
     
    Klian, Nov 5, 2006 IP