PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old September 5th, 2006, 12:08 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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: ?>

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > SAFE MODE


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway