Jump to content

Recommended Posts

Hey

 

Im having problems with the rename function. I have my local webserver where it works fine, but on the server where my website is located it doesnt rename the folder. I tried changing the CHMOD to 777 but this doesnt help me either. What to do?

 

Here is the code im using, not that i think it can help because i as wrote, the whole thing works fine on my local server:

 

<?php
$folder = "images/products/".get_type_name($_POST['type'])."/".strtolower(eregi_replace(" ", "_", $_POST['name']))."";
$new_folder = "images/products/".get_type_name($_POST['type'])."/".strtolower(eregi_replace(" ", "_", $_POST['new_name']))."";

rename($folder, $new_folder);
?>

Link to comment
https://forums.phpfreaks.com/topic/72621-problems-with-rename-function/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.