Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-26-2010, 01:36 PM   PM User | #1
puzzled
New to the CF scene

 
Join Date: Oct 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
puzzled is an unknown quantity at this point
PHP - rename error - please help

I'm creating a function that moves files from one location to another folder. I'm using the function "rename"(i got this from a thread here)

i'm having Warning that shows:

Warning: rename() [function.rename]: http wrapper does not support renaming in E:\Xampp\xampp\htdocs\wordpress2\wp-content\plugins\nextgen-gallery\view\gallery.php on line 83



this is line 83
$copied3 = rename($oldname, $newname);

anyone here know what's wrong? I'm working in localhost so i can't provide a link for it

thanks in advance for those who help.
puzzled is offline   Reply With Quote
Old 10-26-2010, 02:04 PM   PM User | #2
puzzled
New to the CF scene

 
Join Date: Oct 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
puzzled is an unknown quantity at this point
follow up

i tried changing the file location to see if the function really works and it doesn't

this is the error showing:

Warning: rename(/images/shirt39.jpg,/images/shirt35.jpg) [function.rename]: No error in E:\Xampp\xampp\htdocs\wordpress2\wp-content\plugins\nextgen-gallery\view\gallery.php on line 88


shirt39.jpg is an existing file and shirt35.jpg is supposed to be the result.. but it gives out that error.

can anyone help? Thanks
puzzled is offline   Reply With Quote
Old 10-26-2010, 03:18 PM   PM User | #3
puzzled
New to the CF scene

 
Join Date: Oct 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
puzzled is an unknown quantity at this point
follow up reply:

ok i tried doing this outside wordpress (note: that i'm using this inside wordpress) when i moved it out, it actually worked! so my question now is, what kind of location do i place so that it won't go on an error in wordpress? thanks.
puzzled is offline   Reply With Quote
Reply

Bookmarks

Tags
error, move, php, rename, warning

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:51 AM.


Advertisement
Log in to turn off these ads.