Re: [PHP] PHP and Apache configuration

2009-01-19 Thread Török Alpár
2009/1/19 R B 

> I like this apache solution, but if i put
>
> SetEnvIf Referer "^http://www.yourdomain.com"; local_referal
>
> Then i can access the file putting this path in the URL:
>
>  http://www.yourdomain.com/xyz/scriptfile.php
> And i don´t want the script to be access by the url. That is the main
> problem.
>
No, you can't , not if you do it properly. imagine that you have a folder
like /srv/www/htdocs that is the document root of you web server, and you
have /srv/www/includes, just annother file. You can have al your protected
files ther, and include them from files that are in the document root of
your web server, and are public. If you don't want this sepparation, you can
use a .htaccess file in the folder, and deny the folder from all. (i recall
hearing/reding that this actually works even if allow overrule is off ,
didn't actually tryed it, but i imagine is more of a hack )

>
> Thanks
>
>
> On Mon, Jan 19, 2009 at 1:38 PM, Richard Heyes  wrote:
>
> > > ...
> >
> > This may be of some help. It's from the Apache website and only allows
> > access if the Referer header is sent by the browser and is
> > www.yourdomain.com, ie. Direct access is not permitted:
> >
> > ###
> > SetEnvIf Referer "^http://www.yourdomain.com"; local_referal
> >
> > Order Deny,Allow
> > Deny from all
> > Allow from env=local_referal
> > ###
> >
> > --
> > Richard Heyes
> >
> > HTML5 Graphing for Firefox, Chrome, Opera and Safari:
> > http://www.rgraph.org (Updated January 17th)
> >
>



-- 
Torok, Alpar Istvan


Re: [PHP] PHP and Apache configuration

2009-01-19 Thread R B
I like this apache solution, but if i put

SetEnvIf Referer "^http://www.yourdomain.com"; local_referal

Then i can access the file putting this path in the URL:

 http://www.yourdomain.com/xyz/scriptfile.php
And i don´t want the script to be access by the url. That is the main
problem.

Thanks


On Mon, Jan 19, 2009 at 1:38 PM, Richard Heyes  wrote:

> > ...
>
> This may be of some help. It's from the Apache website and only allows
> access if the Referer header is sent by the browser and is
> www.yourdomain.com, ie. Direct access is not permitted:
>
> ###
> SetEnvIf Referer "^http://www.yourdomain.com"; local_referal
>
> Order Deny,Allow
> Deny from all
> Allow from env=local_referal
> ###
>
> --
> Richard Heyes
>
> HTML5 Graphing for Firefox, Chrome, Opera and Safari:
> http://www.rgraph.org (Updated January 17th)
>


Re: [PHP] PHP and Apache configuration

2009-01-19 Thread ceo

I doubt that you can use re-direct and do what you want, since a re-direct does 
just that:

re-direct the USER to the URL.



What you *could* do is get rid of the re-direct and just 
include('scriptfile.php'); by using ForceType on imagefile.jpg to be 
application/x-httpd-php



Then scriptfile.php can be outside the webtree where it is inaccessible by 
definition.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Apache configuration

2009-01-19 Thread Kyle Terry
On Mon, Jan 19, 2009 at 11:38 AM, Richard Heyes  wrote:

> > ...
>
> This may be of some help. It's from the Apache website and only allows
> access if the Referer header is sent by the browser and is
> www.yourdomain.com, ie. Direct access is not permitted:
>
> ###
> SetEnvIf Referer "^http://www.yourdomain.com"; local_referal
>
> Order Deny,Allow
> Deny from all
> Allow from env=local_referal
> ###
>
> --
> Richard Heyes
>
> HTML5 Graphing for Firefox, Chrome, Opera and Safari:
> http://www.rgraph.org (Updated January 17th)
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> Richard's solution is much better.


-- 
Kyle Terry | www.kyleterry.com


Re: [PHP] PHP and Apache configuration

2009-01-19 Thread Richard Heyes
> ...

This may be of some help. It's from the Apache website and only allows
access if the Referer header is sent by the browser and is
www.yourdomain.com, ie. Direct access is not permitted:

###
SetEnvIf Referer "^http://www.yourdomain.com"; local_referal

Order Deny,Allow
Deny from all
Allow from env=local_referal
###

-- 
Richard Heyes

HTML5 Graphing for Firefox, Chrome, Opera and Safari:
http://www.rgraph.org (Updated January 17th)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Apache configuration

2009-01-19 Thread Kyle Terry
On Mon, Jan 19, 2009 at 11:28 AM, R B  wrote:

> Hello,
>
> I need that every time someone access one image file in my server, then
> redirect to a php file.
>
> I make this well with:
>
> Redirect 301 imagefile.jpg scriptfile.php
>
> But i need that the file scriptfile.php can only be accessed by this
> redirect command.
>
> If someone try to access directly from the url
> http://www.mydomain.com/xyz/scriptfile.php, i want to send an error
> access.
>
> I tried with:
>
> 
> Order allow,deny
> Deny from all
> 
> But with this configuration, the redirect command cant access the
> scriptfile.php
>
> Do you have the solution for this?
>
> thanks.
>

You could use sessions. Start a session and set a redirect true variable of
some sort.






Get the idea?

-- 
Kyle Terry | www.kyleterry.com


[PHP] PHP and Apache configuration

2009-01-19 Thread R B
Hello,

I need that every time someone access one image file in my server, then
redirect to a php file.

I make this well with:

Redirect 301 imagefile.jpg scriptfile.php

But i need that the file scriptfile.php can only be accessed by this
redirect command.

If someone try to access directly from the url
http://www.mydomain.com/xyz/scriptfile.php, i want to send an error access.

I tried with:


Order allow,deny
Deny from all

But with this configuration, the redirect command cant access the
scriptfile.php

Do you have the solution for this?

thanks.


Re: [PHP] PHP and Apache

2008-06-24 Thread David Robley
R B wrote:

> The people that will install this system, don´t have programming
> knowledge. They have a website, buy don´t have knowledge of
> configurations.
> 
> If i add all the lines, it don´t works, unless the last line is the
> correct for that particular server.
> 
> 
> 
> 
>>
>>
>> Why not just read the manual and add the appropriate line for your
>> version of PHP ?
>>
>> Makes the most sense.
>>
>> Or add all the lines.
>>
>> Pretty much an Apache list question though.
>>
>> Wolf
>>
Like the man said - but for a little more help, look at
http://httpd.apache.org/docs/2.2/mod/core.html#ifmodule



Cheers
-- 
David Robley

Outlaw junk mail, and save the trees!
Today is Setting Orange, the 29th day of Confusion in the YOLD 3174. 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Apache

2008-06-23 Thread R B
The people that will install this system, don´t have programming knowledge.
They have a website, buy don´t have knowledge of configurations.

If i add all the lines, it don´t works, unless the last line is the correct
for that particular server.




>
>
> Why not just read the manual and add the appropriate line for your version
> of PHP ?
>
> Makes the most sense.
>
> Or add all the lines.
>
> Pretty much an Apache list question though.
>
> Wolf
>


Re: [PHP] PHP and Apache

2008-06-23 Thread Wolf
 R B <[EMAIL PROTECTED]> wrote: 
> Hello,
> 
> I´m developing a PHP system that needs one of these lines in the .htaccess,
> depending of the server configuration:
> 
> AddHandler application/x-httpd-php .xyz
> or
> 
> AddHandler application/x-httpd-php4 .xyz
> 
> or
> 
> AddHandler application/x-httpd-php5 .xyz
> 
> How can i detect "on the fly" which line i have to use?

Why not just read the manual and add the appropriate line for your version of 
PHP ?

Makes the most sense.

Or add all the lines.

Pretty much an Apache list question though.

Wolf

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and Apache

2008-06-23 Thread R B
Hello,

I´m developing a PHP system that needs one of these lines in the .htaccess,
depending of the server configuration:

AddHandler application/x-httpd-php .xyz
or

AddHandler application/x-httpd-php4 .xyz

or

AddHandler application/x-httpd-php5 .xyz

How can i detect "on the fly" which line i have to use?


Re: [PHP] PHP and Apache

2006-01-16 Thread Erik Saline
Thanks.  I need to hone my google skills.  I spent hours looking.

Never thought to try the wiki pages.


Erik

> www.google.com
> 
> or
> 
> http://fedoraproject.org/wiki/
> 
> But it's in test yet.
> 
> Best regards
> Rodolfo Andrade
> - Original Message -
> From: Erik Saline
> To: Curt Zirzow ; php-general@lists.php.net
> Sent: Monday, January 16, 2006 3:06 PM
> Subject: Re: [PHP] PHP and Apache
> 
> 
> Where do I find fc5?
> 
> 
> Erik
> 
>> On Sun, Jan 15, 2006 at 09:34:40AM -0800, Erik Saline wrote:
>>> Using Fedora Core 4 using the already Apache and Mysql.  I tried using
> the
>>> already installed PHP but mysql support was not setup or shown when using
>>> phpinfo().
>>> 
>>> I recompiled PHP with the following.
>>> 
>>> './configure' '--with-mysqli=/usr/bin/mysql_config'
>>> '--with-mysql=/usr/bin/mysql_config' '--enable-sockets'
>>> '--with-jpeg-dir=/usr' '--enable-exif' '--with-apx'
>> 
>> First off, --with-mysql doesn't expect a mysql_config as an option
>> but the $prefix directory were mysql was installed.
>> 
>>> 
>>> Now all my PHP scripts do not work here is the error I find in the Apache
>>> Error logs.
>>> 
>>> [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] (8)Exec format
> error:
>>> exec of '/var/www/cgi-bin/create_user.php' failed,
>>> [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] Premature end of
>>> script headers: create_user.php,>
>>> 
>> 
>> This is a sign that your in rpm hell.
>> 
>>> I can use php -i >phpinfo.html and see that PHP works and that mysql is
> now
>>> loaded.
>>> I added this to my httpd.conf
>> 
>> but what does assuming your 'whatis database is upto date':
>> 
>> 'locate php | grep bin' give?
>> 'locate libphp' give?
>> 'locate php' give?
>> 
>> And from those locates:
>> ls -laF 
>> 
>> 
>> My Guess:
>> you will have a:
>> /usr/bin/php
>> /usr/local/bin/php
>> /path/to/apache/modules/libphp(45).php
>> 
>> Once that is figured out, what about the extenstions? is there any
>> thing in your php.ini that specifies an extension_dir and/or
>> extension=something.so?
>> 
>> Last but should be first, check logs, turn on php.ini:error_log to
>> syslog, turn on display_startup_errors, check /var/log/messages, if
>> that doesnt work make sure php.ini:error_reporting  is E_ALL. If
>> that doesn't work.. are you sure you are editing the correct
>> php.ini for the environment you are using?
>> 
>>> 
>>> AddType application/x-httpd-php .php
>> 
>> This is for using php as a moudule, the error you are getting is
>> based on php ran as a cgi.
>> 
>> 
>>> # which php at the command line returns
>>>  /usr/local/bin/php
>> 
>> try: /usr/bin/php -i
>> 
>>> 
>>> Do I need to add something in the httpd.d to direct it to
> /usr/local/bin/php
>>> instead of the intial defalt where
>>> # which php returned
>>> /usr/bin/php
>> 
>> Ah, yeah, well, the thing you need to do is:
>> 1) either get rid of the system's installation of php and do the
>>installation by hand. Getting rid of php via the systems
>>installation process. Be forwarned, do this with care.
>> 
>> 2) use fc5
>> 
>> 
>> Curt.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Apache

