I just wrote a file upload script and all the information that I needed was
here in the manual:
http://www.php.net/manual/en/features.file-upload.php
There were a couple of "common pitfalls" that it points out, which you
should check. Make sure you've defined the various configuration variables
I'm not sure of the backwards compatibility, but if you're running PHP
4.2.x (I think? Maybe it came in earlier) .. use the $_FILES global
variable, in place of $HTTP_POST_FILES. The array is exactly the same:
$_FILES[name_of_file][attributes]
Hopefully this helps?
-Jason
Cyrille Andres wrote
2 matches
Mail list logo