"Octavian Rasnita" <[EMAIL PROTECTED]> wrote in message
002e01c1dd70$6800e7d0$[EMAIL PROTECTED]">news:002e01c1dd70$6800e7d0$[EMAIL PROTECTED]...
> If a user will click to download, Internet Explorer ask the user if she
> wants to open or save the file from the real server.
> I would like to make
Hi all,
I want to make my web site and I don't know if it is a good idea to use many
CGI scripts to write html pages.
The server where I have my page doesn't allow SSI and I can't write HTML
pages that contains counters, etc, and I need to write the whole page as a
CGI script.
1. Do I have anoth
Hi all,
I want to read and sort a comma separated file like:
abc,Metallica,Larry
bcd,Megadeth,Wall
cde,Ozzy,Perl
I want to be able to sort the line using all the 3 columns.
I am a beginner in Perl and I don't know to use MySQL yet.
Is it possible to do what I want without a database?
Thank you
This may be what you are looking for:
Put your receiving variables html into a cgi prog, pass the variables
with the submit button to this cgi prog in which, I think, you can
still use your html templates as long as they are accessed by the
full url. Let me know if this works out.
>Hi Michae
Oh thank you, now I don't understand anything!
I will try it, but please tell me something.
If I will do it this way, the file will be downloaded on my server then
downloaded to the client's machine?
Thank you!
Teddy,
My new email address is [EMAIL PROTECTED]
- Original Message -
From
I have this obscure problem, that I feel should be really easy to solve.
But, I can't figure it out. I've been skimming trough both Learning Perl and
Programming Perl, but I suddenly feel blind to the code.
Here are some snips from the code:
print header(), start_html("Registrering til arrangemen
Ok, how would I do that? I am new to all of this perl/cgi stuff, sorry for
what I am sure is a moronic question.
-Kevin
-Original Message-
From: Scot Robnett [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 07, 2002 11:42 AM
To: [EMAIL PROTECTED]; 'mailing list'
Subject: RE: I need CGI Hel
No. MySQL would be overkill for an application like this unless you're talking about
several thousand lines. Otherwise you can just use something like...
my $foo = "/path/to/file";
open(INFILE,"<$foo");
my @records = ;
close(INFILE);
for(@records) {
chomp;
my ($rec,$band,$artist) = sp
I am not familiar with cvsweb.cgi, but it looks like the path you define is definitely
in @INC. Did you try placing a copy of strict.pm elsewhere and unshifiting into @INC
with a BEGIN block just to test it? It shouldn't be necessary with strict but I'm at a
loss considering what you show as in
Google won't currently index dynamic pages such as .cgi or .cfm. However, they have
recently begun indexing pages served over SSL in addition to indexing HTTP-served
pages, so security-conscious programmers (hopefully that includes all of us) should be
aware of this. I have a link to this story
On Fri, 5 Apr 2002 10:07:45 -0500 , [EMAIL PROTECTED] (Andrew
Hughes) wrote:
>I have a tab delimited flat text-file database (hotels.txt) with hotel info
>from all 50 states in the following fields:
>
>$available (1=available; 0=unavailable)
>$location_num (numbers 1-50)
>$location_txt
>$city
>$h
On Sun, 7 Apr 2002 01:11:16 -0500, [EMAIL PROTECTED] (Kevin Queen) wrote:
>
>Can't locate strict.pm in @INC (@INC contains:
>/usr/local/lib/perl5/5.6.1/i486-linux /usr/local/lib/perl5
>/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i486-linux
>/usr/local/lib/perl5/site_perl/5.6.1 /usr/local/li
>b/pe
Javascript seems to work pretty well for this.
If you put this in a page, the visitor will be prompted to download the file
as soon as the page is fully loaded.
Best Regards,
JOSHUA D. HAYDEN
- Original Message -
From: "Octavian Rasnita" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sen
That will work for people that have Javascript enabled in their browsers, which is the
majority, but it's not everyone. Better to handle it server side to guarantee it works
(or at least you will have more of a guarantee than with client side Javascript).
Have you looked into the LWP module?
Here is the code:
..sub velgarrangement{
print start_form(), hr;
print p("Velg arrangement: ", popup_menu("arrangement", \@arrangement));
print p(submit("Velg"));
print end_form(), hr();
registrer();
}
What happens now is that velgarrangement() and registrer() are both printed
to the screen at t
What's the easiest way to get yesterday's date from localtime? I need it in
this format: (for today) "070402".
Here is the code used for today's date:
($sec,$min,$hour,$mday,$mon,$year,undef,undef,undef) = localtime();
$mon++;
$year %= 100;
$theDate = sprintf("%02u%02u%02u", $mday, $mon, $year
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
17 matches
Mail list logo