Re: Counting the number of form fields returned with information

2002-04-18 Thread eric-sourceforge
On Wed, 17 Apr 2002 [EMAIL PROTECTED] wrote: > What's the simplest way to make sure that all 10 fields have been > selected? This seems pretty straight-forward: param() returns a list of all form elements - even the form elements without values. To check that each field contains a value. #! /

proxy server that listens on 2 ports

2002-04-18 Thread Conan Chai
hi all, i'm writing a simple proxy server that listens on 2 ports, 1 for browser and another for admin client. the admin client is for administrative tasks such as adding new users and reseting downloaded bytes. i'm currently using the IO::Select module but this mode is blocking I/O, so i inten

Verifying a remote file

2002-04-18 Thread Octavian Rasnita
Hi all, I want to verify if the file http://www.domain.com/xxx/xxx.zip which is on another site (not mine) exists. Please tell me what would be the simplest solution to test this, and how could I find out the size of this file. Thanks. Teddy, [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EM

Re: Verifying a remote file

2002-04-18 Thread fliptop
Octavian Rasnita wrote: > I want to verify if the file http://www.domain.com/xxx/xxx.zip which is on > another site (not mine) exists. > Please tell me what would be the simplest solution to test this, and how > could I find out the size of this file. lwp::simple would probably be your best bet

Re: Counting the number of form fields returned with information

2002-04-18 Thread eric-sourceforge
On Wed, 17 Apr 2002 [EMAIL PROTECTED] wrote: > What's the simplest way to make sure that all 10 fields have been > selected? I was hoping that... A slightly shorter, more elegant solution: #! /usr/bin/perl -w use CGI qw(:standard); use vars qw(%form_fields @missing); %form_fields = (

Problems to execute a command at W2K.

2002-04-18 Thread Sp0oKeR
I´m using a perl + IIS to do my summary of inbound fax. I need to execute one command, that it´s from my fax server packet and I didn´t get. If a use dir , and other basics command, I got success, but the command that I need, I don´t get. How can I solve this? What user should I give pe

Re: Counting the number of form fields returned with information

2002-04-18 Thread fliptop
[EMAIL PROTECTED] wrote: > On Wed, 17 Apr 2002 [EMAIL PROTECTED] wrote: > > sub missing_params { > foreach (keys %form_fields) { > next if defined param($_); > push @missing,$form_fields{$_}; > } > return scalar(@missing); > } what if a value is the null string? you need to ch

Problem to execute command at W2K.

2002-04-18 Thread Rodrigo Ribeiro Montoro
I´m using a perl + IIS to do my summary of inbound fax. I need to execute one command, that it´s from my fax server packet and I didn´t get. If a use dir , and other basics command, I got success, but the command that I need, I don´t get. How can I solve this? What user should I give pe

graphs and charts question

2002-04-18 Thread Johnson, Shaunn
Howdy: I'm running Perl 5.6.1 on RedHat Linux 2.4.7. Also, running Postgres 7.1.3. I'd like to generate a graph / chart of data from my database. For example, in a perl script, I'm doing a distinct count of a column in a table and get a list of stuff back. I want to take that data and maybe pu

Re: graphs and charts question

2002-04-18 Thread fliptop
Johnson, Shaunn wrote: > I'd like to generate a graph / chart of data > from my database. For example, in a perl > script, I'm doing a distinct count of a column > in a table and get a list of stuff back. > I want to take that data and maybe put it into > an array. From there, I'd like to figur

a webBased Kill File for a webNews Reader

2002-04-18 Thread drieux
volks, here is the problem - myFascistHouseMate would like to do more with some perl implemented webBased news reader - and in particular would like to be able to do kill files - I have looked at the CPAN , but my search skills may not have peeked in the right place - is there something that has

Re: Counting the number of form fields returned with information

2002-04-18 Thread Teresa Raymond
#no checkboxes# my %params = $q->Vars; foreach my $i (keys %params) {if ($params{$i} eq "" || $params{$i} eq " ") {print <<"PrintTag"; Error! Alert! I'm sorry but all fields need to be filled out except the check boxes. Please push the back button on your browser and try again. PrintT

Re: graphs and charts question

2002-04-18 Thread ChaoZ InferNo
how come our piece of work seems so familiar to my piece of assignment? 8) - #!/usr/bin/perl -w use strict; use CGI; use GD::Graph::bars; my $q = new CGI; my $graph = new GD::Graph::bars(400, 300); #graph type and size my @data = ( # your database array [qw(Mon Tue