Help needed with uploading files

This is a discussion on Help needed with uploading files within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi I created a htm for that calls uploader.php When trying to upload, I get the following error message: ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-22-2006
Nakkie
 
Posts: n/a
Default Help needed with uploading files

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['uploadedfile']['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?


Reply With Quote
  #2 (permalink)  
Old 12-23-2006
regindk
 
Posts: n/a
Default Re: Help needed with uploading files

Take a look here:
http://lists.drupal.org/archives/sup.../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['uploadedfile']['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?


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:11 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0