Help On File upload
Moderator: General Moderators
-
anirbanb2004
- Forum Newbie
- Posts: 23
- Joined: Sun Oct 15, 2006 4:21 pm
Help On File upload
Hi,
I am new to PHP and realy amazed by its beauty.
really found problem in fileuploading.
It is giving permision denied or path not found..
Please give me a suggestion and/or a sample example if possible.
Thanking you very much
I am new to PHP and realy amazed by its beauty.
really found problem in fileuploading.
It is giving permision denied or path not found..
Please give me a suggestion and/or a sample example if possible.
Thanking you very much
-
anirbanb2004
- Forum Newbie
- Posts: 23
- Joined: Sun Oct 15, 2006 4:21 pm
DID it..
hi,
I have seen it.
The same problem....is it required to give the ful path for destinition folder...
My destinition folder is in same directory as the file..
I have seen it.
The same problem....is it required to give the ful path for destinition folder...
My destinition folder is in same directory as the file..
-
anirbanb2004
- Forum Newbie
- Posts: 23
- Joined: Sun Oct 15, 2006 4:21 pm
You call a function to move or copy the file. Is this function move_uploaded_file?
The destination path can either be absolute (/www/image/filexyz.ext) or relative (no leading /).
The leading / in absolute paths point to the local filesystem's root directory (which is usually not the document_root of the webserver).
Relative paths are relative to the current working directory, see http://de2.php.net/getcwd
The destination path can either be absolute (/www/image/filexyz.ext) or relative (no leading /).
The leading / in absolute paths point to the local filesystem's root directory (which is usually not the document_root of the webserver).
Relative paths are relative to the current working directory, see http://de2.php.net/getcwd
- Ollie Saunders
- DevNet Master
- Posts: 3179
- Joined: Tue May 24, 2005 6:01 pm
- Location: UK
anirbanb2004, post code for further assistance.
It's really not. I go to a lot of time and effort to make my PHP code beautiful and to do this requires a great deal of knowledge. By default PHP is not beautiful and in the hands of 96% (I'd say) of those who write PHP, PHP is ugly to horrific.I am new to PHP and realy amazed by its beauty.