You can use pipe to run the command and capture the stdout.
Then dump it with proper header to browser.
Note, If the external command (specially video encoding) takes long time
you should probably use cron for this and maintain a queue. I recommend you
apply some sorts of caching also.
--
On Mon, 2010-12-06 at 20:29 +0530, Ferdi wrote:
Greetings List members,
I have a script that takes quite a while to run, one or two hours, I wish to
redirect the normal php output to a file on the webserver itself. I don't
mind if in the process, the browser displays a blank page. The reason
On 6 December 2010 20:47, Steve Staples sstap...@mnsi.net wrote:
On Mon, 2010-12-06 at 20:29 +0530, Ferdi wrote:
Greetings List members,
I have a script that takes quite a while to run, one or two hours, I wish
to
redirect the normal php output to a file on the webserver itself. I don't
On 6 December 2010 15:46, Ferdi ferdinan...@printo.in wrote:
On 6 December 2010 20:47, Steve Staples sstap...@mnsi.net wrote:
On Mon, 2010-12-06 at 20:29 +0530, Ferdi wrote:
Greetings List members,
I have a script that takes quite a while to run, one or two hours, I wish
to
redirect
On Mon, 2010-12-06 at 16:19 +, Richard Quadling wrote:
On 6 December 2010 15:46, Ferdi ferdinan...@printo.in wrote:
On 6 December 2010 20:47, Steve Staples sstap...@mnsi.net wrote:
On Mon, 2010-12-06 at 20:29 +0530, Ferdi wrote:
Greetings List members,
I have a script that
On Thu, Jun 10, 2010 at 14:06, Ahmed Mohsen mre...@gmail.com wrote:
[snip!]
I don't want to enter (example.com/public) to view index.php file. I just
want to enter (example.com) and it redirects to the public folder and shows
only (example.com/index.php) in the URL. And for login.php should
On Thu, 2010-06-10 at 21:06 +0300, Ahmed Mohsen wrote:
Hi folks,
I know that this is not a php question, but I'm sure it some kind
related to it. I need to put my public files under public folder, and
other includes files and database config in other folder not shown to
the public, but i
On Tue, 2009-06-02 at 20:43 -0700, revDAVE wrote:
Thank you Jay - Shawn Paul for helping this newbie!
--
Thanks - RevDave
Cool @ hosting4days . com
[db-lists 09]
Also, according to the spec, the URL should be in absolute form, not
relative like you have there.
Ash
I found the answer here - I had --- whitespace ... if ?php is at line 2
Location: http://www.phpbuilder.com/board/showthread.php?t=10310794
Blank space above the php tag or below the final php tag
It is not intuitive but ...
if ?php is at line 2 of your script and a blank line is above it then
revDAVE wrote:
I found the answer here - I had --- whitespace ... if ?php is at line 2
Location: http://www.phpbuilder.com/board/showthread.php?t=10310794
Blank space above the php tag or below the final php tag
It is not intuitive but ...
if ?php is at line 2 of your script and a
On Tue, Jun 02, 2009 at 11:50:55AM -0700, revDAVE wrote:
I have this line at the end of 1 big php block...
header('Location: mypage.php?id=' .
$_SESSION['id'].'cat='.$_SESSION['cat']);
It works fine on my dev. Testing server but does not forward on the actual
website
Any way to
Thank you Jay - Shawn Paul for helping this newbie!
--
Thanks - RevDave
Cool @ hosting4days . com
[db-lists 09]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hey,boy, i think you should use datebase to store user status,use user's
internet-ip and intranet-ip to idenification.
To: php-general@lists.php.net
From: d...@program-it.ca
Date: Wed, 15 Apr 2009 16:20:05 -0400
Subject: Re: [PHP] redirect to a page the fist time a site is accessed
2009/4/15 Don d...@program-it.ca:
I have some code in my index.php file that check the user agent and
redirects to a warning page if IE 6 or less is encountered.
1. I'm using a framework and so calls to all pages go through index.php
2. The code that checks for IE 6 or less and redirects is
I Agree with @stuart.
Regards,
Igor Escoar
Systems Analyst Interface Designer
--
Personal Blog
~ blog.igorescobar.com
Online Portifolio
~ www.igorescobar.com
Twitter
~ @igorescobar
On Thu, Apr 16, 2009 at 6:05 AM, Stuart stut...@gmail.com wrote:
2009/4/15 Don d...@program-it.ca:
I
Stuart wrote:
2009/4/15 Don d...@program-it.ca:
I have some code in my index.php file that check the user agent and
redirects to a warning page if IE 6 or less is encountered.
1. I'm using a framework and so calls to all pages go through index.php
2. The code that checks for IE 6 or less and
On Thu, 16 Apr 2009 09:26:52 -0500, nos...@mckenzies.net (Shawn McKenzie) wrote:
Stuart wrote:
2009/4/15 Don d...@program-it.ca:
I have some code in my index.php file that check the user agent and
redirects to a warning page if IE 6 or less is encountered.
1. I'm using a framework and so
On Tue, Apr 14, 2009 at 10:30 PM, Jason Pruim ja...@jasonpruim.com wrote:
On Apr 14, 2009, at 10:11 PM, Don d...@program-it.ca wrote:
Hi,
I have some code in my index.php file that check the user agent and
redirects to a warning page if IE 6 or less is encountered.
1. I'm using a
Andrew Ballard aball...@gmail.com wrote in message
news:b6023aa40904150926g3e6fb478s36b18b6a53ec3...@mail.gmail.com...
On Tue, Apr 14, 2009 at 10:30 PM, Jason Pruim ja...@jasonpruim.com wrote:
On Apr 14, 2009, at 10:11 PM, Don d...@program-it.ca wrote:
Hi,
I have some code in my index.php
Don wrote:
Hi,
I have some code in my index.php file that check the user agent and
redirects to a warning page if IE 6 or less is encountered.
1. I'm using a framework and so calls to all pages go through index.php
2. The code that checks for IE 6 or less and redirects is in index.php
I
On Apr 14, 2009, at 10:11 PM, Don d...@program-it.ca wrote:
Hi,
I have some code in my index.php file that check the user agent and
redirects to a warning page if IE 6 or less is encountered.
1. I'm using a framework and so calls to all pages go through
index.php
2. The code that checks
Yashesh Bhatia wrote:
Hello:
I'm trying to emulate a problem i'm trying to solve as follows.
1 - user enters information into a html form and submits
2 - a php script is invoked on the submit and a pdf file is stamped
and made available for download
3 - the script finally redirects the
Aschwin:
Hi i tried
--
//echo 'script type=text/javascript';
//echo 'window.location.href=3.html;';
//echo '/script';
header(Location: 3.html);
exit;
--
but that did not work :(.
On Thu, 2008-06-12 at 16:27 +0530, Yashesh Bhatia wrote:
Aschwin:
Hi i tried
--
//echo 'script type=text/javascript';
//echo 'window.location.href=3.html;';
//echo '/script';
header(Location:
What about doing it the other way ... submitting the page to a script
that calls on the pdf creation, yet doesnt leave this script - then
proceed to redirect when that script (pdf) has been completed?
S
steven:
the steps u'r suggesting are
1 - submit form (1.html) to script (2.php)
2
On Thu, Jun 12, 2008 at 7:46 AM, Yashesh Bhatia [EMAIL PROTECTED] wrote:
What about doing it the other way ... submitting the page to a script
that calls on the pdf creation, yet doesnt leave this script - then
proceed to redirect when that script (pdf) has been completed?
S
You are totally in the wrong way.
I would use an a tag and onclick property for opening the PDF in popup
relocating the current page
HTH
Nitsan
On 12/06/2008, Yashesh Bhatia [EMAIL PROTECTED] wrote:
Hello:
I'm trying to emulate a problem i'm trying to solve as follows.
1 - user enters
Yashesh Bhatia wrote:
What about doing it the other way ... submitting the page to a script
that calls on the pdf creation, yet doesnt leave this script - then
proceed to redirect when that script (pdf) has been completed?
S
steven:
the steps u'r suggesting are
1 - submit form (1.html)
On Jun 12, 2008, at 8:32 AM, Bastien Koert wrote:
On Thu, Jun 12, 2008 at 7:46 AM, Yashesh Bhatia [EMAIL PROTECTED]
wrote:
What about doing it the other way ... submitting the page to a
script
that calls on the pdf creation, yet doesnt leave this script - then
proceed to redirect when
Hi Jack,
here is a link that can be of help
http://bugs.php.net/bug.php?id=22839
also you can use custom error handler function , catch errors and
write to stderr
function myErrorHandler($errno, $errstr, $errfile, $errline)
{
$ERROR='';
switch ($errno) {
case
Merlin schrieb:
Hi there,
I am checking plausability inside a php script that receives a POST
submit. If an error occures the user should be redirected back, along
with his original data filled into the forms.
There is a problem with this. As the GET method, which the redirect is
using,
Merlin wrote:
I am checking plausability inside a php script that receives a POST
submit. If an error occures the user should be redirected back, along
with his original data filled into the forms.
There is a problem with this. As the GET method, which the redirect is
using, only allows a
On Thu, May 3, 2007 9:26 am, Merlin wrote:
I am checking plausability inside a php script that receives a POST
submit. If an error occures the user should be redirected back, along
with his original data filled into the forms.
There is a problem with this. As the GET method, which the
Beating a dead horse here, since it's been mentioned twice already, but
yeah --- $_SESSION's are the way to go with this.
?
session_start();
$_SESSION['error'] = $error;
$_SESSION['parameter'] = $parameter;
header(Location:.$data[rurl]);
exit;
?
And wherever you have your
If it's on the same domain/user account, that's probably a better
idea but with $data['rurl'] being used, I'm (ignorantly) assuming that
RURL = Remote URL.
On 5/3/07, Richard Lynch [EMAIL PROTECTED] wrote:
On Thu, May 3, 2007 9:26 am, Merlin wrote:
I am checking plausability inside a
Ah, i thought to remember that the limit is lower on IIS than on Apache,
maybe i've just some memory faults. ;)
GET is meant to define what to GET, not to define content. This sounds a
bit academic, but remember that the GET-args are a part of the URI and
so will also go into the http-log for
Thanks all I manged to fix it.
The headers were already sent by a validation class I was using and needed a
bit of output buffering to get it working.
R.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can you re-iterate what is happening - I have a site with 1and1 and use
header() with no issues.
That is, unless you use output buffering. It may not be the most elegant
solution (using header() to redirect users increases server calls), but I
built a template-driven php site that calls:
?php ob_start; ?
...depending on certain conditions which means I can then use header() even
after I
Have tried the full url for the header and it still doesn't
work. I may have
to resort to...javacript redirects unless someone can suggest
a way around
it.
Here is the phpinfo();
http://s202801613.websitehome.co.uk/info.php
Is is 1and1 hosting if anyone had had any experience
Ross wrote:
Right,
Have tried the full url for the header and it still doesn't work. I may have
to resort to...javacript redirects unless someone can suggest a way around
it.
Here is the phpinfo();
http://s202801613.websitehome.co.uk/info.php
Is is 1and1 hosting if anyone had had any
Ross wrote:
Right,
Have tried the full url for the header and it still doesn't work. I may have
to resort to...javacript redirects unless someone can suggest a way around
it.
Here is the phpinfo();
http://s202801613.websitehome.co.uk/info.php
Is is 1and1 hosting if anyone had had any
Ross wrote:
Have tried the full url for the header and it still doesn't work.
I forget what your exact issue is, but a good first step to take when
debugging a problem with header() is to replace it with echo. For example:
echo Location: $url;
Instead of:
header(Location: $url);
Almost every
On Tue, April 17, 2007 10:02 am, Ross wrote:
Right,
Have tried the full url for the header and it still doesn't work. I
may have
to resort to...javacript redirects unless someone can suggest a way
around
it.
Here is the phpinfo();
http://s202801613.websitehome.co.uk/info.php
Is is
?php
if($_SERVER['SERVER_PORT'] !== $encport || $_SERVER['HTTPS'] !== on)
{header(Location:
https://.$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']);exit;}
?
Very bad solution.
Don't just tell us it's bad, explain why (even with an RTFM or URL to
look at)... nobody learns from an answer
I have separate document roots for the http and the https stuff, say
htdocs and htdocs-secure - this can be done with apache
configuration
then I need only to put a single redirecting line into the
htdocs/index.php like
?php
header(Location: https://my.server.com/;);
?
and that's all
greets
On 4/10/07, Zoltán Németh [EMAIL PROTECTED] wrote:
I have separate document roots for the http and the https stuff, say
htdocs and htdocs-secure - this can be done with apache
configuration
then I need only to put a single redirecting line into the
htdocs/index.php like
?php
header(Location:
On Mon, April 9, 2007 8:38 am, Martin Marques wrote:
Ben Liu escribió:
What's the prescribed method for redirecting a user forcibly to from
the
non-SSL secured version of a page to the SSL-secured version? Is
this
handled at the web server level or at the script level. I found this
by
Ben Liu wrote:
What's the prescribed method for redirecting a user forcibly to from
the non-SSL secured version of a page to the SSL-secured version? Is
this handled at the web server level or at the script level. I found
this by googling:
?php
if($_SERVER['SERVER_PORT'] !== $encport ||
Ben Liu escribió:
What's the prescribed method for redirecting a user forcibly to from the
non-SSL secured version of a page to the SSL-secured version? Is this
handled at the web server level or at the script level. I found this by
googling:
This should be done with the rewrite instruction
On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote:
This should be done with the rewrite instruction of apache, or what ever
instructionyour web server has.
Um...guess I will have to check with our hosting company about this. Thanks.
- Ben
--
PHP General Mailing List
Ben Liu wrote:
On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote:
This should be done with the rewrite instruction of apache, or what ever
instructionyour web server has.
Um...guess I will have to check with our hosting company about this.
Thanks.
- Ben
Hello,
FYI :
?php
On 4/9/07, Ben Liu [EMAIL PROTECTED] wrote:
What's the prescribed method for redirecting a user forcibly to from
the non-SSL secured version of a page to the SSL-secured version? Is
this handled at the web server level or at the script level. I found
this by googling:
?php
-Original Message-
From: Ben Liu [mailto:[EMAIL PROTECTED]
Sent: Monday, April 09, 2007 3:52 PM
To: Martin Marques; PHP
Subject: Re: [PHP] redirect http to https
On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote:
This should be done with the rewrite instruction of apache
On 4/9/07, Peter Lauri [EMAIL PROTECTED] wrote:
You might be able to do this by putting an .htaccess file in your webroot of
non-ssl:
--
RewriteEngine On
RewriteRule ^/(.*)$ https://www.yourdomain.com/$1 [L]
--
This appears to work:
RewriteEngine On
RewriteCond %{SERVER_PORT}
On Tuesday 04 April 2006 22:27, Brady Mitchell wrote:
-Original Message-
In JSP I have access to a function called sendRedirect() to
send a user
from one page to another, usually after some processing completed. Is
there a similar function in PHP?
Take a look at the header()
Or with javascript:
?
...
?
script language=JavaScript
!--
document.location =
'http://where.to.go.com/example.php?param1=?=$param1?';
//--
/script
?
...
?
PS: Sorry Mark...
Andy
Mark Kelly wrote:
On Tuesday 04 April 2006 22:27, Brady Mitchell wrote:
-Original Message-
Andrei wrote:
document.location =
'http://where.to.go.com/example.php?param1=?=$param1?';
Wasn't it - document.location.href ='www.example.com';
o_O ?
Barry
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--
PHP General Mailing List (http://www.php.net/)
To
It works with document.location = '...'; too. I use only this method and
it worked on all browsers...
Andy
Barry wrote:
Andrei wrote:
document.location =
'http://where.to.go.com/example.php?param1=?=$param1?';
Wasn't it - document.location.href ='www.example.com';
o_O ?
Barry
Mark Kelly wrote:
You can also use something like:
echo meta http-equiv=\Refresh\ content=\0;url=$from_page\;
There's no need to use a meta tag to mimic HTTP headers. PHP provides
the header() function.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Wednesday 05 April 2006 13:55, Chris Shiflett wrote:
Mark Kelly wrote:
You can also use something like:
echo meta http-equiv=\Refresh\ content=\0;url=$from_page\;
There's no need to use a meta tag to mimic HTTP headers. PHP provides
the header() function.
I have been using that
-Original Message-
From: Mark Kelly [mailto:[EMAIL PROTECTED]
Sent: 05 April 2006 14:19
To: php-general@lists.php.net
Subject: Re: [PHP] redirect using php
On Wednesday 05 April 2006 13:55, Chris Shiflett wrote:
Mark Kelly wrote:
You can also use something like:
echo meta http-equiv=\Refresh
At 11:21 PM +0200 4/4/06, Schalk wrote:
Greetings All,
In JSP I have access to a function called sendRedirect() to send a
user from one page to another, usually after some processing
completed. Is there a similar function in PHP?
After processing a form and sending the data via email, I
Mark Kelly wrote:
You can also use something like:
echo meta http-equiv=\Refresh\ content=\0;url=$from_page\;
There's no need to use a meta tag to mimic HTTP headers. PHP
provides the header() function.
I have been using that method when I got part-way through some
processing that
To: php-general@lists.php.net
Subject: Re: [PHP] redirect using php
On Wednesday 05 April 2006 13:55, Chris Shiflett wrote:
Mark Kelly wrote:
You can also use something like:
echo meta http-equiv=\Refresh\ content=\0;url=$from_page\;
There's no need to use a meta tag to mimic HTTP
On Wednesday 05 April 2006 14:33, Chris Shiflett wrote:
Mark Kelly wrote:
You can also use something like:
echo meta http-equiv=\Refresh\ content=\0;url=$from_page\;
There's no need to use a meta tag to mimic HTTP headers. PHP
provides the header() function.
I have been
Andrei wrote:
It works with document.location = '...'; too. I use only this method and
it worked on all browsers...
Assuming the end user has JS turned on. JS and Meta Refreshes are not
acceptable when you need to be sure the redirect works.
--
John C. Nichel IV
Programmer/System Admin
Andrei wrote:
It works with document.location = '...'; too. I use only this method and
it worked on all browsers...
Assuming the end user has JS turned on. JS and Meta Refreshes are not
acceptable when you need to be sure the redirect works.
Depends on your user target...
I
Thanks everyone for your help. In the end the simplest one that works
for this specific project was:
echo meta http-equiv=\Refresh\ content=\0;url=$from_page\;
Andrei wrote:
Andrei wrote:
It works with document.location = '...'; too. I use only this method
and it worked on all browsers...
http://uk.php.net/manual/en/function.header.php
---
http://chrome.me.uk
-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED]
Sent: 04 April 2006 22:21
To: php-general@lists.php.net
Subject: [PHP] redirect using php
Greetings All,
In JSP I have access to a
-Original Message-
In JSP I have access to a function called sendRedirect() to
send a user
from one page to another, usually after some processing completed. Is
there a similar function in PHP?
Take a look at the header() function.
http://php.net/header
To redirect you can use:
Brady Mitchell wrote:
-Original Message-
In JSP I have access to a function called sendRedirect() to
send a user
from one page to another, usually after some processing completed. Is
there a similar function in PHP?
Take a look at the header() function.
http://php.net/header
Try doing a pattern match on the server string and then using Header
to redirect them if its coming from the old server:
if (preg_match(/ces.ncsu/i, $_SERVER[HTTP_HOST])) {
header(Location: http://www.nc4h.org;);
}
- schnippy
On 8/10/05, Robert Sossomon [EMAIL PROTECTED] wrote:
If you are using apache you can use the redirect module
VirtualHost 152.1.45.10
Servername www.ces.ncsu.edu
ServerAlias *
Redirect permanent / http://www.nc4h.org/
/VirtualHost
--
Leon
On Wednesday 10 August 2005 16:52, Robert Sossomon wrote:
Anyone have a script or know of a way to check
Dotan Cohen wrote:
Hi list,
I need to redirerect a page, and send the referer information along
with the redirect. I have tried:
header(Location: $url);
and
printhtmlheadmeta http-equiv='refresh' content='0; URL=$url'
//head/html;
Both of them redirect as expected, but the browser (Firefox and
To obtain a certain portion of the referring url you might look at
parse_url();
See http://us3.php.net/manual/en/function.parse-url.php
- or -
If you want to bounce the user right back to the previous page
including get variables you could just use this snippet.
?php
$referrer =
On 7/30/05, Joe Wollard [EMAIL PROTECTED] wrote:
To obtain a certain portion of the referring url you might look at
parse_url();
See http://us3.php.net/manual/en/function.parse-url.php
- or -
If you want to bounce the user right back to the previous page including get
variables you could
I am writing a file download system and I need to be able to do a
redirect after the download is finished.
Basically, the user will be presented with a simple HTML page that
contains a link to download the file (href=/download.php?fileid=143).
I have the code to send the file working just
have you considered attempting to use
header(Location: .$URL);
where $URL contains the URL AFTER putting
ob_start(); at the top of the php file?
- Original Message -
From: Justin England [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, December 01, 2004 4:07 AM
Subject: [PHP]
Justin England wrote:
I am writing a file download system and I need to be able to do a
redirect after the download is finished.
The Redirect is sent as a header, before your download content.
The browser is free to act on that Redirect header and IGNORE the file
download content as soon as it
[snip]
{
header(Location: http://www.xx.com/page1.php;
);
print You have errors;
exit;
}
}
[/snip]
You either need to carry info about the error in a session variable or
url string or something...above your redirect happens before any error
can be sent to the
Now why didn't I think of that ! Thank you Jay!
Stuart
--- Jay Blanchard
[EMAIL PROTECTED] wrote:
[snip]
{
header(Location:
http://www.xx.com/page1.php;
);
print You have errors;
exit;
}
}
[/snip]
You either need to carry info about the error in a
On Saturday 23 October 2004 01:25, Stuart Felenstein wrote:
I'm not quite sure how to get an error message to
print out after a redirect. I know it's possible.
It's not possible. Think about it. How *can* you print something out when
you've already told the browser to go somewhere else? BTW
This isn't working:
Page2 (after page1 has been posted):
else
{
$_SESSION['er'] = 'Please make sure to fill in all 3
corresponding values .';
header(Location:
http://www.x.com/TestMulti4a.php; );
exit;
}
}
Page1:
Opening after session_start
$_SESSION['er'] =
On Saturday 23 October 2004 02:38, Stuart Felenstein wrote:
This isn't working:
Page2 (after page1 has been posted):
else
{
$_SESSION['er'] = 'Please make sure to fill in all 3
corresponding values .';
If you want keep changes to any session variables (so that they're
Sorry, all fixed now!
Thank you for the help!
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
See below:
--- Jason Wong [EMAIL PROTECTED] wrote:
What are you trying to do here?
Is 'Page1' == TestMulti4a.php?
Are you trying to display $_SESSION['er'] as set in
Page2?
If so why are you assigning $_POST['er'] to
$_SESSION['er']? All you need to
do is echo $_SESSION['er'].
Yes
The only problem I'm having here is that if a user
goes backwards, the error from the session variable
will show up. I put an unset $.. underneath the
echo but that seems to have no effect.
Stuart
--- Stuart Felenstein [EMAIL PROTECTED] wrote:
See below:
--- Jason Wong [EMAIL PROTECTED]
You can pass the error in the redirect URL:
header(Location: http://www.xx.com/page1.php?errmsg=You missed
some stuff)
On your main page you just check if there is an errmsg to be displayed:
if(isset($_GET['errmsg'])) {
echo $_GET['errmsg'];
}
That a simplified version obviously. But
Brent - Thank you I will try that method.
Can you elaborate more on below. I take it to mean you
have one page/script that your pages are going to do
all the checks.
This form is 5 pages long. So I chose session
variables just to keep it neat and maybe, more
secure.
Stuart
--- Brent
PROTECTED]
Sent: 22 October 2004 21:55
To: Brent Baisley
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Redirect then error message to user
Brent - Thank you I will try that method.
Can you elaborate more on below. I take it to mean you
have one page/script that your pages are going to do
all
it works,
thx
Chris W. Parker [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
Pablo Zorzoli mailto:[EMAIL PROTECTED]
on Wednesday, October 29, 2003 11:20 AM said:
You cannot do any echo ; before header(location:..); maybe that's
the problem.
The solution would be to turn on
header(Location: registratie.html);
That is exactly how you do the PHP version of a response.redirect().
Regards.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
But I get the following warning:
Warning: Cannot modify header information - headers already sent by (output
started at
/home/schoolre/public_html/Hitek/Online/Registratie/registratieFuncties.php:
1) in
/home/schoolre/public_html/Hitek/Online/Registratie/registratieData.php on
line 30
In
On Wed, 2003-10-29 at 16:17, alain dhaene wrote:
But I get the following warning:
Warning: Cannot modify header information - headers already sent by (output
started at
/home/schoolre/public_html/Hitek/Online/Registratie/registratieFuncties.php:
1) in
Pablo Zorzoli mailto:[EMAIL PROTECTED]
on Wednesday, October 29, 2003 11:20 AM said:
You cannot do any echo ; before header(location:..); maybe that's
the problem.
The solution would be to turn on output buffering.
?php
ob_start();
// do your stuff
header(Location:
I have check my code.
I haven't use a echo in my code.
It's very strange. I will search more on the manule.
thx
Pablo Zorzoli [EMAIL PROTECTED] schreef in bericht
news:[EMAIL PROTECTED]
On Wed, 2003-10-29 at 16:17, alain dhaene wrote:
But I get the following warning:
Warning: Cannot
--- alain dhaene [EMAIL PROTECTED] wrote:
Is there in php something as a redirect to another page like in asp?
Yes, and as with ASP, there are several methods.
Make an example script that has only this:
? header('Location: http://www.google.com/'); ?
As for your error about headers already
--- alain dhaene [EMAIL PROTECTED] wrote:
I have check my code.
I haven't use a echo in my code.
It's very strange. I will search more on the manule.
I don't think the manual will help you here. You *do* have output in your
script prior to the call to header(). Trust me. :-)
One way to find
alain dhaene mailto:[EMAIL PROTECTED]
on Wednesday, October 29, 2003 11:29 AM said:
I have check my code.
I haven't use a echo in my code.
It's very strange. I will search more on the manule.
PHP has so far been very good to me with reporting this error. I would
trust the error message
1 - 100 of 216 matches
Mail list logo