www-authinticate

2002-07-08 Thread Hytham Shehab
hi guys, how can i pass the 401 Unauthorized request so a message with a username/password show up to the user? i tried out cgi::authentification and the print "WWW-Authic \n\n" but no good? thanks in advance -- Hytham Shehab -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

re: Username & Password Question

2002-07-08 Thread Rhen Hernandez
Hi Everyone! Thank you all for all of your help... Rhen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

re: Username & Password Question

2002-07-08 Thread Rhen Hernandez
Hi Everyone! Thank you all for all of your help... Rhen -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Ternary Regex Evaluation

2002-07-08 Thread fliptop
John Pitchko wrote: > Yes that would work, but I was really curious as to why the ternary > operation does not work. In fact, none of my other ternary operations > seem to work. Is there something wrong with my syntax? probably. try putting each true/false statement inside a parenthesis.

Re: Ternary Regex Evaluation

2002-07-08 Thread John Pitchko
Yes that would work, but I was really curious as to why the ternary operation does not work. In fact, none of my other ternary operations seem to work. Is there something wrong with my syntax? Thanks, John Pitchko Data Services Saskatchewan Government Insurance >>> "Connie Chan" <[EMAIL PROT

Re: Ternary Regex Evaluation

2002-07-08 Thread Connie Chan
Sorry, I am poor in English, but is this what you want ? $title = $content; while () { chomp; $title = $1 if ( /(.+)<\/title>/i ); } print $title; Rgds, Connie - Original Message - From: "John Pitchko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 09, 2002

Ternary Regex Evaluation

2002-07-08 Thread John Pitchko
Hello, I am trying to do some pattern matching in a ternary evaluation, but it does not seem to work. If I place the regex into a structured if statement, it evaluates fine, but not in a ternary evaluation. Here is what I have so far. my $title; .. .. .. open FH, HTML_HOME . $directory . $cont

Re: Including SSI in a script

2002-07-08 Thread Todd Wade
"Octavian Rasnita" <[EMAIL PROTECTED]> wrote in message 00cc01c22495$df0f63d0$[EMAIL PROTECTED]">news:00cc01c22495$df0f63d0$[EMAIL PROTECTED]... > Hi all, > > I want to make a Perl script that generates a web page and prints it on the > screen. > I want to include an SSI statement in that page. >

Re: Username & Password Question

2002-07-08 Thread perl-dvd
When you have everything working, and something for security (htaccess), try redirecting by, NOT printing a content-type (text/html or whatever), then print this: print "Location: http://www.domain.com/path/morepath/file.html\n\n";; The capitalization and space are very important. Regard

Re: Odd boxes - the solution

2002-07-08 Thread Todd Wade
"Henk Van Ess" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > My provider gave me the solution. I had to install: > > pkg_add -r unix2dos > > where unix2dos *.cgi strips the boxes.. Ty all for the input. > Also, if you use the proper transfer setti

Re: Odd boxes after uploading

2002-07-08 Thread Todd Wade
"Henk Van Ess" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Dear all > > I just uploaded the following .cgi to my server: > > #!/usr/bin/perl > print "Content-type:text/html\n\n"; > print "Show me the monkey"; #this line prints the sentence "Show me the monk

Re: Form.pm (next installment of code review)

2002-07-08 Thread Ovid
--- [EMAIL PROTECTED] wrote: > Curtis, > Thank you for your observations and compliments (first paragraph). No your >right, I haven't > been using taint (*I hang my head in shame*). Actually, you may not *want* to use taint checking in your code samples. The end user should control that a

Re: Form.pm (next installment of code review)

2002-07-08 Thread perl-dvd
Curtis, Thank you for your observations and compliments (first paragraph). No your right, I haven't been using taint (*I hang my head in shame*). I probably would have done a few things slightly differently if I had a perfect vision I was I was creating when I began it. You see on the

RE: trying to find direcotries

2002-07-08 Thread Kipp, James
USE File::Find either that or you have to mess around with recursion which can be quite tricky File::Find does the recursion for you. docs are easy to follow > -Original Message- > From: LinkS On WeB [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 07, 2002 2:46 PM > To: [EMAIL PROTECTED];

Re: Sorting files by date (in first line)

2002-07-08 Thread Shannon Murdoch
Solved 10 minutes later by using: @list = sort { $filelisthash{$b} <=> $filelisthash{$a} } keys %filelisthash; Instead of: foreach $file_num (sort { $a cmp $b } keys %filelisthash) { push(@list,$file_num); } Thanks anyway!! Hope someone finds this helpful... On 8/7/02 9:17 PM, in article

Sorting files by date (in first line)

2002-07-08 Thread Shannon Murdoch
Hi all, I have a list of 40 or so files that need to be sorted into an array by article date (found in first line of each file in the form DD-MM-). I can't figure out how to go about it successfully... Can anyone help me out please?? Thanks in advance! Current method is as follows: use T

Re: trying to find direcotries

2002-07-08 Thread Janek Schleicher
Links On Web wrote at Sun, 07 Jul 2002 20:45:47 +0200: > Ok listen im trying to fin all the direcotries that are in a folder, I mean >everyone. But for some > reason this only prints out the first folder and not the sub folders. > > [snipped 18 lines of code] Well, that's a job for File::Find.

Re: server push

2002-07-08 Thread Geraint Jones
I had a look at this kind of thing a while back, and I'm happy to say I got it to work, but not with Internet Explorer. Do a search on Google for the phrase "server push" and optionally you could include Internet Explorer (this gave me an article from Microsoft Support detailing how to implemen