Re: Problems with a file upload
| From: | Ulf Tornert | Date: | Sun, 12 Nov 2000 09:10:20 +0000 |
| Subject: | Re: Problems with a file upload | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-24846@lists.php.net to get a copy of this message | ||
Thanks Matt for responding!
I tried to explicitly set the upload dir to something like "c:\path\path"
(php.ini in windows directory), but then again I get the message: " Unable to
open 'c:\path\path\\php2' " for reading. On top of this I found out that a
script couldn't change the current dir with the chdir()-function. If I do:
$newdir = chdir('/temp'); the $newdir var != 0, meaning that the change did take
place. But when I list the entries in "the current" dir, I get the entries in
the "above" dir (proving that the change did not take place). Suggestions? (I
run Apache 1.3 on a win98, with PHP module 3)
Uffe
Matt Williams wrote:
> > > Name: \\php2
> > > Original name: icq-info.txt
> > > Size: 39
> > > Type: text/plain
> > >
> > > Warning: Unable to open '\\php2' for reading: No such file or directory
> > > in c:\program\apache...
> > >
> > > I obviously managed to pass the info about $userfile_name, _size and
> > > _type, but what about the complete filepath? What is happening? Why does
> > > "echo($userfile)" print "\\php2"?
>
> For a more in depth explanation search the windows archives on this one. It
> has come up loads of times.
>
> Anyway, I found that changing the upload temp dir in php.ini to . works
> fine.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net