KEYWORD SEARCH

2002-09-19 Thread Daniel Hurtado Brenner
Hi: My site have a simple keyword search thaf work fine but i wishs modified because: 1. My site is in spanish version and some words in my data base (flat database) is writing using writing accent (´) Then for my simple keyword search is different for example condición (with accent in "o") tha

Re: Parsing an HTML document

2002-09-19 Thread Janek Schleicher
Mmkhajah wrote at Thu, 19 Sep 2002 19:47:53 +0200: > I think this should work: > $content =~ s/\<[^\>]+?\>//g; ^ The question mark isn't necessary as the character class negates the >. Cheerio, Janek -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

RE: Creating thumbnails (Newbie Question)...

2002-09-19 Thread Joel Hughes
Alex, the answer to this one is probably imagemagick. I have a small photos site as well and use imagemagick to create all the other sizes from the master image. After you have install image magick, the basic syntax is... use Image::Magick; $p = new Image::Magick

Editing a file....

2002-09-19 Thread Greg Schiedler
I found this code snipit listed below that will edit a users file in place. It works great via the command line. I'm trying to pass the arguments to the script named edit.pl and it will not work if called via a system call ie: system ("perl -pi -e 's/^(username)(\s+.*)(old-pass)(.*)$/${1}${2}n

Re: Text output formating

2002-09-19 Thread William McKee
Roberto, I think you want the escapeHTML function from CGI. See the docs for details. William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [E

Re: GPL - how does it work

2002-09-19 Thread Wiggins d'Anconia
Surprised no one else mentioned that this may better be answered by other mailing lists at the actual source (pun not intended): Go back to the beginning: http://www.gnu.org For reference: http://www.opensource.org/licenses/gpl-license.php http://danconia.org Alex Agerholm wrote: > Hi, > >

Text output formating

2002-09-19 Thread Roberto Ruiz
Hi there, God bless you. Is there a function inside the CGI module or someplace else that takes care of formating text for output. Let's say we are reading a text field from a database that may have strange simbols and/or html tags that you do not want to be interpreted as html by the browser rec

Re: Parsing an HTML document

2002-09-19 Thread WilliamGunther
In a message dated 9/19/2002 11:54:45 AM Eastern Daylight Time, [EMAIL PROTECTED] writes: > I want to parse an HTML document to get out the simple text from it. > I've tried with HTML::Parser, but with no success. The POD documentation is > not very good and I haven't seen any assignment as $t

Re: How can I call a Perl function from HTML?

2002-09-19 Thread MMKHAJAH
I believe this should aid you a little: http://search.cpan.org/author/DROLSKY/HTML-Mason-1.13/lib/HTML/Mason.pm for putting Perl into HTML directly ( like PHP, ASP ) - Original Message - From: "Mike Craig" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 19, 2002 10:0

How can I call a Perl function from HTML?

2002-09-19 Thread Mike Craig
Hi all, I have a perl function that I would like to call from inside a JavaScript function in a Web page. I want to pass it a string param and return an integer. The function is shown here is fabricated just to reduce the example to the bare minimum. #!/usr/bin/perl sub SomeFunction {

Re: Parsing an HTML document

2002-09-19 Thread MMKHAJAH
I think this should work: $content =~ s/\<[^\>]+?\>//g; - Original Message - From: "Octavian Rasnita" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 19, 2002 12:12 PM Subject: Parsing an HTML document > Hi all, > > I want to parse an HTML document to get out the s

Re: GPL - how does it work

2002-09-19 Thread Janek Schleicher
Mat Harris wrote at Thu, 19 Sep 2002 13:32:44 +0200: > i believe perl itself is released under the GPL? and we have a firewall > script that we compile to hide the source and then sell. we have never had > any comeback from it. perl -v prints at my computer an short declaration of Perl's licens

Parsing an HTML document

2002-09-19 Thread Octavian Rasnita
Hi all, I want to parse an HTML document to get out the simple text from it. I've tried with HTML::Parser, but with no success. The POD documentation is not very good and I haven't seen any assignment as $text = ... to see how to get the text. I have the text of an HTML file in a $content string

RE: What could go wrong with closing an FH ?

2002-09-19 Thread William McKee
Todd, I think you may want to read Randall's article about this very subject. Good luck, William -- Lead Developer Knowmad Services Inc. || Internet Applications & Database Integration http://www.knowmad.com -- To unsubscribe, e

Re: sort

2002-09-19 Thread William McKee
On 18 Sep 2002 at 20:43, Daniel Hurtado Brenner wrote: > OK. BUT HOW I CAN DO FOR THIS RESULTS BE: > 4|name four|address four| > 3|name three|address three| > 2|name two|address two| > 1|name|address| To use Fliptop's suggestion, you'll probably need to read your file into an array before doing

Net Daemon Next Result Issue

2002-09-19 Thread Darryl Schnell
I am working on a User Search Page that uses Net Daemon to connect to another system and gather username information. Everything appears to be working fine except the user search next results option (Code included below). Basically the program goes out connects to a daemon on another system to g

Re: GPL - how does it work

2002-09-19 Thread zentara
>>On Thu, 19 Sep 2002 at 08:20, Alex Agerholm opined: >> >> AA:I am writing a CGI application/script in Perl which I am going to sell >> AA:This application uses a few Perl modules (CGI.pm, Session.pm) which is >> AA:covered by the GPL. >> AA:How am I going to handle that, when I do not want to r

Weekly list FAQ posting

2002-09-19 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to <[EMAIL PROTECTED]> You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email addr

Re: GPL - how does it work

2002-09-19 Thread Mat Harris
i believe perl itself is released under the GPL? and we have a firewall script that we compile to hide the source and then sell. we have never had any comeback from it. On Thu, Sep 19, 2002 at 07:23:46 -0400, fliptop wrote: > On Thu, 19 Sep 2002 at 08:20, Alex Agerholm opined: > > AA:I am writin

Re: GPL - how does it work

2002-09-19 Thread fliptop
On Thu, 19 Sep 2002 at 08:20, Alex Agerholm opined: AA:I am writing a CGI application/script in Perl which I am going to sell AA:This application uses a few Perl modules (CGI.pm, Session.pm) which is AA:covered by the GPL. AA:How am I going to handle that, when I do not want to release my applica

Re: sort

2002-09-19 Thread fliptop
On Wed, 18 Sep 2002 at 20:43, Daniel Hurtado Brenner opined: DHB:For example: DHB:If i have a flat data base myfile.txt with this info: DHB: DHB:1|name|address| DHB:2|name two|address two| DHB:3|name three|address three| DHB:4|name four|address four| DHB:. (etc, etc) DHB: DHB:If i execute: DH

Re: Creating thumbnails (Newbie Question)...

2002-09-19 Thread fliptop
On Wed, 18 Sep 2002 at 20:28, Octavian Rasnita opined: OR:But is it a way, (maybe module?) that allow creating a thumbnail on the fly? OR: OR:For example: OR:I want to put more big images in a folder and if someone visits my page, OR:they will see a table with thumbnails created on the fly and in

RE: What could go wrong with closing an FH ?

2002-09-19 Thread rwarrenr
On the topic of FHs, I have a CGI script that opens a file handle and then in the HTML code I print out the results - open(FH, "grep blahblah /usr/local/apache/log |"); print "\n"; etc.. while { print "$_ "; } etc.. print ""; Now my problem is how do I time out the grep command?? Sometimes