:-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2004-11-16 at 13:10 -0500, Scott Fletcher wrote:
> Hi!
>
> I wonder is is it possible to have an http header that would stimluate
> files/folders upload via dragging over to the browser window? If so then
> what are the sample functions or scripts that make this possible...
>
> Thank
Yes, that works.
>>Is the following code the best way to redirect someone to a different
>>page using PHP?
>>
>>>header("Location: http://www.yahoo.com";);
>>?>
>>
>>I looked for a "redirect" function of some kind and didn't come up with
>>anything. Just curious what the consensus is...
[snip]
Also, when you're using PHP, it is rare that it is going to be better
to
use a meta tag to emulate an HTTP header. PHP has the header()
function,
and it can set real headers.
[/snip]
also, meta refreshes are easy to turn off.
--
PHP General Mailing List (http://www.php.net/)
To unsubscrib
--- Elfyn McBratney <[EMAIL PROTECTED]> wrote:
> > Is the following code the best way to redirect someone to a
> > different page using PHP?
> >
> > > header("Location: http://www.yahoo.com";);
> > ?>
>
> That's also known as "breaking the back button", but is the only way
> to do it in PHP. A bet
[snip]
That's also known as "breaking the back button", but is the only way to
do it
in PHP. A better way to redirect someone (and keep the back busson
working)
is to use the meta html tag.
[/snip]
How is that breaking the back button?
--
PHP General Mailing List (http://www.php.net/)
To uns
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello Gabe,
On Friday 16 Apr 2004 19:48, Gabe wrote:
> Is the following code the best way to redirect someone to a different
> page using PHP?
>
> header("Location: http://www.yahoo.com";);
> ?>
That's also known as "breaking the back button", but i
[snip]
Is the following code the best way to redirect someone to a different
page using PHP?
http://www.yahoo.com";);
?>
I looked for a "redirect" function of some kind and didn't come up with
anything. Just curious what the consensus is...
[/snip]
yes
http://www.php.net/header has a good wa
You mean this
header('Window-target: _top');
header("Location:index.php?expire=0");
> On Tue, Mar 12, 2002 at 08:08:25AM +0800, Michael P. Carel wrote:
> >
> > I have here a problem regarding auto redirecting a Frame supported page
upon
> > session timeout. I'm redirecting the page upon session
On Tue, Mar 12, 2002 at 08:08:25AM +0800, Michael P. Carel wrote:
>
> I have here a problem regarding auto redirecting a Frame supported page upon
> session timeout. I'm redirecting the page upon session timeout to
> header("Location:index.php?expire=0"); . But i want that to redirect with a
> sp
These are all HTTP request headers. See the HTTP spec for details. They
have nothing to do with PHP.
-Rasmus
On Tue, 26 Feb 2002 [EMAIL PROTECTED] wrote:
> Hi all,
>
> I'm debugging a php script that is using several environmental vars that I'm not
>familiar with:
> HTTP_VIA
> HTTP_CONNECTIO
you get get some header variable data, such as $HTTP_REFERER
execute to determine what is available to you (differs
from system to system)
You might also iterate through $HTTP_SERVER_VARS[], $HTTP_ENV_VARS[]
-Original Message-
From: marcbey [mailto:[EMAIL PROTECTED]]
Sent: Friday, Fe
Just use header().
header("HTTP/1.1 200");
header(Date: Mon, 04 Feb 2002 10:01:54 GMT");
etc., etc.
Just make sure that they are all sent before you start any output to the
browser.
Mike
- Original Message -
From: "Daniel Reichenbach" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTE
On 30-Jul-2001 Ben Bleything wrote:
> All I want to do is output "Authentication failed" above the form if
> they type in invalid credentials. I want to do it by passing a header
> that contains the same information as if there were a form submitted
> that contained a field name "failed" and val
html.
Hope this helps everybody out.
Thanks,
Ben
-Original Message-
From: Richard Baskett [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 29, 2001 8:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] HTTP header question.
The way that I did it was by using sessions which if you have a log
> Thanks,
> Ben
>
> -Original Message-
> From: Dave VanAuken [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 29, 2001 7:16 PM
> To: Ben Bleything; [EMAIL PROTECTED]
> Subject: RE: [PHP] HTTP header question.
>
> what is the logic behind requiring the header
nt: Sunday, July 29, 2001 7:16 PM
To: Ben Bleything; [EMAIL PROTECTED]
Subject: RE: [PHP] HTTP header question.
what is the logic behind requiring the header?
for example, to avoid using cookies and yet ensuring security, we pass a
loginkey for all pages.
every page has
include('se
what is the logic behind requiring the header?
for example, to avoid using cookies and yet ensuring security, we pass a
loginkey for all pages.
every page has
include('securitycheck.php');
which parses the loginkey, uncompresses/decode it to get the userid and
timestamp, and prompts for
Use $HTTP_REFERER
http://php.net/manual/en/language.variables.predefined.php
> -Original Message-
> From: Jack [mailto:[EMAIL PROTECTED]]
> Sent: 11 iulie 2001 01:23
> To: [EMAIL PROTECTED]
> Subject: [PHP] http header
>
>
> Dear all folks,
> I want to get the url of the previous page t
19 matches
Mail list logo