Re: cgi development environment

2012-09-19 Thread Mike Williams
On Wed, Sep 19, 2012 at 10:48 PM, Chris Stinemetz chrisstinem...@gmail.comwrote: am having issues with my first script and have hopes someone may be able to explain to me whey it isn't working correctly. The error is coming form line 11 and the error is: Premature end of script headers:

Re: PERL CGI SCRIPT killed by apache on client abort

2011-03-27 Thread Mike Williams
2011/3/26 Przemysław Rejf prze...@rejf.org: Hi, My upload script which uses upload hook works really nice. After the upload ends it writes some debug stuff to log file and sends some info to other host. When client aborts the upload the reminder of the script after hook is not executed and i

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

2011-01-16 Thread Mike Williams
On Sun, Jan 16, 2011 at 7:48 AM, Carl Wells cgrwe...@yahoo.co.uk wrote: Hi, I hope you don't mind my newbie question. I'm new to web-programming (and indeed am somewhat rusty with programming in general). I'm out of work and trying to teach myself C++, PERL, SQL and other skills and in

Re: problems with 'require'

2009-11-29 Thread Mike Williams
On Sun, Nov 29, 2009 at 1:02 PM, Paweł Prędki pawel.pre...@detroitredwings.pl wrote: I changed all the permissions and what I get now is that everything works fine but whenever I make changes to the .pm file I need to restart the server that is running locally for the changes to be seen in

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 googlebr...@balfour.me.uk 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

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

2009-02-03 Thread Mike Williams
On Mon, Feb 2, 2009 at 8:26 AM, bacoms googlebr...@balfour.me.uk wrote: Is it possible to eliminate the need to first write the image to disk? Yes, it is possible and desirable. Writing the images to disk creates a lot of complications. You have to generate some random temporary name to avoid

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

2009-01-10 Thread Mike Williams
On Fri, Jan 9, 2009 at 6:30 PM, Adam Jimerson vend...@charter.net wrote: Gunnar Hjalmarsson wrote: Adam Jimerson wrote: According to perlsec I need to use it as a key in a hash or reference a substring. The example given is ,[ ] if ($data =~ /^([...@\w.]+)$/) { $data =

perldoc ESC problem (was: Send email using SMTP)

2009-01-10 Thread Mike Williams
Hi there. Since the charset doesn't seem to be the problem, maybe this will help. Did some digging and found a bug report against redhat version 8 concerning terminal codes in perldoc output. There were comments about this being a bug in groff. https://bugzilla.redhat.com/show_bug.cgi?id=72125

Re: Send email using SMTP

2009-01-08 Thread Mike Williams
On Thu, Jan 8, 2009 at 2:17 PM, Adam Jimerson vend...@charter.net wrote: Please read more about Perl security in perldoc perlsec. I wasn't able to remember what it exactly said, but yes it is about $ENV{PATH}, on my machine perldoc perlsec is riddled with formating problems it looks

Re: Verifying email addresses given by a user

2009-01-01 Thread Mike Williams
On Thu, Jan 1, 2009 at 12:03 AM, Adam Jimerson vend...@charter.net wrote: I'm trying to make my script verify a email address that a user has given to it. I have installed and using Email::Valid but it doesn't seem to be working for it allowed this as a email address: test The way that I

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 vend...@charter.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dermot Paikkos wrote: -Original Message- http://www.template-toolkit.org/ Mike Looking at the website and the documentation, still reading through it, I'm

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 vend...@charter.net 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 and put perl code ino my HTML

Re: embedding a CGI script in a HTML page?

2008-12-14 Thread Mike Williams
On Sun, Dec 14, 2008 at 1:28 PM, Adam Jimerson vend...@charter.net wrote: On Dec 12, 12:47 pm, sdav...@mail.nih.gov (Sean Davis) wrote: Are you talking about this, http://search.cpan.org/~abw/Template-Toolkit-2.20/lib/Template.pm? If so it doesn't really say what it is for I am completely

Re: Sendmail

2008-04-10 Thread Mike Williams
On Thu, Apr 10, 2008 at 12:41 AM, Perl CGI script enhancer [EMAIL PROTECTED] wrote: my $email = populateEmail(test); print $email; When i a using the above code it results in No recipient address found in header and when i replace ${email} with [EMAIL PROTECTED] ie To : [EMAIL PROTECTED]

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
On Jan 12, 2008 5:54 PM, Patrik Hasibuan [EMAIL PROTECTED] wrote: I am still new in perl. On Jan 12, 2008 9:33 PM, Sean Davis [EMAIL PROTECTED] wrote: Hi, Patrik. You should probably be using CGI.pm. It will vastly simplify what you are doing. Then, you can read any of a dozen sites on

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

2007-06-21 Thread Mike Williams
On 6/20/07, whitsey [EMAIL PROTECTED] wrote: On 6/14/07, Mumia W. [EMAIL PROTECTED] wrote: Did some tinkering, commented out that option and Add-Handler which I also thought was required and my cgi code still worked. #Options ExecCGI #AddHandler cgi-script .cgi Then I found that if I

Re: cgi-bin will not execute perl program

2007-06-14 Thread Mike Williams
On 6/14/07, Mumia W. [EMAIL PROTECTED] wrote: On 06/14/2007 02:24 AM, whitsey wrote: Mumia W. wrote: On 06/12/2007 09:38 PM, whitsey wrote: Directory /usr/local/apache2.0.54/bindist/cgi-bin AllowOverride None Options None You need Options ExecCGI or (more probably) Options

Re: Premature end of script headers

2007-06-13 Thread Mike Williams
On 6/13/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: i made changes in httpd.conf file as you mentioned , here is mine Directory E:/Program Files/Apache Software Foundation/Apache2.2/cgi- bin AllowOverride None Options None Order allow,deny Allow from all Options

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 mike , i

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 executing the same

Re: Premature end of script headers

2007-06-05 Thread Mike Williams
[EMAIL PROTECTED] wrote: Hello, i need to know the reasons for this error Premature end of script headers i checked with my http header content-type:text/html ,but i had not solved yet.. Often this happens when some error occurs in your code before you output the headers. Try putting

Re: unix top command through cgi

2006-08-04 Thread Mike Williams
On 8/4/06, Denzil Kruse [EMAIL PROTECTED] wrote: I want to see the results of a top command through my web browser, but when I try this with my cgi script: my $output = `top`; print $output; I get this error: top: Unknown terminal VT100 in $TERM Is there a way to tell top which terminal i'm

Re: pattern matching problems

2006-07-08 Thread Mike Williams
+)/) { push @words, $word unless $used{$word}; $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