Re: Mkdir!

From: Date: Mon, 05 Aug 2002 07:21:06 +0000
Subject: Re: Mkdir!
Groups: php.general 
Request: Send a blank email to php-general+get-111177@lists.php.net to get a copy of this message
>When I create directories in PHP through the mkdir() command, what number >should I set the mode so I have the priveleges to delete the directory >through FTP? I used to always set them to 777 but then when I try to delete >the directories in FTP, it doesnt let me, and I have to write a PHP script >that deletes the folders! Note that mkdir() works in conjunction with http://php.net/umask so that you *MIGHT* need to do: <?php umask('0000'); mkdir('/path/to/dir', '0777'); ?> if you expect to actually *GET* a 777 directory. If the mkdir documentation doesn't say anything about this, add a Note... Though I thought I did that about two years ago... :-) -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input sound card supported by Linux (any major distro). Need to record live events (mixed already) to stereo CD-quality. Soundcard Recommendations? Software to handle the recording? Don't need fancy mixer stuff. Zero (0) post-production time. Just raw PCM/WAV/AIFF 16+ bit, 44.1KHz, Stereo audio-to-disk.

« previous php.general (#111177) next »