php-general Digest 15 Dec 2007 17:10:24 -0000 Issue 5182

Topics (messages 265899 through 265928):

Re: how to "Harmonic Mean" manual
        265899 by: Per Jessen
        265924 by: LKSunny

Re: determine date range
        265900 by: Richard Lynch

Re: How to look for unused methods/functions and variables/constants.
        265901 by: Richard Lynch
        265902 by: mike
        265903 by: Nathan Nobbe
        265904 by: Robert Cummings
        265905 by: Nathan Nobbe

Multiple File Downloads
        265906 by: David Giragosian
        265907 by: Daniel Brown
        265908 by: Jason Pruim
        265909 by: David Giragosian
        265910 by: Andrew Ballard
        265911 by: Daniel Brown
        265912 by: Daniel Brown
        265913 by: David Giragosian
        265914 by: Robert Cummings
        265915 by: Daniel Brown
        265916 by: Benjamin Darwin
        265917 by: David Giragosian
        265918 by: Daniel Brown
        265919 by: Robert Cummings
        265920 by: Daniel Brown
        265921 by: Robert Cummings
        265922 by: Daniel Brown
        265926 by: Jason Pruim
        265927 by: Robert Cummings

Re: zlib and fopen and stream_filter_append, prebuffer read errors help
        265923 by: Bob Sabiston

Building PHP 5.2.5 on Win32
        265925 by: Michael Tyson

Re: ezmlm warning
        265928 by: Andrés Robinet

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Per Jessen wrote:

> I don't think you need to know much about statistics - AFAIK, the
> harmonic mean of a group of numbers is simply the reciprocal of
> the 'normal' mean:
> 
> harmonic_mean(3,4,5,6) = 1/mean(3,4,5,6)

Ignore that. 


/Per Jessen, Zürich

--- End Message ---
--- Begin Message ---
i testing ~ it's correct

Thank You Very Much !!

""Richard Lynch"" <[EMAIL PROTECTED]> 
???????:[EMAIL PROTECTED]
> If I am reading Wikipeadia correctly, you want this:
>
> <?php
> function stats_harmonic_mean($array){
>  $count = count($array);
>  $mean = 0;
>  foreach($array as $n){
>    $mean += 1/$n;
>  }
>  $mean = $count / $mean;
>  return $mean;
> }
> ?>
>
> No guarantees as to correctness.
>
> The *real* function probably takes a variable number of arguments, and
> you can do that if you need to, but you're on your own for that.
>
> On Fri, December 14, 2007 8:38 am, LKSunny wrote:
>> i know it can make simple function, if have Statistics knowledge...
>>
>> reference:
>> http://en.wikipedia.org/wiki/Harmonic_Mean
>>
>> "Jochem Maas" <[EMAIL PROTECTED]>
>> ???????:[EMAIL PROTECTED]
>>> LKSunny wrote:
>>>> i know stats_harmonic_mean(), but i am not server admin, i can't
>>>> install
>>>> PECL, so i need make it by manual, but i have't Statistics
>>>> knowledge, any
>>>> one can help me ? thank you very much !!
>>>
>>> I doubt anyone is going to write a php version of that function for
>>> you.
>>>
>>> given that you are not the server admin then someone else must be,
>>> go to
>>> that person and ask them to run the relevant pecl command:
>>>
>>> pecl install stats
>>>
>>> if they won't get another hoster. regardless you can still develop
>>> with
>>> that extension
>>> on your local machine.
>>>
>>> If you really need such a function/extension then you should be
>>> able to convince the client that it's less effort to find suitable
>>> hosting
>>> than it
>>> is to waste time reinventing a, potentially complex, wheel.
>>>
>>>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
> -- 
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some indie artist.
> http://cdbaby.com/from/lynch
> Yeah, I get a buck. So? 

--- End Message ---
--- Begin Message ---
On Wed, December 12, 2007 10:39 am, slith wrote:
> I'm working on hotel type booking script where prices will vary
> depending on the season. prices are updated every year so i need to
> take
> a user inputed date and determine which season the date falls under.

I would highly recommend adding a table like:

create table price (
  price_id int(11) unsigned autoincrement unique not null primary key,
  startdate date,
  enddate date,
  price int(11) unsigned
);

Then INSERT a new price for any seasonal variations.

You can then base the price on the date for advance bookings by
looking up the price by date, and NOT quote a price for a reservation
so far in advance that they aren't willing to honor it...

You may need to have some admin and make sure the startdate/enddate
always "makes sense" as the hotel adds data, but at least you'll KNOW
what the price is supposed to be for any given date, instead of just
trying to pretend you know when you don't...

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

--- End Message ---
--- Begin Message ---
There is a software package called 'gconv' for C which does this...

