[PHP] Re: Redirect to
Thanks for help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: redirect to a static page
Vit wrote: Hi all, I'm trying to understand how to redirect to a static page here you are the code (it seem to be a stupid code, but I'm just debugging. ?php header( Location: http://www.google.com; ); ? instead of being redirect to www.google,com, I get the following error: Warning: Cannot modify header information - headers already sent by what can be??? how can I solve it?? The header needs to be the very first output your script sends out. No other output may come before it. This is clearly discussed in the manual at http://www.php.net/header. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Redirect via GET is loosing characters
You just have to store your form inputs in the session. -- itoctopus - http://www.itoctopus.com Merlin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, I am checking plausability inside a php script that receives a POST submit. If an error occures the user should be redirected back, along with his original data filled into the forms. There is a problem with this. As the GET method, which the redirect is using, only allows a certain amount of characters, the text is always cut down. I use this: HEADER(Location:.$data[rurl].?error=.$error.$parameter); Is there a way to redirect the user to the form and fill in large text? Thank you for your help, Best regards, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: redirect with header still not working
Read about output buffering, it's your solution and well worth time learning about. Ross wrote: Right, Have tried the full url for the header and it still doesn't work. I may have to resort to...javacript redirects unless someone can suggest a way around it. Here is the phpinfo(); http://s202801613.websitehome.co.uk/info.php Is is 1and1 hosting if anyone had had any experience of them. thanks, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE: Redirect - was Question: Simpler loop
I put the loop at the top of the next page, before any output to the browser: ?php if ($skill!='' $skys[$key]!='' $slus[$key] !='') { // row is valid -- do stuff } else { header(Location: http://www.2soon2show.com/TestMulti4a.php; ); print You have errors; } } ? Before I added the redirect the print worked (and yes it doesn't belong in that part of the loop) Now the redirect is working , but the print isn't. Do I do an exit first, then the redirect and print ? Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: REDIRECT
not with php directly, but you can do that with HTML meta tags, check google for Meta refresh Dale [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anybody know of a way to redirect to another page once you have already outputted html to the screen. In other words, I want to output some text to the screen for 10 secs and then re-direct to another page. Thanks, Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re:[PHP] Re: REDIRECT
Hi: May be you can try javascript: function goto($where,$string) { ? script alert(\?=$string;?\); location.href=\?=$where?\; /script ? exit; } if(true) { goto(\http://www.yam.com\,\thank you!\); } --- Fongming from Taiwan. -- ¡»From: ¦¹«H¬O¥Ñ®ç¤p¹q¤l¶l¥ó1.5ª©©Òµo¥X... http://fonn.fongming.idv.tw [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: REDIRECT
To save you the search : How to use META REFRESH to auto refresh an html page after x seconds. http://examples.weberdev.com/get_example.php3?count=124 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Bobby Patel [mailto:[EMAIL PROTECTED] Sent: Saturday, June 07, 2003 9:35 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: REDIRECT not with php directly, but you can do that with HTML meta tags, check google for Meta refresh Dale [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anybody know of a way to redirect to another page once you have already outputted html to the screen. In other words, I want to output some text to the screen for 10 secs and then re-direct to another page. Thanks, Dale -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: REDIRECT
PUT THE CODE BELOW INTO HEAD TAG OF ANY PAGE TO REDIRECT IT:- script language='JavaScript' setTimeout(location.href='http://www.your-page.com/index.php', 200); /script Change the number 200 to anything you want. The following sample is what I use it for: http://www.eastlothian.org/03eloG.php Chris -- Quoting Boaz Yahav [EMAIL PROTECTED]: To save you the search : How to use META REFRESH to auto refresh an html page after x seconds. http://examples.weberdev.com/get_example.php3?count4 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Bobby Patel [mailto:[EMAIL PROTECTED] Sent: Saturday, June 07, 2003 9:35 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: REDIRECT not with php directly, but you can do that with HTML meta tags, check google for Meta refresh Dale [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anybody know of a way to redirect to another page once you have already outputted html to the screen. In other words, I want to output some text to the screen for 10 secs and then re-direct to another page. Thanks, Dale -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: REDIRECT
Should have been: http://www.eastlothian.org/03eloG.html not .php page which was the page it redirected to. Just have a look at source code of above page as this list message has removed a tag. Chris --- Quoting myphp [EMAIL PROTECTED]: PUT THE CODE BELOW INTO HEAD TAG OF ANY PAGE TO REDIRECT IT:- script language='JavaScript' setTimeout(location.href='http://www.your-page.com/index.php', 200); /script Change the number 200 to anything you want. The following sample is what I use it for: http://www.eastlothian.org/03eloG.php Chris -- Quoting Boaz Yahav [EMAIL PROTECTED]: To save you the search : How to use META REFRESH to auto refresh an html page after x seconds. http://examples.weberdev.com/get_example.php3?count4 Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Bobby Patel [mailto:[EMAIL PROTECTED] Sent: Saturday, June 07, 2003 9:35 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: REDIRECT not with php directly, but you can do that with HTML meta tags, check google for Meta refresh Dale [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anybody know of a way to redirect to another page once you have already outputted html to the screen. In other words, I want to output some text to the screen for 10 secs and then re-direct to another page. Thanks, Dale -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Redirect without header or javascipt
--- Daniel Guerrier [EMAIL PROTECTED] wrote: Is there any to redirect in php with using header() and without the use of javascript? Yes: header('Location: http://www.php.net/'); If we are meant to answer your subject and not your message, then use a meta HTML tag. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Redirect without header or javascipt
I'd say no.. but if this is about limitations of for example the header() function (where it needs to be called before anything should be output to the browser) then you could buffer your output with: ob_start() and ob_end_flush() Hans Daniel Guerrier [EMAIL PROTECTED] schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Is there any to redirect in php with using header() and without the use of javascript? __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Redirect Question
That answers my question. Thanks, -- JJ Harrison [EMAIL PROTECTED] www.tececo.com Tim Luoma [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... FWIW, a user note at http://www.php.net/manual/en/function.header.php says : There is this nasty bug in IE 5 for Windows prior to service pack 2, described in Microsoft knowledgebase article Q281197 which causes a problem with redirecting.. if you submit a POST form to a page that uses header() to redirect to another page after processing the form data, then IE will not display some of the images on the page, if the user has an external HTTP namespace handler (RealDownload for example) installed. It took me a very long time to figure this out; I had no idea why my ads weren't displaying on IE for windows but worked fine everywhere else. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Redirect Question
Instead of outputting a header to redirect the browser would it be safer to use the meta-refresh tag? The reason I ask is because I heard that some versions of IE have trouble with the header There are probable even more browsers that can't handle the META tag... Which versions of IE is somebody claiming can't handle a Location: header? Cuz, like, even IE *CAN'T* be that broken, can it? -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Redirect Question
Which versions of IE is somebody claiming can't handle a Location: header? It's not version 6 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Redirect Question
Which versions of IE is somebody claiming can't handle a Location: header? And it's not version 4 (I'm assuming not 5(.5) either) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Redirect Question
On Monday 22 July 2002 10:35, Chris Earle wrote: Which versions of IE is somebody claiming can't handle a Location: header? And it's not version 4 (I'm assuming not 5(.5) either) When you say version 4, which version 4 do you mean? Ditto for version 5. With so many patches and 'upgrades' issued for IE I won't surprised if there is some combination which causes Location: header to fail. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* All life evolves by the differential survival of replicating entities. -- Dawkins */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Redirect Question
FWIW, a user note at http://www.php.net/manual/en/function.header.php says : There is this nasty bug in IE 5 for Windows prior to service pack 2, described in Microsoft knowledgebase article Q281197 which causes a problem with redirecting.. if you submit a POST form to a page that uses header() to redirect to another page after processing the form data, then IE will not display some of the images on the page, if the user has an external HTTP namespace handler (RealDownload for example) installed. It took me a very long time to figure this out; I had no idea why my ads weren't displaying on IE for windows but worked fine everywhere else. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Redirect?
If this isn't in the PHP FAQ (I couldn't find it), it definitely should be, because somebody asks this question at the very least once a week on this list. J Henrik Johansson wrote: Hi! How do I do a redirect to a different location in PHP? Regards Henrik Johansson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Redirect?
If this isn't in the PHP FAQ (I couldn't find it), it definitely should be, because somebody asks this question at the very least once a week on this list. Very useful feature, i think :) and better to add it to the manual III. Features section (with file apploading, image functions etc) Valentin Petruchek (aki Zliy Pes) http://zliypes.com.ua mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Redirect + SESSION question!!!
I am same problem. I use PHP4.0.6, Apache 1.3.20 and WindowsNT. My code looks like this: ob_start(); session_start(); session_register('is_logon'); if (!$HTTP_SESSION_VARS['is_logon') { header('Location: logon.php'); ob_end_flush(); die(); } If I try to execute this code, I get Dr.Watson from Apache ??? Raivo Tali Mehmet Kamil Erisen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello All, I have switched hosting companies. previous server was php4.04pl1 now I am on a server that is php4.06. I have a file (functions.php) that stores all my SESSION and other functions. A Header file, that has the general feel and look of the site. In brief most of my pages have include(functions.php); include(header.php); I also use the Header(Location: mysite.com) kind of functions a lot. Well, it worked fine in the prev server, now it does not. I read the documentation (http://download.php.net/manual/en/function.header.php) , and it suggests to use of the ob_start() and ob_end_clean() etc... I used those. I can redirect, but now, my SESSION does not work!!! Anybody had a similar experience? Please help... thanks. erisen __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Redirect function
Steve Osborne [EMAIL PROTECTED] wrote in message 000901c181db$bfca1f40$[EMAIL PROTECTED]">news:000901c181db$bfca1f40$[EMAIL PROTECTED]... Is there a function or command in php that will redirect a user to another page, similar to Response.Redirect(URL) in ASP? header(Location: http://www.MyNewUrl.com/index.php;); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Redirect Function?!!
I don't like header('Location: page.php'); so I use a HTTP request class to call another script/page. This does fork another httpd, but that's life :) Roko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Redirect Function?!!
* Roko Roic [EMAIL PROTECTED] [Dec 07. 2001 03:26]: I don't like header('Location: page.php'); so I use a HTTP request class to call another script/page. This does fork another httpd, but that's life :) Just out of curiosity, what's wrong with header('Location ... ');? -- -Brian Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Redirect Function?!!
Brian Clark [EMAIL PROTECTED] wrote in message 20011207082759.GB8750@ganymede">news:20011207082759.GB8750@ganymede... * Roko Roic [EMAIL PROTECTED] [Dec 07. 2001 03:26]: I don't like header('Location: page.php'); so I use a HTTP request class to call another script/page. This does fork another httpd, but that's life :) Just out of curiosity, what's wrong with header('Location ... ');? I may be wrong, but I thing Header(Location) sends a Location header back to the client informing him that he will be redirected. Therefore, you must expect your client to be aware of that HTTP header, and some WAP client performed strangely with this. Also some proprietary HTTP clients could act the same. I, too, would like to know if this is the case? Roko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Re: Redirect Function?!!
RFC 2616 is your friend 14.30 Location The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of the request or identification of a new resource. For 201 (Created) responses, the Location is that of the new resource which was created by the request. For 3xx responses, the location SHOULD indicate the server's preferred URI for automatic redirection to the resource. The field value consists of a single absolute URI. Location = Location : absoluteURI An example is: Location: http://www.w3.org/pub/WWW/People.html Note: The Content-Location header field (section 14.14) differs from Location in that the Content-Location identifies the original location of the entity enclosed in the request. It is therefore possible for a response to contain header fields for both Location and Content-Location. Also see section 13.10 for cache requirements of some methods. Original, better formatted, is at ftp://ftp.isi.edu/in-notes/rfc2616.txt Miles At 11:28 AM 12/7/2001 +0100, Roko Roic wrote: Brian Clark [EMAIL PROTECTED] wrote in message 20011207082759.GB8750@ganymede">news:20011207082759.GB8750@ganymede... * Roko Roic [EMAIL PROTECTED] [Dec 07. 2001 03:26]: I don't like header('Location: page.php'); so I use a HTTP request class to call another script/page. This does fork another httpd, but that's life :) Just out of curiosity, what's wrong with header('Location ... ');? I may be wrong, but I thing Header(Location) sends a Location header back to the client informing him that he will be redirected. Therefore, you must expect your client to be aware of that HTTP header, and some WAP client performed strangely with this. Also some proprietary HTTP clients could act the same. I, too, would like to know if this is the case? Roko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: redirect
Make sure that you have no blank spaces before the ?php tag. It really must be the first line in the script. /Fredrik Etienne Colla [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... hi I 'm newbie with php and i have a small problem. I have a script that uploads 4 pictures But when that is done there has to be a redirect to an other page. but i keep getting the folowing error: Warning: Cannot add header information - headers already sent by (output started at /home/users/A000456/x.be/upload.php:1) in /home/users/A000456/x.be/upload.php on line 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Redirect use back after execution
[EMAIL PROTECTED] (Daniel Harik) wrote: Hello I'm making vbulletin foru hack, that allows to rate members my code is just 50 lines, I set link to my script from vBulletin page, and after it has been clicked code executes, and then i want to return user to the page where he clicked the link leading to my code, i was wondering how can this be done, use REFERER and then header(Locatiom: $REFERER;), will this work? the best thing to do is register the page the user came from, using get or post variables, because some browers dont use referers etc. then just use a header(Location: $theUrl); where $theUrl is the url the user came from. -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: redirect to php problem
Yes, this HTML line will redirect the browser to the php page.. META http-equiv=refresh content=0;url=file.php Gavin Nikola Veber [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi ! I'm having a problem with following : I'd like to activate a php file as a home page, but without pointing directly to it(http://www.smth.com/file.php). I'd like to know if it is possible to call it from a html file(index.htm for exp. ) Thanks Nikola -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Redirect
Header(Location: whereveryouwanttogo.html); On Fri, 6 Jul 2001, [iso-8859-1] Victor Spång Arthursson wrote: Hi! Still new on PHP, converting from vb$cript, I wonder how I do a redirect... In vbscript: % response.redirect(page.extension) % In PHP??? Sincerely Victor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]