"Grierson, Garry (UK07)" wrote:
>
> I had pretty much exactly the same problem, if you look at the 'Security
> Suggestions Please!' thread on the beginners-cgi archive at
> http://archive.develooper.com/beginners-cgi%40perl.org/ you can see what
>
> > -Original Message-
> > From: Wagner
Gareth Londt wrote:
>
> i am using the Mail::Sendmail module and well i have it working all nicley
> and stuff but this is were it doent work the way i want it to.
> Firstly i have a text area that needs to filled in with a few email addresses,
> but when i use the regexp for this value in the t
prashan kukde wrote:
>
> "textfield" is a multiline text box in the form.
> But, when I read it in the script, the textfield
> looses the extra spaces or paragraph spaces from the
> textfield. Will it be possible to get the data as it
> is filled in the text field ??
do you mean a form element?
Gerry Jones wrote:
>
> I want to use a module I have created and stored in cgi-bin directory. It
> holds a few commonly used functions. I remember having done this before, but
> can't remember how I got it to work, and my error log says the module did not
> return a true value. Somebody please sa
Carl Franks wrote:
>
> Could someone advise me on a program to use.
> I want to use a command-line program to resize .jpegs, and specify
> compression.
> I've not found anything suitable so far.
> The GD module looks promising, but I can't find useful documentation for it.
have you looked into i
"Mark Jervis Sr." wrote:
>
> I am trying to make a form where user input gets output back to another
> html form.
>
> My script is not erroring out so my log files is clean. But I am missing
> something in my script and have looked for the answers through google but I
> must be typeing in the wr
Kris G Findlay wrote:
>
> i would like to store the documents in a database format as to move to
> mysql at a later date.
>
> to cut a long story short.
> i was looking for some advice on implemeting this eg.
>
> best db format to use. - ( both for speed and easy transferel to mysql )
just won
Wagner Garcia Campagner wrote:
>
> Hi,
> I have a script that dysplay a radio button with names of diferent scripts
> on my server...
> (script1.pl; script2.pl; script3.pl,..)
>
> When a user selects a script and click on the submit button i would like to
> redirect to the selected script bu
lakshmi nrusimhan wrote:
> Consider the following lines:
>
> Apple
> Mango
> Banana
> Orange
>
> I want to replace line 1, line 2 i.e. (Apple, Mango)
> with hello1\nhello2\nhello3\n.
>
> The output should be:
> hello1
> hello2
> hello3
> Banana
> Orange
>
> I tried something like this:
> $t="
[reply cc'd to list]
lakshmi nrusimhan wrote:
> Sorry here
> $t="Apple\nMango\n";
> Actually what i mentioned in the output is what i want
> the output to be. I wanna replace
> Apple
> Mango
> by
> some three lines.
> The sequence Apple, Mango shd. be there for
> replacement and it won't
[EMAIL PROTECTED] wrote:
> Hi to All,
> I' d like to know if it' s possible to count the exact number of files
> inside a certain directory, using a way better than this:
>
> use CGI;
>
> my $q = new CGI;
> my $dir = 'C:\...\temp';
> my $num_files = -1;
>
> print $q->header("text/html");
>
>
Alan F Larimer Jr wrote:
> I am using a free webhosting server that allows CGI scripts, but does not allow
>access to the sendmail program. This, with my current knowledge, limits my form
>actions. I would like to create a form that e-mails the data to a given address, but
>also produces a "
Kris Seraphine wrote:
> I want to use one script with multiple functions to
> process a variety of forms/information.
>
> in my script I declare the action variable and give it
> instructions:
>
> # get the action
> my $ACTION = $Q->param('action') || "";
> if ($ACTION eq "check_password")
is
Steven Vargas wrote:
> Does someone know of a good way to count total records for the week? I can
> get total for day and month, but the week totals fail, returning 0 (for some
> reason they work when I execute the program from the shell). I've shown
> below snippets of the code and subroutine, s
[reply cc'd to list]
Kris Seraphine wrote:
> yes it is.
unless you have it spelled wrong in the form, i don't see why it
shouldn't be working.
try doing this:
use CGI;
use Data::Dumper;
my $Q = new CGI;
my $ACTION = $Q->param('action') || '';
print "ACTION: ", Dumper($ACTION);
and see what
Connie Chan wrote:
> Since we know this : $string =~ s/([a-fA-F0-9][a-fA-F0-9])/pack ("C",
> hex($1))/eg;
>
> is a statement which can converting back the "real string" from
> a form field, but, could anybody tell how to convert the "real string"
> to the "long long" string ??
>
> Besides, any
Boex,Matthew W. wrote:
> i am getting this error message in my apache error_log when i try to upload
> a file...
>
> CGI.pm: Server closed socket during multipart read (client aborted?)
>
> i do not abort the upload. i get this error as soon as i hit my "upload"
> button. weird, i can upload
Polikarpov Cyrill wrote:
> I have a question - what software is the better for debugin perl-scripts to your
>opinion?
> I can't find a prog for myself, so ...
perl comes with a built-in debugger:
http://www.ddj.com/documents/s=1498/ddj0108pl/
btw: a search for 'perl debugger' on google.co
Brian N. Smith wrote:
> When save to a file, I have a bunch of "^M" characters .. I wrote a little
> strip to try to get rid of them, but of course, I tried the ^M instead of
> whatever I should have had done ... any help?
>
> #!/usr/bin/perl
>
> open (myFile, " open (myOut, ">out_file");
> whi
huseyin kuyumcuoglu wrote:
> I want to write a program to access whois servers to collect information
> about domains. That is; the e-mail addresss of the owner of a site, how
> many sites owned by him, creation and conspiration dates of the site
> etc. Any help is appreciated. Thanx.
http:/
Greg Jetter wrote:
> A Perl script that creates a web page renders correctly in Netscape ,
> Mosilla , Opera and Konqueror . It produces a error when rendered in Internet
> Explorer . In Explore it generates either a "you don't have premissions to
> view this page" or it renders it as p
Rob Cottingham wrote:
> I'm trying to use a parameter passed from a CGI form as the basis of a
> filename:
>
>my $file_location = "/home2/samuel-c/HTML/alex/urltest/";
>my $filename=param('category');
>my $fileid=$file_location.'urls_'.$filename;
>
>open(ULL, ">>$fileid") || die
Camilo Gonzalez wrote:
> Anyone know of a module or method that will run a Perl script on a given
> time each day? I need to FTP a file from one site to another daily and I was
> hoping to automate it.
can you write a cron job to do it?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
Thomas Smidt wrote:
> I'm a very new beginner to both Perl and Linux, but to get a specific program
> to run (twiki.org) I need to install the Net::STMP Perl Module on Linux 7.1.
> I have downloaded the .tar.gz file but need either a good descriptive web site
> or someone to walk me throu
you out.
i think the reason you're having this problem is because
non-alphanumeric characters passed in an html form are encoded. so if
you were to type
cgi-bin/index.cgi?name=fliptop&comment=yikes!!
in your browser, when the key-value pairs make it to your script the
'yikes!!
Curtis, Jonathan wrote:
> sub have_we_met{
> open DATA, "bigdawgs.txt";
> @data = ;
> close DATA;
> $
> $found = 0;
>
> for ($i = 0; $i <= $#data; $i++){
> @cheese = split /,/, $data[$i];
> if ($cheese[0] eq $ntlogin) {
> $found=
Argenis Perez wrote:
> What modulo recomended for send emails that i can attachment a file.
try mime::lite. it's easy to use and attachments are no problem.
http://search.cpan.org/search?dist=MIME-Lite
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
Argenis Perez wrote:
> this statement
> ($sec,$min,$hour,$mon,$year,$wday,$yday,$isdst) = localtime();
> i obtain the date of today, but i need the $day,$mon,$year of yesterday
look into the date::calc module. it's very handy for many date
calculations.
http://search.cpan.org/search?dist=Dat
Al Hospers wrote:
> I need a regular expression that will only allow a variable to contain
> digits. it should fail if there is anything else in the variable:
> dollar signs, commas, dots, alphas, spaces, quotes etc. I thought the
> following would work, I am obviously incorrect.
>
> return 1 u
[reply post not cc'd to modperl list]
GsuLinuX wrote:
> How can i understand if the date entered by the client is weekend or no?
> Are there some database specificied for that?
http://search.cpan.org/search?dist=Date-Calc
there's a function in there called Day_of_Week(), which will evaluate
Webmaster wrote:
> I'll looking for a way to get the image size (jpg or gif). I had a look around and
>found some information on it. However, none of these page provide an example well
>enough to get an idea how to use it.
http://search.cpan.org/search?dist=Image-Size
--
To unsubscribe, e
Frank J. Schmuck wrote:
> I was wondering what happened to fliptop's cgi tutorial? I moved in the
> middle of it and can no longer find a working URL.
hi frank
sorry, but when i changed my hosting i didn't move the tutorial. i
still have it; however i am working on a new version that is upd
Carl Franks wrote:
> Does anyone know what header to send for WML pages (WAP), and how to send it
> with CGI ?
there was an article on this very subject in tpj about a year ago.
http://www.samag.com/documents/s=1131/sam05040004/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
Jason LaMar wrote:
> Now, here's what I want to do. Extract image HTML code in this format ...
>
>
>
> so that only the Image Description is left. Basically, I want to delete
> all the rest of the code but leave the "alt" tag information intact.
consider using html::parser. it may be a
David Gilden wrote:
>
> $key ="Departure date";
>
> $key =~ s/([\w\w+])/\u$1/;
>
>
> ---> Desired result:
>
> Departure Date
>
> What is wrong the above regrex?
it's probably easier to use the ucfirst() function:
my $key ="Departure date";
my @result = map { ucfirst } split /\s+/, $key;
Donn wrote:
> this question seems to be unrelated to perl but merely sql.
that's right. you'd probably be better off posting to a more
appropriate forum. this page has several for oracle:
http://www.faqs.org/faqs/databases/oracle-faq/
> can somebody pls. help me with sql on how
> to page
Robert Becker wrote:
> I have a Perl CGI script in the cgi-bin directory that works just fine. I
> have copied it to a file in the same directory with a different name, but
> everything else is the same - The text is the same, the permissions are
> the same. However, if I change the line in the c
Rob Roudebush wrote:
> Does anyone know how to upload a file to your site?
perldoc CGI
and search for the description of the upload() method.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Octavian Rasnita wrote:
> I saw a question about how to make a Perl script for uploading a file and I
> didn't see any answer for it.
> I am also interested in this thing.
>
> Could somebody give us some hints?
> Or, give us a source for a Perl script for uploading a file.
CGI.pm has a method
GsuLinuX wrote:
> How can i convert
>
> 1. " $a = 29.7548925547539 > $a = 29.75 "
i'd use printf:
my $a = 29.7548925547539;
printf "%5.2f\n", $a; # this prints 29.75
> 2. " $b = 2345342 --> $b = 2,345,342"
look into numbe
Bruce Ambraal wrote:
> Hi All
> How possible is this.?
very.
> This a good Idea?
personally, i'd use postgresql (since it's free).
> I am currently defining a 6 month project deploying our current Oracle
> financial system to the WEB using CGI. Can anyone point out current success
> sto
Brice, Charles wrote:
> my $dbh = DBI->connect("dbi:Oracle:aux","ceb","ceb");
>
> my $cursor = $dbh->prepare("select * from tab") || die "PREPARE
> error $DBI::errstr\n";
what error is it putting in your error log?
you could try setting DBI's trace le
Troy May wrote:
> Hello, this guy finally emailed his script to me. The problem he is having
> is with "$year". Here's the dating part of the code:
>
> ---
> $date = `/bin/date`;
> chop($date);
has this guy considered using Date::Calc?
http://search.cpan.
Maleit Nen wrote:
>
> First excuse my english please, i am tring to get data from mysql with
> open(ident,"|mysql...
> and put the result in a var $salida
>
> This is the script:
>
> $comandosql="use mataro;select password from mataronins where
> identificador=\"$identificador\";";
> open (T
W P wrote:
> i'm making my own (hopefully informative) error pages for my site. i have defined a
>subroutine pr_error which takes the error(s) as input and outputs an HTML page.
> how can i make it go to the end of the script ( __END__ ) on those errors (which
>will not necessarily be fatal).
Octavian Rasnita wrote:
> Why if I use:
>
> print $q->header;
> print$q->start_multipart_form;
>
> the result does not contain the result of the first line, but only the > line?
from perldoc CGI:
header() returns the Content-type: header. You can
provide your own MIME type if you choo
Teresa Raymond wrote:
>> Fliptop had a guestbook one - I'd appreciate the url also b/c I lost
>> all of my links when my logic board fried. He may be on the
>> beginner's list though?
http://www.peacecomputers.com/addressbook_toot-toc.html
if i ever get a
Sir Douglas Cook wrote:
> Having said that I am asking the list can you
> have a (item/object) from a popup menu behave as
> and submit button using CGI/Perl?
>
> I know from using www.tucows.com to download
> I see a fine example of this, when selecting the
> nearest download server. Althou
Sir Douglas Cook wrote:
> Question:
> I am wondering how to test if my PWS is UP?
> If (http://65.93.27.6/MyHomepageOnSympaticoServer/) {
i've never used it, but net::ping looks like a good candidate:
http://search.cpan.org/search?dist=Net-Ping
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
Teresa Raymond wrote:
>> Delivered-To: [EMAIL PROTECTED]
>> X-Sender: [EMAIL PROTECTED]@mail.portland.co.uk
>> Date: Fri, 8 Mar 2002 17:15:04 -0600
>> To: Teresa Raymond <[EMAIL PROTECTED]>
>> From: Teresa Raymond <[EMAIL PROTECTED]>
>> Subject: Re: survey to excel
>>
>> I have only worked with f
Brian Bratcher wrote:
> I am trying to setup a cutom perl script to access Mysql databases
> through HTTP.
> So far I can connect and show all information.
> this is the code I used to showall
>
> $sth=$dbh=DBI->connect("DBI:mysql:pizza","root","");
> $sth->prepare("select * from Customer");
> $
Scot Robnett wrote:
> Hey y'all, I got over my brain cramp and thought I'd share with the group in
> case it helps anyone trying to do something similar. I was making it way too
> complicated. All I needed was:
>
> if($email !~ /\w+@\w+\.\w{2,4}/)
> {
> # error stuff here
> }
have you conside
Scot Robnett wrote:
> I don't think you can check for the existence of an e-mail address without
> actually attempting to send mail to it. You can ping or traceroute a domain,
> but only the mail server associated with it knows if the username is valid
> or not. If this is wrong, somebody with in
Tiberiy Virtgaym wrote:
> Can somebody help me with code of how to send mail to users as an attachement from a
>perl program, a comma delimited file.
mime::lite may be a good start:
http://search.cpan.org/search?dist=MIME-Lite
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional com
James Woods wrote:
> That leading space is causing me headaches. when trying to do a foreach
> on the array, after submitting the form.
instead of packing a huge array into one form var like this:
why not pass it like this (in your html):
etc...
then you can process it as such:
@drawH
James Kelty wrote:
> I have written the below script for file uploading, but the script seems to
> be a little fickle.
> Very small text files upload with no problem at all, but slightly larger
> (76k) Word docs and Excel spread sheets
> seem to make the script time out. I can see the /tmp/CGIxxx
James Woods wrote:
> I used the following code to write out all my hidden fields. It didn't
> get rid of the newline or caridge return characters at the end though.
>
> foreach my $item (@Draw){
> my $counter = 0;
> my $daValue = $item;
> chomp($daValue);
> print "\n";
> $counter++;
> }
>
> I
James Woods wrote:
> Here is the raw text from my text file (the original source). It's
> created on a Windows machine (??in case that makes a difference with
> linefeeds vs. carridge returns??) then put on an apache web server.
>
> f|Gimlis Axe|p|fellowship/large/14gimlisbattleaxe.html
> f|H
Boex,Matthew W. wrote:
> is it preferred to have a cgi print the inital .html template page, or
> should i put it in the html dir, and point the FORM tag to the cgi. i know
> putting in the html dir will speed things up, no perl process to spawn. i
> will be using fast cgi in the near future...
James Woods wrote:
> Putting that code in place of the chomp code that was suggested earlier
> produced the same result.
i just tried this test case:
# one with blank spaces, two with a tab,
# three with a \n, four with several \n's
my @Data = ('one ', 'two ', 'three
', 'four
');
fo
Marcelo Camperi wrote:
> Can't locate LWP/UserAgent.pm in @INC...
>
> I assume this is another perl module that I do not have. Could someone
> please tell me where to find it? (I looked into User and Agent in cpan,
> but they do not seem to be the ones...)
it's part of the libwww-perl packag
Tim Fletcher wrote:
> does anyone know how to access an excel sheet?
http://search.cpan.org/search?dist=Spreadsheet-ParseExcel
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
James Woods wrote:
> The above code works great when the @Draw is populated from my text file
> (which happens "pre-submission"). However, when the form is submitted,
> I only get the first record of @Draw.
if your passing all the data in one , retrieving it with
@Data = $cgi->param('drawHi
Rob Roudebush wrote:
> Okay my script takes names from a fom and puts them into an array - then later I
>need to match a $variable (one of the names) against that array and take that
>specific element out of the array. I figure there is probably an easy function to do
>this?
> @array=(john, l
Johnson, Shaunn wrote:
> --have explorer 5 ... but i have no idea
> what DCOM is ... i'll have to look
> into whatever that is ...
>
> --aren't there any alternatives?
do you have an old 486 that you're not using?
an alternative is to convert it to a linux box, run all your server
software (
Matthew Harrison wrote:
> What is the syntax to redirect the user to another page? i need to be able
> to include a query string in the redirect, plus it needs to be immediate
> and automatic.
perldoc -q redirect
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
[reply cc'd to list]
Matthew Harrison wrote:
> that doesn't really answer the question as it doesn't really clearly show
> what the syntax should be and how it is used.
>
> On Thursday 21 Mar 2002 12:38 pm, you wrote:
>
>>Matthew Harrison wrote:
>>
>>>What is the syntax to redirect the user t
Rob Roudebush wrote:
> I have created basic forms using CGI.pm and now I'm interested in using Apache
>mod_perl to speed things up and use associated apache modules. Question: Can I
>continue to program using regular CGI, using params etc. or does mod_perl require me
>to program differently?
Octavian Rasnita wrote:
> When I upload a file from my computer to a server, I choose a local file, I
> open it, then I print its content into another file.
> But if I want to upload a file from my local
> /htdocs/ folder into the /images/ folder on the server, how could Perl know
> that the spec
Brian Smith wrote:
> In my CGI, A user creates a password (p@$$w0rd), but i do not want it to be
> clear text, so I was wondering if Perl was able to encrypt that to a MD5
> encryption. It will be stored in the /etc/shadow file, so I would want the
> "standard" md5.
http://search.cpan.org/sear
Rafael Cotta wrote:
> I need a sobroutine to append a string passed as parameter to a file. And
> this sobroutine has to lock and unlock the file, and wait if the file is
> locked when it tries to write.
>
> This may be a very simple thing. Could someone give me a sample?
have you tried the fa
Bruce Ambraal wrote:
> This is where I am at:
> A script that does not really work
>
> #!/usr/bin/perl -w
> use strict;
>
> open(A_file,"
> my @ary = ;
you should read the faq about why this is a bad idea.
http://www.perldoc.com/perl5.6/pod/perlfaq5.html#How-can-I-read-in-an-entire-file-all
maxa wrote:
> I have create web page with extension .cgi and connect it with Microsoft access
>database.
>
> 1. Can I use my project on server where is supported .cgi and mySQL but nothing
>about Microsoft access database?
sure - provided your data is in the mysql db.
> 2.how can I transfor
Emmanuel Jaeckert wrote:
> I want to set up a perl script to allow client to (upload|transfer) files to
> my server.
> client don't know file names but it's always of the form FD???AA.FIC where
> AA may be given by the client on an input box
> I can not be sure of the number of files so i really
Octavian Rasnita wrote:
> I want to comment more lines but they are too many to put a # in front of
> each one.
> Please tell me how could I comment more lines by marking only the beginning
> and the end of the text.
perldoc -q comment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additi
Emmanuel Jaeckert wrote:
> thank you for your ans, but as far as i understand (maybe i don't) cgis's
> upload() method only work for one file based on the user choice after a
> manual browse...
>
> I want to permit user to enter any text in an input box and get all files
> eg : the user type "13
fliptop wrote:
> rather something to do with the http protocol. when i want to pass
> multiple files, i provide multiple boxes.
sorry, that should be .
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Andrew Rosolino wrote:
> Ok say I have a file called news.txt and it included
> this
>
> ---
> Andrew|Tuesday|Blueberry's
> Alex|Friday|Apple
> Alyssa|Wednesday|Strawberry
> ---
>
> Now, how can I have it so that when I call
>
>
Troy May wrote:
> What's the easiest way to get yesterday's date from localtime? I need it in
> this format: (for today) "070402".
use Date::Calc qw{ Today Add_Delta_Days };
my @date = Add_Delta_Days(Today, -1);
printf "Yesterday: %02u%02u%02u",
$date[2], $date[1], substr($date[0], -2
[EMAIL PROTECTED] wrote:
>
> foreach(my $ref = $sth->fetchrow_hashref()) {
> print qq($ref->{'pager'});
> use Net::SMTP;
> my $smtp = Net::SMTP->new('mailhost', Hello => 'hawkeye.dmtn.com', Debug
> => 1,);
> $smtp->mail ( $ref ); # mail($ref);#->{'pager'});
i don't think you w
Four Hewes wrote:
> My criteria:
>
> I. Account structure I want:
> unique user accounts
> users are members of groups (a la Unix)
> use of HTTP's ".passwd" is OK
>
> II. Platform I'd use:
> OS: Win, Unix, or Linux
> Server: Apache or IIS
> Dev.: MacPerl5
>
> III. Security of log-in:
> secure
Pedro Santos wrote:
> I'm trying to build a database where users can send a description and an
> image to the database. Whenever I access the database trought my a perl
> script my browser should show me the description and the image.
> For the description I can do this without any proble
Daniel Falkenberg wrote:
> I am just playing around with forms at the moment. What I want to do is
> have user enter data into form fiels then I want to validate that
> entered date. So far I can do things as basic as validating if fields
> contain characters and so forth. But what I want to d
Rob Roudebush wrote:
> Please help - I need to password protect my form by COB today. I initially had just
>a password field at the bottom to authenticate prior to clicking submit. Is there
>anything better - say something that launches when a link is selected to the form??
are you running
Andrew Rosolino wrote:
> $query = "INSERT INTO browse (username, password)
> VALUES ('Kittyf', '5521f') LIMIT 0, 30 ";
does limit/offset apply to insert statements? see this page for correct
insert syntax:
http://www.mysql.com/doc/I/N/INSERT.html
--
To unsubscribe, e-mail: [EMAIL PROTECTE
octavian Rasnita wrote:
> Is it possible to use a text field for uploading files, or I need to use
> only a file field?
> I have some reasons for wanting only a text file.
use an in your html. to restrict
file types, examine the uploaded file's content type:
use CGI;
my $cgi = new CGI;
my
Bill Lyles wrote:
> href="file://C:\Program Files\Common Files\Microsoft Shared\Stationery\">
> As I am somewhat new to perl
>
> can someone tell me what this means
>
> $header = qq~
>
> I understand the header but what is the qq~ for?
perldoc -f qq
btw, it's considered bad form to send htm
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
[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
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
Alex Read wrote:
> I have an html page that when I press the submit button the cgi script
> runs a shell script. I am having trouble because the html page hangs
> until the shell script has finished, i.e. the shell script process is
> not running in the background. I have tried the following;
>
Connie Chan wrote:
> Hi all, would anybody know how to handle a form with
> about 6000 around data field ? and if there any max size
> for data submit through CGI ?
> Anyway, I don't want to use cgi.pm.
why not?
you can easily manipulate $CGI::POST_MAX to allow practically any size
of data to
[EMAIL PROTECTED] wrote:
> I was wondering if a HTML form, and PERL, can be used so that visitors
> to my web site can upload pictural files (ala FTP) to me?
if you're using cgi.pm, you don't need to use ftp:
use MIME::Lite;
my %email = (
From => 'whomever',
To => '[EMAIL
fliptop wrote:
> [EMAIL PROTECTED] wrote:
>
> $msg->attach(
> Type => 'image/jpeg', # or whatever
> FH => $cgi->upload('Filename')
> );
i didn't test this, but you could probably do it instead:
$msg->attach(
Type => $c
Todd Wade wrote:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> This will dump the file back to the user inside the browser window. Putting
> the data in a file or attaching it to an email is left as an exercise to the
> poster.
wh
Kamali Muthukrishnan wrote:
> Hi guys :
> I have serial numbers with a pattern : 3 numbers followed by 2 capital letters
>followed by 3 numbers.
> To validate this -
> if ($serial !~ m/[0-9]{3}[A-Z]{2}[0-9]{3} )
> { # display error ; }
> I get a syntax error.
i think you're missing a
Andrew Rosolino wrote:
> Say I have an array that contains!
>
> @array = qw( cool cool dog dog dog );
>
> Now I want to sum that up, so that the array only has
> 1 COOL and 1 DOG, so it would contain!
>
> @array = qw( cool dog );
my %array;
map { $array{$_}++ } @array;
my @unique = keys %a
Bob Showalter wrote:
>
> They are the same as far as the effect on %array. But you
> shouldn't use map() in a void context, as it constructs a
> result list which is then thrown away. So your iterative
> approach is better.
sorry, i should have done:
my %a = map { $_ => 1 } @a;
my @unique
drieux wrote:
>
> if you are trying to make sure that you have packed up the
> message correctly before pushing it into the mess - then
> you might want to do something like
>
> my $msg = "select distinct X from Y where P=\'$pVal\'";
>
> so that we can verify that the SQL is 'kosher' and w
Lance Prais wrote:
> I have properly set up cgi-bin directory on my solaris box using Iplanet as
> my web server, placed the scripts in the cgi-bin folder and mapped the path
> in Iplanet but I am getting the following error when I try to execute.
>
> trying to POST /cgi-bin/ts_ticket_submit.cgi
1 - 100 of 337 matches
Mail list logo