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 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 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 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? 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
Archived
This topic is now archived and is closed to further replies.