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

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 O

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.

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

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

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

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

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 ap

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

Re: [PHP] PHP and Apache

2006-01-16 Thread Erik Saline
e - > 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 wrot

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?

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 follo

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

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/ms

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/

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 n

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

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

2004-03-07 Thread Raditha Dissanayake
e" <[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

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

2004-03-06 Thread Juan E Suris
ditha 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. I

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 am

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

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

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

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

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/visibl

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

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 an

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

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 w

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

Re: [PHP] PHP and Apache

2002-07-03 Thread Al Baker
.. > > > 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:

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

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 p

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/sit

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 pro

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

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

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

Re: [PHP] PHP and Apache

2002-07-02 Thread 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. :-) > > Platfo

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 unsu

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

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

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

2002-02-04 Thread LaserJetter
o 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 log

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

2002-02-02 Thread Frederick L. Steinkopf
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 a

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 ca

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 t

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

2002-02-01 Thread Matthew Walker
: 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!

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

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

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 a

Re: [PHP] PHP and Apache

2001-08-13 Thread Rasmus Lerdorf
m: 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 probl

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

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.

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

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