[pmwiki-devel] GLOB prob

Patrick R. Michaud pmichaud at pobox.com
Sat Nov 4 09:45:47 CST 2006


On Fri, Nov 03, 2006 at 05:52:12PM -0500, The Editor wrote:
> Coming along great with ZAPnews (newsletter, mlm recipe)...
> 
> I got stuck on this line.  Any suggestions?  $dir = wiki.d.
> Temp-MailList is the group containing my queued newsletters. I want $p
> to be an array of all the pmwiki page names in the specified group.
> 
> $p = glob('$dir/Temp-MailList.*');
> print_r($p);
> die();

You probably need double-quotes instead of single quotes, otherwise
the glob() function will look literally for a directory named '$dir'.

Also, note that glob() is only available on PHP >= 4.3.0 .
(This probably doesn't matter for ZAP, which could easily claim
that PHP 4.3.0 is a minimum.  PmWiki itself still uses 4.1.0 as
the minimum requirement.)

Pm



More information about the pmwiki-devel mailing list