Re: cgi development environment

2012-09-19 Thread Mike Williams
You have a couple other issues. Since you have one print statement, spread over multiple lines, the semi-colons on lines 10 and 11 are bugs. They should be commas. The semi-colons terminate the statement resulting in syntax errors. Mike

Re: cgi development environment

2012-09-19 Thread Mike Flannigan
ither ActiveState, or Strawberry Perl. I use ActiveState. I think CGI comes automatically, but if not install that too with 'ppm'. Get back to me if you need help with that. Mike On 9/18/2012 8:34 AM, beginners-cgi-digest-h...@perl.org wrote: Subject: cgi development environment From:

Re: sending scalar and hash to function [SUMMARY]

2011-06-27 Thread Mike Williams
nd using that reference uses just a few bytes of memory. Copying the entire hash uses many thousands of bytes. Happy hacking, Mike

Re: PERL CGI SCRIPT killed by apache on client abort

2011-03-27 Thread Mike Williams
try again with the correct file. What difference does it make whether they get an error from your script or from apache, if they expected an error and intend to try again? Mike -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

Re: Stuck automating login to reuters.com and getting a page

2011-01-16 Thread Mike Williams
ata all in perl. Calling perl from c++ is a large can of worms. Unless you have a compelling reason for doing this, I would advise against it. It might be easier to put your c++ code in a library and then create a wrapper around that with xs. One approach that generally works for me is to identify stand alone tasks, get them working by themselves, then work on making them play together. Mike

Re: problems with 'require'

2009-11-29 Thread Mike Williams
>> >> Apache::Reload will resolve the issue of having to restart the server. I don't know if it's in the Active State repository, if not, its available on CPAN http://search.cpan.org/search?query=Apache::Reload&mode=module Mike

Re: Using GD on the fly to add a graph to a web page

2009-02-05 Thread Mike Williams
On Wed, Feb 4, 2009 at 6:11 PM, bacoms wrote: > Mike, First of all many thanks for the detailed reply. I thought I > understood what you were saying but, having changed my code > accordingly, I'm not so sure. You are welcome. It looks like you understood things pretty well. >

Re: Using GD on the fly to add a graph to a web page

2009-02-03 Thread Mike Williams
w the correct image/png header. And: wget http://blahblahbl/cgi-bin/imagetest.cgi should fetch a local copy image that you can view on your system. Let us know how this works out. I'm not entirely awake and haven't done this in quite a while, so I may have missed something. This should

perldoc ESC problem (was: Send email using SMTP)

2009-01-10 Thread Mike Williams
that will work better on different operating systems. There are a couple other environment variables that look like they may help. Also, man lesskey provides various other ways to change the defaults for less on different OS's. Mike

Re: Opening a pipe when taint mode is enabled (was: Send email using SMTP)

2009-01-10 Thread Mike Williams
name with a space in between the regex will not match, no assignment will be made and the $name variable will not be untainted. BTW - I missed this at first, but put some debugging code in after the regex test which revealed the problem: $name = param('Name'); if ($name =~ /^([...@\w. ]+)$/) { $name = $1; } else { print "Bad name ($name)\n"; # mw debug } Mike

Re: Send email using SMTP

2009-01-08 Thread Mike Williams
some junk in places where perldoc is meant to display bold or underlined characters, but it should get rid of most of the terminal control stuff. Mike

Re: Verifying email addresses given by a user

2009-01-01 Thread Mike Williams
s => "$email", -mxcheck => 1); }; print "valid address ($addr)\n" if $addr; print "Invalid address ($email)\n" unless $addr; Here's the output from two test runs, alternately commenting out the two addresses above:

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Mike Williams
On Mon, Dec 15, 2008 at 1:48 PM, Adam Jimerson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mike Williams wrote: > > > Your first question was: > > > I'm sorry I guess I should have been more specific in my question, I > never wanted to try

Re: embedding a CGI script in a HTML page?

2008-12-15 Thread Mike Williams
On Mon, Dec 15, 2008 at 7:50 AM, Adam Jimerson wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Dermot Paikkos wrote: >>> -Original Message- >>>> http://www.template-toolkit.org/ >>>> >>>> Mike >>> Looking

Re: embedding a CGI script in a HTML page?

2008-12-14 Thread Mike Williams
ely lost in how > to use it for my needs. > Take a look at the template toolkit web site, that may help you understand it. http://www.template-toolkit.org/ Mike -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/