2006-01-16 Thread Rodolfo Andrade
www.google.com

or

http://fedoraproject.org/wiki/

But it's in test yet.

Best regards
Rodolfo Andrade
- Original Message - 
From: Erik Saline
To: Curt Zirzow ; php-general@lists.php.net
Sent: Monday, January 16, 2006 3:06 PM
Subject: Re: [PHP] PHP and Apache


Where do I find fc5?


Erik

> On Sun, Jan 15, 2006 at 09:34:40AM -0800, Erik Saline wrote:
>> Using Fedora Core 4 using the already Apache and Mysql.  I tried using
the
>> already installed PHP but mysql support was not setup or shown when using
>> phpinfo().
>>
>> I recompiled PHP with the following.
>>
>> './configure' '--with-mysqli=/usr/bin/mysql_config'
>> '--with-mysql=/usr/bin/mysql_config' '--enable-sockets'
>> '--with-jpeg-dir=/usr' '--enable-exif' '--with-apx'
>
> First off, --with-mysql doesn't expect a mysql_config as an option
> but the $prefix directory were mysql was installed.
>
>>
>> Now all my PHP scripts do not work here is the error I find in the Apache
>> Error logs.
>>
>> [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] (8)Exec format
error:
>> exec of '/var/www/cgi-bin/create_user.php' failed,
>> [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] Premature end of
>> script headers: create_user.php,>
>>
>
> This is a sign that your in rpm hell.
>
>> I can use php -i >phpinfo.html and see that PHP works and that mysql is
now
>> loaded.
>> I added this to my httpd.conf
>
> but what does assuming your 'whatis database is upto date':
>
> 'locate php | grep bin' give?
> 'locate libphp' give?
> 'locate php' give?
>
> And from those locates:
> ls -laF 
>
>
> My Guess:
> you will have a:
> /usr/bin/php
> /usr/local/bin/php
> /path/to/apache/modules/libphp(45).php
>
> Once that is figured out, what about the extenstions? is there any
> thing in your php.ini that specifies an extension_dir and/or
> extension=something.so?
>
> Last but should be first, check logs, turn on php.ini:error_log to
> syslog, turn on display_startup_errors, check /var/log/messages, if
> that doesnt work make sure php.ini:error_reporting  is E_ALL. If
> that doesn't work.. are you sure you are editing the correct
> php.ini for the environment you are using?
>
>>
>> AddType application/x-httpd-php .php
>
> This is for using php as a moudule, the error you are getting is
> based on php ran as a cgi.
>
>
>> # which php at the command line returns
>>  /usr/local/bin/php
>
> try: /usr/bin/php -i
>
>>
>> Do I need to add something in the httpd.d to direct it to
/usr/local/bin/php
>> instead of the intial defalt where
>> # which php returned
>> /usr/bin/php
>
> Ah, yeah, well, the thing you need to do is:
> 1) either get rid of the system's installation of php and do the
>installation by hand. Getting rid of php via the systems
>installation process. Be forwarned, do this with care.
>
> 2) use fc5
>
>
> Curt.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Apache

2006-01-16 Thread Erik Saline
Where do I find fc5?


Erik

> On Sun, Jan 15, 2006 at 09:34:40AM -0800, Erik Saline wrote:
>> Using Fedora Core 4 using the already Apache and Mysql.  I tried using the
>> already installed PHP but mysql support was not setup or shown when using
>> phpinfo().
>> 
>> I recompiled PHP with the following.
>> 
>> './configure' '--with-mysqli=/usr/bin/mysql_config'
>> '--with-mysql=/usr/bin/mysql_config' '--enable-sockets'
>> '--with-jpeg-dir=/usr' '--enable-exif' '--with-apx'
> 
> First off, --with-mysql doesn't expect a mysql_config as an option
> but the $prefix directory were mysql was installed.
> 
>> 
>> Now all my PHP scripts do not work here is the error I find in the Apache
>> Error logs.  
>> 
>> [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] (8)Exec format error:
>> exec of '/var/www/cgi-bin/create_user.php' failed,
>> [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] Premature end of
>> script headers: create_user.php,>
>> 
> 
> This is a sign that your in rpm hell.
> 
>> I can use php -i >phpinfo.html and see that PHP works and that mysql is now
>> loaded.
>> I added this to my httpd.conf
> 
> but what does assuming your 'whatis database is upto date':
> 
> 'locate php | grep bin' give?
> 'locate libphp' give?
> 'locate php' give?
> 
> And from those locates:
> ls -laF 
> 
> 
> My Guess:
> you will have a:
> /usr/bin/php
> /usr/local/bin/php
> /path/to/apache/modules/libphp(45).php
> 
> Once that is figured out, what about the extenstions? is there any
> thing in your php.ini that specifies an extension_dir and/or
> extension=something.so?
> 
> Last but should be first, check logs, turn on php.ini:error_log to
> syslog, turn on display_startup_errors, check /var/log/messages, if
> that doesnt work make sure php.ini:error_reporting  is E_ALL. If
> that doesn't work.. are you sure you are editing the correct
> php.ini for the environment you are using?
> 
>> 
>> AddType application/x-httpd-php .php
> 
> This is for using php as a moudule, the error you are getting is
> based on php ran as a cgi.
> 
> 
>> # which php at the command line returns
>>  /usr/local/bin/php
> 
> try: /usr/bin/php -i
> 
>> 
>> Do I need to add something in the httpd.d to direct it to /usr/local/bin/php
>> instead of the intial defalt where
>> # which php returned
>> /usr/bin/php
> 
> Ah, yeah, well, the thing you need to do is:
> 1) either get rid of the system's installation of php and do the
>installation by hand. Getting rid of php via the systems
>installation process. Be forwarned, do this with care.
> 
> 2) use fc5
> 
> 
> Curt.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Apache

2006-01-15 Thread Curt Zirzow
On Sun, Jan 15, 2006 at 09:34:40AM -0800, Erik Saline wrote:
> Using Fedora Core 4 using the already Apache and Mysql.  I tried using the 
> already installed PHP but mysql support was not setup or shown when using 
> phpinfo().
> 
> I recompiled PHP with the following.
> 
> './configure' '--with-mysqli=/usr/bin/mysql_config' 
> '--with-mysql=/usr/bin/mysql_config' '--enable-sockets' 
> '--with-jpeg-dir=/usr' '--enable-exif' '--with-apx' 

First off, --with-mysql doesn't expect a mysql_config as an option
but the $prefix directory were mysql was installed.

> 
> Now all my PHP scripts do not work here is the error I find in the Apache 
> Error logs.  
> 
> [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] (8)Exec format error: 
> exec of '/var/www/cgi-bin/create_user.php' failed,
> [Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] Premature end of 
> script headers: create_user.php,>
> 

This is a sign that your in rpm hell.

> I can use php -i >phpinfo.html and see that PHP works and that mysql is now 
> loaded.
> I added this to my httpd.conf

but what does assuming your 'whatis database is upto date':

 'locate php | grep bin' give?
 'locate libphp' give? 
 'locate php' give? 

And from those locates:
  ls -laF 


My Guess:
 you will have a:
 /usr/bin/php
 /usr/local/bin/php
 /path/to/apache/modules/libphp(45).php

