php-general Digest 1 Oct 2008 10:22:19 -0000 Issue 5712

Topics (messages 281245 through 281267):

Re: Robert Cummings
        281245 by: tedd
        281246 by: tedd
        281250 by: Robert Cummings
        281251 by: Robert Cummings
        281253 by: Robert Cummings
        281254 by: Robert Cummings
        281256 by: Daniel Brown
        281259 by: Chris
        281260 by: Ray Hauge
        281261 by: paragasu
        281263 by: Nathan Rixham
        281266 by: Thodoris

Re: Sepating MySQL result set into html tables
        281247 by: tedd

Re: Wanted PHP Developers LogicManse
        281248 by: tedd
        281249 by: Jochem Maas
        281252 by: Daniel Brown
        281257 by: Jim Lucas
        281258 by: Daniel Brown

Re: Me
        281255 by: Robert Cummings

Web be not Print
        281262 by: tedd

Re: Making $_POST and $_FILES play together nicely
        281264 by: Ross McKay

Re: Sterilizing regexp
        281265 by: Per Jessen

Re: PHP + Cron jobs
        281267 by: Waynn Lue

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 ---
At 2:12 PM -0400 9/30/08, Daniel Brown wrote:
    All:

    What was pointed as a passing mention in one thread I thought was
worth note in a thread of its own.  As quoted by Rob:

 BTW, while we're off topic... my wife delivered our third child (second
 > boy) 3 minutes after midnight yesterday :)


Hey, things like that happen when Rob wanders from his blow-up doll.  :-)

Congratulations Rob and family.

Imagine, another Rob-ett

Cheers,

tedd


--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
At 11:14 PM +0200 9/30/08, Jochem Maas wrote:
I figure I'd pass on a rubber doll joke, that would just be disrespectful
to Rob's wife ... and she has to put up with him alot more than we do ;-)


Oopps, I just sent mine.

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
On Tue, 2008-09-30 at 14:12 -0400, Daniel Brown wrote:
> All:
> 
>     What was pointed as a passing mention in one thread I thought was
> worth note in a thread of its own.  As quoted by Rob:
> 
> > BTW, while we're off topic... my wife delivered our third child (second
> > boy) 3 minutes after midnight yesterday :)
> 
>     I'd say that deserves a round of congratulations.  Many - most,
> probably - of you know Rob from here, and have seen his help and
> dedication - as well as his annoying wit ;-P - offered to any and all
> on this list.  Quite often, it's offered when you don't especially
> want it.  Nonetheless, it's great news, and I think we should all take
> a moment and wonder: why the hell aren't you at the hospital with your
> wife and newborn son, Rob?  ;-P
> 
>     Congrats to the Cummings family!

Thanks for the congrats. No need to visit the hospital, this time round
my wife was able to get a midwife and so the baby was delivered in the
comfort of our home :)

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
On Tue, 2008-09-30 at 14:17 -0400, Wolf wrote:
> ---- Daniel Brown <[EMAIL PROTECTED]> wrote: 
> >     All:
> > 
> >     What was pointed as a passing mention in one thread I thought was
> > worth note in a thread of its own.  As quoted by Rob:
> > 
> > > BTW, while we're off topic... my wife delivered our third child (second
> > > boy) 3 minutes after midnight yesterday :)
> > 
> >     I'd say that deserves a round of congratulations.  Many - most,
> > probably - of you know Rob from here, and have seen his help and
> > dedication - as well as his annoying wit ;-P - offered to any and all
> > on this list.  Quite often, it's offered when you don't especially
> > want it.  Nonetheless, it's great news, and I think we should all take
> > a moment and wonder: why the hell aren't you at the hospital with your
> > wife and newborn son, Rob?  ;-P
> > 
> >     Congrats to the Cummings family!
> 
> He's just on Wi-Fi there while she's sleeping!  And playing with the kids.  :)

I wish, I'm on dish, laundry, and cooking duty while she pages me from
the bedroom via the cellphone :/

