Re: [PHP] redirecting output for a spawned child process..

2009-02-23 Thread Alpár Török
You can use a PHP workarround. Install a custom ob_handler, that has a static file descriptor, and writes all output to the file. In order to also see everything, you need to also activate implicit flush. i know that there would be lots of elegant ways to do this on linux in C, but AFAIK php doesn'

Re: [PHP] redirecting output for a spawned child process..

2009-02-21 Thread Per Jessen
bruce wrote: > hi... > > got a situation where i have a parent app that spawns children. trying > to figure out how to get the output of the spawned/forked children to > be written to an external file... Normally I would use freopen() on stdout and stderr, but that's not available in PHP :-( >

[PHP] redirecting output for a spawned child process..

2009-02-21 Thread bruce
hi... got a situation where i have a parent app that spawns children. trying to figure out how to get the output of the spawned/forked children to be written to an external file... can't seem to find any examples of how to accomplish this... do i have to insert something within the child php app

Re: [PHP] Redirecting from unreachable page on website

2009-01-22 Thread Jochem Maas
Richard Heyes schreef: >> ... > > Really, for URLs that don't exist you should be showing a 404, This > way the user doesn't falsely believe that the URL is a valid one and > keep using it. if the invalid URL (which outputs a 404 header) then automatically redirects to another URL then I think i

Re: [PHP] Redirecting from unreachable page on website

2009-01-22 Thread Per Jessen
Morris wrote: > What if the file exists, but it's kinda file to update database, like > > // get request $_REQUEST > // execute sql statement to update database > // redirect to the other page, showing results? > > in this case 404 approach does not mean to do correctly, so what else > is sugges

Re: [PHP] Redirecting from unreachable page on website

2009-01-22 Thread Richard Heyes
> What if the file exists, but it's kinda file to update database, like GET requests shouldn't really modify data. -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.org (Updated January 17th) -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Redirecting from unreachable page on website

2009-01-22 Thread Morris
What if the file exists, but it's kinda file to update database, like // get request $_REQUEST // execute sql statement to update database // redirect to the other page, showing results? in this case 404 approach does not mean to do correctly, so what else is suggested? 2009/1/22 Per Jessen >

Re: [PHP] Redirecting from unreachable page on website

2009-01-22 Thread Per Jessen
Richard Heyes wrote: >> ... > > Really, for URLs that don't exist you should be showing a 404, This > way the user doesn't falsely believe that the URL is a valid one and > keep using it. By using the ErrorDocument directive like Per > suggested, you can customise it to be distinct helpful Apach

Re: [PHP] Redirecting from unreachable page on website

2009-01-22 Thread Richard Heyes
> ... Really, for URLs that don't exist you should be showing a 404, This way the user doesn't falsely believe that the URL is a valid one and keep using it. By using the ErrorDocument directive like Per suggested, you can customise it to be distinct helpful, like this: http://www.phpguru.org/oh%

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Jochem Maas
Per Jessen schreef: > Dušan Novaković wrote: > >> Hi, >> >> Is there some elegant solution how to redirect if someone try to open >> some non existing page (e.g www.domain.com/nonexistingpage.php) to >> main page www.domain.com on website? >> > > See Apache "ErrorDocument" directive. > ai, Erro

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Per Jessen
Dušan Novaković wrote: > Hi, > > Is there some elegant solution how to redirect if someone try to open > some non existing page (e.g www.domain.com/nonexistingpage.php) to > main page www.domain.com on website? > See Apache "ErrorDocument" directive. /Per Jessen, Zürich -- PHP General Maili

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Kyle Terry
On Wed, Jan 21, 2009 at 10:40 AM, Dušan Novaković wrote: > apache :-) > > 2009/1/21 Kyle Terry : >> 2009/1/21 Kyle Terry : >>> On Wed, Jan 21, 2009 at 10:12 AM, Dušan Novaković wrote: Hi, Is there some elegant solution how to redirect if someone try to open some non existing p

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Dušan Novaković
apache :-) 2009/1/21 Kyle Terry : > 2009/1/21 Kyle Terry : >> On Wed, Jan 21, 2009 at 10:12 AM, Dušan Novaković wrote: >>> Hi, >>> >>> Is there some elegant solution how to redirect if someone try to open >>> some non existing page (e.g www.domain.com/nonexistingpage.php) to >>> main page www.dom

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Kyle Terry
2009/1/21 Kyle Terry : > On Wed, Jan 21, 2009 at 10:12 AM, Dušan Novaković wrote: >> Hi, >> >> Is there some elegant solution how to redirect if someone try to open >> some non existing page (e.g www.domain.com/nonexistingpage.php) to >> main page www.domain.com on website? >> >> thnx, Dusan >> >>

