So I'm attempting to redirect back to the main site of a page after a
successful insert into a database... Here's my code:
?PHP
if (!$resp-is_valid) {
// What happens when the CAPTCHA was entered incorrectly
die (The reCAPTCHA wasn't entered correctly. Go back and try it again. .
Try lowercase 'http'. Anything in error log? Try turning on display_errors.
Cheers,
Tamas
-Original Message-
From: Jason Pruim [mailto:li...@pruimphotography.com]
Sent: Sunday, July 31, 2011 8:40 PM
To: php-general@lists.php.net
Subject: [PHP] Problem with header(Location
Jason Pruim
li...@pruimphotography.com
On Jul 31, 2011, at 2:50 PM, Dajka Tamas wrote:
Try lowercase 'http'. Anything in error log? Try turning on display_errors.
Tried both, upper and lower case http nothing changed... And nothing in the
error log... I try a simple echo with a link and
On Jul 31, 2011, at 1:40 PM, Jason Pruim wrote:
So I'm attempting to redirect back to the main site of a page after
a successful insert into a database... Here's my code:
?PHP
if (!$resp-is_valid) {
// What happens when the CAPTCHA was entered incorrectly
die (The reCAPTCHA wasn't
On Jul 31, 2011, at 6:23 PM, Tamara Temple wrote:
On Jul 31, 2011, at 1:40 PM, Jason Pruim wrote:
So I'm attempting to redirect back to the main site of a page after a
successful insert into a database... Here's my code:
?PHP
if (!$resp-is_valid) {
// What happens when the
I don't had the oportunity to test it yet, but today i will.
Today i will make two tests:
- Save the files without BOM.
- If i dont have success i will disable the output buffering.
Thanks to everybody for all support.
Regards,
Igor Escobar
systems analyst interface designer
www . igorescobar
BOM problems, a prepended
file in the Apache configuration which is broken/bugged/crap, or something
truly bad in the configuration.
Date: Tue, 31 Mar 2009 10:20:24 -0300
From: titiolin...@gmail.com
To: phps...@gmail.com
CC: php-general@lists.php.net
Subject: Re: [PHP] Problem with header
Hi guys, probably everybody goes think: its the same problem ever HTML
before header() functions ... but it is not.
I has working on a project and this are a running in Windows (shame on
me).
Recently i migrate to *Ubuntu *and some problems occurred and that
specifically i can't understand WHY
2009/3/30 Igor Escobar titiolin...@gmail.com:
Hi guys, probably everybody goes think: its the same problem ever HTML
before header() functions ... but it is not.
I has working on a project and this are a running in Windows (shame on
me).
Recently i migrate to *Ubuntu *and some problems
Output buffering turned off?
Bastien
Sent from my iPod
On Mar 30, 2009, at 15:03, Igor Escobar titiolin...@gmail.com wrote:
Hi guys, probably everybody goes think: its the same problem
ever HTML
before header() functions ... but it is not.
I has working on a project and this are a
Jay Blanchard wrote:
[snip]
/* send the errors to the interface and exit*/
if('' !== $errorsReported){
for($i = 0; $i count($errorsReported); $i++){
echo $errorsReported[$i];
}
unset($errorsReported);
[snip]
/* send the errors to the interface and exit*/
if('' !== $errorsReported){
for($i = 0; $i count($errorsReported); $i++){
echo $errorsReported[$i];
}
unset($errorsReported);
[snip]
/* send the errors to the interface and exit*/
if('' !== $errorsReported){
for($i = 0; $i count($errorsReported); $i++){
echo $errorsReported[$i];
}
unset($errorsReported);
[snip]
/* check for errors */
$arrCheckItems = array(
'Name',
'Dept',
'Level',
);
/* check for blanks */
foreach($_POST AS $key=$value){
if(in_array(niceName($key), $arrCheckItems)){
$errorsReported[] = notBlank($key, $value);
}
}
Even if
Jay Blanchard wrote:
[snip]
/* check for errors */
$arrCheckItems = array(
'Name',
'Dept',
'Level',
);
/* check for blanks */
foreach($_POST AS $key=$value){
if(in_array(niceName($key), $arrCheckItems)){
$errorsReported[] = notBlank($key, $value);
}
}
Even if the return from notBlank is
/* send the errors to the interface and exit*/
if('' !== $errorsReported){
for($i = 0; $i count($errorsReported); $i++){
echo $errorsReported[$i];
}
} else {
/* reload the empty interface */
Jay Blanchard mailto:[EMAIL PROTECTED]
on Thursday, March 24, 2005 12:34 PM said:
I don't know if either of these two things will make a difference but
here they are anyway.
/* send the errors to the interface and exit*/
if('' !== $errorsReported){
Why not
/* send the errors to the interface and exit*/
if('' !== $errorsReported){
for($i = 0; $i count($errorsReported);
$i++){
echo $errorsReported[$i];
}
[snip]
/* send the errors to the interface and exit*/
if('' !== $errorsReported){
for($i = 0; $i
count($errorsReported); $i++){
echo
$errorsReported[$i];
Jay Blanchard mailto:[EMAIL PROTECTED]
on Thursday, March 24, 2005 1:00 PM said:
I have tried ...
0 count($errorsReported)
0 !=
0 !==
isset($errorReported)
!empty
'' !=
'' !==
Have you tried explicitly setting $errorsReported to to see where it
goes?
$errorsReported = ;
Jay Blanchard wrote:
/* send the errors to the interface and exit*/
if('' !== $errorsReported){
for($i = 0; $i count($errorsReported); $i++){
echo $errorsReported[$i];
}
} else {
/* reload the empty interface
adwinwijaya wrote:
The error that I got just IE cannot download download.php from
mysite.com .. IE was not able to open this site and bla bla bla. No
hint in the error.
I think the problem that I faced is with SSL.
I try http://www.wazzup.co.nz/tutorials/protect_pdf/index.php
and it didnt work on
Hi all ...
I have script that looks like :
if(file_exists($filename)){
$len = filesize($filename);
//header(Content-type: attachment/pdf);
header('Content-Type: application/pdf');
//header(Content-Type: application/octet-stream);
adwinwijaya wrote:
Hi all ...
I have script that looks like :
if(file_exists($filename)){
$len = filesize($filename);
//header(Content-type: attachment/pdf);
header('Content-Type: application/pdf');
//header(Content-Type: application/octet-stream);
Hello Marek,
Monday, September 20, 2004, 6:58:46 PM, you wrote:
MK adwinwijaya wrote:
Hi all ...
I have script that looks like :
if(file_exists($filename)){
$len = filesize($filename);
//header(Content-type: attachment/pdf);
header('Content-Type:
On Mon, 20 Sep 2004 10:58:46 +0200, Marek Kilimajer [EMAIL PROTECTED] wrote:
I suppose you are trying to force IE to download the pdf file, but it is
always displaying it - you did not tell what is your problem.
IE determines the type of file from the extension, if it is a known
extension
--- CBharadwaj [EMAIL PROTECTED] wrote:
In conection.php I have written.
SESSION_ START();
on successful login I am registering a session variable.
SESSION_REGISTER(userId);
Do this instead:
session_start();
$_SESSION['userid'] = 'myuser';
Header(Location: home.php);
Use
Hello,
In conection.php I have written.
SESSION_ START();
on successful login I am registering a session variable.
SESSION_REGISTER(userId);
on login failure I am redirecting to home page.
Header(Location: home.php);
the following error occuring in above line.
Warning: Cannot
Hello,
In conection.php I have written.
SESSION_ START();
on successful login I am registering a session variable.
SESSION_REGISTER(userId);
on login failure I am redirecting to home page.
Header(Location: home.php);
the following error occuring in above line.
Warning: Cannot
the following error occuring in above line.
Warning: Cannot modify header information - headers already sent by
(output started at E:\PHPMySql scripts\bugtrack\connection.php:3)
in E:\PHPMySql scripts\bugtrack\index.php on line 117
Have you got any space before you output anything to the
On Thursday 12 August 2004 07:48 pm, CBharadwaj wrote:
Hello,
In conection.php I have written.
SESSION_ START();
^
Get rid of extra space and it should work
Hth,
Andre
on successful login I am registering a session variable.
SESSION_REGISTER(userId);
on
the connection file I have included in every page.
why this error is occuring?
check E:\PHPMySql scripts\bugtrack\connection.php for white space
before or after ?php ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
look the line 3 of connection.php
Good luck
On Wed, 8 Sep 2004 16:43:54 -0700, CBharadwaj
[EMAIL PROTECTED] wrote:
Hello,
In conection.php I have written.
SESSION_ START();
on successful login I am registering a session variable.
SESSION_REGISTER(userId);
on login failure I am
Warning: Cannot modify header information - headers already sent by
(output started at E:\PHPMySql scripts\bugtrack\connection.php:3)
in E:\PHPMySql scripts\bugtrack\index.php on line 117
the connection file I have included in every page.
why this error is occuring?
You are getting this
Hi,
Friday, March 26, 2004, 2:36:18 PM, you wrote:
pen On 25 Mar 2004 at 14:10, Tom Rogers wrote:
Any whitespace in any file before the ?php will cause data to be sent
to the browser forcing the headers to be sent. So make sure the first
line of your page has ?php and it is a good idea to
Hello to all - just joined this list to see if I can enhance my pretty slim knowledge
of PHP.
I have a little script I cobbled together than I modified to use as a guestbook for a
client's site. I am trying to get the script to call a success page if the mail in
fact gets
sent. I plan to also
Hi,
Thursday, March 25, 2004, 9:17:31 AM, you wrote:
PM Hello to all - just joined this list to see if I can enhance
PM my pretty slim knowledge of PHP.
PM I have a little script I cobbled together than I modified to use as a guestbook
for a
PM client's site. I am trying to get the script to
Hi,
TR Any whitespace in any file before the ?php will cause data to be sent
TR to the browser forcing the headers to be sent. So make sure the first
TR line of your page has ?php and it is a good idea to drop the ? from
TR included pages as there may be blank lines following which are just as
TR
--- Phil Matt [EMAIL PROTECTED] wrote:
header(Location:thanks.shtml);
Two errors here:
1. There is a space after the colon.
2. The URL must be an absolute URL.
But no matter where I place it in the PHP file, I get the error
message that says Headers already sent...
Read this message. It
i have an script, it send a header response:
?php
header (HTTP/1.1 206 Partial content);
.
it works fine im my server on windows2000 as apache module, but doesn´t work
in my apache cgi
on internet (linux). The following error appears when i run the script.
[Wed Jan 29 11:07:18 2003]
Hi All,
I am having problem with redirecting using header
function with register_globals off. It works fine on
my PC but not on the site as the register_globals is
off on the server. When redirecting on the server it
gave an CGI error:
CGI Error
The specified CGI application misbehaved by not
Can you post some code?
Marco
--
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Check us out on the web at http://www.phparch.com
On Tue, 2002-11-12 at 08:52, pig pig wrote:
Hi All,
I am having problem with
To: [EMAIL PROTECTED]
Subject: [PHP] Problem with header redirect with register_globals off
Hi All,
I am having problem with redirecting using header
function with register_globals off. It works fine on
my PC but not on the site as the register_globals is
off on the server. When redirecting
I want to sent a script-result as a renamed html-document to the client.
I tried:
- header(Content-Disposition: inside; filename=name.html);
- header(Content-Disposition: inside; filename=\name.html\);
- header(Content-Disposition: inside;);
header(Content-filename=name.html);
even with a
Hi,
Can anyone tell me why header cannot been used after any network
operation?
In my script, there are following steps:
1).a socket is opened for smtp;
2).send email;
3).closed the socket;
4).use header() to redirect to another page.
If no 1), 2) and 3), 4) can be processed without any
Hi,
Can anyone tell me why header() cannot been used after any network
operation?
In my script, there are following steps:
1).a socket is opened for smtp;
2).send email;
3).closed the socket;
4).use header() to redirect to another page.
If no 1), 2) and 3), 4) can be processed without any
Hello:
Thank God. The mailing list is back and many thanks to the PHP Owners.
I am having a problem using the header() function. I am using this function
in a script that is used to download files.
When used, I am getting a blank page with some junk characters and
some html code, that I
47 matches
Mail list logo