Re: [PHP] redirect a shell command to stdout in real time

2012-09-11 Thread shiplu
You can use pipe to run the command and capture the stdout. Then dump it with proper header to browser. Note, If the external command (specially video encoding) takes long time you should probably use cron for this and maintain a queue. I recommend you apply some sorts of caching also. -- Shiplu

[PHP] redirect a shell command to stdout in real time

2012-09-11 Thread zonyi besk
Hi All, I want to redirect the stdout of an executing shell command to stdout of php called by browser The command some stream like command like ffmpeg -i rtmp://192. - rtmpdump -v -r rtmp://192 -a app -y stream -o - so its live video, and the execution not stops, till the user navigate

Re: [PHP] PHP redirect

2011-09-24 Thread muad shibani
; *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 & instead of &a

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 unavail

Re: [PHP] PHP redirect

2011-09-24 Thread muad shibani
lto: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 & so the needed page will not

RE: [PHP] PHP redirect

2011-09-24 Thread Dajka Tamas
ave 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

[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 & 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: Re[2]: [PHP] Redirect output to a file on the web server

2010-12-06 Thread Steve Staples
> Twitter: http://twitter.com/m_elensule > Facebook: http://facebook.com/menelion > > - Original message - > From: Steve Staples > To: php-general@lists.php.net > Date: Monday, December 6, 2010, 6:41:34 PM > Subject: [PHP] Redirect output to a file on the web server >

Re[2]: [PHP] Redirect output to a file on the web server

2010-12-06 Thread Andre Polykanine
ssage - From: Steve Staples To: php-general@lists.php.net Date: Monday, December 6, 2010, 6:41:34 PM Subject: [PHP] Redirect output to a file on the web server On Mon, 2010-12-06 at 16:19 +, Richard Quadling wrote: > On 6 December 2010 15:46, Ferdi wrote: > > On 6 December 2010 20:47,

Re: [PHP] Redirect output to a file on the web server

2010-12-06 Thread Steve Staples
On Mon, 2010-12-06 at 16:19 +, Richard Quadling wrote: > On 6 December 2010 15:46, Ferdi wrote: > > On 6 December 2010 20:47, Steve Staples wrote: > > > >> On Mon, 2010-12-06 at 20:29 +0530, Ferdi wrote: > >> > Greetings List members, > >> > > >> > I have a script that takes quite a while to

Re: [PHP] Redirect output to a file on the web server

2010-12-06 Thread Richard Quadling
On 6 December 2010 15:46, Ferdi wrote: > On 6 December 2010 20:47, Steve Staples wrote: > >> On Mon, 2010-12-06 at 20:29 +0530, Ferdi wrote: >> > Greetings List members, >> > >> > I have a script that takes quite a while to run, one or two hours, I wish >> to >> > redirect the normal php output t

Re: [PHP] Redirect output to a file on the web server

2010-12-06 Thread Ferdi
On 6 December 2010 20:47, Steve Staples wrote: > On Mon, 2010-12-06 at 20:29 +0530, Ferdi wrote: > > Greetings List members, > > > > I have a script that takes quite a while to run, one or two hours, I wish > to > > redirect the normal php output to a file on the webserver itself. I don't > > min

Re: [PHP] Redirect output to a file on the web server

2010-12-06 Thread Steve Staples
On Mon, 2010-12-06 at 20:29 +0530, Ferdi wrote: > Greetings List members, > > I have a script that takes quite a while to run, one or two hours, I wish to > redirect the normal php output to a file on the webserver itself. I don't > mind if in the process, the browser displays a blank page. The re

[PHP] Redirect output to a file on the web server

2010-12-06 Thread Ferdi
Greetings List members, I have a script that takes quite a while to run, one or two hours, I wish to redirect the normal php output to a file on the webserver itself. I don't mind if in the process, the browser displays a blank page. The reason I want to do this is that if the script crashes or th

Re: [PHP] Redirect to

2010-06-10 Thread Ashley Sheridan
On Thu, 2010-06-10 at 21:06 +0300, Ahmed Mohsen wrote: > Hi folks, > I know that this is not a php question, but I'm sure it some kind > related to it. I need to put my public files under "public" folder, and > other includes files and database config in other folder not shown to > the public,

Re: [PHP] Redirect to

2010-06-10 Thread Daniel P. Brown
On Thu, Jun 10, 2010 at 14:06, Ahmed Mohsen wrote: [snip!] > > I don't want to enter (example.com/public) to view index.php file.  I just > want to enter (example.com) and it redirects to the public folder and shows > only (example.com/index.php) in the URL.  And for login.php should display > (ex

[PHP] Redirect to

2010-06-10 Thread Ahmed Mohsen
Hi folks, I know that this is not a php question, but I'm sure it some kind related to it. I need to put my public files under "public" folder, and other includes files and database config in other folder not shown to the public, but i don't know how to do that. I hope if some one show me how

Re: [PHP] Redirect not working on server

2009-06-03 Thread Ashley Sheridan
On Tue, 2009-06-02 at 20:43 -0700, revDAVE wrote: > Thank you Jay - Shawn & Paul for helping this newbie! > > > -- > Thanks - RevDave > Cool @ hosting4days . com > [db-lists 09] > > > > Also, according to the spec, the URL should be in absolute form, not relative like you have there. Ash ww

Re: [PHP] Redirect not working on server

2009-06-02 Thread revDAVE
Thank you Jay - Shawn & Paul for helping this newbie! -- Thanks - RevDave Cool @ hosting4days . com [db-lists 09] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect not working on server

2009-06-02 Thread Paul M Foster
On Tue, Jun 02, 2009 at 11:50:55AM -0700, revDAVE wrote: > I have this line at the end of 1 big php block... > > header('Location: mypage.php?id=' . > $_SESSION['id'].'&cat='.$_SESSION['cat']); > > It works fine on my dev. Testing server but does not forward on the actual > website > > Any

Re: [PHP] Redirect not working on server

2009-06-02 Thread Shawn McKenzie
revDAVE wrote: > I found the answer here - I had --- whitespace & ... if > Location: http://www.phpbuilder.com/board/showthread.php?t=10310794 > > Blank space above the php tag or below the final php tag > It is not intuitive but ... > > if can cause problems such as the php header function no

Re: [PHP] Redirect not working on server

2009-06-02 Thread revDAVE
I found the answer here - I had --- whitespace & ... if http://www.phpbuilder.com/board/showthread.php?t=10310794 Blank space above the php tag or below the final php tag It is not intuitive but ... if http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirect not working on server

2009-06-02 Thread revDAVE
On 6/2/2009 12:41 PM, "revDAVE" wrote: >> [snip] >> I have this line at the end of 1 big php block... >> >> header('Location: mypage.php?id=' . >> $_SESSION['id'].'&cat='.$_SESSION['cat']); >> >> It works fine on my dev. Testing server but does not forward on the >> actual >> website >> >>

Re: [PHP] Redirect not working on server

2009-06-02 Thread revDAVE
On 6/2/2009 12:04 PM, "Jay Blanchard" wrote: > [snip] > I have this line at the end of 1 big php block... > > header('Location: mypage.php?id=' . > $_SESSION['id'].'&cat='.$_SESSION['cat']); > > It works fine on my dev. Testing server but does not forward on the > actual > website > > Any

RE: [PHP] Redirect not working on server

2009-06-02 Thread Jay Blanchard
[snip] I have this line at the end of 1 big php block... header('Location: mypage.php?id=' . $_SESSION['id'].'&cat='.$_SESSION['cat']); It works fine on my dev. Testing server but does not forward on the actual website Any way to fix this? [/snip] The first thing that you will want to do is

[PHP] Redirect not working on server

2009-06-02 Thread revDAVE
I have this line at the end of 1 big php block... header('Location: mypage.php?id=' . $_SESSION['id'].'&cat='.$_SESSION['cat']); It works fine on my dev. Testing server but does not forward on the actual website Any way to fix this? Home is php 5 Server (not sure) might not be 5 - ma

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-16 Thread Clancy
On Thu, 16 Apr 2009 09:26:52 -0500, nos...@mckenzies.net (Shawn McKenzie) wrote: >Stuart wrote: >> 2009/4/15 Don : >>> I have some code in my index.php file that check the user agent and >>> redirects to a warning page if IE 6 or less is encountered. >>> >>> 1. I'm using a framework and so calls t

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-16 Thread Shawn McKenzie
Stuart wrote: > 2009/4/15 Don : >> I have some code in my index.php file that check the user agent and >> redirects to a warning page if IE 6 or less is encountered. >> >> 1. I'm using a framework and so calls to all pages go through index.php >> 2. The code that checks for IE 6 or less and redirec

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-16 Thread Igor Escobar
I Agree with @stuart. Regards, Igor Escoar Systems Analyst & Interface Designer -- Personal Blog ~ blog.igorescobar.com Online Portifolio ~ www.igorescobar.com Twitter ~ @igorescobar On Thu, Apr 16, 2009 at 6:05 AM, Stuart wrote: > 2009/4/15 Don : > > I have some code in my index.php fil

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-16 Thread Stuart
2009/4/15 Don : > I have some code in my index.php file that check the user agent and > redirects to a warning page if IE 6 or less is encountered. > > 1. I'm using a framework and so calls to all pages go through index.php > 2. The code that checks for IE 6 or less and redirects is in index.php >

RE: [PHP] redirect to a page the fist time a site is accessed

2009-04-16 Thread Jencisson Tsu
hey,boy, i think you should use datebase to store user status,use user's internet-ip and intranet-ip to idenification. > To: php-general@lists.php.net > From: d...@program-it.ca > Date: Wed, 15 Apr 2009 16:20:05 -0400 > Subject: Re: [PHP] redirect to a page the fist time a

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-15 Thread Don
"Andrew Ballard" wrote in message news:b6023aa40904150926g3e6fb478s36b18b6a53ec3...@mail.gmail.com... On Tue, Apr 14, 2009 at 10:30 PM, Jason Pruim wrote: > > > On Apr 14, 2009, at 10:11 PM, "Don" wrote: > >> Hi, >> >> I have some code in my index.php file that check the user agent and >> redi

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-15 Thread Andrew Ballard
On Tue, Apr 14, 2009 at 10:30 PM, Jason Pruim wrote: > > > On Apr 14, 2009, at 10:11 PM, "Don" wrote: > >> Hi, >> >> I have some code in my index.php file that check the user agent and >> redirects to a warning page if IE 6 or less is encountered. >> >> 1. I'm using a framework and so calls to al

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-14 Thread Jason Pruim
On Apr 14, 2009, at 10:11 PM, "Don" wrote: Hi, I have some code in my index.php file that check the user agent and redirects to a warning page if IE 6 or less is encountered. 1. I'm using a framework and so calls to all pages go through index.php 2. The code that checks for IE 6 or less

Re: [PHP] redirect to a page the fist time a site is accessed

2009-04-14 Thread Chris
Don wrote: Hi, I have some code in my index.php file that check the user agent and redirects to a warning page if IE 6 or less is encountered. 1. I'm using a framework and so calls to all pages go through index.php 2. The code that checks for IE 6 or less and redirects is in index.php I know

[PHP] redirect to a page the fist time a site is accessed

2009-04-14 Thread Don
Hi, I have some code in my index.php file that check the user agent and redirects to a warning page if IE 6 or less is encountered. 1. I'm using a framework and so calls to all pages go through index.php 2. The code that checks for IE 6 or less and redirects is in index.php I know how to redire

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Philip Thompson
On Jun 12, 2008, at 8:32 AM, Bastien Koert wrote: On Thu, Jun 12, 2008 at 7:46 AM, Yashesh Bhatia <[EMAIL PROTECTED]> wrote: What about doing it the other way ... submitting the page to a script that calls on the pdf creation, yet doesnt leave this script - then proceed to redirect when

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Jim Lucas
Yashesh Bhatia wrote: What about doing it the other way ... submitting the page to a script that calls on the pdf creation, yet doesnt leave this script - then proceed to redirect when that script (pdf) has been completed? S steven: the steps u'r suggesting are 1 - submit form (1.html)

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Nitsan Bin-Nun
You are totally in the wrong way. I would use an tag and onclick property for opening the PDF in popup & relocating the current page HTH Nitsan On 12/06/2008, Yashesh Bhatia <[EMAIL PROTECTED]> wrote: > > Hello: > >I'm trying to emulate a problem i'm trying to solve as follows. > > 1 - user

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Bastien Koert
On Thu, Jun 12, 2008 at 7:46 AM, Yashesh Bhatia <[EMAIL PROTECTED]> wrote: > > > > What about doing it the other way ... submitting the page to a script > > that calls on the pdf creation, yet doesnt leave this script - then > > proceed to redirect when that script (pdf) has been completed? > > >

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Yashesh Bhatia
> > What about doing it the other way ... submitting the page to a script > that calls on the pdf creation, yet doesnt leave this script - then > proceed to redirect when that script (pdf) has been completed? > > S > steven: the steps u'r suggesting are 1 - submit form (1.html) to script (2.

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Steven Macintyre
On Thu, 2008-06-12 at 16:27 +0530, Yashesh Bhatia wrote: > Aschwin: > > Hi i tried > > -- > //echo ''; > //echo 'window.location.href="3.html";'; > //echo ''; > header("Location: 3.html"); > exit; > -

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Yashesh Bhatia
Aschwin: Hi i tried -- //echo ''; //echo 'window.location.href="3.html";'; //echo ''; header("Location: 3.html"); exit; -- but that did not work :(. thanks for the tip. yashesh b

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Aschwin Wesselius
Yashesh Bhatia wrote: Hello: I'm trying to emulate a problem i'm trying to solve as follows. 1 - user enters information into a html form and submits 2 - a php script is invoked on the submit and a pdf file is stamped and made available for download 3 - the script finally redirects the user

[PHP] Redirect after pdf / file download

2008-06-12 Thread Yashesh Bhatia
Hello: I'm trying to emulate a problem i'm trying to solve as follows. 1 - user enters information into a html form and submits 2 - a php script is invoked on the submit and a pdf file is stamped and made available for download 3 - the script finally redirects the user to a thank you html pag

Re: [PHP] redirect stdout to stderr

2008-02-22 Thread Bojan Tesanovic
Hi Jack, here is a link that can be of help http://bugs.php.net/bug.php?id=22839 also you can use custom error handler function , catch errors and write to stderr function myErrorHandler($errno, $errstr, $errfile, $errline) { $ERROR=''; switch ($errno) { case E_USER_ERROR

[PHP] redirect stdout to stderr

2008-02-22 Thread Jack Bates
How can I implement in PHP, a script which redirects stdout to stderr, such that echo, etc. print to stderr instead of stdout? I can redirect stdout to stderr when invoking PHP like so: php script-name >&2 However I want to perform this redirection within the script itself. The solution I curre

Re: [PHP] Redirect via GET is loosing characters

2007-05-03 Thread Neo [GC]
Ah, i thought to remember that the limit is lower on IIS than on Apache, maybe i've just some memory faults. ;) GET is meant to define what to GET, not to define content. This sounds a bit academic, but remember that the GET-args are a part of the URI and so will also go into the http-log for

Re: [PHP] Redirect via GET is loosing characters

2007-05-03 Thread Daniel Brown
If it's on the same domain/user account, that's probably a better idea but with $data['rurl'] being used, I'm (ignorantly) assuming that RURL = Remote URL. On 5/3/07, Richard Lynch <[EMAIL PROTECTED]> wrote: On Thu, May 3, 2007 9:26 am, Merlin wrote: > I am checking plausability inside a

Re: [PHP] Redirect via GET is loosing characters

2007-05-03 Thread Daniel Brown
Beating a dead horse here, since it's been mentioned twice already, but yeah --- $_SESSION's are the way to go with this. And wherever you have your error handling, do: And for the record, it's not just the HTTP server that trims it, but the browser generally does, as well, to avoid

Re: [PHP] Redirect via GET is loosing characters

2007-05-03 Thread Richard Lynch
On Thu, May 3, 2007 9:26 am, Merlin wrote: > 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 red

Re: [PHP] Redirect via GET is loosing characters

2007-05-03 Thread Stut
Merlin wrote: 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 cer

[PHP] Redirect via GET is loosing characters

2007-05-03 Thread Merlin
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 certai

Re: [PHP] Redirect via GET is loosing characters

2007-05-03 Thread Neo [GC]
Merlin schrieb: 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, onl

Re: [PHP] redirect with header still not working

2007-04-17 Thread Ross
Thanks all I manged to fix it. The headers were already sent by a validation class I was using and needed a bit of output buffering to get it working. R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirect with header still not working

2007-04-17 Thread Richard Lynch
On Tue, April 17, 2007 10:02 am, 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 >

Re: [PHP] redirect with header still not working

2007-04-17 Thread Chris Shiflett
Ross wrote: > Have tried the full url for the header and it still doesn't work. I forget what your exact issue is, but a good first step to take when debugging a problem with header() is to replace it with echo. For example: echo "Location: $url"; Instead of: header("Location: $url"); Almost e

Re: [PHP] redirect with header still not working

2007-04-17 Thread Jim Lucas
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 expe

Re: [PHP] redirect with header still not working

2007-04-17 Thread Jim Lucas
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 expe

RE: [PHP] redirect with header still not working

2007-04-17 Thread Jim Moseby
> > 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 an

Re: [PHP] redirect with header still not working

2007-04-17 Thread Dave Goodchild
That is, unless you use output buffering. It may not be the most elegant solution (using header() to redirect users increases server calls), but I built a template-driven php site that calls: ...depending on certain conditions which means I can then use header() even after I have started output

[PHP] redirect with header still not working

2007-04-17 Thread Ross
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.

Re: [PHP] redirect with header still not working

2007-04-17 Thread Dave Goodchild
Can you re-iterate what is happening - I have a site with 1and1 and use header() with no issues.

Re: [PHP] redirect http to https

2007-04-10 Thread Richard Lynch
On Mon, April 9, 2007 8:38 am, Martin Marques wrote: > Ben Liu escribió: >> What's the prescribed method for redirecting a user forcibly to from >> the >> non-SSL secured version of a page to the SSL-secured version? Is >> this >> handled at the web server level or at the script level. I found this

Re: [PHP] redirect http to https

2007-04-10 Thread Jason Karns
On 4/10/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: I have separate document roots for the http and the https stuff, say "htdocs" and "htdocs-secure" - this can be done with apache configuration then I need only to put a single redirecting line into the htdocs/index.php like https://my.server.c

Re: [PHP] redirect http to https

2007-04-10 Thread Zoltán Németh
I have separate document roots for the http and the https stuff, say "htdocs" and "htdocs-secure" - this can be done with apache configuration then I need only to put a single redirecting line into the htdocs/index.php like https://my.server.com/";); ?> and that's all greets Zoltán Németh 2007.

Re: [PHP] redirect http to https

2007-04-10 Thread Chris
{header("Location: https://".$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']);exit;} ?> Very bad solution. Don't just tell us it's bad, explain why (even with an RTFM or URL to look at)... nobody learns from an answer like this. The only thing I can think of is that $_SERVER variables c

Re: [PHP] redirect http to https

2007-04-09 Thread Ben Liu
On 4/9/07, Peter Lauri <[EMAIL PROTECTED]> wrote: You might be able to do this by putting an .htaccess file in your webroot of non-ssl: -- RewriteEngine On RewriteRule ^/(.*)$ https://www.yourdomain.com/$1 [L] -- This appears to work: RewriteEngine On RewriteCond %{SERVER_PORT} !^44

RE: [PHP] redirect http to https

2007-04-09 Thread Peter Lauri
> -Original Message- > From: Ben Liu [mailto:[EMAIL PROTECTED] > Sent: Monday, April 09, 2007 3:52 PM > To: Martin Marques; PHP > Subject: Re: [PHP] redirect http to https > > On 4/9/07, Martin Marques wrote: > > > > > This should be done with the re

Re: [PHP] redirect http to https

2007-04-09 Thread Tijnema !
On 4/9/07, Ben Liu <[EMAIL PROTECTED]> wrote: What's the prescribed method for redirecting a user forcibly to from the non-SSL secured version of a page to the SSL-secured version? Is this handled at the web server level or at the script level. I found this by googling: https://".$_SERVER['SERVE

Re: [PHP] redirect http to https

2007-04-09 Thread edwardspl
Ben Liu wrote: > On 4/9/07, Martin Marques wrote: > >> >> This should be done with the rewrite instruction of apache, or what ever >> instructionyour web server has. > > > Um...guess I will have to check with our hosting company about this. > Thanks. > > - Ben > Hello, FYI : https://www.yourdom

Re: [PHP] redirect http to https

2007-04-09 Thread Ben Liu
On 4/9/07, Martin Marques wrote: This should be done with the rewrite instruction of apache, or what ever instructionyour web server has. Um...guess I will have to check with our hosting company about this. Thanks. - Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] redirect http to https

2007-04-09 Thread Martin Marques
Ben Liu escribió: What's the prescribed method for redirecting a user forcibly to from the non-SSL secured version of a page to the SSL-secured version? Is this handled at the web server level or at the script level. I found this by googling: This should be done with the rewrite instruction o

Re: [PHP] redirect http to https

2007-04-09 Thread edwardspl
Ben Liu wrote: > What's the prescribed method for redirecting a user forcibly to from > the non-SSL secured version of a page to the SSL-secured version? Is > this handled at the web server level or at the script level. I found > this by googling: > > if($_SERVER['SERVER_PORT'] !== $encport || $_

[PHP] redirect http to https

2007-04-09 Thread Ben Liu
What's the prescribed method for redirecting a user forcibly to from the non-SSL secured version of a page to the SSL-secured version? Is this handled at the web server level or at the script level. I found this by googling: {header("Location: https://".$_SERVER['SERVER_NAME'].$_SERVER ['S

Re: [Fwd: Re: [PHP] redirect using php]

2006-04-05 Thread Schalk
Thanks everyone for your help. In the end the simplest one that works for this specific project was: echo ""; Andrei wrote: Andrei wrote: It works with document.location = '...'; too. I use only this method and it worked on all browsers... Assuming the end user has JS turned on. JS an

[Fwd: Re: [PHP] redirect using php]

2006-04-05 Thread Andrei
Andrei wrote: It works with document.location = '...'; too. I use only this method and it worked on all browsers... Assuming the end user has JS turned on. JS and Meta Refreshes are not acceptable when you need to be sure the redirect works. Depends on your user target... I gener

Re: [PHP] redirect using php

2006-04-05 Thread John Nichel
Andrei wrote: It works with document.location = '...'; too. I use only this method and it worked on all browsers... Assuming the end user has JS turned on. JS and Meta Refreshes are not acceptable when you need to be sure the redirect works. -- John C. Nichel IV Programmer/System Admin

Re: [PHP] redirect using php

2006-04-05 Thread Mark Kelly
On Wednesday 05 April 2006 14:33, Chris Shiflett wrote: > Mark Kelly wrote: > > > > You can also use something like: > > > > > > > > echo ""; > > > > > > There's no need to use a meta tag to mimic HTTP headers. PHP > > > provides the header() function. > > > > I have been using that method when I g

Re: [PHP] redirect using php

2006-04-05 Thread Thomas Munz
; header('location: ' . $url); > die(); > } > } > ?> > > HTH > > Dan > > - > Dan Parry > Senior Developer > Virtua Webtech Ltd > http://www.virtuawebtech.co.uk > > -Original M

Re: [PHP] redirect using php

2006-04-05 Thread Chris Shiflett
Mark Kelly wrote: > > You can also use something like: > > > > echo ""; > > There's no need to use a meta tag to mimic HTTP headers. PHP > provides the header() function. I have been using that method when I got part-way through some processing that produces output, and hit something that requir

Re: [PHP] redirect using php

2006-04-05 Thread tedd
At 11:21 PM +0200 4/4/06, Schalk wrote: Greetings All, In JSP I have access to a function called sendRedirect() to send a user from one page to another, usually after some processing completed. Is there a similar function in PHP? After processing a form and sending the data via email, I need

RE: [PHP] redirect using php

2006-04-05 Thread Dan Parry
Senior Developer Virtua Webtech Ltd http://www.virtuawebtech.co.uk -Original Message- From: Mark Kelly [mailto:[EMAIL PROTECTED] Sent: 05 April 2006 14:19 To: php-general@lists.php.net Subject: Re: [PHP] redirect using php On Wednesday 05 April 2006 13:55, Chris Shiflett wrote: > Mar

Re: [PHP] redirect using php

2006-04-05 Thread Mark Kelly
On Wednesday 05 April 2006 13:55, Chris Shiflett wrote: > Mark Kelly wrote: > > You can also use something like: > > > > echo ""; > > There's no need to use a meta tag to mimic HTTP headers. PHP provides > the header() function. I have been using that method when I got part-way through some proces

Re: [PHP] redirect using php

2006-04-05 Thread Chris Shiflett
Mark Kelly wrote: You can also use something like: echo ""; There's no need to use a meta tag to mimic HTTP headers. PHP provides the header() function. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirect using php

2006-04-05 Thread Andrei
It works with document.location = '...'; too. I use only this method and it worked on all browsers... Andy Barry wrote: Andrei wrote: document.location = 'http://where.to.go.com/example.php?param1='; Wasn't it -> document.location.href ='www.example.com'; o_O ? Barry -- PHP Gene

Re: [PHP] redirect using php

2006-04-05 Thread Barry
Andrei wrote: document.location = 'http://where.to.go.com/example.php?param1='; Wasn't it -> document.location.href ='www.example.com'; o_O ? Barry -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] redirect using php

2006-04-05 Thread Andrei
Or with javascript: PS: Sorry Mark... Andy Mark Kelly wrote: On Tuesday 04 April 2006 22:27, Brady Mitchell wrote:

Re: [PHP] redirect using php

2006-04-05 Thread Mark Kelly
On Tuesday 04 April 2006 22:27, Brady Mitchell wrote: > > -Original Message- > > In JSP I have access to a function called sendRedirect() to > > send a user > > from one page to another, usually after some processing completed. Is > > there a similar function in PHP? > > Take a look at the

Re: [PHP] redirect using php

2006-04-04 Thread Schalk
Brady Mitchell wrote: -Original Message- In JSP I have access to a function called sendRedirect() to send a user from one page to another, usually after some processing completed. Is there a similar function in PHP? Take a look at the header() function. http://php.net/header

RE: [PHP] redirect using php

2006-04-04 Thread Brady Mitchell
> -Original Message- > In JSP I have access to a function called sendRedirect() to > send a user > from one page to another, usually after some processing completed. Is > there a similar function in PHP? Take a look at the header() function. http://php.net/header To redirect you can us

RE: [PHP] redirect using php

2006-04-04 Thread Chrome
http://uk.php.net/manual/en/function.header.php --- http://chrome.me.uk -Original Message- From: Schalk [mailto:[EMAIL PROTECTED] Sent: 04 April 2006 22:21 To: php-general@lists.php.net Subject: [PHP] redirect using php Greetings All, In JSP I have access to a

[PHP] redirect using php

2006-04-04 Thread Schalk
Greetings All, In JSP I have access to a function called sendRedirect() to send a user from one page to another, usually after some processing completed. Is there a similar function in PHP? After processing a form and sending the data via email, I need to redirect them to another page. I cur

[PHP] Redirect from /rss.xml to /rss/rss.xml

2006-02-09 Thread Murray @ PlanetThoughtful
Hi All, This may turn out to be more of an apache question (but I'm hoping there are some apache experts on the list as well), but I'm wondering how I would go about automatically redirecting requests for /rss.xml to read the contents of /rss/rss.xml instead? Any help appreciated! Much warm

Re: [PHP] redirect based off server string

2005-08-10 Thread Leon Vismer
If you are using apache you can use the redirect module Servername www.ces.ncsu.edu ServerAlias * Redirect permanent / http://www.nc4h.org/ -- Leon On Wednesday 10 August 2005 16:52, Robert Sossomon wrote: > Anyone have a script or know of a way to check and see what the url is of a > syst

Re: [PHP] redirect based off server string

2005-08-10 Thread Greg Schnippel
Try doing a pattern match on the server string and then using Header to redirect them if its coming from the old server: if (preg_match("/ces.ncsu/i", $_SERVER["HTTP_HOST"])) { header("Location: http://www.nc4h.org";); } - schnippy On 8/10/05, Robert Sossomon <[EMAIL PROTECTED]> wr

[PHP] redirect based off server string

2005-08-10 Thread Robert Sossomon
Anyone have a script or know of a way to check and see what the url is of a system and then sending it to another url if it is not right? I have this problem where if someone is using: http://www.ces.ncsu.edu/depts/fourh instead of: http://www.nc4h.org to get to my site it is breaking other piece

Re: [PHP] Redirect with referer info

2005-07-30 Thread Dotan Cohen
On 7/30/05, Joe Wollard <[EMAIL PROTECTED]> wrote: > To obtain a certain portion of the referring url you might look at > parse_url(); > See http://us3.php.net/manual/en/function.parse-url.php > > - or - > > If you want to bounce the user right back to the previous page including get > variables

Re: [PHP] Redirect with referer info

2005-07-30 Thread Joe Wollard
To obtain a certain portion of the referring url you might look at parse_url(); See http://us3.php.net/manual/en/function.parse-url.php - or - If you want to bounce the user right back to the previous page including get variables you could just use this snippet. On Jul 30, 2005, at 9:36

Re: [PHP] Redirect with referer info

2005-07-30 Thread Matt Darby
Dotan Cohen wrote: Hi list, I need to redirerect a page, and send the referer information along with the redirect. I have tried: header("Location: $url"); and print""; Both of them redirect as expected, but the browser (Firefox and Opera) do not send referer information along with the request.

  1   2   3   4   >