hen you weren't expecting it.
Frankly I'd rather something like this than a remote script that can
connect to bounce the box; the latter seems entirely too hackable and now
you've just given away root access entirely.
HTH & HAND
:-D
--
David T-G * There
Kelvin --
...and then Kelvin McWha said...
%
...
%
I *think* you have to qualify this, as
action="http://localhost/home/kelvin/cgi-bin/myscript.cgi";>
Certainly worth a try...
HTH & HAND
:-D
--
David T-G * There is too much animal courage
a session ID so that not only
can the state be maintained but perhaps I could have a second session as
well.
Any thoughts?
TIA & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fort
o please at least keep me in the CC list if this
thread goes off-list (which it probably should).
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTE
the previous hour or more.
Don't be so hard on yourself; it happens to us all :-)
HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.
Troy, et al --
...and then Troy May said...
%
% LOL This cracked me up! :)
Happy to be of service :-)
Thanks & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
olor laser printer
we cannot accept cash via email at this time.
%
%
%
% --
% To unsubscribe, e-mail: [EMAIL PROTECTED]
% For additional commands, e-mail: [EMAIL PROTECTED]
Don't read the lines just above this... Whatever you do, don't look at
them.
HTH &
not really printing the whole file there, but line by line in
each of your open loops! Take a look again at my example, and try
printing your $content with a few more surrounding diagnostics (or,
of course, dive into the debugger and just take a look at it directly).
HTH & HAND
:-D
RE IT COMES\n"; print $content ; chop $content; \
> print "THERE IT WAS\n"; close(F);'
HERE IT COMES
THERE IT WAS
Just what were you planning to do with $content anyway?
HTH & HAND
:-D
--
David T-G * It's easier to fight for one'
}
if ( $con eq "index2" ) { dofilemagic("index2.html") }
if ( $con eq "main" ) { dofilemagic("main.html") }
...
(though I'd prefer to use the lovely Switch module from CPAN in this sort
of case)?
%
% Thank you,
% --
% Kyle
HTH & HAND
:-D
needs to be a part of the "post."
I can never remember which is POST and which is GET, but just have your
script pass the data over to MENU.CGI (are you on a Win machine, BTW, or
do you ALWAYS SHOUT? ;-) in the environment as that-which-is-not-the-url
method does.
%
% Any advice w
Teddy --
...and then Octavian Rasnita said...
%
% Hello all,
Hi!
%
...
% I would like to find the IP address of the visitor ISP, or something else
% that can help me to find the country.
That's easy; just use %ENV{REMOTE_ADDR} as Apache hands it to you.
HTH & HAND
:-D
--
a
directory in your @INC to find it effortlessly or anywhere you want to
make yourself use the tricks in 4) above.
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune
Bob, et al --
...and then Bob Showalter said...
%
% > -Original Message-
% > From: David T-G [mailto:[EMAIL PROTECTED]]
...
% > You know, it never hurts to check CPAN; maybe someone has
% > already written
% > a little web server in perl :-)
%
% HTTP::Daemon, part of
f the box so that
nobody can hit you while this is running).
You know, it never hurts to check CPAN; maybe someone has already written
a little web server in perl :-)
%
% Thank you for whatever you say!
HTH & HAND
:-D
--
David T-G * It's easier to fight for
Gunther, et al --
...and then Gunther Birznieks said...
%
% At 08:55 AM 7/10/2002, David T-G wrote:
% >
...
% >searching (fruitlessly) for a calendar that will print multi-day events
% >in a lined-up bar across the days instead of jumbling events together.
% >Will yours work for
localtime in thirty seconds so I fell back on
an additional module (which is quite handy, BTW).
%
% Thanks,
% Roger
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune
it somewhere as you like.
%
% --
% Best regards,
% Henk mailto:[EMAIL PROTECTED]
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECT
know. Less than a week and I'm home in Atlanta! Yee ha!
%
%
% Thank you botha again.
% Kristofer.
HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [E
t parens outside the save-your-place expression,
so it changes from
(\(\d+\))
to
\((\d+)\)
and if we knew that your target digits would be the first on the line
like in the example instead of "My2Thing(803), Value(3)" which would mess
us up, we could just use
(\d+\)
because it w
to call yourself an
expert :-)
%
% Marty
%
% --
% SIMPL WebSite Creation: http://face2interface.com/Home/Demo.shtml
TIA & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cooki
Marty --
...and then Marty Landman said...
%
% At 06:50 AM 6/25/02 -0500, David T-G wrote:
%
...
% >view the page source and you will see the form structure and the hidden
% >(note that "hidden" simply means "don't bother to try to display on the
% >page",
Marty --
...and then Marty Landman said...
%
% At 06:06 AM 6/25/02 -0500, David T-G wrote:
%
% >If the variables are in the page to be in the form to be
% >sent back via POST, then the user can find them, period.
% >
% >Try it yourself: set up something via POST and then surf
uot;view source" or the equivalent in your browser (and if there
isn't an equivalent then find a browser, even if just for a moment,
that DOES have it) and look and see your data hanging right out there
for all to see.
HTH & HAND
:-D
--
David T-G * It'
Teddy, et al --
...and then David T-G said...
%
% ...and then Octavian Rasnita said...
% %
...
% % Can you recommend me a good editor for Perl scripts that runs under Windows?
% % It should:
%
% vim. Maybe gvim if you're feeling decadent.
I forgot to mention that it's lightweigh
from ftp.vim.org or http://vim.org at your leisure.
%
% Thank you.
%
% Teddy Center for the blind: http://teddy.fcc.ro/
% Mail: [EMAIL PROTECTED]
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to
thing like
print <
...
...
My favorite links:
$output
EndOfHTML
and stick $output in where you want the links to show up.
% >
% > %
% > % Thank you,
HTH (more clearly this time!) & HAND
:-D
--
David T-G * It's easier to fight for
quot;google","http://google.com";); \
my $output = "" ; while ( my ($key, $page) = each %pages ) \
{ $output .= qq{$key\n};}; \
print "OUTPUT:\n$output";'
OUTPUT:
http://google.com";>google
http://yahoo.com";>yahoo
[zero] [6:42am] ~>
"$key" requires explicit package name at -e line 1.
Execution of -e aborted due to compilation errors.
[zero] [8:46am] ~> ^each^each my^
perl -we 'use strict; my %pages = (); foreach my $key (keys %pages) {print ".\n"}'
[zero] [8:46am] ~>
HTH
%pages) # you meant this instead of (links %pages), no?
{
foreach =. "$link's page: $pages{$link}\n"
}
to iterate through your links and add the text you want to a $foreach
variable, which ou can then spit out later. It feels like there should
be a less clunky way, but ot
"./fooble"))[9]; \
(undef,$min,$hour,$day,$mon,$year) = (localtime($mtime)); \
print "Year is $year, Mon is $mon, Day is $day, \
Hour is $hour, Min is $min\n";'
Year is 102, Mon is 0, Day is 2, Hour is 3, Min is 4
See
perldoc -f stat
perldoc -f localtime
and hav
here.
A little more googling led me to
http://www.unixreview.com/documents/s=2427/uni1021415397994/0205f.htm
which covers how to do a task in shell and perl and might show you some
of the differences.
All in all, it's probably a very good question in need of a good answer.
%
% Amy
HTH
ame, password
compare name, password to hash
thus letting you check every user instead of only the last one.
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work)
espace", the
latter part of which may also be useful (no put intended ;-) in light
of some of the scoping concerns brought up in other replies.
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to
like to know where so that I
can at least know how I missed it...
TIA & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/
Felix, et al --
...and then Felix Geerinckx said...
%
% on Mon, 10 Jun 2002 18:56:20 GMT, David T-G wrote:
%
% > Yeah, but the point is that I still don't know what I'm doing.
...
%
% perldoc perlpod
Ah! I was trying "perldoc pod" and every permutation thereo
know how they map to anything
else... Is there a primer outlining all of the =* directives and how
they go together? So far all I know is that =cut ... =cut will
conveniently comment out large chunks of code.
Arrgh!
TIA & HAND
:-D
--
David T-G * It's easier to fig
-
% check in the code you want, and DO NOT have chunkage of dead
% code floating around - it WILL BITE YOU - someone will zone
*grin* It sure will.
% out why this 'ugly' little '=cut' is there... and suddenly
% you are off in a new morass chasing code you forgot you
% left b
I'm sure isn't licensed to be given away.
There's the perlre man page you, in case that helps...
%
% Thank you very much!
HTH & HAND
%
% Teddy,
% [EMAIL PROTECTED]
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROT
t;I am the child; away we go\n";
code
code
loop
{
forever
}
}
else
{
print "fork bombed!\n";
exit 99
}
according to the camel book...
%
% Thank you.
HTH & HAND
%
% Teddy,
% [EMAIL PROTECTED]
:-D
--
David T-G * It's easi
[EMAIL PROTECTED]
:-D "I may not know much perl but I sure know regexps" T-G
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpicko
t;;>me
Is there anything else in your code that we should see?
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/da
re a block
documentation instead of code, which works well enough. However, the
format is
code
code
=cut
junk
junk
=cut
morecode
without a "start" involved.
I'd love to tell you more about how pod is written but I don't know the
format yet :-)
ader( -Refresh=>'5; URL=$URL2' ),
Have you tried printing your header with "" instead of ''? I believe ''
inhibits interpolation.
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [
or me?
Did you try search.cpan.org to look for it?? I did and landed at
http://search.cpan.org/doc/MCHANG/CGIGraph-0.93/lib/CGI/Graph.pm
and that seems pretty complete to me...
%
% Thanks
HTH & HAND
%
% Konrad
:-D
--
David T-G * It's easier to fight for on
arn not just DB but RDB interfacing. Thanks
a lot for the pointer!
HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx
another story, but I don't think that's within this scope.
2) i want a copy :-)
%
%
% ciao
% drieux
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cooki
back and pin him down on what he meant since his statement so obviously
contradicts the docs.
%
%
% Paul Arsenault, CCNA
% [EMAIL PROTECTED]
Thanks & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up t
ick up, even if it
isn't a four-letter word.
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/S
%
% Teddy,
% [EMAIL PROTECTED]
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
msg05240/pgp0.pgp
Description: PGP signature
ECTED]
and see what the list server tells you, but we're each entitled to our
own opinion.
HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http:/
odule to spit out the end of the
html page? I'd think you'd save that part for when you're done writing
to the page!
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- for
ou will see an extra line at the
beginning and then some gibberish at the end.
%
% Thank you.
HTH & HAND
%
% Teddy,
% [EMAIL PROTECTED]
:-D
- --
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to the
Eric, et al --
...and then Eric Peers said...
%
% Take a look at
% http://www.symantec.com/avcenter/venc/data/w95.hybris.gen.html for details
% about the worm. Sadly, its no laughing matter.
*snicker* For those of us not using Windows it is :-)
%
% Eric
HAND
:-D
--
David T-G
drieux, et al --
...and then drieux said...
%
% On Tuesday, June 4, 2002, at 07:59 , David T-G wrote:
% [..]
% >%
% >% I didnt know this was such a religious topic.
% >
% >BWA HA HA HAHAHA! :-)
%
...
%
% Is there an official site dedicated to the True Cannons of Perl?
Don'
gious topic.
BWA HA HA HAHAHA! :-)
HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngv
oaging enforced across the system).
%
% Poor me stuck with SH1Tty mail programs at work.
Start a revolution! :-)
I should probably be quiet now; we've definitely strayed, unless you
plan to bring up writing a perl MAPI module to talk to your mail and
get rid of the spam...
HAND
:-D
--
Dav
so look
into TMDA (even if it is written in Python ;-) to generate controllable
return mail addresses if you can get away from LookOut! for your mail.
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to
John, et al --
...and then John Brooking said...
%
% --- David T-G <[EMAIL PROTECTED]>
% >
% > ...and then Scot Robnett said...
% > %
% > % I don't personally share the 'HTML e-mail is evil'
...
% > intimated that he had, which means we're pursuing
% &
he had, which means we're pursuing the ultimate beating of
a dead horse here :-)
%
% Scot Robnett
% inSite Internet Solutions
% [EMAIL PROTECTED]
% [EMAIL PROTECTED]
HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than
-mail as raw
HTML, what am I leaving out? A Mime?:
Yes; you have to specify your text body as an HTML document instead of
just plain ascii. You also need to skip a line between your headers and
your body, BTW.
HTH & HAND
:-D
--
David T-G * It's easier to fight
to hear... You make the call ;-)
HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.justpickone.org/davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl
il.
--HTML-email-is-really-bad
which properly describes the message body in the headers, leaves a blank
line to identify the header end and the body begin, and then lays out
the body pieces.
No, I don't know how to write it in perl. I think I'd feel dirty if I
did; this is ba
looking at
http://cr.yp.to/publicfile.html
and reading up on some of Dan's other references. Alas, I do not know if
publicfile accepts files; I kind of doubt it.
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL P
n you can.
% large files will be familiar with FTP.
Typically true, but web browsers are pretty ubiquitous these days and
many folks, believe it or not, don't know a thing about ftp :-)/2
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's
pointers page; the closet is Ovid's response to
Fred Sahakian outlining some things to check when looking at a CGI script.
%
% - John
HTH & HAND
:-D
--
David T-G * It's easier to fight for one's principles
(play) [EMAIL PROTECTED] * than to live up to
anything wrong with the newsgroup, but the mail
gatewaying is working dandily; I saw your post from today at 16:02 (your
+0200 time) in my mailbox as <[EMAIL PROTECTED]>
and there have been others as well.
%
% Regards
% Richard
HTH & HAND
:-D
--
David T-G * It
67 matches
Mail list logo