<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: WordPress Plugin - Safe Include</title>
	<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/</link>
	<description>Marketing, entrepreneurship, php programming</description>
	<pubDate>Fri, 05 Sep 2008 23:17:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0</generator>

	<item>
		<title>by: Ian Heggie</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-1131</link>
		<pubDate>Thu, 17 Aug 2006 07:01:31 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-1131</guid>
					<description>Mmm... having justify on spaces out the code ... there is only one space after the comma, and between the underline and A-Z.</description>
		<content:encoded><![CDATA[<p>Mmm&#8230; having justify on spaces out the code &#8230; there is only one space after the comma, and between the underline and A-Z.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ian Heggie</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-1130</link>
		<pubDate>Thu, 17 Aug 2006 06:58:36 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-1130</guid>
					<description>Plugin works well. I changed the match pattern to match only safe file names:
&lt;code&gt;
define('_MatchPattern_', '/{{([A-Z0-9][-\._ A-Z0-9]*)}}/iU');
&lt;/code&gt;

Thanks again,
Ian</description>
		<content:encoded><![CDATA[<p>Plugin works well. I changed the match pattern to match only safe file names:<br />
<code><br />
define('_MatchPattern_', '/{{([A-Z0-9][-\._ A-Z0-9]*)}}/iU');<br />
</code></p>
<p>Thanks again,<br />
Ian
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Caroline</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-990</link>
		<pubDate>Wed, 02 Aug 2006 00:59:43 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-990</guid>
					<description>Hello Jack, question for you...what about pulling the blog contents onto a static web html page?  Can the plug in do that?  I need to dynamically replicate the headlines from the three most recent posts to the blog, on my homepage, index.html.  Suggestions welcome!</description>
		<content:encoded><![CDATA[<p>Hello Jack, question for you&#8230;what about pulling the blog contents onto a static web html page?  Can the plug in do that?  I need to dynamically replicate the headlines from the three most recent posts to the blog, on my homepage, index.html.  Suggestions welcome!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Todd</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-981</link>
		<pubDate>Mon, 31 Jul 2006 14:18:13 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-981</guid>
					<description>Hi. I am trying to include the page www.iscramla.com/plogger in my wordpress layout. Will this plugin work, and if so, how?</description>
		<content:encoded><![CDATA[<p>Hi. I am trying to include the page <a href='http://www.iscramla.com/plogger' rel='nofollow'>www.iscramla.com/plogger</a> in my wordpress layout. Will this plugin work, and if so, how?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: a crank&#8217;s progress &#187; WordPress, Pages, and php includes</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-826</link>
		<pubDate>Tue, 18 Jul 2006 15:32:56 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-826</guid>
					<description>[...] It has been a long time coming but I finally found a way to integrate static content into WordPress&amp;#8217;s Pages. Pages with a P are like posts but exist outside their time-based organization. [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] It has been a long time coming but I finally found a way to integrate static content into WordPress&#8217;s Pages. Pages with a P are like posts but exist outside their time-based organization. [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: paul</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-820</link>
		<pubDate>Tue, 18 Jul 2006 05:54:46 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-820</guid>
					<description>Trying to get this working: here's what debug says. 

/opt/www/wordpress/wp-content/plugins/safeIncludes/zeitgeist.php is iPath
/opt/www/wordpress/wp-content/plugins/safeIncludes/zeitgeist.htm is iPath
/opt/www/wordpress/wp-content/plugins/safeIncludes/zeitgeist.html is iPath

the file exists:
file /opt/www/wordpress/wp-content/plugins/safeIncludes/zeitgeist.html
/opt/www/wordpress/wp-content/plugins/safeIncludes/zeitgeist.html: UTF-8 Unicode English text, with very long lines

Hmm, never mind. I added .txt to the AllowedSuffixes, changed the filename and hey presto. 

Thanks, Jack. </description>
		<content:encoded><![CDATA[<p>Trying to get this working: here&#8217;s what debug says. </p>
<p>/opt/www/wordpress/wp-content/plugins/safeIncludes/zeitgeist.php is iPath<br />
/opt/www/wordpress/wp-content/plugins/safeIncludes/zeitgeist.htm is iPath<br />
/opt/www/wordpress/wp-content/plugins/safeIncludes/zeitgeist.html is iPath</p>
<p>the file exists:<br />
file /opt/www/wordpress/wp-content/plugins/safeIncludes/zeitgeist.html<br />
/opt/www/wordpress/wp-content/plugins/safeIncludes/zeitgeist.html: UTF-8 Unicode English text, with very long lines</p>
<p>Hmm, never mind. I added .txt to the AllowedSuffixes, changed the filename and hey presto. </p>
<p>Thanks, Jack. 
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Drew Decker</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-745</link>
		<pubDate>Sun, 09 Jul 2006 23:29:06 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-745</guid>
					<description>I was wondering... if I do the static pages...can i use the &quot;pages&quot; to do static pages...or do i have to stick with the &quot;post&quot; option (wordpress: write &amp;#62; post) ..

Also, if I have to do the &quot;post&quot; option, will it had my static posts...since I do use a &quot;recent posts&quot; plugin...and i don't want it to display a static page as a recent post... 

thanks.</description>
		<content:encoded><![CDATA[<p>I was wondering&#8230; if I do the static pages&#8230;can i use the &#8220;pages&#8221; to do static pages&#8230;or do i have to stick with the &#8220;post&#8221; option (wordpress: write &gt; post) ..</p>
<p>Also, if I have to do the &#8220;post&#8221; option, will it had my static posts&#8230;since I do use a &#8220;recent posts&#8221; plugin&#8230;and i don&#8217;t want it to display a static page as a recent post&#8230; </p>
<p>thanks.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Lozbo</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-614</link>
		<pubDate>Sun, 25 Jun 2006 06:41:46 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-614</guid>
					<description>Dame Jack, you don't know how much time i wasted on trying to get a plug in like this... Thank you very much! I just don't understand why wp is not allowing the correct (standard strict xhtml) markup for a table stay as is;

I use this structure:

table
  thead
   tr
    th
  tbody
    tr
     th
     td

And wp keeps taking out some closing tags I dont know why. Anyway with safeInclude I manage to display it correctly. Thanks again very much!</description>
		<content:encoded><![CDATA[<p>Dame Jack, you don&#8217;t know how much time i wasted on trying to get a plug in like this&#8230; Thank you very much! I just don&#8217;t understand why wp is not allowing the correct (standard strict xhtml) markup for a table stay as is;</p>
<p>I use this structure:</p>
<p>table<br />
  thead<br />
   tr<br />
    th<br />
  tbody<br />
    tr<br />
     th<br />
     td</p>
<p>And wp keeps taking out some closing tags I dont know why. Anyway with safeInclude I manage to display it correctly. Thanks again very much!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: John Brackett</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-489</link>
		<pubDate>Thu, 15 Jun 2006 22:48:51 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-489</guid>
					<description>I used the debugging tool and received the following error. I'm using IIS6 and PHP 4.3 and all other .PHP file are readable. Any Ideas?

d:\Inetpub\vhosts\themoneyhelper.com\httpdocs\wp-content/safeIncludes/home_exerpts.php.php is iPath
d:\Inetpub\vhosts\themoneyhelper.com\httpdocs\wp-content/safeIncludes/home_exerpts.php.htm is iPath
d:\Inetpub\vhosts\themoneyhelper.com\httpdocs\wp-content/safeIncludes/home_exerpts.php.html is iPath</description>
		<content:encoded><![CDATA[<p>I used the debugging tool and received the following error. I&#8217;m using IIS6 and PHP 4.3 and all other .PHP file are readable. Any Ideas?</p>
<p>d:\Inetpub\vhosts\themoneyhelper.com\httpdocs\wp-content/safeIncludes/home_exerpts.php.php is iPath<br />
d:\Inetpub\vhosts\themoneyhelper.com\httpdocs\wp-content/safeIncludes/home_exerpts.php.htm is iPath<br />
d:\Inetpub\vhosts\themoneyhelper.com\httpdocs\wp-content/safeIncludes/home_exerpts.php.html is iPath
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Administrator</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-420</link>
		<pubDate>Sat, 10 Jun 2006 17:17:59 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-420</guid>
					<description>Alby,
It's generally not a good idea to suggest that I rename my constants within my code if you are looking for free help. It's condescending -- and beyond that, incorrect.

Here's the deal:
The way my plugin is currently written, if you have &quot;foo.htm&quot; and &quot;foo.php&quot; on your server then there's a potential name collision.  To avoid the confusion, my plugin looks for files with the extensions listed in AllowedSuffixes in the order in which you list them.  If you put .htm first, then it will grab foo.htm and disregard foo.php.  If you put .php first, it will grab foo.php and disregard foo.htm.

Now...

If you have no name collision: you have foo.htm and bar.php on your server... then my plugin will find BOTH files.

Second point...

You should not put image files (or javascript, or css, etc etc) inside of the safeIncludes directory.

Why?

Because this is supposed to be the directory where my plugin goes looking for 'include' files... not images, not js, not css.

(You could make it work as you currently have it by changing your link to src=&quot;/wp/safeIncludes/image.gif&quot; where wp is your actual wordpress directory, whatever you are using)

I recommend you have an image folder in the public root of your server (&quot;/images&quot;) and you put your image files there. Then, in page1.htm you could have an image link such as src=&quot;/image.gif&quot;. Please note the leading slash.  It's important.</description>
		<content:encoded><![CDATA[<p>Alby,<br />
It&#8217;s generally not a good idea to suggest that I rename my constants within my code if you are looking for free help. It&#8217;s condescending &#8212; and beyond that, incorrect.</p>
<p>Here&#8217;s the deal:<br />
The way my plugin is currently written, if you have &#8220;foo.htm&#8221; and &#8220;foo.php&#8221; on your server then there&#8217;s a potential name collision.  To avoid the confusion, my plugin looks for files with the extensions listed in AllowedSuffixes in the order in which you list them.  If you put .htm first, then it will grab foo.htm and disregard foo.php.  If you put .php first, it will grab foo.php and disregard foo.htm.</p>
<p>Now&#8230;</p>
<p>If you have no name collision: you have foo.htm and bar.php on your server&#8230; then my plugin will find BOTH files.</p>
<p>Second point&#8230;</p>
<p>You should not put image files (or javascript, or css, etc etc) inside of the safeIncludes directory.</p>
<p>Why?</p>
<p>Because this is supposed to be the directory where my plugin goes looking for &#8216;include&#8217; files&#8230; not images, not js, not css.</p>
<p>(You could make it work as you currently have it by changing your link to src=&#8221;/wp/safeIncludes/image.gif&#8221; where wp is your actual wordpress directory, whatever you are using)</p>
<p>I recommend you have an image folder in the public root of your server (&#8221;/images&#8221;) and you put your image files there. Then, in page1.htm you could have an image link such as src=&#8221;/image.gif&#8221;. Please note the leading slash.  It&#8217;s important.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: alby</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-416</link>
		<pubDate>Fri, 09 Jun 2006 17:34:30 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-416</guid>
					<description>So If I insert 2 files inner folder safeIncludes
so:
page1.htm
page2.php
and the suffix is ... ‘.htm&amp;#124;.php&amp;#124;.html’)

and I have 2 link at their pages
link 1 page1, is page1 with code {{page1}}
link 2 page2, is page2 with code {{page2}}

I see only page1?
If so I can create only a list of link that can use only same extension (no mixer extension);
if is so then the correct name of
AllowedSuffixes
would to be
AllowedSuffixesOnlyOneForTime
--------------
regard 2nd point
I have this
safeIncludes/page1.htm
safeIncludes/page1_file/image.gif
and the src is:
src=”page1_file/image.gif”
the link is correct:
work if I click direct ther file page1.htm;
not work with safe-include;
I have tested also url absolute
but not work.
any idea?</description>
		<content:encoded><![CDATA[<p>So If I insert 2 files inner folder safeIncludes<br />
so:<br />
page1.htm<br />
page2.php<br />
and the suffix is &#8230; ‘.htm|.php|.html’)</p>
<p>and I have 2 link at their pages<br />
link 1 page1, is page1 with code {{page1}}<br />
link 2 page2, is page2 with code {{page2}}</p>
<p>I see only page1?<br />
If so I can create only a list of link that can use only same extension (no mixer extension);<br />
if is so then the correct name of<br />
AllowedSuffixes<br />
would to be<br />
AllowedSuffixesOnlyOneForTime<br />
&#8212;&#8212;&#8212;&#8212;&#8211;<br />
regard 2nd point<br />
I have this<br />
safeIncludes/page1.htm<br />
safeIncludes/page1_file/image.gif<br />
and the src is:<br />
src=”page1_file/image.gif”<br />
the link is correct:<br />
work if I click direct ther file page1.htm;<br />
not work with safe-include;<br />
I have tested also url absolute<br />
but not work.<br />
any idea?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Administrator</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-408</link>
		<pubDate>Thu, 08 Jun 2006 12:01:32 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-408</guid>
					<description>Changing the order of the suffixes changes the order in which the plugin looks for your pages.  If you start with .htm then it first looks for a page with .htm

If it finds a page with .htm then it won't continue searching.

The image issue can be fixed by fixing your html.

Instead of src=&quot;image.gif&quot;

Try src=&quot;/dir/to/image.gif&quot;</description>
		<content:encoded><![CDATA[<p>Changing the order of the suffixes changes the order in which the plugin looks for your pages.  If you start with .htm then it first looks for a page with .htm</p>
<p>If it finds a page with .htm then it won&#8217;t continue searching.</p>
<p>The image issue can be fixed by fixing your html.</p>
<p>Instead of src=&#8221;image.gif&#8221;</p>
<p>Try src=&#8221;/dir/to/image.gif&#8221;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: alby</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-401</link>
		<pubDate>Wed, 07 Jun 2006 19:27:14 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-401</guid>
					<description>correction 
If I insert 2 files inner folder safeIncludes
so:
page1.htm
page2.php

and the setting is
AllowedSuffixes_’, ‘.php&amp;#124;.htm&amp;#124;.html’)

work only page2.php

but if I change
AllowedSuffixes_’, ‘.htm&amp;#124;.php&amp;#124;.html’)
work only page1.htm

so work only the first suffixes;

another:
in the page1.htm I not see the image (same problem
of the other your plugin static)</description>
		<content:encoded><![CDATA[<p>correction<br />
If I insert 2 files inner folder safeIncludes<br />
so:<br />
page1.htm<br />
page2.php</p>
<p>and the setting is<br />
AllowedSuffixes_’, ‘.php|.htm|.html’)</p>
<p>work only page2.php</p>
<p>but if I change<br />
AllowedSuffixes_’, ‘.htm|.php|.html’)<br />
work only page1.htm</p>
<p>so work only the first suffixes;</p>
<p>another:<br />
in the page1.htm I not see the image (same problem<br />
of the other your plugin static)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Administrator</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-92</link>
		<pubDate>Fri, 21 Apr 2006 17:45:39 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-92</guid>
					<description>Turn debugging on:

define('_DebugCode_', false);/*true = show include path :: keep false unless you are debugging!*/

change to

define('_DebugCode_', true);/*true = show include path :: keep false unless you are debugging!*/</description>
		<content:encoded><![CDATA[<p>Turn debugging on:</p>
<p>define(&#8217;_DebugCode_&#8217;, false);/*true = show include path :: keep false unless you are debugging!*/</p>
<p>change to</p>
<p>define(&#8217;_DebugCode_&#8217;, true);/*true = show include path :: keep false unless you are debugging!*/
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jay</title>
		<link>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-91</link>
		<pubDate>Fri, 21 Apr 2006 15:27:12 +0000</pubDate>
		<guid>http://jackborn.com/blog/2006/01/06/wordpress-plugin-safe-include/#comment-91</guid>
					<description>And i got no idea why the script isnt working, i have did the main steps, installed the plugin, created the safeIncludes directory in the themes folder, placed the files in them, created a post, placed {{test1}} as my file inside the safeIncludes test1.htm and it shows nothing on the page. i am using wordpress 2.0, does you script have anything to do with the .htaccess? cause it's weird its not working, what worked is the  which we can use without any script. please can you tell me if i am missing anything? regards</description>
		<content:encoded><![CDATA[<p>And i got no idea why the script isnt working, i have did the main steps, installed the plugin, created the safeIncludes directory in the themes folder, placed the files in them, created a post, placed {{test1}} as my file inside the safeIncludes test1.htm and it shows nothing on the page. i am using wordpress 2.0, does you script have anything to do with the .htaccess? cause it&#8217;s weird its not working, what worked is the  which we can use without any script. please can you tell me if i am missing anything? regards
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
