Jump to content

problems with rename() function


JJohnsenDK

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.