Re: Saving param after new recall of a cgi script

2009-12-01 Thread Rene Schickbauer
Marek wrote: Hi! How do I save the parameters from the first input? I tried everything, but there is nothing kept in my array. Do I have to save these parameters into an external file? You could also use Storable Base64 to encode your data structure into a Base64 string. Put this string

Re: Loading results (via ajax) from a CGI

2009-12-01 Thread Rene Schickbauer
bu...@alejandro.ceballos.info wrote: I have a CGI (made with cgi.pm) that receive a parameters, check against a DB and returns a text with not found or OK found message. Pretty simple. In other site, i have an ajax routine that sends the parameters (via get) and is expected to capture the

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 Rene Schickbauer
Hi! Now, the thing is that the PHP scripts also connect to the database and, presumably, uphold the connection over the duration of the session so as not to disconnect and reconnect continually when the user browses the website. My question is - is it possible to do the same thing with

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-01 Thread Greg Jetter
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 before that I've