Re: starting perl

2004-05-03 Thread fliptop
On Sun, 2 May 2004 at 15:00, Charlie davis opined: Cd:But when I type what it says in the book I am getting an error Cd:messagethat states that I have entered a bad command or filename what I Cd:am entering is c:\> perl -w -e "print \ "Hello, World!\n\";" And then I Cd:get the error message. Cd: C

Re: calculating election day

2004-02-05 Thread fliptop
On Tue, 3 Feb 2004 at 17:42, Chad A Gard opined: CAG:I'm attempting to dynamically place an image into the user interface CAG:of an intranet site to celebrate various holidays. It's really not this doesn't really have anything to do with cgi, but if you read the recipes for Date::Calc, you shou

Re: cgi_lib'maxdata

2003-10-28 Thread fliptop
On Tue, 28 Oct 2003 at 10:52, [EMAIL PROTECTED] opined: :On martedì 28 ottobre 2003, alle 10:15, SRef wrote: :> Why not try before you ask ? : :I though this mailing list was for beginners, and as I've started using :CGI Perl just a week ago, I'm not still so able to send POST oversized :for an ha

Re: POSIX 'strftime' and time zones

2003-10-01 Thread fliptop
On Tue, 30 Sep 2003 at 23:57, David Gilden opined: DG:How can I add two hours to offset for central time? try date::calc http://search.cpan.org/~stbey/Date-Calc-5.3/ you'll probably want to use the Add_Delta_Days() function. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Re: Still Not sure if I agree with myself.

2003-09-12 Thread fliptop
On Thu, 11 Sep 2003 at 14:13, drieux opined: [snip] d: sub should { defined($REQ_PARAMS->{$_[0]}); } d: d: sub doDaemon { d: d: } d: sub kickDaemon { $me=shift; $me->doDaemon(@_); } d: # the synonym trick... d: d:Which still gives me a HASH to m

Re: Still Not sure if I agree with myself.

2003-09-11 Thread fliptop
On Thu, 11 Sep 2003 at 07:55, drieux opined: d:simply because d: d: $obj->can($do); d: d:does not mean d: d: $obj->should($do); d: d:The problem I am looking for in my should() method d:is a programatic way to solve Which Method to invoke d:the correct sub to deal with a query string. I

Re: Still Not sure if I agree with myself.

2003-09-11 Thread fliptop
On Mon, 8 Sep 2003 at 15:36, drieux opined: drieux - since no one has responded, i'll take a stab at some of the issues you bring up. d:One of my first question is - why the 'closure' eg: d: d:{ d: package FOO; d: d:} d: d:Or is that simply to make 'clear' that outside of d:the Cl

RE: accessing a hash map...

2003-09-11 Thread fliptop
On Tue, 9 Sep 2003 at 14:50, Hanson, Rob opined: HR:(ActiveState), or modules (Tk). This is a good list for any HR:beginner(ish) question, no matter the subject... just as long as it is HR:a Perl question. i disagree - this list is for perl beginners cgi questions. if your perl question does no

Re: Counter triggered on download

2003-08-26 Thread fliptop
On Tue, 26 Aug 2003 at 00:31, Octavian Rasnita opined: OR:This is a pretty good method, but it is not so good because the OR:visitors won't be able to use a Download manager to download the file. OR:Or better said, they won't be able to resume the download. true, however the original poster asked

Re: Counter triggered on download

2003-08-26 Thread fliptop
On Sun, 24 Aug 2003 at 03:04, zsdc opined: z:fliptop wrote: z: z:> merrill - i'm a little late on this thread, and the other suggestions are z:> valid, but here's one way to serve up files w/o using a direct link by z:> taking advantage of CGI.pm's header() function: z:> z:> my $cgi = new CGI; z:

Re: Counter triggered on download

2003-08-23 Thread fliptop
On Wed, 20 Aug 2003 at 13:29, Merrill Oakes opined: MO:I have a link to a PDF file on a web page. I want to count how many MO:times that someone clicks on the link (i.e. downloads the PDF). The MO:easy way (at least for me) would be to make them go to a "download page" MO:first, and I could p

Re: Why executable?

2003-08-14 Thread fliptop
On Mon, 11 Aug 2003 at 22:36, Octavian Rasnita opined: [snip] OR:I've tried chmodding the perl script to 755, and I've tried running it OR:with: OR: OR:$ script.pl OR: OR:...but it didn't want to run, telling me that there is no command OR:script.pl, even though the script has a shebang line in it

Re: File uploading

2003-07-18 Thread fliptop
On Fri, 18 Jul 2003 at 23:46, Mike opined: M:What if I now want to upload 2 files. The first can be up to 100k in size M:and the second up to 80k in size? That is pretty much the way I have it set M:up at the moment... M: M:Or should I admit defeat at this stage and allow 2 files to be uploaded

