Re: how to send a page and a file at a download script?

2008-09-23 Thread Wiggins d'Anconia
shnaxe wrote: > dear readers, > > i recently finished a small perl-cgi download script that sends files > after some checks and logging. i call this script through a link on a > static html-page and pass the file-id as a parameter. > > this all works nice so far, the part where i'm stuck at is th

Re: parsing a line

2008-08-19 Thread Wiggins d'Anconia
thunder wrote: Hello all I have the following small file that i am parsing one line at a time (each line consists of hex values) line 1: 0d line 2: line 3: 2000 line 4: 0064 line 5: 76d457ed462df78c7cfde9f9e33724c6 line 6: bded7a7b9f6d763e line 7: 0059010081bb300597603b6f90ef4421 l

Re: Extracting TD's from a Text File (Regex Help).

2008-04-08 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: > TEXT FILE ## > > > http://mysite.com/link/here_goes?id=239";>LINK > >   > > > http://mysite.com/link/here_goes?id=239";>LINK > width="150">06/11/2007 12:29AM > > > ##

Re: Adding a comma to format localtime

2007-04-09 Thread Wiggins d'Anconia
Gregg O'Donnell wrote: All, I use this line of code: my $datetime = join ' ', (split ' ', localtime)[0,2,1,4,3]; my $localtime = [ split ' ', localtime ]; my $datetime = $localtime->[0] . ', ' . join ' ', @$localtime[2,1,4,3]; TMTOWTDI... http://danconia.org To create this result:

Re: Tweeking a sendmail routine.

2007-03-25 Thread Wiggins d'Anconia
Greg Schiedler wrote: I know enough Perl to be dangerous! I have a form that sends out several different confirmations depending on who the receipient is. One particular E-mail I need to be in html format so I can put it into a specific format. I added a couple of lines to the sendmail routine

Re: -e question

2006-12-15 Thread Wiggins d'Anconia
Lou Hernsen wrote: I use the -e to check to see if a file is present if (-e "$Pics/$Game{Page}.jpg") { } Question I can get it to work looking for .pl and .gif but not .jpg I have checked all the directorie vars and even did this print qq||; print qq||; print qq||; print qq||;

Re: trouble with meta http-equiv

