Re: Does Windows support flock?

2002-07-13 Thread Connie Chan
> I thought Windows doesn't support Perl's flock, but I heard that it does. > Is it true? Yes, flock can use in Win32 OS. > > I've seen more Perl programs that create another temporary file for marking > a file as locked than programs that use the flock function. > Imagine, there is a text base

Downloading more files?

2002-07-13 Thread Octavian Rasnita
Hi all, Please tell me if what I want is possible or not. I want to make a Perl script that will prompt the visitor to download more files, not only one, for example 3 files. Of course, after selecting them, etc. If I use print "Location: $path\n\n"; The script ends after the first file. If it

Does Windows support flock?

2002-07-13 Thread Octavian Rasnita
Hi all, I thought Windows doesn't support Perl's flock, but I heard that it does. Is it true? I've seen more Perl programs that create another temporary file for marking a file as locked than programs that use the flock function. If Windows and Unix can use the flock function, why is this metho

Counting the time with fractions of a second. The solution!

2002-07-13 Thread Octavian Rasnita
Hi all, I found the easiest solution (until now) for calculating how much time a script runs. Thank you for other solutions, but they are too complicated. Here is the code you should use for calculating the time a script runs: my $start = (times)[0]; #Here goes the script. my $end = (times)[

RE: pop-before-smtp in perl

2002-07-13 Thread Scot Robnett
I don't think it's an issue with your script. I think your hosting provider needs to add your domain to rcpthosts on the mail server. Did you try turning debugging on in Mail::POP3Client? Scot R. inSite -Original Message- From: Shao-Ju Chao [mailto:[EMAIL PROTECTED]] Sent: Saturday, Jul

pop-before-smtp in perl

2002-07-13 Thread Shao-Ju Chao
My web shosting ISP (featureprice.com) has applied 'pop-before-smtp' rule on its SMTP server so every time anyone want to send mail via their smtp server, the user has to login to the POP3 account first (to identity they are valid users). They do this to prevent their smtp server being abused as a

cost of setting up a linux server

2002-07-13 Thread Jim Lundeen
hello all, i presume many of you are using a linux box. i am interested in setting up a web server that will host about 50 domains. i have called covad (the sdsl provider) and received pricing for the sdsl line. i am wondering about how much (if there is a avg) it will cost to get this going

Re: Less than a second?

2002-07-13 Thread zentara
On 12 Jul 2002 19:03:43 -, [EMAIL PROTECTED] (Felix Geerinckx) wrote: >on Fri, 12 Jul 2002 15:35:06 GMT, Zentara wrote: > >> On 12 Jul 2002 12:16:39 -, [EMAIL PROTECTED] (Felix >> Geerinckx) wrote: >> >>>on Thu, 11 Jul 2002 11:26:05 GMT, Octavian Rasnita wrote: >>> I want to calcula

Re: Zlib compression question

2002-07-13 Thread Shannon Murdoch
Seem to have stated my own solution. $outlog=gzopen($fn,"a"); specifies appendage to a file whereas $outlog=gzopen($fn,"wb"); specifies overwriting a file. Does anyone know how to READ a gzip file into an array? -Shannon > Hi all, > > I'm running a site with a lot of compressed text files c

Zlib compression question

2002-07-13 Thread Shannon Murdoch
Hi all, I'm running a site with a lot of compressed text files containing data for various clients. Some of these files get appended to (lets say, a log file perhaps). Is there some prevision to the Compress:Zlib module that lets you specify that you want to append to a file? (instead of needin

Re: 401

2002-07-13 Thread Hytham Shehab
this is the code of the req.pl, which is going to get index.html from topgun, but there is httaccess&htpasswd there ... require HTTP::Request; use LWP::UserAgent; --- $ua = new LWP::UserAgent; $req = HTTP::Request->new(GET => 'http://topgun/'); $file = 'rslt.txt'; $ua->credentials('http://topgu

Re: 401

2002-07-13 Thread Felix Geerinckx
on Sat, 13 Jul 2002 08:38:05 GMT, Hytham Shehab wrote: > how could i get a page - using lwp - when this is page have a > credenitals lookup, it keep sends me 401 status code, but i don't > know how to pass the user/pass to this page. > any idea? Look for the 'ACCESS TO PROTECTED DOCUMENTS' s

401

2002-07-13 Thread Hytham Shehab
hi guys, how could i get a page - using lwp - when this is page have a credenitals lookup, it keep sends me 401 status code, but i don't know how to pass the user/pass to this page. any idea? thanks in advance. -- Hytham Shehab -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional