Re: Taking Multiple Values for The Same Form Field.

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

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: 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: 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: 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: -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: 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: 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: 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: 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: 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: Viruses

2002-07-18 Thread Wiggins d'Anconia
Unless we are all running linux and mozilla and don't worry about such things ;-)(oh if only that could be) John wrote: > All, > > I am subscribed to both the Perl- and CGI-Beginners lists and get a ton of > your very informative questions and (what's best ) answers every day. >

Re: What's wrong with the code?

2002-07-18 Thread Wiggins d'Anconia
Do you mean addreport never gets called, or is never loaded? Should be loaded as it is in the same file as the eval, it appears you are trying to call "addreport" from the input variable of "action" but I don't see where that value is ever tested/used? (you might consider use strict; on a sid

Re: SPLIT - What is it?

2002-07-22 Thread Wiggins d'Anconia
As the example given illustrates split is *more general* than just in database usage, or manipulation based on a single character (though these are probably two of the most common uses) split can be used on ANY string, and may use ANY regular expression to "split on" no matter where you ar

Re: Integrating a submit call inside a CGI

2002-07-22 Thread Wiggins d'Anconia
I am not an expert on CGI.pm (as I don't use it personally) but there didn't seem to be any other responses so I thought I would fire one off. If I am understanding what you asked correctly, there is no way to pass a "CGI object" to the new process from the old do to the fact that the browser

Re: Checking if a file is downloading

2002-07-23 Thread Wiggins d'Anconia
There may be a direct way but I am not aware of it. As a proposed solution you could have the user call a perl script that has the following steps: 1) create a lock file (or something similar) 2) open the file that is to be downloaded 3) print the proper header for that file type 4) print the

Re: Checking if a file is downloading

2002-07-24 Thread Wiggins d'Anconia
t removed prior to taht point. > Please tell me if I am wrong. > > In fact, after downloading, I want to delete the real file, not only the > lock file. > If you can get one to delete, the other is obvious. > Thank you. > > Teddy Center: http://teddy.fcc.ro/ > Mai

Re: newbie: data structures

2002-07-24 Thread Wiggins d'Anconia
This is a very broad question, so giving a specific answer is difficult to say the least, but since no one else has responded I will provide at least this much You are going to want to be looking at using a "hash of hashes" essentially you create a hash where each key is the email address

Re: Partially success

2002-07-25 Thread Wiggins d'Anconia
Octavian Rasnita wrote: > > I run the script with the ?fileName query string to download the "fileName" > file. > The download finishes fine, and the script deletes the "fileName" file from > the server. > > Then in the same Internet Explorer window, I run again the script with the > "anothe

Re: Big success! and a question.

2002-07-26 Thread Wiggins d'Anconia
Good to hear. In general file uploading occurs when the browser "tacks" on a specific request header and the data for the file. Therefore, any request may *attempt* to upload a file. The real key is whether or not there is something on the other end (server side) that will handle the request

Re: regular expression

2002-07-27 Thread Wiggins d'Anconia
On a side note, where you said "A[12]" just to avoid future problems either you wanted A[11] or don't forget to add a blank starting element in the array, as arrays are indexed starting at 0!! http://danconia.org fliptop wrote: > GsuLinuX wrote: > > > > I wanna check the information typed i

Re: What's wrong with this code?

2002-07-27 Thread Wiggins d'Anconia
See inline comment. Soheil Shaghaghi wrote: > Hi everyone, > Can anyone please tell me what the problem is with this code? > Every time I run my program with this code in it, I get an error in the log > files: > DBD::mysql::st fetchrow_array failed: fetch() without execute() at > IWeb/sqlengine.p

Re: HTTP headers

2002-07-30 Thread Wiggins d'Anconia
My suspicion is that IE is looking ahead of time at the extension of the file requested and doing some guess work (*I could be wrong*) but in this case your only real option would be to rename your CGI script, which is a beautiful thing about the web/unix/etc, you can do this! You might try chang

Re: Checking Form data

2002-07-31 Thread Wiggins d'Anconia
> >>>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? >> > > None of them, you should create a select/opt menu. > Then you even no need to check it, so you can put you focus > to a

Re: It was a success, but only in Windows, not Unix.

