|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
SAFE MODE
Okay, I think this comes up a lot, but I'm confused. I have a script that handles some image uploads give to it by the page before, and up until I started messing around with it, it worked. Now I can't get it to work even when I stick the original that used to work back in there. I get the following error each time I run it:
==================== Warning: copy(): SAFE MODE Restriction in effect. The script whose uid is 970 is not allowed to access owned by uid 0 in /home/virtual/site461/fst/var/www/html/userCenter/insertRentalImages.php on line 6 COULD NOT COPY FILES TO MEMORY! ==================== I check the file that the images are supposed to go to, and they are there, but the error comes up anyway. It's very annoying since I'm building this for a friend, not myself, and they will be utterly confused. Keep in mind that I am a novice, so please try to explain things in simple terms, and don't laugh to hard at my script... ==================== Upload Handle Script: ==================== L1: <? L2: for ($num=0; $num<$numPics; $num++) { L3: L4: $cPic="pic".$num; L5: L6: copy ($_FILES[$cPic]['tmp_name'], $_FILES[$cPic]['name']) or die ('COULD NOT COPY FILES TO MEMORY!'); L7: L8: copy ($_FILES[$cPic]['tmp_name'], "rentalImages/".$idNum."_".$num.".jpg") or die ('COULD NOT COPY FILES TO FINAL DESTINATION!'); L9: L10: } L11: L12: ?> |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > SAFE MODE |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|