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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.