Re: [PHP] Couple of beginner questions

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 16:51 -0500, tedd wrote: > At 4:17 PM -0500 1/12/09, Robert Cummings wrote: > >On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: > >> > >> True, css does not allow numeric classes (like sessions). But, I > >> never need them any

Re: [PHP] Couple of beginner questions

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 16:54 -0500, tedd wrote: > At 9:37 PM + 1/12/09, Ashley Sheridan wrote: > >On Mon, 2009-01-12 at 16:17 -0500, Robert Cummings wrote: > >> On Mon, 2009-01-12 at 16:02 -0500, tedd wrote: > >> > > >> > True, css does not all

Re: [PHP] switch vs elseif

2009-01-12 Thread Robert Cummings
On Mon, 2009-01-12 at 17:09 -0500, tedd wrote: > At 4:57 PM -0500 1/12/09, Robert Cummings wrote: > >No, that's DIFFERENT from what I wrote. Go back and re-read. > > > >:) > > I did and reread again -- it looks different. I'm simply talking > about the

Re: [PHP] switch vs elseif

2009-01-13 Thread Robert Cummings
On Tue, 2009-01-13 at 15:50 +0100, Jochem Maas wrote: > Ashley Sheridan schreef: > > On Mon, 2009-01-12 at 15:15 -0500, Frank Stanovcak wrote: > >> I've googled, and found some confusing answers. > >> I've tried searching the history of the news group, and only found info on > >> switch or elseif

Re: [PHP] Re: RewriteRules

2009-01-13 Thread Robert Cummings
On Tue, 2009-01-13 at 13:14 -0500, Jason Pruim wrote: > On Jan 13, 2009, at 9:46 AM, Ashley Sheridan wrote: > > > On Tue, 2009-01-13 at 09:33 -0500, tedd wrote: > >> At 2:33 PM + 1/13/09, Ashley Sheridan wrote: > >>> On Tue, 2009-01-13 at 09:20 -0500, tedd wrote: > Jason: > >

Re: [PHP] Re: RewriteRules

2009-01-13 Thread Robert Cummings
On Tue, 2009-01-13 at 13:28 -0500, Jason Pruim wrote: > > > > > > Wow, that's really low level... I haven't written a tag in > > years. > > So then the question is begged... How do you write your forms? :) If > there's a better way to do it I'm all ears! Other then using CSS... My > HTML knowledg

Re: [PHP] Suggestions?

2009-01-13 Thread Robert Cummings
On Tue, 2009-01-13 at 19:14 +, c...@l-i-e.com wrote: > Hard to say without knowing the data structures... > > You can't do a simple count of the holidays and add that, because you might > end up with yet another holiday in the result. > > Start at 12/23 and want to add 6 business days. > >

Re: [PHP] Query string question

