Re: HTTP headers

2003-01-15 Thread Octavian Rasnita
You can use the CGI perl module to print headers, or you can print them directly like: print "Content-type: text/plain\n\n"; Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] - Original Message - From: "Philip Pawley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: T

Re: Text file format output

2003-01-15 Thread Octavian Rasnita
Hi, I haven't tested this but it should work. The only problem is that you don't need to print an end of table () before the first heading, and you need to print one after the last table (which this script doesn't print) You need to check if a certain header, is the first, and don't print a for i

execute the extern

2003-01-15 Thread Khalid . Naji
Hi, is there any way to execute the following script without using a file myfile.txt. I have tested with a variable @X whith the same content as myfile.txt ($command='prog @X' but dont work correctlly. Thanks for any suggestion KN #!/usr/local/bin/perl use IPC::Open3; my ($commande); $commande =

Re: newbie need help

2003-01-15 Thread zentara
On Wed, 15 Jan 2003 15:54:02 +0800, [EMAIL PROTECTED] (Glynn S. Condez) wrote: >i have a web form that users can input a username and password and check if >the username is valid by parsing or extracting the contents of a file, here >the web form html: I'm not sure what you are trying to do with

Re: newbie need help

2003-01-15 Thread Octavian Rasnita
You need to use the CGI script: use CGI; my $cgi = new CGI; my $username = $cgi->param('username'); my $password = $cgi->param('password'); Teddy, Teddy's Center: http://teddy.fcc.ro/ Email: [EMAIL PROTECTED] - Original Message - From: "Glynn S. Condez" <[EMAIL PROTECTED]> To: <[EMAIL PR

Re: Graphs on the fly

2003-01-15 Thread T. Murlidharan Nair
Does this work for Unix? Which module do I use for Unix ... Thanks and Cheers always!! Murli [EMAIL PROTECTED] wrote: In a message dated 1/14/2003 4:33:13 PM Eastern Standard Time, [EMAIL PROTECTED] writes: Can anybody tell me how to install GD for Active State Perl? Thanks a lot.

Re: execute the extern

2003-01-15 Thread drieux
On Wednesday, Jan 15, 2003, at 06:43 US/Pacific, [EMAIL PROTECTED] wrote: [..] #!/usr/local/bin/perl use IPC::Open3; my ($commande); $commande = 'prog ; @lignes_err = ; print "STDOUT:\n", @lignes_out, "\n"; print "STDERR:\n", @lignes_err, "\n"; p0: don't close SON_IN anything that you would

Re: Graphs on the fly

2003-01-15 Thread WilliamGunther
If your on a Unix system, you can install the GD modules very simply like you would any (check out the help files on cpan.org, and of GD itself. ("perldoc -q install" will work too)) The installation instructions I gave was for GD on a Widows ActivePerl system, because someone asked.

Retriving a file using cgi posted from a html form

2003-01-15 Thread LRMK
how do I retrieve & save files that has been posted from a Html form to my cgi script. please send a piece of example code

Re: Retriving a file using cgi posted from a html form

2003-01-15 Thread fliptop
On Wed, 15 Jan 2003 at 22:32, LRMK opined: L:how do I retrieve & save files that has been posted from a Html form to L:my cgi script. have you read 'perldoc CGI'? L:please send a piece of example code from 'perldoc CGI' (for a plain text file): $fh = $query->upload('uploaded_file');

RE: Graphs on the fly

2003-01-15 Thread James Gu
Bill, Thanks for the help. I followed your instruction pretty well. Had to create a folder named as " MSWin32-x86-multi-thread" for the command work. However the compilation of my program failed at the statement "use GD;" in the align.pm. Wondering if the installation was successful or not. W

Re: newbie need help

2003-01-15 Thread Glynn S. Condez
From: "zentara" <[EMAIL PROTECTED]> Hi it works now but why is it that it prints a lot of results and it seems that it reads the file line by line and do the output. Sorry i forgot to mention that the file contains duplicate entries of username, it something like: snip user: user1 realm:

cgi.pm generate html vs. print <

2003-01-15 Thread Hughes, Andrew
I have to say that as a relative beginner, I have really noticed that using cgi.pm to generate forms and entire web pages is a more than a little time consuming. In the interest of time, I have been using "print <

Re: cgi.pm generate html vs. print <

2003-01-15 Thread Octavian Rasnita
I haven't find any limitation when printing the HTML text directly with print To: <[EMAIL PROTECTED]> Sent: Thursday, January 16, 2003 4:11 AM Subject: cgi.pm generate html vs. pr