Re: Carry Variable to Form

2008-10-04 Thread Mike Flannigan
On Sun, 21 Sep 2008, [EMAIL PROTECTED] wrote: > >On Sat, 20 Sep 2008 23:27:55 -0600, Mike Flannigan wrote: >> > I really like this >> > print <> > html code goes here >> > ENDHTML >> > thing I found. If I had my way, I'd do everything &

Re: Carry Variable to Form

2008-09-20 Thread Mike Flannigan
Owen wrote: Hi, This is a Perl mailing list, maybe you would be better off posting to a javascript list, or if it is a html file, a html group? Owen I'm so new at this I really didn't notice the distinction. I've done this formmail thing in pure html, html with javascript, and then Pe

Carry Variable to Form

2008-09-20 Thread Mike Flannigan
I have an html file that parses passed parameters with this code: var query = location.href.substring((location.href.indexOf('?')+1), location.href.length);
if(location.href.indexOf('?') < 0) query = '';
q

FormMail within a CGI Script

2008-09-20 Thread Mike Flannigan
ybody explain what I am doing wrong? It may be something very basic. I get the digest version of this list, so I'd appreciate it if you sent it to me directly along with sending it to the list. Mike Flannigan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

section 508 compliance to Perl-generated forms?

2008-08-15 Thread mike
Hello, I have a number of Perl CGI scripts that generate html forms that need to be made 'Section 508' compliant. I have combed CPAN and perldoc but haven't been able to find any way to do this, e.g. with a module. Can anyone send me in the proper direction? Thanks very much

Re: Sendmail

2008-04-10 Thread Mike Williams
x27;sub' before populateEmail #!/usr/bin/perl # use strict; use warnings; my $email = populateEmail("test"); print $email, "\n"; sub populateEmail { if(lc($_[0]) eq "test") { return ("[EMAIL PROTECTED]"); } } # output from test ... $ ./cgi_list_bug.pl [EMAIL PROTECTED] Mike

Re: uploading a file with perl--->kueri: ------------4CyrMz2ZeGIClwYfFsVdcv Content-Disposition: form-data; name="level" asda ------------4CyrMz2ZeGIClwYfFsVdcv Content-Disposition: form-data; name="m

2008-01-13 Thread Mike Williams
$cgi->param('url'); print $cgi->p("filename => ($filename)"); my $OUTFILE; my $path = '/var/www/cgi-bin/test'; open ($OUTFILE,">$path/$filename") or die "Could not open output file $path/$filename $!"; my ($bytesread, $buffer); while ($bytesread=read($filename,$buffer,1024)) { print $OUTFILE $buffer; } close $OUTFILE; print $cgi->h1('Article upload status'); print $cgi->p('article uploaded'); print $cgi->end_html(); Notice that the upload code using CGI is about one third the length of your non-working code. There should be more error checking added, but it is up and limping. You should look at the perldoc for CGI. In particular search for MAX (with /MAX) and read the section about settint the maximum size of uploads. Cheers, Mike

Re: cgi-bin will not execute perl program [SOLVED]

2007-06-21 Thread Mike Williams
nf file? > > BTW - this was with Apache/2.2.4 on fedora 6. That is it!!! I can't beleive I didn't even check that. Assumed it was a given that it would be there... Cool, thanks for the good news. Cheers, Mike

Re: cgi-bin will not execute perl program

2007-06-14 Thread Mike Williams
er worked, it just displayed the source of my perl code in the browser window. Do you have a load module for mod_cgi in your httpd.conf file? BTW - this was with Apache/2.2.4 on fedora 6. Mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Premature end of script headers

2007-06-13 Thread Mike Williams
ake the code run on linux,if so let me know The code you originally posted compiled and ran without modification on linux. Mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Premature end of script headers

2007-06-12 Thread Mike Williams
Saravanan, Hi there. Please do a reply to all to keep this on the list. Someone else may be able to help, and someone else may be helped in the future if it lands in the list archives. On 6/12/07, saravanan Jagadeesan <[EMAIL PROTECTED]> wrote: Mike, Thanks for your info mi

Re: Premature end of script headers

2007-06-08 Thread Mike Williams
On 6/7/07, saravanan Jagadeesan <[EMAIL PROTECTED]> wrote: Mike, These are the answers for your questions Do you have other cgi programs in the same directory that work? None works !!,Am having about 5 programs in my CGI-BIN folder all these programs are executi