2002-07-31 Thread Wiggins d'Anconia
This is coming from left field, and the gurus should chime in, and I have been reading up about IPC last couple of days so this is on the brain, but would setting up a signal handler (don't know what signal it would be receiving, obviously this would need to be determined) help? I would think

Re: sql statement parsing

2002-08-10 Thread Wiggins d'Anconia
Posting your whole script, or a larger part might be helpful and get more response. are you using strict and warnings? My original hunch was that the "where" method was not being exported and therefore was not "loaded" by your script, upon a slight more research I was *unable* to find the "wh

Re: How to find the remote time?

2002-08-12 Thread Wiggins d'Anconia
Or go one step further, and rather than recording the time, record the difference in time, granted this will only ever be *really close* -> Write the page with a hard coded time dynamically from the server, then have javascript get the localtime, and store the difference in the cookie, rather

Re: Cache problem in IE

2002-08-13 Thread Wiggins d'Anconia
Might be other ways to thwart this, but we would need more info about how you are doing things, aka POST or GET, setting cookies, etc. If you want to rid yourself of both the back button problem and session only cookies, you could always have your return page use a little javascript and call

Re: server_a and server_b description

2002-08-13 Thread Wiggins d'Anconia
Jimmy George wrote: > An earlier email of mine did say that this cgi-bin folder in my home > site is a 711 protection and does contain a file test1.cgi also at 711 > protection that does work. > 711 should work as you say since you (the web server's user) are simply executing the script. >

Re: problems with sendmail within a cgi

2002-08-14 Thread Wiggins d'Anconia
A cursory look at the code appears ok, you are positive that there are no errors given, have you tried running it command line?? What does sendmail's log file look like??? The program may be sending to sendmail, it may not be complaining back immediately, but it might be complaining later and

Re: Submitting Form Passes Old Values

2002-08-14 Thread Wiggins d'Anconia
In other words what Rob is asking ;-) is are you using mod_perl or plain cgi, and in the case of plain CGI, what browser are you using? what version of that browser? and have you tried other browsers, on other OSes, on other computers with what results??? http://danconia.org Hanson, Rob w

Re: Can't locate loadable object DBD::mysql in @INC

2002-08-17 Thread Wiggins d'Anconia
Changing @INC would work, but to save yourself hassle later and possibly to avoid further problems you might consider upgrading/re-installing DBI, and DBD-mysql through CPAN as well, as that should fix the problems and keep your CPAN installation contiguous, aka you upgraded Perl through CPAN

Re: Online installer

2002-08-18 Thread Wiggins d'Anconia
Soheil Shaghaghi wrote: > I kind of know how it's supposed to be done I m just not sure who to write the code >:) This sounds like a question that probably shouldn't be addressed here, as this is a help forum, rather than a job posting forum?? Sounds like you know what you want, and it ca

Re: Online installer

2002-08-18 Thread Wiggins d'Anconia
tainly not trying to discourage upcoming Perl programmers, but we have had posts before that were more suited to the jobs list than the help list. good luck with the project... http://danconia.org Soheil Shaghaghi wrote: > Wiggins Wrote: > > This sounds like a question that prob

Re: Online installer

2002-08-18 Thread Wiggins d'Anconia
:17 yikes) http://danconia.org Wiggins d'Anconia wrote: > Miscommunication I think is at the root. The way you stated the problem: > > > I kind of know how it's supposed to be done I m just not sure who to > write the code. > > > With the use of t

Re: Can't locate loadable object DBD::mysql in @INC

2002-08-19 Thread Wiggins d'Anconia
aka, use lib is like placing the push in a BEGIN blockwhich I think was the "old" way of doing things... David Zhuo wrote: > push @INC, 'the/path/you/want' > > is different than: > > use lib 'the/path/you/want' > > from a user's perspective, they are the same but they are not under the

Re: Can't locate loadable object DBD::mysql in @INC

2002-08-19 Thread Wiggins d'Anconia
ay, when i reply, how come i don't see my replied message showed > up in the mailing list? i am new to this mailing list :-) > > david > > On Mon, 2002-08-19 at 14:38, Wiggins d'Anconia wrote: > >>aka, use lib is like placing the push in a BEGIN blockwhich

Re: How to set cookies for an SHTML document?