Once that is figured out, what about the extenstions? is there any
thing in your php.ini that specifies an extension_dir and/or
extension=something.so?

Last but should be first, check logs, turn on php.ini:error_log to
syslog, turn on display_startup_errors, check /var/log/messages, if
that doesnt work make sure php.ini:error_reporting  is E_ALL. If
that doesn't work.. are you sure you are editing the correct
php.ini for the environment you are using?

> 
> AddType application/x-httpd-php .php

This is for using php as a moudule, the error you are getting is
based on php ran as a cgi.

 
> # which php at the command line returns
>  /usr/local/bin/php 

  try: /usr/bin/php -i

> 
> Do I need to add something in the httpd.d to direct it to /usr/local/bin/php 
> instead of the intial defalt where 
> # which php returned 
> /usr/bin/php

Ah, yeah, well, the thing you need to do is:
  1) either get rid of the system's installation of php and do the
 installation by hand. Getting rid of php via the systems
 installation process. Be forwarned, do this with care.

  2) use fc5


Curt.
-- 
cat .signature: No such file or directory

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and Apache

2006-01-15 Thread Erik Saline
Using Fedora Core 4 using the already Apache and Mysql.  I tried using the 
already installed PHP but mysql support was not setup or shown when using 
phpinfo().

I recompiled PHP with the following.

'./configure' '--with-mysqli=/usr/bin/mysql_config' 
'--with-mysql=/usr/bin/mysql_config' '--enable-sockets' '--with-jpeg-dir=/usr' 
'--enable-exif' '--with-apx' 

Now all my PHP scripts do not work here is the error I find in the Apache Error 
logs.  

[Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] (8)Exec format error: 
exec of '/var/www/cgi-bin/create_user.php' failed,
[Sat Jan 14 15:19:02 2006] [error] [client 192.168.1.1] Premature end of script 
headers: create_user.php,>

I can use php -i >phpinfo.html and see that PHP works and that mysql is now 
loaded.
I added this to my httpd.conf

AddType application/x-httpd-php .php


# which php at the command line returns
 /usr/local/bin/php 

Do I need to add something in the httpd.d to direct it to /usr/local/bin/php 
instead of the intial defalt where 
# which php returned 
/usr/bin/php


Erik



[PHP] PHP and Apache 2.2.0

2005-12-16 Thread Kevin McBride

Hello,

I hope I am not repeating something that was discussed on this list before.

I am curious to know if there are plans to make a module for Apache
2.2.0.  I couldn't find it in the anonymous CVS, but if it's already
there, can someone point to me where it is?

- KJM

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Apache 2

2004-08-08 Thread Thomas Goyne
On Sun, 8 Aug 2004 16:20:55 +0300, Rosen <[EMAIL PROTECTED]> wrote:
Hi,
What is the reason, thath in the installation manual of PHP writes:
"WARNING:
Do not use Apache 2.0 and PHP in a production environment neither on Unix
nor on Windows. "
Thanks,
Rosen
http://www.zend.com/lists/php-dev/200406/msg00291.html
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP and Apache 2

2004-08-08 Thread Rosen
Hi,
What is the reason, thath in the installation manual of PHP writes:
"WARNING:
Do not use Apache 2.0 and PHP in a production environment neither on Unix
nor on Windows. "

Thanks,
Rosen

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Apache Authentication

2004-06-04 Thread Matt Matijevich
[snip]
Is there a way to configure apache to include something 
in every response?
[/snip]

I think you could use a autoprepend in your php.ini file

http://www.php.net/reserved.variables 

there is a mention of it on the user comments on this page

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and Apache Authentication

2004-06-04 Thread Glenn MacGregor
Hi All,
I am trying to protect portions of my website. I am using pache 2.x and 
php4.X. I don't want to use apache authentication within the Directory 
directive because I can't utilize sessions if I do that. So I want to 
use PHP to authenticate from a postgresql database.

This works fine on the pages I have put it on, the problem is I want it 
on all pages in a given directory but I don't want to edit every page in 
that directory. Is there a way to configure apache to include something 
in every response?

Example:
http://test/v1/v1.php
v1.php:
...
include(../auth.inc)
...
This file is protected.
http://test/v1/v1-test.php
v1-test.php doesn't contain the include above, but I still want to 
protect it.

Thanks
Glenn
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP and Apache 2

2004-03-13 Thread trlists
On 13 Mar 2004 Rasmus Lerdorf wrote:

> I think that is pretty clear.  It says that it works but we do not
> consider it production quality.

OK, thanks.  That is what I thought it meant but I wanted to be sure.

> As for whether your particular install will work?  I have no idea.  Maybe,
> maybe not.  And if weird things happen chances are we won't be able to
> help you fix it.  That's the essence of our reccomendation to stick with
> the Apache1 codebase we know well until such a time that Apache2 actually
> delivers substantial enough features to warrant the effort it is going to
> take to hammer it into a production-quality environment.

Thanks.  I wasn't asking if it would work, just what the 
recommendations were.  That's very clear.  

--
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Apache 2

2004-03-13 Thread Rasmus Lerdorf
On Sat, 13 Mar 2004 [EMAIL PROTECTED] wrote:

> > So the current situation is that Apache2-prefork+PHP is a decent solution
> > but it hasn't been tested a whole lot.
>
> I am currently moving my app to an Apache 2 server.  I did not build
> the server (not my area of expertise) and don't know how how it was
> built, but I can talk to the folks who did it and find out.  It was
> their choice to go to Apache 2, but I still have time to get them to go
> back if need be.  I'd like to understand the recommendations more
> clearly.
>
> Are there configurations of Apache 2 that are OK with PHP?  The above
> suggests prefork hasn't been tested but the remainder of your message
> suggests multithreading (which is different from prefork as I read the
> Apache docs -- right?) is even more problematic.  It sounds like this
> is what's behind the recommendation at
> http://us2.php.net/install.apache2 which says  "Do not use Apache 2.0
> and PHP in a production environment neither on Unix nor on Windows."
> But the same page says "The following versions of PHP are known to work
> with the most recent version of Apache 2.0:", so I'm not quite clear on
> what's being recommended.

I think that is pretty clear.  It says that it works but we do not
consider it production quality.

As for whether your particular install will work?  I have no idea.  Maybe,
maybe not.  And if weird things happen chances are we won't be able to
help you fix it.  That's the essence of our reccomendation to stick with
the Apache1 codebase we know well until such a time that Apache2 actually
delivers substantial enough features to warrant the effort it is going to
take to hammer it into a production-quality environment.

-Rasmus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and Apache 2

2004-03-13 Thread trlists
> So the current situation is that Apache2-prefork+PHP is a decent solution
> but it hasn't been tested a whole lot.  

I am currently moving my app to an Apache 2 server.  I did not build 
the server (not my area of expertise) and don't know how how it was 
built, but I can talk to the folks who did it and find out.  It was 
their choice to go to Apache 2, but I still have time to get them to go 
back if need be.  I'd like to understand the recommendations more 
clearly.

Are there configurations of Apache 2 that are OK with PHP?  The above 
suggests prefork hasn't been tested but the remainder of your message 
suggests multithreading (which is different from prefork as I read the 
Apache docs -- right?) is even more problematic.  It sounds like this 
is what's behind the recommendation at 
http://us2.php.net/install.apache2 which says  "Do not use Apache 2.0 
and PHP in a production environment neither on Unix nor on Windows."  
But the same page says "The following versions of PHP are known to work 
with the most recent version of Apache 2.0:", so I'm not quite clear on 
what's being recommended.

FWIW httpd-l on the new server shows:

Compiled in modules:
  core.c
  mod_access.c
  mod_auth.c
  mod_include.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  mod_ssl.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_suexec.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_so.c

Thanks for any comments.

--
Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Apache Using up all memory

2004-03-07 Thread Raditha Dissanayake
The RLimit* set of directive can define resource limitations  in apache. 
There is also aSendBufferSize directive but haven't used that so can't 
comment. According to the situation that you describe perhaps saving the 
file first isn't the solution either.

Juan E Suris wrote:

Right now I am genereating the file offline and using a hyperlink, but that
creates double the disk I/O. It reads some files (which the big file is
based on), writes the big file, and reads the big file (to deliver it when
the user clicks the hyperlink). If I could just create the file and deliver
it as I create it, I would save the write/read to/from disk of the big file.
Output buffering is off in php.ini:
output_buffering = Off
So that does not seem to be it. Maybe the problem should be address on
Apache instead of PHP?
Thanks,
Juan
- Original Message - 
From: "Raditha Dissanayake" <[EMAIL PROTECTED]>
To: "Juan E Suris" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 06, 2004 11:44 PM
Subject: Re: [PHP] PHP and Apache Using up all memory

 

Hi Juan,

What you can do is to switch off output buffering. If it is a really
large file you might want to generate the file offline and deliver it
using the more conventional hyperlink.
all the best

Juan E Suris wrote:

   

Hi!
 

   

 



--
Raditha Dissanayake.
---
http://www.radinks.net/ftp/applet/
An applet that breaks all the rules. Reads, Writes and Deletes files on 
your hard disk. Uploads what's left to a third party server.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP and Apache Using up all memory

