Almost.
It's not the Location Header you want to play with.
header(HTTP/1.0 403 Forbidden);
will do the job.
Serge.
On Thu, 27 Mar 2003 09:41:57 -0600
Christopher Ditty [EMAIL PROTECTED] wrote:
I have a customer that wants to return a 403 Forbidden header/page when
certain conditions are
This this point the only thing you have done is overridden the status code.
You still have to send something to the browser. HTTP/1.0 403 Forbidden is not a page
or a location. It's a result code. You could then do something as simple as:
print You are forbidden to view this page;
Serge.
Hello,
I am just upgrading to mySQL 4. As per the recommendation at www.mysql.com I am
recompiling programs that link against the mysql client. When I try to compile
PHP-4.3.1 I get many many lines similar to:
/usr/lib/mysql/libmysqlclient.a(net.o): In function `net_request_file':
Hello,
I am trying to get ob_start to work the way I expect but I am running
into some problems.
Take the following example code:
/* Start of code snippet */
function ob_spit_content_length ($buffer) {
$len=strlen($buffer);
if($len0) Header( Content-Length: $len
Ok. It was a late night. A fresh morning helped me solve my own
problem.
I was using ob_end_clean rather than ob_end_flush. I though I was going
crazy!
Serge.
In article [EMAIL PROTECTED], Serge Paquin
[EMAIL PROTECTED] wrote:
Hello,
I am trying to get ob_start to work the way I
Hello All,
I am making headway but I still seem to be having some problems.
Whenever I have executing I get the following
message:
bWarning/b: ob_gzhandler() [a
href='http://www.php.net/ref.outcontrol'ref.outcontrol/a]: output handler
'ob_gzhandler' cannot be used twice
in
This happens on
Not the more secure solution but should do the trick:
I will assume that your webserver is run as apache.apache
Make a copy of passwd and call it (for example) apache_passwd
execute the following as root:
$chown root.apache apache_passwd
$chmod u+rwxs,g+rwx,o-rwx
Notice the s in the u+. This
Here is a very simple APP to test my problem. Below you can see my
result. This is done on PHP 4.3.0
Serge.
?
function ob_end_flush_all () {
while ( ob_get_level() ) {
ob_end_flush();
}
}
function ob_spit_content_length ($buffer) {
$len=strlen($buffer);
I found the problem. It's a bug in PHP 4.3.0 and is fixed in CVS which I
just confirmed...
Serge.
In article 007a01c2c3e1$bab70650$a629089b@TBHHCCDR, 1lt John W. Holmes
[EMAIL PROTECTED] wrote:
Is output_handler set in your php.ini?
---John Holmes...
--
PHP General Mailing List
Vogelsinger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 08, 2002 4:00 AM
Subject: Re: [PHP] ob_gzhandler
At 07:45 08.11.2002, Serge Paquin said:
[snip]
Hello,
Is their anyway to use ob_gzhandler along with another callback?
I've
tried
At 07:45 08.11.2002, Serge Paquin said:
[snip]
Hello,
Is their anyway to use ob_gzhandler along with another callback?
I've
tried the following which does not work:
function DoCache($buffer) {
/* Do a bunch of stuff */
return
that gets me.
Serge.
On Fri, 08 Nov 2002 15:58:12 +0100
Ernest E Vogelsinger [EMAIL PROTECTED] wrote:
At 15:48 08.11.2002, Serge Paquin spoke out and said:
[snip]
I get no output at all.
All DoCache does is write $buffer to a file then return $buffer
Hello,
Is their anyway to use ob_gzhandler along with another callback? I've
tried the following which does not work:
function DoCache($buffer) {
/* Do a bunch of stuff */
return ob_gzhandler($buffer);
}
ob_start(DoCache);
... The program and such ...
ob_end_flush();
Can
13 matches
Mail list logo