The sacrifices one makes to have a family... all worth it :D

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
On Tue, 2008-09-30 at 15:41 -0300, Thiago H. Pojda wrote:
> >
> > On Tue, Sep 30, 2008 at 3:12 PM, Daniel Brown <[EMAIL PROTECTED]> wrote:
> >
> >>    All:
> >>
> >>    What was pointed as a passing mention in one thread I thought was
> >> worth note in a thread of its own.  As quoted by Rob:
> >>
> >> > BTW, while we're off topic... my wife delivered our third child (second
> >> > boy) 3 minutes after midnight yesterday :)
> >>
> >>    I'd say that deserves a round of congratulations.  Many - most,
> >> probably - of you know Rob from here, and have seen his help and
> >> dedication - as well as his annoying wit ;-P - offered to any and all
> >> on this list.  Quite often, it's offered when you don't especially
> >> want it.  Nonetheless, it's great news, and I think we should all take
> >> a moment and wonder: why the hell aren't you at the hospital with your
> >> wife and newborn son, Rob?  ;-P
> >>
> >>    Congrats to the Cummings family!
> >
> >
> That's great news - perhaps now he won't have much time for emails ;)

You may have noticed they've been in shorter supply than usual of late.
I'm hoping to make a big comeback in the coming decades.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
On Tue, 2008-09-30 at 14:53 -0400, Jason Pruim wrote:
> On Sep 30, 2008, at 2:41 PM, Thiago H. Pojda wrote:
> 
> >>
> >> On Tue, Sep 30, 2008 at 3:12 PM, Daniel Brown <[EMAIL PROTECTED]>  
> >> wrote:
> >>
> >>>   All:
> >>>
> >>>   What was pointed as a passing mention in one thread I thought was
> >>> worth note in a thread of its own.  As quoted by Rob:
> >>>
> >>>> BTW, while we're off topic... my wife delivered our third child  
> >>>> (second
> >>>> boy) 3 minutes after midnight yesterday :)
> >>>
> >>>   I'd say that deserves a round of congratulations.  Many - most,
> >>> probably - of you know Rob from here, and have seen his help and
> >>> dedication - as well as his annoying wit ;-P - offered to any and  
> >>> all
> >>> on this list.  Quite often, it's offered when you don't especially
> >>> want it.  Nonetheless, it's great news, and I think we should all  
> >>> take
> >>> a moment and wonder: why the hell aren't you at the hospital with  
> >>> your
> >>> wife and newborn son, Rob?  ;-P
> >>>
> >>>   Congrats to the Cummings family!
> >>
> >>
> > That's great news - perhaps now he won't have much time for emails ;)
> >
> > Congratulations!!
> 
> He's going to lease time on the AI Bots that various people are  
> writing! ;)
> 
> Congrats Rob! And good luck with all those little cummings running  
> around! (I'm sure there is a pun there but I'm tired and hungry :P)

Our last names are both ripe for punning... hers is Dewar :B

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
On Tue, Sep 30, 2008 at 5:43 PM, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> Thanks for the congrats. No need to visit the hospital, this time round
> my wife was able to get a midwife and so the baby was delivered in the
> comfort of our home :)

    And I'm sure you looked just lovely in that flowery dress while
you performed those duties, Rob.  ;-P

    The first baby I ever delivered was in the back of a car being
test-driven at the time by the parents.  (Using one of Tedd's favorite
phrases, for those of you who don't already know, I was a medic "in my
previous life.")

    Again, Rob, congrats.  Now quit using the child as an excuse and
get some work done.

-- 
</Daniel P. Brown>
More full-root dedicated server packages:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.

--- End Message ---
--- Begin Message ---
Daniel Brown wrote:
    All:

    What was pointed as a passing mention in one thread I thought was
worth note in a thread of its own.  As quoted by Rob:

BTW, while we're off topic... my wife delivered our third child (second
boy) 3 minutes after midnight yesterday :)

    I'd say that deserves a round of congratulations.  Many - most,
probably - of you know Rob from here, and have seen his help and
dedication - as well as his annoying wit ;-P - offered to any and all
on this list.  Quite often, it's offered when you don't especially
want it.  Nonetheless, it's great news, and I think we should all take
a moment and wonder: why the hell aren't you at the hospital with your
wife and newborn son, Rob?  ;-P

    Congrats to the Cummings family!

Congrats to the clan :) Ahh those sleepless nights ;)

--
Postgresql & php tutorials
http://www.designmagick.com/


--- End Message ---
--- Begin Message ---
Daniel Brown wrote:
    All:

    What was pointed as a passing mention in one thread I thought was
worth note in a thread of its own.  As quoted by Rob:

BTW, while we're off topic... my wife delivered our third child (second
boy) 3 minutes after midnight yesterday :)

    I'd say that deserves a round of congratulations.  Many - most,
probably - of you know Rob from here, and have seen his help and
dedication - as well as his annoying wit ;-P - offered to any and all
on this list.  Quite often, it's offered when you don't especially
want it.  Nonetheless, it's great news, and I think we should all take
a moment and wonder: why the hell aren't you at the hospital with your
wife and newborn son, Rob?  ;-P

    Congrats to the Cummings family!