2004-03-06 Thread Juan E Suris
Right now I am genereating the file offline and using a hyperlink, but that
creates double the disk I/O. It reads some files (which the big file is
based on), writes the big file, and reads the big file (to deliver it when
the user clicks the hyperlink). If I could just create the file and deliver
it as I create it, I would save the write/read to/from disk of the big file.

Output buffering is off in php.ini:
output_buffering = Off

So that does not seem to be it. Maybe the problem should be address on
Apache instead of PHP?
Thanks,
Juan

- Original Message - 
From: "Raditha Dissanayake" <[EMAIL PROTECTED]>
To: "Juan E Suris" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, March 06, 2004 11:44 PM
Subject: Re: [PHP] PHP and Apache Using up all memory


> Hi Juan,
>
> What you can do is to switch off output buffering. If it is a really
> large file you might want to generate the file offline and deliver it
> using the more conventional hyperlink.
>
> all the best
>
> Juan E Suris wrote:
>
> >Hi!
> >
> >I have a problem with PHP and Apache, where Apache uses up a huge amount
of memory. What happens is that I have a PHP script that creates a file on
the fly and sends it directly to the broswer (as an attachment, so that the
user can save it). The problem is that when the file is big and the client
download speed is slow, the Apache process uses up as much memory as the
file size. My guess here is that PHP keeps writing data as fast as it can,
and Apache caches it in memory until the user can download it all.
> >
> >Is there any way to avoid this?
> >
> >My apologies if this is an obvious question.
> >
> >Thanks,
> >Juan
> >
> >
>
>
> -- 
> Raditha Dissanayake.
> ---
> http://www.radinks.net/ftp/applet/
> An applet that breaks all the rules. Reads, Writes and deletes files on
> your hard disk. Uploads what's left to a third party server.
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Apache Using up all memory

2004-03-06 Thread Raditha Dissanayake
Hi Juan,

What you can do is to switch off output buffering. If it is a really 
large file you might want to generate the file offline and deliver it 
using the more conventional hyperlink.

all the best

Juan E Suris wrote:

Hi!

I have a problem with PHP and Apache, where Apache uses up a huge amount of memory. What happens is that I have a PHP script that creates a file on the fly and sends it directly to the broswer (as an attachment, so that the user can save it). The problem is that when the file is big and the client download speed is slow, the Apache process uses up as much memory as the file size. My guess here is that PHP keeps writing data as fast as it can, and Apache caches it in memory until the user can download it all.

Is there any way to avoid this?

My apologies if this is an obvious question.

Thanks,
Juan 
 



--
Raditha Dissanayake.
---
http://www.radinks.net/ftp/applet/
An applet that breaks all the rules. Reads, Writes and deletes files on 
your hard disk. Uploads what's left to a third party server.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP and Apache Using up all memory

2004-03-06 Thread Juan E Suris
Hi!

I have a problem with PHP and Apache, where Apache uses up a huge amount of memory. 
What happens is that I have a PHP script that creates a file on the fly and sends it 
directly to the broswer (as an attachment, so that the user can save it). The problem 
is that when the file is big and the client download speed is slow, the Apache process 
uses up as much memory as the file size. My guess here is that PHP keeps writing data 
as fast as it can, and Apache caches it in memory until the user can download it all.

Is there any way to avoid this?

My apologies if this is an obvious question.

Thanks,
Juan 

RE: [PHP] PHP and Apache 2 (Was: Ver 5.0 Questions ...)

2004-01-22 Thread Thomas Svenson
Chris Shiflett wrote:
> So, I'm not sure what documentation you're referring to exactly, nor
> am I sure that there would be a lot of support in updating it.

This one:

-8<.
Warning
Do not use Apache 2.0 and PHP in a production environment neither on Unix
nor on Windows.
-8<.

You find it here: http://www.php.net/manual/en/install.apache2.php

/Thomas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP and Apache 2 (Was: Ver 5.0 Questions ...)

2004-01-22 Thread Chris Shiflett
--- Thomas Svenson <[EMAIL PROTECTED]> wrote:
> I am using the pre-forked model in Apache2 yes. So far I haven't
> noticed any problems with PHP(4/5beta).
> 
> If the problems with PHP is with the non pre-forked models, then its
> time to update the recommendation to not run PHP on Apache2. Instead
> it should explain why it doesn't work and that if pre-forked is used
> there are no problems.

This topic was brought up at ApacheCon. The mod_perl developers have the
same potential problems with threading - even when the core is
thread-safe, many extensions are not.

