Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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.

  • #2
    New to the CF scene
    Join Date
    Oct 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #3
    New to the CF scene
    Join Date
    Oct 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •