That's it ---  that will teach me not to read the last line in the
documentation! argh...

Thanks
Sam

On 7 Nov 2002, Marco Tabini wrote:

> When are you checking that the file actually exists? PHP deletes the
> temporary file once the script has finished executed. This means you
> have to copy it somewhere else if you need to manipulate (or even to
> look at it after you posted), or you'll never find anything. I went nutz
> with this the first time I tried file uploading!
>
>
> Marco
> -------------
> php|architect -- The Monthly Magazine For PHP Professionals
> Come visit us on the web at http://www.phparch.com!
>
>
> On Fri, 2002-11-08 at 00:16, sam clanton wrote:
> >
> > Hello,
> >
> > I was wondering if anyone could help me out with this.  I am trying to use
> > squirrelmail on my server and I haven't been able to get file uploading to
> > work at all.  It always thinks that it works, but POST file uploading
> > never results in an actual file being created in the filesystem.
> >
> > you can check out a base example of what I'm doing at:
> >
> > http://www.japanesemafia.org/testpost.php
> >
> > ---- source
> >
> > <?
> >
> > if(isset($HTTP_POST_VARS))
> > {
> >
> > print_r($_FILES);
> > echo "hi there";
> > die;
> > }
> >
> > ?>
> >
> > <form enctype="multipart/form-data" action="testpost.php" method="post">
> > <input type="hidden" name="MAX_FILE_SIZE" value="1000">
> > Send this file: <input name="userfile" type="file">
> > <input type="submit" value="Send File">
> > </form>
> >
> >
> > ---- end
> >
> > that's it.  pretty much straight from the example.
> >
> > the php uploads var in php.ini is set to on and the upload dir to /tmp
> >
> > the permissions on /tmp are 777
> >
> >
> > -> _FILES always returns a temp name and a file size but the file never
> > actually appears.  Running is_uploaded_file on the tmp_name returns
> > _success_ even though the file is not there.
> >
> >
> > I am beginning to think that my compile is broken, please let me know if
> > anyone has any ideas.
> >
> > Thanks
> > Sam Clanton
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to