Oh wow, congrats Rob! We just had our second (and last after my surgery) 5 months ago.

Enjoy the lack of sleep :)

--
Ray Hauge
www.primateapplications.com

--- End Message ---
--- Begin Message ---
i don't wan't to go off without saying congrats to Rob too!
congrats Rob.. i am quite amazed that PHP mailing list is the first
thing in your mind
after receiving that news.

I wonder what is your son name?
btw, Zend is a good name ;)

On 10/1/08, Ray Hauge <[EMAIL PROTECTED]> wrote:
> Daniel Brown wrote:
>>     All:
>>
>>     What was pointed as a passing mention in one thread I thought was
>> worth note in a thread of its own.  As quoted by Rob:
>>
>>> BTW, while we're off topic... my wife delivered our third child (second
>>> boy) 3 minutes after midnight yesterday :)
>>
>>     I'd say that deserves a round of congratulations.  Many - most,
>> probably - of you know Rob from here, and have seen his help and
>> dedication - as well as his annoying wit ;-P - offered to any and all
>> on this list.  Quite often, it's offered when you don't especially
>> want it.  Nonetheless, it's great news, and I think we should all take
>> a moment and wonder: why the hell aren't you at the hospital with your
>> wife and newborn son, Rob?  ;-P
>>
>>     Congrats to the Cummings family!
>>
>
> Oh wow, congrats Rob!  We just had our second (and last after my
> surgery) 5 months ago.
>
> Enjoy the lack of sleep :)
>
> --
> Ray Hauge
> www.primateapplications.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
On Tue, 2008-09-30 at 14:17 -0400, Wolf wrote:
---- Daniel Brown <[EMAIL PROTECTED]> wrote:
    All:

    What was pointed as a passing mention in one thread I thought was
worth note in a thread of its own.  As quoted by Rob:

BTW, while we're off topic... my wife delivered our third child (second
boy) 3 minutes after midnight yesterday :)

    Congrats to the Cummings family!
He's just on Wi-Fi there while she's sleeping!  And playing with the kids.  :)

I wish, I'm on dish, laundry, and cooking duty while she pages me from
the bedroom via the cellphone :/

The sacrifices one makes to have a family... all worth it :D

Cheers,
Rob.

congrats indeed mr rob! must be the time of year, my friend rob just had a wee boy and so did my v best friend.

*you're gonna be so busy* (as pruim so tastefully said "with all the little cummings running around")

1 more an you've caught me up; all the best and again congrats on doing the laundry, dishes, cooking, playing with the kids and being paged and having a wee one last night AND still finding the time to post here!

nath

--- End Message ---
--- Begin Message ---
O/H Robert Cummings ??????:
On Tue, 2008-09-30 at 14:17 -0400, Wolf wrote:
---- Daniel Brown <[EMAIL PROTECTED]> wrote:
    All:

    What was pointed as a passing mention in one thread I thought was
worth note in a thread of its own.  As quoted by Rob:

BTW, while we're off topic... my wife delivered our third child (second
boy) 3 minutes after midnight yesterday :)
    I'd say that deserves a round of congratulations.  Many - most,
probably - of you know Rob from here, and have seen his help and
dedication - as well as his annoying wit ;-P - offered to any and all
on this list.  Quite often, it's offered when you don't especially
want it.  Nonetheless, it's great news, and I think we should all take
a moment and wonder: why the hell aren't you at the hospital with your
wife and newborn son, Rob?  ;-P

    Congrats to the Cummings family!
He's just on Wi-Fi there while she's sleeping!  And playing with the kids.  :)

I wish, I'm on dish, laundry, and cooking duty while she pages me from
the bedroom via the cellphone :/

The sacrifices one makes to have a family... all worth it :D

Cheers,
Rob.

:-)
Congratulations Rob !! The Cummings clan grows.

--- End Message ---
--- Begin Message ---
At 8:46 PM +0300 9/30/08, Thodoris wrote:
At 8:32 PM +0300 9/26/08, Thodoris wrote:

Yes it will but I will make this better along with other things as long as I find the needed algorithm.

--
Thodoris

http://webbytedd.com/bbb/paging/

The code is there.

Cheers,

tedd


Thanks Tedd this does the paging but it wasn't what I asked on the first place. Check on the rest postings on the thread...

--
Thodoris

Thodoris:

I thought that you were asking for not only paging, but how to get data from a mysql dB in steps for presentation -- is that not correct?

