[PHP] PHP redirect

2011-09-24 Thread muad shibani
when I try to go to a URL by using PHP header function so if the URL
contains  it converts it to amp; so the needed page will not
display correctly I tried to use:

 $url = urldecode($data['feed_link']);

 header ( Location: $url );

but I can't get it


RE: [PHP] PHP redirect

2011-09-24 Thread Dajka Tamas
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 Message-
From: muad shibani [mailto:muad.shib...@gmail.com] 
Sent: Saturday, September 24, 2011 12:36 PM
To: php-general@lists.php.net
Subject: [PHP] PHP redirect

when I try to go to a URL by using PHP header function so if the URL
contains  it converts it to amp; so the needed page will not
display correctly I tried to use:

 $url = urldecode($data['feed_link']);

 header ( Location: $url );

but I can't get it


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP redirect

2011-09-24 Thread muad shibani
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? 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 Message-
 From: muad shibani [mailto:muad.shib...@gmail.com]
 Sent: Saturday, September 24, 2011 12:36 PM
 To: php-general@lists.php.net
 Subject: [PHP] PHP redirect

 when I try to go to a URL by using PHP header function so if the URL
 contains  it converts it to amp; so the needed page will not
 display correctly I tried to use:

  $url = urldecode($data['feed_link']);

  header ( Location: $url );

 but I can't get it




RE: [PHP] PHP redirect

2011-09-24 Thread Dajka Tamas
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, 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? 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 Message-
From: muad shibani [mailto:muad.shib...@gmail.com]
Sent: Saturday, September 24, 2011 12:36 PM
To: php-general@lists.php.net
Subject: [PHP] PHP redirect

when I try to go to a URL by using PHP header function so if the URL
contains  it converts it to amp; so the needed page will not
display correctly I tried to use:

 $url = urldecode($data['feed_link']);

 header ( Location: $url );

but I can't get it

 



Re: [PHP] PHP redirect

2011-09-24 Thread muad shibani
it works very well .. thanks a lot for you dajkta you saved my day .. thanks
a lot

On Sat, Sep 24, 2011 at 3:45 AM, Dajka Tamas vi...@vipernet.hu wrote:

 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, 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? 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 Message-
 From: muad shibani [mailto:muad.shib...@gmail.com]
 Sent: Saturday, September 24, 2011 12:36 PM
 To: php-general@lists.php.net
 Subject: [PHP] PHP redirect

 when I try to go to a URL by using PHP header function so if the URL
 contains  it converts it to amp; so the needed page will not
 display correctly I tried to use:

  $url = urldecode($data['feed_link']);

  header ( Location: $url );

 but I can't get it

 ** **