If you are running in pre-fork mode, there are really no conflicts or
problems with running PHP on Apache 2. However, Rasmus still feels
strongly about using Apache 1.3 until 2 has been around for a long time
(1.3's stability is hard to match), unless you have a compelling reason to
upgrade.

So, I'm not sure what documentation you're referring to exactly, nor am I
sure that there would be a lot of support in updating it. Regardless, if
you need to run Apache 2, and you run it in pre-fork mode, you should be
fine.

Hope that helps.

Chris

=
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
 Coming mid-2004
HTTP Developer's Handbook
 http://httphandbook.org/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and Apache 2 (Was: Ver 5.0 Questions ...)

2004-01-22 Thread Thomas Svenson
Mark Charette wrote:
> If you read through the archives you'll find it isn't so much that
> PHP is the problem per se, but many of the PHP modules. If you use the
> multi-threading model of Apache 2 (the raison d'etre for using
> Apache 2 for
> most people) then all the modules have to be thread-safe, and that's a
> non-trivial matter for many of the module authors and maintainers. If
> you use the pre-fork model of Apache 2 then you essentially have the
> "regular" version of Apache.

I am using the pre-forked model in Apache2 yes. So far I haven't noticed any
problems with PHP(4/5beta).

If the problems with PHP is with the non pre-forked models, then its time to
update the recommendation to not run PHP on Apache2. Instead it should
explain why it doesn't work and that if pre-forked is used there are no
problems.

Since this problem is known maybe even modules that cause the problems could
be indicated as non pre-forked compatible. After all I might not need any of
them and could thus use a non pre-forked model for PHP.

As I understand this is not a recently discovered problem. Therefore I
wonder what is done to fix the modules not working properly. Is it possible
to fix for all modules?

Even though PHP is very popular, and gaining more and more popularity at all
levels, this is a potential show stopper. This comes with a performance loss
(can't imagine anything else since it is a major new feature in Apache2) and
thus a negative "thing" for PHP.

/Thomas

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and Apache MultiViews

2003-12-10 Thread Styx
Hi all!

I've got a problem when using this combination. Everything works fine for
browsers that send
Accept: */*
requests, but some web spiders say
Accept: text/*
and get 406 error since the actual type is application/...

I worked this around by using type-map and creating .var files for each
document... But maybe someone knows a better solution?

Thanx in advance,
Styx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP and Apache MultiViews

2003-12-10 Thread Styx
Hi all!

I've got a problem when using this combination. Everything works fine for
browsers that send
Accept: */*
requests, but some web spiders say
Accept: text/*
and get 406 error since the actual type is application/...

I worked this around by using type-map and creating .var files for each
document... But maybe someone knows a better solution?

Thanx in advance,
Styx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php and apache

2003-11-12 Thread Boyan Nedkov
Jen wrote:

Hi there.  New to the PHP space here and I'm trying to set things up.  (if
I'm on the wrong newsgroup, please let me know...)
I've got Apache 1.3.27 running and I have downloaded PHP 4.3.4 on my
computer.  Next, I created a test.php file which contains:


 phpinfo();

?>

That's it - real simple.  I just want to see it work on the server, but when
I open up that page in a browser, it just displays those tags, exactly as I
typed them.  If I go to http://localhost, I get a page that says,
"If you can see this, it means that the installation of the Apache web
server software on this system was successful. You may now add content to
this directory and replace this page."
Now, maybe I'm just not putting test.php in the right directory?  I'm not
sure.  Apache is running from d:/apache/apache/ and PHP is located in
d:/php/.  Any help would be appreciated!
Thanks.



read install.txt located in d:/php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php and apache

2003-11-12 Thread John Nichel
Jen wrote:

Hi there.  New to the PHP space here and I'm trying to set things up.  (if
I'm on the wrong newsgroup, please let me know...)
I've got Apache 1.3.27 running and I have downloaded PHP 4.3.4 on my
computer.  Next, I created a test.php file which contains:


 phpinfo();

?>

That's it - real simple.  I just want to see it work on the server, but when
I open up that page in a browser, it just displays those tags, exactly as I
typed them.  If I go to http://localhost, I get a page that says,
"If you can see this, it means that the installation of the Apache web
server software on this system was successful. You may now add content to
this directory and replace this page."
Now, maybe I'm just not putting test.php in the right directory?  I'm not
sure.  Apache is running from d:/apache/apache/ and PHP is located in
d:/php/.  Any help would be appreciated!
Thanks.

Make sure you have and entry in your httpd.conf for Apache that looks 
like this

AddType application/x-httpd-php .php

--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] php and apache

2003-11-12 Thread Jen
Hi there.  New to the PHP space here and I'm trying to set things up.  (if
I'm on the wrong newsgroup, please let me know...)

I've got Apache 1.3.27 running and I have downloaded PHP 4.3.4 on my
computer.  Next, I created a test.php file which contains:



That's it - real simple.  I just want to see it work on the server, but when
I open up that page in a browser, it just displays those tags, exactly as I
typed them.  If I go to http://localhost, I get a page that says,

"If you can see this, it means that the installation of the Apache web
server software on this system was successful. You may now add content to
this directory and replace this page."

Now, maybe I'm just not putting test.php in the right directory?  I'm not
sure.  Apache is running from d:/apache/apache/ and PHP is located in
d:/php/.  Any help would be appreciated!

Thanks.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] php and apache...single sign on

2003-09-17 Thread Jay Blanchard
[snip]
I would like to piggyback on an Apache realm/dialog authentication and 
feed these credentials to a mysql connection (or connection to anything 
else) in my php scripts.

Is there a way using the php Apache apis (seems like no) or via apache 
itself to make these credentials available/visible to a php script?

I'm not sure if this presents a security risk as I trust the pages in my

web server to not be malevolent.
[/snip]

Should be $PHP_AUTH_USER and $PHP_AUTH_PW, see
http://us4.php.net/features.http-auth

Funny how the manual works for these things! ;)

Have a pleasant and productive day.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php and apache...single sign on

2003-09-17 Thread Mike Klein
I would like to piggyback on an Apache realm/dialog authentication and 
feed these credentials to a mysql connection (or connection to anything 
else) in my php scripts.

Is there a way using the php Apache apis (seems like no) or via apache 
itself to make these credentials available/visible to a php script?

I'm not sure if this presents a security risk as I trust the pages in my 
web server to not be malevolent.

mike

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] PHP and Apache

2003-06-30 Thread Mike At Spy

Recently, I had Apache upgraded on my linux redhat 7.3 server from 1.2.3 to
1.3.27.

PHP stopped working when trying to process html files with php in them.  In
the httpd.conf file, I have AllowOverride set to All.  In the Virtual Host
settings I have 'AddType application/x-httpd-php .html'.

HTML documents, which did process before the upgrade, no longer do.  Does
anyone know of any reason for this?  I've been searching on the web, but
most people go back to the ol' AllowOverride thing, which isn't the issue in
this case.

Thanks,

-Mike



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] PHP And Apache

2003-01-26 Thread Beogradjanin
Zdravo php-general,

  Hi I'm having ptoblem how do I aneble  PHP on apache..??
  I've read Hot to install but Apche changed httpd.conf on new version
  of Apache server.

  Help

  Thanks

+++Info About this E-mail+
+Poruka je napisana u 12:45:19   + 
+Dana Sunday, January 26, 2003  +
+Files in this E-mail massage+
+  +
++
+Email: [EMAIL PROTECTED] +
++  



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP and Apache

2002-12-04 Thread Marcus Fazzi
You need Apache 2.0.40 fo uses with PHP 4.2.3, for use with 2.0.43 use PHP
4.3.0 RC2

> > Excuseme my confussion, I meant PHP 4.2.3. So you suggest me PHP 4.2.3 and
Apache 1.3.x??





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP and Apache

2002-12-04 Thread Adam Williams
Yes

On Wed, 4 Dec 2002, Vicente Valero wrote:

> Excuseme my confussion, I meant PHP 4.2.3. So you suggest me PHP 4.2.3 and Apache 
>1.3.x??


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP and Apache

2002-12-04 Thread Vicente Valero
Excuseme my confussion, I meant PHP 4.2.3. So you suggest me PHP 4.2.3 and Apache 
1.3.x??


[PHP] PHP and Apache Cocoon???

2002-11-04 Thread HA, Hai
Hello experts,

I am hoping to build a website to host a sizeable document and add
functionality to allow readers to submit comments and general feedback.  The
main document is currently stored as a series of XML pages and I have
succeeded in publishing these documents in HTML with Apache Cocoon.  
Now that I have the XML and XLST parts in place I am looking towards adding
that comment functionality that I mentioned.  My question for you is does
anyone know how well PHP integrates with Cocoon as I was hoping to use that
as the mechanism to accept and store user comments in a MySQL database.  

If anyone out there has any ideas (or even better, knows how this is done!)
then any pointers would be much appreciated.

Thanks in advance,

Hai


_
This email is confidential and intended solely for the use of the 
individual to whom it is addressed. Any views or opinions presented are 
solely those of the author and do not necessarily represent those of 
SchlumbergerSema.
If you are not the intended recipient, be advised that you have received
this email in error and that any use, dissemination, forwarding, printing, 
or copying of this email is strictly prohibited.

If you have received this email in error please notify the
SchlumbergerSema Helpdesk by telephone on +44 (0) 121 627 5600.
_


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP And Apache

2002-09-11 Thread Glenn

ok then...

thanks

"Rasmus Lerdorf" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Use the latest Apache 1.3.x and the latest PHP.  Works just fine.  Apache
> 2.0.x is a completely different beast.
>
> -Rasmus
>
> On Wed, 11 Sep 2002, Glenn wrote:
>
> > Can anyone tell me if the latest version of PHP works with the latest
Apache
> > web server?  When I try to build the server it says its not, but I
wondered
> > if there were any patches or changes I could make for them to work
properly?
> >
> > Thanks,
> >
> > glenn
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP And Apache

2002-09-11 Thread Rasmus Lerdorf

Use the latest Apache 1.3.x and the latest PHP.  Works just fine.  Apache
2.0.x is a completely different beast.

-Rasmus

On Wed, 11 Sep 2002, Glenn wrote:

> Can anyone tell me if the latest version of PHP works with the latest Apache
> web server?  When I try to build the server it says its not, but I wondered
> if there were any patches or changes I could make for them to work properly?
>
> Thanks,
>
> glenn
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP And Apache

2002-09-11 Thread Glenn

Can anyone tell me if the latest version of PHP works with the latest Apache
web server?  When I try to build the server it says its not, but I wondered
if there were any patches or changes I could make for them to work properly?

Thanks,

glenn



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP and Apache

2002-09-06 Thread Steve Edberg

It's certainly _possible_ -

Your httpd.conf (I'm assuming you use Apache, of course) file is just 
a text file that can be read/written like anything else. Then you 
could do a

system('/path/to/apache/bin/apachectl restart');

to activate. Doing it this simply, thoughm means that your 
webserver's user (usually nobody) would have write access to the conf 
file and execute perms to apachectl, which could open up some 
bulldozer-security holes. At the very least, you want to access 
things through SSL.

But you might want to try Webmin:

http://www.webmin.com/

Looks very comprehensive, and I've seem a number of good 
recommendations for it. I've been planning on doing a little testing 
of it on my test server, but haven't had the time.

-steve



At 4:48 PM +0100 9/6/02, Tim Haynes wrote:
>Is there any easy way of creating,editing and deleting virtual hosts using
>PHP via a website??  I have already thought of a way but seems a little long
>winded.
>
>Thanks in advance.


-- 
++
| Steve Edberg  [EMAIL PROTECTED] |
| University of California, Davis  (530)754-9127 |
| Programming/Database/SysAdmin   http://pgfsun.ucdavis.edu/ |
++
| The end to politics as usual:  |
| The Monster Raving Loony Party (http://www.omrlp.com/) |
++

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP and Apache

2002-09-06 Thread Tim Haynes

Is there any easy way of creating,editing and deleting virtual hosts using
PHP via a website??  I have already thought of a way but seems a little long
winded.

Thanks in advance.

Tim



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Php and Apache

2002-07-24 Thread S.Murali Krishna

On Wed, 24 Jul 2002, Varsha Agarwal wrote:

>Hi,
>I have istalled php from the red hat cd at the time i
>installed red hat itself. I downloaded apache and
>installed it. Can anyone tell me how to configure php
>on apache server? I mean what do I do next to run php
>scripts? I am totally new to all this. Please help.
>-Varsha

If you installed php from redhat CD, then why not apache.
The Apache rpm in redhat 7.3 comes as precompiled 
support for Dynamic shared object so there is no need for doing
anything except install your Apache and Php from rpms as it is.

Then keep your php files in /var/www/html/ or whatever 
you configured for  Directive in Apache.

If you don't have apache you can download it from redhat site.
---
  S.Murali Krishnan
  Internet: [EMAIL PROTECTED]
---



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Php and Apache

2002-07-24 Thread Varsha Agarwal

Hi,
I have istalled php from the red hat cd at the time i
installed red hat itself. I downloaded apache and
installed it. Can anyone tell me how to configure php
on apache server? I mean what do I do next to run php
scripts? I am totally new to all this. Please help.
-Varsha

__
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP and Apache

2002-07-03 Thread Al Baker

I had a problem where I compiled in too many extensions and apache
thought the module file was too complicated, and thus corrupt and
wouldn't start.


On Tue, 2002-07-02 at 14:09, B i g D o g wrote:
> Sorry bro...doing to many things at once.
> 
> Apache 1.3.23
> Linux 7.2
> PHP 4.1.2
> 
> Configuration:
> ./configure
> --with-apxs=/usr/local/apache/bin/apxs
> --with-sybase-ct=/sybase
> --with-mysql' '--enable-exif
> --with-gd
> --with-jpeg-dir=/usr/lib
> --with-png-dir=/usr/local/lib
> --with-zlib
> --with-config-file-path=/etc
> --with-freetype-dir=/usr/local/lib
> 
> 
> My webserver keeps crashing: error log entry
> [Tue Jul 2 15:12:07 2002] [error] [client 164.214.4.59] (24)Too many open
> files
> 
> I am just wondering if this a php issue or something else...
> 
> 
> B i g D o G
> 
> 
> 
> - Original Message -
> From: "Michael Sweeney" <[EMAIL PROTECTED]>
> To: "B i g D o g" <[EMAIL PROTECTED]>
> Cc: "PHP GEN" <[EMAIL PROTECTED]>
> Sent: Tuesday, July 02, 2002 12:04 PM
> Subject: Re: [PHP] PHP and Apache
> 
> 
> > No. Only you. :-)
> >
> > Platform? Environment? Configuration information?
> >
> > ..mike..
> >
> > On Tue, 2002-07-02 at 11:01, B i g D o g wrote:
> > > Has anyone had a problem where PHP created to many open files and
> crashed
> > > apache?
> > >
> > > B i g D o g
> > >
> > >
> >
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
-- 
This email was sent with Ximian Evolution.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php and apache path...

2002-07-03 Thread Erik Price


On Wednesday, July 3, 2002, at 11:08  AM, Nightshade wrote:

> Yea,I understood. But my question is: is right that my Document_root 
> (shown
> in phpinfo) is /var/www/html/ and not /var/www/html/mysite? And if isn't
> right where I can change this?

I'm not sure -- is that the directory that you want to be your document 
root?  I doubt it from what you're saying but nobody else has any way of 
knowing.

If you want your document root to be /var/www/html/mysite and it is 
currently something else, you need to set your httpd.conf file 
differently.  Or perhaps a .htaccess file can be used.  (This is 
assuming you are using Apache.)

Go to www.apache.org and read the httpd documentation there for more 
information about setting up the document root in httpd.conf.


Erik






Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php and apache path...

2002-07-03 Thread Nightshade

Analysis & Solutions wrote:

> On Tue, Jul 02, 2002 at 10:34:32PM +0200, Nightshade wrote:
>> Analysis & Solutions wrote:
>> 
>> Document root doensn't solve my problem...
>> ... snip ...
>> Any solution?
> 
> Read and heed what I already said:
> 
>> > Whenever you have a question like this, run phpinfo() and see what's
>> > there which produces the variable you're looking for.
> 
> If that doesn't have what you're looking for, you need to craft your own
> solution.
> 
> --Dan
> 

Yea,I understood. But my question is: is right that my Document_root (shown 
in phpinfo) is /var/www/html/ and not /var/www/html/mysite? And if isn't 
right where I can change this?
tnx again

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php and apache path...

2002-07-02 Thread Justin French

In your config file (or at the top of each page) you should establish what
your document root is:

$docroot = "/usr/home/sitename/";# or whatever

Then do something like include("{$docroot}inc_dir/file.inc");


Or maybe you specify an include directory in your config:

$incdir = "/usr/home/sitename/inc/";# or whatever

Then do something like include("{$incdir}file.inc");


Or maybe write a small function that allows you to do it all
transparently... maybe something like myinclude('file.inc').


As Dan has pointed out, the other option would be to use
$_SERVER['DOCUMENT_ROOT']:

$docroot = $_SERVER['DOCUMENT_ROOT'];

include("{$docroot}myfile.inc");


I don't believe it can be done with ~/ or ./ or something... haven't found
it yet!!


Justin French





on 03/07/02 1:34 AM, Analysis & Solutions ([EMAIL PROTECTED])
wrote:

> On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote:
>> is there a unix like ~/ , to access to root directory of my site
> 
> Does $_SERVER['DOCUMENT_ROOT'] help?
> 
> Whenever you have a question like this, run phpinfo() and see what's there
> which produces the variable you're looking for.
> 
> --Dan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php and apache path...

2002-07-02 Thread Analysis & Solutions

On Tue, Jul 02, 2002 at 10:34:32PM +0200, Nightshade wrote:
> Analysis & Solutions wrote:
> 
> Document root doensn't solve my problem...
> ... snip ...
> Any solution?

Read and heed what I already said:

> > Whenever you have a question like this, run phpinfo() and see what's there
> > which produces the variable you're looking for.

If that doesn't have what you're looking for, you need to craft your own 
solution.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php and apache path...

2002-07-02 Thread Nightshade

Analysis & Solutions wrote:

> On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote:
>> is there a unix like ~/ , to access to root directory of my site
> 
> Does $_SERVER['DOCUMENT_ROOT'] help?
> 
> Whenever you have a question like this, run phpinfo() and see what's there
> which produces the variable you're looking for.
> 
> --Dan
> 
Sorry again...
Document root doensn't solve my problem...
the var contain /var/www/html instead of /var/www/html/mysite
maybe I should set something up?
Any solution?
tnx

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php and apache path...

2002-07-02 Thread Analysis & Solutions

On Tue, Jul 02, 2002 at 09:55:13PM +0200, Nightshade wrote:
> 
> Do you advice me to use
> $_SERVER['DOCUMENT_ROOT'] . remaining_path/
> in all my files?

I use relative paths in most circumstances.  Makes things easier to move 
between my development machine and the actual web servers.

Enjoy,

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php and apache path...

2002-07-02 Thread Nightshade

Analysis & Solutions wrote:

> On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote:
>> is there a unix like ~/ , to access to root directory of my site
> 
> Does $_SERVER['DOCUMENT_ROOT'] help?
> 
> Whenever you have a question like this, run phpinfo() and see what's there
> which produces the variable you're looking for.
> 
> --Dan
> 

Do you advice me to use
$_SERVER['DOCUMENT_ROOT'] . remaining_path/
in all my files?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP and Apache

2002-07-02 Thread B i g D o g

Sorry bro...doing to many things at once.

Apache 1.3.23
Linux 7.2
PHP 4.1.2

Configuration:
./configure
--with-apxs=/usr/local/apache/bin/apxs
--with-sybase-ct=/sybase
--with-mysql' '--enable-exif
--with-gd
--with-jpeg-dir=/usr/lib
--with-png-dir=/usr/local/lib
--with-zlib
--with-config-file-path=/etc
--with-freetype-dir=/usr/local/lib


My webserver keeps crashing: error log entry
[Tue Jul 2 15:12:07 2002] [error] [client 164.214.4.59] (24)Too many open
files

I am just wondering if this a php issue or something else...


B i g D o G



- Original Message -
From: "Michael Sweeney" <[EMAIL PROTECTED]>
To: "B i g D o g" <[EMAIL PROTECTED]>
Cc: "PHP GEN" <[EMAIL PROTECTED]>
Sent: Tuesday, July 02, 2002 12:04 PM
Subject: Re: [PHP] PHP and Apache


> No. Only you. :-)
>
> Platform? Environment? Configuration information?
>
> ..mike..
>
> On Tue, 2002-07-02 at 11:01, B i g D o g wrote:
> > Has anyone had a problem where PHP created to many open files and
crashed
> > apache?
> >
> > B i g D o g
> >
> >
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP and Apache

2002-07-02 Thread Michael Sweeney

No. Only you. :-)

Platform? Environment? Configuration information?

..mike..

On Tue, 2002-07-02 at 11:01, B i g D o g wrote:
> Has anyone had a problem where PHP created to many open files and crashed
> apache?
> 
> B i g D o g
> 
> 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP and Apache

2002-07-02 Thread B i g D o g

Has anyone had a problem where PHP created to many open files and crashed
apache?

B i g D o g




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php and apache path...

2002-07-02 Thread Analysis & Solutions

On Tue, Jul 02, 2002 at 03:47:20PM +0200, Nightshade wrote:
> is there a unix like ~/ , to access to root directory of my site

Does $_SERVER['DOCUMENT_ROOT'] help?

Whenever you have a question like this, run phpinfo() and see what's there 
which produces the variable you're looking for.

--Dan

-- 
   PHP classes that make web design easier
SQL Solution  |   Layout Solution   |  Form Solution
sqlsolution.info  | layoutsolution.info |  formsolution.info
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7 Av #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] php and apache path...

2002-07-02 Thread Nightshade

Hi there.That's my question...A file that is in the 4th level's subdir must 
read a file that's in the 1st level. but I wish avoid to use millions
of ../../../thefile.php
I hope have been clear...
is there a unix like ~/ , to access to root directory of my site, so open 
the file?
tnx in advance, jonny

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP and APACHE & VirtualDomains

2002-03-26 Thread Max Wilson

We have PHP and APACHE (1.3.19) installed and an instance of apache is
running with php support enabled.

I need to set up another instance of httpd using a seperate config file.
However I cannot get PHP support enabled.

I cannot find where the PHP modules are.  I called a phpinfo() on the
instance which is already running and it returned:

It said the config file was in /usr/local/lib/php.ini

I think i am looking for the module mod_php4 but I cannot see where it is.
Any ideas?

ALSO

I'm having lots of trouble with VirtualDomains.

I have an instance second httpd running (without php) on a port other than
80 and it runs fine.  But whenever I add VirtualDomain to the httpd.conf the
main page gets replaced by the main page of the VirtualDomain.  This is
really anoying me is there anything I should check for?

Thanks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP and Apache Win32

2002-03-01 Thread [EMAIL PROTECTED]

Yes, you have got a few thing mixed up, to be exact DSO and CGI.

The DSO module containing the PHP engine is loaded into Apache,
and therefore it doesn't the CGI version (php.exe) anymore.

So 'ScriptAlias' is only needed for CGI installations, and you don't
need the 'Directory'
part either.

All you need besides 'AddModule' to load the module, is a specification
of what file extensions (.php) should be run through PHP. This can be
done with 'AddType', for example:

 AddType application/x-httpd-php .phtml .php
 AddType application/x-httpd-php-source .phps


bvr.

 >"[Fri Mar 01 13:30:46 2002] [error] [client 127.0.0.1] couldn't spawn 
child
 >process: c:/program files/apache group/apache/htdocs/php/test.php"
 >
 >Here is the relevant lines in httpd.conf:
 >
 ><--Snipet>
 >LoadModule php4_module modules/php4apache.dll
 >...
 >AddModule mod_php4.c
 >...
 >
 >ScriptAlias /php/ "C:/Program Files/Apache Group/Apache/htdocs/php/"
 >
 > AllowOverride None
 > Options None
 > Order allow,deny
 > Allow from all
 >
 ><>
 >
 >I suspect that there is an error there somewhere, but can't figure out 
what.
 >
 >Regards
 >
 >Gordon
 >
 >
 >





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP and Apache Win32

2002-03-01 Thread Gordon Bergström

Greetings.

Got a, I think, pretty easy question if you know of it.

Running Apache with PHP. I always get a 500 Error page when I try to access
the php file. I have run php.exe -i and it all looks good. I am running php
as a DSO under Apache. In Apache error.log there is a line that say

"[Fri Mar 01 13:30:46 2002] [error] [client 127.0.0.1] couldn't spawn child
process: c:/program files/apache group/apache/htdocs/php/test.php"

Here is the relevant lines in httpd.conf:

<--Snipet>
LoadModule php4_module modules/php4apache.dll
...
AddModule mod_php4.c
...

ScriptAlias /php/ "C:/Program Files/Apache Group/Apache/htdocs/php/"

 AllowOverride None
 Options None
 Order allow,deny
 Allow from all

<>

I suspect that there is an error there somewhere, but can't figure out what.

Regards

Gordon



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP and Apache authorization: how to logout. Help!

2002-02-04 Thread LaserJetter

I read somewhere that if you type an underscore it clears authentication
info. I haven't tried it and it seems obscure but its worth a try!


LJ

"Frederick L. Steinkopf" <[EMAIL PROTECTED]> wrote in message
018201c1ac67$c4d9c6a0$851a88ac@frederis">news:018201c1ac67$c4d9c6a0$851a88ac@frederis...
> While I've never done this before,
>  couldn't you use a session and have session variables tied to the user
name
> and password and then have the logout function kill the session?
>
> - Original Message -
> From: "Rodolfo Gonzalez" <[EMAIL PROTECTED]>
> To: "Matthew Walker" <[EMAIL PROTECTED]>
> Cc: "Aras Kucinskas" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Saturday, February 02, 2002 8:26 PM
> Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help!
>
>
> > On Fri, 1 Feb 2002, Matthew Walker wrote:
> > > Does anyone have the answer for this question? I need it too...
> >
> > As I learnt before, it's not possible without closing the user's
browser.
> >
> > > My site is in directory which is protected with .htaccess file.
> > > I want to develope a logout function, which can reset Apache
> > > authorization.
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] PHP and Apache authorization: how to logout. Help!

2002-02-02 Thread Frederick L. Steinkopf

While I've never done this before,
 couldn't you use a session and have session variables tied to the user name
and password and then have the logout function kill the session?

- Original Message -
From: "Rodolfo Gonzalez" <[EMAIL PROTECTED]>
To: "Matthew Walker" <[EMAIL PROTECTED]>
Cc: "Aras Kucinskas" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, February 02, 2002 8:26 PM
Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help!


> On Fri, 1 Feb 2002, Matthew Walker wrote:
> > Does anyone have the answer for this question? I need it too...
>
> As I learnt before, it's not possible without closing the user's browser.
>
> > My site is in directory which is protected with .htaccess file.
> > I want to develope a logout function, which can reset Apache
> > authorization.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP and Apache authorization: how to logout. Help!

2002-02-02 Thread Rodolfo Gonzalez

On Fri, 1 Feb 2002, Matthew Walker wrote:
> Does anyone have the answer for this question? I need it too...

As I learnt before, it's not possible without closing the user's browser.

> My site is in directory which is protected with .htaccess file.
> I want to develope a logout function, which can reset Apache
> authorization.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] PHP and Apache authorization: how to logout. Help!

2002-02-01 Thread Ken

At 03:41 PM 2/1/02 -0800, Lazor, Ed wrote:
>Even with a javascript function opening a new window and closing the old?
>
>-Original Message-
>From: Matthew Walker [mailto:[EMAIL PROTECTED]]
>Sent: Friday, February 01, 2002 3:42 PM
>
>I've done some investigating on my own. There is no way to do this.
>Period.

It's not QUITE as impossible as this, but nearly.  You can give the browser a new 
challenge, and hope that it will clear the old username/password information that it's 
memorizing for the session.  But I have found that certain combinations in certain 
browsers can subvert any such techniques.  Thus, only quitting the browser entirely 
will force the browser to forget the authentication information.  HOWEVER, certain 
users with IE 5 on the Mac have reliably reported that even quitting the browser 
doesn't work for them, but they instead have to restart their machines.

(The HTTP specification mentions nothing about logout functionality.)

Thus, if logging out is important to your application, then using browser-based 
authentication is not an acceptable solution.  You'll have to use session management 
and build your own login screen.  (Or, of course, reuse an existing one from one of 
the many good public libraries.)

- Ken
[EMAIL PROTECTED]

>-Original Message-
>From: Aras Kucinskas [mailto:[EMAIL PROTECTED]] 
>Sent: Thursday, January 31, 2002 10:39 AM
>To: [EMAIL PROTECTED]
>Subject: [PHP] PHP and Apache authorization: how to logout. Help!
>
>My site is in directory which is protected with .htaccess file.
>I want to develope a logout function, which can reset Apache
>authorization.
>
>What to do?
>HTTP header...
>unset $PHP_AUTH_USER ...
>
>Any suggestions


-- 
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] PHP and Apache authorization: how to logout. Help!

2002-02-01 Thread Matthew Walker

The entire browser has to close down to clear the auth data.

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Lazor, Ed [mailto:[EMAIL PROTECTED]] 
Sent: Friday, February 01, 2002 4:41 PM
To: Matthew Walker; Aras Kucinskas; [EMAIL PROTECTED]
Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help!

Even with a javascript function opening a new window and closing the
old?

-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 3:42 PM
To: Aras Kucinskas; [EMAIL PROTECTED]
Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help!


I've done some investigating on my own. There is no way to do this.
Period.

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Matthew Walker 
Sent: Friday, February 01, 2002 3:37 PM
To: Aras Kucinskas; [EMAIL PROTECTED]
Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help!

Does anyone have the answer for this question? I need it too...

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Aras Kucinskas [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 31, 2002 10:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and Apache authorization: how to logout. Help!

My site is in directory which is protected with .htaccess file.
I want to develope a logout function, which can reset Apache
authorization.

What to do?
HTTP header...
unset $PHP_AUTH_USER ...

Any suggestions

Sorry for  my English :)

Aras



-- 
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]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

-- 
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]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

-- 
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]
 


This message is intended for the sole use of the individual and entity
to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you
are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose
or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.


-- 
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]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

--
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] PHP and Apache authorization: how to logout. Help!

2002-02-01 Thread Lazor, Ed

Even with a javascript function opening a new window and closing the old?

-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 3:42 PM
To: Aras Kucinskas; [EMAIL PROTECTED]
Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help!


I've done some investigating on my own. There is no way to do this.
Period.

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Matthew Walker 
Sent: Friday, February 01, 2002 3:37 PM
To: Aras Kucinskas; [EMAIL PROTECTED]
Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help!

Does anyone have the answer for this question? I need it too...

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Aras Kucinskas [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 31, 2002 10:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and Apache authorization: how to logout. Help!

My site is in directory which is protected with .htaccess file.
I want to develope a logout function, which can reset Apache
authorization.

What to do?
HTTP header...
unset $PHP_AUTH_USER ...

Any suggestions

Sorry for  my English :)

Aras



-- 
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]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

-- 
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]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

-- 
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]
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
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] PHP and Apache authorization: how to logout. Help!

2002-02-01 Thread Matthew Walker

I've done some investigating on my own. There is no way to do this.
Period.

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Matthew Walker 
Sent: Friday, February 01, 2002 3:37 PM
To: Aras Kucinskas; [EMAIL PROTECTED]
Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help!

Does anyone have the answer for this question? I need it too...

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Aras Kucinskas [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 31, 2002 10:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and Apache authorization: how to logout. Help!

My site is in directory which is protected with .htaccess file.
I want to develope a logout function, which can reset Apache
authorization.

What to do?
HTTP header...
unset $PHP_AUTH_USER ...

Any suggestions

Sorry for  my English :)

Aras



-- 
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]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

-- 
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]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

--
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] PHP and Apache authorization: how to logout. Help!

2002-02-01 Thread Matthew Walker

Does anyone have the answer for this question? I need it too...

Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs


-Original Message-
From: Aras Kucinskas [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 31, 2002 10:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and Apache authorization: how to logout. Help!

My site is in directory which is protected with .htaccess file.
I want to develope a logout function, which can reset Apache
authorization.

What to do?
HTTP header...
unset $PHP_AUTH_USER ...

Any suggestions

Sorry for  my English :)

Aras



-- 
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]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.317 / Virus Database: 176 - Release Date: 1/21/2002
 

--
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] PHP and Apache authorization: how to logout. Help!

2002-01-31 Thread Aras Kucinskas

My site is in directory which is protected with .htaccess file.
I want to develope a logout function, which can reset Apache authorization.

What to do?
HTTP header...
unset $PHP_AUTH_USER ...

Any suggestions

Sorry for  my English :)

Aras



-- 
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] PHP and Apache

2001-08-13 Thread Rasmus Lerdorf

Then you didn't follow the steps in the INSTALL file exactly.  Go back and
start over.  This stuff has been tested thousands of times.  It works.

-Rasmus

On Mon, 13 Aug 2001, Jay Paulson wrote:

> yeah i've tried that too and i still get the same error(s)
>
>
> >From: Rasmus Lerdorf <[EMAIL PROTECTED]>
> >To: Jay Paulson <[EMAIL PROTECTED]>
> >CC: PHP <[EMAIL PROTECTED]>
> >Subject: Re: [PHP] PHP and Apache
> >Date: Mon, 13 Aug 2001 12:07:39 -0700 (PDT)
> >
> > > I was wondering if any of you had a problem compiling Apache 1.3.20 with
> > > mod_php4?  Because I can compile, make, make install for redhat 7.1 for
> >php
> > > 4.0.6.  When I run my configure script for apache i
> > > have --activate-module=src/modules/php4/libmodphp.a as one of the lines
> >in
> > > the script.  I run my script and everything works fine.  Then I try to
> >run
> > > make and i get some errors when it gets to the php part.  Here's what it
> > > says:
> >
> >This is a FAQ and a big fat note in the INSTALL file as well.  It is
> >supposed to be: --activate-module=src/modules/php4/libphp4.a
> >
> >-Rasmus
> >
> >
> >--
> >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]
> >
> >
>
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>


-- 
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] PHP and Apache

2001-08-13 Thread Jay Paulson

yeah i've tried that too and i still get the same error(s)


>From: Rasmus Lerdorf <[EMAIL PROTECTED]>
>To: Jay Paulson <[EMAIL PROTECTED]>
>CC: PHP <[EMAIL PROTECTED]>
>Subject: Re: [PHP] PHP and Apache
>Date: Mon, 13 Aug 2001 12:07:39 -0700 (PDT)
>
> > I was wondering if any of you had a problem compiling Apache 1.3.20 with
> > mod_php4?  Because I can compile, make, make install for redhat 7.1 for 
>php
> > 4.0.6.  When I run my configure script for apache i
> > have --activate-module=src/modules/php4/libmodphp.a as one of the lines 
>in
> > the script.  I run my script and everything works fine.  Then I try to 
>run
> > make and i get some errors when it gets to the php part.  Here's what it
> > says:
>
>This is a FAQ and a big fat note in the INSTALL file as well.  It is
>supposed to be: --activate-module=src/modules/php4/libphp4.a
>
>-Rasmus
>
>
>--
>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]
>
>


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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] PHP and Apache

2001-08-13 Thread Rasmus Lerdorf

> I was wondering if any of you had a problem compiling Apache 1.3.20 with
> mod_php4?  Because I can compile, make, make install for redhat 7.1 for php
> 4.0.6.  When I run my configure script for apache i
> have --activate-module=src/modules/php4/libmodphp.a as one of the lines in
> the script.  I run my script and everything works fine.  Then I try to run
> make and i get some errors when it gets to the php part.  Here's what it
> says:

This is a FAQ and a big fat note in the INSTALL file as well.  It is
supposed to be: --activate-module=src/modules/php4/libphp4.a

-Rasmus


-- 
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] PHP and Apache

2001-08-13 Thread Jay Paulson

hello everyone-

I was wondering if any of you had a problem compiling Apache 1.3.20 with
mod_php4?  Because I can compile, make, make install for redhat 7.1 for php
4.0.6.  When I run my configure script for apache i
have --activate-module=src/modules/php4/libmodphp.a as one of the lines in
the script.  I run my script and everything works fine.  Then I try to run
make and i get some errors when it gets to the php part.  Here's what it
says:

===> src/modules/php4
gcc -c  -I../../os/unix -I../../include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXP
AT -I../../lib/expat-lite `../../apaci`   mod_php4.c
mod_php4.c:28:18: zend.h: No such file or directory
mod_php4.c:29:17: php.h: No such file or directory
mod_php4.c:30:27: php_variables.h: No such file or directory
mod_php4.c:47:21: php_ini.h: No such file or directory
mod_php4.c:48:25: php_globals.h: No such file or directory
mod_php4.c:49:18: SAPI.h: No such file or directory
mod_php4.c:50:22: php_main.h: No such file or directory
mod_php4.c:52:26: zend_compile.h: No such file or directory
mod_php4.c:53:26: zend_execute.h: No such file or directory
mod_php4.c:54:28: zend_highlight.h: No such file or directory
mod_php4.c:55:25: zend_indent.h: No such file or directory
mod_php4.c:57:39: ext/standard/php_standard.h: No such file or directory
make[4]: *** [mod_php4.o] Error 1
make[3]: *** [all] Error 1
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/home/updates/apache_1.3.20/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/updates/apache_1.3.20'
make: *** [build] Error 2

I'm not too sure where apache is looking for these files but i've tried
copying each one of these files to the /home/updates/apache_1.3.20/src
directory but it still can't find them.

Is there any way to get this to work?

Thanks,
Jay


-- 
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] PHP and Apache 1.3.12

2001-08-01 Thread Peter Yung

Hi, 

I am using RedHat Linux 6.2.

I just got my PHP installed but my Apache 1.3.12 server does not seem to recognize the 
PHP files and PHP scripting.

I have already uncommented the lines in my httpd.conf file which read:

> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps

when I type httpd -l, I notice the following:

>[root@test bin]# ./httpd -l
>Compiled-in modules:
> http_core.c
> mod_env.c
> mod_log_config.c
> mod_mime.c
> mod_negotiation.c
> mod_status.c
> mod_include.c
> mod_autoindex.c
> mod_dir.c
> mod_cgi.c
> mod_asis.c
> mod_imap.c
> mod_actions.c
> mod_userdir.c
> mod_alias.c
> mod_access.c
> mod_auth.c
> mod_setenvif.c
> suexec: enabled; valid wrapper /usr/local/apache/bin/suexec

I am not sure why my Apache still does not recognize php files.  When I try to access 
a php file on the server through a web browser, it will ask me if I want to download.  
It's almost as though it did not recognize the PHP extension. 

I was reading through some of README files that came with the PHP source files and it 
mentioned that I need to have the "mod_so" active.  Well as you can see "mod_so" was 
not on my list when I typed httpd -l.  I have read the Apache documentation, but I am 
lost in terms of how to install this mod_so module.

I was wondering has anybody out there had a similar experience.

If so can anyone offer any suggestions.

thanks.








RE: [PHP] PHP and Apache on OS X insight?

2001-07-19 Thread Jack Dempsey

Hi Michael,

I run an OS X server with Apache, PHP, and MySQL. We have mostly Apple's
in the office, with a few pc's scattered around. What reasons do you
have for going with a Mac. I'll tell you this: its easier to deal with
linux/unix as far as installation, upgrading, etc. However, there is an
increasing amount of support for OS X Server out there. Also, you do
mean OS X Server, and not OS X, correct?

Jack

-Original Message-
From: Michael J. Seely [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 19, 2001 8:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP and Apache on OS X insight?

Hello,
I'm getting ready to buy OS X and try to setup Apache with 
PHP. Anyone have any words of wisdom.  Everything I've seen so far 
make it seem like a hot setup.
Is it worth getting OS X server?

Thanks Much
-- 

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Michael Seely  408-777-9949




 

-- 
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 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] PHP and Apache on OS X insight?

2001-07-19 Thread Michael J. Seely

Hello,
I'm getting ready to buy OS X and try to setup Apache with 
PHP. Anyone have any words of wisdom.  Everything I've seen so far 
make it seem like a hot setup.
Is it worth getting OS X server?

Thanks Much
-- 

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Michael Seely  408-777-9949




 

-- 
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] PHP and Apache on OS X insight?

2001-07-19 Thread Michael J. Seely

Hello,
I'm getting ready to buy OS X and try to setup Apache with 
PHP. Anyone have any words of wisdom.  Everything I've seen so far 
make it seem like a hot setup.
Is it worth getting OS X server?

Thanks Much
-- 

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Michael Seely  408-777-9949




 

-- 
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] php and apache protected directories

2001-02-26 Thread Krznaric Michael

Yes, try lib cURL it supports authentification and even SSL.

http://www.php.net/manual/en/ref.curl.php

Mike

-Original Message-
From: Marius David [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 5:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php and apache protected directories


I want to open a html file from a php script. The problem is that the html
file is located in a password protected directory on an apache web server. I
know the user/password for that directory and I want the php script to
handle the authentification automaticly. Is there a way to acomplish this ?

Thank you,
Marius




-- 
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 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] php and apache 2.0

2001-02-24 Thread jeremy


will php 4.0.4 build as a module with apache 2.0?

- jeremy


-- 
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] php and apache protected directories

2001-02-23 Thread Marius David

I want to open a html file from a php script. The problem is that the html
file is located in a password protected directory on an apache web server. I
know the user/password for that directory and I want the php script to
handle the authentification automaticly. Is there a way to acomplish this ?

Thank you,
Marius




-- 
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]