[thelist] PHP and file uploads
Beau Hartshorne
beau at members.evolt.org
Sat Mar 2 23:20:01 CST 2002
> At a guess, I'd say register_globals is off on the client's server.
> Can you alter the programs so they use
> $HTTP_POST_FILES['userfile']['size'] and $HTTP_POST_VARS['name']
> instead of the global equivalents?
This is the first thing I tried -- the strange thing is that the form
works just fine when there is no enctype="multipart/form-data"
attribute. As soon as I include that, poof, all my variables disappear.
Here it is with the dump:
http://216.194.83.93/enctype.php
> In any case, try dumping all the globals at the bottom of the scripts
> so you can track down where those variables are disappearing to:
>
> var_dump($GLOBALS);
>
> A browser's view source will show the arrays in a readable format.
Thanks,
Beau
More information about the thelist
mailing list