It may or may not be amenable to PHP...

On Wed, December 12, 2007 3:21 am, Mathijs van Veluw wrote:
> Hello there,
>
> We have a large project with lots of classes.
> Now i am wondering if there is a way to let something check all those
> files and tell me which methods/functions variables/constants etc..
> arn't used anymore.
>
> Or even which files arn't used anymore.
>
> Is there already something like this?
>
> Thx in advance.
>
> Mathijs
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?

--- End Message ---
--- Begin Message ---
Well you can use get_defined_vars() to find all the variables defined
inside of each scope (for instance global scope) that don't really
need to be defined...

http://php.net/get_defined_vars

They can help you unset() or find variables you otherwise don't need
to use. But that's the best I think you can do.

On 12/14/07, Richard Lynch <[EMAIL PROTECTED]> wrote:
> There is a software package called 'gconv' for C which does this...
>
> It may or may not be amenable to PHP...
>
> On Wed, December 12, 2007 3:21 am, Mathijs van Veluw wrote:
> > Hello there,
> >
> > We have a large project with lots of classes.
> > Now i am wondering if there is a way to let something check all those
> > files and tell me which methods/functions variables/constants etc..
> > arn't used anymore.
> >
> > Or even which files arn't used anymore.
> >
> > Is there already something like this?
> >
> > Thx in advance.
> >
> > Mathijs
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
> --
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some indie artist.
> http://cdbaby.com/from/lynch
> Yeah, I get a buck. So?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
On Dec 12, 2007 4:21 AM, Mathijs van Veluw <[EMAIL PROTECTED]>
wrote:

> Hello there,
>
> We have a large project with lots of classes.
> Now i am wondering if there is a way to let something check all those
> files and tell me which methods/functions variables/constants etc..
> arn't used anymore.
>
> Or even which files arn't used anymore.
>
> Is there already something like this?


if you want to do it right, youll have to make use of the php tokenizer.
http://us.php.net/manual/en/ref.tokenizer.php
using this tool you can analyze the source to create a list of things like
- all classes defined in the code
- all functions defined in the code
once you have these lists you simply iterate over each member of them.
if there are no references to a specific function or class, it *should* be
safe
to assume it is no longer in use, however it could be new code, not yet in
use.
you can employ a similar technique for files using bash and some standard
unix programs.  basically just build a list of all the files in your
source.  then
iterate over the list, grepping the source.  if there are no include /
require
directives for a given file it becomes a candidate for removal.
this still is not perfect however.  there could be plenty of situations
where
legacy code is being referenced, but the execution path on a daily runtime
basis never takes that path.  this can be a horrible thing, because new
developers who dont know the ins-and-outs of a massive code base will
stumble into this dead code in troubleshooting efforts only to be told by
somebody whos been there for a while that that code isnt the problem.  and
then it is still left there anyway... (forgive me, ive had some undue
headaches
for these very reasons).  i think the best practice in this case is to mark
said
dead code as a candidate for removal on the next release cycle of the
software.
using these techniques in concert i think you can keep the code fairly
clean.

-nathan

--- End Message ---
--- Begin Message ---
On Fri, 2007-12-14 at 14:09 -0500, Nathan Nobbe wrote:
> On Dec 12, 2007 4:21 AM, Mathijs van Veluw <[EMAIL PROTECTED]>
> wrote:
> 
> > Hello there,
> >
> > We have a large project with lots of classes.
> > Now i am wondering if there is a way to let something check all those
> > files and tell me which methods/functions variables/constants etc..
> > arn't used anymore.
> >
> > Or even which files arn't used anymore.
> >
> > Is there already something like this?
> 
> 
> if you want to do it right, youll have to make use of the php tokenizer.
> http://us.php.net/manual/en/ref.tokenizer.php
> using this tool you can analyze the source to create a list of things like
> - all classes defined in the code
> - all functions defined in the code
> once you have these lists you simply iterate over each member of them.
> if there are no references to a specific function or class, it *should* be
> safe to assume it is no longer in use, however it could be new code, not
> yet in use.

That's easier said than done :) The case of functions is mostly trivial
however it becomes much more difficult once you get into the realm of
dynamic function calling using variables. Additionally the case of
classes and their methods is difficult to begin with. A method may be
referenced for an object anywhere, but knowing that a given variable
holds a particular object is much more difficult. In fact it's
impossible to properly track in PHP since it's a loosely typed language
and any variable can hold any type of object.

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

--- End Message ---
--- Begin Message ---
On Dec 14, 2007 2:49 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:

> On Fri, 2007-12-14 at 14:09 -0500, Nathan Nobbe wrote:
> > On Dec 12, 2007 4:21 AM, Mathijs van Veluw <
> [EMAIL PROTECTED]>
> > wrote:
> >
> > > Hello there,
> > >
> > > We have a large project with lots of classes.
> > > Now i am wondering if there is a way to let something check all those
> > > files and tell me which methods/functions variables/constants etc..
> > > arn't used anymore.
> > >
> > > Or even which files arn't used anymore.
> > >
> > > Is there already something like this?
> >
> >
> > if you want to do it right, youll have to make use of the php tokenizer.
> > http://us.php.net/manual/en/ref.tokenizer.php
> > using this tool you can analyze the source to create a list of things
> like
> > - all classes defined in the code
> > - all functions defined in the code
> > once you have these lists you simply iterate over each member of them.
> > if there are no references to a specific function or class, it *should*
> be
> > safe to assume it is no longer in use, however it could be new code, not
> > yet in use.
>
> That's easier said than done :) The case of functions is mostly trivial
> however it becomes much more difficult once you get into the realm of
> dynamic function calling using variables. Additionally the case of
> classes and their methods is difficult to begin with. A method may be
> referenced for an object anywhere, but knowing that a given variable
> holds a particular object is much more difficult. In fact it's
> impossible to properly track in PHP since it's a loosely typed language
> and any variable can hold any type of object.


i didnt say it would be easy :)
also, note how i used the terminology, 'candidate for removal'.
i scrubbed some code at a former job once, using the last
technique i recommended.  i produced a list of files that were no longer in
use.
we passed it around to a lot of people, many times.  finally we had the list
filtered down to a point everyone could agree on.  we first removed the
files
in a pre-production environment.  all-said-and-done we were able to remove
roughly 50 files from the source base.  that was a big load off our chest.
regarding the tokenizing bit; well for one, it just sounds cool ;)
but really i do think there is merit in that approach, however i cant speak
for
any level of practical successes as ive never actually done it myself.
the real problem, as you say, is the dynamic class instantiation, and
function
invocation.  just for example...
   function sayRed() {
      echo 'red';
   }

   function sayBlue() {
      echo 'blue';
   }

$aColor = 'Blue';

$dynFuncName = 'say' . $aColor;
$dynFuncName();

good luck tracking down sayRed() never gets called for example.
anyway, in my experience, the people whove been at a company for a long time
will generally know where dead code is.  thats why i suggested implementing
a
practice where said dead code is marked for removal in production support
(or
whenever its stumbled upon).  then during the current round of development,
yank the dead code.  if the application doesnt blow-up as a result leave it
out on
the way to production. also, im confident in saying i think you can get some
decent
mileage out of technique of searching for files that may no longer be
included.
unless of course the filenames are built dynamically ;)
in reality there are many practical approaches short of automation.  why not
start
by asking all the devs to build a list of code they think is no longer
used.  coalesce the
list and start to pair it down as a group.  its time consuming, but
honestly, i think its
practical.

-nathan

--- End Message ---
--- Begin Message ---
I've used Richard Lynch's Blog example for forcing the download of an
individual file.

Is there a way to download multiple files in one go, short of zipping them
first into a single file?

Concepts / directional shoves appreciated.

David

--- End Message ---
--- Begin Message ---
On Dec 14, 2007 3:32 PM, David Giragosian <[EMAIL PROTECTED]> wrote:
> I've used Richard Lynch's Blog example for forcing the download of an
> individual file.
>
> Is there a way to download multiple files in one go, short of zipping them
> first into a single file?
>
> Concepts / directional shoves appreciated.

    I wouldn't think so, Dave, because headers for each file need to
be sent at the request for download, and headers cannot be sent after
the header buffer has ended (when the data buffer is being sent).

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

--- End Message ---
--- Begin Message ---

On Dec 14, 2007, at 3:37 PM, Daniel Brown wrote:

On Dec 14, 2007 3:32 PM, David Giragosian <[EMAIL PROTECTED]> wrote:
I've used Richard Lynch's Blog example for forcing the download of an
individual file.

Is there a way to download multiple files in one go, short of zipping them
first into a single file?

Concepts / directional shoves appreciated.

   I wouldn't think so, Dave, because headers for each file need to
be sent at the request for download, and headers cannot be sent after
the header buffer has ended (when the data buffer is being sent).


I may be showing my ignorance of what can be done... But couldn't you write a script in PHP (Or some other language) that would link to a bunch of files and send each one individually to the browser as a separate file? something like:

<PHP

$filesArray(file1, file2, file3);
foreach($filesArray)
$header ="Blah blah balh"
$header .="More blah blah blah"

Or am I way off base as usual? :)