2002-08-19 Thread Wiggins d'Anconia
The way I understand things, cookies must be printed before the header is returned (though this may have changed in HTTP/1.1, anyone?) In which case setting a cookie from within an SSI non-javascript is not possible. A cookie is just specifically formatted text being printed before the Content

Re: Can't locate loadable object DBD::mysql in @INC

2002-08-19 Thread Wiggins d'Anconia
never > appear in the news reader and i don't know why? i can see everyone > else's message but my own posted/replied message never appear in the > mailing list... > > david > > On Mon, 2002-08-19 at 15:40, Wiggins d'Anconia wrote: > >>SOrry...I was

Re: ActiveState's Komodo - Is it any good?

2002-08-20 Thread Wiggins d'Anconia
Sort of on this subject, but certainly great timing: http://developers.slashdot.org/article.pl?sid=02/08/20/1250242 http://danconia.org Craig Dean wrote: > It is very slow. > On Monday 19 August 2002 07:15 am, you wrote: > >>I have been looking for a good Perl development environment for Linu

Re: sendmail command line (without queuing)

2002-08-27 Thread Wiggins d'Anconia
man sendmail??? (or possibly try a sendmail group) You might be looking for "DeliveryMode=x" where x is "b" but I am not a sendmail expert. You might also check the perldoc for Net::SMTP as this is probably safer than using sendmail command line (or one of the many other SMTP modules). http:

Re: Hello and question

2002-08-27 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: > Hello, > I am Martin Schaaf, Forth hacker and Perl mystified. > > I'm taking on a volunteer project to create a cgi script to maintain a > simple flat file database and generate reports through email. Passwords > and commands would be passed through the email Subje

Re: sendmail command line (without queuing)

2002-08-27 Thread Wiggins d'Anconia
mber which one) that they recommend using > sendmail. > > What should I use if I have both? > > Thank you. > > Teddy's Center: http://teddy.fcc.ro/ > Mail: [EMAIL PROTECTED] > > - Original Message - > From: "Wiggins d'Anconia" <[EMA

Re: Hello and question

2002-08-27 Thread Wiggins d'Anconia
Remember to reply all so the list gets your posts as well... [EMAIL PROTECTED] wrote: > At 06:48 PM 8/27/2002 -0400, you wrote: > >> This doesn't sound like a CGI script > > > You're absolutely right. This is my second iteration, I've dropped the > CGI implementation for security reasons and

Re: use Mail::Mailer question

2002-08-28 Thread Wiggins d'Anconia
> > but for the life of me, I do not see this X-UIDL in > my outgoing traffic - is that something on his side > that his MTA is inserting??? > seems like the general consensus of the results from a google search is that it is an MUA header used with pop/imap. http://mail.gnome.org/archives/b

Re: Getting Image Links From Directory Into MySQL

2002-08-28 Thread Wiggins d'Anconia
Off the top of my hand I don't know of one, as I would more than likely home grow my own with Find::File and DBI, have you checked http://www.freshmeat.net and of course CPAN? There may be something in existence, or at least something close that you could then hack up to use your own db defs

Re: encryption

2002-08-30 Thread Wiggins d'Anconia
zentara wrote: > On Fri, 30 Aug 2002 10:32:27 +1000, [EMAIL PROTECTED] (Jimmy > George) wrote: > > >>Is there any way of encrypting a credit card number etc. so that it can >>not be seen when being transmitted from desktop to server? The user >>needs to see what they type to make sure it is co

Re: database execute status

2002-08-30 Thread Wiggins d'Anconia
From > perldoc DBI $rc = $h->err; $str = $h->errstr; $rv = $h->state; You should look at the docs for DBI, error handling is described in detail. That should get you started http://danconia.org aman cgiperl wrote: > Hi All > Is there a way to check the s

Re: Splitting a string

2002-09-05 Thread Wiggins d'Anconia
I am sure one of the gurus probably has a cool regex to do this, but I haven't gotten to that book yet ;-) One solution and by no means the fastest or shortest, would be to split on space, then step through your returned list checking the beginning of each element, if that element star

Re: Splitting a string

