Re: Re: dynamic update part of a table

2003-06-30 Thread Dennis Stout
> Yeah, I think I am finally getting this... > so in my template.html file, I write this: > ...* > > and in a perl script, (I am not using sql, in fact, I > am just reading from a text file) I read from the > file, assign the proper html tag value* to a variable > $quote_of_the_day* > and then I us

Re: Re: dynamic update part of a table

2003-06-30 Thread Dennis Stout
> okay...here is another point...say this is my main > page, I want the user to c it when it browses to > http://localhost/ > if I am using an Apache2 for win32 server...is it > possible for the server to call my perl script when > the user browses to http://localhost/ (no localhost of > course) ..

Re: Re: dynamic update part of a table

2003-06-30 Thread Ling F. Zhang
> Go read up on that, I highly doubt that exact context will work. And as I > said, I work with Apache 1.3, not 2.0. They got some more work to do on the > 2.0 series yet before I even think about switching... I totally agree...the only reason I installed 2.0 in the first place is I didn't want t

Re: Re: dynamic update part of a table

2003-06-30 Thread Dennis Stout
> I totally agree...the only reason I installed 2.0 in > the first place is I didn't want the trouble of > compiling and installing the WebDAV module...which as > it turns out, never really worked when I try to use m$ > w2k's own client...well, that belongs to another forum... I have a question r

Re: Re: dynamic update part of a table

2003-06-30 Thread Ling F. Zhang
> > PermanentRedirect "localhost/cgi-bin/blah.cgi" > This both work and doesn't work... the correct line should be: RedirectPermanent /index.html http://localhost/cgi-bin/blah.cgi the problem is that the 2nd argument of RedirectPermanent must be an URL (not a URL path)...what if someone is bro

Re: Perl CGI Newbie

2003-06-30 Thread Kristofer Hoch
Mark, Try this. It is completly untested so you may have to tweak it a bit. I wrote it this morning before having coffee. Kristofer #!/usr/bin/perl use warnings; use strict; use CGI::Carp 'fatalsToBrowser'; use CGI; sub writeToFile{ my $result = shift || return; # Returns if undefined open

suid

2003-06-30 Thread Octavian Rasnita
Hi, What should I need to do if I want one or more of my CGI programs to be run by Apache user but in fact to run them by my own account? I want to do this because I need to upload files, create directories and other tasks with some programs, and Apache user doesn't have the right permissions for

RE: suid

2003-06-30 Thread Scot Robnett
I'm not 100% sure of the security ramifications of this, but I believe you chmod your script to 4711 and change your shebang to #!/usr/bin/perl -w -U. - Scot Robnett inSite Internet Solutions [EMAIL PROTECTED] -Original Message- From: Octavian Rasnita [mailto:[EMAIL PROTECTED] Sent:

Re: perl-modules

2003-06-30 Thread Kevin
> Hello, > > is there a way of finding out, which modules are installed on a remote > machine using a script? > > there's this scenario: > > I will have a website up soon, with CGI's - but I don't know, what > modules are installed... so I'd write a script, that shows / lists all > available

Regex question.

2003-06-30 Thread Sara
I have a database with the following fields. lname fnam M acct# mrmbirth Postdate Post# drln drfn m disch DOE,JOHN,R,00037839842,207337,02151956,04072003,01980,LastName,FirstName,L,04102003 I have a very simple script which splits the delimiter , and sh