Re: [PHP] Redirecting from unreachable page on website

2009-01-21 Thread Kyle Terry
On Wed, Jan 21, 2009 at 10:12 AM, Dušan Novaković wrote: > Hi, > > Is there some elegant solution how to redirect if someone try to open > some non existing page (e.g www.domain.com/nonexistingpage.php) to > main page www.domain.com on website? > > thnx, Dusan > > -- > made by Dusan > > -- > PHP G

[PHP] Redirecting from unreachable page on website

2009-01-21 Thread Dušan Novaković
Hi, Is there some elegant solution how to redirect if someone try to open some non existing page (e.g www.domain.com/nonexistingpage.php) to main page www.domain.com on website? thnx, Dusan -- made by Dusan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

Re: [PHP] Redirecting STDERR to a file?

2008-02-04 Thread Daniel Brown
On Feb 3, 2008 10:08 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > > > On Fri, February 1, 2008 10:58 pm, js wrote: > > Hi, > > > > I was trying to write a script in PHP that takes a program name > > as an argument and invoke it as a daemon. > > PHP provides fork(pcntl_fork), setsid(posix_setsid)

Re: [PHP] Redirecting STDERR to a file?

2008-02-03 Thread Richard Lynch
On Fri, February 1, 2008 10:58 pm, js wrote: > Hi, > > I was trying to write a script in PHP that takes a program name > as an argument and invoke it as a daemon. > PHP provides fork(pcntl_fork), setsid(posix_setsid) and umask, > so it was easy. > However, I couldn't find a way to redirect STDE

Re: [PHP] Redirecting STDERR to a file?

2008-02-02 Thread Richard Heyes
C would be the last resort. I suppose it would be easily done in Perl, but most of my colleagues prefer PHP. I love to make taking over the code easy, so PHP is more preferable to me. That makes perfect sense, but sometimes PHP is not the best/right answer. What I think you need to do is: paren

Re: [PHP] Redirecting STDERR to a file?

2008-02-02 Thread js
> > C would be the last resort. I suppose it would be easily done in Perl, > > but most of my colleagues prefer PHP. > > I love to make taking over the code easy, so PHP is more preferable to > > me. > > That makes perfect sense, but sometimes PHP is not the best/right > answer. > > What I think yo

Re: [PHP] Redirecting STDERR to a file?

2008-02-02 Thread Per Jessen
js wrote: > C would be the last resort. I suppose it would be easily done in Perl, > but most of my colleagues prefer PHP. > I love to make taking over the code easy, so PHP is more preferable to > me. That makes perfect sense, but sometimes PHP is not the best/right answer. What I think you ne

Re: [PHP] Redirecting STDERR to a file?

2008-02-02 Thread js
Hi Per, > > nohup would work in some ways, but that's not a real daemon > > because the process will have tty, in a session and has a process > > group. I like to have a real daemon. > > Well, it depends on what you're after. Are you solving a problem or are > you doing an exercise because you ca

Re: [PHP] Redirecting STDERR to a file?

2008-02-02 Thread Per Jessen
js wrote: > nohup would work in some ways, but that's not a real daemon > because the process will have tty, in a session and has a process > group. I like to have a real daemon. Well, it depends on what you're after. Are you solving a problem or are you doing an exercise because you can? If y

