Re: security in perl

2001-10-11 Thread fliptop
"Grierson, Garry (UK07)" wrote: > > I had pretty much exactly the same problem, if you look at the 'Security > Suggestions Please!' thread on the beginners-cgi archive at > http://archive.develooper.com/beginners-cgi%40perl.org/ you can see what > > > -Original Message- > > From: Wagner

Re: mail help?

2001-10-17 Thread fliptop
Gareth Londt wrote: > > i am using the Mail::Sendmail module and well i have it working all nicley > and stuff but this is were it doent work the way i want it to. > Firstly i have a text area that needs to filled in with a few email addresses, > but when i use the regexp for this value in the t

Re: read textfield from using PERL

2001-12-05 Thread fliptop
prashan kukde wrote: > > "textfield" is a multiline text box in the form. > But, when I read it in the script, the textfield > looses the extra spaces or paragraph spaces from the > textfield. Will it be possible to get the data as it > is filled in the text field ?? do you mean a form element?

Re: Using custom modules

2001-12-07 Thread fliptop
Gerry Jones wrote: > > I want to use a module I have created and stored in cgi-bin directory. It > holds a few commonly used functions. I remember having done this before, but > can't remember how I got it to work, and my error log says the module did not > return a true value. Somebody please sa

Re: graphic manipulation program

2001-12-07 Thread fliptop
Carl Franks wrote: > > Could someone advise me on a program to use. > I want to use a command-line program to resize .jpegs, and specify > compression. > I've not found anything suitable so far. > The GD module looks promising, but I can't find useful documentation for it. have you looked into i

Re: From html to Perl back to html

2001-12-07 Thread fliptop
"Mark Jervis Sr." wrote: > > I am trying to make a form where user input gets output back to another > html form. > > My script is not erroring out so my log files is clean. But I am missing > something in my script and have looked for the answers through google but I > must be typeing in the wr

Re: advice required

2001-12-13 Thread fliptop
Kris G Findlay wrote: > > i would like to store the documents in a database format as to move to > mysql at a later date. > > to cut a long story short. > i was looking for some advice on implemeting this eg. > > best db format to use. - ( both for speed and easy transferel to mysql ) just won

Re: auto-submit question again....

2001-12-13 Thread fliptop
Wagner Garcia Campagner wrote: > > Hi, > I have a script that dysplay a radio button with names of diferent scripts > on my server... > (script1.pl; script2.pl; script3.pl,..) > > When a user selects a script and click on the submit button i would like to > redirect to the selected script bu

Re: Need help in pattern matching.

2001-12-16 Thread fliptop
lakshmi nrusimhan wrote: > Consider the following lines: > > Apple > Mango > Banana > Orange > > I want to replace line 1, line 2 i.e. (Apple, Mango) > with hello1\nhello2\nhello3\n. > > The output should be: > hello1 > hello2 > hello3 > Banana > Orange > > I tried something like this: > $t="

Re: Need help in pattern matching.

