Hi all,
Can you help me with this?
I want to get the servers IP address and the IP address of the referrer. Is
there a reliable way to do this? When I used 'REMOTE_ADDR' I get different
values even when I go directly to my site and then call 'REMOTE_ADDR'. Does
anyone know why? I
Hi,
not sure about the REMOTE_ADDR, I've never had any problems with it. To get
an IP from a URI try this:
use Socket;
$referral_address = $ENV{'HTTP_REFERER'};
$referral_address =~ m#^.*http://([^/]+)/.*$#;
$IP = inet_ntoa inet_aton $1;
If you want the IP address in hex, just use
On Wed, 2 Oct 2002 07:43:58 -0700 (PDT), [EMAIL PROTECTED] (Yahaya
Mohammed) wrote:
Note: forwarded message attached.
Your method of forwarding attached messages makes it difficult to
cut-n-paste comments in. In the future, put the message in the
message body .
Anyways, since you are just
NAME
beginners-faq - FAQ for the beginners-cgi mailing list
1 - Administriva
1.1 - I'm not subscribed - how do I subscribe?
Send mail to [EMAIL PROTECTED]
You can also specify your subscription email address by sending email to
(assuming [EMAIL PROTECTED] is your email
On Thu, 03 Oct 2002 07:34:13 -0400, [EMAIL PROTECTED] (Zentara)
wrote:
Oops, keep forgetting the header. :-) The following will
send the form variables back to the browser.
###
#!/usr/bin/perl
use warnings;
use strict;
use CGI;
my $cgi=new
On Thu, 3 Oct 2002 at 08:52, zentara opined:
z:On Thu, 03 Oct 2002 07:34:13 -0400, [EMAIL PROTECTED] (Zentara)
z:wrote:
z:
z:Oops, keep forgetting the header. :-) The following will
z:send the form variables back to the browser.
z:
z:###
Hi all,
Please tell me where can I find more information about using the IO::Socket.
module.
I want to avoid using the LWP module, because it is not working as it
should.
Thank you.
Teddy's Center: http://teddy.fcc.ro/
Mail: [EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
Hi all,
I've tried to make a script that gets a remote html page using IO::Socket.
If I wanted to use (like in some example from books) GET $path HTTP/1.1,
the script didn't want to work.
But it works OK if I ask for HTTP/1.0.
The strange thing is that the header returned by the Apache Server
-Original Message-
From: Octavian Rasnita [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 6:58 AM
To: [EMAIL PROTECTED]
Subject: I've solved a problem. But why?
Hi all,
I've tried to make a script that gets a remote html page
using IO::Socket.
If I wanted to
Hello,
Can someone tell me the coding difference and syntax difference between PERL and mod
PERL?
I'm getting errors in a script where there shouldnt be any. I've recently switched
hosts and my new host uses mod PERL
Thanks,
Roger
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
-Original Message-
From: Guru Geek [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 03, 2002 3:10 PM
To: [EMAIL PROTECTED]
Subject: mod PERL versus PERL
Hello,
Can someone tell me the coding difference and syntax
difference between PERL and mod PERL?
Perl is a language.
Hello all,
I've got a requirement to write a script that checks some condition on the
server, and to display one image if the condition is true, another if the
condition is false. But I want to update the image every time the condition
changes.
For now, I'm using a META REFRESH tag so that
Hi all,
I'm studying the Learning Perl Second Edition and I'm learning cgi now.
The book presents a sample cgi that doesn't produces the expected result as
the book says it would. In sumary, this script should generate an one field
form with a default value - mint. But what appears in the screen
Hi all,
I've tried a sinple test script for testing the LWP module and I've received
the following result:
501Protocol scheme 'http' is not supported
The script works under Red Hat with Perl 5.6.0.
The module LWP is not installed by the root. I've installed it in a separate
directory and i've
14 matches
Mail list logo