function help[CLOSED] - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: function help[CLOSED] (/showthread.php?tid=1104) |
function help[CLOSED] - eru321 - 2010-11-08 Thx to eveyone, solved. this is the code: Code: function directoryToArray($directory, $recursive) { Code: <?php and this is the error: Warning: preg_replace() [function.preg-replace]: Unknown modifier '/' in E:\internet\EasyPHP-5.3.2i\www\GetSimple\theme\MyTheme\functions.php on line 22 for every file. I've tried this code in a blank php page and it'works. Where's the problem. plugin exec-php is installed and html editor off. Ciao function help[CLOSED] - dominionit - 2010-11-08 have you tried Code: $array_items[] = preg_replace("/\/\/\/s/i", "/", $file); just a quick geuss no time to test yet (sorry missed the ending / added that later) function help[CLOSED] - eru321 - 2010-11-08 THX. Solved the problem about preg_replace. Now i've a problem with the link... GSDATAUPLOADPATH doesn't work. so I changed in $directory="http://localhost/GetSimple/data/uploads/"; and now it retunrs another error: Warning: opendir(http://localhost/GetSimple/data/uploads/) [function.opendir]: failed to open dir: not implemented in E:\internet\EasyPHP-5.3.2i\www\GetSimple\plugins\exec-php.php(30) : eval()'d code on line 4 any idea? function help[CLOSED] - eru321 - 2010-11-08 $array_items[] = preg_replace("/\/\/\/s/i", "/", $file); when i update the page become $array_items[] = preg_replace("////si", "/", $file); idea? ciao |