Re: first glimpse of regex

2002-03-19 Thread Curtis Poe
--- Patrick Diffley <[EMAIL PROTECTED]> wrote: > One way of doing this: > chop ($username); > if ($username eq "") { >... > } > This will at least ensure that a carriage return > is not included in the scalar 'chop' has been so heavily misused that, if I recall correc

Re: Poll for my site

2002-03-19 Thread Curtis Poe
--- Henk van Ess <[EMAIL PROTECTED]> wrote: > I just uploaded this VERY simpele script, but whatever I try, it doesn't > work. I chmod'ed to 644,655,755,555,666 but it didn't run. What am I doing > wrong? > > #!/usr/bin/perl > > # Fig. 2.1: fig02_01.pl > > # A first program in Perl > > print "

Re: first glimpse of regex

2002-03-19 Thread Curtis Poe
--- Matthew Harrison <[EMAIL PROTECTED]> wrote: > i need to say something like > if $username = "" then ... > > where "" is literally nothing. i want to match it ONLY if the variable is > totally empty. > > this is my first experience with regex so what should this be? > > -- > Matthew Harris

Re: Why doesn't it work?

2002-03-19 Thread Curtis Poe
--- Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Hi all, > > I tried the following line to open another location, but it doesn't work. > > print $screen -> redirect(-uri=>'http://localhost/index.html'); > > It doesn't redirect to another location. It just prints the following: > > Status: 302

Re: Can someone explain the difference ?

2002-03-19 Thread Curtis Poe
--- Kamali Muthukrishnan <[EMAIL PROTECTED]> wrote: > Hi : > I have the following perl-script , which gives the user ( supposedly a first or >second grader) a > problem in addition or subtraction by generating random numbers. The random numbers >generated > are between 1 and 10 for first grader

Re: Using CGI.pm

2002-03-19 Thread Curtis Poe
--- Octavian Rasnita <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a question about using CGI.pm. > > How it is better? To print directly the html code with > print " ... "; etc. or > > to print using the CGI.pm > print $q-> start_html(...); etc. > Does it work faster in a way or anothe

Re: Very serious security hole in your script

2002-03-01 Thread Curtis Poe
--- erotomek <[EMAIL PROTECTED]> wrote: > --- Curtis Poe <[EMAIL PROTECTED]> wrote: > > > > You supplied some great information, however, your > > example of plugging the security hole has a > > security hole itself. From the command line on any > &g

Re: Escaping special characters for regular expressions

2002-02-28 Thread Curtis Poe
--- W P <[EMAIL PROTECTED]> wrote: > i don't want to just escape those characters. they were merely examples. i > was hoping maybe there was some built-in way to escape ALL the characters > that mean anything to regular expressions. Well, technically, *all* characters mean something to a regex

Re: Very serious security hole in your script

2002-02-26 Thread Curtis Poe
--- erotomek <[EMAIL PROTECTED]> wrote: > ALWAYS USE THE TAINT MODE !!! > > Use the -T switch: > > #!/usr/bin/perl -wT > > and untaint the $file variable: > > die 'INSECURE $file !!!' if $file =~ /\.\./; > if ($file =~ /^([-\w./]+)$/) { $file = $1 } > else { die 'INSECURE $file !!!' } > > and

Re: SHIFT in a subroutine

2002-02-20 Thread Curtis Poe
--- "Brett W. McCoy" <[EMAIL PROTECTED]> wrote: > On Wed, 20 Feb 2002, Nestor Florez wrote: > > > I was wondering about the "shift" inside a subroutine. > > > > I have never used it. What is the purpose of it been there? > > It pulls off the first element of the array passed to it. Using shift

RE: beginners-cgi Digest 8 Feb 2002 17:29:24 -0000 Issue 165

2002-02-08 Thread Curtis Poe
--- Allen Wang <[EMAIL PROTECTED]> wrote: > I want to change the string "d:\orant\oracle" to "d:\\orant\\oracle" > > Anyone know how to do this? > > > Thanks, > allen I'm not sure exactly what this stemmed from, so my comment may be out of place, but Perl is portable and will let you use the

Re: Problem with cgi scripts

2002-02-08 Thread Curtis Poe
--- Charles Waterman <[EMAIL PROTECTED]> wrote: > When I try to run a CGI script on my webhost server with "use CGI > qw/:standard/;" it does not work. What up with that "use CGI qw/:standard/;" is perfectly valid syntax (and even good practice). However, "it does not work" does not give

Re: Question Regarding select variables and sub routines