2002-09-06 Thread Wiggins d'Anconia
I'll take a stab, if I miss anything please fill it in guys. Octavian Rasnita wrote: > Hi and thank you. It works! > Could you explain me please in a few words what is this line doing exactly? > I want to learn. > > print join "\n", grep defined, ($string =~ /"(.*?)"|(\w+)/g); > Best thing to

Re: output pushing

2002-09-10 Thread Wiggins d'Anconia
Is the data dated? For example would it work to pass data up to point A, then set a cookie with the date+time of point A. Then when the page is refreshed data that has been generated since point A is printed to the browser. Obviously this is a crude solution, but maybe the closest you can get

Re: ending a script

2002-09-12 Thread Wiggins d'Anconia
The other options might work better. But another solution would be to pass a hidden value from the form to the script, which would prevent people from just hitting the URL directly, though this like the other methods is easily spoofed as well, considering "hidden" values aren't really all tha

Re: Sending and Reading cookies

2002-09-12 Thread Wiggins d'Anconia
Is the line being displayed? In that case you are likely printing the cookie after the header has already been printed, which is not allowed (or at least not standard, though I think some browsers may accept them). More specific information is going to be needed, and posting a larger portion

Re: Date Question(s)

2002-09-18 Thread Wiggins d'Anconia
Date::Calc is a wonderful thing. If that doesn't work however I would suggest just storing the number of seconds from epoch (aka time) in the log file. Then you simply subtract 30 days worth of seconds aka, 60*60*24*30 seconds -> which you can just use the constant for whatever that comes out

Re: why oh why?

2002-09-18 Thread Wiggins d'Anconia
I guess the question I have at this point is why pass the date to the form from the server and then back to a script when the end script could just as easily get the time using the *time* built in? Browser window could be opened with the time being set by the server, two days later when the us

Re: Creating thumbnails (Newbie Question)...

2002-09-18 Thread Wiggins d'Anconia
Second part: Depends on how complex you want your thumbnail page to be (of course). Simplest might be to store all your thumbnails to a directory, do an opendir, then while readdir, print your image tag changing only the file name in each case. To complicate matters, you can use the same Imag

Re: GPL - how does it work

2002-09-19 Thread Wiggins d'Anconia
Surprised no one else mentioned that this may better be answered by other mailing lists at the actual source (pun not intended): Go back to the beginning: http://www.gnu.org For reference: http://www.opensource.org/licenses/gpl-license.php http://danconia.org Alex Agerholm wrote: > Hi, > >

Re: How to get the last_modified date?

2002-09-22 Thread Wiggins d'Anconia
At the server or the client side? perldoc -f stat If you want it on the server side. "stat" returns specific information about a file on the local filesystem (or one that can be seen locally). http://danconia.org Octavian Rasnita wrote: > Hi all, > > I am using the LWP module and I am trying

Re: Barcode scanner & CGI

2002-09-25 Thread Wiggins d'Anconia
Just as a warning some systems at boot check the ownership/permissions of devices in /dev and correct the "problem children" so all of a sudden after a reboot this may not work again, you might be pre-emptive, try rebooting (or take a walk through the init process) and if this is the case addi

Re: How to verify the email address?

2002-09-28 Thread Wiggins d'Anconia
You may also want to consider using the Email::Valid module. http://search.cpan.org/author/MAURICE/Email-Valid-0.14/Valid.pm http://danconia.org Randal L. Schwartz wrote: >>"Octavian" == Octavian Rasnita <[EMAIL PROTECTED]> writes: > > > Octavian> I've tried to verify if an email addre

Re: Looking for the Sendmail.pm for Appache ver 1.3

2002-09-30 Thread Wiggins d'Anconia
http://search.cpan.org/author/MIVKOVIC/Mail-Sendmail-0.78/Sendmail.pm This has absolutely nothing to do with your Apache version. http://danconia.org Bruce Ambraal wrote: > Hi all, > > Could any one send of tell where I could find this Module. > > thanks in advance. > Bruce > -- To uns

Re: Net::POP3

2002-10-02 Thread Wiggins d'Anconia
If I am understanding correctly you should be able to just look for the first blank line following the header. This is part of the SMTP spec, the header is always concluded with a blank line that signifies it is ending and the actual message is beginning. http://danconia.org [EMAIL PROTECTED]

Re: listing modules installed with CPAN

