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

2001-09-10 Thread Michael J. Seely
osition witha Lasso site, which I am considering php-ing. >> I need to do conditional redirects. >> >> George P, Edinburgh >> >> - Original Message - >> From: "Andrew Penniman" <[EMAIL PROTECTED]> >> To: <[EMAIL PROTECTED]> >&

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

2001-09-10 Thread Michael Kimsal
Good to hear. How's fusebox working for you? Andrew Penniman wrote: >The Steve Edberg (option #2) and Michael Kimsal suggestions to use >ob_start() output buffering work like a charm. Thanks so much! I would >have been a long time coming before I mad this connection on my own. >Guess I need

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

2001-09-10 Thread Andrew Penniman
The Steve Edberg (option #2) and Michael Kimsal suggestions to use ob_start() output buffering work like a charm. Thanks so much! I would have been a long time coming before I mad this connection on my own. Guess I need to hone my archive querying skills... I think it would be _really_ swell if

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

2001-09-10 Thread Steve Edberg
I learn something every day, here :) According to my McGraw-Hill HTML Programmer's Reference [please, no messages about HTML not being 'programming'!], the META tag _should_ only occur in the container. Of course, we all know how closely browsers adhere to the HTML specs ;P -steve

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

2001-09-10 Thread Philip Olson
On Tue, 11 Sep 2001, Jason Brooke wrote: > > Right off the top of my head, you have three options that I can see: > > > > (1) Rewrite the code to avoid any output before the redirect. > > I'd recommend this one myself Me too, I can't think of a valid reason to use a Location header while hav

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

2001-09-10 Thread Ken
At 08:11 AM 9/10/01 -0700, Steve Edberg wrote: >Right off the top of my head, you have three options that I can see: >(3) Use a META REFRESH tag. For example: > > > >where 1 is the time (in seconds) before you want the redirect, and 'page.php' is >where you want the redirect to. Of cours

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

2001-09-10 Thread Michael Kimsal
As others have mentioned, output buffering is what you want to look at. I've been doing some minor research on CF the past couple weeks, and it seems that CF, by default, always has output buffering on. While it's great for allowing redirects/header info to be pushed out wherever in a script,

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

2001-09-10 Thread Jason Brooke
> Right off the top of my head, you have three options that I can see: > > (1) Rewrite the code to avoid any output before the redirect. I'd recommend this one myself jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

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

2001-09-10 Thread Steve Edberg
Right off the top of my head, you have three options that I can see: (1) Rewrite the code to avoid any output before the redirect. (2) Use output buffering (available only in PHP4). I haven't used this, but check out http://www.php.net/manual/en/ref.outcontrol.php (3) Use a META REFRE

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

2001-09-10 Thread Robin Vickery
ot; <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, September 10, 2001 3:37 PM > Subject: [PHP] PHP Redirect in the middle of code? > > > > I am trying to figure out how to use PHP to redirect the user to a new > > location *after* processing an

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

2001-09-10 Thread Jordan Elver
> > George P, Edinburgh > > - Original Message - > From: "Andrew Penniman" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, September 10, 2001 3:37 PM > Subject: [PHP] PHP Redirect in the middle of code? > > > I am trying to f

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

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

[PHP] PHP Redirect in the middle of code?

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

RE: [PHP] redirect

2001-08-24 Thread Jon Farmer
1 15:45 To: [EMAIL PROTECTED] Subject: [PHP] redirect Hi all, I have the simplest question maybe, but I can't seem to find the answer. It's friday. Anybody knows how I can redirect to another url? greetings Wilbert - Pas de Deux Van Mierisstraat 25 2526

Re: [PHP] redirect

2001-08-24 Thread Nick Davies
Guys this stuff is all in the manual. :) header ("Location: url"); On Fri, 24 Aug 2001, Wilbert Enserink wrote: > Hi all, > > > I have the simplest question maybe, but I can't seem to find the answer. > It's friday. > > > Anybody knows how I can redirect to another url? > > > greetin

[PHP] redirect

