JJohnsenDK Posted October 10, 2007 Share Posted October 10, 2007 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 More sharing options...
JJohnsenDK Posted October 10, 2007 Author Share Posted October 10, 2007 anyone?? Link to comment https://forums.phpfreaks.com/topic/72621-problems-with-rename-function/#findComment-366448 Share on other sites More sharing options...
marcus Posted October 10, 2007 Share Posted October 10, 2007 Try using a full path /home/YOU/public_html/images/etc...... Link to comment https://forums.phpfreaks.com/topic/72621-problems-with-rename-function/#findComment-366451 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.