News Feed
Jobs Feed
Sections




News Archive
Nessa's Blog:
Working with Permissions in PHP
December 24, 2007 @ 09:22:00

On her blog Nessa has a brief look at working with permissions with PHP via three functions - chown, chgrp and chmod.

PHP uses the same command as *nix systems when dealing with changing permissions for files. These commands are particularly useful in situations where PHP runs as a different user on the system, which is common when PHP is compiled as an Apache user.

She includes a basic syntax for each of them and how one (chmod) could be used in an example of file creation.

1 comment voice your opinion now!
permissions chmod chgrp chown function file permissions chmod chgrp chown function file


blog comments powered by Disqus

Similar Posts

DevShed: Handling Cookies and File Data with the Factory Pattern in PHP 5

Nexen.net: PHP month of functions

Nessa's Blog: Working with Permissions in PHP

SitePoint PHP Blog: Dynamic global functions in PHP

Abhinav Singh's Blog: How to use locks in PHP cron jobs to avoid cron overlaps


Community Events









Don't see your event here?
Let us know!


code development release event tool podcast api zendframework2 interview framework opinion introduction community language composer testing object unittest functional example

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework