<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018330" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018330</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/perl-user-info#comment-1108445</link>
    <description> &lt;p&gt;I dont understand why nobody suggested using Server Side Includes (SSI)?&lt;/p&gt;
&lt;p&gt;You have created the same script without fowarding the user anywhere. All you would have to include this in your files:&lt;/p&gt;
&lt;p&gt;On your index or any page you wanted to record users. You may or may not have to change your files to .shtml files.&lt;/p&gt;
&lt;p&gt;This would probally be better for the users depending on the speed of their connection. When using fowarding in perl it takes a sec to foward it, it isn&#039;t instant. If you use the server side includes, it will be recording the data while the user is viewing the page.&lt;/p&gt;
&lt;p&gt;I would also recommed putting all the keys on one line, espcially if you start to get lots of visitors. I use a small script like that for one of my gallery sites and even tho it is all on one line, it is still crazy to read it in text db form.&lt;/p&gt;
&lt;p&gt;Have fun learning to script, you can only get better! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 07 May 2002 10:18:00 +0000</pubDate>
 <dc:creator>littlest</dc:creator>
 <guid isPermaLink="false">comment 1108445 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/perl-user-info#comment-1108366</link>
    <description> &lt;p&gt;For the future, $! is a variable in perl. In the case of the &quot;or die $!&quot;, it returns the error for viewing if the function fails (dies). &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 06 May 2002 17:11:45 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1108366 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/perl-user-info#comment-1108356</link>
    <description> &lt;p&gt;Hm. I didn&#039;t forget anything - scroll up to my original code posting, you just decided to do some editing &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;No need to delete the thread - this could be useful for other community members. Glad you got it working in the end! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 06 May 2002 09:23:34 +0000</pubDate>
 <dc:creator>Wil</dc:creator>
 <guid isPermaLink="false">comment 1108356 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/perl-user-info#comment-1108344</link>
    <description> &lt;p&gt;i finally got it...you guys forgot a ; after open (DB,&quot;&amp;gt;&amp;gt;$db&quot;) or die $!;&lt;br /&gt;
 and i took out the or die part...thanks guys!(you can delete this thread now)&lt;/p&gt;
 </description>
     <pubDate>Mon, 06 May 2002 02:24:14 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1108344 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/perl-user-info#comment-1108325</link>
    <description> &lt;p&gt;Yes, it will.  Wont it Wil? &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 05 May 2002 19:18:02 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1108325 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/perl-user-info#comment-1108324</link>
    <description> &lt;p&gt;will that make a difference?&lt;/p&gt;
 </description>
     <pubDate>Sun, 05 May 2002 19:02:17 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1108324 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/perl-user-info#comment-1108311</link>
    <description> &lt;p&gt;OK. Look at the code you posted. Now look at the code I posted above? Spotted the error yet?&lt;/p&gt;
&lt;p&gt;You have:&lt;/p&gt;
&lt;p&gt;open (DB,&quot;&amp;gt;&amp;gt;$db&quot;)$!;&lt;/p&gt;
&lt;p&gt;I had:&lt;/p&gt;
&lt;p&gt;open (DB,&quot;&amp;gt;&amp;gt;$db&quot;) or die $!;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sun, 05 May 2002 12:42:54 +0000</pubDate>
 <dc:creator>Wil</dc:creator>
 <guid isPermaLink="false">comment 1108311 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/perl-user-info#comment-1108264</link>
    <description> &lt;p&gt;ok...i did that and i got these errors in the log:&lt;br /&gt;
No such file or directory at /home//index.cgi line 12.&lt;br /&gt;
syntax error at /home/cgi-bin/login.pl line 20, near &quot;):&quot;&lt;br /&gt;
syntax error at /home/cgi-bin/login.pl line 27, near &quot;}&quot;&lt;br /&gt;
Execution of /home/cgi-bin/login.pl aborted due to compilation errors.&lt;br /&gt;
locate: not found&lt;br /&gt;
locate: not found&lt;br /&gt;
Scalar found where operator expected at /home//index.cgi line 12, near &quot;)$!&quot;&lt;br /&gt;
	(Missing operator before $!?)&lt;br /&gt;
syntax error at /home//index.cgi line 12, near &quot;)$!&quot;&lt;br /&gt;
Execution of /home//index.cgi aborted due to compilation errors&lt;/p&gt;
&lt;p&gt;and the code is &lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;#!/usr/local/bin/perl&lt;br /&gt;&lt;br /&gt;	use CGI;&lt;br /&gt;	my $query = CGI-&amp;gt;new();&lt;br /&gt;&lt;br /&gt;	# where is our database?&lt;br /&gt;&lt;br /&gt;	my $db = &amp;quot;/home/restricted/memberdata.txt&amp;quot;;&lt;br /&gt;&lt;br /&gt;	# loop through env. variables and print them into database.&lt;br /&gt;&lt;br /&gt;	open (DB,&amp;quot;&amp;gt;&amp;gt;$db&amp;quot;)$!;&lt;br /&gt;	foreach $key (sort keys(%ENV)) { &lt;br /&gt;		print DB (&amp;quot;$key = $ENV{$key}\n&amp;quot;); &lt;br /&gt;	} &lt;br /&gt;	print DB (&amp;quot;\n&amp;quot;);&lt;br /&gt;	close DB;&lt;br /&gt;&lt;br /&gt;	# we&amp;#039;ve done snooping, let&amp;#039;s redirect to another page.&lt;br /&gt;&lt;br /&gt;	my $url = &amp;quot;http://1eyefilms.hypermart.net/home.html&amp;quot;;&lt;br /&gt;&lt;br /&gt;	print $query-&amp;gt;redirect(&amp;quot;$url&amp;quot;);&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Sat, 04 May 2002 22:38:57 +0000</pubDate>
 <dc:creator>brady.k</dc:creator>
 <guid isPermaLink="false">comment 1108264 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/perl-user-info#comment-1108156</link>
    <description> &lt;p&gt;It says what at line 12? For some reason it can&#039;t open your database file. Make sure&lt;/p&gt;
&lt;p&gt;a) the file exisits.&lt;br /&gt;
b) your path is correct.&lt;br /&gt;
c) you&#039;ve CHMOD the file to 777 (for testing purposes, anyway).&lt;/p&gt;
 </description>
     <pubDate>Fri, 03 May 2002 10:06:17 +0000</pubDate>
 <dc:creator>Wil</dc:creator>
 <guid isPermaLink="false">comment 1108156 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/perl-user-info#comment-1108136</link>
    <description> &lt;p&gt;Weird, that response should have been with your other thread. !!&lt;/p&gt;
&lt;p&gt;Or not -- did you delete a post? Ack! I&#039;m going crazy! lol...&lt;/p&gt;
 </description>
     <pubDate>Fri, 03 May 2002 01:46:15 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1108136 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