2006-11-30 Thread Wiggins d'Anconia
David Bear wrote: I'm trying to put a client side redirect with http-equiv refresh. I'm using the syntax: my $req = CGI->new(); print $req->header( "text/html" ); print $req->start_html( -head=>meta({-http-equiv => 'refresh', In the above line the call to meta() is a function call, but you

Re: figuring out if a number/character string is null in Perl

2006-08-30 Thread Wiggins d'Anconia
Mary Anderson wrote: > Hi All, >I know this isn't strictly a cgi problem, but it is arising in a cgi > application. I have a loop which reads certain fields, hashed on names. > Some of my fields hold character strings, some hold numbers. Sometimes > the number field is a blank. I need a te

Re: using variable in param

2006-02-21 Thread Wiggins d'Anconia
Adriano Allora wrote: > Hi all, > > I need to obtain some values (passed with a form) without knowing their > names (but I know these variable names correspond to names of some files. > > So, I tried to write something like this: > > opendir(QUERY, > "/Users/adrianoallora/Sites/corpora/VALICO/i

Re: Storing a search string

2005-12-15 Thread Wiggins d'Anconia
Thom Hehl wrote: > I have a screen that is gotten to by a rather elaborate search string. I > want to put a button on that page that calls a CGI and passes it > location.href, which has all of the parameters I need to get back to > that page. The problem is, how do I do that without it mucking up t

Re: Taking Multiple Values for The Same Form Field.

2005-10-29 Thread Wiggins d'Anconia
Bob O'Neill wrote:

Re: CGI Upload() for nonexistent files?

2005-10-28 Thread Wiggins d'Anconia
Joby Jones wrote: > Hello all, > I have a question about the CGI upload() > function. > > Why does it return a valid file handle to a file > that does not exist on the client (web browser) > machine, and what's the best way to handle this? > Presumably because this is really a cl

Re: hardcoded paths

2005-10-28 Thread Wiggins d'Anconia
Dermot Paikkos wrote: > Hi, > > I am moving a site from once host to another. There are lots of > hardcoded fully qualified paths to the localhost (EG > http://myserver/cgi-bin/someprog.pl?name=val & > http://myserver/css/mystyle.css). > > I am pretty sure this isn't good practise but I am not

Re: $CGI::DISABLE_UPLOADS

2005-10-18 Thread Wiggins d'Anconia
Bill Stephenson wrote: > I've been testing the "$CGI::DISABLE_UPLOADS" and "$CGI::POST_MAX" > variables and I don't think I've got it feature working as it should. > The docs say this: > > "CGI.pm also has some simple built-in protections against denial of > service attacks, but you must a

Re: XML [AntiVir checked]

2005-10-11 Thread Wiggins d'Anconia
Naji, Khalid wrote: > Hi, > > Which Module could you recommend for the use of the XML (XML::Simple, > XML::Parser and XML::Writer, XML::DOM, XML::PATH...) ? > > Thanks in advance! > > KN > > Yes. Which one is most appropriate depends on what you need to do. I would generally suggest startin

Re: Query on sendmail problem

2005-10-05 Thread Wiggins d'Anconia
Dale wrote: > Hi, > > I'm hoping someone can help me with an issue I've got with, I assume, > sendmail. > > I've copied part of a script below. If I use the first To: line (which > takes the e-mail address from a file - and this works) then a mail > doesn't arrive. If, however, I used the secon

Re: html file with form and onSubmit="return check_form(this)"

2005-09-23 Thread Wiggins d'Anconia
Edgardo Lust wrote: > Hi. > > I have a html file (created with Dreamweaver) with one form and submit > button with > > >value="/contacto/message.htm"> > value="[EMAIL PROTECTED]"> > > > I need my perl script to return a valid value t

Re: Forcing a "save as' dialogue box to come up on left click

2005-09-19 Thread Wiggins d'Anconia
Tony Frasketi wrote: > >> What I was intending was to call the cgi script and rather than it >> printing the normal text/html header it would print the header directly, >> that way you are guaranteed to be operating the way you intended. > > Hi Wiggins > Thanks for this suggestion... I've tried t

Re: Forcing a "save as' dialogue box to come up on left click

2005-09-19 Thread Wiggins d'Anconia
Tony Frasketi wrote: > Wiggins d'Anconia wrote: > >> Most browsers will provide this functionality if the return header is >> "application/octet-stream" rather than "text/html" or the like. In >> the case of IE you may have to fool the browser i

Re: Forcing a "save as' dialogue box to come up on left click

2005-09-18 Thread Wiggins d'Anconia
Tony Frasketi wrote: Hello Listers I'm trying to find a way to force a download dialogue box to come up when the user clicks on a link on a web page (the link will primarily be for htm, .txt files on the server). Normally when the user left clikcs on the link the .htm or .txt file appears in

Re: problems with CGI.pm upload feature

2005-09-17 Thread Wiggins d'Anconia
Bill Stephenson wrote: > On Sep 16, 2005, at 7:51 PM, Scott R. Godin wrote: > >> Wiggins d'Anconia wrote: >> >>> Scott R. Godin wrote: >>> >>>> script is at http://phpfi.com/78748 >>>> >>>> I followed the instructions

Re: problems with CGI.pm upload feature

2005-09-16 Thread Wiggins d'Anconia
Scott R. Godin wrote: > script is at http://phpfi.com/78748 > > I followed the instructions in CGI.pm as best I could, and from what I > read the upload() function is supposed to return a filehandle ? (it > doesn't say whether this is a direct FH to the tempfile or not) > > I had dome some prelim

Re: File Modification Date

2005-09-14 Thread Wiggins d'Anconia
Vance M. Allen wrote: > I'm trying to find out how to determine the date and/or time that a file was > created in a simple procedure. I have heard about a few different libraries > but the examples I have found haven't been very useful. > > The basic purpose I want to do is a simple footer prov

Re: Exact matching using GREP.

2005-09-08 Thread Wiggins d'Anconia
Please bottom post Sara wrote: > No, it's not working, probably you didnt' get my question. How is it not working now? What Ovid sent is exactly what I would have answered so you probably need to provide more information. You mention man pages and switches to grep, there are two greps here,

Re: Force a file download for link

2005-08-30 Thread Wiggins d'Anconia
Denzil Kruse wrote: > > --- Bob Showalter <[EMAIL PROTECTED]> > wrote: > > > >> use CGI qw(:standard); >> >> open FILE, ...blah blah... >> print header('application/octet-stream'); >> print while ; >> > > > Thanks for the help Bob! Is there another way besides > the content-dispositio

Re: $ENV{'HTTP_REFERER'}

2005-08-24 Thread Wiggins d'Anconia
Denzil Kruse wrote: > Hi, > > I want to know the web site that someone came from, > and so I was planning on reading $ENV{'HTTP_REFERER'} > to figure it out. How reliable is that? Do browsers > or other situations block it or obfuscate it? Is > there another way to do it or any other issues > i

Re: Regex Problem.

2005-08-18 Thread Wiggins d'Anconia
Sara wrote: > I am at a loss here to generate REGEX for my problem. > > I have an input query coming to my cgi script, containg a word (with or > without spaces e.g. "blood" "Globin Test" etc). > What I am trying to do is to split this word (maximum of 3 characters) and > find the BEST possible

Re: Clearing cookies

2005-08-16 Thread Wiggins d'Anconia
Denzil Kruse wrote: > Hi all, > > I'm trying to clear a cookie using CGI::Cookies, and > can't seem to do it :( > > if ($clear_cookie eq 'yes') { > > my %cookies = fetch CGI::Cookie; > > print "getting cookie"; > > if ($cookies{'id'}) { > > print "clearing cookie"; >

Re: Insecure setuid?

2005-08-09 Thread Wiggins d'Anconia
Tantalo, Christopher G wrote: > Can anyone shed some light on what this error means? > Insecure $ENV{PATH} while running setuid at > /var/appl/sls/bin/driver.pl line 1104. > Line 1104 is > print `date`; > You shouldn't shell out to date anyways, especially in the above manner with n

Re: How do I make two different web pages come up from one CGI?

2005-08-04 Thread Wiggins d'Anconia
David Dorward wrote: > On Wed, Aug 03, 2005 at 10:45:35PM -0700, Luinrandir wrote: > >>I want to create two web pages in two different windows >>from one CGI. > > > Each request gives one file, that's how HTTP works. You will need at > least two requests, with the script running twice (or two sc

Re: Script execution time.

2005-08-03 Thread Wiggins d'Anconia
zentara wrote: > On Wed, 3 Aug 2005 03:00:01 -0700, [EMAIL PROTECTED] (Sara) wrote: > > >>I have to test/optimize a script on a shared server. The script contains a >>couple of mySQL queries etc. >> >>Is there a way that I can see the query execution time (like in phymyAdmin) >>and total script

Re: Problem with https post using LWP

2005-08-01 Thread Wiggins d'Anconia
Denzil Kruse wrote: > Hi all, > > I'm trying send an https post: > > my $url = "https://some.secure.server/secure.dll";; > > my $ua = LWP::UserAgent->new; > > # assemble the request > # > my $request = HTTP::Request->new(POST => "$url"); > $request->content_type('application/x-www-form-urlencod

Re: SetEnv Variable from Apache

2005-07-20 Thread Wiggins d'Anconia
Robert wrote: > How do I use a variable that is set with 'SetEnv' in the Apache config file? > > Robert > > > Have you checked the %ENV hash? print $ENV{'VAR_NAME'}; http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: MIME::Lite attachments

2005-07-17 Thread Wiggins d'Anconia
Mike Blezien wrote: > Hello, > > we're setting up a script to attach mainly PDF files. And was wondering > when setting up the code to attach the file, what TYPE attribute is used: > > > $msg->attach(Type =>'', # WHAT TYPE HERE TO USE ?? > Path =>'/path/to/somefile.p

Re: quote problem and mysql

2005-07-15 Thread Wiggins d'Anconia
Bob Showalter wrote: > Andrew Kennard wrote: > [snip] > > No, you shouldn't have to do that. Your first approach is correct, so we > need to find out what's going wrong there... > Can you show us GenMainRecData? Are you sure it isn't the culprit here, possibly it is already doing data mungin

Re: Need a perl module

2005-06-07 Thread Wiggins d'Anconia
Tantalo, Christopher G wrote: > I use Mail::Box::Manager 2.00. Works pretty well for me. > +1 http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Perl Newbee

2005-06-03 Thread Wiggins d'Anconia
Yuga Chodagam wrote: > Hi all, > I am newbee to Perl. Could anybody please give me head start > with Perl programming? I am interested in playing with some CGI stuff > and want to sese the Perl's data manipulation power. > > > Thanks all. I appreciate any help. > > Yuga. > Though he

Re: Help wanted

2005-05-31 Thread Wiggins d'Anconia
Yuanxin wrote: > Hi, > I had a lot of data, which are all x-y values. I stored these data in MySQL > database. Now I wanna use Perl to get these data from database to build a > figure(2-dimensional) and people can use internet to see the figure. In > addition, when people see the figure via inte

Re: Multiple Languages

2005-05-13 Thread Wiggins d'Anconia
Mike Blezien wrote: > Hello, > > are there Perl modules available to handle multiple language input like > from forms. we have a situtation where we may need to enter various > languages strings or characters and it's english counter-part version. > As there are many languages that use unique char

Re: Undefined subroutine Error

2005-05-09 Thread Wiggins d'Anconia
Mike Blezien wrote: > Hello, > > occasionally we get this error, due to a mis coding error or type-O > error, but was wondering is there away to check, with a perl code, to > make sure the sub routine exists before displaying this system 500 > internal error message. the error I'm referring too is

Re: CGI form Caching problem

2005-05-03 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: [snip] > > I have tried sending all sorts of headers to the browser to stop it > caching the page but nothing has made a difference. So perhaps the problem > is not in the browser, but in apache somewhere?? > > anyone ever had this (or a similar) problem!! > Are

Re: Alternative Modules

2005-04-27 Thread Wiggins d'Anconia
Mike Blezien wrote: > Hello, > > we are currently using the Mail::Audit module to resend piped incoming > emails to a particular domain then sends it to various aliases emails > from a database. I'm trying locate a similar module but doesn't put alot > of the header garbage into the body of the em

Re: About unoffical HTTP headers

2005-04-26 Thread Wiggins d'Anconia
Shu Cao wrote: > Hi, > > Sorry, my last email has some errors. The unofficial HTTP header should > look like "x: y" not "x=y". > > I am new to Perl CGI programming. And I encounter a difficult problem > wish you guys can help me. Thank you! Here is the problem, how can Perl > CGI program get th

Re: PATH problem

2005-04-25 Thread Wiggins d'Anconia
TapasranjanMohapatra wrote: > All, > My script goes like this... > -- > #!/usr/bin/perl > print "Content-type: text/html\n\n"; > $cmd = "cat file_one"; > $content = qx!$cmd!; > print "$content"; > -- You should not shell out t

Re: Variables in Modules

2005-04-13 Thread Wiggins d'Anconia
Ovid wrote: --- Sergio Pires de Albuquerque <[EMAIL PROTECTED]> wrote: I tried with our, importing that var and fully qualified it, but always it get the previous value. My question is: Which method is common to share data among apps? What Am I doing wrong? Also, I always use "strict" and "warn

Re: Calling subroutines

2005-03-21 Thread Wiggins d'Anconia
Denzil Kruse wrote: Hi, I have a script for a cgi form that covers about 20 pages, and want to name a subroutine to handle each page like this: page1, page2, page3, etc. Once the script figures out which page it should go to, I dont want to have to do this: if ($page == 1) { &page1() } if ($page =

Re: cgi scripts as root or similar - best method

2005-02-25 Thread Wiggins d'Anconia
Chris Devers wrote: On Fri, 25 Feb 2005, Gavin Henry wrote: [...] the problem is [...] cdrecord needs to be run as root. I assume cdrecord is being invoked from a system command, right? Have you considered prefixing that command with `sudo`, and going into the sudoers file to allow the www user

sorting and printing text files (was: hello all)

2005-02-17 Thread Wiggins d'Anconia
Don Doucette wrote: hello everyone. my name is don doucette and I am 38 years old and have been involved with computers since the Timex Sinclair. Ok. Please use a more informative subject line. I have recently set up a server and am hosting a web site and forum for my community association. I a

Re: Favorite Perl CGI Framework for Web Site Development?

2005-02-11 Thread Wiggins d'Anconia
Chris Devers wrote: On Fri, 11 Feb 2005, Siegfried Heintze wrote: I notice there are a lot of frameworks out there for .NET (eg, .NETNUK), PHP, and Java (eg AppFuse) programmers. These are sets of files that form a typical starter site (or skeleton) that have the basic common features for a web si

Re: How to use sub directories in IIS and Apache HTTPD

2005-02-07 Thread Wiggins d'Anconia
Siegfried Heintze wrote: When I try to employ subdirectories my perl cgi programs stop working. This is because the "use" statements cannot find their files. I could convert the "use evidence_db;" statements to "require '../evidence_db.pm';" and that works. But this is painful. Surely there is an e

Re: moving files

2004-09-25 Thread Wiggins d'Anconia
Jeff Herbeck wrote: Hello, I am trying to start a "transloading" and webhosting company. This will allow users to login via apache .htaccess type authentication and then be able to put a url of a file into a form and the script will go get that file, download it to the webserver into their html d

Re: CGI Book Advice sought ...

2004-09-15 Thread Wiggins d'Anconia
hcohen2 wrote: Recently I jumped in to the list and gave a correct answer, but unfortunately not really appropriate answer to the question asked. I took the 'Beginners' adjective for this list too seriously. Hence, to keep myself out of trouble, I think it is time to get another book on CGI fo

Re: CGI and mySQL book, any recommendation.

2004-05-31 Thread Wiggins d'Anconia
Paul Archer wrote: Yesterday, Randal L. Schwartz wrote: By the way... it's consensus amongst experts that MySQL has hit nearly end-of-life. If you're starting a new project, use PostgreSQL instead. A real Database... not a database wannabe. The only reason to use MySQL these days is ignorance or

Re: Array Question

2004-05-14 Thread Wiggins d'Anconia
Luinrandir Hernsen wrote: Can I do something like this? perldoc -q quoting @CityA="Suburb1, Suburb2, Suburb3"; @CityB="Suburb1, Suburb4, Suburb5"; I don't think the above is doing what you think it is. It is assigning one element (the first) of the array to a string. If you are trying to assi

Re: Displaying Data in a Table

2004-05-08 Thread Wiggins d'Anconia
Baek, Steve wrote: Fellow Perl-Mongers: I'm trying to break apart the command `df -k` data and display it into an html table: Filesystemkbytesused avail capacity Mounted on /dev/dsk/c0t2d0s03008783 83669 2864939 3%/ /dev/dsk/c0t2d0s34032654 886633 31056952

Re: Form mailer and environment variables

2004-04-30 Thread Wiggins d'Anconia
Jan Eden wrote: Hi all, I wrote a little form mail script and start by setting the environment variables like this: BEGIN { $ENV{PATH} = "/usr/sbin"; delete @ENV{ qw( IFS CDPATH ENV BASH_ENV) }; } Now the actual directory (.) is obviously not searched anymore, since my $page_head = eval

Re: OT: sockets

2004-04-30 Thread Wiggins d'Anconia
Frank DeLaTorre wrote: All, Is there a perl "sockets" list I can get a hold of ? You mean mailing list? Many mailing lists, are listed here: http://lists.perl.org/ I didn't see one specifically for sockets. If you have socket related questions they wouldn't be off topic for the beginners list

OT: Re: Fwd: Interview Questions

2004-04-20 Thread Wiggins d'Anconia
drieux wrote: This has what to do with CGI? [..] Sorry forgot to toggle off the 'bitterness' flag, apparently I have been at this way to long. Wiggins, think about the idea for a moment, what if it were you first time in the barrel as the guy who had to do the interviewing of folks who we

Re: Problems declaring variables in external packages

2004-04-18 Thread Wiggins d'Anconia
Richard Heintze wrote: I'm using these statements in my main program: use DisplayPCE qw($order $fnx ); ... print join("", map { qq[$_] } @{$DisplayPCE::order}); ... When I use the debugger, I find that order is undefined! When I use the browser to view the page, the value of undef is confirmed.

Re: Redirect using .htaccess or ?? ( kinda [OT] )

2004-04-07 Thread Wiggins d'Anconia
B McKee wrote: Yeah, ok, this isn't completely on topic. Please humour me (or at least flame me politely). I need to redirect people to a perl-CGI script I have written a perl script that generates a series of active web pages. It's in the cgi-bin and works fine when accessed directly eg:

Re: interactive perl programing

2004-03-31 Thread Wiggins d'Anconia
rob lester wrote: I'm stumped on where to look but there must be a module to handle interactive programming. What I mean is printing out a list of things, the user selects what he wants, hits enter and the program continues. I presume the module would enable going back to change things and handl

Re: html form output

2004-03-31 Thread Wiggins d'Anconia
Alex Maceda wrote: I have a from processing script that I am trying to modify to spit out another html form, minus text boxes. My question is can I somehow use the name portion of the POST request as a variable to have the value portion print in it's proper location? ie. I get a colon separated

Re: AW: Apache::Session question

2004-03-29 Thread Wiggins d'Anconia
Please bottom post... B. Fongo wrote: The error occurs on initial call, so id should be empty be then. I expect the routine to open a new session (see code below) if session_id is empty - but it fails then. == my $dbh = dbConnect(); # Get value

Re: Active 'back' buttons

2004-03-29 Thread Wiggins d'Anconia
Rob Dixon wrote: Hi guys. What's the 'usual' way (if there is one) of implementing an 'active' back button (which does the equivalent of the browser's back button but is implemented in CGI code)? If, say, I'm doing a database search and come up with a list of records, each of which can be clicked

Re: CGI module comparison

2004-03-29 Thread Wiggins d'Anconia
Andrew Gaffney wrote: John Goodleaf wrote: Hello, I'm not on the list, so please CC me directly. Although I'm a reasonably competent Perl user I have never actually used it for CGI purposes, just for database querying/data munging. You can imagine my perpetual confusion at finding the Perl books i

Re: GD Install Failure (was: Re: elsif issues ....still)

2004-03-29 Thread Wiggins d'Anconia
Allen Wang wrote: -Original Message- From: Wiggins d'Anconia [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 6:11 PM To: Allen Wang Cc: [EMAIL PROTECTED] Subject: Re: GD Install Failure (was: Re: elsif issues still) Please bottom post... Allen Wang wrote: The first

Re: Apache::Session question

2004-03-26 Thread Wiggins d'Anconia
B. Fongo wrote: My implementation of Apache::Session::MySQL dies along the way, and gives unclear warning. [error] Died at /usr/lib/perl5/site_perl/5.8.0/Apache/Session/Generate/MD5.pm line 40. I decided to implement session as a module call Store::Session, so as to minimize recoding it in many s

Re: GD Install Failure (was: Re: elsif issues ....still)

2004-03-26 Thread Wiggins d'Anconia
Please bottom post... Allen Wang wrote: The first error message should be " Warning: prerequisite GD failed to load: Can't load '/opt/perl5/lib/site_perl/5.6.0/PA-RISC2.0/auto/GD/GD.sl' for module GD: No such file or directory at /opt/perl5/lib/5.6.0/PA-RISC2.0/DynaLoader.pm line 200. at

GD Install Failure (was: Re: elsif issues ....still)

2004-03-26 Thread Wiggins d'Anconia
Please start a new thread when posting (and bottom post when replying)... Allen Wang wrote: When I was trying to install GDGraph-1.43 It failed due to the following message " Warning: prerequisite GD failed to load: Can't load '/opt/perl5/lib/site_perl/5.6.0/PA-RISC2.0/auto/GD/GD.sl' for module G

Re: Regex Help!

2004-03-21 Thread Wiggins d'Anconia
Sara wrote: I am looking for a regex which would extract the intials from a string i.e. str = "Doe, John L.L.M"; $str =~ /(^(\w)).*?((\s)(\w)).*?((\s)(\w))/; $initial = $1.$2.$3; print "$initial"; The above code is not serving my purpose. String constants: There would be always 3 words (obviou

Re: General question about HTML form

2004-03-20 Thread Wiggins d'Anconia
WC -Sx- Jones wrote: Bill Tribley wrote: CGI was written from the beginning to not compromise > the security of the box on which it runs. Just because a module is secure doesn't mean the resulting application is. Correct, but I think Bill was specifically meaning 'CGI.pm' is secure so you don't

Re: problems parsing web form information into a perl script

2004-03-07 Thread Wiggins d'Anconia
Mark Martin wrote: Hi, I've got a web form that allows a user to browse to an excel file on their computer and input it and the year as parameters to run a perl script FORM : SCRIPT: use strict; # always use warnings;# usually use CGI; use Spreadsheet::ParseExcel; $q=new CGI; my $oExcel = new

Re: help with perl setup...and upgrade

2004-02-24 Thread Wiggins d'Anconia
Catriona Pure Scents wrote: Hi guys, many moons ago when I was a complete novice on perl...(only a little more advance now, but at least I have some scripts running and modifying them as need be..) I had a version of perl that ran on my pc as though it were a web servernot through the command

Re: Apache::Cookie problems

2004-02-16 Thread Wiggins d'Anconia
Andrew Gaffney wrote: Andrew Gaffney wrote: sub init_db { $dbh = DBI->connect("DBI:mysql:database=skyline;host=192.168.254.25", "root", "linux", {'RaiseError' => 1}); } And before anyone gets on me about posting DB passwords, keep in mind this is on a test server not connected to the intern

Re: Apache::Cookie problems

2004-02-16 Thread Wiggins d'Anconia
Andrew Gaffney wrote: I'm creating my own module to handle sessions and other stuff for my site: package Skyline; use Apache::DBI; use Apache::Cookie; use Exporter; @ISA = ('Exporter'); @EXPORT_OK = ('check_login', 'init_db', '$dbh'); @EXPORT = ('check_login', 'init_db', '$dbh'); our $dbh; sub ch

Re: Webhosting with good Perl support

2004-02-14 Thread Wiggins d'Anconia
Casey West wrote: It was Saturday, February 14, 2004 when Robert took the soap box, saying: : Casey West wrote: : : >It was Saturday, February 14, 2004 when Jan Eden took the soap box, saying: : >: Hi all, : >: : >: Does anyone have an additional recommendation, so I can compare : >: some more? :

Re: OT: Webhosting with good Perl support

2004-02-14 Thread Wiggins d'Anconia
Frank DeLaTorre wrote: bob, yep that helps me a ton, thanks...honestly! Dang, now I'm wondering if I should wipe Debian GNU/linux off the HDD and put OpenBSD...this is an Ultra10 so I may not be able to find a port... Are we talking a home box or a server? Randal's original point was security,

Re: compile error

2004-02-14 Thread Wiggins d'Anconia
Rick Triplett wrote: Help -- I'm getting the following compile error: Can't declare scalar assignment in my at /big/dom/xlibertylearning/cgi-bin/reader_writer.cgi line 12, near ");" The offending code is ... #!/usr/bin/perl -w use strict; use DB_File; # module for Berkeley DBM w/ DB_HASH file type

Re: Alternative to Storable

2004-02-13 Thread Wiggins d'Anconia
Jan Eden wrote: zentara wrote: I will check this out. My ISP is really cheap, though, but more and more it looks like being too cheap. ;) Cheap and inexpensive are two different things, especially in the land of hosting. zentara's looks like a pretty good deal, I will also suggest Westhost (do

Re: Include Files in Perl?

2004-02-13 Thread Wiggins d'Anconia
Charlie somerville wrote: Yeah, that looks pretty good "Alexander Blüm" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] that doesn't sound too good. sounds like loading all into memory, split it up into arrays and then finally printing the contents to the browser. bleh! how aout this:

Re: How to explicitly declare an array of hashes?

2004-02-08 Thread Wiggins d'Anconia
bugs. Type issues should either be fixed in the interface by checking values passed to encapsulated code, or in the main by testing. It should be very apparent at runtime if you are assigning a scalar where a hashref was expected. http://danconia.org --- Wiggins d'Anconia <[EMAIL PROTE

Re: How to explicitly declare an array of hashes?

2004-02-08 Thread Wiggins d'Anconia
Jan Eden wrote: Richard Heintze wrote: Is there a way I can explictly declare that each array cell contains a hash? Here is the only way I know to do it: my @PCEs=[]; while ($Data->FetchRow()) { my %dh = $Data->DataHash(); $PCEs[$cn]{$dh{"id"}} = $dh{"ridPCE"}; } This "my" declaration only says

Re: How to explicitly declare an array of hashes?

2004-02-08 Thread Wiggins d'Anconia
Richard Heintze wrote: Is there a way I can explictly declare that each array cell contains a hash? Only with a loop of some sort. Here is the only way I know to do it: my @PCEs=[]; This does not do what you think it does. This is assigning an anonymous array reference into the first element of

Re: db to HTML with checkboxes

2004-02-03 Thread Wiggins d'Anconia
Andrew Gaffney wrote: Wiggins d'Anconia wrote: Andrew Gaffney wrote: I have a Perl CGI script that runs a query against a MySQL table. I have about 20 boolean values that I want shown as checkboxes in the produced HTML, but I don't want to have to do something like the below for e

Re: Deleting a file(s) with variables _HELP!

2004-02-03 Thread Wiggins d'Anconia
Luinrandir Hernsen wrote: I have a group of files I need to delete. They have a format like this. c:\game\data\(variable)info.file(variable) the actual file name is c:[EMAIL PROTECTED] I need to delete all files in this directory with the partial name of "info.file" where the (variable) is a wildc

Re: db to HTML with checkboxes

2004-02-03 Thread Wiggins d'Anconia
Andrew Gaffney wrote: I have a Perl CGI script that runs a query against a MySQL table. I have about 20 boolean values that I want shown as checkboxes in the produced HTML, but I don't want to have to do something like the below for every value. The key to this is contriving good names for the

Re: use lib "../" for javascript and css files?

2004-01-25 Thread Wiggins d'Anconia
Richard Heintze wrote: I have a perl cgi file that works fine. However, I want to move it into a sub directory -- the cgi-bin directory for Apache HTTPD is just getting too crowded. I know that feeling... So I created a directory and moved my file. It could not find my evidence_db.pm file (which d

Re: help with progress bar -test site

2004-01-18 Thread Wiggins d'Anconia
zentara wrote: So now all you have to do is setup the mailings. For example, this code should work, but there are many mail modules available to make it easier. my $mailprog='/usr/sbin/sendmail'; my $email = $emailaddr; my $from = '[EMAIL PROTECTED]'; open( MAIL, "|$mailprog -t" ) || sa

Re: Script within a script

2004-01-17 Thread Wiggins d'Anconia
Barbara Lindsey wrote: I haven't seen this before. Can you do this to add more subs to a module without making a parent module out of them? With the 'system' definitely not, it executes in a separate process completely. 'require' simply loads the code, which may or may not have subs in it. In

Re: php testing in my pc

2003-12-25 Thread Wiggins d'Anconia
Please bottom post Charlie somerville wrote: POST TO THE DAMN PHP NEWSGROUP NOT THIS ONE! There are certainly more polite ways to indicate that a poster's question is off topic for a particular group... http://danconia.org "Daniel Hurtado Brenner" <[EMAIL PROTECTED]> wrote in message news:[

Re: Hit counter

2003-12-25 Thread Wiggins d'Anconia
Please bottom post... Charlie somerville wrote: You don't need to get that from a database! All you havve to do is put a lock on a file read the file, increment it write the file and take the lock off, easy! Without knowing more about the OP's design how can you possibly determine whether a DB is

Re: Help with PPM install

2003-12-25 Thread Wiggins d'Anconia
Charlie somerville wrote: Shouldn't you bbe posting to perl.scripts? i mean, cross posting is rude so don't do it Shall we mention spamming the list posting about threads that are ancient, top posting, and in general not being terribly helpful, 'perl.scripts'?? http://danconia.org "Ash Singh

Re: Calling JavaScript from Perl

2003-12-25 Thread Wiggins d'Anconia
Please bottom post. Charlie somerville wrote: Not neccisarily, javascript can be a server side for example in ASP you can set the <%@ Language=""%> bit to <%@ Language="javascript" %> Hence the words "in general" http://danconia.org "Wiggins D Anconia" <[EMAIL PROTECTED]> wrote in message ne

Re: sendmail error: No reciient address found in header

2003-12-08 Thread Wiggins d'Anconia
B. Fongo wrote: It's my first time to use sendmail. I want to my script to send a mail to [EMAIL PROTECTED] or whoever is in the To: line. The script warns:"No recipient name found in the header" and dies, even though there's a recipient. I'm puzzled. ### #

Re: How to verify whether a directory exists

2003-12-06 Thread Wiggins d'Anconia
Please don't cross post, if your question is CGI based then use that list, otherwise use the other... B. Fongo wrote: I want to use mkdir(blah blah, o777), but want to first find out whether the directory "blah blah" exists. I'm not if the -e option will bw right here. Let's say: unless

Re: Bad referrer!

2003-12-06 Thread Wiggins d'Anconia
Sara wrote: There was a script which people were using remotely, so I have to add this simple subroutine to check referrers. Currently, the site is getting approx. 20,000 hits per day. I don't think you are using the correct ENV variable. The referer tells you what page the user was linking from

Re: CGI.pm question

2003-12-02 Thread Wiggins d'Anconia
Greg Zartman wrote: I'm relatively inexperienced at using this module as I've always preferred coding my own cgi functions. A question: If one were to use the CGI::Safe CGI subclass to turn-off uploads, does this shut off uploads in general for the cgi session or is it required that one use CG

Re: pagination of dbi results on html browser

2003-11-28 Thread Wiggins d'Anconia
A L wrote: Hello [EMAIL PROTECTED], This continuation post is from another post at [EMAIL PROTECTED]; it's posted here because this is more relevant to CGI. Previously, I had 2 questions, one being pagination (the other question is yet addressed until pagination issue is understood). Now, afte

Re: Rounding Off

2003-11-22 Thread Wiggins d'Anconia
Mike Blezien wrote: Hello, I need the ability to round off dollar amounts to the nearest 100th of a dollar amount, IE $14.9564 to $14.96 or $132.1123 to $113.11 what is the best way to accomplish this ?? perldoc -q 'have a round' perldoc -f sprintf http://danconia.org -- To unsubscribe, e-mail

Re: MySQL beginner's script

2003-11-22 Thread Wiggins d'Anconia
Teresa Raymond wrote: Hello, I was wondering if anyone could help me solve this problem. The script appears not to be connecting to the database. This script prints "Here we go" but never prints "Database connected". I used the format that the hosting company supplied. "DBI:mysql:$database:loc

  1   2   3   >