php-general Digest 27 Aug 2011 19:46:11 -0000 Issue 7458

Topics (messages 314631 through 314633):

Re: Dreaded Premature end of script headers
        314631 by: Jim Lucas

_POST and Session ending Problem
        314632 by: can kalyoncu

Please help to unsubscribe
        314633 by: Eli Orr

Administrivia:

To subscribe to the digest, e-mail:
        php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
        php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
        php-gene...@lists.php.net


----------------------------------------------------------------------
--- Begin Message ---
On 8/26/2011 4:49 PM, tamouse mailing lists wrote:
On Fri, Aug 26, 2011 at 6:48 PM, tamouse mailing lists
<tamouse.li...@gmail.com>  wrote:
On Fri, Aug 26, 2011 at 1:42 PM, Geoff Shang<ge...@quitelikely.com>  wrote:
I put this into Google and got this:
http://htmlfixit.com/cgi-tutes/tutorial_Common_Web_dev_error_messages_and_what_they_mean.php#premature


Yeah, I saw that too. I do know the mechanism that is happening. I
just can't figure out where the problem is without inserting print
statements.

Presumably, you are calling this cron job with some process which runs the
PHP script through a URL on your webserver.

Yes, that is correct. Using curl to launch the script via the web server.

1.  Modify the script so that it does actually output something, thereby
making the error go away.


When the script starts, it prints a banner with the script name and
date/time stamp. When it completes, it is supposed to print aggregate
results, time spent. I know it's encountering this problem before it
reaches the end as not all the data gets processed. I can't tell where
it is stopping though. If I put it in debug mode, it prints out a lot
of data from the beginning of the script, and never encounters this
problem.

2.  Run the script directly with PHP instead of via your webserver.  E.g.:
php -f<yourscriptname>

The way the script is designed, it depends on some $_SERVER values,
which wouldn't be set if running directly from the shell.


Again, I want to say that this script does NOT fail in dev, test and
stage, only production.


Well, you might have to go about this the long way. I suggest you cut larger sections of code out until you get a working script. Then start putting it back together.

Jim Lucas

--- End Message ---
--- Begin Message ---
Hello,

I created a membership script. It was working fine. Members can fill out
form and send it and they can continue to use site. But after a while I had
to change host. On the new server when the members fill out form and then
session ends. According to my tests when i delete $var = $_POST['variable']
; session continues as it should be but  this time i can't import variables
value ...

$_POST method usage changed ? because there is unneeded or hidden form
fields variable $_POST imports .

Please note that I am using a new version of apache server now.

--- End Message ---
--- Begin Message ---
The advised email to unsubscribe does not work: 
php-general-unsubscr...@lists.php.net

Thanks

Eli



-- 



--- End Message ---

Reply via email to