-Original Message-
From: Sally [mailto:[EMAIL PROTECTED]]
Sent: 14 June 2001 09:54
To: perl
Subject: mystery
I got the following code from a tutorial. When I uploaded (FTP) it as a perl
file I got more errors than you could shake a stick at. When I uploaded it
as an html file it sort
I have a perl form that records to a MySql database. Every time someone
uses the form and enters quoted text in a text box or text area the record
is not sent. Is there a way to allow quoted text to be processed? Any
recommendations?
Thanks in advance
David
David Draley wrote:
I have a perl form that records to a MySql database. Every time someone
uses the form and enters quoted text in a text box or text area the record
is not sent. Is there a way to allow quoted text to be processed? Any
recommendations?
use placeholders. ie.-
I've seen lots of references to telnet, but I can't find an explanation of
what it actually is. Is it similar to FTP?
Hi Sally
Telnet is a tcp/ip based terminal emulation program. You can open a session
on remote hosts and perform actions directly as would you sit in front of
the machine working with a console window.
Ftp (file transfer protocol) is just one of the dozens of protocols that
exist in the tcp/ip
Personally, when I'm writing for others (particularly beginners, like here
in the tutorial), I prefer to use the print statement as the author did, or
a heredoc. It's explicit and obvious, and the reader can see precisely what
is to be generated. I have been known, instead, to use the
OK, so you know about srand, after that the Perl command is pretty easy.
$A = int (rand (NUMBER))
This generates a random integer between 0 and NUMBER, including 0 but not
including number - e.g int (rand (5)) will give 0, 1, 2, 3 or 4.
'rand' generates a random number up to the value defined
Ladies and Gentlemen
I find the general level of detail here a bit advanced for a 'beginner'.
My mind whirls with questions such as
'Why our $variable?'
'Why class?'
'Why not CGI.pm?'
Can the presentation not be simplified so that we see the solution to the
primary problem first, and then
The CGI module is not supposed to export any functions
without their being explicitly requested.
Maybe you have a version that someone else hacked? No matter.
I honestly wouldn't know .. all of the functionality seems to be there.
Also, since you are already using CGI.pm, why not take
--- fliptop [EMAIL PROTECTED] wrote:
That's *almost* correct. CGI.pm also states the charset that the document is to
be rendered
with:
C:\perl -MCGI -e $q=CGI-new;print $q-header
Content-Type: text/html; charset=ISO-8859-1
well, as you'll see in the next step, i include
You can run telnet from a DOS prompt by entering telnet hostname or server
on the command line.
Regards,
Tom Wilson
-Original Message-
From: Sally [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 11:51 AM
To: Timothy Kimball; [EMAIL PROTECTED]
Subject: RE: Telnet
Are you
--- Abel Lucano [EMAIL PROTECTED] wrote:
my $uri_chars = '\x00-\x29\x2b\x2c\x2f\x3a-\x40\x5b-\x5e\x60\x7b-\xff';
Good points Curtis and thanks for your answers; I've applied (and
understood) all your advices but when I fill the forms with valid entries,
the submit is still passing wrong
Can we see your updated form code? I've fixed the problems curtis described
below in a copy here, and called a perl script that just accepts the params
and prints them, and it works fine. It may be a misplaced operation, that
would be obvious to a new pair of eyes (hey, I can never see MY bugs:
Roger C Haslock wrote:
I find the general level of detail here a bit advanced for a 'beginner'.
i was wondering whether this would be the case. some readers told me
they thought it wasn't too advanced, but obviously you feel otherwise.
anyone else care to comment on this issue? is the
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, 14 Jun 2001, Sally wrote:
Are you assuming I'm running from unix? I'm not I run on windows
Telnet has been available on Windows since Windows 95, and you can do
these exact same things of things.
-- Brett
http://www.chapelperilous.net/btfwk/
On Thu, Jun 14, 2001 at 10:46:56AM -0700, Mark Bergeron wrote:
: Has this list had postings yet? I don't seem to be receiving any I think.
Yes, quite a bit of traffic, actually. If you recieved this FAQ
posting, you are getting mail from the list.
Is something weird happening with your mail
At 01:59 PM 06/14/2001 -0400, Brett W. McCoy wrote:
PuTTY is another decent Telent/SSH client, and provides a lot of decent
xterm functionality, including mouse clipbaord support.
Let me chime in to endorse PuTTY as well. It's a fantastic, fast and free
(with no strings attached) telnet/ssh
On Thu, 14 Jun 2001, Mel Matsuoka wrote:
IMO, telnet *should* be considered defunct, except when using it for
debugging and diagnostic purposes (i.e. telnetting directly to service
ports). If you (or your server admin) aren't using SSH, it's about high
time that you should, for security's
I was using the following :
$event =~ s/\'/\\\'/g;
push @sth, insert into $table values ( '$event', .. );
( every element of @sth was executed later )
This allows me to insert values having both ' and
Try:
$A == 0
eq is for string comparisons and $A contains an integer.
Greg S.
Greg S.
-Original Message-
From: Luinrandir Hernson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 3:10 PM
To: [EMAIL PROTECTED]
Subject: So what am I doing incorrectly??
srand;
Luinrandir Hernson wrote:
: srand;
: $A = int (rand (4))
: if ($A eq '0') {print BODY BACKGROUND=\images/celtknt0.jpg\\n};
: if ($A eq '1') {print BODY BACKGROUND=\images/celtknt1.jpg\\n};
: if ($A eq '2') {print BODY BACKGROUND=\images/celtknt2.jpg\\n};
: if ($A eq '3') {print BODY
--- Luinrandir Hernson [EMAIL PROTECTED] wrote:
srand;
$A = int (rand (4))
if ($A eq '0') {print BODY BACKGROUND=\images/celtknt0.jpg\\n};
if ($A eq '1') {print BODY BACKGROUND=\images/celtknt1.jpg\\n};
if ($A eq '2') {print BODY BACKGROUND=\images/celtknt2.jpg\\n};
if ($A eq '3') {print
[reply cc:'d to the list]
Kalamity Force wrote:
i have a real postgres newbie question. can you instruct me on how to
implement this schema. I know that I have to put this text into a file,
but how am I executing the script?
create the db by typing at a command line:
$createdb addressbook
I need help installing CGI.pm module through ftp.
First of all, I don't understand how I can where I write the below
commands. I am at home and the server is on campus. I tested a
CGI.pm script to see if it was installed, it may be but my cgi
priveleges do not seem to allow me access.
So,
Teresa Raymond wrote:
I need help installing CGI.pm module through ftp.
cgi.pm is part of the standard perl installation. does the box you're
developing on have a recent installation of perl?
you can find out the version by typing 'perl -v' at a command prompt.
If, for some reason, CGI.pm is not installed on the server, I believe you
can place it in the folder where you are going to run the script (i.e your
cgi-bin.
That may pose some security issues I'm not aware of, but if all else fails
...
Stephen
Teresa Raymond wrote:
I tried the perl -v but get an Internal Server Error msg - no numbers
nor anything else useful.
here's what i get:
$ perl -v
This is perl, v5.6.0 built for i686-linux
Copyright 1987-2000, Larry Wall
Perl may be copied only under the terms of either the Artistic
step 5 is complete, and is available at:
http://www.peacecomputers.com/addressbook_toot-step5.html
coming next - step 6 - Writing the utility and SQL classes, and using
Class::MethodMaker
Hi.
Telnet is a Character based terminal program, you can accessed a remote
terminal from your PC with your IP, ...
I'm believe that Telnet is now defunct , best use SSH, is a similar program,
but it is encrypted, as it provides best security...
Excuse, my english is not very good!
-
What Javier says is very true about using ssh but if something happens to
lock up at the remote computer it can be hard to get out with ssh without
resorting to killing processes whereas, if the network is secure from
peeking, one can end a telnet session with the Ctrl-] combination. I'm not
31 matches
Mail list logo