If so, then look at the code.

Cheers,

tedd


--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
At 1:44 PM -0400 9/30/08, Daniel Brown wrote:
On Tue, Sep 30, 2008 at 1:34 PM, tedd <[EMAIL PROTECTED]> wrote:
 At 9:51 AM -0700 9/30/08, VamVan wrote:

 Job Description is awesome though. My first instinct was to jump in to it
 right away. But there are some red flags as their website looks too
 immature. Hard to believe !!!

 That's my instinct as well.

 If a company is advertising for web programmers and doesn't have it's own
 web site in order, then I suspect there is a disconnect between management
 and their technical staff (if they have any). If they won't listen to their
 own people, or they don't know any better, then I don't want to work for
 them.

    That's not always the case though.  It's not in my case, for
example.  My company's website isn't up and running, but I'm able to
keep my staff busy and paid every day.

    Then again, I don't publicly-advertise job openings.... yet.  So
it doesn't apply to my situation exactly.... but just something worth
noting.


I might have been a bit flippant in my remark -- but I have had too many clients who think the web is print and that's a big mistake. If they don't realize that the net is a different critter, then everyone loses.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
Robert Cummings schreef:
> On Tue, 2008-09-30 at 13:34 -0400, tedd wrote:
>> At 9:51 AM -0700 9/30/08, VamVan wrote:
>>> Job Description is awesome though. My first instinct was to jump in to it
>>> right away. But there are some red flags as their website looks too
>>> immature. Hard to believe !!!
>> That's my instinct as well.
>>
>> If a company is advertising for web programmers and doesn't have it's 
>> own web site in order, then I suspect there is a disconnect between 
>> management and their technical staff (if they have any). If they 
>> won't listen to their own people, or they don't know any better, then 
>> I don't want to work for them.
>>
>>  From my experience, you can save yourself a lot of headache by 
>> choosing clients that aren't ignorant.
> 
> I'm not really getting into this discussion... but thought there's a bit
> of a chicken/egg issue at play. It may be the first thing they want a
> new hire to do is fix their own web page. If that were true then
> understandably their site would be in need of work until such time as
> they secure a developer.
> 
> BTW, while we're off topic... my wife delivered our third child (second
> boy) 3 minutes after midnight yesterday :)
> 
> Cheers,
> Rob.
> 
> Ps. Yes! this does imply that I don't just use Jochem's blow
>     up doll ;)

a, it only implies it
b, it was never my doll, I've never even been offered a go.

:-P

--- End Message ---
--- Begin Message ---
On Tue, Sep 30, 2008 at 5:30 PM, tedd <[EMAIL PROTECTED]> wrote:
>
> I might have been a bit flippant in my remark -- but I have had too many
> clients who think the web is print and that's a big mistake. If they don't
> realize that the net is a different critter, then everyone loses.

<?php

echo <<<THREADHIJACK

    I didn't think it was flippant by any means.  In fact, under
normal circumstances it's very true, but I was making the case for my
own situation.  Parasane doesn't have a website up right now because I
have neither the need nor time to rush getting it relaunched.  Word of
mouth and reputation, thanks to scores of awesome clients, keeps
myself and my employees very busy.  The web presence actually brought
in *too much* business for what I could handle at the time.  Now that
I have the staff, we're working on putting together a new site and
system, but it's just not a priority.

    In any case, if it's a matter of confusing web and print, you're
by all means correct.  Even if both are being focused on the point of
design, there are more differences than similarities.

THREADHIJACK;

?>


-- 
</Daniel P. Brown>
More full-root dedicated server packages:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.

--- End Message ---
--- Begin Message ---
Daniel Brown wrote:
> On Tue, Sep 30, 2008 at 5:30 PM, tedd <[EMAIL PROTECTED]> wrote:
>> I might have been a bit flippant in my remark -- but I have had too many
>> clients who think the web is print and that's a big mistake. If they don't
>> realize that the net is a different critter, then everyone loses.
> 
> <?php
> 
> echo <<<THREADHIJACK
> 
>     I didn't think it was flippant by any means.  In fact, under
> normal circumstances it's very true, but I was making the case for my
> own situation.  Parasane doesn't have a website up right now because I
> have neither the need nor time to rush getting it relaunched.  Word of
> mouth and reputation, thanks to scores of awesome clients, keeps
> myself and my employees very busy.  The web presence actually brought
> in *too much* business for what I could handle at the time.  Now that
> I have the staff, we're working on putting together a new site and
> system, but it's just not a priority.
> 
>     In any case, if it's a matter of confusing web and print, you're
> by all means correct.  Even if both are being focused on the point of
> design, there are more differences than similarities.
> 
> THREADHIJACK;
> 
> ?>
> 
> 

