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
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
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
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:
same bullshit battles over and over again.
rday
--
================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page:
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
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
--
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:
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
--
f this general list.
rday
--
============
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page: http://
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:
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
>
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:
> >
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
eird, no?
rday
--
============
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page: http://crashco
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
or or against?
rday
--
================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page: http://cr
standing you?
rday
--
================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page: http://cra
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
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
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
out my eyes with a soup spoon. :-)
rday
--
================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page:
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
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
24 matches
Mail list logo