This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function recursiveChmod ($path, $filePerm=0644, $dirPerm=0755) { | |
| // Check if the path exists | |
| if (!file_exists($path)) { | |
| return(false); | |
| } | |
| // See whether this is a file | |
| if (is_file($path)) { | |
| // Chmod the file with our given filepermissions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| Working with XML. Usage: | |
| $xml=xml2ary(file_get_contents('1.xml')); | |
| $link=&$xml['ddd']['_c']; | |
| $link['twomore']=$link['onemore']; | |
| // ins2ary(); // dot not insert a link, and arrays with links inside! | |
| echo ary2xml($xml); | |
| */ |
NewerOlder