Jump to content

PHP CRLF


RobertP

Recommended Posts

sweet, 1 more question ...

is there a way to check a folders permissions using php? i set the permission with htaccess, but i want to make sure the access is correct.

 

You can check the permissions -- no problem there.  I don't follow your htaccess comment though.  An htaccess doesn't set permissions, it simply defines apache/php settings (if apache has been configured to allow this) for a particular directory.  The file system permissions are independent of an htaccess file.

 

With that said, php has the function fileperms that will get you the perms on a file or directory.  I don't use php on windows, so I can't speak from experience in terms of how compatible it is with windows OS's as the permissions schemes are very different.

Link to comment
Share on other sites

I don't use php on windows, so I can't speak from experience in terms of how compatible it is with windows OS's as the permissions schemes are very different.

 

if you use cygwin or something and do a "ls -lia" you will see that things that can be run are marked with x, things that are readonly aren't marked with w and so on

I think ntfs uses the chmod policy but windows explorer hides it from the user

except if you try to share the folder, then you will see the permition settings

 

oh btw, to set a folder and/or file permition use chmod

bool chmod ( string $filename , int $mode )

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.