Re: Premature end of script headers

2007-06-05 Thread Mike Williams
output the headers. Try putting this near the top of your script: use CGI::Carp qw(fatalsToBrowser); this will redirect fatal errors to the browser window - see perldoc CGI::Carp for more info. If neither this nor Sean's suggestion helps post your code so we can take a look. Mike

Re: redirecting cgi via post method

2007-02-16 Thread Mike Blezien
You may also want to check out the WWW::Mechanize module this will do what your looking for. Mike - Original Message - From: "Mumia W." <[EMAIL PROTECTED]> To: "Beginners CGI" Sent: Friday, February 16, 2007 12:49 PM Subject: Re: redirecting cgi via post met

Re: A Few Questions

2007-01-23 Thread Mike Williams
g the CGI module you need to have: print "Content-Type: text/html; charset=ISO-8859-1\n\n"; as your first line of output. There is a function/method in CGI called header that will do this for you is you are using the CGI module. See perldoc CGI for more info. If this doesn't work

Re: unix top command through cgi

2006-08-04 Thread Mike Williams
terminal type because you would then have to parse the escape sequences top uses for highlighting, etc. Have a look at man top for more information. Mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: pattern matching problems

2006-07-08 Thread Mike Williams
$used{$word} = 1; } } with $sentence = 'she had brown hair and brown eyes'; @words would be: she:had:brown:hair:and:eyes Perhaps I've had too much caffeine this morning ;-) Happy hacking, Mike Williams ps - always include use warnings; and use strict; in your perl code unless you *like* chasing bugs -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: CGI::Fast and ithreads.

2006-05-02 Thread Mike Pomraning
quot; is so old that it's hardly a relevant data point. Try threads-1.23 or 1.24, available from CPAN. I also suggest that you ``use threads'', rather than ``require'' it. Good luck. Regards, Mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: redirect - CGI

2006-04-11 Thread Mike Blezien
- Original Message - From: "Augusto Flavio" <[EMAIL PROTECTED]> To: "'Perl Beginners - CGI List'" Sent: Tuesday, April 11, 2006 8:05 AM Subject: redirect - CGI Hi, I'm looking for a method to redirect the url of browser to elsewhere. What i do was check the documentation of CGI.p

Cookie Problem

2005-08-01 Thread Mike Blezien
ed to use the unescape($cookie_string), again the same results. Is there a way to pass the cookie string and retain the pipe character '|' without it being changed to the '%7C' character. TIA, -- Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain I

MIME::Lite attachments

2005-07-17 Thread Mike Blezien
f', Filename =>'Document.pdf', Disposition => 'attachment' ); is the specific what to code MIME Lite to send a TEXT/HTML message with a PDF file attached ?? TIA -- Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-

Help w/Regexp filtering

2005-06-04 Thread Mike Blezien
$filters[$i] or $wordtochk =~ /(\d\s*){6,11}/ or $wordtochk =~ /\@/) { print qq~Word: $wordtochk - Filter:$filters[$i]~; $match = 1; last CHECK; } } } Any help would be much appreciated. :) -- Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

checking for a sequence of numbers

2005-06-03 Thread Mike Blezien
2 # seq 2 #Checkword: 06545 # seq 3 #Checkword: phone #Checkword: number -- Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://thunder-rain.com/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- To unsubscribe,

Re: hash array sorting

