Re: Form parameter as filename?

2002-01-07 Thread Rob Cottingham
Thanks for the suggestion, Fliptop. Someone finally pointed out my problem: data tainting was on, and I had to untaint the data before Perl would let me use it in something as exposed as a filename. Whew!! Cheers, --rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-

RE: scheduling

2002-01-07 Thread Matthew Keen
Camilo, What operating System are you ftp'ing from ??? -Original Message- From: Camilo Gonzalez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 8 January 2002 9:46 AM To: '[EMAIL PROTECTED]'; Camilo Gonzalez Cc: [EMAIL PROTECTED] Subject: RE: scheduling How can I find out about cron? -O

Cookies and SSI

2002-01-07 Thread Robert Howard
If a script is being called as a Server Side Include, is it still possible to set and read cookies from within the script? Problem I am running into is that the header of the main html is read before my script, so no cookies are set by using print header (-cookie => $session_cookie). R.A. Howard

Re: 2 Q's, Google and Me - can you spell it out?

2002-01-07 Thread Curtis Poe
--- Henk van Ess <[EMAIL PROTECTED]> wrote: > Dear all, > > They told me that this forum teaches Perl in a friendly atmosphere, so I > hope you can help me. My name is Henk van Ess and I run www.voelspriet.nl, a > Dutch site about searchengines (non-commercial). > > I'm busy with a form for sear

Re[2]: Curtis Poe Script/Lesson Questions

2002-01-07 Thread K.L. Hayes
Hello Mr. Poe & All, Thank you very much for your articulate & thorough answers. I'm sure you've enlightened others as well with your response. I'm a Site Designer turning Perl Hacker over the last 5-6 months & I'm just concerned about being dangerous in the transition. IMO It's better that I as

RE: scheduling

