On Tue, May 30, 2006 1:21 pm, Philip Thompson wrote:
> On May 30, 2006, at 12:52 PM, Stut wrote:
>
>> Philip Thompson wrote:
>>> Ok, I have modified my code a little bit. Stut, yes, output
>>> buffering was on by default (4096). I *think* this will work. It
>>> appears to be the same as before - st
Your theory is wrong.
The correct answer is that somebody turned output_buffering "ON" in
php.ini (or .htaccess) so the output is not really sent until the
script finishes (up to 4096 chars).
On Tue, May 30, 2006 11:08 am, Philip Thompson wrote:
> Hi all.
>
> I have a site where I include pages w
Philip Thompson wrote:
I was under the impression that if ob_end_flush() was not called, then
there would be a memory leak. Is this not the case?
No, it's not. All output buffers are flushed in the reverse order of
opening when the script ends.
From http://us3.php.net/ob_start :
"Output bu
Philip Thompson wrote:
On May 30, 2006, at 12:52 PM, Stut wrote:
Philip Thompson wrote:
Ok, I have modified my code a little bit. Stut, yes, output buffering
was on by default (4096). I *think* this will work. It appears to be
the same as before - still redirecting appropriately:
...
On May 30, 2006, at 12:52 PM, Stut wrote:
Philip Thompson wrote:
Ok, I have modified my code a little bit. Stut, yes, output
buffering was on by default (4096). I *think* this will work. It
appears to be the same as before - still redirecting appropriately:
...
The subpage does not
Philip Thompson wrote:
Ok, I have modified my code a little bit. Stut, yes, output buffering
was on by default (4096). I *think* this will work. It appears to be
the same as before - still redirecting appropriately:
...
The subpage does not change any, only index.php. I am basically
"h
As you can see, by the time that index.php includes the subpage, it
has already outputted HTML. According to using the header() function,
you are not allowed to output any HTML *before* using header().
However, I am doing this and it is redirecting fine.
You can also always use the old trie
Ok, I have modified my code a little bit. Stut, yes, output buffering
was on by default (4096). I *think* this will work. It appears to be
the same as before - still redirecting appropriately:
...
The subpage does not change any, only index.php. I am basically
"holding off" on displa
Philip Thompson wrote:
As you can see, by the time that index.php includes the subpage, it
has already outputted HTML. According to using the header() function,
you are not allowed to output any HTML *before* using header().
However, I am doing this and it is redirecting fine.
I have hypo
Yes, I do tests to make sure that the file actually exists and what
not. I have just simplified my code for this example
~PT
On May 30, 2006, at 11:27 AM, Martin Alterisio wrote:
2006/5/30, Philip Thompson <[EMAIL PROTECTED]>:
Are you checking what the user is sending inside $_GET['pa
2006/5/30, Philip Thompson <[EMAIL PROTECTED]>:
Are you checking what the user is sending inside $_GET['page']? If not, your
system is vulnerable to a remote file injection.
Hi all.
I have a site where I include pages within pages. Well, for some of
the pages I want the user to be logged in, while others I don't care.
I'm doing something that I thought was not allowed by the header()
function.
...
As you can see, by the time that index.php includes
On Tue, April 25, 2006 4:47 pm, Stut wrote:
> 3b) User clicks on a normal link, goes to another page then hits
> back...
> user sees an evil-looking and unexpected question asking whether to
> resubmit the form values. Most users I know will hit OK because they
> don't understand it. This is bad, f
Richard Lynch wrote:
On Tue, April 25, 2006 12:47 pm, Stut wrote:
As long as we're throwing foreign money into the ring, I'd just like
to
say that I make a point of redirecting to another page after a post
request, otherwise you get unsightly errors in the browser when the
user
tries to use the
On Tue, April 25, 2006 12:47 pm, Stut wrote:
> As long as we're throwing foreign money into the ring, I'd just like
> to
> say that I make a point of redirecting to another page after a post
> request, otherwise you get unsightly errors in the browser when the
> user
> tries to use the back/forward
On Tue, 2006-04-25 at 13:47, Stut wrote:
> Richard Lynch wrote:
> > If you are doing your sanitization/filtering/validation correctly, you
> > shouldn't even be READING $_POST after the first 3 lines of your PHP
> > code anyway. (Okay, maybe first 10 lines.)
>
> The same goes for $_GET data also.
Richard Lynch wrote:
If you are doing your sanitization/filtering/validation correctly, you
shouldn't even be READING $_POST after the first 3 lines of your PHP
code anyway. (Okay, maybe first 10 lines.)
The same goes for $_GET data also.
The longer you use header("Location: ...") the more y
On Tue, April 25, 2006 2:12 am, Richard Lynch wrote:
I left out some steps...
> 1. Writes a bunch of data to hard drive in $_SESSION
> Or to your db, which ends up on your hard drive anyway, most likely.
> Okay, this bit could get real complicated and picuyane, but let's just
> agree that it uses
On Sat, April 22, 2006 10:15 am, Todd Cary wrote:
>if ($send)
> header("location: mypage.php?message=" . $message);
>
> the data ($message) is passed in the URL. Is there a way to pass
> the data as though it was a POST method i.e. not in the URL?
Without copying and pasting a lot of bit
M. Sokolewicz wrote:
Jochem Maas wrote:
Todd Cary wrote:
If I use
if ($send)
header("location: mypage.php?message=" . $message);
the data ($message) is passed in the URL. Is there a way to pass the
data as though it was a POST method i.e. not in the URL?
probably, but I don't kno
Jochem Maas wrote:
Todd Cary wrote:
If I use
if ($send)
header("location: mypage.php?message=" . $message);
the data ($message) is passed in the URL. Is there a way to pass the
data as though it was a POST method i.e. not in the URL?
probably, but I don't know how off the top of m
Where's Chris when we need him? I would be interested in also hearing his
thoughts here too.
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Todd Cary wrote:
>> If I use
>>
>> if ($send)
>> header("location: mypage.php?message=" . $message);
>>
>> the data ($mes
Todd Cary wrote:
If I use
if ($send)
header("location: mypage.php?message=" . $message);
the data ($message) is passed in the URL. Is there a way to pass the
data as though it was a POST method i.e. not in the URL?
probably, but I don't know how off the top of my head.
look into usin
Todd Cary wrote:
If I use
if ($send)
header("location: mypage.php?message=" . $message);
the data ($message) is passed in the URL. Is there a way to pass the
data as though it was a POST method i.e. not in the URL?
Todd
you should look into using sessions to store the data maybe?
A
If I use
if ($send)
header("location: mypage.php?message=" . $message);
the data ($message) is passed in the URL. Is there a way to pass
the data as though it was a POST method i.e. not in the URL?
Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
try this
header("Location: email_confirm.php?email=".$email);
exit();
Angelo Zanetti
Z Logic
www.zlogic.co.za
[c] +27 72 441 3355
[t] +27 21 469 1052
Ross wrote:
>Is it possible to send variables using header() ?
>
>I have tried variations on the theme
>
>header ('Location: email_confirm.php?
Ross wrote:
Is it possible to send variables using header() ?
I have tried variations on the theme
header ('Location: email_confirm.php?email=$email);
but nothing seems to work.
I don't know what you tried, but the above results in parse error. Try:
header ("Location: email_confirm.php?email=$email
Is it possible to send variables using header() ?
I have tried variations on the theme
header ('Location: email_confirm.php?email=$email);
but nothing seems to work.
Ta,
Ross
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'd like to be able to "timeout" a user if they are inactive for X
minutes. Say, if they walk away from the browser leaving sensivive data
in plain view.
Is there any reason that using the header() function as below wouldn't
be a reliable way to do this (albeit user-unfriendly)? It "works for
gt; From: Adam Voigt [mailto:[EMAIL PROTECTED]
> Sent: 27 June 2003 14:08
> To: Gary Ogilvie
> Cc: 'PHP General'
> Subject: Re: [PHP] Using header in if statement
>
> Just have it echo, example:
>
> echo " content=\"0;url=http://192.92.0.248/company_s
I didn't realise you could use echo to run a URL. Thanks for your help
:)
-Original Message-
From: Adam Voigt [mailto:[EMAIL PROTECTED]
Sent: 27 June 2003 14:08
To: Gary Ogilvie
Cc: 'PHP General'
Subject: Re: [PHP] Using header in if statement
Just have it echo, examp
Just have it echo, example:
echo "http://192.92.0.248/company_search/admin/admin2.php\";>";
On Fri, 2003-06-27 at 09:03, Gary Ogilvie wrote:
> If I attempt to direct the user to a url with in a if statement using a
> header I get the following error message:
>
> Warning: Cannot modify header i
If I attempt to direct the user to a url with in a if statement using a
header I get the following error message:
Warning: Cannot modify header information - headers already sent by
(output started at c:\inetpub\wwwroot\company_search\admin\login.php:3)
in c:\inetpub\wwwroot\company_search\admin\
ame=" . $filename .
".xls");
}
---John Holmes...
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 24, 2002 5:11 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] using header() to display info in excel
>
> Hey,
>
Hey,
I am looking to read information from a database and when you click a link
all of those arrays will be displayed in excel using header();. I have heard
there are lots of commands in cgi but I don't know cgi and I am wondering if
it is still possible with php. I would also like info on r
On Sat, 11 May 2002, baldey_uk wrote:
> Basically im trying to update details in a database, after the new details
> are put into a form they are printed to the screen with a 'are the details
> correct' scenario. From there if they click 'no' i want them to be put back
> to the updateaddress.php p
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Jason Wong declared
> ... if you use a header() you cannot output anything beforehand. See manual.
Oh, yeah, missed that one :-)
- --
Nick Wilson // www.explodingnet.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (G
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then baldey_uk declared
> #if not we need to keep the customer_id and quantity and start again
> case "no" :
> echo ' type="hidden" name="txtCustomer_id" value='.$customer_id.'>';
> he
On Saturday 11 May 2002 19:20, baldey_uk wrote:
> Here ya go:
>
> Basically im trying to update details in a database, after the new details
> are put into a form they are printed to the screen with a 'are the details
> correct' scenario. From there if they click 'no' i want them to be put back
>
header("Location: updateaddress.php");
exit;
}
?>
Cheers
Baldey_uk
-Original Message-
From: Nick Wilson [mailto:[EMAIL PROTECTED]]
Sent: 11 May 2002 12:15
To: PHP-General
Subject: Re: [PHP] using header ();
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* an
ck Wilson [mailto:[EMAIL PROTECTED]]
> Sent: 11 May 2002 12:07
> To: Php-General
> Subject: Re: [PHP] using header ();
>
>
>
> * and then baldey_uk declared
>
> > Can someone tell me how to use the header function? Can i use it with
> > relative URLs for example:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then baldey_uk declared
> Yes i have tested it thats why i am asking, as it is not working either way
> for me, it just stays on the same screen but blanks the previous output to
> the page.
Weird, works fine for me. Let's see the code.
-
: [PHP] using header ();
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then baldey_uk declared
> Can someone tell me how to use the header function? Can i use it with
> relative URLs for example:
>
> header ("Location:index2.php");
Have you tested it?
Come on, t
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then baldey_uk declared
> Can someone tell me how to use the header function? Can i use it with
> relative URLs for example:
>
> header ("Location:index2.php");
Have you tested it?
Come on, took me all of a minute and a half to try it out
Hi all,
Can someone tell me how to use the header function? Can i use it with
relative URLs for example:
header ("Location:index2.php");
If i have that line somewhere in my script will the browser be automatically
taken there or do i have to echo it or something of the like? Thanks for any
help
More than likely not. Putting an exit statement after a header redirect
is just good practice and ensures that nothing gets executed after
redirecting.
Mike
Don wrote:
>Hi,
>
>I have a PHP script that uses the following code to redirect to a page of the user's
>choice:
>
>header("Location: h
Hi,
I have a PHP script that uses the following code to redirect to a page of the user's
choice:
header("Location: http://www.mypage.net/";);
In examples of this type of coding in various scriots, the above line is always
followed by the statement:
exit;
I am wondering why. When executin
47 matches
Mail list logo