AW: CGI-BIN Help/Advise - editing a file - HOW ?

2010-03-15 Thread Thomas Bätzler
newbie01 perl asked: > At the moment, I have some sort of INI/config file that I edit manually > via vi. These config files are "simple" delimited file that are used by > some of the scripts running on the server. > > I want to be able to the same thing via cgi-bin, can anyone advise where > to s

RE: export to text file

2005-06-08 Thread Thomas Bätzler
Sara <[EMAIL PROTECTED]> suggested: > I always used 'phpmyAdmin' for such tasks. Give it a try. Great idea! That's like handing loaded guns to people while telling them to keep them pointed at their feet ;-) But to get back to Glauco's message: > > I do a query to mysql table and view the result

RE: Query string to URL?

2005-03-07 Thread Thomas Bätzler
> I need to translate a URL with a POST query string into a URL > like this: > > http://mysite.com/pages?id=1234 > should become > http://mysite.com/pages/1234 OTTOH: RewriteRule ^/pages/([^/]+)/?$/pages?id=$1 [QSA,NS,L] Or even easier, leave your URL like that and parse the PATH_INFO

RE: cgi scripts as root or similar - best method

2005-02-25 Thread Thomas Bätzler
Chris Devers <[EMAIL PROTECTED]> suggested: > Have you considered prefixing that command with `sudo`, and > going into the sudoers file to allow the www user that privilige? > > Of course, it would be a bit more complicated than that, as > sudo will prompt for a password that you have to pass ba

RE: Perl out to PHP

2005-02-04 Thread Thomas Bätzler
Ing. Branislav Gerzo <[EMAIL PROTECTED]> asked: > user come to website, write in textbox some IPs, I want send > this input to my perl script (parse that text, takes IPs, do > operation with them - insert them to database, check > them...), and send results via _PHP_ to user. I have a really na

RE: Perl out to PHP

2005-02-04 Thread Thomas Bätzler
Ing. Branislav Gerzo <[EMAIL PROTECTED]> asked: > 2. on my server in uppercase.cgi all text change to uppercase and this >result I want send back via _PHP_ to user. Theoretically it should suffice to make sure that your output has the proper MIME type for a PHP document, i.e. "application/x-ht

RE: cgi script that will auto-submit to another cgi

2004-09-13 Thread Thomas Bätzler
Hi, Johann Tagle <[EMAIL PROTECTED]> > I have a script that receives certain data from an html form, > processes them, then submits the processed data to another > script. Problem is, I want it to do so without having to > click anything anymore. [...] > Any ideas? Have a look at LWP and in

RE: segmentation fault?

2004-04-05 Thread Thomas Bätzler
Hi, Octavian Rasnita <[EMAIL PROTECTED]> asked: > Does anyone know what could be a reason a perl program gives > a segmentation error each time I run it under Linux? This sounds like one of the libraries you're using was built for a different version of Perl or with a different set of libraries.

RE: Email text encoding

2004-02-11 Thread Thomas Bätzler
Hi, Jan Eden <[EMAIL PROTECTED]> wrote: > and thanks for all the previous suggestions regarding email > modules. Now it turned out that my ISP refuses to let me > install *any* additional Perl module on the server, so I have > to use sendmail. Well, I'm sure he won't let you install a module i

RE: using crontab

2004-01-13 Thread Thomas Bätzler
Octavian Rasnita <[EMAIL PROTECTED]> asked: > Does anyone know what line I neet to print after using the > > crontab -e > > command, in order to run a program every half an hour, at 0 > minutes and at 30 minutes? You need to print out the crontab manpage and read it. If you don't have them on

RE: javascript error

2003-12-09 Thread Thomas Bätzler
mark o' sullivan <[EMAIL PROTECTED]> asked: > I'm trying to include javascript code in my perl script but > I'm getting the > following error 'Can't find string terminator "EOF" anywhere > before EOF at calendar.pl > Anyone have any ideas why I might be getting this error. Usually that's either

RE: reading from address bar

2003-12-01 Thread Thomas Bätzler
Hello Mark, > Any ideas is it possible to read the address bar through perl alone? Assuming that you meant a web browser's address bar running on a client you don't control, no. And that's not even considering that there are clients without address bars ;-) But why would you want to do that, any

RE: Empty values

2003-12-01 Thread Thomas Bätzler
Hi Mark, > This may be a very simple problem but I just can't see the > solution. > # prepare and execute query > my $sth = $dbh->prepare("SELECT Time,Person > FROM bookingform > WHERE Date = '$totalYear'"); > $sth->execute(); > > while(my $Pers

RE: Perl Form Mail

2003-12-01 Thread Thomas Bätzler
Hello Stephen, > Does anyone have any recommendations for a perl cgi script that will > accept input from a HTML form and verify that the form input > isn't going to do something nasty? > > At present the CGI we are using is based on form-mail.pl which is > apparently notorious for security hole

RE: use CGI qw(:cgi-lib :standard);

2003-11-12 Thread Thomas Bätzler
Yehezkiel B Syamsuhadi <[EMAIL PROTECTED]> asked: > What does this line mean? > > use CGI qw(:cgi-lib :standard); The qw operator makes a text into a list by splitting at the whitespace. That list is passed to the module as an argument. In CGI.pm's case these arguments are used to specify what s

RE: Finding the current path

2003-10-27 Thread Thomas Bätzler
Octavian Rasnita [mailto:[EMAIL PROTECTED] wrote: > Thank you, but $0 will tell me the path and the file name of > the script.pl file, not the path from where I ran the script. So the FindBin module is not what you need? > Now, I could run pwd and get what I want, but in fact I need > to run t