--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
On 12/14/07, Jason Pruim <[EMAIL PROTECTED]> wrote:
>
>
> On Dec 14, 2007, at 3:37 PM, Daniel Brown wrote:
>
> > On Dec 14, 2007 3:32 PM, David Giragosian <[EMAIL PROTECTED]>
> > wrote:
> >> I've used Richard Lynch's Blog example for forcing the download of an
> >> individual file.
> >>
> >> Is there a way to download multiple files in one go, short of
> >> zipping them
> >> first into a single file?
> >>
> >> Concepts / directional shoves appreciated.
> >
> >    I wouldn't think so, Dave, because headers for each file need to
> > be sent at the request for download, and headers cannot be sent after
> > the header buffer has ended (when the data buffer is being sent).
>
>
> I may be showing my ignorance of what can be done... But couldn't you
> write a script in PHP (Or some other language) that would link to a
> bunch of files and send each one individually to the browser as a
> separate file? something like:
>
> <PHP
>
> $filesArray(file1, file2, file3);
> foreach($filesArray)
> $header ="Blah blah balh"
> $header .="More blah blah blah"
>
> Or am I way off base as usual? :)
>
>
> --
>
> Jason Pruim
> Raoset Inc.
> Technology Manager
> MQC Specialist
> 3251 132nd ave
> Holland, MI, 49424
> www.raoset.com
> [EMAIL PROTECTED]


My original thought was as Daniel suggested, but I had a similar cognitive
storm, Jason, and I gave it a try.

I didn't get any headers already sent error messages, but only the last file
in the array was downloaded.

David

--- End Message ---
--- Begin Message ---
On Dec 14, 2007 3:49 PM, David Giragosian <[EMAIL PROTECTED]> wrote:
>
> On 12/14/07, Jason Pruim <[EMAIL PROTECTED]> wrote:
> >
> >
> > On Dec 14, 2007, at 3:37 PM, Daniel Brown wrote:
> >
> > > On Dec 14, 2007 3:32 PM, David Giragosian <[EMAIL PROTECTED]>
> > > wrote:
> > >> I've used Richard Lynch's Blog example for forcing the download of an
> > >> individual file.
> > >>
> > >> Is there a way to download multiple files in one go, short of
> > >> zipping them
> > >> first into a single file?
> > >>
> > >> Concepts / directional shoves appreciated.
> > >
> > >    I wouldn't think so, Dave, because headers for each file need to
> > > be sent at the request for download, and headers cannot be sent after
> > > the header buffer has ended (when the data buffer is being sent).
> >
> >
> > I may be showing my ignorance of what can be done... But couldn't you
> > write a script in PHP (Or some other language) that would link to a
> > bunch of files and send each one individually to the browser as a
> > separate file? something like:
> >
> > <PHP
> >
> > $filesArray(file1, file2, file3);
> > foreach($filesArray)
> > $header ="Blah blah balh"
> > $header .="More blah blah blah"
> >
> > Or am I way off base as usual? :)
> >
> >
> > --
> >
> > Jason Pruim
> > Raoset Inc.
> > Technology Manager
> > MQC Specialist
> > 3251 132nd ave
> > Holland, MI, 49424
> > www.raoset.com
> > [EMAIL PROTECTED]
>
>
> My original thought was as Daniel suggested, but I had a similar cognitive
> storm, Jason, and I gave it a try.
>
> I didn't get any headers already sent error messages, but only the last file
> in the array was downloaded.
>
> David
>

I didn't think such a thing could be possible because the *browser* is
not expecting it. (I was not aware of anything in http that defined a
method for multiple files in the response the same way you can send
multiple parts in a request or in a multipart mail message. I figured
in any case you would get at most one file (if not an error), and that
that file would contain either A) only the contents of the first or
last file pushed to the client or B) the contents of all the files,
munged together in one chunk.

However, your message prompted me to find this on Google. (It's ASP,
but should be easily converted).

http://www.motobit.com/tips/detpg_multiple-files-one-request/

I haven't tried it, so I can't really say if it works, but it's the
only way I could expect it to work.

Andrew

--- End Message ---
--- Begin Message ---
On Dec 14, 2007 3:32 PM, David Giragosian <[EMAIL PROTECTED]> wrote:
> I've used Richard Lynch's Blog example for forcing the download of an
> individual file.
>
> Is there a way to download multiple files in one go, short of zipping them
> first into a single file?
>
> Concepts / directional shoves appreciated.

    You could use AJAX, JavaScript, or AJAX to make multiple requests
to download various files simultaneously.  That would pop up the
different boxes.

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

--- End Message ---
--- Begin Message ---
On Dec 14, 2007 4:24 PM, Daniel Brown <[EMAIL PROTECTED]> wrote:
> On Dec 14, 2007 3:32 PM, David Giragosian <[EMAIL PROTECTED]> wrote:
>
> > I've used Richard Lynch's Blog example for forcing the download of an
> > individual file.
> >
> > Is there a way to download multiple files in one go, short of zipping them
> > first into a single file?
> >
> > Concepts / directional shoves appreciated.
>
>     You could use AJAX, JavaScript, or AJAX to make multiple requests
> to download various files simultaneously.  That would pop up the
> different boxes.

    TFGIF.  That should read ".... AJAX, JavaScript, or IFRAMEs...."

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

