[Pmwiki-users] Cookbook/ImagesAutoResizing --> fatal error
Pierre Rouzeau
pierre
Sun Jan 16 14:42:38 CST 2005
Pierre Rouzeau a ?crit :
Hello,
The faulty line is :
foreach (glob($UploadDir.'/zw_*') as $killfile) unlink ($killfile);
This function is there to search all files corresponding to a pattern,
in order to kill them. This function only exist for php 4.3.0 and over,
and i should not have used it... sorry.
I have replaced the above and another similar line by a call to the
herebelow function :
function CleanDirZ($dir) {
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) {
if (substr($file,0,3) == 'zw_') unlink ($dir.$file);
}
closedir($handle);
}
}
Called by
CleanDirZ($UploadDir.'/');
Less elegant, for sure...
Regards
> Stephan Schildberg a ?crit :
>
> Hello,
>
> I have installed Pierre Rouzeau's ImagesAutoResizing files which look
> promising :-) but I get this error.
> For me the solution is not obvious.*
> *By the time, when I click on "upload " button this happens:
>
> *Fatal error*: Call to undefined function: glob() in
> */home/pacs/svr02/users/akloek/doms/neue-arbeit-hamburg.de/subs/www/cookbook/minimage.php*
> on line *160
> *
> Why I encounter this event here?
>
> Stephan.
>
Page principale - Main page - www.rouzeau.net <http://www.rouzeau.net>
---------------------------------------------------------------------------
More information about the pmwiki-users
mailing list