[PHP] redirect missing function error

2002-12-11 Thread Dave [Hawk-Systems]
related to Automatic include of files containing functions Can we capture errors for missing functions and have the script correct the problem and attempt again? For example// $result=MyFunction($someVariable); if this function doesn't exist, PHP generates an error. Capture the error

RE: [PHP] redirect URL

2002-12-07 Thread John W. Holmes
On Saturday 07 December 2002 04:26, 1LT John W. Holmes wrote: I don't can redirect my page to new url please help me Carlos Alberto Pinto Hurtado I posted the answer on my web page. Can you redirect the answer to the list so we can all see? Only joking ;-) Heh... I was hoping

[PHP] redirect URL

2002-12-06 Thread Carlos Alberto Pinto Hurtado
I don't can redirect my page to new url please help me Carlos Alberto Pinto Hurtado IT ICA (57 1) 2322181 (57 1) 2324698 Movil.(57 3) 310 6184251 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirect URL

2002-12-06 Thread Chris Shiflett
--- Carlos Alberto Pinto Hurtado [EMAIL PROTECTED] wrote: I don't can redirect my page to new url Try this: ? header(Location: http://www.google.com/;); exit; ? Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirect URL

2002-12-06 Thread 1LT John W. Holmes
I don't can redirect my page to new url please help me Carlos Alberto Pinto Hurtado I posted the answer on my web page. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] redirect URL

2002-12-06 Thread Jason Wong
On Saturday 07 December 2002 04:26, 1LT John W. Holmes wrote: I don't can redirect my page to new url please help me Carlos Alberto Pinto Hurtado I posted the answer on my web page. Can you redirect the answer to the list so we can all see? Only joking ;-) -- Jason Wong - Gremlins

[PHP] Redirect opening in a new window

2002-11-30 Thread Troy May
Hello, I'm playing with a portal system now and I need to edit a module to redirect to another site/page. I have done this with a header() redirection, but it takes the current window. How can I do this and have it open a new window for the redirect? -- PHP General Mailing List

Re: [PHP] Redirect opening in a new window

2002-11-30 Thread Jason Sheets
Look at javascript, you could use javascript to both open a new window and set the location or you could use javascript to open the new window to a PHP script that uses header() to forward the user. Be aware that some users disable javascript completely or just disable new windows to avoid popups

RE: [PHP] Redirect opening in a new window

2002-11-30 Thread Troy May
the pages/themes in one shot. -Original Message- From: Jeffrey B.Ferland [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 30, 2002 12:02 PM To: Troy May Subject: Re: [PHP] Redirect opening in a new window On Saturday 30 November 2002 02:55 pm, you wrote: Hello, I'm playing

Re: [PHP] Redirect opening in a new window

2002-11-30 Thread Maxim Maletsky
. -Original Message- From: Jeffrey B.Ferland [mailto:[EMAIL PROTECTED]] Sent: Saturday, November 30, 2002 12:02 PM To: Troy May Subject: Re: [PHP] Redirect opening in a new window On Saturday 30 November 2002 02:55 pm, you wrote: Hello, I'm playing with a portal system now and I need

Re: [PHP] Redirect Problem

2002-11-15 Thread Marek Kilimajer
the header, to be http compliant, should be Location: http://$HTTP_HOST$PHP_SELF?submit_cat=1submit_subcat=1cat_id=$cat_id also try echoing it instead to see if there is no error. Another thing is that exploder has a stupid habit of thinking of anything starting with to be a html entity even

[PHP] Redirect Problem

2002-11-14 Thread @ Nilaab
Ok, I have a problem with the header() redirect function, below is the part-code/part-pseudocode information. The file that this code is encapsulated in is a single file named add_item.php. There is no output before the header() function. Now this is a weird one, but I did some testing and here is

[PHP] redirect without using header

2002-11-13 Thread pig pig
Hi there, Is there a way to do redirect to another page without using the header function. I am getting an error by using header but I couldn't find any part of my code that output anything before using header. Thanks in advance CK Ong __ Do You

Re: [PHP] redirect without using header

2002-11-13 Thread Heilig (Cece) Szabolcs
Hello! I am getting an error by using header but I couldn't find any part of my code that output anything before using header. Check your included files what included before using header(); These files start with ? and ends with ? without whitespace after that? And you can use ob_start() at

Re: [PHP] redirect without using header

2002-11-13 Thread 1LT John W. Holmes
Hi there, Is there a way to do redirect to another page without using the header function. I am getting an error by using header but I couldn't find any part of my code that output anything before using header. The error message tells you where output was started. It says something like

Re: [PHP] redirect without using header

2002-11-13 Thread pig pig
Hi Heilig, I have been trying to use the ob_start and ob_end_flush(), but I am not sure where to put them. I try putting just before the header() but it still produce the warning that something has been output to the browser. Thanks CK Ong --- Heilig (Cece) Szabolcs [EMAIL PROTECTED] wrote:

Re: [PHP] redirect without using header

2002-11-13 Thread Heilig (Cece) Szabolcs
Start your code with ob_start() It fires up an output buffer, does not output (and headers) until ob_end_flush() called. Put ob_end_flush() after all, before last ? Your code might looks as follows: ?php ob_start(); echo whatever; header whatever; ob_end_flush(); ?

Re: [PHP] redirect without using header

2002-11-13 Thread @ Edwin
Hello, pig pig [EMAIL PROTECTED] wrote: function Order_action($sAction) { global $db; global $sForm; global $sOrderErr; $sParams = ; $sActionFileName = ShoppingCart.php?; do some error checking ...[snip]... I'm not sure but this could be because of some errors being

RE: [PHP] redirect without using header

2002-11-13 Thread pig pig
I've had PHP not immediately redirect and it cause me problems. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: pig pig [mailto:pigpig8080;yahoo.com.sg] Sent: Wednesday, November 13, 2002 7:47 AM To: [EMAIL PROTECTED] Subject: Re: [PHP

Re: [PHP] redirect without using header

2002-11-13 Thread Chris Shiflett
pig pig wrote: The problem I am expriencing now is intermittent. Sometime the CGI error will appear and sometime it works fine. Could it be the latency in the network that is causing the problem? Just before the call to header() there is a db query. Someone else might have suggested this,

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
[snip] I have a redirect i would like to do using php. It will go something like this if (mysql_db_query ($dbname, $query, $link)) { {redirect would go here} } else { {a different location on this redirect here} How can i accomplish this? i just do not know php well enough to code

Re: [PHP] php redirect

2002-07-26 Thread Tech Support
[EMAIL PROTECTED] To: David Buerer [EMAIL PROTECTED]; 'Jay Blanchard' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 26, 2002 11:20 AM Subject: Re: [PHP] php redirect Well the current web-dev environment here in Melbourne, Australia is VERY Microsoft oriented at the moment. I'm happily

[PHP] Re: php redirect

2002-07-26 Thread Brian McGarvie
if( ___ ) { header(Location: http://www.domain.com/itworked.php;); } else { header(Location: http://www.domain.com/error.php;); } Tyler Durdin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I have a redirect i would like to do using php. It will go something like this if

RE: [PHP] php redirect

2002-07-26 Thread Martin Clifford
Learning about HTTP protocol helps a LOT with understanding headers. Basically, the headers are generated by the server to tell the client (browser) what to do. If you send ANYTHING (even a hard return) before the header function is invoked then you will get this error. In essence, if you

RE: [PHP] php redirect

2002-07-26 Thread David Buerer
Javascript+PHP+SQL when it comes to site design. ASP is next on my list. -Original Message- From: Martin Clifford [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 8:41 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] php redirect I don't know

RE: [PHP] php redirect

2002-07-26 Thread Tyler Durdin
I already tried that and i got an error that said Cannot add header information - headers already sent by (another snippet of code I have in the page. Use the header() function http://www.php.net/manual/en/function.header.php *

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
[snip] Learning about HTTP protocol helps a LOT with understanding headers. Basically, the headers are generated by the server to tell the client (browser) what to do. If you send ANYTHING (even a hard return) before the header function is invoked then you will get this error. In essence, if

RE: [PHP] php redirect

2002-07-26 Thread David Buerer
] Subject: RE: [PHP] php redirect [snip] This is the only way I've figured out how to do it. It seems to work really well. if (mysql_db_query ($dbname, $query, $link)) { gotourl(myurl1);} } else { gorourl(myurl2);} function gotourl(myurl) { echo SCRIPT language=javascript; echo

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

2002-07-26 Thread Chris Garaffa
On Friday, July 26, 2002, at 11:32 AM, David Buerer wrote: ASP is about next on my list. I'm just trying to get javascript and PHP under my belt a little better firstwell ok, I'm waiting for my next paying client. I've found that you do have to use what you know to know whatever you need

Re: [PHP] php redirect

2002-07-26 Thread Bob Lockie
if and haven't learned it so it couldn't be. After all, how many programming languages does one need to know?? -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 8:27 AM To: 'David Buerer'; [EMAIL PROTECTED] Subject: RE: [PHP] php redirect [snip

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
[snip] What's ASP I don't know if and haven't learned it so it couldn't be. After all, how many programming languages does one need to know?? [/snip] a. I should have looked closer, you used JavaScript. b. window.location=$myurl is used in ASP (Active Server Pages - M$), more specifically

[PHP] Redirect after submit

2002-05-06 Thread Daniel Negron/KBE
Hi, I have a page that contains multi If ElseIf statements. I want to redirect right after a user submits gets a message (echo Entry Added to Database. \n; ) would you like to add another. then prompts for an alert. Would you like another ??? and redirects to a page based on selection.

Re: [PHP] Redirect after submit

2002-05-06 Thread 1LT John W. Holmes
Where exactly do you see PHP fitting into this. It looks like it's all Javascript, and that's client-side nonsense... ---John Holmes... - Original Message - From: Daniel Negron/KBE [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 06, 2002 9:27 AM Subject: [PHP] Redirect after

Re: [PHP] Redirect after submit (solved)

2002-05-06 Thread Daniel Negron/KBE
] | | cc: | | Subject: Re: [PHP] Redirect after submit

RE: [PHP] Redirect after submit

2002-05-06 Thread David Freeman
-Original Message- I have a page that contains multi If ElseIf statements. I want to redirect right after a user submits gets a message (echo Entry Added to Database. \n; ) would you like to add another. then prompts for an alert. Would you like another ??? and

Re: [PHP] redirect to new page and pass variables too? (fwd)

2002-04-25 Thread Pushkar Pradhan
I'm trying to do urlencode/urldecode: my $layer[] contains: aban_railroads, airport_runways2001, blk_grps this is what IE shows in my address window when I do the redirection:

Re: [PHP] redirect to new page and pass variables too? (fwd)

2002-04-25 Thread Pushkar Pradhan
Regarding my previous post: I found out that $QUERY_STRING contains the query: layer=a%3A3%3A%7Bi%3A0%3Bs%3A14%3A%22aban_railroads%22%3Bi%3A1%3Bs%3A19%3A%22airport_runways2001%22%3Bi%3A2%3Bs%3A8%3A%22blk_grps%22%3B%7D Now I am doing: $layer = unserialize($QUERY_STRING); or even

Re: [PHP] redirect to new page and pass variables too? (fwd)

2002-04-25 Thread Miguel Cruz
On Thu, 25 Apr 2002, Pushkar Pradhan wrote: I'm trying to do urlencode/urldecode: my $layer[] contains: aban_railroads, airport_runways2001, blk_grps this is what IE shows in my address window when I do the redirection:

[PHP] Redirect

2002-04-25 Thread Jennifer Downey
Hi to all, I am wondering if there are other ways to redirect users other than using header()? I have a script that if the user doesn't have enough money to buy an item then it directs to one page and if they do then it directs them back to the referring page. Is this possible? Thanks

RE: [PHP] Redirect

2002-04-25 Thread Maxim Maletsky \(PHPBeginner.com\)
, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: Jennifer Downey [mailto:[EMAIL PROTECTED]] Sent: Friday, April 26, 2002 2:10 AM To: [EMAIL PROTECTED] Subject: [PHP] Redirect Hi to all, I am wondering if there are other ways to redirect

RE: [PHP] Redirect

2002-04-25 Thread John Holmes
To: [EMAIL PROTECTED] Subject: [PHP] Redirect Hi to all, I am wondering if there are other ways to redirect users other than using header()? I have a script that if the user doesn't have enough money to buy an item then it directs to one page and if they do then it directs them back

[PHP] redirect to new page and pass variables too?

2002-04-24 Thread Pushkar Pradhan
I am collecting some data on a page - test.php, ($layer which is an array of names). If checkbox is checked that user wants to change drawing order, I should redirect the browser to page - updateHTML.php which has necessary script to do that. I achieved redirection using header(), but can't pass

[PHP] redirect to new page and pass variables too? (fwd)

2002-04-24 Thread Pushkar Pradhan
My previous question: I am collecting some data on a page - test.php, ($layer which is an array of names). If checkbox is checked that user wants to change drawing order, I should redirect the browser to page - updateHTML.php which has necessary script to do that. I achieved redirection using

Re: [PHP] redirect to new page and pass variables too? (fwd)

2002-04-24 Thread Miguel Cruz
On Wed, 24 Apr 2002, Pushkar Pradhan wrote: I am collecting some data on a page - test.php, ($layer which is an array of names). If checkbox is checked that user wants to change drawing order, I should redirect the browser to page - updateHTML.php which has necessary script to do that. I

Re: [PHP] redirect to new page and pass variables too? (fwd)

2002-04-24 Thread Pushkar Pradhan
Thanks Miguel, I was just reading urlencode.php, shouldn't the complementary function be urldecode() like the document. says, well unserialize must be working too, I believe you. On Wed, 24 Apr 2002, Pushkar Pradhan wrote: I am collecting some data on a page - test.php, ($layer which is an

Re: [PHP] redirect to new page and pass variables too? (fwd)

2002-04-24 Thread Miguel Cruz
On Wed, 24 Apr 2002, Pushkar Pradhan wrote: I was just reading urlencode.php, shouldn't the complementary function be urldecode() like the document. says, well unserialize must be working too, I believe you. I'm pretty sure the urldecoding happens automatically. If you get funny results then

Re: [PHP] redirect to new page and pass variables too? (fwd)

2002-04-24 Thread Pushkar Pradhan
As I am using php 4.0.6 I don't have $_REQUEST available, and there is no equivalent in earlier vers. The foll. doesn't work: updateHTML.php: $layer = urldecode(unserialize($layer)); I get this: Warning: Invalid argument supplied for foreach() in /rstc/user1/erc/pushkar/gis/mcrgdl//updateHTML.php

Re: [PHP] redirect browser

2002-04-20 Thread Joe
may be my message are hazy. the line = is not include in my php code/page, i just use it in this message as to divide into different section. Joe Jason Wong [EMAIL PROTECTED] ???:[EMAIL PROTECTED] On Saturday 20 April 2002 09:26, Joe wrote: =

Re: [PHP] redirect browser

2002-04-20 Thread Jason Wong
On Saturday 20 April 2002 18:49, Joe wrote: may be my message are hazy. the line = is not include in my php code/page, i just use it in this message as to divide into different section. Whatever, the answer is still the same: You cannot have anything between the beginning

Re: [PHP] redirect browser

2002-04-20 Thread eat pasta type fasta
make sure that this script is not insterted into an html document but it's a stand alone page eg. checkstudent.php. When the student submits their number your form should bring them here (form action=checkstudent.php method=post) and the page will do its job. Make sure however that there is

[PHP] redirect browser

2002-04-19 Thread Joe
I had developed the web-based survey for student. And I need to check that each only fill in the form once time. So I write following code to check if the student number exist in the database or not. if yes, don't let them to fill in again. if no, redirect the browser to the page for them to fill

Re: [PHP] redirect browser

2002-04-19 Thread Jason Wong
On Saturday 20 April 2002 09:26, Joe wrote: = ?php Warning: Cannot add header information - headers already sent by (output started at c:\html\html\check.php:4) in c:\html\html\check.php on line 42 I had no idea about

[PHP] Redirect?

2002-03-13 Thread Randum Ian
Hi there, I have recently finished a redesign of a website which I have = put in the directory v2. If I get someone going to http://www.boo.com is it possible to = automatically redirect it to http://www.boo.com/v2 and so on? Basically I need the basehref to be http://www.boo.com/v2 NOT =

Re: [PHP] Redirect?

2002-03-13 Thread Hiroshi Ayukawa
You can do it by modifying the setting of your HTTP server. But if you want to do it by PHP, write header(Location; http://www.boo.com/v2;); in your PHP script of http://www.boo.com/index.php. Regards , Hiroshi Ayukawa http://hoover.ktplan.ne.jp/kaihatsu/php_en/index.php?type=top -- PHP

[PHP] redirect / soft links

2002-02-26 Thread gregory hernandez
hello everyone. which would be a better practice?: 1) using php/javascript to redirect pages or 2) creating a soft (symbolic) link in UNIX and why (if possible)? thanks in advance. gregory -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Redirect problem.... UGH!!

2002-02-04 Thread Analysis and Solutions
Hi Robert: Perhaps you can help, since my posts don't seem to be making it to the newsgroup. I have been trying to use readfile() or header() to load another PHP... Check the archives: http://groups.google.com/groups?hl=engroup=php.general Good luck, --Dan -- PHP scripts

[PHP] Redirect problem.... UGH!!

2002-01-30 Thread Ben Turner
I am trying to put together a very simple redirect from php. all it is supposed to do is pull down the $p var and ship the user off to the destination. Ready for some code? ? #Header(Location: index.html); ? When I try this on a Linux server using PHP... everything works fine. The minute I

Re: [PHP] Redirect problem.... UGH!!

2002-01-30 Thread Bryan Gintz
Try it with JavaScript (a very nice supplement to PHP sometimes ) ? print SCRIPT\n; print document.location=\index.html\;\n; print /SCRIPT\n; ? Ben Turner wrote: I am trying to put together a very simple redirect from php. all it is supposed to do is pull down the $p var and ship the user off

Re: [PHP] Redirect problem.... UGH!!

2002-01-30 Thread Jason Wong
On Thursday 31 January 2002 02:47, Ben Turner wrote: I am trying to put together a very simple redirect from php. all it is supposed to do is pull down the $p var and ship the user off to the destination. Ready for some code? ? #Header(Location: index.html); ? When I try this on a

Re: [PHP] Redirect problem.... UGH!!

2002-01-30 Thread Analysis and Solutions
Ben: ? #Header(Location: index.html); ? You need to put the complete URL, not just the file name. By the way, folks, DON'T use JavaScript for redirection (or other essential navigational stuff). Plenty of people out there keep Java'Scrap turned off for security and privacy reasons.

Re: [PHP] Redirect problem.... UGH!!

2002-01-30 Thread Jim Lucas [php]
try puting an exit(); after the header(). ? header(location: someplace.html); exit(); ? Jim Lucas - Original Message - From: Ben Turner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 30, 2002 10:47 AM Subject: [PHP] Redirect problem UGH!! I am trying to put

Re: [PHP] Redirect?

2002-01-16 Thread Ben Sinclair
Subject: [PHP] Redirect? 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

[PHP] redirect phpinfo output

2001-12-28 Thread charlesk
How can I redirect the output from phpinfo to a file. If I try error_log(phpinfo(),3,z:\\.date(YmdHis)..html); all that is in the file is the number 1. The output gets sent to the user. Charles Killmer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] redirect phpinfo output

2001-12-28 Thread R'twick Niceorgaw
Subject: [PHP] redirect phpinfo output How can I redirect the output from phpinfo to a file. If I try error_log(phpinfo(),3,z:\\.date(YmdHis)..html); all that is in the file is the number 1. The output gets sent to the user. Charles Killmer -- PHP General Mailing List (http://www.php.net

[PHP] redirect

2001-12-13 Thread Tommy Straetemans
Hi, I have a small problem i come from a link in html page witch gives an numbet to php (contact.php?nummer=2) and in the script i use a redirec to a other php script but i can't give that number to then next script i do it like this: $url =

Re: [PHP] redirect

2001-12-13 Thread Tamas Arpad
I have a small problem i come from a link in html page witch gives an numbet to php (contact.php?nummer=2) and in the script i use a redirec to a other php script but i can't give that number to then next script i do it like this: $url =

[PHP] Redirect function

2001-12-10 Thread Steve Osborne
Is there a function or command in php that will redirect a user to another page, similar to Response.Redirect(URL) in ASP? Steve Osborne Database Programmer Chinook Multimedia Inc. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP] Redirect function

2001-12-10 Thread Martin Towell
header(location: $url); -Original Message- From: Steve Osborne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 11:36 AM To: PHP-General (E-mail) Subject: [PHP] Redirect function Is there a function or command in php that will redirect a user to another page, similar

[PHP] Redirect + SESSION question!!!

2001-12-10 Thread Mehmet Kamil ERISEN
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

Re: [PHP] Redirect + SESSION question!!!

2001-12-10 Thread Mehmet Kamil ERISEN
I am almost there folks. The issue is being resolved by using the ob_start(garbage); at the begining of the login.php script, and ob_end_flush(); at the end of the login.php script (in case the authentication fails and user stays on the page), and also put ob_end_flush(); at the top of the

[PHP] Redirect Function?!!

2001-12-06 Thread Cam
Anyone know of a way to redirect to another page with PHP? I'm aware of the META tag redirection via the HTTP header, but I really need a more elegant solution that redirects immediately without relying on any HTML tags. Appreciate the help, -C -- PHP General Mailing List

RE: [PHP] Redirect Function?!!

2001-12-06 Thread Martin Towell
how about include'ing the target page then exit'ing straight after? include $page; exit; -Original Message- From: Cam [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 4:23 PM To: [EMAIL PROTECTED] Subject: [PHP] Redirect Function?!! Anyone know of a way to redirect

Re: [PHP] Redirect Function?!!

2001-12-06 Thread Jason Brooke
?php header(Location: http://your.domain/path/to/file.html;); ? - Original Message - From: Martin Towell [EMAIL PROTECTED] To: 'Cam' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, December 07, 2001 3:23 PM Subject: RE: [PHP] Redirect Function?!! how about include'ing the target

Re: [PHP] Redirect Function?!!

2001-12-06 Thread Alex Shi
:22 AM Subject: [PHP] Redirect Function?!! Anyone know of a way to redirect to another page with PHP? I'm aware of the META tag redirection via the HTTP header, but I really need a more elegant solution that redirects immediately without relying on any HTML tags. Appreciate the help, -C

Re: [PHP] Redirect Function?!!

2001-12-06 Thread Brian Clark
* Cam [EMAIL PROTECTED] [Dec 07. 2001 00:23]: Anyone know of a way to redirect to another page with PHP? I'm aware of the META tag redirection via the HTTP header, but I really need a more elegant solution that redirects immediately without relying on any HTML tags. Appreciate the help,

[PHP] Redirect

2001-11-27 Thread MindHunter
Hi, As far as I understand header(Location: next-page.php); only works on Apache. What can you do to redirect if you do not have Apache? Tx MH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

Re: [PHP] Redirect

2001-11-27 Thread mcsaba
Hi. This is HTML: meta http-equiv='Refresh' Content='2; URL=foo.html' Content=x in seconds bye On Tue, 27 Nov 2001, MindHunter wrote: Hi, As far as I understand header(Location: next-page.php); only works on Apache. What can you do to redirect if you do not have Apache? Tx MH

[PHP] Redirect upon execution of script...

2001-11-25 Thread Daniel Alsén
Hi, is there a way to redirect after a script has run? I have a form whos result is being put into a database. When, or if, the operation is sucessful i set a variable $done to 1. Now, i need a redirection from here (if $done is 1). But since i cant send out headers that far down on the page -

RE: [PHP] Redirect upon execution of script...

2001-11-25 Thread Daniel Alsén
2. User fills in a form, clicks submit which calls the same script, passing itself the values. Depending on the value passed by the submit button, the script processes the information (INSERT or UPDATE) and sets $done = 1 if successful. The second scenario is easier to handle. Call the

RE: [PHP] Redirect upon execution of script...

2001-11-25 Thread Christian Dechery
Dechery [mailto:[EMAIL PROTECTED]] Sent: den 25 november 2001 18:41 To: Daniel Alsén; PHP; Miles Thompson Subject: RE: [PHP] Redirect upon execution of script... sorry if I'm not understanding correctly your problem... but it seems quite simple to me... I've created like 10.000 php

RE: [PHP] Redirect upon execution of script...

2001-11-25 Thread Miles Thompson
Daniel, See below Miles At 06:24 PM 11/25/2001 +0100, Daniel Alsén wrote: 2. User fills in a form, clicks submit which calls the same script, passing itself the values. Depending on the value passed by the submit button, the script processes the information (INSERT or UPDATE) and sets

RE: [PHP] Redirect upon execution of script...

2001-11-25 Thread Daniel Alsén
Thanks for all the help guys! I am sure i will solve this when i have a go at it again :) - Daniel -- 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

[PHP] redirect

2001-11-22 Thread Etienne Colla
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. My script is as follows: ?php header(Location: http://www.x.com/x.html;); $num=$nummer; if(count($FILE) == 0 || $FILE[1] ==

[PHP] PHP Redirect / header(location: )

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

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

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

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

2001-11-09 Thread Scott Houseman
Make sure that there is no output from your PHP script - or any HTML code whatsoever - before you call the header function. Cheers Scott - Original Message - From: phantom [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 09, 2001 11:01 AM Subject: [PHP] PHP Redirect / header

[PHP] Redirect use back after execution

2001-11-02 Thread Daniel Harik
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

[PHP] redirect to php problem

2001-09-15 Thread Nikola Veber
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

RE: [PHP] redirect to php problem

2001-09-15 Thread Jack Dempsey
sure look into meta refresh (search google and you'll find info) jack -Original Message- From: Nikola Veber [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 16, 2001 3:57 AM To: php forum Subject: [PHP] redirect to php problem Hi ! I'm having a problem with following : I'd like

Re: [PHP] redirect to php problem

2001-09-15 Thread David Otton
On Sun, 16 Sep 2001 09:57:14 +0200, you wrote: 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. )

[PHP] PHP Redirect in the middle of code?

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

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

2001-09-10 Thread George Pitcher
Andrew, I am in a similar position witha Lasso site, which I am considering php-ing. I need to do conditional redirects. George P, Edinburgh - Original Message - From: Andrew Penniman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 10, 2001 3:37 PM Subject: [PHP] PHP

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<    1   2   3   4   >