Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DotVoid.com:
PHP streams and http 1.1 gotcha
Mar 23, 2006 @ 06:52:50

If you work with streams in PHP, Dotvoid has a tip that just might come in handy some day in the future. The tip deals with the difference between HTTP 1.1 and 1.0.

I have a class that I wrote some time ago that is called URLImporter. It's simple, does what it is supposed to do and thus makes my life easier. Essentially it helps me fetch URL resources - mostly dynamically generated data from password protected extranets that require me to use HTTP POST.

Up until recently this class have only been used behind an http proxy. The other day I moved it to another machine - that is not behind a proxy and suddenly it stopped working.

He realized the problem after a bit of research - HTTP 1.1 automatically performs a "keep alive" on the connection, not timing out after the transaction's done like 1.0 does. His solution? Passing another HTTP header to the stream connection: "Connection: close".

tagged: streams gotcha 1.1 1.0 difference keep-alive close streams gotcha 1.1 1.0 difference keep-alive close

Link:

DotVoid.com:
PHP streams and http 1.1 gotcha
Mar 23, 2006 @ 06:52:50

If you work with streams in PHP, Dotvoid has a tip that just might come in handy some day in the future. The tip deals with the difference between HTTP 1.1 and 1.0.

I have a class that I wrote some time ago that is called URLImporter. It's simple, does what it is supposed to do and thus makes my life easier. Essentially it helps me fetch URL resources - mostly dynamically generated data from password protected extranets that require me to use HTTP POST.

Up until recently this class have only been used behind an http proxy. The other day I moved it to another machine - that is not behind a proxy and suddenly it stopped working.

He realized the problem after a bit of research - HTTP 1.1 automatically performs a "keep alive" on the connection, not timing out after the transaction's done like 1.0 does. His solution? Passing another HTTP header to the stream connection: "Connection: close".

tagged: streams gotcha 1.1 1.0 difference keep-alive close streams gotcha 1.1 1.0 difference keep-alive close

Link:

Community News:
Zoop PHP Framework 1.1 Released
Dec 27, 2005 @ 06:50:17

Codewalkers.com has a new post today with the announcement of a release from the Zoop Framework project - they've released version 1.1 today.

There is a fairly lengthly changelog. Some of the more notable changes include:

  • Inclusion of Javascript Libraries into the framework (and not in the application skeleton).
  • Support for multiple AJAX libraries (Prototype and Dojo included).
  • A large number of bug fixes.
  • Full compatibility with php 4.3.10 and up, including php 5.1.
  • Speed improvements, clean-ups and memory optimizations.
  • New AJAX based guiControls.
  • A new skeleton with an example program.
  • Lots more documentation and tutorials.
Zoop can be found at http://zoopframework.com.

The Zoop Framework is an object oriented framework for PHP based on a front controller. It is designed to be very fast and efficient and very nice for the programmer to work with. You can get the full story from their homepage, or just jump straight to the downloads to grab the latest copy...

tagged: zoop framework version 1.1 release zoop framework version 1.1 release

Link:

Community News:
Zoop PHP Framework 1.1 Released
Dec 27, 2005 @ 06:50:17

Codewalkers.com has a new post today with the announcement of a release from the Zoop Framework project - they've released version 1.1 today.

There is a fairly lengthly changelog. Some of the more notable changes include:

  • Inclusion of Javascript Libraries into the framework (and not in the application skeleton).
  • Support for multiple AJAX libraries (Prototype and Dojo included).
  • A large number of bug fixes.
  • Full compatibility with php 4.3.10 and up, including php 5.1.
  • Speed improvements, clean-ups and memory optimizations.
  • New AJAX based guiControls.
  • A new skeleton with an example program.
  • Lots more documentation and tutorials.
Zoop can be found at http://zoopframework.com.

The Zoop Framework is an object oriented framework for PHP based on a front controller. It is designed to be very fast and efficient and very nice for the programmer to work with. You can get the full story from their homepage, or just jump straight to the downloads to grab the latest copy...

tagged: zoop framework version 1.1 release zoop framework version 1.1 release

Link: