<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments for Ask Michel Komarov</title>
	<link>http://askmichel.icoder.com</link>
	<description>i Code to help you profit!</description>
	<pubDate>Sat, 22 Nov 2008 02:42:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.3</generator>

	<item>
		<title>Comment on Exit page redirect by michel</title>
		<link>http://askmichel.icoder.com/2006/06/26/exit-page-redirect/#comment-296</link>
		<pubDate>Fri, 21 Nov 2008 06:52:44 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/06/26/exit-page-redirect/#comment-296</guid>
					<description>Hi Andrei,

1. Yes, the &quot;refresh&quot; button triggers the &lt;code&gt;onUnload&lt;/code&gt; event.
So the script would work when you press F5.

2. It was tested on Firefox and IExplorer only.
However it even doesn't work on new FF versions...

Michel</description>
		<content:encoded><![CDATA[<p>Hi Andrei,</p>
<p>1. Yes, the &#8220;refresh&#8221; button triggers the <code>onUnload</code> event.<br />
So the script would work when you press F5.</p>
<p>2. It was tested on Firefox and IExplorer only.<br />
However it even doesn&#8217;t work on new FF versions&#8230;</p>
<p>Michel
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Exit page redirect by iSeeU</title>
		<link>http://askmichel.icoder.com/2006/06/26/exit-page-redirect/#comment-295</link>
		<pubDate>Thu, 20 Nov 2008 16:42:59 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/06/26/exit-page-redirect/#comment-295</guid>
					<description>Michel,

Thank you, I've used your script on my website, it was easy to implement, and does exactly what I want it to do! I didn't think it would be so easy!

Would you be kind enough to answer my questions?

1. Is it supposed to activate when the &quot;refresh&quot; button is pressed?

2. Does it not work on Safari, Chrome &amp;#38; other browsers, but Firefox &amp;#38; Explorer?

Thanks,

 Andrei</description>
		<content:encoded><![CDATA[<p>Michel,</p>
<p>Thank you, I&#8217;ve used your script on my website, it was easy to implement, and does exactly what I want it to do! I didn&#8217;t think it would be so easy!</p>
<p>Would you be kind enough to answer my questions?</p>
<p>1. Is it supposed to activate when the &#8220;refresh&#8221; button is pressed?</p>
<p>2. Does it not work on Safari, Chrome &amp; other browsers, but Firefox &amp; Explorer?</p>
<p>Thanks,</p>
<p> Andrei
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Content rotation by gorky5</title>
		<link>http://askmichel.icoder.com/2006/10/30/content-rotation/#comment-294</link>
		<pubDate>Wed, 29 Oct 2008 12:36:47 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/10/30/content-rotation/#comment-294</guid>
					<description>Ah, so simple, yet so elusive. Thanks so much Michel! I'm really grateful for your help with this - it's solved a lot of problems for me.

I'm pretty much a php newbie, with my knowledge limited to hacking around with WordPress themes. I appreciate you sharing your knowledge with others.

Joe</description>
		<content:encoded><![CDATA[<p>Ah, so simple, yet so elusive. Thanks so much Michel! I&#8217;m really grateful for your help with this - it&#8217;s solved a lot of problems for me.</p>
<p>I&#8217;m pretty much a php newbie, with my knowledge limited to hacking around with WordPress themes. I appreciate you sharing your knowledge with others.</p>
<p>Joe
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Content rotation by michel</title>
		<link>http://askmichel.icoder.com/2006/10/30/content-rotation/#comment-293</link>
		<pubDate>Tue, 28 Oct 2008 16:56:14 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/10/30/content-rotation/#comment-293</guid>
					<description>Hi Joe,

Lets suppose you have 365 files named as &lt;code&gt;1.html&lt;/code&gt;, &lt;code&gt;2.html&lt;/code&gt;, ..., &lt;code&gt;180.html&lt;/code&gt;, ..., &lt;code&gt;365.html&lt;/code&gt; . One file per a day of the year. Then you don't need this &lt;code&gt;content-rotation.php&lt;/code&gt; or &lt;code&gt;index.php&lt;/code&gt; files.

You can use this simple php-snippet below to include your numbered html-files into any of your php-pages:

&lt;code&gt;&amp;#60;?php
include ( date(&amp;#34;z&amp;#34;) . &amp;#34;.html&amp;#34; );
?&amp;#62;&lt;/code&gt;

Michel</description>
		<content:encoded><![CDATA[<p>Hi Joe,</p>
<p>Lets suppose you have 365 files named as <code>1.html</code>, <code>2.html</code>, &#8230;, <code>180.html</code>, &#8230;, <code>365.html</code> . One file per a day of the year. Then you don&#8217;t need this <code>content-rotation.php</code> or <code>index.php</code> files.</p>
<p>You can use this simple php-snippet below to include your numbered html-files into any of your php-pages:</p>
<p><code>&lt;?php<br />
include ( date(&quot;z&quot;) . &quot;.html&quot; );<br />
?&gt;</code></p>
<p>Michel
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Content rotation by gorky5</title>
		<link>http://askmichel.icoder.com/2006/10/30/content-rotation/#comment-292</link>
		<pubDate>Tue, 28 Oct 2008 16:26:47 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/10/30/content-rotation/#comment-292</guid>
					<description>Hi Michel. I'm trying to do something similar to Mistephen - content rotation based on the day/week/month of the year. I can do it using ssi files, but they don't cooperate well with php pages.

I've uploaded your index.php, content-rotation.php and some dummy index.html pages to my server, but I can't see how it's choosing the specific filenames based on the date command.

Is there a way to specify that it looks for, say, 1.shtml, 2.html and so on, if that number is the day of the year? If so, would you be able to publish the entire code that I'll need? (obviously the 1.html or 1.jpg etc files are up to me to create!)

Many thanks in advance. I've spent hours looking for a solution and am more confused than ever!</description>
		<content:encoded><![CDATA[<p>Hi Michel. I&#8217;m trying to do something similar to Mistephen - content rotation based on the day/week/month of the year. I can do it using ssi files, but they don&#8217;t cooperate well with php pages.</p>
<p>I&#8217;ve uploaded your index.php, content-rotation.php and some dummy index.html pages to my server, but I can&#8217;t see how it&#8217;s choosing the specific filenames based on the date command.</p>
<p>Is there a way to specify that it looks for, say, 1.shtml, 2.html and so on, if that number is the day of the year? If so, would you be able to publish the entire code that I&#8217;ll need? (obviously the 1.html or 1.jpg etc files are up to me to create!)</p>
<p>Many thanks in advance. I&#8217;ve spent hours looking for a solution and am more confused than ever!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Content rotation by michel</title>
		<link>http://askmichel.icoder.com/2006/10/30/content-rotation/#comment-291</link>
		<pubDate>Tue, 21 Oct 2008 12:54:59 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/10/30/content-rotation/#comment-291</guid>
					<description>Hi Stephen,

Yes, this is possible.
The original script is designed to show HTML-snippets in random order.

In order to show one &quot;tip&quot; per day you can use the php-function date()
to get the number of a day in the year: &lt;code&gt;date(&amp;#34;z&amp;#34;)&lt;/code&gt;
So the php-script would look like this:

&lt;code&gt;&amp;#60;?php
$content_rotation_list = array(
 &amp;#34;page1.html&amp;#34;,
 &amp;#34;page2.html&amp;#34;,
 &amp;#34;page3.html&amp;#34;,
 &amp;#34;page4.html&amp;#34;,
 . . .
);
$tip_idx = date(&amp;#34;z&amp;#34;) % count($content_rotation_list);
include( $content_rotation_list[ $tip_idx ] );
?&amp;#62;&lt;/code&gt;

Hope this help.

Michel</description>
		<content:encoded><![CDATA[<p>Hi Stephen,</p>
<p>Yes, this is possible.<br />
The original script is designed to show HTML-snippets in random order.</p>
<p>In order to show one &#8220;tip&#8221; per day you can use the php-function date()<br />
to get the number of a day in the year: <code>date(&quot;z&quot;)</code><br />
So the php-script would look like this:</p>
<p><code>&lt;?php<br />
$content_rotation_list = array(<br />
 &quot;page1.html&quot;,<br />
 &quot;page2.html&quot;,<br />
 &quot;page3.html&quot;,<br />
 &quot;page4.html&quot;,<br />
 . . .<br />
);<br />
$tip_idx = date(&quot;z&quot;) % count($content_rotation_list);<br />
include( $content_rotation_list[ $tip_idx ] );<br />
?&gt;</code></p>
<p>Hope this help.</p>
<p>Michel
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Personalization of a sales letter by michel</title>
		<link>http://askmichel.icoder.com/2006/06/02/page-personalization/#comment-290</link>
		<pubDate>Tue, 21 Oct 2008 12:30:41 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/06/02/page-personalization/#comment-290</guid>
					<description>Hi Osman,

1) You need to include this script into your squeeze page with the form.
So when someone submits the form, their Email and Name would be
saved in cookies.

This could be any form you'd like.
This form could send the data to your autoresponder.

2) You need to include this script into the thank-you page.
Also adjust your thank-you page with the personalize &lt;code&gt;&amp;#60;A name=&amp;#34;firstname&amp;#34;&amp;#62;&lt;/code&gt; tags.
So the script would take the Email and Name from cookies and
substitute the text inside the personalize tags.

By another words, you need to include the script into both
the squeeze page and the thank-you page to get it working.

Hope this helps.

Michel</description>
		<content:encoded><![CDATA[<p>Hi Osman,</p>
<p>1) You need to include this script into your squeeze page with the form.<br />
So when someone submits the form, their Email and Name would be<br />
saved in cookies.</p>
<p>This could be any form you&#8217;d like.<br />
This form could send the data to your autoresponder.</p>
<p>2) You need to include this script into the thank-you page.<br />
Also adjust your thank-you page with the personalize <code>&lt;A name=&quot;firstname&quot;&gt;</code> tags.<br />
So the script would take the Email and Name from cookies and<br />
substitute the text inside the personalize tags.</p>
<p>By another words, you need to include the script into both<br />
the squeeze page and the thank-you page to get it working.</p>
<p>Hope this helps.</p>
<p>Michel
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Exit page redirect by michel</title>
		<link>http://askmichel.icoder.com/2006/06/26/exit-page-redirect/#comment-289</link>
		<pubDate>Tue, 21 Oct 2008 12:16:01 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/06/26/exit-page-redirect/#comment-289</guid>
					<description>Unfortunately I'm not experienced with .NET
and can't help you with this issue.

You need to check if your aspx script creates
a new session every time it starts...</description>
		<content:encoded><![CDATA[<p>Unfortunately I&#8217;m not experienced with .NET<br />
and can&#8217;t help you with this issue.</p>
<p>You need to check if your aspx script creates<br />
a new session every time it starts&#8230;
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Exit page redirect by yourfriend20030</title>
		<link>http://askmichel.icoder.com/2006/06/26/exit-page-redirect/#comment-288</link>
		<pubDate>Tue, 21 Oct 2008 09:44:37 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/06/26/exit-page-redirect/#comment-288</guid>
					<description>This Js file and your code work well in the case of pressing Alt+F4 or Close Button in IE7. But It has a problem when I press F5 or Refresht button The session_End in global.aspx automatically raise when refresh a page.
Can you help me to prevent it.
Thanks in advance!</description>
		<content:encoded><![CDATA[<p>This Js file and your code work well in the case of pressing Alt+F4 or Close Button in IE7. But It has a problem when I press F5 or Refresht button The session_End in global.aspx automatically raise when refresh a page.<br />
Can you help me to prevent it.<br />
Thanks in advance!
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Comment on Personalization of a sales letter by Osman</title>
		<link>http://askmichel.icoder.com/2006/06/02/page-personalization/#comment-287</link>
		<pubDate>Sat, 11 Oct 2008 15:29:35 +0000</pubDate>
		<guid>http://askmichel.icoder.com/2006/06/02/page-personalization/#comment-287</guid>
					<description>I'm still confused how this thing works.

I've set up a squeeze page which will direct
to a thank you page after someone enter
their name and email address.

But how can the autoresponder script integrate
with your personalisation script.

I tried following the steps shown but it just
don't seem to work.

Please help.

Thanks.

Osman</description>
		<content:encoded><![CDATA[<p>I&#8217;m still confused how this thing works.</p>
<p>I&#8217;ve set up a squeeze page which will direct<br />
to a thank you page after someone enter<br />
their name and email address.</p>
<p>But how can the autoresponder script integrate<br />
with your personalisation script.</p>
<p>I tried following the steps shown but it just<br />
don&#8217;t seem to work.</p>
<p>Please help.</p>
<p>Thanks.</p>
<p>Osman
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