--- End Message ---
--- Begin Message ---
On 12/14/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
>
> On Dec 14, 2007 4:24 PM, Daniel Brown <[EMAIL PROTECTED]> wrote:
> > On Dec 14, 2007 3:32 PM, David Giragosian <[EMAIL PROTECTED]> wrote:
> >
> > > I've used Richard Lynch's Blog example for forcing the download of an
> > > individual file.
> > >
> > > Is there a way to download multiple files in one go, short of zipping
> them
> > > first into a single file?
> > >
> > > Concepts / directional shoves appreciated.
> >
> >     You could use AJAX, JavaScript, or AJAX to make multiple requests
> > to download various files simultaneously.  That would pop up the
> > different boxes.
>
>    TFGIF.  That should read ".... AJAX, JavaScript, or IFRAMEs...."
>
> --
> Daniel P. Brown
> [Phone Numbers Go Here!]
> [They're Hidden From View!]
>
> If at first you don't succeed, stick to what you know best so that you
> can make enough money to pay someone else to do it for you.
>


> TFGIF

Indeed, Daniel.  ;-}

Thanks for the link, Andrew. I saw it earlier myself but didn't look too
closely at it because I don't know ASP at all. Does anyone understand how
the files will be sent to the client? Are they going to end up as links on a
web page?

David

--- End Message ---
--- Begin Message ---
On Fri, 2007-12-14 at 16:24 -0500, Daniel Brown wrote:
> On Dec 14, 2007 4:24 PM, Daniel Brown <[EMAIL PROTECTED]> wrote:
> > On Dec 14, 2007 3:32 PM, David Giragosian <[EMAIL PROTECTED]> wrote:
> >
> > > I've used Richard Lynch's Blog example for forcing the download of an
> > > individual file.
> > >
> > > Is there a way to download multiple files in one go, short of zipping them
> > > first into a single file?
> > >
> > > Concepts / directional shoves appreciated.
> >
> >     You could use AJAX, JavaScript, or AJAX to make multiple requests
> > to download various files simultaneously.  That would pop up the
> > different boxes.
> 
>     TFGIF.  That should read ".... AJAX, JavaScript, or IFRAMEs...."

But, but, but I WANNA USE AJAX AGAIN!!!

:)

Have a great weekend everyone.

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

--- End Message ---
--- Begin Message ---
On Dec 14, 2007 4:38 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-12-14 at 16:24 -0500, Daniel Brown wrote:
> > >     You could use AJAX, JavaScript, or AJAX to make multiple requests
> > > to download various files simultaneously.  That would pop up the
> > > different boxes.
> >
> >     TFGIF.  That should read ".... AJAX, JavaScript, or IFRAMEs...."
>
> But, but, but I WANNA USE AJAX AGAIN!!!
>
> :)
>
> Have a great weekend everyone.

    You, too, Rob.  And to all else, make that seconded by me.

    Report back here Monday for another week of droning.

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

--- End Message ---
--- Begin Message ---
Aww, we have to wait all the way to Monday? It's fun to sit back and
watch the conversations on here!

And I call third-ed on that... is that the right word?

--Ben

