RE: finding protocal script is called with

2003-01-22 Thread Toby Stuart
> -Original Message- > From: Dan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 2:14 PM > To: Toby Stuart > Cc: '[EMAIL PROTECTED]' > Subject: Re: finding protocal script is called with > > > Below works like a charm, thanks for the i

Re: finding protocal script is called with

2003-01-22 Thread Dan
Below works like a charm, thanks for the idea! Now two questions more come to mind : 1 - would url() work faster than self_url() since it doesn't have to use the query string or is url() fetched by taking self_url() and cutting it down, IE more steps? 2 - Is there any way to shorten/speed/improve

Re: finding protocal script is called with

2003-01-22 Thread Dan
simran wrote: Assuing you are using apache and only ever run ssl over port 443 (which is the standard) you could use the SERVER_PORT environment variable... aka: $secure = $ENV{'SERVER_PORT'} eq '443' ? 1 : 0; I may not have control over that, but that's agood idea if I did if ($secure

Re: finding protocal script is called with

2003-01-22 Thread simran
Assuing you are using apache and only ever run ssl over port 443 (which is the standard) you could use the SERVER_PORT environment variable... aka: $secure = $ENV{'SERVER_PORT'} eq '443' ? 1 : 0; if ($secure) { # do secure stuff... } else { ... } On Thu, 2003-01-23 at 13:19

RE: finding protocal script is called with

2003-01-22 Thread Toby Stuart
> -Original Message- > From: Dan [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 23, 2003 1:19 PM > To: [EMAIL PROTECTED] > Subject: finding protocal script is called with > > > Hello, here's one for you all. > > What is the fastest way to find out what protocal a script is being