2005-06-03 Thread Mike Blezien
Thanks, after looking at my code again, I realized what you where referring to and it works fine now, just like you have it below... just had stop and look at it again. :) Mike Sean Davis wrote: Untested: foreach $key (sort { lc($lang->{$a}->[0]) cmp lc($lang->{$b}->[0]) }

Re: hash array sorting

2005-06-03 Thread Mike Blezien
How that apply to our code: foreach $key (sort { $lang->{$a}->[0] cmp $lang->{$b}->[0] } keys(%{$lang})) >> { >> # do stuff here >> } Sean Davis wrote: Look at using lc (lower case). It can make your sort case-insensitive. On Jun 3, 2005, at 7:17 P

hash array sorting

2005-06-03 Thread Mike Blezien
wer case, then it's the last in the list after all others sorted. this is the code we use to do the sort. foreach $key (sort { $lang->{$a}->[0] cmp $lang->{$b}->[0] } keys(%{$lang})) { # do stuff here } Is there way to sort and disregarding case ?? TIA

Re: Hash array

2005-05-12 Thread Mike Blezien
Ovid wrote: --- Mike Blezien <[EMAIL PROTECTED]> wrote: what is the correct proceedure to check the number of elements in a hash array, when extracting elements like $hash->{$key}->[0],$hash->{$key}->[1],.etc is there way to determine the number of elements [ ] in the $hash-

Hash array

2005-05-12 Thread Mike Blezien
displayed. TIA. -- Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://lear

Multiple Languages

2005-05-11 Thread Mike Blezien
that the scripts may not understand or handled incorrectly or cause problems with processing the data entered. If you've had some experence with working with multi-lingual applications, any info or documentation would be appreciated. TIA, -- Mike(micka

Re: Sort hash on key value

2005-05-07 Thread Mike Blezien
Ah! ... had is ass-backwards, I though it didn't look right. Thank you for your help...much appreciated :) Paul Archer wrote: 7:22pm, Mike Blezien wrote: Hello, I've gone through serveral posting regarding sorting hashes, but can't seem to get it to sort correctly. I need it to

Sort hash on key value

2005-05-07 Thread Mike Blezien
tuff } and it keeps sorting just on the "key" (1,2,3..etc), but can get it to sort on the key value. This needs to be a sort on the alpha, and not numeric value. What I'm I doing wrong ?? TIA, -- Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder R

Undefined subroutine Error

2005-05-07 Thread Mike Blezien
utine &main::some_routine_name called at script_name line XXX TIA -- Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: Perl equivelant

2005-05-02 Thread Mike Blezien
Sean Davis wrote: - Original Message - From: "Mike Blezien" <[EMAIL PROTECTED]> To: "Perl List" Sent: Monday, May 02, 2005 8:20 PM Subject: Perl equivelant Hello, Hoping we have some expert MySQL Function to perl function people on the list. Is there an equiv

Perl equivelant

2005-05-02 Thread Mike Blezien
Hello, Hoping we have some expert MySQL Function to perl function people on the list. Is there an equivelant function in perl for converting IP's, the same as MySQL functions: INET_ATON('IP_ADDRESS_STR') and INET_NTOA('STR') TIA

Re: Alternative Modules

2005-04-27 Thread Mike Blezien
Wiggins d'Anconia wrote: 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 g

Online Banking

2005-04-26 Thread Mike Blezien
anything that would work TIA, -- Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://thunder-rain.com/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Alternative Modules

2005-04-26 Thread Mike Blezien
it doesn't really remove certain headers from the actual body of the email. Is there a module that works similar as the Mail::Audit, but extracts the actual body content of the email without some of the headers included in it?? TIA -- Mike(mickalo)Blezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

RE: hello all

2005-02-17 Thread Mike Garner
or the output once the right header is in place. The docs for CGI are quite extensive. Break your process apart and go step by step. As you run into specific hang-ups, post back here. Good luck. ~Mike PS. And maybe come up with a more informational subject line. -Original Message- From

RE: How to send mail using ActiveState and IIS

2005-01-08 Thread Mike Garner
olks. Here the link to some documentation: http://search.cpan.org/~mivkovic/Mail-Sendmail-0.79/Sendmail.pm ~Mike ----- Mike Garner Computer Services, WSC [EMAIL PROTECTED] voice: 970.943.3123 fax: 970.943.7069 -Original Message- From: Siegfried Heintze [mailto:[EMAIL P

RE: Printing from a Web Browser

2004-12-01 Thread Mike Garner
f I linked the same style sheet for the print media... Another thought might be the way the style sheet is linked. E.g using @import url() or another way. Again, I'm no expert and this isn't a CSS list but maybe this helps some... ~Mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] F

Re: corrected: foreach to generate parameter calls

2004-10-05 Thread Mike Williams
Separate scalars with the same names as the hash keys means you have to maintain *three* copies of the same names, one in the template file, and two in the perl code. One more possiblity of missing one on an update, and one more thing to do with each change. Hope this helps, Mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

PERL CGI on IIS

2004-07-12 Thread Mike Garner
n32::OLE->GetObject($ADsPath)||print qq(nope, get object failed); $u->SetPassword($new_password); $u->SetInfo(); The script always fails on the GetObject method line when it is executed via CGI. What is that command doing that IIS doesn't appreciate? Any suggestions? Thanks, Mike

General question about HTML form

2004-03-20 Thread Mike Ni
rsted to find out more about what is out there? Thanks, Mike __ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Creating Menus in CGI

