|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi... wtf is safemode ?... i get the folowing error while uploading...
Warning: copy(): SAFE MODE Restriction in effect. The script whose uid is 33550 is not allowed to access /tmp owned by uid 0 in /customers/sickworld.org/sickworld.org/httpd.www/kampp/tb/upload_tegning.php on line 22 the code for the script is following: PHP Code:
where line # 22 is the copy() line |
|
#2
|
||||
|
||||
|
Safe mode is a setting in php.ini that can be turned on to prevent people from doing potentially dangerous things like uploading files. Look for safe_mode in your php.ini, turn it off, and restart apache.
__________________
Please don't PM me asking for solutions outside the scope of a thread. Keeping all responses in a thread stands to help others who come along later, which is after all what this forum's all about. |
|
#3
|
|||
|
|||
|
hmmm... i had suspected that. The problem is, that im running a remote server, (b-one) and how do i acces it there. ??
|
|
#4
|
||||
|
||||
|
See if you can contact one of the admins on the site that is hosting your page and see if they can turn it off for you, or, if you have shell/telnet access you can change the file yourself within your shell, as long as the php.ini file is in a folder that you have access to and as long as you have the correct permissions for changing the file
|
|
#5
|
|||
|
|||
|
thnx...
now here the really wierd thing... i define the upload like this: PHP Code:
so... i still get the safemode error. But the file is none-the-less uploaded, but to the rootfolder of the site. is there something wrong with the $dest defination ? - Pheifel |
|
#6
|
|||
|
|||
|
Are the directories for /$USERID/$new_name already created before uploading? I think they need to be created prior to uploading anything into them
__________________
![]() ![]() "Only Linux users see the end of crashes." - Pl4t0 |
|
#7
|
|||
|
|||
|
Wwweeeiii
i got the problem solved
the problem is, that under safemode, the "rename()" cant be used. But you can just rename the file in the copy() under the destination...thanx for the help ![]() |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Safe mode ?! =O |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|