Re: off topic : frames html question

2002-02-27 Thread Carl Franks
Rahul, If I understand you correctly, you want to have lots of links that open new framesets, without creating a new frameset document for each page to be opened. If that's correct, then don't worry, it's not at all off topic! The general principal is this: You make all the links go to the

Image size

2002-02-27 Thread Webmaster
Well, I tryed to include this code, but I was unsuggessful. Here is the basic script: #!/usr/bin/perl use Image::Size; print Content-type: text/html\n\r\n\r; # Get the size of globe.gif ($globe_x, $globe_y) = imgsize(test.gif); # Assume X=60 and Y=40 for remaining examples print X:

No access to /etc/protocols

2002-02-27 Thread Paul Murphy
Hello everyone. My ISP doesn't have /etc/protocols world readable, and so IO::Socket doesn't work, as getprotobyname and getprotobynumber fail. I am using the Mail::POP3Client wrapper. I am trying to come up with a workaround, and the best I can come up with is a horrendous hack to

lock file, flock or what?

2002-02-27 Thread zaka rias
i wanna know what is perl command to lock a file, honestly i dont understand what is that mean with lock a file, im on linux, if i want to lock my file, i'll just need to set up permission, so...maybe anyone give me an example code for lock/flock command? thanks a lot zaka -- To

RE: Perl help

2002-02-27 Thread John Edwards
What format log file? What format spreadsheet? What OS? -Original Message- From: Allison Ogle [mailto:[EMAIL PROTECTED]] Sent: 27 February 2002 14:42 To: [EMAIL PROTECTED] Subject: Perl help Hi, I am a beginner trying to write a program which will read information from a log file and

Is it a problem?

2002-02-27 Thread Octavian Rasnita
Hi all, I am new in Perl world, and I saw many messages telling that it is a security problem is someone can download the passwd file from a Unix machine. I have 2 questions: 1. As far as I know, that file has the passwords crypted and the person who download it won't see the real password. Or,

Uploading a file

2002-02-27 Thread Octavian Rasnita
Hi all, I saw a question about how to make a Perl script for uploading a file and I didn't see any answer for it. I am also interested in this thing. Could somebody give us some hints? Or, give us a source for a Perl script for uploading a file. Thank you very much. Teddy, My dear email

Session cookies

2002-02-27 Thread Octavian Rasnita
Hi all, I want to set a cookie in a Perl script only for the current session, and I don't need that cookie after the visitor closes the browser. Can I use this kind of cookie if the user has deactivated cookies in her browser? I can't test this on my localhost, because even if I disable the

Perl Equiv of URLEncode()

2002-02-27 Thread Lara J. Fabans
I'm being so braindead today. This is probably one of the downsides of coding in multiple languages. What is the perl equivalent of PHP's URLEncode(). It encodes spaces to %20, etc. I was looking in CGI.pm, but couldn't find anything. I know that there must be something out there. The

RE: Perl Equiv of URLEncode()

2002-02-27 Thread John Edwards
there is a function called escape() in CGI.pm which you can import. There is also an unescape function. use CGI qw(:standard escape); #^ Import function $text = This is a test $£#{}-+; print Original text $text\n; $escaped = escape($text); print Escaped text $escaped\n;

RE: Perl Equiv of URLEncode()

2002-02-27 Thread Peterson, Tony
JavaScript is escape unescape -Original Message- From: Lara J. Fabans [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 11:58 AM To: [EMAIL PROTECTED] Subject: Perl Equiv of URLEncode() I'm being so braindead today. This is probably one of the downsides of coding in

Re: Is it a problem?

2002-02-27 Thread eric-perl
On Wed, 27 Feb 2002, Octavian Rasnita wrote: Hi all, I am new in Perl world, and I saw many messages telling that it is a security problem is someone can download the passwd file from a Unix machine. I have 2 questions: 1. As far as I know, that file has the passwords crypted and the

Re: Uploading a file

2002-02-27 Thread eric-perl
On Wed, 27 Feb 2002, Octavian Rasnita wrote: I saw a question about how to make a Perl script for uploading a file and I didn't see any answer for it. I am also interested in this thing. Could somebody give us some hints? Or, give us a source for a Perl script for uploading a file.

Re: Session cookies

2002-02-27 Thread eric-perl
On Wed, 27 Feb 2002, Octavian Rasnita wrote: I want to set a cookie in a Perl script only for the current session, and I don't need that cookie after the visitor closes the browser. Can I use this kind of cookie if the user has deactivated cookies in her browser? I can't test this on my

Re: Things that make you go hmmmmmmmm

2002-02-27 Thread W P
What typically causes the following type of error in a CGI? --- Use of uninitialized value in concatenation (.) at D:\inetpub\whatever\census\myscript.cgi line 272. --- I don't

Re: Uploading a file

2002-02-27 Thread fliptop
Octavian Rasnita wrote: I saw a question about how to make a Perl script for uploading a file and I didn't see any answer for it. I am also interested in this thing. Could somebody give us some hints? Or, give us a source for a Perl script for uploading a file. CGI.pm has a method

Re: lock file, flock or what?

2002-02-27 Thread W P
http://www.perldoc.com/perl5.6.1/pod/func/flock.html From: zaka rias [EMAIL PROTECTED] Subject: lock file, flock or what? i wanna know what is perl command to lock a file, honestly i dont understand what is that mean with lock a file, im on linux, if i want to lock my file, i'll just need

RE: Things that make you go hmmmmmmmm

2002-02-27 Thread Scot Robnett
Thanks, I'll look through it again and see if that's it! Scot R. -Original Message- From: W P [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 12:02 PM To: Scot Robnett; [EMAIL PROTECTED] Subject: Re: Things that make you go h What typically causes the

[DUPLICATE] Re: No access to /etc/protocols

2002-02-27 Thread Randal L. Schwartz
Paul == Paul Murphy [EMAIL PROTECTED] writes: Paul Hello everyone. This has been asked and answered on the beginners list. Please do not attempt to answer it here. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 [EMAIL PROTECTED]

Escaping special characters for regular expressions

2002-02-27 Thread W P
I have a CGI script which takes two strings. It searches for the first string in a file, replacing it with the second one. This file isn't really important, more for fun, so I'm not too worried about people deleting the whole file if they actually type out the contents as the first string.

Perl-CGI script with Thttpd webserver gives no output

2002-02-27 Thread Hein ten Rouwelaar
Hi, I am a newbe in Perl. I installed the webserversoftware thttpd-2.20b-4 on a RedHat Linux 7.1 host (hostname linux). Browser on client 200.1.1.5. Now I wrote the html page guest.html below which calls the perl script guest.pl printed below again. The query displays nice on my browser

Taking entire Oracle application (forms, reports) to WEB usingCGI?

2002-02-27 Thread Bruce Ambraal
Hi All How possible is this.? This a good Idea? I am currently defining a 6 month project deploying our current Oracle financial system to the WEB using CGI. Can anyone point out current success stories, that really works. Cheers bruce -- To unsubscribe, e-mail: [EMAIL PROTECTED] For