Re: cvs: peardoc /peardoc2/en/package/filesystem file-htaccess.xml /peardoc2/en/package/filesystem/file-htaccess addrequire.xml delrequire.xml
file-htaccess.xml intro.xml load.xml save.xml setrequire.xml
| From: | Alan Knowles | Date: | Tue, 17 Jun 2003 12:34:58 +0000 |
| Subject: | Re: cvs: peardoc /peardoc2/en/package/filesystem file-htaccess.xml /peardoc2/en/package/filesystem/file-htaccess addrequire.xml delrequire.xml file-htaccess.xml intro.xml load.xml save.xml setrequire.xml |
||
| References: | 1 | Groups: | php.pear.doc php.pear.doc |
| Request: | Send a blank email to pear-doc+get-945@lists.php.net to get a copy of this message | ||
Mike, for some reason your editor is putting utf8 characters in here. - xlstproc is picking it up..
Regards
Alan
+require_once('File_HtAccess.php'); + +/* create a new .htaccess file with given parameters */+$params['authname'] = 'Private'; +$params['authtype'] = 'Basic';+$params['authuserfile'] = '/path/to/.htpasswd'; +$params['authgroupfile'] = '/path/to/.htgroup';+$params['require'] = array('group', 'admins'); +