00240: includeurl produces errors

Summary: includeurl produces errors
Created: 2004-12-18 11:13
Status: Closed - not a bug
Category: Bug
Assigned:
Priority: 2
Version: 2.0.beta6
OS: OS: Apache/1.3.29 (Unix) PHP/4.3.6

Description: using includeurl: markup produces errors: (in addition to adding the markup to config.php, is there an additional configuration setting?)

Warning: file(): URL file-access is disabled in the server configuration in /home/pathtokn/www/pmwiki/pmwiki.php(848) : regexp code on line 1

Warning: file(http://example.com): failed to open stream: no suitable wrapper could be found in /home/pathtokn/www/pmwiki/pmwiki.php(848) : regexp code on line 1

Warning: implode(): Bad arguments. in /home/pathtokn/www/pmwiki/pmwiki.php(848) : regexp code on line 1

Warning: Cannot modify header information - headers already sent by (output started at /home/pathtokn/www/pmwiki/pmwiki.php(848) : regexp code:1) in /home/pathtokn/www/pmwiki/pmwiki.php on line 593


Alas, this isn't a bug in PmWiki -- your PHP server is configured such that it doesn't allow scripts to retrieve documents from other places on the web. Thus the (:includeurl:) markup won't work on your system. Sorry. --Pm

Thanks for the info, sorry about the bug report. For anyone with a similar problem, I found a work-around by enabling html and adding "iframe" to the allowed html codes, then including the desired html page as an iframe. A little more cumbersome, but it did what I wanted (and is only used on locked pages) --KeithCampbell