2002-01-30 Thread Curtis Poe
--- Darryl Schnell <[EMAIL PROTECTED]> wrote: > Forgive all the questions however now I've stumbled accross another problem that has >me baffled. > > In the search routine I am working on I have a variable > > $search_str = $x->param('search_str') > > Now the user inputes this string after eit

Please, be kind. re: How do I Configure Perl for use with a Personal Web Server?

2002-01-30 Thread Curtis Poe
--- "J.Robert Suckling" <[EMAIL PROTECTED]> wrote: > This is an off subject post, > Windows is a toy operations system. I think the original poster made the "can't buy Unix" disclaimer in hopes of avoiding responses like this. Insulting the poster's OS is not a good way of winning an argument.

Re: help!

2002-01-29 Thread Curtis Poe
--- "Curtis, Jonathan" <[EMAIL PROTECTED]> wrote: > This subroutine takes the user's login name ($ntlogin) and searches the flat > file for matching entry. > > The flatfile contains user info, comma delimited... each user separated by > line. The flatfile is read by line into @data, then splits

Re: learn java

2002-01-29 Thread Curtis Poe
--- william <[EMAIL PROTECTED]> wrote: > Where can I learn java (beginner) instead on the java.sun.com? William, Needless to say, on a beginning CGI list aimed at Perl programmers, you're probably not going to get a lot of responses. However, in the interest of keeping this a helpful and frie

Re: Help reqd. for collecting data