2001-12-17 Thread fliptop
[reply cc'd to list] lakshmi nrusimhan wrote: > Sorry here > $t="Apple\nMango\n"; > Actually what i mentioned in the output is what i want > the output to be. I wanna replace > Apple > Mango > by > some three lines. > The sequence Apple, Mango shd. be there for > replacement and it won't

Re: Readdir

2001-12-18 Thread fliptop
[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: > > use CGI; > > my $q = new CGI; > my $dir = 'C:\...\temp'; > my $num_files = -1; > > print $q->header("text/html"); > >

Re: mailto method form plus

2001-12-18 Thread fliptop
Alan F Larimer Jr wrote: > I am using a free webhosting server that allows CGI scripts, but does not allow >access to the sendmail program. This, with my current knowledge, limits my form >actions. I would like to create a form that e-mails the data to a given address, but >also produces a "

Re: Problem passing "action" parameter from a form

2001-12-18 Thread fliptop
Kris Seraphine wrote: > I want to use one script with multiple functions to > process a variety of forms/information. > > in my script I declare the action variable and give it > instructions: > > # get the action > my $ACTION = $Q->param('action') || ""; > if ($ACTION eq "check_password") is

Re: RegExp fails on server

2001-12-19 Thread fliptop
Steven Vargas wrote: > Does someone know of a good way to count total records for the week? I can > get total for day and month, but the week totals fail, returning 0 (for some > reason they work when I execute the program from the shell). I've shown > below snippets of the code and subroutine, s

Re: Problem passing "action" parameter from a form

2001-12-19 Thread fliptop
[reply cc'd to list] Kris Seraphine wrote: > yes it is. unless you have it spelled wrong in the form, i don't see why it shouldn't be working. try doing this: use CGI; use Data::Dumper; my $Q = new CGI; my $ACTION = $Q->param('action') || ''; print "ACTION: ", Dumper($ACTION); and see what

Re: re-convert

2001-12-19 Thread fliptop
Connie Chan wrote: > Since we know this : $string =~ s/([a-fA-F0-9][a-fA-F0-9])/pack ("C", > hex($1))/eg; > > is a statement which can converting back the "real string" from > a form field, but, could anybody tell how to convert the "real string" > to the "long long" string ?? > > Besides, any

Re: cgi error - can't figure out

2001-12-21 Thread fliptop
Boex,Matthew W. wrote: > i am getting this error message in my apache error_log when i try to upload > a file... > > CGI.pm: Server closed socket during multipart read (client aborted?) > > i do not abort the upload. i get this error as soon as i hit my "upload" > button. weird, i can upload

Re: Perl debugger

2001-12-22 Thread fliptop
Polikarpov Cyrill wrote: > I have a question - what software is the better for debugin perl-scripts to your >opinion? > I can't find a prog for myself, so ... perl comes with a built-in debugger: http://www.ddj.com/documents/s=1498/ddj0108pl/ btw: a search for 'perl debugger' on google.co

Re: A little off topic, but still deals with CGI, just the results.

2001-12-31 Thread fliptop
Brian N. Smith wrote: > When save to a file, I have a bunch of "^M" characters .. I wrote a little > strip to try to get rid of them, but of course, I tried the ^M instead of > whatever I should have had done ... any help? > > #!/usr/bin/perl > > open (myFile, " open (myOut, ">out_file"); > whi

Re: whois servers

2002-01-02 Thread fliptop
huseyin kuyumcuoglu wrote: > I want to write a program to access whois servers to collect information > about domains. That is; the e-mail addresss of the owner of a site, how > many sites owned by him, creation and conspiration dates of the site > etc. Any help is appreciated. Thanx. http:/

Re: Diffrent browsers render script diffrently

2002-01-05 Thread fliptop
Greg Jetter wrote: > A Perl script that creates a web page renders correctly in Netscape , > Mosilla , Opera and Konqueror . It produces a error when rendered in Internet > Explorer . In Explore it generates either a "you don't have premissions to > view this page" or it renders it as p

Re: Form parameter as filename?

2002-01-07 Thread fliptop
Rob Cottingham wrote: > I'm trying to use a parameter passed from a CGI form as the basis of a > filename: > >my $file_location = "/home2/samuel-c/HTML/alex/urltest/"; >my $filename=param('category'); >my $fileid=$file_location.'urls_'.$filename; > >open(ULL, ">>$fileid") || die

Re: scheduling

2002-01-07 Thread fliptop
Camilo Gonzalez wrote: > Anyone know of a module or method that will run a Perl script on a given > time each day? I need to FTP a file from one site to another daily and I was > hoping to automate it. can you write a cron job to do it? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Installing Net:SMTP module on Linux 7.1

2002-01-15 Thread fliptop
Thomas Smidt wrote: > I'm a very new beginner to both Perl and Linux, but to get a specific program > to run (twiki.org) I need to install the Net::STMP Perl Module on Linux 7.1. > I have downloaded the .tar.gz file but need either a good descriptive web site > or someone to walk me throu

Re: trying to secure text input.

2002-01-29 Thread fliptop
you out. i think the reason you're having this problem is because non-alphanumeric characters passed in an html form are encoded. so if you were to type cgi-bin/index.cgi?name=fliptop&comment=yikes!! in your browser, when the key-value pairs make it to your script the 'yikes!!&#x

Re: help!

2002-01-29 Thread fliptop
Curtis, Jonathan wrote: > sub have_we_met{ > open DATA, "bigdawgs.txt"; > @data = ; > close DATA; > $ > $found = 0; > > for ($i = 0; $i <= $#data; $i++){ > @cheese = split /,/, $data[$i]; > if ($cheese[0] eq $ntlogin) { > $found=

Re: What modulo recomended for send emails?

2002-01-31 Thread fliptop
Argenis Perez wrote: > What modulo recomended for send emails that i can attachment a file. try mime::lite. it's easy to use and attachments are no problem. http://search.cpan.org/search?dist=MIME-Lite -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: Yesterday-How obtain?

2002-02-01 Thread fliptop
Argenis Perez wrote: > this statement > ($sec,$min,$hour,$mon,$year,$wday,$yday,$isdst) = localtime(); > i obtain the date of today, but i need the $day,$mon,$year of yesterday look into the date::calc module. it's very handy for many date calculations. http://search.cpan.org/search?dist=Dat

Re: validation

2002-02-02 Thread fliptop
Al Hospers wrote: > I need a regular expression that will only allow a variable to contain > digits. it should fail if there is anything else in the variable: > dollar signs, commas, dots, alphas, spaces, quotes etc. I thought the > following would work, I am obviously incorrect. > > return 1 u

Re: if the date entered is weekend or no?

2002-02-10 Thread fliptop
[reply post not cc'd to modperl list] GsuLinuX wrote: > How can i understand if the date entered by the client is weekend or no? > Are there some database specificied for that? http://search.cpan.org/search?dist=Date-Calc there's a function in there called Day_of_Week(), which will evaluate

Re: Image size

2002-02-13 Thread fliptop
Webmaster wrote: > I'll looking for a way to get the image size (jpg or gif). I had a look around and >found some information on it. However, none of these page provide an example well >enough to get an idea how to use it. http://search.cpan.org/search?dist=Image-Size -- To unsubscribe, e

Re: FlipTop's CGI Tutorial

2002-02-13 Thread fliptop
Frank J. Schmuck wrote: > I was wondering what happened to fliptop's cgi tutorial? I moved in the > middle of it and can no longer find a working URL. hi frank sorry, but when i changed my hosting i didn't move the tutorial. i still have it; however i am working on a new version that is upd

Re: WML header

2002-02-14 Thread fliptop
Carl Franks wrote: > Does anyone know what header to send for WML pages (WAP), and how to send it > with CGI ? there was an article on this very subject in tpj about a year ago. http://www.samag.com/documents/s=1131/sam05040004/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional co

Re: Help ...

2002-02-14 Thread fliptop
Jason LaMar wrote: > Now, here's what I want to do. Extract image HTML code in this format ... > > > > so that only the Image Description is left. Basically, I want to delete > all the rest of the code but leave the "alt" tag information intact. consider using html::parser. it may be a

Re: regrex question

2002-02-16 Thread fliptop
David Gilden wrote: > > $key ="Departure date"; > > $key =~ s/([\w\w+])/\u$1/; > > > ---> Desired result: > > Departure Date > > What is wrong the above regrex? it's probably easier to use the ucfirst() function: my $key ="Departure date"; my @result = map { ucfirst } split /\s+/, $key;

Re: sql question

2002-02-25 Thread fliptop
Donn wrote: > this question seems to be unrelated to perl but merely sql. that's right. you'd probably be better off posting to a more appropriate forum. this page has several for oracle: http://www.faqs.org/faqs/databases/oracle-faq/ > can somebody pls. help me with sql on how > to page

Re: Server Error on duplicate file

2002-02-25 Thread fliptop
Robert Becker wrote: > I have a Perl CGI script in the cgi-bin directory that works just fine. I > have copied it to a file in the same directory with a different name, but > everything else is the same - The text is the same, the permissions are > the same. However, if I change the line in the c

Re: Uploading a file?

2002-02-25 Thread fliptop
Rob Roudebush wrote: > Does anyone know how to upload a file to your site? perldoc CGI and search for the description of the upload() method. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Uploading a file

2002-02-27 Thread fliptop
Octavian Rasnita wrote: > I saw a question about how to make a Perl script for uploading a file and I > didn't see any answer for it. > I am also interested in this thing. > > Could somebody give us some hints? > Or, give us a source for a Perl script for uploading a file. CGI.pm has a method

Re: 2 regular expressions

2002-02-28 Thread fliptop
GsuLinuX wrote: > How can i convert > > 1. " $a = 29.7548925547539 > $a = 29.75 " i'd use printf: my $a = 29.7548925547539; printf "%5.2f\n", $a; # this prints 29.75 > 2. " $b = 2345342 --> $b = 2,345,342" look into numbe

Re: Taking entire Oracle application (forms, reports) to WEB using CGI?

2002-02-28 Thread fliptop
Bruce Ambraal wrote: > Hi All > How possible is this.? very. > This a good Idea? personally, i'd use postgresql (since it's free). > I am currently defining a 6 month project deploying our current Oracle > financial system to the WEB using CGI. Can anyone point out current success > sto

Re: CGI Connection and Test Select

2002-03-01 Thread fliptop
Brice, Charles wrote: > my $dbh = DBI->connect("dbi:Oracle:aux","ceb","ceb"); > > my $cursor = $dbh->prepare("select * from tab") || die "PREPARE > error $DBI::errstr\n"; what error is it putting in your error log? you could try setting DBI's trace le

Re: Date format again

2002-03-03 Thread fliptop
Troy May wrote: > Hello, this guy finally emailed his script to me. The problem he is having > is with "$year". Here's the dating part of the code: > > --- > $date = `/bin/date`; > chop($date); has this guy considered using Date::Calc? http://search.cpan.

Re: problems using open to get data from mysql

2002-03-05 Thread fliptop
Maleit Nen wrote: > > First excuse my english please, i am tring to get data from mysql with > open(ident,"|mysql... > and put the result in a var $salida > > This is the script: > > $comandosql="use mataro;select password from mataronins where > identificador=\"$identificador\";"; > open (T

Re: forcing a script to finish in a subroutine

2002-03-05 Thread fliptop
W P wrote: > i'm making my own (hopefully informative) error pages for my site. i have defined a >subroutine pr_error which takes the error(s) as input and outputs an HTML page. > how can i make it go to the end of the script ( __END__ ) on those errors (which >will not necessarily be fatal).

Re: Headers

2002-03-06 Thread fliptop
Octavian Rasnita wrote: > Why if I use: > > print $q->header; > print$q->start_multipart_form; > > the result does not contain the result of the first line, but only the > line? from perldoc CGI: header() returns the Content-type: header. You can provide your own MIME type if you choo

Re: Fwd: Re: small projects

2002-03-07 Thread fliptop
Teresa Raymond wrote: >> Fliptop had a guestbook one - I'd appreciate the url also b/c I lost >> all of my links when my logic board fried. He may be on the >> beginner's list though? http://www.peacecomputers.com/addressbook_toot-toc.html if i ever get a

Re: popup_menu help

2002-03-07 Thread fliptop
Sir Douglas Cook wrote: > Having said that I am asking the list can you > have a (item/object) from a popup menu behave as > and submit button using CGI/Perl? > > I know from using www.tucows.com to download > I see a fine example of this, when selecting the > nearest download server. Althou

Re: Server down test

2002-03-08 Thread fliptop
Sir Douglas Cook wrote: > Question: > I am wondering how to test if my PWS is UP? > If (http://65.93.27.6/MyHomepageOnSympaticoServer/) { i've never used it, but net::ping looks like a good candidate: http://search.cpan.org/search?dist=Net-Ping -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: Fwd: Re: survey to excel

2002-03-08 Thread fliptop
Teresa Raymond wrote: >> Delivered-To: [EMAIL PROTECTED] >> X-Sender: [EMAIL PROTECTED]@mail.portland.co.uk >> Date: Fri, 8 Mar 2002 17:15:04 -0600 >> To: Teresa Raymond <[EMAIL PROTECTED]> >> From: Teresa Raymond <[EMAIL PROTECTED]> >> Subject: Re: survey to excel >> >> I have only worked with f

Re: Help with DBI.pm

2002-03-10 Thread fliptop
Brian Bratcher wrote: > I am trying to setup a cutom perl script to access Mysql databases > through HTTP. > So far I can connect and show all information. > this is the code I used to showall > > $sth=$dbh=DBI->connect("DBI:mysql:pizza","root",""); > $sth->prepare("select * from Customer"); > $

Re: Regex question

2002-03-10 Thread fliptop
Scot Robnett wrote: > Hey y'all, I got over my brain cramp and thought I'd share with the group in > case it helps anyone trying to do something similar. I was making it way too > complicated. All I needed was: > > if($email !~ /\w+@\w+\.\w{2,4}/) > { > # error stuff here > } have you conside

Re: Regex question

2002-03-11 Thread fliptop
Scot Robnett wrote: > I don't think you can check for the existence of an e-mail address without > actually attempting to send mail to it. You can ping or traceroute a domain, > but only the mail server associated with it knows if the username is valid > or not. If this is wrong, somebody with in

Re: Sending email from perl

2002-03-11 Thread fliptop
Tiberiy Virtgaym wrote: > Can somebody help me with code of how to send mail to users as an attachement from a >perl program, a comma delimited file. mime::lite may be a good start: http://search.cpan.org/search?dist=MIME-Lite -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional com

Re: mysterious leading spaces (same foreach problem w/ more details)

2002-03-11 Thread fliptop
James Woods wrote: > That leading space is causing me headaches. when trying to do a foreach > on the array, after submitting the form. instead of packing a huge array into one form var like this: why not pass it like this (in your html): etc... then you can process it as such: @drawH

Re: File upload problems

2002-03-11 Thread fliptop
James Kelty wrote: > I have written the below script for file uploading, but the script seems to > be a little fickle. > Very small text files upload with no problem at all, but slightly larger > (76k) Word docs and Excel spread sheets > seem to make the script time out. I can see the /tmp/CGIxxx

Re: mysterious leading spaces (same foreach problem w/ more details)

2002-03-11 Thread fliptop
James Woods wrote: > I used the following code to write out all my hidden fields. It didn't > get rid of the newline or caridge return characters at the end though. > > foreach my $item (@Draw){ > my $counter = 0; > my $daValue = $item; > chomp($daValue); > print "\n"; > $counter++; > } > > I

Re: mysterious leading spaces (sample text included)

2002-03-12 Thread fliptop
James Woods wrote: > Here is the raw text from my text file (the original source). It's > created on a Windows machine (??in case that makes a difference with > linefeeds vs. carridge returns??) then put on an apache web server. > > f|Gimlis Axe|p|fellowship/large/14gimlisbattleaxe.html > f|H

Re: HTML::Template

2002-03-12 Thread fliptop
Boex,Matthew W. wrote: > is it preferred to have a cgi print the inital .html template page, or > should i put it in the html dir, and point the FORM tag to the cgi. i know > putting in the html dir will speed things up, no perl process to spawn. i > will be using fast cgi in the near future...

Re: mysterious leading spaces (sample text included)

2002-03-12 Thread fliptop
James Woods wrote: > Putting that code in place of the chomp code that was suggested earlier > produced the same result. i just tried this test case: # one with blank spaces, two with a tab, # three with a \n, four with several \n's my @Data = ('one ', 'two ', 'three ', 'four '); fo

Re: Where is UserAgent.pm

2002-03-13 Thread fliptop
Marcelo Camperi wrote: > Can't locate LWP/UserAgent.pm in @INC... > > I assume this is another perl module that I do not have. Could someone > please tell me where to find it? (I looked into User and Agent in cpan, > but they do not seem to be the ones...) it's part of the libwww-perl packag

Re: accessing excel!

2002-03-13 Thread fliptop
Tim Fletcher wrote: > does anyone know how to access an excel sheet? http://search.cpan.org/search?dist=Spreadsheet-ParseExcel -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: mysterious leading spaces

2002-03-13 Thread fliptop
James Woods wrote: > The above code works great when the @Draw is populated from my text file > (which happens "pre-submission"). However, when the form is submitted, > I only get the first record of @Draw. if your passing all the data in one , retrieving it with @Data = $cgi->param('drawHi

Re: Match and remove an element in an array

2002-03-15 Thread fliptop
Rob Roudebush wrote: > Okay my script takes names from a fom and puts them into an array - then later I >need to match a $variable (one of the names) against that array and take that >specific element out of the array. I figure there is probably an easy function to do >this? > @array=(john, l

Re: Perl for Windows 98

2002-03-18 Thread fliptop
Johnson, Shaunn wrote: > --have explorer 5 ... but i have no idea > what DCOM is ... i'll have to look > into whatever that is ... > > --aren't there any alternatives? do you have an old 486 that you're not using? an alternative is to convert it to a linux box, run all your server software (

Re: last questions for my webmail script.

2002-03-21 Thread fliptop
Matthew Harrison wrote: > What is the syntax to redirect the user to another page? i need to be able > to include a query string in the redirect, plus it needs to be immediate > and automatic. perldoc -q redirect -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: last questions for my webmail script.

2002-03-21 Thread fliptop
[reply cc'd to list] Matthew Harrison wrote: > that doesn't really answer the question as it doesn't really clearly show > what the syntax should be and how it is used. > > On Thursday 21 Mar 2002 12:38 pm, you wrote: > >>Matthew Harrison wrote: >> >>>What is the syntax to redirect the user t

Re: Mod_perl

2002-03-22 Thread fliptop
Rob Roudebush wrote: > I have created basic forms using CGI.pm and now I'm interested in using Apache >mod_perl to speed things up and use associated apache modules. Question: Can I >continue to program using regular CGI, using params etc. or does mod_perl require me >to program differently?

Re: Uploading

2002-03-22 Thread fliptop
Octavian Rasnita wrote: > When I upload a file from my computer to a server, I choose a local file, I > open it, then I print its content into another file. > But if I want to upload a file from my local > /htdocs/ folder into the /images/ folder on the server, how could Perl know > that the spec

Re: MD5 Password Generator

2002-03-23 Thread fliptop
Brian Smith wrote: > In my CGI, A user creates a password (p@$$w0rd), but i do not want it to be > clear text, so I was wondering if Perl was able to encrypt that to a MD5 > encryption. It will be stored in the /etc/shadow file, so I would want the > "standard" md5. http://search.cpan.org/sear

Re: Subroutine to write to file

2002-03-24 Thread fliptop
Rafael Cotta wrote: > I need a sobroutine to append a string passed as parameter to a file. And > this sobroutine has to lock and unlock the file, and wait if the file is > locked when it tries to write. > > This may be a very simple thing. Could someone give me a sample? have you tried the fa

Re: A script to understand the output from a search engine HELP!!

2002-03-24 Thread fliptop
Bruce Ambraal wrote: > This is where I am at: > A script that does not really work > > #!/usr/bin/perl -w > use strict; > > open(A_file," > my @ary = ; you should read the faq about why this is a bad idea. http://www.perldoc.com/perl5.6/pod/perlfaq5.html#How-can-I-read-in-an-entire-file-all

Re: yes & no

2002-03-25 Thread fliptop
maxa wrote: > I have create web page with extension .cgi and connect it with Microsoft access >database. > > 1. Can I use my project on server where is supported .cgi and mySQL but nothing >about Microsoft access database? sure - provided your data is in the mysql db. > 2.how can I transfor

Re: Transferring files from a client

2002-03-26 Thread fliptop
Emmanuel Jaeckert wrote: > I want to set up a perl script to allow client to (upload|transfer) files to > my server. > client don't know file names but it's always of the form FD???AA.FIC where > AA may be given by the client on an input box > I can not be sure of the number of files so i really

Re: Commenting more lines

2002-03-26 Thread fliptop
Octavian Rasnita wrote: > I want to comment more lines but they are too many to put a # in front of > each one. > Please tell me how could I comment more lines by marking only the beginning > and the end of the text. perldoc -q comment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Transferring files from a client

2002-03-27 Thread fliptop
Emmanuel Jaeckert wrote: > thank you for your ans, but as far as i understand (maybe i don't) cgis's > upload() method only work for one file based on the user choice after a > manual browse... > > I want to permit user to enter any text in an input box and get all files > eg : the user type "13

Re: Transferring files from a client

2002-03-27 Thread fliptop
fliptop wrote: > rather something to do with the http protocol. when i want to pass > multiple files, i provide multiple boxes. sorry, that should be . -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Open Problem

2002-04-04 Thread fliptop
Andrew Rosolino wrote: > Ok say I have a file called news.txt and it included > this > > --- > Andrew|Tuesday|Blueberry's > Alex|Friday|Apple > Alyssa|Wednesday|Strawberry > --- > > Now, how can I have it so that when I call > >

Re: Yesterday's date

2002-04-07 Thread fliptop
Troy May wrote: > What's the easiest way to get yesterday's date from localtime? I need it in > this format: (for today) "070402". use Date::Calc qw{ Today Add_Delta_Days }; my @date = Add_Delta_Days(Today, -1); printf "Yesterday: %02u%02u%02u", $date[2], $date[1], substr($date[0], -2

Re: SMTP Problem

2002-04-08 Thread fliptop
[EMAIL PROTECTED] wrote: > > foreach(my $ref = $sth->fetchrow_hashref()) { > print qq($ref->{'pager'}); > use Net::SMTP; > my $smtp = Net::SMTP->new('mailhost', Hello => 'hawkeye.dmtn.com', Debug > => 1,); > $smtp->mail ( $ref ); # mail($ref);#->{'pager'}); i don't think you w

Re: log-in/out w/o cookies

2002-04-08 Thread fliptop
Four Hewes wrote: > My criteria: > > I. Account structure I want: > unique user accounts > users are members of groups (a la Unix) > use of HTTP's ".passwd" is OK > > II. Platform I'd use: > OS: Win, Unix, or Linux > Server: Apache or IIS > Dev.: MacPerl5 > > III. Security of log-in: > secure

Re: managing files

2002-04-10 Thread fliptop
Pedro Santos wrote: > I'm trying to build a database where users can send a description and an > image to the database. Whenever I access the database trought my a perl > script my browser should show me the description and the image. > For the description I can do this without any proble

Re: Validating form date

2002-04-10 Thread fliptop
Daniel Falkenberg wrote: > I am just playing around with forms at the moment. What I want to do is > have user enter data into form fiels then I want to validate that > entered date. So far I can do things as basic as validating if fields > contain characters and so forth. But what I want to d

Re: Password code!!

2002-04-11 Thread fliptop
Rob Roudebush wrote: > Please help - I need to password protect my form by COB today. I initially had just >a password field at the bottom to authenticate prior to clicking submit. Is there >anything better - say something that launches when a link is selected to the form?? are you running

Re: MySQL

2002-04-14 Thread fliptop
Andrew Rosolino wrote: > $query = "INSERT INTO browse (username, password) > VALUES ('Kittyf', '5521f') LIMIT 0, 30 "; does limit/offset apply to insert statements? see this page for correct insert syntax: http://www.mysql.com/doc/I/N/INSERT.html -- To unsubscribe, e-mail: [EMAIL PROTECTE

Re: Uploading with a text field?

2002-04-15 Thread fliptop
octavian Rasnita wrote: > Is it possible to use a text field for uploading files, or I need to use > only a file field? > I have some reasons for wanting only a text file. use an in your html. to restrict file types, examine the uploaded file's content type: use CGI; my $cgi = new CGI; my

Re: Definition

2002-04-16 Thread fliptop
Bill Lyles wrote: > href="file://C:\Program Files\Common Files\Microsoft Shared\Stationery\"> > As I am somewhat new to perl > > can someone tell me what this means > > $header = qq~ > > I understand the header but what is the qq~ for? perldoc -f qq btw, it's considered bad form to send htm

Re: Verifying a remote file

2002-04-18 Thread fliptop
Octavian Rasnita wrote: > I want to verify if the file http://www.domain.com/xxx/xxx.zip which is on > another site (not mine) exists. > Please tell me what would be the simplest solution to test this, and how > could I find out the size of this file. lwp::simple would probably be your best bet

Re: Counting the number of form fields returned with information

2002-04-18 Thread fliptop
[EMAIL PROTECTED] wrote: > On Wed, 17 Apr 2002 [EMAIL PROTECTED] wrote: > > sub missing_params { > foreach (keys %form_fields) { > next if defined param($_); > push @missing,$form_fields{$_}; > } > return scalar(@missing); > } what if a value is the null string? you need to ch

Re: graphs and charts question

2002-04-18 Thread fliptop
Johnson, Shaunn wrote: > I'd like to generate a graph / chart of data > from my database. For example, in a perl > script, I'm doing a distinct count of a column > in a table and get a list of stuff back. > I want to take that data and maybe put it into > an array. From there, I'd like to figur

Re: Run process in background

2002-04-19 Thread fliptop
Alex Read wrote: > I have an html page that when I press the submit button the cgi script > runs a shell script. I am having trouble because the html page hangs > until the shell script has finished, i.e. the shell script process is > not running in the background. I have tried the following; >

Re: A super huge form.

2002-04-20 Thread fliptop
Connie Chan wrote: > Hi all, would anybody know how to handle a form with > about 6000 around data field ? and if there any max size > for data submit through CGI ? > Anyway, I don't want to use cgi.pm. why not? you can easily manipulate $CGI::POST_MAX to allow practically any size of data to

Re: FILE Transfer (FTP) using PERL

2002-04-22 Thread fliptop
[EMAIL PROTECTED] wrote: > I was wondering if a HTML form, and PERL, can be used so that visitors > to my web site can upload pictural files (ala FTP) to me? if you're using cgi.pm, you don't need to use ftp: use MIME::Lite; my %email = ( From => 'whomever', To => '[EMAIL

Re: FILE Transfer (FTP) using PERL

2002-04-22 Thread fliptop
fliptop wrote: > [EMAIL PROTECTED] wrote: > > $msg->attach( > Type => 'image/jpeg', # or whatever > FH => $cgi->upload('Filename') > ); i didn't test this, but you could probably do it instead: $msg->attach( Type => $c

Re: FILE Transfer (FTP) using PERL

2002-04-22 Thread fliptop
Todd Wade wrote: > "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > This will dump the file back to the user inside the browser window. Putting > the data in a file or attaching it to an email is left as an exercise to the > poster. wh

Re: pattern matching for serial number

2002-04-26 Thread fliptop
Kamali Muthukrishnan wrote: > Hi guys : > I have serial numbers with a pattern : 3 numbers followed by 2 capital letters >followed by 3 numbers. > To validate this - > if ($serial !~ m/[0-9]{3}[A-Z]{2}[0-9]{3} ) > { # display error ; } > I get a syntax error. i think you're missing a

Re: HELP!

2002-05-01 Thread fliptop
Andrew Rosolino wrote: > Say I have an array that contains! > > @array = qw( cool cool dog dog dog ); > > Now I want to sum that up, so that the array only has > 1 COOL and 1 DOG, so it would contain! > > @array = qw( cool dog ); my %array; map { $array{$_}++ } @array; my @unique = keys %a

Re: HELP!

2002-05-01 Thread fliptop
Bob Showalter wrote: > > They are the same as far as the effect on %array. But you > shouldn't use map() in a void context, as it constructs a > result list which is then thrown away. So your iterative > approach is better. sorry, i should have done: my %a = map { $_ => 1 } @a; my @unique

Re: query about empty return value from SELECT

2002-05-02 Thread fliptop
drieux wrote: > > if you are trying to make sure that you have packed up the > message correctly before pushing it into the mess - then > you might want to do something like > > my $msg = "select distinct X from Y where P=\'$pVal\'"; > > so that we can verify that the SQL is 'kosher' and w

Re: cgi error question

2002-05-10 Thread fliptop
Lance Prais wrote: > I have properly set up cgi-bin directory on my solaris box using Iplanet as > my web server, placed the scripts in the cgi-bin folder and mapped the path > in Iplanet but I am getting the following error when I try to execute. > > trying to POST /cgi-bin/ts_ticket_submit.cgi

  1   2   3   4   >