ludjer Posted January 6, 2009 Share Posted January 6, 2009 whats the difference between file systems in Linux and windows when using php file commands and stuff? im doing a PHP project on my windows pc, but it will be running on a linux server now i need to know what are the main differences when it comes to handling files on different files system using php? what must i look out for and how to make sure it is multi thanks alot in advance Quote Link to comment https://forums.phpfreaks.com/topic/139674-handeling-files-on-difffrent-file-systems/ Share on other sites More sharing options...
JonnoTheDev Posted January 6, 2009 Share Posted January 6, 2009 Paths Windows: c:\mystuff\file.txt Linux /home/user/file.txt Quote Link to comment https://forums.phpfreaks.com/topic/139674-handeling-files-on-difffrent-file-systems/#findComment-730816 Share on other sites More sharing options...
PFMaBiSmAd Posted January 6, 2009 Share Posted January 6, 2009 PHP on Windows converts / to \ internally so the following works on Windows as well - /home/user/file.txt Quote Link to comment https://forums.phpfreaks.com/topic/139674-handeling-files-on-difffrent-file-systems/#findComment-730833 Share on other sites More sharing options...
ludjer Posted January 6, 2009 Author Share Posted January 6, 2009 PHP on Windows converts / to \ internally so the following works on Windows as well - /home/user/file.txt thanks alot that helps alot, now that i know that i think i will use / only now and spaces? do i still have to escape them or not? Quote Link to comment https://forums.phpfreaks.com/topic/139674-handeling-files-on-difffrent-file-systems/#findComment-730919 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.