2002-01-23 Thread Curtis Poe
--- [EMAIL PROTECTED] wrote: > You might do like this... > > Depending of what you really want to do with your data... > > $file_name = "log.txt"; > > open (log_file, $file_name)|| die "Cannot open $file_name for reading\n"; > while () { > chomp; > #Row from log.txt > #2002_01_17_2

Re: mkdir in cgi-script

2002-01-21 Thread Curtis Poe
--- "Randal L. Schwartz" <[EMAIL PROTECTED]> wrote: > > "Rene" == Rene Verharen <[EMAIL PROTECTED]> writes: > > Rene> The (sub)dirs I want to create are input from a form, so I had to > Rene> change your example a little because > > Rene> my @dir=qw($FORM{'dir'}); > > No no no! This is

Re: Param problem

2002-01-15 Thread Curtis Poe
--- HÃ¥kan Edman <[EMAIL PROTECTED]> wrote: > Hi > > I have a script that generates a HTML page with input fields. The amount > of fields depends of an ascii database. This means that I don't know how > many > fields I have to work with. I tried the following code but I don't get > any > data in

Re: Regex problem?

2002-01-13 Thread Curtis Poe
--- Troy May <[EMAIL PROTECTED]> wrote: > Hello, > > I'm having a problem with a bulletin board I'm setting up. All the smilies > work except for one, the wink one. which be called when you type in ";)". > It won't display the graphic. All the others are fine so I know's it not a > config or d

Re: 2 Q's, Google and Me - can you spell it out?

2002-01-09 Thread Curtis Poe
--- Henk van Ess <[EMAIL PROTECTED]> wrote: > What an excellent tip.. My ISP doesn't give me acces to the log right away, > so the browser-trick helped me out! > > here's the error: > Software error: > Can't locate object method "appropriate" via package "regex" at > d:\www\voelspriet.nl\www\cgi-

Re: 2 Q's, Google and Me - can you spell it out?

2002-01-09 Thread Curtis Poe
--- Henk van Ess <[EMAIL PROTECTED]> wrote: > http://www.voelspriet.nl/cgi-bin/spriet.pl > > check All in Title en press Submit. > > Error: > > 'd:\www\voelspriet.nl\www\cgi-bin\spriet.pl' script produced no output Henk, Find your error log. Since you appear to be using ISAPI, it's likely n

Re: 2 Q's, Google and Me - can you spell it out?

2002-01-09 Thread Curtis Poe
--- Henk van Ess <[EMAIL PROTECTED]> wrote: > Dear Bob, dear all, > > I followed your suggestion and installed Active Perl for a local test. If I > run the script below, I get the following error: > > Too late for "-T" option at C:\spriet.nl Since you're running IIS, getting the "too late for -

Re: I just wanna dump a file to the browser as plain text

2002-01-08 Thread Curtis Poe
--- Jeremy Vinding <[EMAIL PROTECTED]> wrote: > I fell incredibly stupid that I can't get such a simple thing to work. > I'm trying to display the source of XML files without allowing IE to parse > them, but it still is parsing it:( Jeremy, Welcome to the wonderful world "Violating Standards"!

Re: 2 Q's, Google and Me - can you spell it out?

2002-01-07 Thread Curtis Poe
--- Henk van Ess <[EMAIL PROTECTED]> wrote: > Dear all, > > They told me that this forum teaches Perl in a friendly atmosphere, so I > hope you can help me. My name is Henk van Ess and I run www.voelspriet.nl, a > Dutch site about searchengines (non-commercial). > > I'm busy with a form for sear

Re: Re[2]: Curtis Poe Script/Lesson Questions

2002-01-07 Thread Curtis Poe
--- "K.L. Hayes" <[EMAIL PROTECTED]> wrote: > Hello Jonathan & All, > > Thank you for taking the time to answer. I "thought" that the $1 was > locally scoped but didn't want to "assume" it. Better not to assume > things with Perl has been my experience. See my previous reply to your question. $

Re: Curtis Poe Script/Lesson Questions

2002-01-07 Thread Curtis Poe
--- "K.L. Hayes" <[EMAIL PROTECTED]> wrote: > 17: if ( $tainted_username =~ /^([a-zA-Z\d_]+)$/ ) > 18: { > 19: $username = $1; > 20: } > 21: else > 22: { > 23: display_page( $message ); > 24: exit; > 25: } > > OK... The questions... > > 1. Why doesn't "use strict" complain a

Re: File Upload via URL

2002-01-07 Thread Curtis Poe
--- "Rafala, Michael" <[EMAIL PROTECTED]> wrote: > I want to call my file upload cgi program and upload a file via a URL rather > than using a Form on a Web page. > > My script works via the upload form, which looks like this: > > > > > > > But when I try this URL: > > http:\\myServer\cgi-

Re: snoop script

2002-01-06 Thread Curtis Poe
--- Ahmed Moustafa <[EMAIL PROTECTED]> wrote: > Hi All, > > In a CGI Perl script, how can I get the physical, geographical, location > of an IP address and the HTTP Referer? > > Thanks a lot for your attention. Your help will be appreciated. > > Ahmed Ahmed, To get the longitude and latitude

Re: Check Username and Password

2002-01-06 Thread Curtis Poe
--- maureen <[EMAIL PROTECTED]> wrote: > > Hello! In the following code verifies a password, passed from an html > page: > > #check for proper password > if ($in{'password'} ne "test") > { > > I would like to change this so, the code looks at a text file of > usernames and passwords, inste

Re: versions of CGI.pm

2002-01-04 Thread Curtis Poe
--- Scott Lutz <[EMAIL PROTECTED]> wrote: > Why is it when you specify different version of CGI types, ie. > use CGI ':cgi-lib'; > use CGI ':standard'; > use CGI; > > that sometimes code will work, and other times you get nothing? > Does anyone know of a good URL for reference on this? > > Thank

Re: Perl Compiler

2002-01-03 Thread Curtis Poe
--- Barrie Heck <[EMAIL PROTECTED]> wrote: > We fully respect the conditions of the GPL and in fact have contributed > greatly ourselves towards the development of applications based on perl, as > well as many others. This specific requirement is security related, where a > user with any intellige

Re: Perl Compiler

2002-01-02 Thread Curtis Poe
--- Barrie Heck <[EMAIL PROTECTED]> wrote: > Hi, does anyone know of a perl compiler? Have written some perl code for a > product and would not like the source available. > > Thanks > > Barrie Heck, Internet Solutions. > Box Web Communications. Barrie, You're going to have a little trouble wi

Re: HTML Cleaner-Upper Module

2001-12-20 Thread Curtis Poe
--- Curtis Poe <[EMAIL PROTECTED]> wrote: > 2. CGI::Pretty only works with the HTML generating features of CGI.pm. If you >don't use those, > get no benefit. > > Compare this: > > $ perl -e 'print q|test|' > test For the record,

Re: HTML Cleaner-Upper Module

2001-12-20 Thread Curtis Poe
--- Carl Franks <[EMAIL PROTECTED]> wrote: > > I could of swore I saw a message about some Perl module that outputs > > "pretty", properly indented HTML. I can't find the message in my email > > client, so if anyone could help me, I'd be very grateful. > > > the module CGI::Pretty > goto cpan.org

Re: Problem passing "action" parameter from a form

2001-12-19 Thread Curtis Poe
--- fliptop <[EMAIL PROTECTED]> wrote: > try doing this: > > use CGI; > use Data::Dumper; > my $Q = new CGI; > my $ACTION = $Q->param('action') || ''; > print "ACTION: ", Dumper($ACTION); > > and see what you're getting for $ACTION Perhaps even better would be to do this: print Dumper( $Q

Re: Readdir

2001-12-18 Thread Curtis Poe
--- [EMAIL PROTECTED] wrote: > Hi to All, > I' d like to know if it' s possible to count the exact number of files > inside a certain directory, using a way better than this: perl -e 'opendir D,".";$count=grep{-f}readdir D;print $count' That breaks out to: opendir DIR, $dir or die "Cann

Re: use strict

2001-12-17 Thread Curtis Poe
--- Carl Franks <[EMAIL PROTECTED]> wrote: > I have a seperate config file in which I define all of my variables. > (because I'm making a program using several scripts with many common vars) > > I was under the impression that by initiating the variable (even in a > seperate file) 'use strict' wo

Re: creating web interface for .forward on linux

2001-12-14 Thread Curtis Poe
--- KeN ClarK <[EMAIL PROTECTED]> wrote: > i've looked through 'learning perl' 2nd edition, and am confused. much. i > want to create an interface for system users to update their .forward > files in their $HOME directories. > > I want this to be a web-based interface. The webmail program I am

Re: Question on radio button items

2001-12-14 Thread Curtis Poe
Your HTML, while it has some issues, should get the job done. However, you should get in the habit of quoting your attribute values: Should be: Sooner or later, failure to quote those values will bite you if you get a value with angle brackets (<>), white space, or other things th

Re: cleaning form input for display in browser...

2001-12-13 Thread Curtis Poe
--- Jeremy Webster <[EMAIL PROTECTED]> wrote: > > I have a form in which people can enter text, and then my perlscript spits it > back out onto a web page. I know that if someone were to enter html code as > text, then it could/would screw up the generated page. Is there a standard > way to

Re: my hyperlink has spaces in it and fails

2001-12-13 Thread Curtis Poe
--- Kevin Harwood <[EMAIL PROTECTED]> wrote: > I have a web page that allows you to click a hyperlink and then it pulls up > data from a Berkley db based on the word(s) that forms the link. > > When there are links that have spaces, only the first word of the link is > recognized or used. > > He

Re: beginner question

2001-12-13 Thread Curtis Poe
We just discussed this today. Please do NOT crosspost. This is better in the [EMAIL PROTECTED] list. Further, having a useful subject line helps. If I had a penny for every unhelpful subject line I've seen today... hold on a minute... I'd have $1.27 :) (tip 'o the keyboard to Terry Pratchet

Re: Creating a CGI menu

2001-12-12 Thread Curtis Poe
--- Gerry Jones <[EMAIL PROTECTED]> wrote: > I want to create a menu/navigational section for a website I plan on > building, and I would like to know if there are any easy-to-use modules I > could use, or if there's another way. My website will have many levels and I > don't fancy copying, pas

Re: src with Perl

2001-12-11 Thread Curtis Poe
--- Lupo <[EMAIL PROTECTED]> wrote: > (Sorry for my English...) > > Can I request an image-path with Perl? > > ... Yes. There are two ways to deal with this. One is to have your perl script redirect the browser to the location of the image: #!/usr/bin/perl -wT print "Location:

Re: Array Problem.

2001-12-10 Thread Curtis Poe
--- Andre` Niel Cameron <[EMAIL PROTECTED]> wrote: > Hi, > > I have a prob:) I need to search threw an array and remove an item based on > its name. I was thinking about maybie a for each loop but I am not sure how > to go about it. Heres what I need to do: > > say $object= sword; > I have an

Re: Hash of Hashes to set up form

2001-12-10 Thread Curtis Poe
--- Marcus Willemsen <[EMAIL PROTECTED]> wrote: > Hi all, > > can anybody help? > I am trying to set up a form using a hash of hashes to build different > types of fields as I think it is easier to check and process form input: > > my %fields = (textfield => { 'Name_of_textfield' => { -name =>

Oops! Re: Fwd: RE: Passing variables

2001-12-07 Thread Curtis Poe
Please ignore. Sent to wrong list and this is my apology :) --- Curtis Poe <[EMAIL PROTECTED]> wrote: > Ron, I think you meant to send this to the list, too :) > > I don't know ksh, so I am terribly familiar with what's going on there, but it >doesn't look &

Fwd: RE: Passing variables

2001-12-07 Thread Curtis Poe
Ron, I think you meant to send this to the list, too :) I don't know ksh, so I am terribly familiar with what's going on there, but it doesn't look terribly difficult. I still don't know if you need anything returned to the user. If you don't and these programs don't take long to run, you cou

Re: 'SafePerl'?

2001-12-04 Thread Curtis Poe
--- Jules <[EMAIL PROTECTED]> wrote: > Our web server enables us to use 'SafePerl' for CGI scripts. I can find > little information relating to this, and what subset of Perl commands are > enabled (or correctly, which commands are disabled). > Can anyone point me in the right direction? > > Julia

Re: variables using blank spaces

2001-12-04 Thread Curtis Poe
--- Wagner Garcia Campagner <[EMAIL PROTECTED]> wrote: > Hi, > > I have a varilable: > > $var = 'asdf asdf asdf'; #using blank spaces > > Then i send it to another script like this: > > > > The problem is when i get it back the value became: > > $var = asdf > > It stops in the first blan

(End this thread) Re: Fwd: Fw: PLEEEEEEEASE READ!!!

2001-12-03 Thread Curtis Poe
End this thread, please. If you have something to say to this individual, please do so privately. Yes, the spam was innapropriate, but I find it a bit ironic that the spam-haters have generated so much, uh, spam. --- lynn bui <[EMAIL PROTECTED]> wrote: > hey, > > this does not concern perl,

Re: Program dilema

2001-11-30 Thread Curtis Poe
--- Andre` Niel Cameron <[EMAIL PROTECTED]> wrote: > Can anyone think of a cleaner way to do this: > push(@Joiner, $ReadData[3]); > push(@Joiner, $PlayerData{'PlayerHeld'}); > push(@Joiner, $PlayerData{'PlayerCarried'}); > push(@Joiner, $PlayerData{'PlayerEquipped'}

Re: Program dilema

2001-11-30 Thread Curtis Poe
--- Andre` Niel Cameron <[EMAIL PROTECTED]> wrote: > Hi, > > I am having a bit of a problem. Does anyone have any idea how I could have > a variable and see if the value of that variable is also located in an array > and hash? IE: > > $myvar= 6 > > @myarray= ("4", "7", 10", 6") > > if (6 exi

Re: Need some assistance, should be easy.

2001-11-30 Thread Curtis Poe
--- Gary Stainburn <[EMAIL PROTECTED]> wrote: > Hi Brian, > > This depends on a number of things, the browser, the server and your script's > environment. > > One of the values (that should be ) submitted by a web browser when someone > clicks a link is URL of the referring (current) page. Th

Re: Cache Question

2001-11-27 Thread Curtis Poe
--- Andre` Niel Cameron <[EMAIL PROTECTED]> wrote: > When you use ssi what is the conent type is it still text/html? > > Andre Yes. The Content-type has nothing to do with whether or not the request is being served over a secure connection. Cheers, Curtis "Ovid" Poe = Senior Programmer

Re: Cache Question

2001-11-27 Thread Curtis Poe
This needs a little clarification. --- Stephan Tinnemeyer <[EMAIL PROTECTED]> wrote: > Rodney Myers wrote: > > > > Is that better than or just equivalent to : > > > > print < > Content-type: text/html > > Pragma: no-cache > > > > > > > At least it is not worse. I KNOW that it works, I do

Re: redundant code

2001-10-31 Thread Curtis Poe
David, What I *think* you are asking is how to assign default values to form parameters and then, after reading all form values, have special handling of those parameters that have those default values. Your question is a bit vague (or maybe it's me?), so I'm just guessing. I'll respond by f

Debugging tips: Re: Cookies stopped working

2001-10-31 Thread Curtis Poe
--- "Kirk W. Batzer" <[EMAIL PROTECTED]> wrote: > I'm attempting to port a perl CGI application > from: "perl, 5.005_02 built for 3446-svr4.0" > to:"perl, v5.6.1 built for sun4-solaris" > > The application uses "cookies" to maintain "state" information. The > following code is successfully

Re: CGI Login in IE but NOT Netscape

2001-10-31 Thread Curtis Poe
--- Jimmy Lewis <[EMAIL PROTECTED]> wrote: > I have a project where the CGI form is being displayed in Netscape as raw > HTML but in IE it works fine. Are you familiar with this problem? > Jimmy Lewis > Web Programmer Jimmy, This is a very common problem. You need to check the headers that

Re: Faking form variables

2001-10-29 Thread Curtis Poe
--- [EMAIL PROTECTED] wrote: > Curtis, > > What is the syntax for passing these values through the url? > Greg Greg, Here's a little snippet borrowed from Randal Schwartz (http://www.perlmonks.org/index.pl?node_id=80240): use URI; use HTML::Entities; my $uri = URI->new("http://ba

Re: Faking form variables

2001-10-25 Thread Curtis Poe
--- [EMAIL PROTECTED] wrote: > I'm using the following snippet of code to put all form data passed into a > hash table. > > $form_data_size = $ENV{'CONTENT_LENGTH'}; > read (STDIN, $form_data, $form_data_size); > @info_returned = split (/&/,$form_data); > > foreach $keyvalue (@info_returned) >

Re: trying to write to a file

2001-10-25 Thread Curtis Poe
--- Matthew Mangione <[EMAIL PROTECTED]> wrote: > hey im trying to write to a file with just like 6 lines of code and it doesnt work >so I need > some help. here is the code: > > #!perl > > open DATA, "> mydata.dat"; > > unless ($success) { > print "Problem Encountered"; > die; > } > > pri

Re: i need help with cgi-scripts and HTML

2001-10-24 Thread Curtis Poe
--- Robert Hall <[EMAIL PROTECTED]> wrote: > > You will need to find out if the web server you are running on allows CGI. > Then check out this web site. It helped me a lot: > > http://cgi101.com > > What kind of web server will you be running on? Windows, *nix, using IIS or > APACHE? > > Hop

Re: CGI.pm param() doubt

2001-10-24 Thread Curtis Poe
--- [EMAIL PROTECTED] wrote: > Here the doubt, > > I have a Form with some radio and checkbox groups in it. when > the user fillout the form and then hit the Submit button a perl > program is invoke depending on how the user fill. if i want to > know all of the field names and values that have

Re: Obtaining data from a web site via an automated Perl script

2001-10-23 Thread Curtis Poe
--- Brian Jackson <[EMAIL PROTECTED]> wrote: > Folk, > > I'm not looking for how to do this, but I am just curious if anyone has > either done this or knows if it can be done. > > We need to capture data from a website that happens to be a text file. > Currently we have to manually save the data

Re: a Q on URL opening

2001-10-19 Thread Curtis Poe
--- sarika <[EMAIL PROTECTED]> wrote: > Hi, > i want to open a url in perl-cgi and process the contents (which will be HTML) >before i render > them on the browser. > What should i use? > in PHP we can do the following > $fp = fopen ("http://www.php.net/";, "r"); > and work on $fp.. > > is the

Re: OK Regexp people, need a little help.

2001-10-19 Thread Curtis Poe
--- Chuck <[EMAIL PROTECTED]> wrote: > > I need to grab an email address from an arbitrary string of text. The > string will only have 1 '@' symbol. > > I need a regexp that will search for this symbol and return the whole word. > > It will appear like this: > > blah blah blah 12112 blah [EMA

Re: Parsing HTTP links

2001-10-18 Thread Curtis Poe
--- [EMAIL PROTECTED] wrote: > Hey guys, > > thanks for all the help with this. I actually did mean HTML Links as I am > looking to parse out specific links from an HTML file. I'm not only > concerned with "HTTP" link () but also other HTML flags. Right > now I'm using HTML::SimpleLinkExto

Re: Docs

2001-10-15 Thread Curtis Poe
--- Camilo Gonzalez <[EMAIL PROTECTED]> wrote: > Where's a good place to find documentation in HTML of the CGI and DBI > modules? > > if ( $Camilo_Gonzalez && $Web_Developer ) { > Taylor Johnson Associates; > [EMAIL PROTECTED] ; > www.taylorjohnson.com

Re: Getting data from multiple check boxes

2001-10-12 Thread Curtis Poe
--- Chuck <[EMAIL PROTECTED]> wrote: > > How to a grab data from a multiple checkbox type scenario. > > Ex: > > Say I have: > > > > > I then do this: (use CGI.pm for this example) > > my $selections = $q->param("x"); > print "$selections\n"; > > It only prints the last checkbox check, not

RE: security in perl

2001-10-11 Thread Curtis Poe
--- Wagner Garcia Campagner <[EMAIL PROTECTED]> wrote: > > This site doesn't need so much security so I'm not worryed if someone is > using a sniffer... Wagner, That is begging for trouble. My apologies in advance for the rather serious tone here. Here's a quote from a friend's email: --

RE: security in perl

2001-10-11 Thread Curtis Poe
--- Wagner Garcia Campagner <[EMAIL PROTECTED]> wrote: > > This site doesn't need so much security so I'm not worryed if someone is > using a sniffer... Wagner, That is begging for trouble. My apologies in advance for the rather serious tone here. Here's a quote from a friend's email: --

Re: Using Win32::ODBC

2001-10-09 Thread Curtis Poe
--- [EMAIL PROTECTED] wrote: > I'm successfully connecting to a Pervasive 7 database with my PERL program > when running from the command line. > > I try to run the program in my webbrowser and I get the following error. > > Error connecting to MO Error: [802] [] "[Pervasive Software][ODBC > I

Re: Need some clarification of rules for qw()

2001-10-04 Thread Curtis Poe
--- "Gary L. Armstrong" <[EMAIL PROTECTED]> wrote: > I have written this: > > system qw( /usr/lib/lpd/pio/etc/piomisc_ext mkpq_remote_ext -q $qname > -h $newhost.$domain.ko.com -r jfsrvrsap -t bsd -d $qname > "Jetforms NT Server TEMPORARY" ); > > Nevermind what I am doing (adding

Re: References

2001-10-03 Thread Curtis Poe
--- Bill Jones <[EMAIL PROTECTED]> wrote: > References: > > I am looking for a basic explaination and example: > > $animal = "Dog"; > $sound = \$animal; > $bark = $$sound; > > $bark is now Dog. > > ??? > -Sx- The following explanation is oversimplified, but I think it's easy to follow.

Re: anti-SSSCA petition

2001-10-03 Thread Curtis Poe
--- Kevin Meltzer <[EMAIL PROTECTED]> wrote: > I meant to alter the PDF with a signature, silly. > > Cheers, > Kevin Sigh :( = Senior Programmer Onsite! Technology (http://www.onsitetech.com/) "Ovid" on http://www.perlmonks.org/ __ Do You Ya

Re: anti-SSSCA petition

2001-10-03 Thread Curtis Poe
--- Kevin Meltzer <[EMAIL PROTECTED]> wrote: > Please do. The petition being discussed on the list is very OT, as well as > bordering on inappropriate. But, if you can come up with a way to sign it using > Perl :) > > Cheers, > Kevin Well, okay :) use strict; use HTTP::Request::Comm

Re: Multiple script tags in HTML head

2001-09-26 Thread Curtis Poe
--- "Richard J. Barbalace" <[EMAIL PROTECTED]> wrote: > Hi. > > I'm trying to use CGI.pm to include multiple script tags in a web page. > > I have code like the following: > $html .= header(); > $html .= start_html( > -script => { > -langua

Re: whats the best cgi/perl book around?

2001-09-26 Thread Curtis Poe
--- louie miranda <[EMAIL PROTECTED]> wrote: > Hi, im just wondering whats the best cgi/perl book? > thnx. > > louie miranda (axishift.ath.cx) > -- > Security Is A Series Of Well-Defined Steps > > chmod -R 0 / ; and smile :) The best Perl/CGI book that I

Re: reg exp match

2001-09-24 Thread Curtis Poe
--- David Draley <[EMAIL PROTECTED]> wrote: > How would I print only the words that contain the letter "p" in a file??? > Right now I am only printing the entire lines that contain words with the > letter "p". > > while () > { > if(/[p]/) >

Re: structure of scripts (newbie Q)

2001-09-20 Thread Curtis Poe
> -Original Message- > From: "Stephan Tinnemeyer"<[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Date: Thu Sep 20 06:22:29 PDT 2001 > Subject: structure of scripts (newbie Q) > > >I hope I did not overread this in the FAQ: > > > >In some tutorials I found the recommendation to put the code

Fwd: RE: reg exp

2001-09-20 Thread Curtis Poe
> while () { > print if /[.?]$/; > } > __DATA__ > This is a test. > Is this another test? > This doesn't print! That character class should have been "[.,?]", since a comma was apparently desired. Also, the dot, comma, and question mark do not need to be escaped i

RE: reg exp

2001-09-20 Thread Curtis Poe
> -Original Message- > From: David Draley [mailto:[EMAIL PROTECTED]] > Sent: September 20, 2001 12:35 > To: [EMAIL PROTECTED] > Subject: reg exp > > hello - > > I am trying to search a for any sentence that ends in "." or "?" I > want to only print those sentences that end with "." or

RE: Security Suggestions Please!

2001-09-18 Thread Curtis Poe
> use strict; > use CGI; > my $q = new CGI; > my $password = $q->param( "password" ); > > if ($password eq 'password'){ #only an example# > print < ~~~ To Run Script Two, Three , Four , > etc.~~~ > > It works but how secure is it assuming nobody is going to see the > 'password'? H

Re: scan a UNIX file of a string

2001-09-14 Thread Curtis Poe
--- David Draley <[EMAIL PROTECTED]> wrote: > Hello - > > I am trying to scan a UNIX file for a string. I used a filehandle to do > this task - (Below) How would I complete the same taks without using > filehandles? Would it be GREP?? > -- > #!/usr/local/bin/perl >

Re: Re[2]: line end problems - help #2

2001-09-12 Thread Curtis Poe
--- Maxim Berlin <[EMAIL PROTECTED]> wrote: > Hello Curtis, > > Thursday, September 13, 2001, Curtis Poe <[EMAIL PROTECTED]> wrote: > > CP> That will show non-printing characters (-v) and the end of line will be >indicated with a > dollar > CP> sig

Re: adding array elements

2001-09-07 Thread Curtis Poe
--- David Draley <[EMAIL PROTECTED]> wrote: > What would be the best way to add only the even array elements? > > @array[0..9]; > > #result of even elements > > thank you David, Just don't do: use strict; my @data = qw/ 1 2 3 4 5 9 /; my $sum = 0; map { $sum += $data[$_] if $

Re: SendMail to lists

2001-09-06 Thread Curtis Poe
--- randy Peterman <[EMAIL PROTECTED]> wrote: > >I have to ask: where are you getting the $UserName value? What you are > trying to do raises some > >serious security issues if done incorrectly. > > I am getting it from a form input. Randy, The problem with that is untainting an email addre

Re: SendMail to lists

2001-09-06 Thread Curtis Poe
--- randy Peterman <[EMAIL PROTECTED]> wrote: > I am trying to develop a page to allow people on a list that I am a member > of to subscribe and unsubscribe by clicking a link. The link spawns a > window that allows the user to type in their email address. When they do > that they can submit the

RE: Is it a security risk to use identical names for database fields and html forms?

2001-09-06 Thread Curtis Poe
--- Gunther Birznieks <[EMAIL PROTECTED]> wrote: > There's actually quite a bit of interesting stuff out there that has really > only been "discovered" and publicized at all in the last year or two. Null > byte is another huge issue few Perl programmers seem to know > about/understand as it aff

Re: Extened - Re: securing sensitive information in CGI scripts

2001-09-05 Thread Curtis Poe
--- Rajeev Rumale <[EMAIL PROTECTED]> wrote: > I need to store some uploaded files from the "visitors" into some > directories which are inside website root. Rajeev, Why do you need to store them there? If you can answer that for us, we can give you much better advice on how to secure it. Che

Re: param('$name') syntax......?

2001-09-02 Thread Curtis Poe
--- "Simon K. Chan" <[EMAIL PROTECTED]> wrote: > Hey Everybody, > > I have the following code: > > $k = 0; > foreach $item (@array){ > > print "$item"; > > print qq{}; > > ++$k; > } > > print qq{}; > > What is the proper syntax to see if the checkbox had been checked or not? > I've tried th

Re: Does Perl2Exe remove the Compilation Phase?

2001-08-31 Thread Curtis Poe
Morbus Iff <[EMAIL PROTECTED]> wrote: > Recently, I've been reading a lot into CGI performance and how to > reduce the amount of memory and time it takes to run a CGI based > application. The number one thing to attack is the start time - the > half second or so that Perl looks at the script and

Re: Is it a security risk to use identical names for database fields and html forms?

2001-08-31 Thread Curtis Poe
--- "Michael R. Fahey" <[EMAIL PROTECTED]> wrote: > Hi, > > I was looking at a perl script where the developer used different names > for the incoming parameters and the database field names. He told me > that this was done for security reasons-- to ensure that malicious users > would not be able

Re: passing list of elements from file

2001-08-30 Thread Curtis Poe
--- Pavan Kumar Hotha <[EMAIL PROTECTED]> wrote: > Hi, > > Can any one help me out in passing a list of elements in a file to an > array. > > Thanks > Pavan. Pavan, Here are some pointers: 1. What do you mean by a "list of elements"? Can you provide a file format? It's impo

RE: uninitialised value strings

2001-08-29 Thread Curtis Poe
--- Francesco Scaglioni <[EMAIL PROTECTED]> wrote: > Hi again, > > the script now reads ( see below ) but I still get errors as follows: > > ** (at end of line) = where use of uninitialised value in cancatenation and > *** (at end of line) = where use of uninitialised value in pattern > match

Re: Perl, MySQL, Apache

2001-08-28 Thread Curtis Poe
--- [EMAIL PROTECTED] wrote: > I downloded the Merlin Desktop server that comes with Apache > Server, MySQL and indigo Perl I want to test the server to see > if the cgi-bin directory work to do my Perls works. When I run a > simple Hello Worl! script the server tells me the ocures a fatal > e

Re: sending @array as hidden variable

2001-08-26 Thread Curtis Poe
--- "Simon K. Chan" <[EMAIL PROTECTED]> wrote: > Curtis, > > Your suggestion does not seem to work for me. My apologies for sending you the >script, but the > my @food = param('food'); does not work for me! Any and all suggestions would be >much > appreciated. Simon, No problem about sendi

Re: Problem executing script in cgi-bin dir

2001-08-25 Thread Curtis Poe
t configured to handle cgi requests. What type of Web server are you running? You may want to read http://www.easystreet.com/~ovid/cgi_course/appendices/appendix1.html for more information about getting your scripts to run. Cheers, Curtis Poe = Senior Programmer Onsite! Technology (http://

  1   2   3   >