2002-01-07 Thread Camilo Gonzalez
How can I find out about cron? -Original Message- From: fliptop [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 4:30 PM To: Camilo Gonzalez Cc: [EMAIL PROTECTED] Subject: Re: scheduling Camilo Gonzalez wrote: > Anyone know of a module or method that will run a Perl script on

Re: scheduling

2002-01-07 Thread fliptop
Camilo Gonzalez wrote: > Anyone know of a module or method that will run a Perl script on a given > time each day? I need to FTP a file from one site to another daily and I was > hoping to automate it. can you write a cron job to do it? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

2 Q's, Google and Me - can you spell it out?

2002-01-07 Thread Henk van Ess
Dear all, They told me that this forum teaches Perl in a friendly atmosphere, so I hope you can help me. My name is Henk van Ess and I run www.voelspriet.nl, a Dutch site about searchengines (non-commercial). I'm busy with a form for searching all kind of special operators in search engines and

scheduling

2002-01-07 Thread Camilo Gonzalez
Anyone know of a module or method that will run a Perl script on a given time each day? I need to FTP a file from one site to another daily and I was hoping to automate it. if ( $Camilo_Gonzalez && $Web_Developer ) { Taylor Johnson Associates; [EMAIL PROTECTED]

Re: Re[2]: Curtis Poe Script/Lesson Questions

2002-01-07 Thread Curtis Poe
--- "K.L. Hayes" <[EMAIL PROTECTED]> wrote: > Hello Jonathan & All, > > Thank you for taking the time to answer. I "thought" that the $1 was > locally scoped but didn't want to "assume" it. Better not to assume > things with Perl has been my experience. See my previous reply to your question. $

Re: Curtis Poe Script/Lesson Questions

2002-01-07 Thread Curtis Poe
--- "K.L. Hayes" <[EMAIL PROTECTED]> wrote: > 17: if ( $tainted_username =~ /^([a-zA-Z\d_]+)$/ ) > 18: { > 19: $username = $1; > 20: } > 21: else > 22: { > 23: display_page( $message ); > 24: exit; > 25: } > > OK... The questions... > > 1. Why doesn't "use strict" complain a

Re[2]: Curtis Poe Script/Lesson Questions

2002-01-07 Thread K.L. Hayes
Hello Jonathan & All, Thank you for taking the time to answer. I "thought" that the $1 was locally scoped but didn't want to "assume" it. Better not to assume things with Perl has been my experience. I don't fully understand the trinary operator. However I'll research this tonight. My main conc

Re: Curtis Poe Script/Lesson Questions

2002-01-07 Thread Jonathan E. Paton
> 1. Why doesn't "use strict" complain about the $1 not > being declared? $1, $2 etc are locally scoped variables which come from the regex. A regex like: m/(..)(.*)/ will place the first two characters into $1, and the rest into $2 - according to the parathesis. > 2. How can I filter ALL of

Curtis Poe Script/Lesson Questions

2002-01-07 Thread K.L. Hayes
Hello All, I was looking over the lesson posted by Curtis Poe & have questions I hope somebody (maybe Mr. Poe?) can help with. The lesson is posted here: http://www.easystreet.com/~ovid/cgi_course/lesson_four/lesson_four_2.html The code in question is this piece here: 17: if ( $tainted_userna

Re: File Upload via URL

2002-01-07 Thread Brent Michalski
If i remember correctly, this is also not allowed. It would be a big security risk to allow something like this. The same goes for the "file upload" box that you put on an HTML form... You cannot prefill the values in it. Brent

Re: File Upload via URL

2002-01-07 Thread Curtis Poe
--- "Rafala, Michael" <[EMAIL PROTECTED]> wrote: > I want to call my file upload cgi program and upload a file via a URL rather > than using a Form on a Web page. > > My script works via the upload form, which looks like this: > > > > > > > But when I try this URL: > > http:\\myServer\cgi-

File Upload via URL

2002-01-07 Thread Rafala, Michael
I want to call my file upload cgi program and upload a file via a URL rather than using a Form on a Web page. My script works via the upload form, which looks like this: But when I try this URL: http:\\myServer\cgi-bin\upload.cgi?upload_file="c:\myfile" the script gets the filepath, but c

Parsing url from html content

2002-01-07 Thread Özgür ÖZTÜRK
With the following code i want to get the url of the first link (which come from a query at google.com). My target token is http://www.hotmail.com/> and i want to get http://www.hotmail.com from there, but my program get the first letter "a". I couldn't find any way to access the rest of the tok

fulltext search on a cd

2002-01-07 Thread Bernd Lach
Hello, I maybe have a little bit tricky question (for me at least): I want to create a fulltext search possibility in a web project that should be stored on a cd-rom. the web project consists of html files. The fulltext search should search in all that documents. as result there should be a li

Re: Form parameter as filename?

2002-01-07 Thread fliptop
Rob Cottingham wrote: > I'm trying to use a parameter passed from a CGI form as the basis of a > filename: > >my $file_location = "/home2/samuel-c/HTML/alex/urltest/"; >my $filename=param('category'); >my $fileid=$file_location.'urls_'.$filename; > >open(ULL, ">>$fileid") || die

Editing Virtusertable

2002-01-07 Thread insomniak
Hi All, I'm working on a project that involves editing some files on a mail server (running on Solaris) e.g. /etc/mail/access /etc/mail/virtusertable When the contents of either of these files are updated I have to run makemap hash etc... (to compile a Berkley .db file) My question is; Can I sim

Re: CGI perl html urgent

2002-01-07 Thread Carl Franks
print < EndHTML9 When you do this, there must be no spaces before the EndHTML9 i.e. print < EndHTML9 Hope this helps, Carl Franks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Form parameter as filename?

2002-01-07 Thread Rob Cottingham
Hi, all -- I'm trying to use a parameter passed from a CGI form as the basis of a filename: my $file_location = "/home2/samuel-c/HTML/alex/urltest/"; my $filename=param('category'); my $fileid=$file_location.'urls_'.$filename; open(ULL, ">>$fileid") || die "Can't open the URL file