Re: newbie question about print header

2006-03-08 Thread Bill Stephenson

From the CGI.pm docs...

Most browsers will not cache the output from CGI scripts. Every time 
the browser reloads the page, the script is invoked anew. You can 
change this behavior with the -expires parameter. When you specify an 
absolute or relative expiration interval with this parameter, some 
browsers and proxy servers will cache the script's output until the 
indicated expiration date. The following forms are all valid for the 
-expires field:


+30s  30 seconds from now
+10m  ten minutes from now
+1h   one hour from now
-1d   yesterday (i.e. "ASAP!")
now   immediately
+3M   in three months
+10y  in ten years time
Thursday, 25-Apr-1999 00:40:33 GMT  at the indicated time & date

So, you'd want this...


print $Q->header(-expires=>'-1d');


Kindest Regards,

--
Bill Stephenson


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




newbie question about print header

2006-03-08 Thread Mary Anderson

I want to know how to tell my application not to cache.

Kevin Meltzer's book and Lincoln Stein's book neatly drop that ball between
them.

Can I use the cgi.pm header routine and hand it a variable?

   print header (-no-cache=> 1) ..

there are several variants of this --- using -nph->1 

its pretty confusing.  I am not putting the straight CGI into my file and
these guys are giving me bits and pieces of the two ways to do it.

Thanks
Mary Anderson

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




RE: Newbie question

2004-03-01 Thread Bob Showalter
Shalabh wrote:
> hi all,

Hi. Use a better subject line.

>i am searching from a tab delimited text file and it is
> returning the line with tabs which contains the search string into an
> array named @found_array, now i want to display it on an html page in
> a predefined format and for that i have to split it with tab as the
> delimiting character. any idea for doing this as i have tried split
> function but i think it doesnt work on arrays. any help is
> appreciated. Thanks in advance the code is as follows
> #!/usr/bin/perl -w

Always 'use strict;'

> use CGI;
> use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
> $query = new CGI;
> print "Content-type: text/html\r\n\r\n";
> print $query->start_html(-title=>  "new",
>  -bgcolor=>'#DFD2B3',
>  );
> $keyword=$query->param('s1');
> chomp($keyword);

Why?

