![]() |
| [Ok] Different result between run under DBG/without DBG |
|
Site Admin
|
Apache 2.2 is not compatible with Apache 2.0. Php binaries provided for php are compiled with Apache 1.3 (php5apache) and Apache 2 (php5apache2). Just don't use php under Apache 2.2 or compile php module yourself.
|
||||||||||||
|
|
|||||||||||||
|
I use xampp (apache 2.2) or wampp (apache 2.0) with php5.1.2 provided with each package. and the same bug is present.
I will try to use Easy PHP with apache 1.3 and php5 and prevent you if it's ok thanks Jacques |
||||||||||||
|
|
|||||||||||||
|
Those numbers are "normal" output. It is the size if the result in bytes that will follow i believe.
|
||||||||||||
|
|
|||||||||||||
|
Yeah, that's "Transfer-Encoding: chunked".
|
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
ahh, right, that's a chuncked output. Apache uses it whenever Content-Length is not set.
|
||||||||||||
|
|
|||||||||||||
|
thanks for your help but why apache send data before the end of script ?
so, It's the first time that i can see it. i have implemented an little language in htmls pages and it's a piece of my interpreter script that produce this output when it read a specific piece of html. my templates are :
and
it's perhaps cause by my syntaxe of templates ? |
||||||||||||||||
|
|
|||||||||||||||||
| [resolu] |
|
It's ok,
the explanation is as follows: with apache 1.3 the buffer is chuncked only when it's the end of script (after connection losted for example) with apache 2.? the buffer is chuncked during the execution of script. for to force apache to send only when the script is ended use ob_??? functions: ob_start() and ob_end_flush().... ob_start on the first line of script ob_end_flush after the last output thank you for your assistance without which I will not have been able to find the answer Jacques |
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
That's right, except probably 1.3. It also outputs using chunked enconding. Eveerything depends on the script output itself. If it is done shortly and relatively small, there is good chance that Apache will get EOF before it finish accumulating data for the first chunck and in this case it will not do chunking and will supply Content-Length header. You may want to check what headers you get on the client.
|
||||||||||||
|
|
|||||||||||||
|
how to obtain the headers get on the client ?
|
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
I think you'd need httpwatch or something like this
|
||||||||||||
|
|
|||||||||||||
|
Google for Fiddler (a Microsoft tool IIRC, don't know if it works with Mozilla) or the LiveHeaders (or was it LiveHTTPHeaders?) extension for Firefox.
Also tcptrace is a handy GUI app for TCP dumping, but I cannot remember which one of the first respective Google matches it was... |
||||||||||||
|
|
|||||||||||||
| [Ok] Different result between run under DBG/without DBG |
|
||
|
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by


RSS2 Feed