For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > December 2006 > Help needed with uploading files









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Help needed with uploading files
Nakkie

2006-12-22, 9:58 pm

Hi
I created a htm for that calls uploader.php
When trying to upload, I get the following error message:
Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE
Restriction in effect. The script whose uid/gid is 4984/4984 is not allowed
to access / owned by uid/gid 0/0 in
/mounted-storage/home30a/sub001/sc14018-XLQD/mydomain/memberarea/uploader.php
on line 15
Were line 15 of my uploader contain:
if(move_uploaded_file($_FILES['uploadedf
ile']['tmp_name'], $target_path))

From what I gathered so far - I do not have propper permission on the
server's temp directory.
My webhost cannot help me with this...........
I read on php.net that yuo can copy a php.ini file to your root directory
and edit the line upload_TMP_DIR =
and specify the path of your own temp directory - I copied one of the sample
ini files, but cannot find that string.
Can any1 give me an idea of what else to try?


regindk

2006-12-23, 6:57 pm

Take a look here:
http://lists.drupal.org/archives/su...3/msg00068.html
Hope it helps you out!

Regin
http://www.sourcerally.net/regin
Nakkie wrote:
> Hi
> I created a htm for that calls uploader.php
> When trying to upload, I get the following error message:
> Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE
> Restriction in effect. The script whose uid/gid is 4984/4984 is not allowed
> to access / owned by uid/gid 0/0 in
> /mounted-storage/home30a/sub001/sc14018-XLQD/mydomain/memberarea/uploader.php
> on line 15
> Were line 15 of my uploader contain:
> if(move_uploaded_file($_FILES['uploadedf
ile']['tmp_name'], $target_path))
>
> From what I gathered so far - I do not have propper permission on the
> server's temp directory.
> My webhost cannot help me with this...........
> I read on php.net that yuo can copy a php.ini file to your root directory
> and edit the line upload_TMP_DIR =
> and specify the path of your own temp directory - I copied one of the sample
> ini files, but cannot find that string.
> Can any1 give me an idea of what else to try?


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com