2004-03-20 Thread Mike Ni
--- > > How to create menus using Perl CGI? > > Any help in this regard will be great. > > Check out the CGI library: http://search.cpan.org/~lds/CGI.pm-3.04/CGI.pm Although I haven't take a crack of it, but I heard it is pretty neat. MIke __

RE: OLE Permissions in CGI

2003-12-10 Thread Mike Garner
ut here I'm not. Any Ideas? ----- Mike Garner Computer Services, WSC [EMAIL PROTECTED] 970.943.3123 (voice) 970.943.7069 (fax) -Original Message- From: Tom Kinzer [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 9:34 AM To: [EMAIL PROTECTED] Subject: RE: OLE Permissi

OLE Permissions in CGI

2003-12-10 Thread Mike Garner
ss ); } else {print qq( Error! I could not locate $user in the $ou Organizational Unit (OU). u was |$u| adspath was |$ADsPath| userdsobject was |$userdsobject| adsinamespaces was |$adsina

Re: Javascript problems with -script

2003-11-23 Thread Mike Schienle
On Nov 23, 2003, at 06:47 PM, Charles K. Clarkson wrote: On Sunday, November 23, 2003 6:42 PM, Mike Schienle <[EMAIL PROTECTED]> wrote: [snip] : Can someone point out what I'm missing in the -script section : that's commented out that would make it not work correctly? : The so

Javascript problems with -script

2003-11-23 Thread Mike Schienle
indow when the submit button is pressed: ... my $JSCRIPT = < print $q->header(), $q->start_html( -title=>'E-Tim Navigator', -author=>'Mike Schienle, [EMAIL PROTECTED]', -style=>{ 'src'=>'/styles/delta.css&#

Re: Rounding Off

2003-11-22 Thread Mike Blezien
Thanks, exactly what I was looking for :) -- MikeBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Wiggins d'Anconia wrote: Mike Blezien wrote: Hello, I need the ability to roun

Rounding Off

2003-11-22 Thread Mike Blezien
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 ?? TIA -- MikeBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet

HTML Anchor in CGI

2003-10-16 Thread Mike Garner
to work. Any ideas? Thanks, Mike -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Apache Logs

2003-10-03 Thread Mike Blezien
Randal, yes, I was finally able to find it after I was able to connect to the cpan search web site. seems sometimes the site is not accessiable. appreciate the info. Micaklo >> Randal L. Schwartz wrote: "Mike" == Mike Blezien <[EMAIL PROTECTED]> writes: Mike> I was w

Apache Logs

2003-10-02 Thread Mike Blezien
Hello, I was wondering if someone knows of any Perl Modules that designed to read and process the various types of apache access_log files like "common", "combined"..etc ?? thx's -- MikeBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solution

RE: passing an argument to a subroutine

2003-09-08 Thread Mike Harrison
array name will result in the scalar containing the number of elements in the array: eg. $scalar = (1..5); # $scalar will be given the value of 5. See my comments below... Mike. -Original Message- From: B. Fongo [mailto:[EMAIL PROTECTED] Sent: Thursday, 04 September, 2003 7:34 PM To: [

Re: File existence under Microsoft IIS

2003-09-06 Thread Mike
Thanks Charles, You are correct - I won't be moving directories often, so I have incorporated your 'existence subroutine' suggestion into my perl program with absolute pathnames. It is now much tidier. Thanks again guys, Mike. - Original Message - From: "Charles

Re: File existence under Microsoft IIS

2003-09-06 Thread Mike
hat is the 'correct' way of doing it I am not sure, but it seems to be the only combination I have tried that works. Cheers, Mike. - Original Message - From: "Hanson, Rob" <[EMAIL PROTECTED]> To: "'Mike'" <[EMAIL PROTECTED]>; <[EMAIL PR

File existence under Microsoft IIS

2003-09-05 Thread Mike
based servers and I am running from a MS IIS-based server. But if that were the case, wouldn't the server spit out an error that it didn't understand -e? Are there similar (but different) file tests for IIS? Thanks in advance, Mike.

Monitor Bandwidth.

2003-08-21 Thread Mike Blezien
Hello, Does anyone know of a Perl module or other means with Perl to monitor and/or measure bandwidth usage ?? TIA -- MikeBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunder Rain Internet Publishing Providing Internet Solutions that work! http://www.thunder-rain.com Web Hosting http://www.j

RE: Perl line breaks

2003-08-14 Thread Mike Harrison
s well. I am now getting a CGI error message along the lines of Cannot find a string terminator '"' in ... line ... (the line above starting with print "... ". I can't find a problem with that line??? Thanks for your help so far guys! I am losing a bit of sleep on t

RE: Perl line breaks

2003-08-10 Thread Mike Harrison
Hi All, Well, I have fixed the problem. I converted the messy html output from a series of ugly print statements (complete with escaping for every " character) to a heredoc as follows: print <mailto:[EMAIL PROTECTED] Sent: Wednesday, 06 August, 2003 7:44 PM To: Mike Harrison; Jon

RE: Perl line breaks

2003-08-06 Thread Mike Harrison
e BODY and HTML sections. sub HTML_ender { print "\n\n\n"; # Print the copyright information print "\n"; print "\n"; print "  Copyright © 2003. All rights reserved.\n"; print "\n"; print "\n"; # End the html section

RE: Perl line breaks

2003-08-04 Thread Mike Harrison
ver, it doesn't require the full path. The -w to warn of errors/mistakes etc.) I will need to wait till tonight before sending some of the perl program and header info... Cheers, Mike. -Original Message- From: Andrew Brosnan [mailto:[EMAIL PROTECTED] Sent: Tuesday, 05 August, 2003 10:03

Perl line breaks

2003-08-04 Thread Mike Harrison
oked an important detail that I can't see on the screen - such as line breaks or other non-printable characters??? Thanks in advance for any help, Mike.

Re: File uploading

2003-07-18 Thread Mike
ck the size along the lines of (where FILESIZE is some function to get the size of a file)... if (( FILESIZE (@pic_filenames[0]) > 1024*100) || (FILESIZE (@pic_filenames[1]) > 1024*80)) { # print error message here } Thanks in advance, Mike. > On Fri, 18 Jul 2003 at 12:03, Mike Harris

File uploading

2003-07-17 Thread Mike Harrison
t how large the file is without having to download it first. Does perl have a module that can check the size of the file? And for that matter, its type (.jpg, .gif etc.)? Thanks in advance, Mike.

Getting the domain name

2003-07-14 Thread Mike Blezien
Hello, We have a fairly simple redirect script a url is entered, and even tho there are directions to not enter the "http://www"; sometimes we get it or "http://";... what is the simplest method to extract just the domain name if a "http://www.somedomain_name.com"; or "http://somedomain_name.co

Adding data to file [Long Post]

2003-06-17 Thread Mike Blezien
hello all, I'm trying to change how data is currently being added to a file to condense it and make it easier to work with. Below is the code snip that processes and adds the data to the appropriate file. The current Output to the file is what I am trying to change and not having alot of luck.

RE: Problems getting a simple form to work.

2003-04-06 Thread Mike Butler
These are the permissions on the files: simpleform.htm rw-r--r-- cgi-bin rwxr-xr-x simpleform.cgi rwxr-xr-x Does anyone have any ideas? Thanks, - Mike -Original Message- From: Rob Benton [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 4:38 PM To: Mike Butler Cc: Hughes, Andrew; [

RE: Problems getting a simple form to work.

2003-04-04 Thread Mike Butler
Thanks, Andrew. That did it. It's working now. :) :) :) Thanks everyone for all your help. - Mike -Original Message- From: Rob Benton [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 4:38 PM To: Mike Butler Cc: Hughes, Andrew; [EMAIL PROTECTED] Subject: RE: Problems gett

RE: Problems getting a simple form to work.

2003-04-04 Thread Mike Butler
undefined? Thanks, - Mike -Original Message- From: Hughes, Andrew [mailto:[EMAIL PROTECTED] Sent: Friday, April 04, 2003 3:09 PM To: [EMAIL PROTECTED] Subject: RE: Problems getting a simple form to work. I would also add use CGI::Carp qw(fatalsToBrowser); along with use CGI; use str

RE: Problems getting a simple form to work.

2003-04-04 Thread Mike Butler
ain\n\n"; print "You entered: $username\n"; The permissions look like this: Permissions for cgi-bin: rwxr-xr-x Permissions for simpleform.cgi rwxr-xr-x Permissions for simpleform.htm: rwxr-xr-x I have changed to http://www.mikyo.com/cgi-bin/simpleform.cgi";>. I am stil

Problems getting a simple form to work.

2003-04-04 Thread Mike Butler
processed. Please try again later. Below are the permissions and the html and perl code. Can anyone tell me what I'm doing wrong? Also, is there a way to turn on error.log? TIA, - Mike Permissions for cgi-bin: rwxr-xr-x Permissions for simpleform.htm: rwxr-xr-x HTML for simplefor

Out of memory

2003-02-16 Thread Mike Blezien
Hello All, We installed a shopping cart program awhile back, written perl, which was working fine... no problems.. then when we upgraded the cart the other day, then started getting an "Out of Memory" errors from one of the scripts, but not all the time, and I've been working on this most day,

Re: Ping Results

2003-01-30 Thread Mike Blezien
thanks, that may do the trick.. >> fliptop wrote: 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 p

display Ping Results

2003-01-30 Thread Mike Blezien
Hello all, trying to put together a simple 'ping' display via the browser... and not having any luck... how does one get the results of a ping to diplay the results properly ?? Sample code: === #!/usr/bin/perl use CGI qw(:standard); use strict; my $pingcomma

Ping Results

2003-01-30 Thread Mike Blezien
Hello all, trying to put together a simple 'ping' display via the browser... and not having any luck... how does one get the results of a ping to diplay the results properly ?? Sample code: === #!/usr/bin/perl use CGI qw(:standard); use strict; my $pingcomman

Problem Installing the NMS FormMail program

2003-01-13 Thread Mike Butler
sendmail pipe failed, mailprog=[$mailprog]"; <<== Line 645 } } Does anyone have any suggestions about how to debug this? Is it a problem with sendmail? Thanks so much, - Mike Thanks, - Mike --- Mike Butler Web: http://www.hotlux.com and http://www.mikyo.com Email: [EMAIL PROTEC

Re: GD Graphs

2002-12-12 Thread Mike(mickako)Blezien
prowg/ http://www.oreilly.com/catalog/perlgp/ (December) http://danconia.org On Thu, 12 Dec 2002 09:39:41 -0600, "Mike(mickako)Blezien" <[EMAIL PROTECTED]> wrote: Hello, I am going to be working on a project, that will be utilizing the G

GD Graphs

2002-12-12 Thread Mike(mickako)Blezien
Hello, I am going to be working on a project, that will be utilizing the GD::Graphs module to create various graph reports. I was hoping that someone could point me to some good documentation or working examples of the uses of this module... of course I've been to CPAN, but was hoping to find m

Re: Retrieving POP email

2002-12-02 Thread Mike(mickako)Blezien
Ok, I see where I was going wrong, forgot to add the (MESSAGE_NUMBER) in the Body() while looping thru each email! thanks for all your help ;) Works fine now Happy Holidays >>Wiggins d'Anconia wrote: Haven't used the module myself, but see inline. Mike(mickako)Blezien wro

Re: Retrieving POP email

2002-12-02 Thread Mike(mickako)Blezien
les on CPAN as there are a number that handle the parsing of mail messages. http://search.cpan.org/author/SDOWD/POP3Client-2.12/POP3Client.pm http://danconia.org Mike(mickako)Blezien wrote: Hello all, I am currently working on retrieving a POP account that will have some stock quota data in i

Retrieving POP email

2002-12-02 Thread Mike(mickako)Blezien
Hello all, I am currently working on retrieving a POP account that will have some stock quota data in it for clients and sent out several times aday. I am using the use Mail::POP3Client module. All is working fine, except I need to strip out all but the body of the message, removing all the mai

multiple selection

2002-11-22 Thread Mike(mickako)Blezien
Hello all, having a problem with processing multiple selection from a scrolling list... first time working with tha scrolling list. Here is the test script I'm working with: #!/usr/local/bin/perl use CGI qw(:standard); $action = param('action'); print header(); print start_html(); if (!$actio

Convert IP address

2002-11-11 Thread Mike(mickako)Blezien
Hello, was wondering if there is a module or someone may know of a quick means of convering a IP address to a host/domain address. this is a snip of code we use to use, but I don't think it works very well any more: # Covert Host IP Address to domain name IE: [somedomain.com] $ip = remote_addr

Removing Folder/Files

2002-10-06 Thread Mike(mickako)Blezien
Hello, there was a dicussion earlier on this list about a module that removes folder and files similar to the `rm -rf` command line, but for the life of can't remember which modules does this, with some thing like rmtree(). thanks, -- MikeBlezien =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Thunde

  1   2   >