Jump to content

[SOLVED] whats the difference between file systems in Linux and windows


ludjer

Recommended Posts

whats the difference between file systems in Linux and windows

 

im doing a 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?

 

thanks alot in advance

hi

 

php itself will handle most of the file sytems differences, but there are some things you need to do, such as:

 

1. windows uses \ and linux uses /

2. windows uses drive letters, linux does not. Usually its better to use relatives paths.

 

example: opening a file

//Win: note the backslashes
$file = fopen("c:\\temp\\myfile.txt", "r");
//Lin:
$file = fopen("/tmp/myfile.txt", "r");

 

while my windows knowledge is pretty basic, feel free to ask more if i have missed something in your question.

 

cheers,

tdw

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.