Renlok Posted December 10, 2008 Share Posted December 10, 2008 I dont own a windows so i have no way of testing this but im building an open source script but the guy who helps me test it says that it shows errors when it references some files. i have the following bit of code to build the paths to the directories includes and uploaded $main_path = "W:\www\WeBid\\"; $include_path = $main_path."includes/"; $uploaded_path = "uploaded/"; $upload_path = $main_path.$uploaded_path; it seems when $include_path is used theres no problem but when $upload_path is used it leaves the 2 backslashes at the end the path is W:\www\WeBid\\uploaded/ which throws back an error i dont know why it does this. Quote Link to comment https://forums.phpfreaks.com/topic/136366-problems-with-directories/ Share on other sites More sharing options...
trq Posted December 10, 2008 Share Posted December 10, 2008 \ is the escape char when used within double quotes, so in order for \ to actually show up within.... $main_path = "W:\www\WeBid\\"; You would need to use.... $main_path = "W:\\www\\WeBid\\"; Quote Link to comment https://forums.phpfreaks.com/topic/136366-problems-with-directories/#findComment-711522 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.