On Dec 14, 2007 4:40 PM, Daniel Brown <[EMAIL PROTECTED]> wrote:
>
>
>     You, too, Rob.  And to all else, make that seconded by me.
>
>    Report back here Monday for another week of droning.
>
>
> --
> Daniel P. Brown
> [Phone Numbers Go Here!]
> [They're Hidden From View!]
>
> If at first you don't succeed, stick to what you know best so that you
> can make enough money to pay someone else to do it for you.
>
> --
>
>
>
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
Benjamin Darwin

President, Crew 99
(Insert Phone Number Here)
[EMAIL PROTECTED]

"Dream as if you'll live forever, live as if you'll die today." ~James Dean

--- End Message ---
--- Begin Message ---
On 12/14/07, Benjamin Darwin <[EMAIL PROTECTED]> wrote:
>
> Aww, we have to wait all the way to Monday? It's fun to sit back and
> watch the conversations on here!
>
> And I call third-ed on that... is that the right word?
>
> --Ben
>
> On Dec 14, 2007 4:40 PM, Daniel Brown <[EMAIL PROTECTED]> wrote:
> >
> >
> >     You, too, Rob.  And to all else, make that seconded by me.
> >
> >    Report back here Monday for another week of droning.
> >
> >
> > --
> > Daniel P. Brown
> > [Phone Numbers Go Here!]
> > [They're Hidden From View!]
> >
> > If at first you don't succeed, stick to what you know best so that you
> > can make enough money to pay someone else to do it for you.
> >
> > --
> >
> >
> >
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> --
> Benjamin Darwin
>
> President, Crew 99
> (Insert Phone Number Here)
> [EMAIL PROTECTED]
>
> "Dream as if you'll live forever, live as if you'll die today." ~James
> Dean
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Since I'm still at work, I'll pass on the humor ( though "these pretzels are
making me thirsty..." ), but I think creating a page with multple links to
the downloads will work.

Thanks, for the push, guys and gals.

David

--- End Message ---
--- Begin Message ---
On Dec 14, 2007 4:49 PM, David Giragosian <[EMAIL PROTECTED]> wrote:
> On 12/14/07, Benjamin Darwin <[EMAIL PROTECTED]> wrote:
> > And I call third-ed on that... is that the right word?

    It is now.

> Since I'm still at work, I'll pass on the humor ( though "these pretzels are
> making me thirsty..." ), but I think creating a page with multple links to
> the downloads will work.

    I'm still at work, too.... but in about an hour and a half, I'll
be going to a place to quench my thirst.

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

--- End Message ---
--- Begin Message ---
On Fri, 2007-12-14 at 16:58 -0500, Daniel Brown wrote:
> On Dec 14, 2007 4:49 PM, David Giragosian <[EMAIL PROTECTED]> wrote:
> > On 12/14/07, Benjamin Darwin <[EMAIL PROTECTED]> wrote:
> > > And I call third-ed on that... is that the right word?
> 
>     It is now.
> 
> > Since I'm still at work, I'll pass on the humor ( though "these pretzels are
> > making me thirsty..." ), but I think creating a page with multple links to
> > the downloads will work.
> 
>     I'm still at work, too.... but in about an hour and a half, I'll
> be going to a place to quench my thirst.

I'm at work and at home -- My wife just brought me freshly baked
shortbread to munch on while I finish up some code :)

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

--- End Message ---
--- Begin Message ---
On Dec 14, 2007 5:05 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> I'm at work and at home -- My wife just brought me freshly baked
> shortbread to munch on while I finish up some code :)

    I miss those days.  Not the shortbread, since I've never had
freshly-baked shortbread (though I love shortbread as it is).  And not
the wife, because I won't be officially stuck with her until 28 June,
2008.  The days of working in my home, not needing to drive through
eight inches of snow and ice (like yesterday) to get to the office and
home again.

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

--- End Message ---
--- Begin Message ---
On Fri, 2007-12-14 at 17:32 -0500, Daniel Brown wrote:
> On Dec 14, 2007 5:05 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > I'm at work and at home -- My wife just brought me freshly baked
> > shortbread to munch on while I finish up some code :)
> 
>     I miss those days.  Not the shortbread, since I've never had
> freshly-baked shortbread (though I love shortbread as it is).  And not
> the wife, because I won't be officially stuck with her until 28 June,
> 2008.  The days of working in my home, not needing to drive through
> eight inches of snow and ice (like yesterday) to get to the office and
> home again.

*lol* You must live near Canada. We (Ottawa, Ontario anyways) got over a
foot a week ago. Some of the yards around here have the snow piled over
6 feet high from clearing their driveway.

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

--- End Message ---
--- Begin Message ---
On Dec 14, 2007 5:58 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> On Fri, 2007-12-14 at 17:32 -0500, Daniel Brown wrote:
> > On Dec 14, 2007 5:05 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > > I'm at work and at home -- My wife just brought me freshly baked
> > > shortbread to munch on while I finish up some code :)
> >
> >     I miss those days.  Not the shortbread, since I've never had
> > freshly-baked shortbread (though I love shortbread as it is).  And not
> > the wife, because I won't be officially stuck with her until 28 June,
> > 2008.  The days of working in my home, not needing to drive through
> > eight inches of snow and ice (like yesterday) to get to the office and
> > home again.
>
> *lol* You must live near Canada. We (Ottawa, Ontario anyways) got over a
> foot a week ago. Some of the yards around here have the snow piled over
> 6 feet high from clearing their driveway.

    Northeast Pennsylvania.  Close enough.

-- 
Daniel P. Brown
[Phone Numbers Go Here!]
[They're Hidden From View!]

If at first you don't succeed, stick to what you know best so that you
can make enough money to pay someone else to do it for you.

--- End Message ---
--- Begin Message ---

On Dec 14, 2007, at 5:59 PM, Daniel Brown wrote:

On Dec 14, 2007 5:58 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Fri, 2007-12-14 at 17:32 -0500, Daniel Brown wrote:
On Dec 14, 2007 5:05 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
I'm at work and at home -- My wife just brought me freshly baked
shortbread to munch on while I finish up some code :)

  I miss those days.  Not the shortbread, since I've never had
freshly-baked shortbread (though I love shortbread as it is). And not the wife, because I won't be officially stuck with her until 28 June,
2008.  The days of working in my home, not needing to drive through
eight inches of snow and ice (like yesterday) to get to the office and
home again.

*lol* You must live near Canada. We (Ottawa, Ontario anyways) got over a foot a week ago. Some of the yards around here have the snow piled over
6 feet high from clearing their driveway.

  Northeast Pennsylvania.  Close enough.

And yet... Here I am in South Eastern Michigan with out enough snow to even cover the grass...

Jason Pruim

P.S. Yes I am checking this e-mail on my home computer and I'm not still at work.. I'm an addicted geek... What can I say?
--- End Message ---
--- Begin Message ---
On Fri, 2007-12-14 at 21:39 -0500, Jason Pruim wrote:
> On Dec 14, 2007, at 5:59 PM, Daniel Brown wrote:
> 
> > On Dec 14, 2007 5:58 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
> >> On Fri, 2007-12-14 at 17:32 -0500, Daniel Brown wrote:
> >>> On Dec 14, 2007 5:05 PM, Robert Cummings <[EMAIL PROTECTED]>  
> >>> wrote:
> >>>> I'm at work and at home -- My wife just brought me freshly baked
> >>>> shortbread to munch on while I finish up some code :)
> >>>
> >>>   I miss those days.  Not the shortbread, since I've never had
> >>> freshly-baked shortbread (though I love shortbread as it is).  And  
> >>> not
> >>> the wife, because I won't be officially stuck with her until 28  
> >>> June,
> >>> 2008.  The days of working in my home, not needing to drive through
> >>> eight inches of snow and ice (like yesterday) to get to the office  
> >>> and
> >>> home again.
> >>
> >> *lol* You must live near Canada. We (Ottawa, Ontario anyways) got  
> >> over a
> >> foot a week ago. Some of the yards around here have the snow piled  
> >> over
> >> 6 feet high from clearing their driveway.
> >
> >   Northeast Pennsylvania.  Close enough.
> 
> And yet... Here I am in South Eastern Michigan with out enough snow to  
> even cover the grass...
> 
> Jason Pruim
> 
> P.S. Yes I am checking this e-mail on my home computer and I'm not  
> still at work.. I'm an addicted geek... What can I say?

