[pmwiki-users] PHP includes

Gregory Martyn GMartyn at JudicialTitle.com
Thu Aug 10 09:55:54 CDT 2006


Hi all,
 
I'm trying to write markup that will include an eval()'ed php script in my wiki. My php is simple:
<?php echo 'testing'; ?>
 
 
Right now I have this in my config.php:
 
Markup('includefile', 'inline',
  "/\\(:includefile\\s+(file:[^$UrlExcludeChars]*?)\\s*:\\)/e",
  "Keep(eval(file_get_contents(str_replace('&amp;','&','$1'))))");
 
 
The markup:
(:includefile file:///var/www/html/test.txt :)
 
..almost works, but the result is not inline with the rest of the text. Instead, when I do View->Page Source, the word testing preceeds the source of the rest of the page. Is there any way to get the output of the php script in the right place?
 
Thanks,
Greg Martyn


All email sent to or from The Judicial Title Insurance Agency LLC corporate email system is subject to archival, monitoring and/or review by The Judicial Title Insurance Agency LLC personnel. The information contained in this electronic transmission is legally privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this transmission is not the intended recipient, or an authorized representative of the recipient, you are hereby notified that any dissemination, distribution or copying of this transmission is strictly prohibited. If you have received this transmission in error, please notify the sender immediately by return email and delete the message and any attachments from your system.





More information about the pmwiki-users mailing list