> $keyword =~ s/([~;<>\*\|`&\$!#\(\)\[\]\{\}:'"\.\/])//g;

Don't need the capturing parens. Also, lots of those chars don't need to be
escaped inside a character class.

> open (IN, "< pdata") or die ("Cannot open database!");
> @found_array = ();
> while ($parray=)
> {
> @found_array = (@found_array,grep (/$keyword/i , $parray));

grep is unecessary here, since you're only operating on one line at a time.

This can be simplified to:

   push @found_array, $parray if $parray =~ /$keyword/oi;

(/o can be added since keyword doesn't change once it's been assigned)

> }
> print "You Queried for $keyword\n"; 
> print @found_array;

If you want to output the @found_array as an HTML table, you can do
something like this:

   print $query->table(
   $query->Tr([
   map $query->td([split /\t/]), @found_array
   ]),
   );

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Newbie question

2004-03-01 Thread Shalabh
hi all,
   i am searching from a tab delimited text file and it is returning
the line with tabs which contains the search string into an array named
@found_array, now i want to display it on an html page in a predefined
format and for that i have to split it with tab as the delimiting
character. any idea for doing this as i have tried split function but i
think it doesnt work on arrays. any help is appreciated. Thanks in advance
the code is as follows
#!/usr/bin/perl -w
use CGI;
use CGI::Carp qw(fatalsToBrowser warningsToBrowser);
$query = new CGI;
print "Content-type: text/html\r\n\r\n";
print $query->start_html(-title=>  "new",
 -bgcolor=>'#DFD2B3',
 );
$keyword=$query->param('s1');
chomp($keyword);
$keyword =~ s/([~;<>\*\|`&\$!#\(\)\[\]\{\}:'"\.\/])//g;
open (IN, "< pdata") or die ("Cannot open database!");
@found_array = ();
while ($parray=)
{
@found_array = (@found_array,grep (/$keyword/i , $parray));
}
print "You Queried for $keyword\n";
print @found_array;

*
Shalabh Bhatnagar 
Senior Research Fellow
Information Superhighway Centre (ISC)
Indian Institute of Technology 
Roorkee 
Uttaranchal - 247 667
India

 Life is difficult, it is not supposed to be easy !

*


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 




Re: newbie question - re: form validation

2003-06-01 Thread caven
Hi, Marjie
You may find a lot of javascript functions to help you go through this
problem.
BTW, why not use perl+template model, which makes eaiser to use javascirpt
in your page.


Caven , Made In China



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: newbie question - re: form validation ?JUNK MAIL?

2003-05-30 Thread ted . weston
#*** NON-TESTED CODE ***
# RUN AT YOUR OWN RISK :)

use Time::Local;

if ($in{'timestartPM'}) { # make a radio button set where either AM or PM is selected
$in{'timestarthour'}+=12; }
if ($in{'timeendPM'}) {
$in{'timeendhour'}+=12; }

#you'll have to do some error-checking for some of the other variables I've added 
below.

$timestart = timelocal(0,$in{'timestartminute'},$in{'timestarthour'},
$in{'timestartdayofmonth'},$in{'timestartmonth'},$in{'timestartyear'});
$timeend = timelocal((0,$in{'timeendminute'},$in{'timeendhour'},
$in{'timeenddayofmonth'},$in{'timeendmonth'},$in{'timeendyear'});

unless ($timestart < $timeend) { # can't have a zero-minute meeting
# display error here 
}

# I'm sure you've got the rest.
---
.ted




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 6:31 PM
To: [EMAIL PROTECTED]
Subject: newbie question - re: form validation ?JUNK MAIL?


Hi. I'm a newbie: both to this news group and to land of Perl/cgi :o)   I'd 
appreciate getting some help with a form validation script!

I'm working on a conference room reservation form.  The html form has fields for name, 
title of meeting, day/month/year, start time and end time. My current problem is the 
date validation - I need it to not only check for whether there has not been a 
selection made, but also whether the start time is => end time and end time <= start 
time, returning errors in any of these cases.

My form fields for time start and time end are selection boxes, both with the am/pm 
designation included with the numeric time - i.e.6:00 am through 6:00pm (in half hour 
increments). The problem is when the start time is =< 12:30 pm and the end time 
selected is =>1pm -- if this selection is made, the .cgi sees the end time as less 
than the start time and returns an error. 

If I change the selection box listing to military time, I can get the script to work, 
but I don't like using that format (and I think most users would agree). What code can 
I use to make the .cgi recognize the difference in am/pm using the standard time 
format? 

Thanks,
Marjie

Here's is the portion of my .cgi showing the code for the time field(s) validation:


 elsif ($in{'timestart'} eq "Select one:") {
 print "\n";

 print "Oops! You forget to fill in the `Time Start' field.\n";

 print "Use the back button to return to the form\n";

 print "and complete the info needed. Thank 
you!";

 }

 elsif ($in{'timeend'} eq "Select one:") {

 print "\n";

 print "Oops! You forget to fill in the `Time End' field.\n";

 print "Use the back button to return to the form\n";

# print "and complete the info needed. Thank 
you!";

 } 




if ($in{'timestart'} >= $in{'timeend'} ) {

print "\n";

print "Oops!\n";

print "Your `Time Start and Time End' *are in conflict* 
\n"; 

print "Please use the back button to return to the\n"; 

print "reservation form, and reselect your \n";

print "start or end time.\n";

print "Thank you!";

} 



else {

--

FYI-After this portion of the code, the .cgi is to open the .txt database and check 
for any duplicate entry. If none found, it writes; if duplicate date found, it should 
return another error. But haven't gotten that far yet!

Thanks in advance for help correcting/completing this code!

Marjie






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



newbie question - re: form validation

2003-05-30 Thread mst_wake
Hi. I'm a newbie: both to this news group and to land of Perl/cgi :o)   I'd 
appreciate getting some help with a form validation script!

I'm working on a conference room reservation form.  The html form has fields for name, 
title of meeting, day/month/year, start time and end time. My current problem is the 
date validation - I need it to not only check for whether there has not been a 
selection made, but also whether the start time is => end time and end time <= start 
time, returning errors in any of these cases.

My form fields for time start and time end are selection boxes, both with the am/pm 
designation included with the numeric time - i.e.6:00 am through 6:00pm (in half hour 
increments). The problem is when the start time is =< 12:30 pm and the end time 
selected is =>1pm -- if this selection is made, the .cgi sees the end time as less 
than the start time and returns an error. 

If I change the selection box listing to military time, I can get the script to work, 
but I don't like using that format (and I think most users would agree). What code can 
I use to make the .cgi recognize the difference in am/pm using the standard time 
format? 

Thanks,
Marjie

Here's is the portion of my .cgi showing the code for the time field(s) validation:


 elsif ($in{'timestart'} eq "Select one:") {
 print "\n";

 print "Oops! You forget to fill in the `Time Start' field.\n";

 print "Use the back button to return to the form\n";

 print "and complete the info needed. Thank 
you!";

 }

 elsif ($in{'timeend'} eq "Select one:") {

 print "\n";

 print "Oops! You forget to fill in the `Time End' field.\n";

 print "Use the back button to return to the form\n";

# print "and complete the info needed. Thank 
you!";

 } 




if ($in{'timestart'} >= $in{'timeend'} ) {

print "\n";

print "Oops!\n";

print "Your `Time Start and Time End' *are in conflict* 
\n"; 

print "Please use the back button to return to the\n"; 

print "reservation form, and reselect your \n";

print "start or end time.\n";

print "Thank you!";

} 



else {

--

FYI-After this portion of the code, the .cgi is to open the .txt database and check 
for any duplicate entry. If none found, it writes; if duplicate date found, it should 
return another error. But haven't gotten that far yet!

Thanks in advance for help correcting/completing this code!

Marjie






---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003


Re: Creating thumbnails (Newbie Question)...

2002-09-21 Thread Randal L. Schwartz

> "Joel" == Joel Hughes <[EMAIL PROTECTED]> writes:

Joel> After you have install image magick, the basic syntax is...


Joel>   use Image::Magick;
Joel>   $p = new Image::Magick;
Joel>   $p->Read(..your main image...);

Joel>   $p->Scale(width=>$required_width, height=> $required_height);

Joel>   $p->Write(..your scaled image...)

Joel> your only trickyish part is keeping the projection right when
Joel> you scale the image, however, for a start, the above code can
Joel> get you going.

No, it's not tricky.  Unless you work really hard at it, your image
is always scaled in proportion, such that the width and the height
fit a maximum of the sizes listed above.  It's just (dare I say) magic!

Let me illusrate:  if an image is 75x150, and you ask for a 25x25 version,
you get a 12x25 version, which is the same proportions, but both
numbers are smaller than 25.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Creating thumbnails (Newbie Question)...

2002-09-19 Thread Joel Hughes

Alex,
the answer to this one is probably imagemagick. I have a small photos site
as well and use imagemagick to create all the other sizes from the master
image.

After you have install image magick, the basic syntax is...


use Image::Magick;
$p = new Image::Magick;
$p->Read(..your main image...);

$p->Scale(width=>$required_width, height=> $required_height);

$p->Write(..your scaled image...)

your only trickyish part is keeping the projection right when you scale the
image, however, for a start, the above code can get you going.

With my site I have an upload screen for images. Accepting images in this
screen causes the scaled images to be created - I have a couple of scaled
images for various purposes (web user monitor sizes etc).

best of luck

joel


-Original Message-
From: Yuen, Alex [mailto:[EMAIL PROTECTED]]
Sent: 18 September 2002 14:57
To: 'Perl Beginners - CGI'
Subject: Creating thumbnails (Newbie Question)...


Hi,

Very newbie.

I was wondering if it is possible to write a CGI (Perl) program to make a
thumbnail page for my website.

If so, how would I start and use for doing this?

Thanks.

Alex


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Creating thumbnails (Newbie Question)...

2002-09-19 Thread fliptop

On Wed, 18 Sep 2002 at 20:28, Octavian Rasnita opined:

OR:But is it a way, (maybe module?) that allow creating a thumbnail on the fly?
OR:
OR:For example:
OR:I want to put more big images in a folder and if someone visits my page,
OR:they will see a table with thumbnails created on the fly and inserted in the
OR:HTML page, and ... those thumbs made as links to the bigger pictures.
OR:
OR:The script should get the image, create a smaller one automaticly (with a
OR:lower size) and print it on the screen as image/jpg ... etc.
OR:
OR:Is it possible?

octavian - please remember to post your messages to the list so everyone 
can benefit from the questions and answers.

to answer your question - did you investigate the perl module i listed?  
it's called Image::Magick::Thumbnail, and it does exactly what you 
describe.  Please see below:

OR:- Original Message -
OR:From: "fliptop" <[EMAIL PROTECTED]>
OR:To: "Yuen, Alex" <[EMAIL PROTECTED]>
OR:Cc: "'Perl Beginners - CGI'" <[EMAIL PROTECTED]>
OR:Sent: Wednesday, September 18, 2002 5:52 PM
OR:Subject: Re: Creating thumbnails (Newbie Question)...
OR:
OR:
OR:On Wed, 18 Sep 2002 at 09:56, Yuen, Alex opined:
OR:
OR:YA:I was wondering if it is possible to write a CGI (Perl) program to make a
OR:YA:thumbnail page for my website.
OR:YA:
OR:YA:If so, how would I start and use for doing this?
OR:
OR:if you question is how to create a thumbnail from a regular image, then
OR:you could use ImageMagick.
OR:
OR:http://www.imagemagick.org
OR:http://search.cpan.org/author/LGODDARD/Image-Magick-Thumbnail-0.01/
OR:


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Creating thumbnails (Newbie Question)...

2002-09-18 Thread Wiggins d'Anconia

Second part:

Depends on how complex you want your thumbnail page to be (of course).

Simplest might be to store all your thumbnails to a directory, do an 
opendir, then while readdir, print your image tag changing only the file 
name in each case.

To complicate matters, you can use the same Image::Magick module to read 
the thumbnail to generate the width/height tags on the fly though I 
would say that is probably overkill.  As for handling pages/numbered to 
display on each page, and stepping between them you are probably going 
to have to pass a couple of variables to the script, such as where to 
start displaying and how many to display. Or you could go the simple 
route and hard code the number shown, in which case you could just pass 
a "page" variable, either way you then generate the urls on the fly 
referencing "previous","next","first","last", etc. So many options, 
so little time.

http://danconia.org



Yuen, Alex wrote:
> One part is to create a thumbnail image from a regular image.
> 
> Second part is to create a web page or thumbnail page for viewing. Maybe 10
> to 20 images per page.
> 
> Thanks.
> 
> Alex
> 
> 
> 
>>--
>>From: fliptop[SMTP:[EMAIL PROTECTED]]
>>Sent: Wednesday, September 18, 2002 10:52 AM
>>To:   Yuen, Alex
>>Cc:   'Perl Beginners - CGI'
>>Subject:  Re: Creating thumbnails (Newbie Question)...
>>
>>On Wed, 18 Sep 2002 at 09:56, Yuen, Alex opined:
>>
>>YA:I was wondering if it is possible to write a CGI (Perl) program to make
>>a
>>YA:thumbnail page for my website.
>>YA:
>>YA:If so, how would I start and use for doing this?
>>
>>if you question is how to create a thumbnail from a regular image, then 
>>you could use ImageMagick.
>>
>>http://www.imagemagick.org
>>http://search.cpan.org/author/LGODDARD/Image-Magick-Thumbnail-0.01/
>>
>>
>>
> 
> 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Creating thumbnails (Newbie Question)...

2002-09-18 Thread Gary Stainburn

On Wednesday 18 Sep 2002 2:56 pm, Yuen, Alex wrote:
> Hi,
>
> Very newbie.
>
> I was wondering if it is possible to write a CGI (Perl) program to make a
> thumbnail page for my website.
>
> If so, how would I start and use for doing this?
>
> Thanks.
>
> Alex

Hi Alex,

Here's a script based on one I was given a while back.  This is a command-line 
one but should easily be convertable to a CGI.

#!/usr/bin/perl
use strict;

use Image::Magick;

my $im = Image::Magick->new;

umask 0022;

# if passed filenames use them, otherwise do all
my @names = @ARGV ? @ARGV : grep { -f and -B } <*>;

for (@names) {# foreach name
  if (/ /) {  # if name contains a space
my $old = $_;
tr, ,_,s; # change spaces to _
$_ .= ".jpg" unless /\.jpg$/; # append .jpg if missing
! -e and rename $old, $_ or next; # skip file if rename fails
warn "renaming $old to $_\n";
  }
  next if /\.thumb\.jpg$/;# skip if this is thumbnail
  my $thumb = "$_.thumb.jpg";
  next if -e $thumb;  # skip if thumbnail exists
  undef @$im; # reset (part of) $im
  my $ret;
  $ret = $im->Read($_)# read file 
and warn($ret), next; # or fail and skip
  $ret = $im->Scale(geometry => '100x100')
and warn($ret), next;
  $ret = $im->Write($thumb)
and warn($ret), next;
  warn "thumbnail made for $_\n";
}


-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Creating thumbnails (Newbie Question)...

2002-09-18 Thread Yuen, Alex

One part is to create a thumbnail image from a regular image.

Second part is to create a web page or thumbnail page for viewing. Maybe 10
to 20 images per page.

Thanks.

Alex


> --
> From: fliptop[SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 10:52 AM
> To:   Yuen, Alex
> Cc:   'Perl Beginners - CGI'
> Subject:      Re: Creating thumbnails (Newbie Question)...
> 
> On Wed, 18 Sep 2002 at 09:56, Yuen, Alex opined:
> 
> YA:I was wondering if it is possible to write a CGI (Perl) program to make
> a
> YA:thumbnail page for my website.
> YA:
> YA:If so, how would I start and use for doing this?
> 
> if you question is how to create a thumbnail from a regular image, then 
> you could use ImageMagick.
> 
> http://www.imagemagick.org
> http://search.cpan.org/author/LGODDARD/Image-Magick-Thumbnail-0.01/
> 
> 
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Creating thumbnails (Newbie Question)...

2002-09-18 Thread fliptop

On Wed, 18 Sep 2002 at 09:56, Yuen, Alex opined:

YA:I was wondering if it is possible to write a CGI (Perl) program to make a
YA:thumbnail page for my website.
YA:
YA:If so, how would I start and use for doing this?

if you question is how to create a thumbnail from a regular image, then 
you could use ImageMagick.

http://www.imagemagick.org
http://search.cpan.org/author/LGODDARD/Image-Magick-Thumbnail-0.01/




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Creating thumbnails (Newbie Question)...

2002-09-18 Thread Yuen, Alex

Hi,

Very newbie.

I was wondering if it is possible to write a CGI (Perl) program to make a
thumbnail page for my website.

If so, how would I start and use for doing this?

Thanks.

Alex


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Newbie question on data storing

2001-08-22 Thread randy Peterman

Use DBI.  Doing your own parsing of files and data is more of a headache
than you need.  It may depend on your application, but when it comes to file
parsing - you're re-inventing the wheel.

There are several good Database's out there that are open source.  Plus if
all your effort is "in house" you'll have very few security issues to worry
about.

Randy Peterman

"G Harper" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello all,
> Please bear with me - I realize the answers I seek probably lie
> elsewhere but I haven't had a lot of luck.
> I'm building an interface that allows me to input an order number,
order
> type and comments on the order, which are stored into a file using a hash
of
> arrays. I can's find a good way to store and retreive the records, and I'm
> trying to figure out whether DBI access or regular file access with my own
> parsing would be best.
> I'm basically looking for any insight, references, etc. on file access
> and record retreival that is geared for the non-guru.
>
> Any help would be appreciated.
>
>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Newbie question on data storing

2001-08-22 Thread G Harper

Hello all,
Please bear with me - I realize the answers I seek probably lie
elsewhere but I haven't had a lot of luck.
I'm building an interface that allows me to input an order number, order
type and comments on the order, which are stored into a file using a hash of
arrays. I can's find a good way to store and retreive the records, and I'm
trying to figure out whether DBI access or regular file access with my own
parsing would be best.
I'm basically looking for any insight, references, etc. on file access
and record retreival that is geared for the non-guru.

Any help would be appreciated.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: newbie question

2001-07-09 Thread Jason Purdy

I'm not familiar with WinCGI, but your code is missing the important shebang
line.  I have Apache running on my Windoze box and my shebang is:

#!\Perl\bin\perl

Everything's off my C drive and the DOS path to Perl is: C:\Perl\bin\perl.

Jason

- Original Message -
From: "nila devaraj" <[EMAIL PROTECTED]>
To: "Aaron Craig" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 12:29 AM
Subject: Re: newbie question


> Hi
> Thank you for your mail.
>
> the code is
>
> #testcgi.cgi
> print "Content-type: text/html\n\n";
> print "Hello World\n";
>
> This is WinCGI. should i have to give the Shebang
> operator?
> Should i have Perl installed in the server where the
> Webserver is configured?
> If so, how will i give the shebang operator
> The web server is Iplannet webserver.
> It would be appreciated if anyone help me to come out
> of this problem
> Thank you
> Regards
> Nila
>
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/




Re: newbie question

2001-07-08 Thread nila devaraj

Hi 
Thank you for your mail.

the code is 

#testcgi.cgi
print "Content-type: text/html\n\n";
print "Hello World\n";

This is WinCGI. should i have to give the Shebang
operator? 
Should i have Perl installed in the server where the
Webserver is configured?
If so, how will i give the shebang operator
The web server is Iplannet webserver.
It would be appreciated if anyone help me to come out
of this problem
Thank you
Regards
Nila



__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Re: newbie question

2001-07-07 Thread Ryan Gralinski

well really if it is asking you to save to disk, the problem is server
side, ask the administrator to fix it..

Ryan


On Fri, 6 Jul 2001, nila devaraj wrote:

> Hi
> i have a webserver that has been configured for CGI
> scripting. i placed the  HTML file in the required
> directory and the cgi program in the wincgi directory
> of the webserver. The problem i am facing is- if i
> submit my form i am getting the download/save dialog
> box.If i say open it is opening a word document
> containg the codes in the program i am new to CGi
> programming and i am unable to figure out the problem.
> it would be appreciated if i get some input in this
> regard...
>
> regards
> Nila
>
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
>




Re: newbie question

2001-07-06 Thread Adam Carson

Also, are you sure you have the scripts in the CGI-bin?  And is your server set to 
look in the right folder for CGIs?  If you don't have a shebang line, adding one might 
also help.  I went through this same problem a couple of weeks ago.  BTW, what server 
is it?  Someone might have said, but I don't remember.

  Adam Carson
MIS Department
 Berkeley County, SC

>>> Mark Bergeron <[EMAIL PROTECTED]> 07/06/01 09:01AM >>>
Is your directory set to scripts access?

-Original Message-
From: "nila devaraj"<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] 
Date: Fri Jul 06 02:24:31 PDT 2001
Subject: newbie question

>Hi
>i have a webserver that has been configured for CGI
>scripting. i placed the  HTML file in the required
>directory and the cgi program in the wincgi directory
>of the webserver. The problem i am facing is- if i
>submit my form i am getting the download/save dialog
>box.If i say open it is opening a word document
>containg the codes in the program i am new to CGi
>programming and i am unable to figure out the problem.
>it would be appreciated if i get some input in this
>regard...
>
>regards
>Nila
>
>
>
>__
>Do You Yahoo!?
>Get personalized email addresses from Yahoo! Mail
>http://personal.mail.yahoo.com/ 

/~_. _ | _ _  _  _ 
\_/|(_||| | |(_)| |
 _|
___
GO.com Mail
Get Your Free, Private E-mail at http://mail.go.com 






Re: newbie question

2001-07-06 Thread Mark Bergeron

Is your directory set to scripts access?

-Original Message-
From: "nila devaraj"<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Fri Jul 06 02:24:31 PDT 2001
Subject: newbie question

>Hi
>i have a webserver that has been configured for CGI
>scripting. i placed the  HTML file in the required
>directory and the cgi program in the wincgi directory
>of the webserver. The problem i am facing is- if i
>submit my form i am getting the download/save dialog
>box.If i say open it is opening a word document
>containg the codes in the program i am new to CGi
>programming and i am unable to figure out the problem.
>it would be appreciated if i get some input in this
>regard...
>
>regards
>Nila
>
>
>
>__
>Do You Yahoo!?
>Get personalized email addresses from Yahoo! Mail
>http://personal.mail.yahoo.com/

/~_. _ | _ _  _  _ 
\_/|(_||| | |(_)| |
 _|
___
GO.com Mail
Get Your Free, Private E-mail at http://mail.go.com





Re: newbie question

2001-07-06 Thread Rajeev Rumale

Sorry I forgot mention the same.
But you gussed it write,  I am using IIS on win2k wiht MYSQL as database.
ofcourse with  Active Perl.

regards

Rajeev Rumale


- Original Message -
From: "fliptop" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 7:23 PM
Subject: Re: newbie question


> Aaron Craig wrote:
> >
> > You should always include the code that is giving you the problem when
you
> > ask a question.  It makes it a lot easier for us to help you.  Could you
> > send your code?
>
> also include what platform (i'm guessing windows) and webserver you are
> using.
>




Re: newbie question

2001-07-06 Thread fliptop

Aaron Craig wrote:
> 
> You should always include the code that is giving you the problem when you
> ask a question.  It makes it a lot easier for us to help you.  Could you
> send your code?

also include what platform (i'm guessing windows) and webserver you are
using.



Re: newbie question

2001-07-06 Thread Rajeev Rumale

yes that will also keep you away for the various assumptions very one would
be makeing, and you get a correct answer early.

with regards

Rajeev Rumale

~~~
Rajeev Rumale
MyAngel.Net Pte Ltd.,Phone  :
(65)8831530 (office)
#04-01, 180 B, The Bencoolen,   Email  :
[EMAIL PROTECTED]
Bencoolen Street, Singapore - 189648 ICQ: 121001541
Website : www.myangel.net
~~~


- Original Message -
From: "Aaron Craig" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 06, 2001 6:40 PM
Subject: Re: newbie question


> You should always include the code that is giving you the problem when you
> ask a question.  It makes it a lot easier for us to help you.  Could you
> send your code?
>
> At 02:24 06.07.2001 -0700, nila devaraj wrote:
> >Hi
> >i have a webserver that has been configured for CGI
> >scripting. i placed the  HTML file in the required
> >directory and the cgi program in the wincgi directory
> >of the webserver. The problem i am facing is- if i
> >submit my form i am getting the download/save dialog
> >box.If i say open it is opening a word document
> >containg the codes in the program i am new to CGi
> >programming and i am unable to figure out the problem.
> >it would be appreciated if i get some input in this
> >regard...
> >
> >regards
> >Nila
> >
> >
> >
> >__
> >Do You Yahoo!?
> >Get personalized email addresses from Yahoo! Mail
> >http://personal.mail.yahoo.com/
>
> Aaron Craig
> Programming
> iSoftitler.com
>
>




Re: newbie question

2001-07-06 Thread Aaron Craig

You should always include the code that is giving you the problem when you 
ask a question.  It makes it a lot easier for us to help you.  Could you 
send your code?

At 02:24 06.07.2001 -0700, nila devaraj wrote:
>Hi
>i have a webserver that has been configured for CGI
>scripting. i placed the  HTML file in the required
>directory and the cgi program in the wincgi directory
>of the webserver. The problem i am facing is- if i
>submit my form i am getting the download/save dialog
>box.If i say open it is opening a word document
>containg the codes in the program i am new to CGi
>programming and i am unable to figure out the problem.
>it would be appreciated if i get some input in this
>regard...
>
>regards
>Nila
>
>
>
>__
>Do You Yahoo!?
>Get personalized email addresses from Yahoo! Mail
>http://personal.mail.yahoo.com/

Aaron Craig
Programming
iSoftitler.com




newbie question

2001-07-06 Thread nila devaraj

Hi
i have a webserver that has been configured for CGI
scripting. i placed the  HTML file in the required
directory and the cgi program in the wincgi directory
of the webserver. The problem i am facing is- if i
submit my form i am getting the download/save dialog
box.If i say open it is opening a word document
containg the codes in the program i am new to CGi
programming and i am unable to figure out the problem.
it would be appreciated if i get some input in this
regard...

regards
Nila



__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/