2002-10-18 Thread Wiggins d'Anconia
This question may be better posed to the [EMAIL PROTECTED] list many of those users do not monitor both lists, and may be able to provide better insight. I would try and answer it but I don't have one :-) http://danconia.org Justin Cook wrote: Hello- How can I tell what modules I've inst

Re: question about "use MODULE"

2002-10-20 Thread Wiggins d'Anconia
My *guess* is no because that would be silly. My *semi-proof* is if you have use warnings on and your program compiled a module over again that has already been included then it would complain about redefining each of the sub routines in that module. My *guess* is that perl internally either ke

Re: mysql

2002-11-07 Thread Wiggins d'Anconia
I agree with what John Herbold already posted but would add: This probably has more to do with your hardware up to a point. Running mysql on a 486 is going to obviously not be as efficient as running it on a dual sun box, etc. In a previous position we ran 50 or so databased sites that ranged f

Re: congrats kelvin....also, mail receipts for Sven

2002-11-12 Thread Wiggins d'Anconia
With you evil people out there ;-) I am glad I use Mozilla. Actually I just wanted to state that even this is not fool proof anymore since thank god mozilla has a feature where you can shut off image loading in the mail client. http://danconia.org Peter Kappus wrote: Kelvin...Congrats on your

Re: HTML, XHTML, XML, etc

2002-11-16 Thread Wiggins d'Anconia
Theoretically because XHTML is really just a subset of XML any XML parser *should* be able to parse XHTML with no problem. HTML gets a little more complicated as it does not have to be properly formed. I am not sure if there is a module that will handle all types, the easy way I would think to

Re: Running a Perl program countinuously

2002-11-16 Thread Wiggins d'Anconia
Restarting automatically I would think wouldn't be possible without some outside source checking for whether it is running (for instance crond like you mention). Generally with a daemon process you would right a lock file or pid file, then have cron check for the pid file, read the pid out of

Re: HTML, XHTML, XML, etc

2002-11-17 Thread Wiggins d'Anconia
Jimmy George wrote: Hello All This is not really CGI talk but I am interested in the statement that XHTML is a subset od XML and a parser should be available in the CGI library. The examples you gave are all part of the XML specification. XHTML is really just a predefined set of tags and rules

Re: Perl/cgi question

2002-11-17 Thread Wiggins d'Anconia
perldoc -f system or check out the "backtick" operator. Use system if you are just wishing to receive the result code from execution, use the backticks if you need to capture the output of the command. You might also check out the expect module on CPAN and see if you can bring all of the vario

Re: Variable method invocation

2002-11-20 Thread Wiggins d'Anconia
Just a hunch Dave K wrote: Not sure if this is the correct place to ask, partly because I'm not sure where the problem lies. Environ: Winnt, ActiveState Perl, ImageMagick, Apache. Script uses CGI standard. I am attempting to access various methods from Image::Magick, some of which require no

Re: tutorials

2002-11-23 Thread Wiggins d'Anconia
It is a very good book, but I am not sure it is what the original poster was looking for, I don't think it is geared towards the cgi spectrum of Perl. It is great for doing specific tasks, many of which can be implemented in multiple arenas, but as a CGI book it really isn't. Along with the CG

Re: deleting a directory

2002-11-25 Thread Wiggins d'Anconia
You want rmtree which is part of File::Path ... perldoc File::Path http://danconia.org [EMAIL PROTECTED] wrote: I need to delete a directory and all the dir's and file below it can somebody help me with that -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

Re: using Content-type: application/x-javascript

2002-11-26 Thread Wiggins d'Anconia
What does the source of the page say? Everything looks correct in your perl, but it sounds as if the problems are client side which would indicate that whatever is in mytext.dat is not correct javascript. Verify that the source matches the mytext.dat code, and then double check that that code a

Re: Creating and Using Libraries

2002-12-02 Thread Wiggins d'Anconia
Some light reading: perldoc perlmod perldoc perlmodlib perldoc perlmodstyle perldoc perlmodinstall perldoc -f use perldoc -f require etc. (full list perldoc perl, may vary depending on version) Will wrote: Greets Folks, In many of the books and manuals I have, it seems every author has a di

Re: Retrieving POP email

