<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1013092" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1013092</link>
    <description></description>
    <language>en</language>
          <item>
    <title>Oopsi!</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect#comment-1076059</link>
    <description> &lt;p&gt;=~ is for perl. sorry.  &lt;strong&gt;eregi&lt;/strong&gt; is for PHP.&lt;br /&gt;
it&#039;s the equiv of perl regular expresions&lt;/p&gt;
&lt;p&gt;syntax: if eregi($look_for_this, $in_here) { do_this(); }&lt;/p&gt;
&lt;p&gt;helpfule links:&lt;br /&gt;
&lt;a href=&quot;http://php.net/manual/function.eregi.php&quot; class=&quot;bb-url&quot;&gt;http://php.net/manual/function.eregi.php&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://php.net/manual/function.ereg.php&quot; class=&quot;bb-url&quot;&gt;http://php.net/manual/function.ereg.php&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 25 Dec 2000 07:15:01 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1076059 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect#comment-1076013</link>
    <description> &lt;p&gt;thank you. I will plead ignorance in one area. What exactly does the =~ do that the == does not? What does that mean?&lt;/p&gt;
&lt;p&gt;Thank You for your help.&lt;/p&gt;
 </description>
     <pubDate>Sat, 23 Dec 2000 20:16:40 +0000</pubDate>
 <dc:creator>exbabylon</dc:creator>
 <guid isPermaLink="false">comment 1076013 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect#comment-1076010</link>
    <description> &lt;p&gt;it&#039;s you environmenal variable...  it should be &lt;strong&gt;$HTTP_REFERER&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;also, your &#039;else&#039; needs &#039;header&#039; before the (&quot;Location: &quot;), but you probably know that&lt;/p&gt;
&lt;p&gt;you may want to use &lt;strong&gt;=~&lt;/strong&gt; ..... just depends how specific you want to be about the referer.&lt;/p&gt;
&lt;p&gt;Good Luck,&lt;/p&gt;
 </description>
     <pubDate>Sat, 23 Dec 2000 19:42:00 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1076010 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect#comment-1076008</link>
    <description> &lt;p&gt;What I&#039;m trying to do is make it so that if the person did NOT come from a a certain page to this page then it automaticly sends them back to that page, if they did then it just does nothing.&lt;/p&gt;
&lt;p&gt;I already tried to run this script as well as several variations. But it&#039;s not working for me. Probably my coding. But it gives me know error! Mabey I just have the &quot;$REFER&quot; variables wrong.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$REFER &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;www.domain.com/thispage.html&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Location: &quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);} &lt;br /&gt;&lt;br /&gt;if (&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$REFER &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;== &lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;domain.com/thispage.html&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;) {&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Location: &quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);}&lt;br /&gt;&lt;br /&gt;else (&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Location: [url]http://www.domain.com/thispage.html&quot;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;);}[/&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;url&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;If you could please tell me what I&#039;m doing wrong it would be very appreciated. Thanx!&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;
&lt;p&gt;[Edited by exbabylon on Dec. 23, 2000 at 02:06 PM]&lt;/p&gt;
 </description>
     <pubDate>Sat, 23 Dec 2000 18:58:14 +0000</pubDate>
 <dc:creator>exbabylon</dc:creator>
 <guid isPermaLink="false">comment 1076008 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/redirect#comment-1075990</link>
    <description> &lt;p&gt;I wrote a PHP script similar (&lt;a href=&quot;http://www.webmaster-forums.com/showthread.php?threadid=12993&quot; class=&quot;bb-url&quot;&gt;Cheating Subdomains - PHP&lt;/a&gt;)&lt;br /&gt;
you could have it to do what you want fairly easy (if you know PHP)&lt;/p&gt;
&lt;p&gt;If you have trouble, let me know and I&#039;ll write it for you&lt;/p&gt;
&lt;p&gt;Good Luck,&lt;/p&gt;
 </description>
     <pubDate>Sat, 23 Dec 2000 07:22:39 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1075990 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
