If $data['feed_link'] is extracted from $_POST, then it's already
urldecoded.
BTW, what's the problem? It's not redirecting you, or just redirecting you
to az unavailable/wrong page? ( most browsers change the amp; in titlebar
to '', so you don't have to worry about that )
-Original
it redirecting me to unavailable/wrong page, the data came from database
but each time it gives me amp; instead of
On Sat, Sep 24, 2011 at 3:39 AM, Dajka Tamas vi...@vipernet.hu wrote:
If $data['feed_link'] is extracted from $_POST, then it's already
urldecoded.
BTW, what's the problem?
Try header(Location: .html_entity_decode($data['feed_link']));
From: muad shibani [mailto:muad.shib...@gmail.com]
Sent: Saturday, September 24, 2011 12:41 PM
To: Dajka Tamas
Cc: php-general@lists.php.net
Subject: Re: [PHP] PHP redirect
it redirecting me to unavailable/wrong page
:* Saturday, September 24, 2011 12:41 PM
*To:* Dajka Tamas
*Cc:* php-general@lists.php.net
*Subject:* Re: [PHP] PHP redirect
** **
it redirecting me to unavailable/wrong page, the data came from database
but each time it gives me amp; instead of
On Sat, Sep 24, 2011 at 3:39 AM, Dajka
Hi Chris.
You have done a better job describing that situation than i did. Thank you.
best regards
raditha
Chris Shiflett wrote:
--- Raditha Dissanayake [EMAIL PROTECTED] wrote:
It's not often that i disagree with the other chris but one occaision
where meta refresh turns out to be the only
--- Raditha Dissanayake [EMAIL PROTECTED] wrote:
You have done a better job describing that situation than i did. Thank
you.
No problem. :-)
I found that URL I mentioned (with the browser tests). The author claims
that it's all being rewritten, but most of them are listed here:
--- ajay [EMAIL PROTECTED] wrote:
i'd like to redirect a person to another page but after a certain time
interval has elapsed. this is because i have a generic error displaying
page and i would like the person to go to this page, stay there for like
10 seconds and then be redirected to the
--- Chris [EMAIL PROTECTED] wrote:
You can't view the page and have PHP redirect it. You would need to
use a meta refresh tag or JavaScript.
I assume by meta refresh tag, you mean this:
meta http-equiv=refresh content=10;URL=http://example.org/;
What most people seem to not realize, is that
--- Chris [EMAIL PROTECTED] wrote:
You can't view the page and have PHP redirect it. You would need to
use a meta refresh tag or JavaScript.
I assume by meta refresh tag, you mean this:
meta http-equiv=refresh content=10;URL=http://example.org/;
What most people seem to not realize, is
! :)
Chris (the other one)
-Original Message-
From: Chris Shiflett [mailto:[EMAIL PROTECTED]
Sent: Monday, February 16, 2004 8:51 AM
To: Chris; ajay; [EMAIL PROTECTED]
Subject: RE: [PHP] PHP REDIRECT
--- Chris [EMAIL PROTECTED] wrote:
You can't view the page and have PHP redirect
Lowell Allen wrote:
You must do authorization, then force a file download, and you want to also
display a link to the file with the typical click the link below if the
download does not start automatically. I couldn't figure out how to display
a page (after authorization), then use the PHP header
Hi Chris and Chris and et al.
It's not often that i disagree with the other chris but one occaision
where meta refresh turns out to be the only solution is when working
with some payment gateways where instead of doing a simple old post to
your return page they include it inside their own
.
-Original Message-
From: Raditha Dissanayake [mailto:[EMAIL PROTECTED]
Sent: Monday, February 16, 2004 10:07 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP REDIRECT
Hi Chris and Chris and et al.
It's not often that i disagree with the other chris but one occaision
where meta refresh
http-equiv=..., set the header with PHP instead. As far as I can see that
should always be possible.
-Original Message-
From: Raditha Dissanayake [mailto:[EMAIL PROTECTED]
Sent: Monday, February 16, 2004 10:07 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP REDIRECT
Hi Chris and Chris
Ahh, ok, I understand. Thanks
Chris
-Original Message-
From: Raditha Dissanayake [mailto:[EMAIL PROTECTED]
Sent: Monday, February 16, 2004 10:51 AM
To: Chris; [EMAIL PROTECTED]
Subject: Re: [PHP] PHP REDIRECT
Nopes,
What happens is that the gateways include your page instead
--- Raditha Dissanayake [EMAIL PROTECTED] wrote:
It's not often that i disagree with the other chris but one occaision
where meta refresh turns out to be the only solution is when working
with some payment gateways where instead of doing a simple old post to
your return page they include it
--- Raditha Dissanayake [EMAIL PROTECTED] wrote:
What happens is that the gateways include your page instead of posting
to your page.
For example if you visit a site that uses worldpay as a payment service
provider you will see their banner on the thank you page after
payment is made. In
--- Lowell Allen [EMAIL PROTECTED] wrote:
You must do authorization, then force a file download, and you want to
also display a link to the file with the typical click the link below
if the download does not start automatically. I couldn't figure out how
to display a page (after
--- Lowell Allen [EMAIL PROTECTED] wrote:
[snip]
Am I overlooking a better solution?
I'm not sure. To be clear, you're saying that the following two things do
not behave the same for you:
header('Refresh: ...');
meta http-equiv=Refresh ...
Is this right? I suspect that you might
use sleep(no of seconds)..
Cheers
Binay
- Original Message -
From: ajay [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 16, 2004 9:54 AM
Subject: [PHP] PHP REDIRECT
hi!
i'd like to redirect a person to another page but after a certain time
interval
has elapsed. this
You can't view the page and have PHP redirect it. You would need to use a
meta refresh tag or JavaScript.
Chris
-Original Message-
From: ajay [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 15, 2004 8:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP REDIRECT
hi!
i'd like to
ajay wrote:
hi!
i'd like to redirect a person to another page but after a certain time interval
has elapsed. this is because i have a generic error displaying page and i would
like the person to go to this page, stay there for like 10 seconds and then be
redirected to the index page.
i was using
Try this
header(LOCATION: page2go.php);
- Original Message -
From: Angelo Zanetti [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 9:46 AM
Subject: [PHP] PHP redirect
Hi guys what is the function in PHP for directing a php page??
thanx in advance
Angelo
--
PHP
Use the header function:
http://www.php.net/manual/en/function.header.php
-Original Message-
From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 1:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP redirect
Hi guys what is the function in PHP for directing a php
Awlad Hussain wrote:
Try this
header(LOCATION: page2go.php);
I'm not normally so pedantic, however, the HTTP specification defines
the above header as Location, not LOCATION. It might also be an
idea to give the filename as a path relative to the root directory, e.g.
header(Location:
Actually, the standards require an absolute URL, e.g.
header(Location: http://foo.com/bar/baz/something.php;);
David Grant wrote:
It might also be an idea to give the filename as a path relative to
the root directory, e.g.
header(Location: /foo/bar/index.php);
--
The above message is
[snip]
I have a redirect i would like to do using php. It will go something like
this
if (mysql_db_query ($dbname, $query, $link)) {
{redirect would go here}
} else {
{a different location on this redirect here}
How can i accomplish this? i just do not know php well enough to code
[EMAIL PROTECTED]
To: David Buerer [EMAIL PROTECTED]; 'Jay Blanchard'
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Friday, July 26, 2002 11:20 AM
Subject: Re: [PHP] php redirect
Well the current web-dev environment here in Melbourne, Australia is VERY
Microsoft oriented at the moment. I'm happily
Learning about HTTP protocol helps a LOT with understanding headers. Basically, the
headers are generated by the server to tell the client (browser) what to do. If you
send ANYTHING (even a hard return) before the header function is invoked then you will
get this error. In essence, if you
Javascript+PHP+SQL when it
comes to site design. ASP is next on my list.
-Original Message-
From: Martin Clifford [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 8:41 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: [PHP] php redirect
I don't know
I already tried that and i got an error that said Cannot add header
information - headers already sent by (another snippet of code I have in the
page.
Use the header() function
http://www.php.net/manual/en/function.header.php
*
[snip]
Learning about HTTP protocol helps a LOT with understanding headers.
Basically, the headers are generated by the server to tell the client
(browser) what to do. If you send ANYTHING (even a hard return) before the
header function is invoked then you will get this error. In essence, if
]
Subject: RE: [PHP] php redirect
[snip]
This is the only way I've figured out how to do it. It seems to work really
well.
if (mysql_db_query ($dbname, $query, $link)) {
gotourl(myurl1);}
} else {
gorourl(myurl2);}
function gotourl(myurl)
{
echo SCRIPT language=javascript;
echo
On Friday, July 26, 2002, at 11:32 AM, David Buerer wrote:
ASP is about next on my list. I'm just trying to get javascript and PHP
under my belt a little better firstwell ok, I'm waiting for my next
paying client. I've found that you do have to use what you know to know
whatever you need
if and haven't learned it so it couldn't be. After all, how
many programming languages does one need to know??
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 8:27 AM
To: 'David Buerer'; [EMAIL PROTECTED]
Subject: RE: [PHP] php redirect
[snip
[snip]
What's ASP
I don't know if and haven't learned it so it couldn't be. After all, how
many programming languages does one need to know??
[/snip]
a. I should have looked closer, you used JavaScript.
b. window.location=$myurl is used in ASP (Active Server Pages - M$), more
specifically
Am I doing something wrong? Thank you.
You may print nothing before the redirect header!
?
echo hello;
header(Location: go);
exit;
#wrong!
?
?
?
header(Location: go);
exit;
echo hello;
#oke, but hello isn't print
?
?
- Original Message -
From: phantom [EMAIL PROTECTED]
To: [EMAIL
Make sure that there is no output from your PHP script - or any HTML code
whatsoever - before you call the header function.
Cheers
Scott
- Original Message -
From: phantom [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 09, 2001 11:01 AM
Subject: [PHP] PHP Redirect /
Andrew,
I am in a similar position witha Lasso site, which I am considering php-ing.
I need to do conditional redirects.
George P, Edinburgh
- Original Message -
From: Andrew Penniman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 3:37 PM
Subject: [PHP] PHP
[EMAIL PROTECTED] (George Pitcher) writes:
Andrew,
I am in a similar position witha Lasso site, which I am considering php-ing.
I need to do conditional redirects.
George P, Edinburgh
- Original Message -
From: Andrew Penniman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Right off the top of my head, you have three options that I can see:
(1) Rewrite the code to avoid any output before the redirect.
(2) Use output buffering (available only in PHP4). I haven't used
this, but check out
http://www.php.net/manual/en/ref.outcontrol.php
(3) Use a META
Right off the top of my head, you have three options that I can see:
(1) Rewrite the code to avoid any output before the redirect.
I'd recommend this one myself
jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
At 08:11 AM 9/10/01 -0700, Steve Edberg wrote:
Right off the top of my head, you have three options that I can see:
(3) Use a META REFRESH tag. For example:
META HTTP-EQUIV=refresh CONTENT=1;page.php
where 1 is the time (in seconds) before you want the redirect, and 'page.php' is
On Tue, 11 Sep 2001, Jason Brooke wrote:
Right off the top of my head, you have three options that I can see:
(1) Rewrite the code to avoid any output before the redirect.
I'd recommend this one myself
Me too, I can't think of a valid reason to use a Location header while
having
I learn something every day, here :)
According to my McGraw-Hill HTML Programmer's Reference [please, no
messages about HTML not being 'programming'!], the META tag _should_
only occur in the HEAD container. Of course, we all know how
closely browsers adhere to the HTML specs ;P
The Steve Edberg (option #2) and Michael Kimsal suggestions to use
ob_start() output buffering work like a charm. Thanks so much! I would
have been a long time coming before I mad this connection on my own.
Guess I need to hone my archive querying skills...
I think it would be _really_ swell
Good to hear. How's fusebox working for you?
Andrew Penniman wrote:
The Steve Edberg (option #2) and Michael Kimsal suggestions to use
ob_start() output buffering work like a charm. Thanks so much! I would
have been a long time coming before I mad this connection on my own.
Guess I need to
HI
You can put the header function anywhere in the php code as long
as the logic sends it as the very first output for the page in html.
Conditional redirects are no problem.
[EMAIL PROTECTED] (George Pitcher) writes:
Andrew,
I am in a similar position witha Lasso site, which I am
48 matches
Mail list logo