pedrobcabral Posted March 12, 2007 Share Posted March 12, 2007 I'm trying to make an upload and destiny variable is set to: $destiny = "folder\\"; the problem is that the file renames to "folder\file.jpg" instead of going to the folder called folder. How can i solve this? thanks. Link to comment https://forums.phpfreaks.com/topic/42340-upload-dir/ Share on other sites More sharing options...
monk.e.boy Posted March 12, 2007 Share Posted March 12, 2007 try a full path: $s = '/my/long/path/file.png'; monk.e.boy Link to comment https://forums.phpfreaks.com/topic/42340-upload-dir/#findComment-205453 Share on other sites More sharing options...
thephpguy Posted March 12, 2007 Share Posted March 12, 2007 of use double backslashes IE c:\\test\\file.jpg Link to comment https://forums.phpfreaks.com/topic/42340-upload-dir/#findComment-205778 Share on other sites More sharing options...
papaface Posted March 12, 2007 Share Posted March 12, 2007 You should be making it: $destiny = "/folder"; not: $destiny = "folder\\"; Link to comment https://forums.phpfreaks.com/topic/42340-upload-dir/#findComment-205780 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.