[pmwiki-users] (:include Main.SomePage#FromHere#ToHere:) in PHP ?

Patrick R. Michaud pmichaud at pobox.com
Mon Sep 10 11:52:09 CDT 2007


On Mon, Sep 10, 2007 at 10:37:05AM +0200, Christophe David wrote:
> Could someone please post the PHP code equivalent to
> 
> (:include Main.SomePage#FromHere#ToHere:)
> 
> It can be done with ReadPage() followed by a regular expression
> search, but there must be an easier way to do it...

   $text = RetrieveAuthSection($pagename, 'Main.SomePage#FromHere#ToHere');

Pm



More information about the pmwiki-users mailing list