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
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
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.
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:
>
>
> ...
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
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
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
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
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
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
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?
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
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
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
[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/
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
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
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
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
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
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
--- 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
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
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
[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
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
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
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
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
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
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
..
>
>
> 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:
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
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
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
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
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
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,
-
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
- 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
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
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
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
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
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
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
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!
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
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] PH
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
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
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.
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
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
56 matches
Mail list logo