2001-08-24 Thread Wilbert Enserink
Hi all, I have the simplest question maybe, but I can't seem to find the answer. It's friday. Anybody knows how I can redirect to another url? greetings Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852 http://www.pdd.nl

[PHP] Redirect Problems w/netscape

2001-07-20 Thread Chris Francy
Hi, I have a calendar script which I wrote with the following section of code. if ($HTTP_POST_VARS["ACTION"]=="DELETE" && $HTTP_POST_VARS["MsgId"]!="" && ereg("^([0-9])+$",$HTTP_POST_VARS["MsgId"]) ) { $sqltxt1="delete from CalendarData where ID='". $HTTP_POST_VARS["M

Re: [PHP] redirect to another page in PHP???

2001-07-20 Thread Tomas
I add this way to the list: header("Refresh: 0;url=$myurl"); (it´s really the same that using META tag!) Ok, I want to make you note that: 1) echo ""; 2) header("Refresh: 0;url=$myurl"); Work fine when sending cookies... (setcookie function) ... while: 3) header ("Location: $myurl"); S

Re: [PHP] redirect to another page in PHP???

2001-07-19 Thread Dave Freeman
On 20 Jul 01, at 0:03, Doug wrote: > Ok maybe I'm just retarded and can't find it but I'm looking for a way to > do a redirect in a php page to another page, similar to asp's > "response.redirect" function. Is there one in php??? No doubt there's plenty of options... here's what I'm using: I h

Re: [PHP] redirect to another page in PHP???

2001-07-19 Thread Paul Strange
Doug, Have you tried using a raw header? Something like this: header ("Location: http://www.site.com/newpage.php";); or header ("Location: newpage.php"); more details can be found at: http://www.php.net/manual/en/function.header.php Good Luck, -- Paul Strange Lead Programmer Level 67 LC --- eM

[PHP] redirect to another page in PHP???

2001-07-19 Thread Doug
Ok maybe I'm just retarded and can't find it but I'm looking for a way to do a redirect in a php page to another page, similar to asp's "response.redirect" function. Is there one in php??? Doug Henry

Re: [PHP] Redirect

2001-07-06 Thread teo
Hi Victor! On Fri, 06 Jul 2001, 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??? $response->redirect("page"); where: class Response {

Re: [PHP] Redirect

2001-07-06 Thread Christopher Allen
look in manual for HEADER and LOCATION - Original Message - From: "Vicor Spång Arthursson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, July 06, 2001 11:43 AM Subject: [PHP] Redirect > Hi! > > Still new on PHP, converting from vb$cript,

[PHP] Redirect

2001-07-06 Thread Vicor Spång Arthursson
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: [E

[PHP] Redirect

2001-07-06 Thread Victor Spång Arthursson
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: [

Re: [PHP] redirect from aframe to the whole page!

2001-06-21 Thread lenar
This is not PHP related, but use '_top' as TARGET. lenar. ""kaab kaoutar"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi! > how cann i redirect from a frame to a page but in the whole page ! > i mean like href and adding the target! > Thanks > ___

Re: [PHP] redirect from aframe to the whole page!

2001-06-21 Thread Philip Hallstrom
I don't remember for sure, but I think for IE you can do this: Header("Window-target: targetgoeshere"); Header("Location: /whereyouwanttogo.html"); and it will work. I'm pretty sure that works, but maybe I'm not remembering right. -philip In article <[EMAIL PROTECTED]> you write: > >Hi! >how

[PHP] redirect from aframe to the whole page!

2001-06-21 Thread kaab kaoutar
Hi! how cann i redirect from a frame to a page but in the whole page ! i mean like href and adding the target! Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP General Mailing List

[PHP] Redirect With Authentication Question

2001-05-11 Thread stan
Authentication Question... My company subscribes to several pay-to-view e-commerce sites that require htaccess-type authentication. To keep things simple for our users and to ensure that our users don't use these accounts w/out our permission, we would like to keep the account IDs and pas

[PHP] Redirect With Authentication Question

2001-05-11 Thread stan
Authentication Question... My company subscribes to several pay-to-view e-commerce sites that require htaccess-type authentication. To keep things simple for our users and to ensure that our users don't use these accounts w/out our permission, we would like to keep the account IDs and pas

Re: [PHP] Redirect With Authentication Question

2001-05-03 Thread Philip Hallstrom
Take a look at: ftp://ftp.isi.edu/in-notes/rfc2617.txt To receive authorization, the client sends the userid and password, separated by a single colon (":") character, within a base64 [7] encoded string in the credentials. basic-credentials = base64-user-pass base64-user-pass

[PHP] Redirect With Authentication Question

2001-05-03 Thread stan
Authentication Question... My company subscribes to several pay-to-view e-commerce sites that require htaccess-type authentication. To keep things simple for our users and to ensure that our users don't use these accounts w/out our permission, we would like to keep the account IDs and passwords

Re: [PHP] Redirect

2001-04-08 Thread elias
$newloc = "http://www.kameelah.org/eassoft"; Header("Location: $newloc"); die(); -elias http://www.kameelah.org/eassoft ""Fernando Buitrago"" <[EMAIL PROTECTED]> wrote in message 9aq0a0$jck$[EMAIL PROTECTED]">news:9aq0a0$jck$[EMAIL PROTECTED]... > Hi. > > Tell me te instruction to redirect (link

Re: [PHP] Redirect

2001-04-08 Thread Philip Olson
have a look at the first example found here : http://www.php.net/manual/en/function.header.php also check out meta refresh : http://www.pageresource.com/html/metref.htm regards, philip On Sun, 8 Apr 2001, Fernando Buitrago wrote: > Hi. > > Tell me te instruction to redirect (link) mi pa

[PHP] Redirect

2001-04-08 Thread Fernando Buitrago
Hi. Tell me te instruction to redirect (link) mi pages, please? Regards. Fer -- 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] Redirect using PHP to a "new" browser window.

2001-03-06 Thread Nick Norton
If the only thing you plan on doing after incrementing your counter is going to the new page, why not put the target="_blank" in the tag that points to your script. Then you'll do your counter script and redirect when you're already in a new window. -- PHP General Mailing List (http://www.php

[PHP] Redirect using PHP to a "new" browser window.

2001-03-06 Thread John Huggins
List, I current use something like this to send some one who clicks on my links to the actual web page. $row = @mysql_fetch_array($result); $url = $row["url"]; $ID = $row["ID"]; header("Location: $url"); header(""); And then the hitcounter for that particular ID is incremented, t

Re: [PHP] redirect pages

2001-02-26 Thread Yasuo Ohgaki
SNIP > > I mean, of course > header("Location: page.php"); > > Must teach fingers to wait for brain to engage :-) According to RFC2616, 'Location: ' header must be absolute URI (i.e. http://example.com/test.html), most browser works with relative URI, though. 'Content-Location: ' can be both ab

Re: [PHP] redirect pages

2001-02-26 Thread David Robley
On Tue, 27 Feb 2001 15:15, David Robley wrote: > On Tue, 27 Feb 2001 14:58, Peter Houchin wrote: > > > can some one offer a suggestion please ... i have a > > > > if ($update) { > > $result=foo; > > } > > > > in that if statement i want to redirect them to another page after it > > has processed t

Re: [PHP] redirect pages

2001-02-26 Thread David Robley
On Tue, 27 Feb 2001 14:58, Peter Houchin wrote: > > can some one offer a suggestion please ... i have a > > if ($update) { > $result=foo; > } > > in that if statement i want to redirect them to another page after it > has processed the result .. > i tried having using > > if ($update) { >

Re: [PHP] redirect pages

2001-02-26 Thread Ankur Verma
hope that helps best regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "Peter Houchin" <[EMAIL PROTECTED]> To: "PHP MAIL GROUP" <[EMAIL PROTECTED]> Sent: Tuesday, February 27, 2001 9:58 AM Subject: [PHP] redirect

[PHP] redirect pages

2001-02-26 Thread Peter Houchin
can some one offer a suggestion please ... i have a if ($update) { $result=foo; } in that if statement i want to redirect them to another page after it has processed the result .. i tried having using if ($update) { $result=foo; echo ""; } but to no avail .. any suggestio

Re: [PHP] redirect to another page not using headers

2001-02-24 Thread Joe Njeru
HI, why don't you implement some client side script in your page for example: echo ("function Relod1(){window.location='your.php?url=default.php';}") Joe Njeru, Nairobi Kenya ""kaab kaoutar"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi! > i'm working

[PHP] redirect to another page not using headers

2001-02-24 Thread kaab kaoutar
Hi! i'm working on Windows NT workstation with PWS§ Therefore header does not work ! but i want to redirect to another page! any server isde idea ? Thanks _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail

RE: [PHP] redirect if sql = nothing

2001-02-20 Thread Matt Davis
- From: Joe Sheble (Wizaerd) [mailto:[EMAIL PROTECTED]] Sent: 20 February 2001 16:46 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Php Mailing List Subject: RE: [PHP] redirect if sql = nothing Actually this won't work since the actual query never runs try: $sql = "select * from tab

RE: [PHP] redirect if sql = nothing

2001-02-20 Thread Joe Sheble (Wizaerd)
vis [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, February 20, 2001 11:33 AM > > To: Php Mailing List > > Subject: [PHP] redirect if sql = nothing > > > > > > If my SQL returns no results then i want to redirect to a page saying no > > result

Re: [PHP] redirect if sql = nothing

2001-02-20 Thread Website4S
In a message dated 20/02/2001 16:42:51 GMT Standard Time, [EMAIL PROTECTED] writes: << $sql = "select * from table where bla bla bla"; if(!isset($sql)) { do this; } else { do this; } I think ? -Brian >> This way might be a little easier $sql = "select * from table where

RE: [PHP] redirect if sql = nothing

2001-02-20 Thread Brian V Bonini
; To: Php Mailing List > Subject: [PHP] redirect if sql = nothing > > > If my SQL returns no results then i want to redirect to a page saying no > results etc but if results are found then I want it to continue > on down the > script how would i do this. > > M

Re: [PHP] redirect if sql = nothing

2001-02-20 Thread Joe Sheble (Wizaerd)
by checking the return value of mysql_num_rows() At 04:32 PM 2/20/01 +, Matt Davis wrote: >If my SQL returns no results then i want to redirect to a page saying no >results etc but if results are found then I want it to continue on down the >script how would i do this. > >Matt. > > >-- >PHP G

[PHP] redirect if sql = nothing

2001-02-20 Thread Matt Davis
If my SQL returns no results then i want to redirect to a page saying no results etc but if results are found then I want it to continue on down the script how would i do this. Matt. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: [PHP] Redirect page

2001-02-20 Thread Ben Peter
Rosen, You have to make sure that nothing is output before the header function. Make sure that you neither employ an echo or print before, and have nothing outside of th ephp code (the part enwrapped in ), not even whitespace. You critical spot seems to be line 2 in go.php Cheers, Ben Rosen wro

[PHP] Redirect page

2001-02-20 Thread Rosen
Hi, I have php script and I want to redirect user to different pages. I tryed with header("Location: main.php"); but i receive error: Warning: Cannot add header information - headers already sent by (output started at F:\Inetpub\wwwroot\pernik\go.php:2) in F:\Inetpub\wwwroot\pernik\go.php on lin

RE: [PHP] Redirect

2001-01-24 Thread Thor M. Steindorsson
ary 24, 2001 1:03 PM To: PHP Mailing List Subject: [PHP] Redirect What is wrong with this redirect: http://www.dogpile.com"; header ("Location: " . $rdrct); exit; ?> Thanks! Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP] Redirect

2001-01-24 Thread Karl J. Stubsjoen
What is wrong with this redirect: http://www.dogpile.com"; header ("Location: " . $rdrct); exit; ?> Thanks! Karl -- 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,

<    1   2   3   4