Re: [PHP] Redirecting STDERR to a file?

2008-02-02 Thread js
nohup would work in some ways, but that's not a real daemon because the process will have tty, in a session and has a process group. I like to have a real daemon. On Feb 2, 2008 5:25 PM, Per Jessen <[EMAIL PROTECTED]> wrote: > js wrote: > > > I was trying to write a script in PHP that takes a pro

Re: [PHP] Redirecting STDERR to a file?

2008-02-02 Thread Per Jessen
js wrote: > I was trying to write a script in PHP that takes a program name > as an argument and invoke it as a daemon. > PHP provides fork(pcntl_fork), setsid(posix_setsid) and umask, > so it was easy. > However, I couldn't find a way to redirect STDERR a file. > I like to have the daemon write

[PHP] Redirecting STDERR to a file?

2008-02-01 Thread js
Hi, I was trying to write a script in PHP that takes a program name as an argument and invoke it as a daemon. PHP provides fork(pcntl_fork), setsid(posix_setsid) and umask, so it was easy. However, I couldn't find a way to redirect STDERR a file. I like to have the daemon write its log to its o

[PHP] Re: [BULK] RE: [PHP] Re: [BULK] [PHP] Redirecting to a parent page

2007-06-13 Thread clive
Yamil Ortega wrote: Ok, but what happens if I change server and there is no more apache2 directory? Do I have to change all the headers in my 37 web pages? do this: // in a config file, or header file $sitename = "http:/localhost/apache2/"; eader file // whereever it is needed header("Locat

Re: [PHP] Redirecting to a parent page

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 11:12 pm, Yamil Ortega wrote: > Lets say that I have the next structure on my web directory > > /file1.php > > /procces/file2.php > > /file3.php > > So, when I see the file1.php on the browser I see the page in this > route > > http://localhost/apache2/file1.php > > I have a

Re: [PHP] Re: [BULK] [PHP] Redirecting to a parent page

2007-06-13 Thread Darren Whitlen
. You will only then have to change it in one place. Darren Thanks in advance Yamil -Mensaje original- De: clive [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 13 de Junio de 2007 05:37 a.m. Para: PHP General List Asunto: [PHP] Re: [BULK] [PHP] Redirecting to a parent page Ya

RE: [PHP] Re: [BULK] [PHP] Redirecting to a parent page

2007-06-13 Thread Yamil Ortega
List Asunto: [PHP] Re: [BULK] [PHP] Redirecting to a parent page Yamil Ortega wrote: > Lets say that I have the next structure on my web directory > /file1.php > > /procces/file2.php > > /file3.php > http://localhost/apache2/file1.php try this: header( refresh:'3

[PHP] Re: [BULK] [PHP] Redirecting to a parent page

2007-06-13 Thread clive
Yamil Ortega wrote: Lets say that I have the next structure on my web directory /file1.php /procces/file2.php /file3.php > http://localhost/apache2/file1.php try this: header( refresh:'3'; url=./apache2/file3.php); Regards, Clive. -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Redirecting (after output has started)

2007-04-25 Thread Richard Lynch
On Wed, April 25, 2007 8:25 am, Don Don wrote: > Hi all, whats the best way to perform a redirect after out put has > started ? using header:location will not work unless theres been no > output. The BEST way is to re-structure your code logically, with the heavy lifting calculations done up-f

Re: [PHP] Redirecting (after output has started)

2007-04-25 Thread tedd
At 6:25 AM -0700 4/25/07, Don Don wrote: Hi all, whats the best way to perform a redirect after out put has started ? using header:location will not work unless theres been no output. I usuall use the method below, however am concerned for browsers that do not support javascript.

Re: [PHP] Redirecting (after output has started)

2007-04-25 Thread Philip Thompson
On Apr 25, 2007, at 8:25 AM, Don Don wrote: Hi all, whats the best way to perform a redirect after out put has started ? using header:location will not work unless theres been no output. I usuall use the method below, however am concerned for browsers that do not support javascript.

[PHP] Redirecting (after output has started)

2007-04-25 Thread Don Don
Hi all, whats the best way to perform a redirect after out put has started ? using header:location will not work unless theres been no output. I usuall use the method below, however am concerned for browsers that do not support javascript. $location = 'index.php'; echo "\n"; e

Re: [PHP] Redirecting in a PHP script

2007-03-15 Thread Satyam
- Original Message - From: "tedd" <[EMAIL PROTECTED]> At 11:28 PM -0500 3/14/07, Richard Lynch wrote: On Tue, March 13, 2007 11:54 pm, Chris Shiflett wrote: Tijnema wrote: Did you guys ever noted that little arrow down just right of the back button, where you can go back 2 steps

Re: [PHP] Redirecting in a PHP script

2007-03-15 Thread tedd
At 11:28 PM -0500 3/14/07, Richard Lynch wrote: On Tue, March 13, 2007 11:54 pm, Chris Shiflett wrote: Tijnema wrote: Did you guys ever noted that little arrow down just right of the back button, where you can go back 2 steps at once, so you don't have to click very fast? I think we both

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread clive
Larry Bradley wrote: I need to "goto" different PHP pages in my web site depending on what happens within some PHP code. For example, if the user is not logged in when he goes to a page, I want to send him to a LOGIN page. I've have everything working fine, using the following Javascript co

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Richard Lynch
On Tue, March 13, 2007 11:54 pm, Chris Shiflett wrote: > Tijnema wrote: >> Did you guys ever noted that little arrow down just right of >> the back button, where you can go back 2 steps at once, so you >> don't have to click very fast? > > I think we both remember browsing before that feature was i

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Richard Lynch
On Tue, March 13, 2007 3:50 pm, Tijnema ! wrote: > On 3/13/07, Chris Shiflett <[EMAIL PROTECTED]> wrote: >> Robert Cummings wrote: >> > I've found clicking really fast can get you back :) >> >> I, too, have successfully used this technique. :-) >> >> Chris > Did you guys ever noted that little arro

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Richard Lynch
On Tue, March 13, 2007 3:41 pm, Chris Shiflett wrote: > Robert Cummings wrote: >> I've found clicking really fast can get you back :) > > I, too, have successfully used this technique. :-) +1 Sometimes "back" button followed at just the right time by "top" so I get the HTML, but no JS runs. --

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Ben Ramsey
On 3/13/07 4:50 PM, Tijnema ! wrote: Did you guys ever noted that little arrow down just right of the back button, where you can go back 2 steps at once, so you don't have to click very fast?? Browsers have buttons in them? Next thing, you'll be telling me I can see images and color in my brow

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Robert Cummings
On Wed, 2007-03-14 at 08:59 +0100, Tijnema ! wrote: > On 3/14/07, Chris Shiflett <[EMAIL PROTECTED]> wrote: > > Tijnema wrote: > > > Did you guys ever noted that little arrow down just right of > > > the back button, where you can go back 2 steps at once, so you > > > don't have to click very fast?

Re: [PHP] Redirecting in a PHP script

2007-03-14 Thread Tijnema !
On 3/14/07, Chris Shiflett <[EMAIL PROTECTED]> wrote: Tijnema wrote: > Did you guys ever noted that little arrow down just right of > the back button, where you can go back 2 steps at once, so you > don't have to click very fast? I think we both remember browsing before that feature was invented

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Chris Shiflett
Tijnema wrote: > Did you guys ever noted that little arrow down just right of > the back button, where you can go back 2 steps at once, so you > don't have to click very fast? I think we both remember browsing before that feature was invented. Chris -- Chris Shiflett http://shiflett.org/ -- P

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 21:50 +0100, Tijnema ! wrote: > On 3/13/07, Chris Shiflett <[EMAIL PROTECTED]> wrote: > > Robert Cummings wrote: > > > I've found clicking really fast can get you back :) > > > > I, too, have successfully used this technique. :-) > > > > Chris > > Did you guys ever noted that

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Tijnema !
On 3/13/07, Chris Shiflett <[EMAIL PROTECTED]> wrote: Robert Cummings wrote: > I've found clicking really fast can get you back :) I, too, have successfully used this technique. :-) Chris Did you guys ever noted that little arrow down just right of the back button, where you can go back 2 step

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Chris Shiflett
Robert Cummings wrote: > I've found clicking really fast can get you back :) I, too, have successfully used this technique. :-) Chris -- Chris Shiflett http://shiflett.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Philip Thompson
As other people have already said, use the header() function. However, be sure to include exit; after you call it. I've run into problems where it did not redirect properly if I didn't have the exit call. This also prevents anymore of the page loading (and maybe providing sensitive informat

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Dave Goodchild
If you do want to use the header function after html has been output, you can always look at using output buffering (ob_start()).

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Eric Butera
On 3/12/07, Larry Bradley <[EMAIL PROTECTED]> wrote: I need to "goto" different PHP pages in my web site depending on what happens within some PHP code. For example, if the user is not logged in when he goes to a page, I want to send him to a LOGIN page. I've have everything working fine, usin

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Richard Lynch
You also may want to consider just using an 'include' instead of bouncing the poor user around like a basketball in re-directs. Each re-direct sends traffic back and forth over the network, which could be slow/flaky. Plus you are chewing up HTTP connections on your web-server, and that's an expen

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Robert Cummings
On Mon, 2007-03-12 at 22:43 +0100, Satyam wrote: > The only way to actually go back in > those is to open the dropdown list for the back button and skip over one > item. I've found clicking really fast can get you back :) > That does not happen when using the header() PHP function. That is my

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Satyam
- Original Message - From: "Larry Bradley" <[EMAIL PROTECTED]> To: Sent: Monday, March 12, 2007 9:02 PM Subject: [PHP] Redirecting in a PHP script I need to "goto" different PHP pages in my web site depending on what happens within some PHP code. For e

Re: [PHP] Redirecting in a PHP script

2007-03-12 Thread Tijnema !
On 3/12/07, Larry Bradley <[EMAIL PROTECTED]> wrote: I need to "goto" different PHP pages in my web site depending on what happens within some PHP code. For example, if the user is not logged in when he goes to a page, I want to send him to a LOGIN page. I've have everything working fine, usi

[PHP] Redirecting in a PHP script

2007-03-12 Thread Larry Bradley
I need to "goto" different PHP pages in my web site depending on what happens within some PHP code. For example, if the user is not logged in when he goes to a page, I want to send him to a LOGIN page. I've have everything working fine, using the following Javascript code: $locat

Re: [PHP] redirecting some values from one page to other in php

2005-07-21 Thread Richard Lynch
On Wed, July 20, 2005 1:04 pm, Matt Darby said: > babu wrote: > >>It will become a big mess up for me if i combine all the files as they >> are large files. Scenario #1: Use include/require to suck in the files, when needed. Scenario #2: Use header("Location: ") to re-direct the browser to anothe

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread Matt Darby
babu wrote: does session.auto_start should be set to 1 for sessions to work. Mikey <[EMAIL PROTECTED]> wrote:babu wrote: I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for example: file1.html where i have a d

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread babu
does session.auto_start should be set to 1 for sessions to work. Mikey <[EMAIL PROTECTED]> wrote:babu wrote: >I am using header method for redirecting to another php file.I also want to >pass some variables to the redirected file. > >for example: > >file1.html where i have a dropdown menu. t

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread Matt Darby
babu wrote: It will become a big mess up for me if i combine all the files as they are large files. Matt Darby <[EMAIL PROTECTED]> wrote: babu wrote: I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for example:

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread babu
It will become a big mess up for me if i combine all the files as they are large files. Matt Darby <[EMAIL PROTECTED]> wrote: babu wrote: >I am using header method for redirecting to another php file.I also want to >pass some variables to the redirected file. > >for example: > >file1.html

Re: [PHP] redirecting some values from one page to other in php

2005-07-20 Thread Mikey
babu wrote: I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for example: file1.html where i have a dropdown menu. the user selects the options... this form has a action to file2.php file2.php--- i get the values of

[PHP] redirecting some values from one page to other in php

2005-07-20 Thread babu
I am using header method for redirecting to another php file.I also want to pass some variables to the redirected file. for example: file1.html where i have a dropdown menu. the user selects the options... this form has a action to file2.php file2.php--- i get the values of the form by u

Re[2]: [PHP] redirecting to a success page

2004-11-22 Thread Richard Davey
Hello Randy, Monday, November 22, 2004, 2:22:31 PM, you wrote: RR> You can send a header to redirect like below. I think he already had that (although it wasn't in the source code posted) because he said the error was the "headers already sent" one. Dreamweaver has a lot to answer for :) Best

Re: [PHP] redirecting to a success page

2004-11-22 Thread Richard Davey
Hello Judson, Monday, November 22, 2004, 2:13:13 PM, you wrote: JV> The original script, created by Dreamweaver, gives an error that says JV> header has already been sent. I tried different options to no avail. I JV> realize this script is now seriously hosed but thought I would include JV> it an

Re: [PHP] redirecting to a success page

2004-11-22 Thread Robby Russell
On Mon, 2004-11-22 at 09:13 -0500, Judson Vaughn wrote: > Group, > > I have a create_login.php page, which works (it inserts data into the > database), but I need for the script once executed to redirect to a > success.php page. > > It doesn't do this and I can't figure out how to do it. I've i

RE: [PHP] redirecting to a success page

2004-11-22 Thread Jay Blanchard
[snip] I have a create_login.php page, which works (it inserts data into the database), but I need for the script once executed to redirect to a success.php page. [/snip] http://www.php.net/header header("Location: success.php"); exit(); -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] redirecting to a success page

2004-11-22 Thread Randy Rinehart
You can send a header to redirect like below. Or you can print out some javascript location.href='successpage.php'; -randy rinehart - Original Message - From: "Judson Vaughn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, Novembe

[PHP] redirecting to a success page

2004-11-22 Thread Judson Vaughn
Group, I have a create_login.php page, which works (it inserts data into the database), but I need for the script once executed to redirect to a success.php page. It doesn't do this and I can't figure out how to do it. I've included a portion of the script below. This was created by Dreamweaver

Re: [PHP] redirecting to another page

2004-09-25 Thread Chris Shiflett
--- AMC <[EMAIL PROTECTED]> wrote: > What code do I use to redirect a user to a different page in php? There are several methods, but my favorite is to use a Location header which also changes the response status code. This method is transparent to the history mechanism, so users can still click t

Re: [PHP] redirecting to another page

2004-09-25 Thread Jason Davidson
eh hem,,, that is a great question to consult the manual... but as for a hint, search for header() Jason "AMC" <[EMAIL PROTECTED]> wrote: > > Hi, > > What code do I use to redirect a user to a different page in php? > > Thanks > > -- > PHP General Mailing List (http://www.php.net/) > To uns

[PHP] redirecting to another page

2004-09-25 Thread AMC
Hi, What code do I use to redirect a user to a different page in php? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirecting to another frame using php header function

2004-08-11 Thread Matthew Sims
> hi... > > can anyone point me to a way to do a page redirect using the php 'Header' > function to another frame. I have a page in one frame, when the user does > a > submit, i want to have the app do a redirect using the 'Header' function, > with the subsequent page being displayed in another fra

Re: [PHP] redirecting to another frame using php header function

2004-08-11 Thread John Holmes
bruce wrote: can anyone point me to a way to do a page redirect using the php 'Header' function to another frame. No. Use Javascript. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] redirecting to another frame using php header function

2004-08-11 Thread John Nichel
bruce wrote: hi... can anyone point me to a way to do a page redirect using the php 'Header' function to another frame. I have a page in one frame, when the user does a submit, i want to have the app do a redirect using the 'Header' function, with the subsequent page being displayed in another fram

[PHP] redirecting to another frame using php header function

2004-08-11 Thread bruce
hi... can anyone point me to a way to do a page redirect using the php 'Header' function to another frame. I have a page in one frame, when the user does a submit, i want to have the app do a redirect using the 'Header' function, with the subsequent page being displayed in another frame. didn't f

[PHP] Redirecting a user

2004-07-01 Thread Shaun
Hi, Please could someone tell me how I can redirect a user to the page they came from including any query strings attached to the URL? Many thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] redirecting

2004-02-18 Thread adwinwijaya
Hello Ian, Wednesday, February 18, 2004, 5:42:34 PM, you wrote: IF> Stick something like this in your html : IF> IF> Location won't work because you've already sent output to the browser. IF> Ian IF> On Wed, 2004-02-18 at 07:19, ajay wrote: >> hi! >> >> after having trawled through many go

Re: [PHP] redirecting

2004-02-17 Thread Ian Firla
Stick something like this in your html : Location won't work because you've already sent output to the browser. Ian On Wed, 2004-02-18 at 07:19, ajay wrote: > hi! > > after having trawled through many google articles, i've been told that the best > way to redirect a person is using header("

Re: [PHP] redirecting

2004-02-17 Thread John Nichel
ajay wrote: hi! after having trawled through many google articles, i've been told that the best way to redirect a person is using header("Location:url"); the problem is, i have form that is posted to another php script. This script then processes the form and then writes up a html page and include

Re: [PHP] redirecting

2004-02-17 Thread - Edwin -
On Wed, 18 Feb 2004 17:19:03 +1100 ajay <[EMAIL PROTECTED]> wrote: > i want the user to have say 5s to read that page and then be > redirected to another page. 'Not sure if it's only me but I think I've seen this recently ;) http://marc.theaimsgroup.com/?t=10769831404&r=1&w=2 http://marc.t

[PHP] redirecting

2004-02-17 Thread ajay
hi! after having trawled through many google articles, i've been told that the best way to redirect a person is using header("Location:url"); the problem is, i have form that is posted to another php script. This script then processes the form and then writes up a html page and includes in that p

Re: [PHP] Redirecting and get length problems

2004-01-07 Thread John W. Holmes
Chris W wrote: In this application I am working on, if there is a problem with the data, I use a redirect to go back to the form and send the data with an error message in a get. That way the user doesn't need to retype everything. Most errors can be caught with java script before they post

Re: [PHP] Redirecting and get length problems

2004-01-07 Thread Chris Shiflett
--- Chris W <[EMAIL PROTECTED]> wrote: > 3 of the fields in this form are to store various URL's so if they > are long URL's it is easy to see how I could go over the limit of > the max url length. So my question is what is the best alternative? > Is there a way to redirect and use a post instead o

[PHP] Redirecting and get length problems

2004-01-07 Thread Chris W
In this application I am working on, if there is a problem with the data, I use a redirect to go back to the form and send the data with an error message in a get. That way the user doesn't need to retype everything. Most errors can be caught with java script before they post the form but not

RE: [PHP] redirecting to a url..

2003-07-20 Thread Ow Mun Heng
header( "Refresh:2;url=$l_refresh_url" ); // Wait default of 2 seconds } Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: Chris Shiflett [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:46 PM

Re: [PHP] redirecting to a url..

2003-07-20 Thread Louie Miranda
yes, got it working. thanks a lot.. i did use header -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Chris Shiflett" <[EMAIL PROTECTED]> To: "Louie Miranda" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, Ju

Re: [PHP] redirecting to a url..

2003-07-18 Thread Chris Shiflett
--- Louie Miranda <[EMAIL PROTECTED]> wrote: > echo ""; > > Or you may have other more advance alternatives? You can use a protocol redirect rather than relying on HTML: header('Location: http://yoursite.org/us/index.php'); Chris = Become a better Web developer with the HTTP Developer's Ha

Re: [PHP] redirecting to a url..

2003-07-17 Thread Louie Miranda
thanks, this is much better. -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 18, 2003 2:29 PM Subject: Re: [PHP] redirecting to a url.. > > Louie Miran

Re: [PHP] redirecting to a url..

2003-07-17 Thread Curt Zirzow
Louie Miranda <[EMAIL PROTECTED]> wrote: > I have this form with 2 values under 1 name ColTemplate. I was hoping if i > can redirect it to another url? on the ?? if templateone or templatetwo. header('Location: http://domain/file'); Curt -- -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] redirecting to a url..

2003-07-17 Thread Louie Miranda
My solution.. echo ""; Or you may have other more advance alternatives? -- Thank you, Louie Miranda ([EMAIL PROTECTED]) - Original Message - From: "Louie Miranda" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 18, 2003 2:08 PM Sub

[PHP] redirecting to a url..

2003-07-17 Thread Louie Miranda
I have this form with 2 values under 1 name ColTemplate. I was hoping if i can redirect it to another url? on the ?? if templateone or templatetwo. Anyhelp would be good. -- code - $v_get_template = $_POST['ColTemplate']; if ($v_get_template === 'TemplateOne') { ?? } elseif ($v_get_te

Re: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread David Otton
On Tue, 17 Jun 2003 12:41:34 -0600, you wrote: >I'm a relative newbie to PHP coming from the Zope/Python/DTML world. Does >anyone know of a good way, short of a javascript, to redirect from index.html >to index.php. Also, can I use PHP to test for browsers, then redirect them >to the appropr

RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Ralph
Well it does appear to be working because according to this error, the problem is with main.php on line 4. -Original Message- From: Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 2:27 PM To: Ralph; 'Jay Blanchard'; [EMAIL PROTECTED] Subject: Re: [PHP] Redi

Re: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Michael
Parse error: parse error, unexpected T_STRING in /path/to/file_named/main.php on line 4 Here is my actual code so you can look at it and see what I am doing something wrong. I know I must be, since I don't see how php could become so popular for site development when it appears to be so diffi

Re: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Tue, 17 Jun 2003 at 22:27, lines prefixed by '>' were originally written by you. > Oops. Typos. Try this: > if(strstr($HTTP_USER_AGENT, "Mozilla/4")){ > header("Location: http://www.mydomain.com/moz4_page.php";); > elseif(strstr($HTTP_USER

RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Ralph
essage- From: Michael [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 1:12 PM To: Jay Blanchard; Ralph; [EMAIL PROTECTED] Subject: Re: [PHP] Redirecting to index.php from index.html With that I get: Parse error: parse error, unexpected T_STRING in /path/to/file_named/main.php on line 4

Re: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Michael
With that I get: Parse error: parse error, unexpected T_STRING in /path/to/file_named/main.php on line 4 Michael On Tuesday 17 June 2003 02:50 pm, Jay Blanchard wrote: > [snip] > If I use this on index.html, it does nothing. If I use it on index.php > I get: > > Parse error: parse error, unex

RE: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Jay Blanchard
[snip] If I use this on index.html, it does nothing. If I use it on index.php I get: Parse error: parse error, unexpected '=' in /path/to/file_named/main.php on line 3 What am I doing wrong On Tuesday 17 June 2003 02:11 pm, Ralph wrote: > > if(strstr = ($HTTP_USER_AGENT, "Mozilla/4")){ >

Re: [PHP] Redirecting to index.php from index.html

2003-06-17 Thread Michael
> My Page > > > etc.. > > > -Original Message- > From: Michael [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 11:42 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Redirecting to index.php from index.html > > I'm a relative newbie to PHP c

  1   2   >