ssi and redirects

2002-04-28 Thread Mat Harrison
i have a simple redirect and included it using #exec cgi in an html page. when i exec the page, i't doesn't redirect, instead it prints a link to the redirect target. how can i make a script redirect using SSI? -- Matthew Harrison Webmaster www.genestate.com [EMAIL PROTECTED] -- To unsubscrib

Some more newbie Questions!

2002-04-28 Thread Jamie
Hi, first thanks to everyone for all the help :-) Now i'm struggling on, (no thanks to apache :-( ) Now i've been writing my raw html statements in print" "; blocks. I thought i might clean it up, especially the table stuff. However i've hit a wall: I Want to do something like below, but the

Re: Some more newbie Questions!

2002-04-28 Thread Matthew Weier O'Phinney
On Sun, 28 Apr 2002 00:53:37 -0400, Jamie wrote: > I Want to do something like below, but the SetupCitiesComboBox doesn't > work as expected in the table. It displays a combo box before the table > is constructed, NOT in it, but in the block it just displays a 1. > The SetupCitiesComboBox sub just

Re: problem with #exec

2002-04-28 Thread Matthew Weier O'Phinney
On Sat, 27 Apr 2002 22:11:18 -0400, Cms wrote: > I have the on our web page, > this error is display were the tag is: > [an error occurred while processing this directive] on the website, > and this is the error in the log file; > > [Sat Apr 27 20:37:18 2002] > httpd: exec used but not allowed >

Delete preceding zeroes

2002-04-28 Thread Rene Verharen
Hi, Where can I find some information on how to convert a alphanumeric string to a number ? My problem : $waarde = "0073"; # The value in $waarde comes from a file needs to be converted to $waarde = 73; Pleas point me in the right direction. Kind regards, Rene Verharen

Re: Delete preceding zeroes

2002-04-28 Thread Marty Landman
At 03:40 PM 4/28/02 +0200, Rene Verharen wrote: >Where can I find some information on how to convert a alphanumeric string >to a number ? Perl does this automagically when you use the variable in numeric context. >My problem : > >$waarde = "0073"; # The value in $waarde comes from a file

Re: problem with #exec

2002-04-28 Thread Octavian Rasnita
If that message appears in the web page, this means that SSI is permitted. Make sure you put something like: So leave a space after the last " before the --> Try this and let us if it works. Teddy, [EMAIL PROTECTED] - Original Message - From: "Matthew Weier O'Phinney" <[EMAIL PROTECTED

Re: ssi and redirects

2002-04-28 Thread Joshua Hayden
It doesn't work because the HTML Content-type has already been sent to the browser when it started load the .shtml page. You could use javascript. Some people are afraid do use javascript because old browsers don't understand it. If someone

RE: ssi and redirects

2002-04-28 Thread Mat Harrison
ok, i wouldn't mind using javascript but I don't know how it would tie in with my scripts. I want this cgi include to scan for a cookie, check the values etc and either print the membership links or redirect to the login page. -Original Message- From: Joshua Hayden [mailto:[EMAIL PROTECTE

Re: ssi and redirects

2002-04-28 Thread Michael Kelly
On 4/28/02 11:08 AM, Mat Harrison <[EMAIL PROTECTED]> wrote: > ok, i wouldn't mind using javascript but I don't know how it would tie in > with my scripts. I want this cgi include to scan for a cookie, check the > values etc and either print the membership links or redirect to the login > page.

Re: SSI

2002-04-28 Thread John Brooking
I haven't used SSI a lot, but my understanding, borne out by my experience so far, is as follows. The SSI simply pulls in the content from the included file or command and inserts it at the place you did the insert. So whatever HTML you would have put there without doing SSI, is what goes in the i

Re: I can't get this to run!

2002-04-28 Thread John Brooking
--- drieux <[EMAIL PROTECTED]> wrote: > > On Saturday, April 27, 2002, at 05:32 , Alex Swavely > wrote: > > > This was exactly the problem. Not having dos2unix > installed, I just > > zipped > > it and then ran unzip with the -a option (convert > files) and it worked > > smashingly. > > now

Re: Multi thread ? Programming Style ? [with update]

2002-04-28 Thread John Brooking
Connie, I don't really know the answer to this, as I have almost 0 experience with fork, and none within the CGI context. If this script is called from a web page and has to wait for something, but you don't know when it will happen, maybe fork is a good idea, otherwise the client browser is go

Re: I can't get this to run!

2002-04-28 Thread drieux
On Sunday, April 28, 2002, at 05:25 , John Brooking wrote: > --- drieux <[EMAIL PROTECTED]> wrote: [..] >> is that if people did the decent bit >> >> #!/usr/bin/perl -w >> use strict; >> >> then whether it is dos or unix formatted - it will >> still work > > How do you mean "it will st

Re: ssi and redirects

2002-04-28 Thread Joshua Hayden
> ok, i wouldn't mind using javascript but I don't know how it would tie in > with my scripts. You'd just have the script print the javascript to the browser. if ($cookie_and_goodvalues) { print qq[Here's the membership links...]; } else { print < HTML } BTW, Can you get cookie values when u