[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

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

2010-05-05 Thread Robert P. J. Day
Quoting Jochen Schultz : 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 the HTTP_Request2 class. i

[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 sh

[PHP] creating a PHP wrapper script?

2010-04-23 Thread Robert P. J. Day
n a regular basis, no? rday -- ================ Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter:

Re: [PHP] Top vs. Bottom Posting.

2010-03-25 Thread Robert P. J. Day
same bullshit battles over and over again. rday -- ================ Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page:

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

2010-03-23 Thread Robert P. J. Day
a different way, which is fine and might be what i'm after. rday -- ================ Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: ht

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

2010-03-23 Thread Robert P. J. Day
point, if i want as much flexibility as possible, a developer who checks out one or more of these projects has to identify what directories he wants to work with, and all subsequent includes will work off of that. thoughts? sorry for rambling on so long. rday --

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

2010-03-22 Thread Robert P. J. Day
an environment variable to be consulted on the "server" side. rday -- ============ Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page:

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

2010-03-22 Thread Robert P. J. Day
rver-side" PHP scripts are also part of the entire SVN checkout just so i can keep everything in the same place for testing.) so how can i have those "server-side" scripts extend their search path based on, perhaps, the same environment variable? thoughts? rday --

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

2010-03-20 Thread Robert P. J. Day
f this general list. rday -- ============ Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://

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

2010-03-20 Thread Robert P. J. Day
mention it explicitly, not just the 5.x branches. rday -- ================ Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitter:

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 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 >

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 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: > >

[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.variab

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

2010-03-19 Thread Robert P. J. Day
eird, no? rday -- ============ Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashco

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 access

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

2010-03-19 Thread Robert P. J. Day
or or against? rday -- ================ Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://cr

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

2010-03-17 Thread Robert P. J. Day
standing you? rday -- ================ Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://cra

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

2010-03-17 Thread Robert P. J. Day
ROJ_DIR depending on which one they want to pick up for their code. does that more clearly explain what i think the right approach is? rday -- ================ Robert P. J. Day Waterloo, Ontario, CANADA

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

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

2010-03-16 Thread Robert P. J. Day
g users to simply set a single env var has always worked for me. is that what others do to solve this? thanks. rday -- ==== Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, T

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

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

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? as

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

2010-03-08 Thread Robert P. J. Day
rently running only PHP 5.1.6. thanks. rday -- ============ Robert P. J. Day Waterloo, Ontario, CANADA Linux Consulting, Training and Kernel Pedantry. Web page: http://crashcourse.ca Twitte