I'm still at work *lol*. Been crazy busy for a few months.

Cheers,
Rob.
-- 
...........................................................
SwarmBuy.com - http://www.swarmbuy.com

    Leveraging the buying power of the masses!
...........................................................

--- End Message ---
--- Begin Message ---

Zlib compression is what's used in Gzip. Just try it ;)

$uncompressed = gzuncompress(file_get_contents("binaryfile.ext"));

-Casey


On Dec 14, 2007, at 9:45 AM, Bob Sabiston wrote:

That isn't going to work. Gzip is used for entire files. Do you understand what I'm trying to do, or am I misunderstanding you?

Bob

Oops -- I'm so sorry! I was wrong thinking that it operated on files. I'd been reading so much about the file format and how gzip meant files and zlib meant the core data. I just assumed gzuncompress would be a file thing.

I should be able to get that to work, thank you.

Bob

--- End Message ---
--- Begin Message ---
Hiya,

We're using PHP/Java Bridge (PJB) with PHP 5.1.6 and Apache 2.0.61 on Windows, and experiencing frequent segfaults of Apache. Inspecting the dump reveals that PHP is crashing somewhere, something to do with a null pointer exception when reporting an error - seemingly not in the php/java module but elsewhere (although I'm no expert).

I've tried using the same combination but with the latest Apache (2.2.6), but the segfault still happens.

It seems to happen most (and reproducibly) when getting requests through a flex client, when an open connection already exists from a flex client on the same machine (i.e. one browser window runs the flex client, and opens a popup window also with the flex client running).

Firstly, has anyone experienced this?

So, I'm trying to update to the latest version of PHP (5.2.5), but coming up against some problems when attempting to build PHP, which I'm doing in order to build a PJB module to work with it. I've tried to build PHP using Cygwin, cross-compiling against mingw32, but that failed with a number of build errors, presumably related to incompatible libs and includes.

Instead I tried using MS's Visual Studio C++, as in the documentation in the PHP build directory. Firstly I couldn't get the configure script to find the win32build folder, so I added it to PATH and tried again. Then, the configure script ran successfully, but nmake fails with:

    "" -h win32\ -r Release_TS\ -x Release_TS\ win32\build\wsyslog.mc
