Re: sql statement parsing

2002-08-11 Thread Hytham Shehab

 Posting your whole script, or a larger part might be helpful and get
 more response.  sidenoteare you using strict and warnings?/sidenote

 My original hunch was that the where method was not being exported and
 therefore was not loaded by your script, upon a slight more research I
 was *unable* to find the where function you are using anywhere except
 in the documentation for SQL::Statement, which makes reference to the
 where method existing in the SQL::Statement::OP package which I could
 also not find either in the source for SQL::Statement nor elsewhere on
CPAN.

 You might want to crack open the source for the module you have
 installed but I wasn't able to locate where this method is defined
 (other than in the docs).  You might also contact the creator of the
 module about this specific problem.

 http://danconia.org

well, i think that u r absolutely right about that it might be *ONLY*
existed in the docs, i may contact the creator for more details regarding
this issue.

btw, am not using warnings nor strict.

thanks.
--
Hytham Shehab


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




Network Programming

2002-08-11 Thread stuv48ac

Hello there. Do you know where can I find a good Perl Network Programming Tutorial??
Thank you.




---
Runbox Mail Manager (free trial version - this tag is removed upon subscription)
Try your own premium email account for free at http://111.runbox.com
100MB storage, no ads, fast webmail, access on any device, retrieve and filter email.

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




How to use the gmtime() function?

2002-08-11 Thread Octavian Rasnita

Hi all,

I am GMT + 2 hours (Eastern Urope) but if I use the gmtime function, it
shows me 3 hours behind.
I think it doesn't take into account the summer time change.
Can I solve this problem?

Thank you.

Teddy's Center: http://teddy.fcc.ro/
Mail: [EMAIL PROTECTED]



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




How to find the remote time?

2002-08-11 Thread Octavian Rasnita

Hi all,

How can I find the local time of the web page visitors?
Using localtime function shows me the localtime from the location where is
the server.

I couldn't find any environment variable for this either.

Thank you for any hint.

Teddy's Center: http://teddy.fcc.ro/
Mail: [EMAIL PROTECTED]



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




Re: Network Programming

2002-08-11 Thread Todd Wade


[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello there. Do you know where can I find a good Perl Network Programming
Tutorial??
Thank you.


Network Programming with Perl, L. Stein.

http://www.amazon.com/exec/obidos/ASIN/0201615711/qid=1029118782/sr=1-1/ref=
sr_1_1/002-4481850-4219223

Todd W.



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




Re: How to give a name for a file?

2002-08-11 Thread Octavian Rasnita

Hi Connie,

Here is a script I made and it starts the file download.
It prompts for a file name and the default one is the file name you give in
the script.
Sometimes it works only if the file name you define in the script is the
same with the real file name of the file.

$| = 1;

my $file = $docroot/$outfolder/$id;

#If the file exists:
if (-e $file) {
print eof;
Content-type: application/zip
Content-Disposition: attachment; filename=$id

eof

open (FH, $file);
binmode(FH);
binmode(STDOUT);

until (eof FH) {
read (FH, my $buf, 1024);
print $buf;
}

close FH;

Teddy's Center: http://teddy.fcc.ro/
Mail: [EMAIL PROTECTED]

- Original Message -
From: Connie Chan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, August 12, 2002 2:46 AM
Subject: How to give a name for a file?


 I have a script that read and then print a binary file on runtime,
 which actually mean to a file is for download.

 I mean, not like this : a href=here_a_file.zipDownload/a.

 However, I don't know how to give a name for the file.

 I've use this header :  print Content-type: audio/mp3\r\n\r\n;
 and my script 's name is dl.pl.

 When I start to download the file, my browser alert if I want to
 save dl.mp3 . Why the extension can come out, but nowhere for me
 to assign the file name ?

 Could any body tell me what is the story ?
 and how to give a certain name for the file ?

 Rgds,
 Connie



 --
 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]