2002-12-02 Thread Wiggins d'Anconia
Mail::POP3Client has a built in method to do this, from the docs: "Body( MESSAGE_NUMBER ) Get the body of the specified message, either as an array of lines or as a string, depending on context." If for some reason you must do it yourself, the end of the mail headers are indicated by the fi

Re: Retrieving POP email

2002-12-02 Thread Wiggins d'Anconia
Haven't used the module myself, but see inline. Mike(mickako)Blezien wrote: Hi Wiggins, Thanks for the info. I was sure that the Mail::POP3Client had something in it to extract the body of the message, but haven't been able to get it to work with the test script belowdo you pos

Re: Handling & =

2002-12-09 Thread Wiggins d'Anconia
Do you know what browser(s)? Most browsers should encode the & as "%26" and then your split would work properly. On a side note why re-invent the wheel, when it has already been invented lots of times, see CGI module on CPAN, or any one of the hundreds of CGI sites that give you source code t

Re: Cookies - might be off topic

2002-12-16 Thread Wiggins d'Anconia
Assuming you have control of the domains in question, you could have a "hidden" frame (frameheight=0 or something similar) that loads a script on one of the other domains that then sets it's cookie, and then redirects to the next domain, etc., but even this can be blocked in Mozilla (thank god)

Re: CPAN module install error... can you guys help?

2002-12-16 Thread Wiggins d'Anconia
You need the openssl development stuff, not just the binary package, aka it is looking for the headers, which are included in the source package, or usually in a development package depending on your system. Which distro are you running? http://danconia.org james lundeen wrote: yes, openssl i

Re: CPAN module install error... can you guys help?

2002-12-16 Thread Wiggins d'Anconia
other servers that I believe this statement to be true. --- Wiggins d'Anconia <[EMAIL PROTECTED]> wrote: You need the openssl development stuff, not just the binary package, aka it is looking for the headers, which are included in the source package, or usually in a development pac

Re: Directory structure

2002-12-21 Thread Wiggins d'Anconia
I couldn't tell if you meant create a list of all directories, or create a replication of all directories. You should check out: perldoc File::Find perldoc File::Path To see if they contain what you are after. http://danconia.org [EMAIL PROTECTED] wrote: Hi all, Is there a way to have my sc

Re: HTTPS in LWP

2002-12-28 Thread Wiggins d'Anconia
From the docs (lwpcook): "HTTPS URLs with https scheme are accessed in exactly the same way as with http scheme, provided that an SSL interface module for LWP has been properly installed (see the README.SSL file found in the libwww-perl distribution for more details). If no SSL interfac

Re: Help!

2002-12-28 Thread Wiggins d'Anconia
I think you are going to need to post a little of the script, specifically the part that prints that section of the HTML and possibly whatever you are using to print your header, as this is a rather specific and infrequent problem. http://danconia.org [EMAIL PROTECTED] wrote: I have a script i

Re: Help!

2002-12-28 Thread Wiggins d'Anconia
Always group reply so the list can help as well, as I definitely don't have all the answers :-) ... I am not able to reproduce the problem, copying and pasting your script into a test here, output correct HTML, that did not display extra < characters where you indicated. The only thing I can s

Re: IPC::Open2 works as script and not as cgi

2003-01-01 Thread Wiggins d'Anconia
I am not sure if Open2 automagically autoflushes the IO so you may want to turn on autoflushing and try again to see if that helps. You should also turn on warnings with 'use warnings' and see if that gives any more information. Don't know why other than not flushing the buffers this would wor

Re: IPC::Open2 works as script and not as cgi

2003-01-01 Thread Wiggins d'Anconia
like it may not be a problem with your script, but rather a problem with the environment. Anything out of the ordinary that you know of? http://danconia.org Miroslav Suchy wrote: Wiggins D'Anconia wrote: I am not sure if Open2 automagically autoflushes the IO so you may want to tu

Re: IPC::Open2 works as script and not as cgi

2003-01-02 Thread Wiggins d'Anconia
At a loss for what else you can try, with the exception of starting over with that file and try rewriting it, never know that sometimes helps for no apparent reason :-). Sorry I couldn't be of more help http://danconia.org Miroslav Suchy wrote: Wiggins D'Anconia wrote: The s

Re: taint mode

2003-01-09 Thread Wiggins d'Anconia
Is it possible to hardcode the location of wget as I am wondering if calling a program with a non-specific location in 'system' is what is causing the problem (have a look at perldoc perlsec for what I mean). I guess the other question I have is what does this have to do with booting the system

Re: flock and Fcntl

2003-01-09 Thread Wiggins d'Anconia
See perldoc -f flock, but specifically, no you do not need the 'use' statement with the way you are calling flock, that is with the '2' instead of using one of the "symbolic" names that Fcntl:flock provides, from the aforementioned perldoc: "OPERATION is one of LOCK_SH, LOCK_EX, or LOCK_UN, pos

Re: Sending a location Header

2003-01-11 Thread Wiggins d'Anconia
Colin Johnstone wrote: Gidday All, After adding a member to my mailing list using a form with the get method. I wish to send a location header to call the page again, to clear the query string. So that if the refresh key is hit that member is not added again. Is this the correct implementation o

Re: ISP won't install Perl modules

2003-01-19 Thread Wiggins d'Anconia
I thought CPAN inherited the PERL5LIB as it's install location. If this is not the case on of the configuration parameters given to CPAN is something like "Additional options for Makefile" which you can set to include a directive such as "PREFIX=/path/to/lib/dir" that will then get passed to th

Re: naming a variable as a numeric value

2003-01-19 Thread Wiggins d'Anconia
Ed Sickafus wrote: I asked in a previous query ... Is it possible to name a variable as the numeric value of a scalar? I should be more specific. Is it possible to convert the value returned by the time function into a name for a variable? I presume I concatenate some form of the number return

Re: Hash names in a HoH

2003-01-20 Thread Wiggins d'Anconia
We will get you there, eventually, ;-)... Ed Sickafus wrote: Although you all are trying, I'm still not getting it -- namely, how to use the hash names in a HoH. My reference shows the following template for a HoH: outermost hash | inner level of hashes | | innermo

Re: Hash names in a HoH

2003-01-20 Thread Wiggins d'Anconia
Dave K wrote: Ed, A 'cleaner' approach. The central (as opposed to key) point: In the expression: $hash{$ohk}->{$ihk} $hash{$ohk} is the _value_ of a hash, but that _value_ is a reference to a hash, so we can use the '->' syntax. Think of: $hash{$ohk}-> as identifying that (pesky anonymous)

Re: Hash names in a HoH ... stymied

2003-01-22 Thread Wiggins d'Anconia
Ed Sickafus wrote: foreach $keyouter(sort keys %dbm) { foreach $keyinner(keys %{$dbm{$keyouter}}){ If ($dbm{$keyouter}{$keyinner} == "LN") { print "localtime($dbm{$keyouter}) \t Last Name = $dbm{$keyouter}{$keyinner}\n"; } ### <--- Line 69 else { print "\t\t

Re: Download of files

2003-01-25 Thread Wiggins d'Anconia
Alex Agerholm wrote: Hi, Is it possible to make download of files like you can make upload of files from a CGI script ? If I understand you correctly you want to send something other than HTML bascially? This works very similar to regular HTML cgi scripts, except you will need to send a dif

Re: Reusing a variable from another script

2003-01-25 Thread Wiggins d'Anconia
Philip Pawley wrote: I am calling 2 scripts separately using server-side includes. I want to reuse the variables from the first script in the second. I am very much aware that I need to do more reading. Where do I look for the answers to this particular question? You will need to look to savin

Re: Error installing DBD::Mysql

2003-01-26 Thread Wiggins d'Anconia
What does this have to do with CGI?? [EMAIL PROTECTED] would be a better list for this question. However, do you have MySQL installed in an abnormal location, or where is the 'mysql_config' executable on your system? If it is in a "normal" location and you just installed it you may need to ad

Re: Help (or redirection) w/ Installation of Storable-2.05

2003-01-26 Thread Wiggins d'Anconia
Ed Sickafus wrote: Didn't find a list at CPAN for installing modules. Please point me if this query is out of place. You might have better luck on the [EMAIL PROTECTED] list, despite its name, advanced topics are discussed as well. I know there are several of us on both lists, but some of th

<    1   2   3   4   5   >