Re: How to display multiple web pages depending on

2003-07-28 Thread Wiggins d'Anconia
Octavian Rasnita wrote: It is not very hard. You can use an sql statement like this: my $sth = $dbh->prepare("select id, name, age, bla from table order by name limit ?, ?"); $sth->execute($skip, $show); You can get the number of rows you want to skip ($skip) and the number of rows you want to sh

Re: CGI Authentication question

2003-07-28 Thread Wiggins d'Anconia
Tim Brom wrote: I am writing a script for a company to use to manage a section of their website themselves. I have the script working, except I need some sort of authentication mechanism and I was wondering what my options were. This company is using their ISP for their hosting, and it's one of

Re: return(bless $rant, $class) || Fwd: PHP vs Perl

2003-07-28 Thread drieux
On Monday, Jul 28, 2003, at 12:24 US/Pacific, Todd W. wrote: [..] Remember, I am of the "this AND that" philosophy, so you can walk, run, dirt bike, or staddle two bandwagons at the same time if you like, and, as long as you get where you are going, I will agree that it was done correctly. [..]

Re: return(bless $rant, $class) || Fwd: PHP vs Perl

2003-07-28 Thread Todd W.
"Drieux" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > So you will forgive me if I do not opt to jump onto the > new band wagon that 'all developers' should wax their > surfBoards, because is the Next Big Wave that will > solve all problems end to end, as I will counter, your >

Re: How to add modul directory to @INC

2003-07-28 Thread drieux
On Monday, Jul 28, 2003, at 04:12 US/Pacific, <[EMAIL PROTECTED]> wrote: [..] So I moved my module to /usr/lib/perl/ and it work o.k. not a recommended strategy, trust me. you may want to start with reading perldoc h2xs perldoc perlmod for a start on how to think about creating yo

Re: How to display multiple web pages depending on

2003-07-28 Thread Octavian Rasnita
It is not very hard. You can use an sql statement like this: my $sth = $dbh->prepare("select id, name, age, bla from table order by name limit ?, ?"); $sth->execute($skip, $show); You can get the number of rows you want to skip ($skip) and the number of rows you want to show ($show) using the CG

Re: return(bless $rant, $class) || Fwd: PHP vs Perl

2003-07-28 Thread drieux
On Sunday, Jul 27, 2003, at 20:03 US/Pacific, Todd W. wrote: "Drieux" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [..] But First off - COOL RANT! I was hoping that _some_ day I could string a few sentences together as well as you do =0) [..] flattery will get you out of some proble

Re: need help/ advice

2003-07-28 Thread drieux
On Sunday, Jul 27, 2003, at 19:32 US/Pacific, Luinrandir Hernsen wrote: [..] I will try your suggestion Is there another way to do this? with out the LWP::UserAgent Quite the Correct Question! Yes, but it would involve things like actually doing your own use Socket; use FileHa

RE: PHP vs Perl

2003-07-28 Thread Scot Robnett
> A language which I need to fight a lot with in order to find the right syntax > for doing something is not a very clear and easy to use programming language. What are you fighting with? I don't really understand this point - if you want to talk about languages that place

Re: How to display multiple web pages depending on

2003-07-28 Thread Dennis Stout
> I want to write a subroutine to select the contain of MySQL database and > display the result on the browser. > But I'm not sure how to get it create multiple pages if the list exceeds > a given number; say 50, and create a link to the next page: like "Next" > or "1 2 3". I think it should be eas

Re: PHP vs Perl

2003-07-28 Thread Gunther Birznieks
Octavian, In some respects I believe you are correct. Here are my 2cents... 1) It is really not good to enable mod_perl by default. Doing so would dramatically increase the size of the Apache binary. Enabling all scripts to run through Apache::Registry would break half the scripts that exist o

How to add modul directory to @INC

2003-07-28 Thread mygrps
It is my first time writing a module. After executing a script that requires my module, I got an error "blabla not found in /usr/lib/perl etc.". So I moved my module to /usr/lib/perl/ and it work o.k. Recently I read somewhere that, instead of always moving my modules to /usr/lib/perl/, I could p

Re: PHP vs Perl

2003-07-28 Thread Octavian Rasnita
Of course I will remain subscribed and I am not gonna start learning PHP immediately. I am thinking to learn it because in my country there are only 2 books for learning perl in my native language and even though I don't need them, there are very few perl programmers and almost no jobs for perl dev

How to display multiple web pages depending on

2003-07-28 Thread mygrps
Hello! I want to write a subroutine to select the contain of MySQL database and display the result on the browser. But I'm not sure how to get it create multiple pages if the list exceeds a given number; say 50, and create a link to the next page: like "Next" or "1 2 3". I think it should be eas

CGI Authentication question

2003-07-28 Thread Tim Brom
I am writing a script for a company to use to manage a section of their website themselves. I have the script working, except I need some sort of authentication mechanism and I was wondering what my options were. This company is using their ISP for their hosting, and it's one of those really go