[PHP] any major benefit in larger fread() blocks when reading STDIN?

2010-05-06 Thread Robert P. J. Day
i'm looking at some existing code that (obviously) reads from stdin: $fd = fopen(php://stdin, r); $source = ; while (!feof($fd)) { $source .= fread($fd, 1024); } fclose($fd); it works fine, but is there any reason the original author would have chosen 1024 as the individual read unit

[PHP] how to check for bandwidth limitations when uploading files?

2010-05-05 Thread Robert P. J. Day
probably not really a PHP question but i'll take a chance, anyway. i want to examine the network throughput i can get when continually uploading files from a PHP script via a POST request using the HTTP_Request2 class. i have a client-side script that simply takes files, creates a

Re: [PHP] how to check for bandwidth limitations when uploading files?

2010-05-05 Thread Robert P. J. Day
Quoting Jochen Schultz jschu...@sportimport.de: OS? Robert P. J. Day schrieb: probably not really a PHP question but i'll take a chance, anyway. i want to examine the network throughput i can get when continually uploading files from a PHP script via a POST request using

[PHP] creating a PHP wrapper script?

2010-04-23 Thread Robert P. J. Day
-- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday

Re: [PHP] Top vs. Bottom Posting.

2010-03-25 Thread Robert P. J. Day
-- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter

Re: [PHP] another question on setting include paths for a project

2010-03-23 Thread Robert P. J. Day
subsequent includes will work off of that. thoughts? sorry for rambling on so long. rday -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel

Re: [PHP] another question on setting include paths for a project

2010-03-23 Thread Robert P. J. Day
-- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday

[PHP] another question on setting include paths for a project

2010-03-22 Thread Robert P. J. Day
for testing.) so how can i have those server-side scripts extend their search path based on, perhaps, the same environment variable? thoughts? rday -- Robert P. J. Day Waterloo, Ontario, CANADA

Re: [PHP] another question on setting include paths for a project

2010-03-22 Thread Robert P. J. Day
-- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com

Re: [PHP] where to make observations about current PHP manual?

2010-03-20 Thread Robert P. J. Day
On Fri, 19 Mar 2010, Daniel Brown wrote: On Fri, Mar 19, 2010 at 16:59, Robert P. J. Day rpj...@crashcourse.ca wrote:  i don't see a separate mailing list for documentation so is this where i would point at oddities in the manual?  as in, here: http://www.php.net/manual/en

Re: [PHP] Re: where to make observations about current PHP manual?

2010-03-20 Thread Robert P. J. Day
On Fri, 19 Mar 2010, Daniel Brown wrote: On Fri, Mar 19, 2010 at 20:57, Robert P. J. Day rpj...@crashcourse.ca wrote:  i'm not sure that addresses my post -- it doesn't make grammatical sense to state that something is unavailable since something that is yet to be officially released

[PHP] no svn checkout of the current PHP development repo?

2010-03-20 Thread Robert P. J. Day
-- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http://twitter.com/rpjday

Re: [PHP] no svn checkout of the current PHP development repo?

2010-03-20 Thread Robert P. J. Day
. rday -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter

[PHP] any reason *not* to use PEAR DB module when accessing mysql?

2010-03-19 Thread Robert P. J. Day
-- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter

Re: [PHP] any reason *not* to use PEAR DB module when accessing mysql?

2010-03-19 Thread Robert P. J. Day
On Fri, 19 Mar 2010, Mattias Thorslund wrote: Robert P. J. Day wrote: (just a warning -- as a relative newbie to PHP, i'll probably have the occasional dumb question. just humour me.) i'm looking at some existing PHP code that accesses a mysql 5.0 db, and it's coded using

[PHP] where to make observations about current PHP manual?

2010-03-19 Thread Robert P. J. Day
-- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter

[PHP] Re: where to make observations about current PHP manual?

2010-03-19 Thread Robert P. J. Day
On Fri, 19 Mar 2010, Shawn McKenzie wrote: Robert P. J. Day wrote: i don't see a separate mailing list for documentation so is this where i would point at oddities in the manual? as in, here: http://www.php.net/manual/en/language.variables.external.php we read: // Unavailable

Re: [PHP] best way to set up an include path for a multi-level project?

2010-03-17 Thread Robert P. J. Day
On Tue, 16 Mar 2010, John Black wrote: On 03/16/2010 06:57 PM, Robert P. J. Day wrote: i have a project (let's call it proj) which lives in the proj directory and which contains several subdirs, some of which might contain their own subdirs and so on. some of those subdirs might

RE: [PHP] best way to set up an include path for a multi-level project?

2010-03-17 Thread Robert P. J. Day
for their code. does that more clearly explain what i think the right approach is? rday -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web

RE: [PHP] best way to set up an include path for a multi-level project?

2010-03-17 Thread Robert P. J. Day
-- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter

[PHP] best way to set up an include path for a multi-level project?

2010-03-16 Thread Robert P. J. Day
to solve this? thanks. rday -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http

[PHP] best way to determine (MIME) content type of a stream of bytes?

2010-03-08 Thread Robert P. J. Day
-- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter: http

Re: [PHP] best way to determine (MIME) content type of a stream of bytes?

2010-03-08 Thread Robert P. J. Day
On Mon, 8 Mar 2010, Ashley Sheridan wrote: On Mon, 2010-03-08 at 10:57 -0500, Robert P. J. Day wrote: hi, i'm interested in the most comprehensive way to determine the content type of a stream of bytes that's been uploaded to a PHP script? assuming that the bytes are uploaded simply via

Re: [PHP] best way to determine (MIME) content type of a stream of bytes?

2010-03-08 Thread Robert P. J. Day
with a soup spoon. :-) rday -- Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http