[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
- 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

Re: [PHP] PHP redirect

2011-09-24 Thread muad shibani
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

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

Re: [PHP] PHP redirect

2011-09-24 Thread muad shibani
:* 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

Re: [PHP] PHP REDIRECT

2004-02-18 Thread Raditha Dissanayake
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

Re: [PHP] PHP REDIRECT

2004-02-18 Thread Chris Shiflett
--- 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:

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Chris Shiflett
--- 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

RE: [PHP] PHP REDIRECT

2004-02-16 Thread Chris Shiflett
--- 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

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Lowell Allen
--- 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

RE: [PHP] PHP REDIRECT

2004-02-16 Thread Chris
! :) 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

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Stuart
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

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Raditha Dissanayake
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

RE: [PHP] PHP REDIRECT

2004-02-16 Thread Chris
. -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

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Raditha Dissanayake
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

RE: [PHP] PHP REDIRECT

2004-02-16 Thread 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

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Chris Shiflett
--- 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

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Chris Shiflett
--- 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

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Chris Shiflett
--- 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

Re: [PHP] PHP REDIRECT

2004-02-16 Thread Lowell Allen
--- 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

[PHP] PHP REDIRECT

2004-02-15 Thread ajay
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 header(url)

Re: [PHP] PHP REDIRECT

2004-02-15 Thread Binay
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

RE: [PHP] PHP REDIRECT

2004-02-15 Thread Chris
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

Re: [PHP] PHP REDIRECT

2004-02-15 Thread John Nichel
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

[PHP] PHP redirect

2003-05-29 Thread Angelo Zanetti
Hi guys what is the function in PHP for directing a php page?? thanx in advance Angelo

Re: [PHP] PHP redirect

2003-05-29 Thread Awlad Hussain
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

RE: [PHP] PHP redirect

2003-05-29 Thread Ralph
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

Re: [PHP] PHP redirect

2003-05-29 Thread David Grant
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:

Re: [PHP] PHP redirect

2003-05-29 Thread Leif K-Brooks
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

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
[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

Re: [PHP] php redirect

2002-07-26 Thread Tech Support
[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

RE: [PHP] php redirect

2002-07-26 Thread Martin Clifford
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

RE: [PHP] php redirect

2002-07-26 Thread David Buerer
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

RE: [PHP] php redirect

2002-07-26 Thread Tyler Durdin
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 *

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
[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

RE: [PHP] php redirect

2002-07-26 Thread David Buerer
] 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

[PHP] [Getting OT] Re: [PHP] php redirect

2002-07-26 Thread Chris Garaffa
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

Re: [PHP] php redirect

2002-07-26 Thread Bob Lockie
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

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
[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

[PHP] PHP Redirect / header(location: )

2001-11-09 Thread phantom
I am trying to set up a redirect scirpt that in ASP was response.redirect(escape(newpage.asp)). I tried in PHP header(location: newpage.php) but all i got was an error message saying that my header content had already been sent. This PHP script was above the html script. Am I doing something

Re: [PHP] PHP Redirect / header(location: )

2001-11-09 Thread Bas Jobsen
PROTECTED] Sent: Friday, November 09, 2001 10:01 AM Subject: [PHP] PHP Redirect / header(location: ) I am trying to set up a redirect scirpt that in ASP was response.redirect(escape(newpage.asp)). I tried in PHP header(location: newpage.php) but all i got was an error message saying that my

Re: [PHP] PHP Redirect / header(location: )

2001-11-09 Thread Scott Houseman
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 / header

[PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Andrew Penniman
I am trying to figure out how to use PHP to redirect the user to a new location *after* processing and most likely outputting a bunch of code. Because this redirection would happen late in the game I can't use header(Location: .$redirect_to); I come from a ColdFusion background and am used to

Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread George Pitcher
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

Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Robin Vickery
: Monday, September 10, 2001 3:37 PM Subject: [PHP] PHP Redirect in the middle of code? I am trying to figure out how to use PHP to redirect the user to a new location *after* processing and most likely outputting a bunch of code. Because this redirection would happen late in the game I

Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Steve Edberg
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

Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Jason Brooke
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,

Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Ken
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

Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Philip Olson
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

Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Steve Edberg
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

RE: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Andrew Penniman
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

Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Michael Kimsal
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

Re: [PHP] PHP Redirect in the middle of code?

2001-09-10 Thread Michael J. Seely
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 Redirect in the middle of code? I am trying