Hey, quit trying to bring up your source total for the week.

BTW- What happened to your weekly report emails?

-- 
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare


--- End Message ---
--- Begin Message ---
On Tue, Sep 30, 2008 at 6:31 PM, Jim Lucas <[EMAIL PROTECTED]> wrote:
>
> Hey, quit trying to bring up your source total for the week.
>
> BTW- What happened to your weekly report emails?

    I took that system down several months ago to redo it and got
sidetracked with the Real Job[tm].  I plan on bringing it back in the
very near future with some better tracking and features, including
fixing issues that a bunch of people from here helped to fix.

-- 
</Daniel P. Brown>
More full-root dedicated server packages:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Intel 2.4GHz/320/GB/1GB/3TB $74.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.

--- End Message ---
--- Begin Message ---
Thank you everyone for the congratulations and well wishes.

And now... I've got a kitchen floor to attack. EN GARDE!!!

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
At 5:45 PM -0400 9/30/08, Daniel Brown wrote:
    In any case, if it's a matter of confusing web and print, you're
by all means correct.  Even if both are being focused on the point of
design, there are more differences than similarities.

Right'O -- O' wise one recently laden with wife.

In regard to "web v print" here's an article I recently wrote that I shall be posting to my site after review:

http://sperling.com/article.php

If anyone see's any glaring mistakes or takes issue with what I say, please pick your weapon.

I believe that it was Oscar Wilde who had a great comeback when someone challenged him to a dual. He said "Considering that you made the challenge, I have the choice of weapon -- and I chose grammar."

Cheers,

tedd
--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
On Tue, 30 Sep 2008 11:11:33 -0500, Mike Potter wrote:

>I have a PHP5 .class file that validates form inputs and sends
>notification emails from contact pages. Recently a client wanted to
>add a file upload function. No sweat, I thought.
>
>Well, I can't get the $_FILES portion to validate properly in my
>.class file, since it apparently only registers the $_POST vars. This
>is the section of code, *currently functional as-is* that I need to
>modify so that $_FILES is also processed:
>[...]

Not wanting to comment on your formfield validation, here's what I do
with file upload validation:

if (!isset($_FILES[$inputName])) {
    // handle form error (e.g. forgot form encoding type!)
}
else
switch ($_FILES[$inputName]['error']) {
    case UPLOAD_ERR_OK:
        // process as per nicely uploaded file
        break;

    case UPLOAD_ERR_NO_FILE:
        // file wasn't attached; if mandatory, complain!
        break;

    case UPLOAD_ERR_INI_SIZE:
    case UPLOAD_ERR_FORM_SIZE:
        $errmsg .= "# error uploading file: file too big.<br/>\n";
        break;

    default:
        $errmsg .= "# error uploading file: "
            . $_FILES[$inputName]['error'] . ".<br/>\n";
        break;
}
-- 
Ross McKay, Toronto, NSW Australia
"Let the laddie play wi the knife - he'll learn"
- The Wee Book of Calvin

--- End Message ---
--- Begin Message ---
Frank Stanovcak wrote:

> I've got to pass about 9 or 10 calls to it, some of which will be
> arrays, and I have to do it from several different places.  Felt this
> was a bit more elegant than hard coding the pregmatches unless there
> is an  easier way.

Code elegance is usually in the eye of the beholder, but personally I
would have stuck to a set of hardcoded preg_matches(). 


/Per Jessen, Zürich


--- End Message ---
--- Begin Message ---
On Mon, Sep 29, 2008 at 9:34 AM, Richard Lynch <[EMAIL PROTECTED]> wrote:

>  If you are running PHP as CGI, replacing the CGI with CLI could be
> problematic down the road...
>
> Right, and I am, so I stayed away from that solution.  My next attempt was
to specify /usr/local/bin/php in the cron job, but that led to a problem
because of the include paths.  Now that I specific the full path, evidently
the include path no longer is relative to the directory that's being
executed from, and so it fails to execute.  One solution is to also include
the executing directory in the php script itself, I assume, but is there any
better solution than that?

If not, I went ahead with Richard's suggestion to use -q.  Assuming a Google
search is correct (since man php and php -help don't mention -q), that just
suppresses the HTML headers from being sent?

Thanks again,
Waynn

--- End Message ---

Reply via email to