HTTP_UPLOAD out of the box
| From: | leevi graham | Date: | Mon, 07 Feb 2005 10:19:56 +0000 |
| Subject: | HTTP_UPLOAD out of the box | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-17415@lists.php.net to get a copy of this message | ||
does http_upload work out of the box???
i am having trouble uploading an image with the example script...
ipear is correctly installed i am using other pear modules with no probs....
i copied the upload.php file into my pear directory where all my other pear modules are...
the issue is am having is when uploading a small .jpg
the error message is always returned as: Upload error: Impossible to move the file.
i have permissions set to read and wrte on the desitnation folder and have set the variable to:
$dest_dir = $_SERVER["DOCUMENT_ROOT"]."/bstreet/_img/_busImages/";
i
is there anything else that i need to do...
i believe the problem may stem from the DIRECTORY_SEPERATOR on line 743..
if i print the variable $name_dest on line 743.. it returns the following....
c:/inetpub/wwwroot/bstreet/_img/_busImages/\2547342074022cd395.jpg
it is the conflicting slahes i am worried about...
i am running php 5 on iis 5
please help this is killing me :)
cheers leevi