2009-01-13 Thread Robert Cummings
On Tue, 2009-01-13 at 17:21 -0200, Jônatas Zechim wrote: > I have something like this on my site: > > mysite.com/índex.php?msg=Transa%25E7%25E3o+n%25E3o+autorizada > > i need to convert " Transa%25E7%25E3o+n%25E3o+autorizada" to "Transação não > autorizada". > > The letters ç ã, and others (é,

Re: [PHP] switch vs elseif

2009-01-13 Thread Robert Cummings
On Tue, 2009-01-13 at 22:12 +0100, Jochem Maas wrote: > Robert Cummings schreef: > > On Tue, 2009-01-13 at 15:50 +0100, Jochem Maas wrote: > >> Ashley Sheridan schreef: > >>> On Mon, 2009-01-12 at 15:15 -0500, Frank Stanovcak wrote: > >>>> I

Re: [PHP] Holy crap

2009-01-13 Thread Robert Cummings
On Tue, 2009-01-13 at 20:49 -0500, Daniel Brown wrote: > On Tue, Jan 13, 2009 at 20:34, Kyle Terry wrote: > > > > www.idonttrustmicrosoftwithmywebsite.com/ps/i/hate/them/ > > Couldn't reach the site. Try restarting IIS. I think it's a beta^H^H^H^Hweb 2.0 site. Cheers, Rob. -- http://www.i

Re: [PHP] PHP, Smarty, and Text

2009-01-13 Thread Robert Cummings
On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote: > > Phpster wrote: > > What about stripping out all the 'nuances' and just reducing it to > > just the text where you then control the display and using your > > templates and css? > > > > Bastien > > > > Sent from my iPod > > > > On Jan 13,

Re: [PHP] Quotes in querys

2009-01-14 Thread Robert Stankiewicz
I am trying to get the following to work: "Select Netid from Users where Netid = '$_SESSION[phpCAS][user]'" Netid is a string type. No matter where of if I put the quotes, I still get array[phpCAS] not the value. Maybe try this : $q = 'Select Netid from Users where Netid = "' . $_SESSION[p

Re: [PHP] PHP, Smarty, and Text

2009-01-14 Thread Robert Cummings
On Wed, 2009-01-14 at 09:08 -1000, Daniel Kolbo wrote: > Robert Cummings wrote: > > On Tue, 2009-01-13 at 18:18 -1000, Daniel Kolbo wrote: > > > >> Phpster wrote: > >> > >>> What about stripping out all the 'nuances' and just reducin

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Robert Cummings
On Wed, 2009-01-14 at 13:39 -0800, Daevid Vincent wrote: > Not to start a Holy War (as these "to framework" or "not to framework" > debates often turn into), but I personally had a horrible experience > with using frameworks. I was forced to use Symfony at my last job and > it was so cumbersome and

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Robert Cummings
On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrote: > On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent wrote: > > http://daevid.com > > "It appears your browser does not support some of the advanced > features this site requires." > > That is pretty enteprisey! ;D I got the same message... 200

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-14 Thread Robert Cummings
On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wrote: > On Wed, 2009-01-14 at 16:50 -0500, Eric Butera wrote: > > On Wed, Jan 14, 2009 at 4:39 PM, Daevid Vincent wrote: > > > http://daevid.com > > > > "It appears your browser does not support some of

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-15 Thread Robert Cummings
On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote: > On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera wrote: > > > On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings > > wrote: > > > On Wed, 2009-01-14 at 17:01 -0500, Robert Cummings wrote: > > >> On Wed,

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-15 Thread Robert Cummings
On Wed, 2009-01-14 at 15:47 -0800, Daevid Vincent wrote: > On Wed, 2009-01-14 at 14:28 -0800, Kyle Terry wrote: > > > On Wed, Jan 14, 2009 at 2:18 PM, Eric Butera wrote: > > > > > On Wed, Jan 14, 2009 at 5:03 PM, Robert Cummings > > > wrote: > > >

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-15 Thread Robert Cummings
On Wed, 2009-01-14 at 21:17 -0500, Paul M Foster wrote: > On Wed, Jan 14, 2009 at 01:39:02PM -0800, Daevid Vincent wrote: > > >Not to start a Holy War (as these "to framework" or "not to framework" > >debates often turn into), but I personally had a horrible experience with > >using fr

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-15 Thread Robert Cummings
On Wed, 2009-01-14 at 21:17 -0500, Paul M Foster wrote: > > Incidentally, I would differ from the reviewer in the link above only in > this respect: He maintains that every line of code adds time. While this > is true, I believe it's the number of files which have to be opened > which drags down fr

Re: [PHP] Zend (or other) Framework...where to start?

2009-01-15 Thread Robert Cummings
On Thu, 2009-01-15 at 09:57 +0300, Usamah M. Ali wrote: > On Thu, Jan 15, 2009 at 1:59 AM, Paul M Foster > wrote: > > > If you're going to go with a prebuilt framework, I'd recommend > > CodeIgniter for your first time out. If the docs look good to you (and > > they are pretty good), you'll prob

Re: [PHP] Zend (or other) Framework...where to start?

2009-01-15 Thread Robert Cummings
On Thu, 2009-01-15 at 09:03 -0200, Edgar da Silva (Fly2k) wrote: > The question is interesting. > > I do another question: Will PHP5 support PHP4 backward compatibility > forever? Ok I'm rediculous, forever not, but, until 5.3 or 6? I think once PHP6 comes out we'll find that some PHP4 idiosyncra

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-15 Thread Robert Cummings
On Thu, 2009-01-15 at 17:34 +0200, Sancar Saran wrote: > On Wednesday 14 January 2009 23:39:02 Daevid Vincent wrote: > > Not to start a Holy War (as these "to framework" or "not to framework" > > debates often turn into), but I personally had a horrible experience > > with using frameworks. I was f

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-15 Thread Robert Cummings
On Thu, 2009-01-15 at 19:37 +0200, Sancar Saran wrote: > On Thursday 15 January 2009 17:45:35 Robert Cummings wrote: > > > > > > > Hell, yes, signed to from start to end. > > > > > > After RoR, PHP guys (including Zend) goes nuts. > > > Eve

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-16 Thread Robert Cummings
On Thu, 2009-01-15 at 23:54 -0500, Paul M Foster wrote: > On Thu, Jan 15, 2009 at 04:20:16AM -0500, Robert Cummings wrote: > > > On Wed, 2009-01-14 at 21:17 -0500, Paul M Foster wrote: > > > > > > Incidentally, I would differ from the reviewer in the link above

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-16 Thread Robert Cummings
On Fri, 2009-01-16 at 00:06 -0500, Paul M Foster wrote: > On Thu, Jan 15, 2009 at 04:17:51AM -0500, Robert Cummings wrote: > > > On Wed, 2009-01-14 at 21:17 -0500, Paul M Foster wrote: > > > On Wed, Jan 14, 2009 at 01:39:02PM -0800, Daevid Vincent wrote: > > > >

Re: [PHP] preg_match_all question

2009-01-16 Thread Robert Cummings
On Fri, 2009-01-16 at 09:42 +, Phil Ewington - iModel Ltd. wrote: > Hi All, > > Having an issue with regular expressions, never been my strong point! > > The following pattern only picks up one instance per line, if more than > one instance exists all text from first {{ to last }} is include

Re: [PHP] Website crawler auto image downloader

2009-01-17 Thread Robert Cummings
On Fri, 2009-01-16 at 16:03 -0800, Sam Smith wrote: > I need a script that will crawl a list of websites and download all .jpg, > .gif, .png files. > > I can think of some ways how to start like, fopen() or maybe curl(). And it > downed on me I'd need to handle files writing over with the same nam

Re: [PHP] Re: Opinions / Votes Needed

2009-01-18 Thread Robert Cummings
your grammar at this point, > I don't want to steal his thunder so I won't. Hey dumbass... it's spelled "Robert". Cheers, Rob. >:) -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Robert Cummings
On Sun, 2009-01-18 at 18:10 +, Nathan Rixham wrote: > Jochem Maas wrote: > > Per Jessen schreef: > >> Nathan Rixham wrote: > >> > >>> Per Jessen wrote: > Nathan Rixham wrote: > > >> You can't have your cake and eat it. You can't/shouldn't have > >> strong > >> and loose t

Re: [PHP] optional type hinting enhancements

2009-01-19 Thread Robert Cummings
On Sun, 2009-01-18 at 23:09 +, Nathan Rixham wrote: > Török Alpár wrote: > > I see a problem with this. Scalars are automatically casted by PHP based on > > a set of rules. In case of a scalar type hint, would jo issue an error, or > > make the automatic type cast? both approaches have ther

Re: [PHP] Need List Advice

2009-01-19 Thread Robert Cummings
On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: > On Mon, Jan 19, 2009 at 11:33, wrote: > > I have been looking but can't find which PHP list is best to post info > > regarding a new PHP tool. I have seen new product/service announcements on > > this list, but thought there might be a bett

Re: [PHP] Need List Advice

2009-01-19 Thread Robert Cummings
On Mon, 2009-01-19 at 13:09 -0500, Paul M Foster wrote: > On Mon, Jan 19, 2009 at 12:42:31PM -0500, Robert Cummings wrote: > > > On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: > > > On Mon, Jan 19, 2009 at 11:33, wrote: > > > > I have been looking but

Re: [PHP] Need List Advice

2009-01-19 Thread Robert Cummings
On Mon, 2009-01-19 at 12:55 -0500, Eric Butera wrote: > On Mon, Jan 19, 2009 at 12:42 PM, Robert Cummings > wrote: > > On Mon, 2009-01-19 at 12:25 -0500, Daniel Brown wrote: > >> On Mon, Jan 19, 2009 at 11:33, wrote: > >> > I have been looking but can't fi

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Robert Cummings
On Mon, 2009-01-19 at 10:50 -0800, Kyle Terry wrote: > On Mon, Jan 19, 2009 at 10:35 AM, Daniel Brown wrote: > > > On Mon, Jan 19, 2009 at 13:22, Kyle Terry wrote: > > >> > > > Aside from a few perl scripts, I have rewritten all my bash scripts in > > PHP. > > > It's just easier to manage for me

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Robert Cummings
On Mon, 2009-01-19 at 11:37 -0800, VamVan wrote: > Why are you guys Burning your egos here? Its not the right place. Could you explain "burning our egos"? Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: Opinions / Votes Needed

2009-01-19 Thread Robert Cummings
On Mon, 2009-01-19 at 14:50 -0500, Daniel Brown wrote: > On Mon, Jan 19, 2009 at 14:37, VamVan wrote: > > Why are you guys Burning your egos here? Its not the right place. > > It's a PHP-related general discussion, Vam. Perhaps not entirely > in good manners, but it's 100% relevant. Indeed,

[PHP] Re: ANNOUNCEMENT: ModBox - an Open Platform as a Service (OPaaS)

2009-01-19 Thread Robert Cummings
elow. > > ModBox - Open Platform as a Service: > http://www.sullivansoftwaresystems.com/modbox > > Thanks for your time. > > Brian Sullivan > Sullivan Software Systems > ModBox - Rock the Box. > > - Original Message - > From: "Robert Cummings

Re: [PHP] Re: ANNOUNCEMENT: ModBox - an Open Platform as a Service (OPaaS)

2009-01-19 Thread Robert Cummings
On Mon, 2009-01-19 at 15:11 -0500, c...@wizzyweb.com wrote: > Right, I just replied to the thread which started from my post. Glad I > didn't hijack or top-post, but thanks for the potential heads-up just the > same. Doh, 40 lashes for me... ... and a bottle of rum to nurse! :) Cheers, Rob. -

Re: [PHP] Need List Advice

2009-01-19 Thread Robert Cummings
On Mon, 2009-01-19 at 20:19 +, c...@l-i-e.com wrote: > I think it means Rob has to bake us all some brownies and ship 'em out to > us... > :-) My deale^H^H^H^H^H^H^H I can't get any ingredients. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP

Re: [PHP] 64bit vs. 32bit

2009-01-19 Thread Robert Cummings
On Mon, 2009-01-19 at 14:56 -0600, dbrooke wrote: > Hello, > I am interested in hearing opinions about if there > are reasons to stay with a 32bit php/apache if there > is 64bit options available. What are the pros/cons > in running in the different architectures? > > (Fat Binary apache2, *nix pla

Re: [PHP] 64bit vs. 32bit

2009-01-19 Thread Robert Cummings
On Mon, 2009-01-19 at 15:18 -0600, dbrooke wrote: > Robert Cummings wrote: > > On Mon, 2009-01-19 at 14:56 -0600, dbrooke wrote: > >> Hello, > >> I am interested in hearing opinions about if there > >> are reasons to stay with a 32bit php/apache if there >

Re: [PHP] developers life

2009-01-19 Thread Robert Cummings
On Mon, 2009-01-19 at 21:28 +, Nathan Rixham wrote: > well just for the hell of it; and because I'm feeling worn.. > > anybody else find the following true when you're a developer? > > - frequent bursts of side-tracking onto more interesting subjects > - vast amount of inhuman focus, followed

Re: [PHP] developers life

2009-01-19 Thread Robert Cummings
On Mon, 2009-01-19 at 21:46 +, Luke Slater wrote: > On Mon, 19 Jan 2009, Robert Cummings wrote: > > > On Mon, 2009-01-19 at 21:28 +, Nathan Rixham wrote: > >> well just for the hell of it; and because I'm feeling worn.. > >> > >> anybod

Re: [PHP] developers life

2009-01-19 Thread Robert Cummings
On Mon, 2009-01-19 at 21:53 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Mon, 2009-01-19 at 21:28 +, Nathan Rixham wrote: > >> well just for the hell of it; and because I'm feeling worn.. > >> > >> anybody else find t

Re: [PHP] maybe we could all?

2009-01-20 Thread Robert Cummings
On Tue, 2009-01-20 at 01:35 +, Nathan Rixham wrote: > and on the other side.. to open things up > > interface Object { > } > > or > > abstract class Object { > } > > or > > class Object { > } These braces are all wrong. Cheers, Rob. -- http://www.interjinn.com Application and Templating

Re: [PHP] developers life

2009-01-20 Thread Robert Cummings
On Mon, 2009-01-19 at 22:06 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Mon, 2009-01-19 at 21:53 +, Nathan Rixham wrote: > > > >> Robert Cummings wrote: > >> > >>> On Mon, 2009-01-19 at 21:28 +, Nathan Rixham wrote: >

Re: [PHP] maybe we could all?

2009-01-20 Thread Robert Cummings
On Mon, 2009-01-19 at 19:59 -0800, Kyle Terry wrote: > > I demand Dan and Nathan to go to bed now. Together? ;) Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] developers life

2009-01-20 Thread Robert Cummings
On Tue, 2009-01-20 at 08:16 -0500, Jason Pruim wrote: > On Jan 19, 2009, at 10:12 PM, Paul M Foster wrote: > > > On Mon, Jan 19, 2009 at 10:23:49PM -, c...@l-i-e.com wrote: > > > >> > >> ESTJ > >> > > > > Me too. > > After answering 68 questions (All that displayed) it told me I didn't > an

Re: [PHP] developers life

2009-01-20 Thread Robert Cummings
On Tue, 2009-01-20 at 13:14 -0500, tedd wrote: > At 4:35 PM -0500 1/19/09, Robert Cummings wrote: > >Are you an INTP? > > > >http://www.personalitytest.net/cgi-bin/q.pl > > > >(I don't know how good the test is, I picked one at random) > > > >

Re: [PHP] Create $var with some function

2009-01-22 Thread Robert Stankiewicz
function createvar($var) { ${$var} = 'foo'; global ${$var}; //or global $$var, i don't know it yet. } This should work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dirty Button

2009-01-25 Thread Robert Cummings
On Sun, 2009-01-25 at 12:55 -0500, tedd wrote: > Hi gang: > > I had a problem and solved it -- here's the write-up: > > http://www.webbytedd.com/b/update-select/index.php > > What do you think of the solution? Dirty button is all fine and dandy, but since you're using JavaScript to update the b

Re: [PHP] Dirty Button

2009-01-25 Thread Robert Cummings
On Sun, 2009-01-25 at 13:49 -0500, tedd wrote: > At 1:18 PM -0500 1/25/09, tedd wrote: > >At 1:02 PM -0500 1/25/09, Robert Cummings wrote: > >>Dirty button is all fine and dandy, but since you're using JavaScript to > >>update the button's CSS (or colour)

Re: [PHP] Non-traditional software accessing my website

2009-01-26 Thread Robert Cummings
On Mon, 2009-01-26 at 13:04 -0600, R B wrote: > Hello, > > Is there a way to be sure that a website is going to be accessed only by > traditional browsers and not from another > software that send to the server the same headers of any of the traditional > browsers? > For example, supose that i onl

Re: [PHP] Non-traditional software accessing my website

2009-01-26 Thread Robert Cummings
On Mon, 2009-01-26 at 15:06 -0500, Andrew Ballard wrote: > On Mon, Jan 26, 2009 at 2:14 PM, Thiago H. Pojda > wrote: > > On Mon, Jan 26, 2009 at 4:13 PM, Robert Cummings > > wrote: > > > >> On Mon, 2009-01-26 at 13:04 -0600, R B wrote: > >> > Hello,

Re: [PHP] Updating time in php

2009-01-26 Thread Robert Cummings
On Mon, 2009-01-26 at 21:13 +, c...@l-i-e.com wrote: > > I'll add that if you went the JS route, then it would just be > > replicating the system time, ie replicating the Windows clock. > > Actually, I did this thing once where I included the server time from PHP in > the JS, then calculate

[PHP] Empty $_REQUEST

2009-01-27 Thread Robert Paulsen
Hi, I have a apache2/php app written for php version 4 and have moved it to a system running php version 5: Old: PHP 4.3.10 New: PHP 5.2.6 with Suhosin-Patch 0.9.6.2 When I run the app I find that $_REQUEST is almost empty. it contains PHPSESSID but none of the data submitted through an

Re: [PHP] Empty $_REQUEST

2009-01-27 Thread Robert Paulsen
On Tuesday 27 January 2009 12:16 pm, Daniel Brown wrote: > On Tue, Jan 27, 2009 at 13:12, Robert Paulsen wrote: > > When I run the app I find that $_REQUEST is almost empty. it contains > > PHPSESSID but none of the data submitted through an html form. > > Bring on th

Re: [PHP] Empty $_REQUEST

2009-01-27 Thread Robert Paulsen
On Tuesday 27 January 2009 2:13 pm, Alpár Török wrote: > why don't you just use phps md5() function ? you might mess up something in > that process of hashing that you use and you create another, probably > useless trip to the db. > I just don't know any better! I'll look it up. Thanks, Bob -

Re: [PHP] Empty $_REQUEST

2009-01-27 Thread Robert Paulsen
On Tuesday 27 January 2009 2:25 pm, Alpár Török wrote: > php has an md5 function built in. so you can jsut do > > $hash = md5($passwd); Works like a champ. Thanks. Bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Programming general question

2009-01-27 Thread Robert Cummings
On Wed, 2009-01-28 at 01:07 +0100, Edmund Hertle wrote: > 2009/1/28 Terion Miller > > > I googled this and didn't find an answer > > my question is how do you know when to use an object or array > > > > would an object just be 1 instance, and array is several things together ( > > I > > know

Re: [PHP] Hidden costs of PHP arrays?

2009-01-27 Thread Robert Cummings
On Wed, 2009-01-28 at 10:38 +1100, Clancy wrote: > PHP arrays permit extremely concise programming; for example if I have all my > contacts in > an array $contacts, I can write: > > $my_phone_no = $contacts['clancy']['phone']; > > However it is clear that there must be a lot going on behind the

Re: [PHP] Extract code from XML

2009-01-30 Thread Robert Stankiewicz
check this : http://nl3.php.net/manual/en/book.simplexml.php best regards Robert Angelo Zanetti : Hi all, I have the following snippet of XML: Code: HasPictures="

Re: [PHP] PHP Content Management

2009-01-30 Thread Robert Cummings
On Fri, 2009-01-30 at 14:53 +0200, Thodoris wrote: > > > Hi All, > > > > I am looking for an open-sourced CMS that is PHP/MySQL based. > > > > I would like something simple to setup, but also would be good for a > > storefront as I want to use it for my indie business. > > > > Thoughts? > > > > -

Re: [PHP] Re: Zend Framework and IIS

2009-01-30 Thread Robert Cummings
On Fri, 2009-01-30 at 15:42 -0500, Andrew Ballard wrote: > On Fri, Jan 30, 2009 at 12:46 PM, Andrew Ballard wrote: > > Is anyone running Zend Framework under IIS? If so, how do you have it > > configured? (ISAPI versus FastCGI, etc.) Do you use any code > > optimizers? > > > > The reason I ask is

Re: [PHP] Boolean Assignment Operator

2009-02-02 Thread Robert Cummings
On Mon, 2009-02-02 at 23:49 +1100, Gavin Hodge wrote: > Hi, > > I'm fairly new to PHP, having migrated from the Java / C# world. > > I wrote some code similar to the following: > > $success = true; > $success &= operation1(); > $success &= operation2(); > > if ($success === true) { > operat

Re: [PHP] Boolean Assignment Operator

2009-02-02 Thread Robert Cummings
On Tue, 2009-02-03 at 00:07 +1100, Gavin Hodge wrote: > In Java / C# / C, > $bool &= $anotherBool; > is shorthand for > $bool = $bool & $anotherBool; > > So &= forces a reference assignment? No, =& forces reference assignment. &= works as you have written. Cheers, Rob. -- http://www.interjinn.c

Re: RES: [PHP] Bad words [SQL, database, txt, whatever]

2009-02-04 Thread Robert Cummings
On Wed, 2009-02-04 at 13:14 -0800, Daevid Vincent wrote: > > Thankfully he IM'd me about it and I fixed it for him, but if he were a > "real customer", I bet they would go away and never come back. I > commented out the code and it's bit-rotting as we speak, as it's just > too much h*BLEEP*le to t

Re: [PHP] Speed Opinion

2009-02-04 Thread Robert Cummings
On Wed, 2009-02-04 at 14:42 -0800, PHP wrote: > Hi all, > I am seeking some knowledge, hopefully I explain this right. > > I am wondering what you think is faster. > > Say you have 1000 records from 2 different tables that you need to get from a > MySQL database. > A simple table will be display

Re: [PHP] Re: DB Comparisons

2009-02-05 Thread Robert Cummings
On Thu, 2009-02-05 at 21:03 +, Nathan Rixham wrote: > revDAVE wrote: > > Hi Folks, > > > > I¹m curious if there are any previous discussions / Articles / URL¹s that > > compare the power and scalability of MySQL (with php) with other > > technologies like MS sequel server oracle - coldfusion

Re: [PHP] Re: DB Comparisons

2009-02-05 Thread Robert Cummings
On Thu, 2009-02-05 at 21:28 +, Nathan Rixham wrote: > Robert Cummings wrote: > > On Thu, 2009-02-05 at 21:03 +, Nathan Rixham wrote: > >> revDAVE wrote: > >>> Hi Folks, > >>> > >>> I¹m curious if there are any previous discussio

Re: [PHP] Opinions needed

2009-02-12 Thread Robert Cummings
On Thu, 2009-02-12 at 15:26 -0500, Al wrote: > I'm scripting a light-weight, low volume signup registry for a running club. > Folks sign up to volunteer for events and the like. There will generally be > a > handful of signup registries at any one time. A typical registry will only > contain 5

Re: [PHP] Opinions needed

2009-02-12 Thread Robert Cummings
On Thu, 2009-02-12 at 15:45 -0500, Al wrote: > > Robert Cummings wrote: > > On Thu, 2009-02-12 at 15:26 -0500, Al wrote: > >> I'm scripting a light-weight, low volume signup registry for a running > >> club. > >> Folks sign up to volunteer for events

Re: [PHP] list all constitute group of array ?

2009-02-13 Thread Robert Cummings
On Sat, 2009-02-14 at 07:41 +0800, LKSunny wrote: > $a = array("a", "b", "c", "d"); > > /* > how to list: > abcd > abc > ab > ac > ad > bcd > bc > bd > cd > a > b > c > d > > who have idea ? thank you very much !! > */ > ?> This looks like homework. Use recursion. Cheers, Rob. -- http://www.i

Re: [PHP] Reverse IP lookup

2009-02-16 Thread Robert Cummings
On Mon, 2009-02-16 at 10:11 -0500, tedd wrote: > At 9:17 PM -0500 2/15/09, Andrew Ballard wrote: > >You mean like this one? > > > >http://www.yougetsignal.com/tools/web-sites-on-web-server/ > > > >I don't know how reliable or up-to-date it is. > > Now that's something I would like to know how it w

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-17 Thread Robert Cummings
On Tue, 2009-02-17 at 21:05 +0200, Thodoris wrote: > > Virgilio Quilario wrote: > > > >>> Recently we had some serious discussion on local boards. > >>> > >>> I prefer calling PHP as Web Framework of C and C++ > >>> > >>> if you had a time for this fruitless discussion. Please send your > >>> o

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-17 Thread Robert Cummings
On Tue, 2009-02-17 at 14:23 -0500, Andrew Ballard wrote: > On Tue, Feb 17, 2009 at 2:12 PM, Robert Cummings wrote: > > On Tue, 2009-02-17 at 21:05 +0200, Thodoris wrote: > >> > Virgilio Quilario wrote: > >> > > >> >>> Recently we had some seri

Re: [PHP] Opinions Please, Describing PHP as Web Framework of Cand C++

2009-02-17 Thread Robert Cummings
On Tue, 2009-02-17 at 13:40 -0600, Shawn McKenzie wrote: > Robert Cummings wrote: > > On Tue, 2009-02-17 at 14:23 -0500, Andrew Ballard wrote: > >> On Tue, Feb 17, 2009 at 2:12 PM, Robert Cummings > >> wrote: > >>> On Tue, 2009-02-17 at 21:05 +0200, Th

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-17 Thread Robert Cummings
On Tue, 2009-02-17 at 11:48 -0800, Michael A. Peters wrote: > Robert Cummings wrote: > > > > > I think what you all are missing is that physics is just a framework for > > reality. > > I think you are missing that reality is just a construct of strawberry >

Re: [PHP] Opinions Please, Describing PHP as Web Framework of C and C++

2009-02-18 Thread Robert Cummings
On Wed, 2009-02-18 at 15:55 +0100, Jochem Maas wrote: > Robert Cummings schreef: > > On Tue, 2009-02-17 at 11:48 -0800, Michael A. Peters wrote: > >> Robert Cummings wrote: > >> > >>> I think what you all are missing is that physics is just a framework

Re: [PHP] Which file "Included" me?

2009-02-18 Thread Robert Cummings
On Wed, 2009-02-18 at 23:57 +0530, Sudheer wrote: > Ed Curtis wrote: > > Is there a function or variable that will tell me if a file has asked > > another file to include something much the same as > > $_SERVER['HTTP_REFERER'] works. I have a script that is included on > > every page of a site b

Re: [PHP] mysql_real_escape_string("asdasddas") ??? wtf

2009-02-21 Thread Robert Cummings
On Sat, 2009-02-21 at 19:19 +1300, Tim | iHostNZ wrote: > Hi everyone, > > Can anyone here tell me why mysql_real_escape_string("asdasddas") returns an > empty string? > > Just writing a data import... > > Anyway, for security but also simply because i might have a ' in the string, > i need to e

Re: [PHP] A puzzler (well, for me at least)

2009-02-26 Thread Robert Cummings
On Thu, 2009-02-26 at 12:47 +, Richard Heyes wrote: > Hi, > > I've been recently wondering (musing if you will) about timings, and > roughly how long, in a very real sense, it takes on a modern computer > for a single line of PHP, or Javascript (or interpreted code in > general) to execute. Na

Re: [PHP] A puzzler (well, for me at least)

2009-02-26 Thread Robert Cummings
of script code without controlling for processor speed, architecture, compiler, memory, network, etc, etc and the exact line of script being considered. As for funny... some people have no sense of humour and to them I pointedly point my tongue. Cheers, Rob. > > -- > "Rober

Re: [PHP] "use strict" or similar in PHP?

2009-02-27 Thread Robert Cummings
On Fri, 2009-02-27 at 13:11 +, Ashley Sheridan wrote: > But if it never compiles, it can never run, but it can't run without > compiling? Arggh, my head. So does that mean if I go back in time and > shoot my grandfather, then nobody is in the woods to hear PHP try to > compile? There's a blurr

RE: [PHP] "use strict" or similar in PHP?

2009-02-27 Thread Robert Cummings
On Fri, 2009-02-27 at 08:43 -0500, Bob McConnell wrote: > From: Hans Schultz > > > > Hahahah,I was thinking the same thing :D > > > > --- On Fri, 2/27/09, Ashley Sheridan wrote: > > From: Ashley Sheridan > > Subject: Re: [PHP] "use strict" or similar in PHP? > > To: "Hans Schultz" > > Cc: php-

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread Robert Cummings
On Fri, 2009-02-27 at 09:28 -0700, LuKreme wrote: > On Feb 27, 2009, at 6:12, Hans Schultz wrote: > > > Hahahah,I was thinking the same thing > > >> > >> > > > The trouble is most people mean "compile a source file to an > executable binary" when they sat compile. By this measure, PHP does >

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread Robert Cummings
w.ubuntu.com > -- > > > On Fri, Feb 27, 2009 at 11:46 PM, Robert Cummings wrote: > > > On Fri, 2009-02-27 at 09:28 -0700, LuKreme wrote: > > > On Feb 27, 2009, at 6:12, Hans Schultz wrote: > >

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-27 Thread Robert Cummings
On Fri, 2009-02-27 at 14:32 -0800, Michael A. Peters wrote: > Robert Cummings wrote: > ... the line between the > > definition of interpreted language and compiled language is quite blurry > > these days. > > #include > main() > { > printf("Hello World&

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-28 Thread Robert Cummings
On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: > On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: > > On Sat, 2009-02-28 at 00:02 +0600, 9el wrote: > > > --- > > > Use FreeOpenSource

Re: [PHP] Re: "use strict" or similar in PHP?

2009-02-28 Thread Robert Cummings
On Sat, 2009-02-28 at 09:04 -0600, Shawn McKenzie wrote: > Robert Cummings wrote: > > On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: > >> On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote: > >>> On Sat, 2009-0

Re: [PHP] A puzzler (well, for me at least)

2009-02-28 Thread Robert Cummings
On Sat, 2009-02-28 at 12:35 -0500, Daniel Brown wrote: > On Thu, Feb 26, 2009 at 09:50, Ondrej Kulaty wrote: > > Your answer is neither relevant nor funny. :-| > > And your response wasn't welcome. So there, everyone's even. I'm even?? You sure? People been telling me my entire life that I'

Re: [PHP] Re: "use strict" or similar in PHP?

2009-03-01 Thread Robert Cummings
On Sat, 2009-02-28 at 18:57 -0600, Shawn McKenzie wrote: > Stuart wrote: > > 2009/2/28 Shawn McKenzie > > > >> Robert Cummings wrote: > >>> On Sat, 2009-02-28 at 00:11 +, Ashley Sheridan wrote: > >>>> On Fri, 2009-02-27 at 14:32 -0500, Robe

Re: [PHP] file locking...

2009-03-01 Thread Robert Cummings
On Sat, 2009-02-28 at 21:46 -0800, bruce wrote: > Hi. > > Got a bit of a question/issue that I'm trying to resolve. I'm asking this of > a few groups so bear with me. > > I'm considering a situation where I have multiple processes running, and > each process is going to access a number of files i

Re: [PHP] Re: "use strict" or similar in PHP?

2009-03-01 Thread Robert Cummings
On Sun, 2009-03-01 at 08:36 -0500, tedd wrote: > The OP asked: > > >Is there in PHP something like "use strict" from perl? I find it pretty > >annoying to need to run script over and over again just to find out that I > >made typo in variable name. > > And I've been waiting for an answer myself,

Re: [PHP] Re: "use strict" or similar in PHP?

2009-03-01 Thread Robert Cummings
On Sun, 2009-03-01 at 09:48 -0500, tedd wrote: > At 9:21 AM -0500 3/1/09, Robert Cummings wrote: > >On Sun, 2009-03-01 at 08:36 -0500, tedd wrote: > >> The OP asked: > >> > >> >Is there in PHP something like "use strict" from perl? I find it pret

Re: [PHP] Re: "use strict" or similar in PHP?

2009-03-01 Thread Robert Cummings
On Sun, 2009-03-01 at 09:57 -0500, Robert Cummings wrote: > On Sun, 2009-03-01 at 09:48 -0500, tedd wrote: > > At 9:21 AM -0500 3/1/09, Robert Cummings wrote: > > >On Sun, 2009-03-01 at 08:36 -0500, tedd wrote: > > >> The OP asked: > > >> > > >&

RE: [PHP] file locking...

2009-03-01 Thread Robert Cummings
On Sun, 2009-03-01 at 09:09 -0800, bruce wrote: > hi rob... > > here's the issue in more detail.. > > i have multiple processes that are generated/created and run in a > simultaneous manner. each process wants to get XX number of files from the > same batch of files... assume i have a batch of 50

RE: [PHP] file locking...

2009-03-01 Thread Robert Cummings
On Sun, 2009-03-01 at 10:05 -0800, bruce wrote: > hi rob... > > what you have written is similar to my initial approach... my question, and > the reason for posting this to a few different groups.. is to see if someone > has pointers/thoughts for something much quicker... > > this is going to han

Re: [PHP] A puzzler (well, for me at least)

2009-03-02 Thread Robert Cummings
On Mon, 2009-03-02 at 22:30 +0100, Jochem Maas wrote: > Robert Cummings schreef: > > On Thu, 2009-02-26 at 15:50 +0100, Ondrej Kulaty wrote: > >> Your answer is neither relevant nor funny. :-| > > > > It was very relevant. You cannot easily ascertain the time at

<    7   8   9   10   11   12   13   14   15   16   >