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
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
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
--- 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
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
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
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
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
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
.
-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
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
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
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
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
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
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:
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();
?
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
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
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,
[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
[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
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
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
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
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
*
[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
]
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
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
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
[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
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.
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
] |
| cc:
|
| Subject: Re: [PHP] Redirect after submit
-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
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:
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
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:
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
, 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
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
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
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
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
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
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
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
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:
=
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
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
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
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
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 =
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
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:
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
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
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
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
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.
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
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
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
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
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 =
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 =
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]
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
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
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
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
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
?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
: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
* 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,
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
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
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 -
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
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
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
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
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] ==
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
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
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
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
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
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
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. )
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
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
: 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
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
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,
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
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
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
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
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
201 - 300 of 339 matches
Mail list logo