problems with 'require'

2009-11-28 Thread Paweł Prędki
Hey, I've been using simple CGI scripts to make some things on my website require less human touch and some of them require mysql database connection. I've started with only one such scripts but now there are more so I've decided to move the connection data (table name, database name,

Re: problems with 'require'

2009-11-29 Thread Paweł Prędki
Matt Whipple pisze: Paweł Prędki wrote: file mydbtest.pm package dbredwings; For organization reasons, you should probably make the package name match the file name my $platform = mysql; my $database = dbplayers; my $host = localhost; my $tablename = players; my

cgi and perl database interaction

2009-12-01 Thread Paweł Prędki
Hello, I have a website that uses a php engine for news generation and, basically, most of the other pages. It uses a MySQL database to store the majority of the page contents (i.e. news). However, I've written before that I've started using simple CGI scripts in Perl to make some activities

Re: cgi and php database interaction

2009-12-01 Thread Paweł Prędki
I changed the topic of the e-mail. Sorry for the confusion. Paweł Prędki pisze: Hello, I have a website that uses a php engine for news generation and, basically, most of the other pages. It uses a MySQL database to store the majority of the page contents (i.e. news). However, I've written

Re: cgi and perl database interaction

2009-12-01 Thread Paweł Prędki
Hi! Thanks for the quick reply. I know it would be much simpler if I just installed mod_perl and some kind of a framework (I've started learning Mason and I think I would be able to do what I want using this solution ) and rewrote the whole webpage but that's too much work and it's really not

Re: cgi and perl database interaction

2009-12-02 Thread Paweł Prędki
Greg Jetter pisze: On Tuesday 01 December 2009 2:52:38 pm Paweł Prędki wrote: Hello, I have a website that uses a php engine for news generation and, basically, most of the other pages. It uses a MySQL database to store the majority of the page contents (i.e. news). However, I've written