Re: File uploading

2003-07-18 Thread fliptop
On Fri, 18 Jul 2003 at 12:03, Mike Harrison opined: MH:I have a perl program that allows a user to upload a file (either .jpg or MH:.gif) to the server, and returns a message if it exceeds a specified size MH:(in my case 100kB). Currently (and don't laugh - I am new to perl), I go MH:through the

Re: multipart form data

2003-07-16 Thread fliptop
On Tue, 15 Jul 2003 at 17:30, Anshuman Kanwar opined: [snip] AK:So it sees the filename but not the data itself. Problem is that I want to AK:save the Jpg pictures in some other files and the AK:"BOTZSERIAL=00:02:D3:00:01:01" type info in some other file, but I am not AK:seeing the binary (jpg) da

Re: Doing time/date calculations

2003-06-23 Thread fliptop
On Sun, 22 Jun 2003 at 16:57, Scot Robnett opined: SR:How would one go about determining if something is 3 days old, 3 months old, SR:1 year old, etc., based on the following scenario? SR: SR:The date that a user subscribes to our site is stored in a MySQL database in SR:the DATE format -mm-dd

Re: MVC for cgi perl?

2003-06-19 Thread fliptop
On Wed, 18 Jun 2003 at 20:09, Richard Heintze opined: RH:Both Microsoft (with ASP.NET) and Apache (with stuts RH:and java custom tag library) have recognized the RH:perils of embedding UI code (browser code like HTML RH:and Javascript) inside backend/database code (SQL, RH:perl, Java, C# etc...)

RE: Scheduling routine or module

2003-06-17 Thread fliptop
On Tue, 17 Jun 2003 at 10:35, Scot Robnett opined: SR:fliptop wrote: SR:-- SR:are the email addresses stored in a db? any reason you can't use SR:majordomo or ezmlm or something similar? SR: SR: Yes, they're stored in a MySQL database table SR: of subscribers. I -could- use ma

Re: Scheduling routine or module

2003-06-17 Thread fliptop
On Mon, 16 Jun 2003 at 17:15, Scot Robnett opined: SR:Is anyone aware of a good module for scheduling an event that is not a SR:command line event? I may just be able to use cron for this but I'm checking SR:if there is another solution. I want to schedule an e-mail to be sent to a SR:list of abou

Re: Problems with URL parameters.

2003-05-28 Thread fliptop
On Wed, 28 May 2003 at 01:00, Nicholas Davey opined: [snip] ND:http://www.blah.com/cgi-bin/index.cgi?login=yes (DONT go here, example only) ND: ND:#!/usr/bin/perl ND: ND:[ output HTML headers and top of page here ] ND: ND:if (login eq 'yes') { ND:[ output login form here ] ND:} ND: ND:[ output

RE: Problems getting a simple form to work.

2003-04-04 Thread fliptop
On Fri, 4 Apr 2003 at 16:29, Mike Butler opined: MB:Thanks, Andrew. I added CGI::Carp qw(fatalsToBrowser); to the script. That's MB:a big help. The error message that I get now is: MB:Software error: MB:Undefined subroutine &main::param called at simpleform.cgi line 6. MB: MB:Line 6 is my $usernam

Re: CGI.pm script not working

2003-03-31 Thread fliptop
On Mon, 31 Mar 2003 at 12:41, David Gilden opined: DG:I have uploaded the following to a UNIX server at Earthlink, DG:and it is returning a 500 Internal Server Error. [snip] DG:my $loc = '/pages/thankyou.htm'; i'd try this instead: my $loc = "/pages/thankyou.htm\n\n"; do you have access to your

Re: The very un-useful 'premature end of script headers' error message

2003-03-31 Thread fliptop
On Sun, 30 Mar 2003 at 22:43, Cool Hand Luke opined: [reply cc'd to group] CHL:> and to offer one example as an answer to your question, how would you CHL:> parse a binary file uploaded to your script using your split(/[&;]/, CHL:> $submission) code? CHL: CHL:Not parsing any binaries, just simple

Re: The very un-useful 'premature end of script headers' error message

2003-03-30 Thread fliptop
On Sun, 30 Mar 2003 at 12:53, Cool Hand Luke opined: CHL:Now, why not? Also, notice that the code I used is not what you have quoted. CHL:Really am curious as to why not, though. because someone else has already written a pretty solid module for parsing query strings, and it's been tried and tes

Re: Net::LDAP.pm

2003-03-11 Thread fliptop
On Tue, 11 Mar 2003 at 11:49, Susan Aurand opined: SA:Hello, Can anyone tell me why I am receiving an error can't locate SA:Net/LDAP.pm in @ INC (@INC includes /usr/lib/perl5/5.6.1 etc, etc etc, SA:etc. is net::ldap installed? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: CGI.pm strange results

2003-03-04 Thread fliptop
On Tue, 4 Mar 2003 at 08:12, Todd W opined: TW:my( $string ) = "you ordered $q->param('quantity') foobars\n"; TW: TW:The quoting mechanism knows nothing about evaluating expressions. That's TW:what concatenation is for: TW: TW:my( $string ) = "you ordered " . $q->param('quantity') . " foobars\n";

Re: Learning Perl

2003-02-28 Thread fliptop
On 28 Feb 2003 at 05:31, Randal L. Schwartz opined: RLS:> "WilliamGunther" == WilliamGunther <[EMAIL PROTECTED]> writes: RLS: RLS:WilliamGunther> I think Programming Perl is good for learning. There RLS:WilliamGunther> is a book also called Learning Perl from O'Reilly, but RLS:WilliamGunther>

Re: MySQL won't GRANT ALL ON cookbook.* ... ERROR 1044

2003-02-24 Thread fliptop
On Sun, 23 Feb 2003 at 20:09, Ed Sickafus opined: ES:Server: Linux (RedHat 7.2) Apache 1.3.x ES:I'm trying to run an introductory exercise out of MySQL Cookbook by Paul ES:DeBois ES:Accessing MySQL from a PC via PuTTY to ISP's UNIX ES:I can get to the mysql> prompt but no further. [snip] since yo

RE: php like behavior for my perl CGI

2003-02-20 Thread fliptop
On Thu, 20 Feb 2003 at 09:41, Peter Kappus opined: [snip] PK:Quite ingenious. While I'm sure I'll regret it later (and curse your good PK:name as I'm wishing I'd taken the time to learn Mason or HTML::Template) PK:this seems like a great quick fix for the time being. And it never hurts to PK:lea

RE: php like behavior for my perl CGI

2003-02-17 Thread fliptop
On Mon, 17 Feb 2003 at 10:26, Peter Kappus opined: [snip] PK:which would create and send the image tag for me. PK:I'd like, in perl, to do the following: PK: PK:print< PK: PK: PK: PK: PK:eob PK: PK:Ideally, I would overload the print function so that it would search for PK:stat

Re: Ping Results

2003-01-30 Thread fliptop
On Thu, 30 Jan 2003 at 08:33, Mike Blezien opined: MB:trying to put together a simple 'ping' display via the browser... and MB:not having any luck... how does one get the results of a ping to diplay MB:the results properly ?? http://search.cpan.org/author/BBB/Net-Ping-2.28/lib/Net/Ping.pm don't

[OT] RE: Search database problem.

2003-01-18 Thread fliptop
On Sat, 18 Jan 2003 at 17:45, Hughes, Andrew opined: [reply cc'd to list] HA:DBD::mysql::db do failed: Duplicate entry '[EMAIL PROTECTED]' for HA:key 2 at nCSSW.pl line 787. HA: HA:I know that you tried to point me in the right direction with the code HA:snippet that you suggested. However, as I

Re: Search database problem.

2003-01-17 Thread fliptop
On Fri, 17 Jan 2003 at 17:10, Hughes, Andrew opined: [snip] HA:The goal is that before I submit a form submission to the database, I want HA:to make sure that someone with the same email address has not already HA:submitted it. If the count(*) brings up anything greater than 0 then the HA:users h

RE: cgi.pm generate html vs. print <

2003-01-17 Thread fliptop
On Fri, 17 Jan 2003 at 14:29, Hughes, Andrew opined: HA:My problem had to do with the content header. I also did not realize that HA:you are supposed to point the .pl file in the browser. Rookie mistakes! HA: HA:As far as the tags, all of the tutorials that I have seen look HA:like this -- as

RE: cgi.pm generate html vs. print <

2003-01-17 Thread fliptop
On Thu, 16 Jan 2003 at 16:32, Hughes, Andrew opined: HA:I am pointing to the results.tmpl file which is in the same folder as the HA:the .pl script. I found another test script on the web on another website, HA:and I have the same problem -- the tags are not replaced with the HA:information in th

RE: cgi.pm generate html vs. print <

2003-01-16 Thread fliptop
On Thu, 16 Jan 2003 at 11:49, Hughes, Andrew opined: HA:Thanks for the feedback. Before I get started on the html::template HA:tutorial, I wanted to try a quick sample page using html::template. HA:However, when I try it, I cannot get the tag in the html to process. Could HA:someone take a look

Re: cgi.pm generate html vs. print <

2003-01-16 Thread fliptop
On Wed, 15 Jan 2003 at 21:11, Hughes, Andrew opined: HA:does anyone have any strong feelings (know of tutorials) toward an HA:altrnative method like html::template or html::mason? Any and all HA:suggestions are greatly appreciated. http://www.peacecomputers.com/addressbook/step5.html -- To un

Re: Retriving a file using cgi posted from a html form

2003-01-15 Thread fliptop
On Wed, 15 Jan 2003 at 22:32, LRMK opined: L:how do I retrieve & save files that has been posted from a Html form to L:my cgi script. have you read 'perldoc CGI'? L:please send a piece of example code from 'perldoc CGI' (for a plain text file): $fh = $query->upload('uploaded_file');

RE: how to print mysql table to text file backup with perl

2003-01-07 Thread fliptop
On Mon, 6 Jan 2003 at 20:44, Hughes, Andrew opined: HA:That makes a lot of sense. If I strip out the pipes, tabs, hard returns HA:etc. going into the database table, do you think that I should be okay not HA:using the module? why waste your time? the csv modules already on cpan do it all for yo

RE: how to print mysql table to text file backup with perl

2003-01-06 Thread fliptop
On Mon, 6 Jan 2003 at 15:11, Hughes, Andrew opined: HA:my $filename = "out.txt"; HA:open(OUTFILE,">$filename"); HA: $stmt = qq { select * from 2002brochurecontest }; HA: $sth = $dbh->prepare ($stmt); HA: $sth->execute (); HA: $count = 0; HA: while (my $row = $sth->fetchrow_hashref()) HA:{

Re: Perl 6 (was: Re: Confusion on @array vs $array[] vs $array)

2002-12-19 Thread fliptop
[reply cc'd to list] On Thu, 19 Dec 2002 at 06:23, Rob Richardson opined: RR:What is the advantage of these changes? RR:When is Perl 6 due out? RR:Do those links you provided describe all the differences we will see in RR:Perl 6? i'm no authority on perl 6, so i can't answer any of your questi

Re: Confusion on @array vs $array[] vs $array

2002-12-19 Thread fliptop
On Wed, 18 Dec 2002 at 13:49, kevin christopher opined: kc:Hope this doesn't further belabor the issue, but just to put my kc:two cents in, Perl syntactic rules for prefixing "$", "@", "%" are kc:very consistent, IMHO: You just need to keep in mind the types of kc:the values/data types ultimate

Re: Installing CGI.pm in RedHat 8.0.

2002-12-10 Thread fliptop
On Tue, 10 Dec 2002 at 06:51, Admin-Stress opined: A:I dont know why, in my OTHER RedHat 8.0 installation, I cant find A:CGI.pm. I did install perl5.8.0. A: A:Anyone know how to install it? I looked in cpan, it seems it's default A:perl module. And I cant find any installer for it. A: A:Is it OK i

Re: cgi session

2002-12-05 Thread fliptop
On Thu, 5 Dec 2002 at 10:39, Admin-Stress opined: [snip] A:I just want to make a 'secure site' that need username and password. So, the first page of my site A:would be "fill in you username and password", for example, it will be placed here : A: A: http://www.mydomain.com/login.html A: A:After

Re: Checking for existance for data in a column

2002-12-03 Thread fliptop
On Tue, 3 Dec 2002 at 09:36, T. Murlidharan Nair opined: TMN:any calculations on them obviously. How do I check whether TMN:the column contains data, once I have retrived all the data TMN:using fetchrow_hashref(). you probably should ask on a dbi list. http://www.isc.org/services/public/lists/

Re: 5.005_03 vs. 5.8

2002-12-03 Thread fliptop
On Mon, 2 Dec 2002 at 21:28, Scot Robnett opined: SR:I am working with a university on a web project which entails setting up a SR:new server. We're going with Red Hat Linux on Dell hardware (RAID 5 SR:configuration), but I am not sure which version of Perl to recommend. I am SR:very used to 5.005

Re: clarification scrolling list (code incl)

2002-11-24 Thread fliptop
On Sun, 24 Nov 2002 at 09:40, Ramon Hildreth opined: RH:Hi, RH:This is a clarification of a previous question about a scrolling list. RH:here is my code: RH:-- RH:"city name", scrollinglist( -name=>"city", RH: -override=>'1', RH:

Re: tutorials

2002-11-23 Thread fliptop
On Sat, 23 Nov 2002 at 17:25, [EMAIL PROTECTED] opined: :does anybody have any really good sites or books that deal just with CGI as :in applications to web programming. Almost all i have found in the book area :is how to code perl in the command line interface. I looking for just web :based st

Re: libwww example / tutorial

2002-11-23 Thread fliptop
On Sat, 23 Nov 2002 at 05:07, Admin-Stress opined: A: if ($res->is_success) { A: print $res->content; A: } else { A: print "Error: " . $res->status_line . "\n"; A: } A: A:What is the variable type of $res->content ? is it Array? Because it A:just dumped the output (multiple lines),

Re: multiple selection

2002-11-23 Thread fliptop
On Fri, 22 Nov 2002 at 15:56, Mike(mickako)Blezien opined: M: @lists = split(/ /,param('list')); from perldoc CGI: FETCHING THE VALUE OR VALUES OF A SINGLE NAMED PARAMETER: @values = $query->param('foo'); -or- $value = $query->param('foo'); --

Re: Non-caching META-tags

2002-11-21 Thread fliptop
On Thu, 21 Nov 2002 at 08:09, Michael Kelly opined: MK:On Thu, Nov 21, 2002 at 07:19:37AM -0500, fliptop wrote: MK:> On Wed, 20 Nov 2002 at 13:58, Michael Kelly opined: MK:> MK:> MK:On Wed, Nov 20, 2002 at 02:02:05PM +, Nick Malden wrote: MK:> MK: MK:> MK:CGI.pm doesn'

Re: Non-caching META-tags

2002-11-21 Thread fliptop
On Wed, 20 Nov 2002 at 13:58, Michael Kelly opined: MK:On Wed, Nov 20, 2002 at 02:02:05PM +, Nick Malden wrote: MK: MK:CGI.pm doesn't support http-equiv meta-tags, according to the documentation. MK:What about something as simple as: what? snippet from perldoc CGI: To create an HTTP-EQUIV t

Re: Non-caching META-tags

2002-11-20 Thread fliptop
On Wed, 20 Nov 2002 at 14:02, Nick Malden opined: NM:print $q->header, NM: $q->start_html(-title=>'My new page', NM:-meta=>{'http-equiv'=>'Cache-Control' 'content'='no-cache,must-revalidate'}) NM:-meta=>{'http-equiv'=>'Pragma: no-cache'}); NM: NM:but this give

Re: auto execute cgi

2002-11-01 Thread fliptop
On Fri, 1 Nov 2002 at 07:04, Admin-Stress opined: A:Maybe this is not so related with perl it self, but still ... A: A:Is there any way to 'auto execute cgi' ? I meant, I have to trigger A:something (like updating database via perl) just after user viewed the A:html. perhaps a server side include

Re: my $q = shift and another

2002-10-29 Thread fliptop
On Tue, 29 Oct 2002 at 15:57, Jimmy George opined: JG:And how come my use of -wT in the opening line results in a JG: JG:'Too late for Taint mode now' message? JG: JG:Again the cgi programming book uses it every where except for the JG:security chapter but my Mac debugger will not accept it at all

Re: Perl MSGraph

2002-10-28 Thread fliptop
On Mon, 28 Oct 2002 at 10:26, T. Murlidharan Nair opined: TMN:I must confess this is not a Perl CGI question, but,since we have some then you should probably ask it on a non-cgi list. try one of these: http://lists.perl.org/showlist.cgi?name=beginners http://lists.perl.org/showlist.cgi?name=pe

Re: perl cgi security

2002-10-28 Thread fliptop
On Sun, 27 Oct 2002 at 14:10, Admin-Stress opined: A:Is it possible to VIEW the source code of a perl cgi from a website? sure, if your httpd server is improperly configured. A:For example, I wrote a perl cgi like this A:http://www.myweb.com/cgi-bin/addcustomer.pl A: A:The purpose of that script

Re: using includes or exec to call a CGI

2002-10-25 Thread fliptop
On Fri, 25 Oct 2002 at 12:11, Al Hospers opined: have you looked at apache's documentation for mod_include? http://httpd.apache.org/docs/mod/mod_include.html AH:the cgi works fine when called in the browser as a url, here: AH: AH:http://66.186.192.77/cgi-bin/quotes/quotemaster.cgi? AH: AH:but wh

Re: [CGI ERR] Global symbol "" requires explicit package name ...

2002-10-18 Thread fliptop
On Wed, 16 Oct 2002 at 19:33, Colby opined: [snip] C:Global symbol "" requires explicit package name at ./myscript.cgi line C:60, 70, 90, 108 [snip] C:I've gone over the code with a fine-tooth comb as it were, checked for C:the usual (missing semi-colons, right parenthesis/curly braces, etc C:...)

Re: Using MySQL

2002-10-15 Thread fliptop
On Tue, 15 Oct 2002 at 06:27, Octavian Rasnita opined: OR:Can you tell me what else do I need to use MySQL databases? you can start off by reading perldoc DBI and perldoc DBD::mysql which are the fundamental modules you'll need to communicate with mysql from perl. OR:With MySQL I am at th

Re: css in cgi generated page

2002-10-11 Thread fliptop
On Thu, 10 Oct 2002 at 22:01, Ian Watt opined: IW:is there some special trick to linking a style sheet to your page when IW:the page is generated by a cgi script? IW:I have this sub routine that prints the header of a html page: IW: sub write_html_header IW: { IW:print "Content-type: text/

Re: Begineers Help

2002-10-07 Thread fliptop
On Mon, 7 Oct 2002 at 12:24, joel_divekar opined: [snip] j:a) I am using HTML editor for creating web pages and I will never be j:using CGI.pm for creating HTML pages atall. j:b) I want to use CGI.pm to just process the accepted data. Or do I use j:any other module instead. Can you provide me wit

Re: CGI problem

2002-10-03 Thread fliptop
On Thu, 3 Oct 2002 at 08:52, zentara opined: z:On Thu, 03 Oct 2002 07:34:13 -0400, [EMAIL PROTECTED] (Zentara) z:wrote: z: z:Oops, keep forgetting the header. :-) The following will z:send the form variables back to the browser. z: z:>### z:>#!

Re: How to run a process in background?

2002-09-30 Thread fliptop
On Sun, 29 Sep 2002 at 16:40, Octavian Rasnita opined: OR:Can you give me some hints about how I should use the fork, to run the OR:process in background? have you read perldoc -f fork yet? if so, what part of that do you not understand? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: Barcode scanner & CGI

2002-09-25 Thread fliptop
On Wed, 25 Sep 2002 at 10:00, Geraint Jones opined: GJ:On Tuesday 24 September 2002 3:41 pm, fliptop wrote: GJ:> On Tue, 24 Sep 2002 at 13:24, Geraint Jones opined: GJ:> GJ:> GJ:I'm trying to get the output from a barcode scanner into my CGI script. GJ:> What I GJ:would l

Re: Barcode scanner & CGI

2002-09-24 Thread fliptop
On Tue, 24 Sep 2002 at 13:24, Geraint Jones opined: GJ:I'm trying to get the output from a barcode scanner into my CGI script. What I GJ:would like to see is the barcode going straight into a text box in my GJ:browser. I am using Device::SerialPort to read the output which works fine as GJ:a n

Re: GPL - how does it work

2002-09-19 Thread fliptop
On Thu, 19 Sep 2002 at 08:20, Alex Agerholm opined: AA:I am writing a CGI application/script in Perl which I am going to sell AA:This application uses a few Perl modules (CGI.pm, Session.pm) which is AA:covered by the GPL. AA:How am I going to handle that, when I do not want to release my applica

Re: sort

2002-09-19 Thread fliptop
On Wed, 18 Sep 2002 at 20:43, Daniel Hurtado Brenner opined: DHB:For example: DHB:If i have a flat data base myfile.txt with this info: DHB: DHB:1|name|address| DHB:2|name two|address two| DHB:3|name three|address three| DHB:4|name four|address four| DHB:. (etc, etc) DHB: DHB:If i execute: DH

Re: Creating thumbnails (Newbie Question)...

2002-09-19 Thread fliptop
messages to the list so everyone can benefit from the questions and answers. to answer your question - did you investigate the perl module i listed? it's called Image::Magick::Thumbnail, and it does exactly what you describe. Please see below: OR:- Original Message - OR:From: &qu

Re: Date Question(s)

2002-09-18 Thread fliptop
On Wed, 18 Sep 2002 at 12:53, [EMAIL PROTECTED] opined: [snip] n:My problem with this scenario involves my lack of knowledge in -- n: n:A. ... first converting a current system date to a string date (which can n:be appended to a text log file). n:B. ... or comparing the logged initial-question d

Re: Creating thumbnails (Newbie Question)...

2002-09-18 Thread fliptop
On Wed, 18 Sep 2002 at 09:56, Yuen, Alex opined: YA:I was wondering if it is possible to write a CGI (Perl) program to make a YA:thumbnail page for my website. YA: YA:If so, how would I start and use for doing this? if you question is how to create a thumbnail from a regular image, then you cou

Re: Indexing multiple records for potential updates

2002-09-10 Thread fliptop
On Mon, 9 Sep 2002 at 22:08, Maureen E Fischer opined: MEF:I'm working on a Perl CGI program that must update MEF:A mysql database. The user enters key information that MEF:Is used to display zero to many records. Then the user MEF:Can update or delete any number of records displayed. MEF:I

Re: remove elements in one array from another...

2002-09-05 Thread fliptop
On Thu, 5 Sep 2002 at 09:01, Anthony E. opined: AE:ie - i have two arrays (lists): AE: AE:@hrefs: a list of urls.. AE:and @banned, and list of bad urls. I want to remove AE:the @banned urls from @hrefs. AE: AE:How would i do this? you probably should represent one (or both) arrays as a hash. pe

Re: Monitor a POP3 account

2002-09-03 Thread fliptop
On Tue, 3 Sep 2002 at 11:05, Mike(mickako)Blezien opined: M:Need to come up with a script to monitor a special POP3 account that will be M:used to tigger another script.. was hoping someone could direct me or supply an M:example of how to retreive an email from a POP account. M: M:Basically this

Re: Analyzing a form

2002-09-02 Thread fliptop
On Mon, 2 Sep 2002 at 06:20, Soheil Shaghaghi opined: [snip] SS:Now, here is what I am trying to get after the data is analyzed: SS:All I want is to display a page that says Passed, or Failed with a message. SS: SS:Below is what I have so far: SS:As you can see it's not completed yet, but I am no

Re: Password protection without the use of .htaccess

2002-09-02 Thread fliptop
On Mon, 2 Sep 2002 at 20:33, Alex Agerholm opined: AA:Can anyone direct me to some good source code example, on how to password AA:protect some CGI scripts. AA:As I want the solution to be portable, I do not want to use .htaccess. AA:I would prefer som code to make a login page and verify the use

Re: How to protect Perl code

2002-09-02 Thread fliptop
On Mon, 2 Sep 2002 at 20:33, Alex Agerholm opined: AA:Can anyone give me a good way to protect my Perl code. I am writing a AA:CGI application in Perl that I am going to sell - therefore I would AA:like to protect my code in such a way that it is not that easy to copy AA:the code and reuse/resell

Re: encryption

2002-08-30 Thread fliptop
On Fri, 30 Aug 2002 at 10:32, Jimmy George opined: JG:Is there any way of encrypting a credit card number etc. so that it can JG:not be seen when being transmitted from desktop to server? The user JG:needs to see what they type to make sure it is correct - so how do we JG:get cgi to encrypt that

Re: Application Design for User Authentication

2002-08-28 Thread fliptop
On 28 Aug 2002 at 18:41, Gfoo opined: G:I', planning to use mod_perl for speed. G:But... How can I keep the authentication routines I' ve written and have G:mod_perl to help me? You mean configuring the server (apache) to handle G:authentication by calling some perl code? Will this let me have

Re: Application Design for User Authentication

2002-08-28 Thread fliptop
On Wed, 28 Aug 2002 at 15:46, Oleksiy Rudenko opined: OR:Where could I as a beginner read more about mod_perl? Sources in plain OR:English appreciated. OR:Thanx. perl.apache.org is a good place to start. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: Application Design for User Authentication

2002-08-28 Thread fliptop
On 28 Aug 2002 at 11:57, Gfoo opined: G:I'm creating a web appication in Perl (and CGI). G:I' ve written code that is used to create and read sessions (by using G:cookies or GET http method) which are used after authenticating user logins G:in a database. G:The code for handing transitions and

Re: sendmail command line (without queuing)

2002-08-28 Thread fliptop
On Tue, 27 Aug 2002 at 22:51, Wiggins d'Anconia opined: [cur-snippity] Wd:http://search.cpan.org/search?mode=all&query=sendmail Wd: Wd:Remember to throw comments back to the list as well, I would love to Wd:hear what others think, does anyone disagree, should we cast aside the Wd:module and go

RE: apache::*, simple question.

2002-08-20 Thread fliptop
On Tue, 20 Aug 2002 at 16:51, Bob Showalter opined: BS:You're joking, right? Apache::DBI is completely useless under mod_cgi. when i use it with ordinary cgi programs and postgresql (on linux) i always see a pool of connections that remain active until httpd is restarted or the child process(es)

Re: apache::*, simple question.

2002-08-20 Thread fliptop
On Tue, 20 Aug 2002 at 21:35, Hytham Shehab opined: HS:hi guys, HS:is it a must to use mod_perl to access all/some apache::* modules?, i HS:mean, if i run normal perl and cgi scripts, i won't be able to access apache HS:modules? it's not necessary to use mod_perl. for example, apache::dbi h

RE: Online installer

2002-08-18 Thread fliptop
On Sun, 18 Aug 2002 at 01:13, Soheil Shaghaghi opined: SS:Thanks Jim :) SS:I've actually seen such scripts on the web, so I know it's possible. SS:One thing that is not the job of this script is to actually look for server SS:details. These should be determined by the user. SS: SS:Basically, the

Re: Probably a simple problem

2002-08-15 Thread fliptop
On Thu, 15 Aug 2002 at 20:36, Patricia Gillard opined: PG:Probably a simple problem, hopefully with a simple answer. PG: PG:I recently moved my web domain to a new host service and suddenly my scripts PG:don't work. The scripts were ones I had downloaded from Matt's Script PG:Archive, and they w

Re: mysql problem

2002-08-15 Thread fliptop
On Thu, 15 Aug 2002 at 16:37, Jim Lundeen opined: JL:ok, i just setup a new server (redhat 7.3) and my guy says that the JL:dbd/dbi stuff is configured for perl-to-mysql connectivity, but i get JL:the following error message in my error log each time i try to run a JL:script from either the comma

Re: Checking Form data

2002-07-31 Thread fliptop
Kipp, James wrote: > What is the best way to validate form data. I have a form which the user > enters dates like '08/01/2002'. What is the best way to make sure this > format is entered. Should i use javascript here or regex? i had some free time, so i decided to finish up some thoughts i have

Re: regular expression

2002-07-27 Thread fliptop
GsuLinuX wrote: > > I wanna check the information typed in the form field whether if it > is in date format or not . Like : check it if it is in format > day/mount/year , in format like ab/cd/ef or ab/cd/efgh "ab" must > be valid like between 1-31 "cd" must be valid between 1-12 or must > b

Re: Finding the country

2002-07-24 Thread fliptop
Scot Robnett wrote: > I'm assuming your best bet would be to find the IP using the first line of a > ping or traceroute and regex-ing out the extraneous stuff, then using > 'whois -a' (which does an ARIN search) and extracting the 4th line to get > the country. > > Anybody have any easier/faster

Re: printf not printing correctly

2002-07-22 Thread fliptop
Hughes, Andrew wrote: > I am having a problem making printf work correctly. The following line of > code: > > printf("\$%4.2\n", $subtotal); you're missing a field type option in your format statement. printf "\$%4.2f\n", $subtotal; -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: Buffer output?

2002-07-22 Thread fliptop
Octavian Rasnita wrote: > > I've seen the following line in more Perl scripts and even in some Perl > books, but it wasn't very well explained. > > $|=1; ## Don't buffer output > > What does it mean to buffer output? > Which is the difference if the $| is 0 or 1? perldoc perlfaq5 --

Re: running tar from a browser

2002-07-18 Thread fliptop
Bob Showalter wrote: >>-Original Message- >>From: Soheil Shaghaghi [mailto:[EMAIL PROTECTED]] >>Sent: Thursday, July 18, 2002 2:48 PM >>To: [EMAIL PROTECTED] >>Subject: running tar from a browser >> >> >>Hello everyone. >> >>Here is my problem, if anyone can please help me: >>Running, Lin

Re: Couple of newbie questions

2002-07-16 Thread fliptop
Kerr Wall wrote: > How does perl handle multiple requests. For example, if 10 users are > logged into your system and they are all trying to use the same script, > how does perl deal with this situation? unless you're running mod_perl, a separete perl interpreter will start for each request

Re: Displaying counter

2002-07-15 Thread fliptop
Jim Lundeen wrote: > I have the following in my HTML output: > > >the message to actually show the active counter... 600 changes to 599, > then 598, and so on... there's a script available from http://javascript.internet.com that does this very thing. i've used it and it works very we

Re: Check disc quota

2002-07-15 Thread fliptop
Mike(mickalo)Blezien wrote: > I am new to this list, so if this not the proper list to send this too, I would > appreciate the name of the appropriate list. it's not the correct list. this is a beginners-cgi list. i would suggest the beginners mailing list. point your browser to learn.perl.

Re: mysql where statement in select

2002-07-12 Thread fliptop
Maureen E Fischer wrote: > Hello, > Is there a way of varying the key fields in a where statement? I don't i would suggest posting your questions on a more appropriate mailing list. http://www.perl.com/pub/a/language/info/mailing-lists.html -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: "tail -f" with cgi

2002-07-12 Thread fliptop
Max Clark wrote: > I am trying to write a cgi program to "tail -f" a log file. I have a perl > script that will open and print the log file, however it closes as soon as > it reads whatever is in the file at that particular time. How do I mimic > "tail -f" functionality? try the qx// operator:

Re: mail filters

2002-07-11 Thread fliptop
(not the exact duplicate of TPJ chuckmail > but based on it). Is that correct? The mail server is exim. dunno. i use procmail and sendmail. here's what i put in my ..procmailrc file: :0: * | /home/fliptop/bin/filter.pl this is off topic for a cgi mailing list, perhaps you should try ano

Re: mail filters

2002-07-11 Thread fliptop
file to direct mail to my script. I have attempted to use find on > the server without any luck. put it in your home directory. for example, my login is fliptop, and my home directory is /home/fliptop so i'd create the file /home/fliptop/.forward -- To unsubscribe, e-mail

  1   2   3   4   >