Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Brian Clark

* Gaylen Fraley ([EMAIL PROTECTED]) [Jan 05. 2002 01:36]:

> But is there a PHP variable that holds the Server API?

How about a function that returns a string?

php_sapi_name()

PHP 4.x

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Friends help you move. Real friends help you move bodies.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Gaylen Fraley

But is there a PHP variable that holds the Server API?

--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com/
PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/

"Brian Clark" <[EMAIL PROTECTED]> wrote in message
20020105061814.GL17616@ganymede">news:20020105061814.GL17616@ganymede...
> * Gaylen Fraley ([EMAIL PROTECTED]) [Jan 05. 2002 00:22]:
>
> > Thanks :).  I thought I had figured out a way to determine if it was a
CGI
> > or module.  But it didn't work.  Is there a reliable way?
>
> Yes, stick  into a .php file and load it into your
> browser. Beside "Server API" it'll either say Apache or CGI.
>
> --
> Brian Clark | Avoiding the general public since 1805!
> Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
> This page intentionally left unblank.
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Brian Clark

* Gaylen Fraley ([EMAIL PROTECTED]) [Jan 05. 2002 00:27]:

> Just for curiosity, can HTTP Authentication be disabled in any other way, if
> PHP is installed as a module?  In other words, is there any other reason why
> the authentication might not work (under *nix), not IIS?

If this is Apache, HTTP Auth probably wouldn't be there if the server
doesn't use mod_auth, but on a default Apache install, it's going to be
there.. I couldn't imagine someone removing it purposely.

If you have shell access to the server you can do this to see if it's
available:

/path/to/httpd -l | grep mod_auth

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Backup not found: (A)bort, (R)etry, (P)ee your pants.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Brian Clark

* Gaylen Fraley ([EMAIL PROTECTED]) [Jan 05. 2002 00:22]:

> Thanks :).  I thought I had figured out a way to determine if it was a CGI
> or module.  But it didn't work.  Is there a reliable way?

Yes, stick  into a .php file and load it into your
browser. Beside "Server API" it'll either say Apache or CGI.

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
This page intentionally left unblank.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Gaylen Fraley

Just for curiosity, can HTTP Authentication be disabled in any other way, if
PHP is installed as a module?  In other words, is there any other reason why
the authentication might not work (under *nix), not IIS?

--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com/
PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/

"Gaylen Fraley" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Thanks :).  I thought I had figured out a way to determine if it was a CGI
> or module.  But it didn't work.  Is there a reliable way?
>
> --
> Gaylen
> [EMAIL PROTECTED]
> Home http://www.gaylenandmargie.com/
> PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/
>
> "Brian Clark" <[EMAIL PROTECTED]> wrote in message
> 20020105042749.GK17616@ganymede">news:20020105042749.GK17616@ganymede...
> > * Gaylen Fraley ([EMAIL PROTECTED]) [Jan 04. 2002 21:26]:
> >
> > > Is there any work around for using HTTP Authentication and PHP
installed
> as
> > > CGI?  I know how to make the detection, I'm hoping (probably in vain)
> that
> > > there is some way to make the two work.  Thanks.
> >
> > AFAIK, no, unless you use .htaccess based stuff. You may be able to use
> > an admin page to add users and write out the .htaccess file(s). Might be
> > possible..
> >
> > --
> > Brian Clark | Avoiding the general public since 1805!
> > Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
> > (E)ight (M)egabytes (A)nd (C)ontinually (S)wapping.
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Gaylen Fraley

Thanks :).  I thought I had figured out a way to determine if it was a CGI
or module.  But it didn't work.  Is there a reliable way?

--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com/
PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/

"Brian Clark" <[EMAIL PROTECTED]> wrote in message
20020105042749.GK17616@ganymede">news:20020105042749.GK17616@ganymede...
> * Gaylen Fraley ([EMAIL PROTECTED]) [Jan 04. 2002 21:26]:
>
> > Is there any work around for using HTTP Authentication and PHP installed
as
> > CGI?  I know how to make the detection, I'm hoping (probably in vain)
that
> > there is some way to make the two work.  Thanks.
>
> AFAIK, no, unless you use .htaccess based stuff. You may be able to use
> an admin page to add users and write out the .htaccess file(s). Might be
> possible..
>
> --
> Brian Clark | Avoiding the general public since 1805!
> Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
> (E)ight (M)egabytes (A)nd (C)ontinually (S)wapping.
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] CGI and HTTP Authentication

2002-01-04 Thread Brian Clark

* Gaylen Fraley ([EMAIL PROTECTED]) [Jan 04. 2002 21:26]:

> Is there any work around for using HTTP Authentication and PHP installed as
> CGI?  I know how to make the detection, I'm hoping (probably in vain) that
> there is some way to make the two work.  Thanks.

AFAIK, no, unless you use .htaccess based stuff. You may be able to use
an admin page to add users and write out the .htaccess file(s). Might be
possible..

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
(E)ight (M)egabytes (A)nd (C)ontinually (S)wapping.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] CGI and HTTP Authentication

2002-01-04 Thread Gaylen Fraley

Is there any work around for using HTTP Authentication and PHP installed as
CGI?  I know how to make the detection, I'm hoping (probably in vain) that
there is some way to make the two work.  Thanks.

--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com/
PHP KISGB v3.02 Guest Book http://www.gaylenandmargie.com/phpwebsite/




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]