'-h' is not recognized as an internal or external command, operable program or batch file.
NMAKE : fatal error U1077: '"' : return code '0x1'
Stop.

It would appear that PHP's configure script isn't writing the make rules properly, and is setting an empty string instead of the name of some build tool.

Can anyone help with this? Is there a way of building the PJB module for this version of PHP in win32 that doesn't require a build of PHP itself?

We must have it sorted by next Wednesday (the 19th), and we're willing to pay a reasonable rate for assistance.

Cheers,

Mike
--
Michael Tyson | Developer | smartpath.com.au

m: (+61) 0407 754 124
e: [EMAIL PROTECTED]
aim: mikerusselltyson


--- End Message ---
--- Begin Message ---
I've just got this message... I also see no updates here
http://news.php.net/php.general/ since Friday. Any clues on what's going
on??

Rob

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Saturday, December 15, 2007 11:55 AM
To: [EMAIL PROTECTED]
Subject: ezmlm warning

Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.

I'm working for my owner, who can be reached
at [EMAIL PROTECTED]


Messages to you from the php-general mailing list seem to
have been bouncing. I've attached a copy of the first bounce
message I received.

If this message bounces too, I will send you a probe. If the probe bounces,
I will remove your address from the php-general mailing list,
without further notice.


I've kept a list of which messages from the php-general mailing list have 
bounced from your address.

Copies of these messages may be in the archive.
To retrieve a set of messages 123-145 (a maximum of 100 per request),
send an empty message to:
   <[EMAIL PROTECTED]>

To receive a subject and author list for the last 100 or so messages,
send an empty message to:
   <[EMAIL PROTECTED]>

Here are the message numbers:

   265427
   265424
   265428
   265425
   265429
   265426
   265421
   265430
   265431
   265432
   265422
   265420
   265423
   265433
   265436
   265443
   265442
   265440
   265441
   265444
   265447
   265445
   265446
   265438
   265435
   265437
   265439
   265434
   265448
   265449

--- Enclosed is a copy of the bounce message I received.

Return-Path: <>
Received: (qmail 51006 invoked by uid 1010); 3 Dec 2007 20:22:32 -0000
Delivered-To:
[EMAIL PROTECTED]
Delivered-To:
[EMAIL PROTECTED]
Received: (qmail 50986 invoked from network); 3 Dec 2007 20:22:32 -0000
Received: from unknown (HELO lists.php.net) (127.0.0.1)
  by localhost with SMTP; 3 Dec 2007 20:22:32 -0000
Return-Path: <>
Received: from [127.0.0.1] ([local])
        by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with INTERNAL
        id 34/55-25012-88564574 for <>; Mon, 03 Dec 2007 15:22:32 -0500
From: Mail Delivery System <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Mail Delivery Failure
Message-Id: <E2/[EMAIL PROTECTED]>
Date: Mon, 03 Dec 2007 15:22:32 -0500

This message was created automatically by the mail system (ecelerity).

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

>>> [EMAIL PROTECTED] (after RCPT TO): 550 "Unknown User"

------ This is a copy of the headers of the original message. ------

Return-Path:
<[EMAIL PROTECTED]>
X-Host-Fingerprint: 216.92.131.4 lists.php.net  
Received: from [216.92.131.4] ([216.92.131.4:8304] helo=lists.php.net)
        by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP
        id E2/55-25012-78564574 for <[EMAIL PROTECTED]>; Mon, 03 Dec
2007 15:22:31 -0500
Received: (qmail 50743 invoked by uid 1010); 3 Dec 2007 20:22:22 -0000
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
list-help: <mailto:[EMAIL PROTECTED]>
list-unsubscribe: <mailto:[EMAIL PROTECTED]>
list-post: <mailto:[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 50734 invoked by uid 1010); 3 Dec 2007 20:22:22 -0000
Delivered-To: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]
Authentication-Results: pb1.pair.com [EMAIL PROTECTED];
sender-id=unknown
Authentication-Results: pb1.pair.com [EMAIL PROTECTED];
spf=permerror; sender-id=unknown
Received-SPF: error (pb1.pair.com: domain pocket.com from 64.129.48.252
cause and error)
X-PHP-List-Original-Sender: [EMAIL PROTECTED]
X-Host-Fingerprint: 64.129.48.252 mail.pocket.com Windows 2000 SP4, XP SP1
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
        charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Mon, 3 Dec 2007 14:22:16 -0600
Message-ID: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [PHP] Banned from #php
Thread-Index: Acg16F9UQeyFwd5sQO6iyRiMqco8PQAAb81g
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Brenden Wilson" <[EMAIL PROTECTED]>,
        <[EMAIL PROTECTED]>
Subject: RE: [PHP] Banned from #php

--- End Message ---

Reply via email to