Re: [PHP] where to put a function

2008-04-14 Thread Nathan Nobbe
On Mon, Apr 14, 2008 at 9:34 AM, Rick Pasotto <[EMAIL PROTECTED]> wrote: > Probably been answered a thousand times; if so, just tell me where to > look. > > I have a function that includes a specific sql query that is used on > only one page on the site. Should that function be coded (1) in the pa

Re: [PHP] Need a simple one time search utility

2008-04-14 Thread Nathan Nobbe
On Mon, Apr 14, 2008 at 12:54 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Mon, Apr 14, 2008 at 2:48 PM, Philip Thompson <[EMAIL PROTECTED]> > wrote: > > > > > $stringSoMyStatsWillIncrease = " > > I know it's only a demo, but there is a small error. You have this > string > > spit out: >

Re: [PHP] Need a simple one time search utility

2008-04-14 Thread Nathan Nobbe
On Mon, Apr 14, 2008 at 1:11 PM, Daniel Brown <[EMAIL PROTECTED]> wrote: >As a result, it was typed in /too much/ haste and as a result, > made me look like a moron --- even moreso than normal! However, it > also led me to add in a case-insensitive search option. grep -rin is my favor

Re: [PHP] Most viewed?

2008-04-15 Thread Nathan Nobbe
On Tue, Apr 15, 2008 at 9:41 AM, Steve Marquez <[EMAIL PROTECTED]> wrote: > Greetings, > > Can any of you point me in the right direction on how to use PHP to create > a > most viewed or most clicked articles list? Can it be done with PHP? are these articles on a site youre creating? it should

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 7:37 AM, Thiago Pojda < [EMAIL PROTECTED]> wrote: > {Top Posting} > > I don't know if I'm just lazy or stupid (or both). > > I went into a similar issue few weeks ago and my solution was to add a > function to delete files created in the last X hours (mine was 24), and > ca

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:12 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 10:05 AM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > On Wed, Apr 16, 2008 at 7:59 AM, Andrew Ballard <[EMAIL PROTECTED]> > wrote: > > > > >

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:14 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 10:13 AM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > On Wed, Apr 16, 2008 at 8:07 AM, Daniel Brown <[EMAIL PROTECTED]> > wrote: > > > > >You ar

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:13 AM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > It's a start, but what about a user who never returns? You still want > some way to clean out those old files, and I think that's the approach > Thiago was presenting by purging all files older than X > days/hours/minutes

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 7:59 AM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > In addition to the added time, aren't there any problems with race > conditions if two users try to create a file at the same time and each > user's script tries to clean the same files at the same time? ergo, the need

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 7:53 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 9:37 AM, Thiago Pojda > <[EMAIL PROTECTED]> wrote: > > > > I don't know if I'm just lazy or stupid (or both). > > Stupid, definitely not. Lazy well, maybe. ;-P > > > I went into a similar

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:07 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 9:59 AM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > > > well since i dont have your service dan, im filling in blanks over here; > > but, do users get to dete

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:02 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 9:56 AM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > > > it sounds like thats what theyre talking about doing... > > > [snip!] > > > > that way,

Re: [PHP] PHP Speech

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:46 AM, Daniel Brown <[EMAIL PROTECTED]> wrote: > On Wed, Apr 16, 2008 at 10:18 AM, Andrew Ballard <[EMAIL PROTECTED]> > wrote: > > > > What was the name of your company again? blindeyehosting.com? ;-) > > No, we had to change the name, so we went with a more obscure

Re: [PHP] Database abstraction?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 9:15 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > off-subject (yes total thread robbery here [more of a side note really]). > > i saw a reference to some of your work in the Solar framework richard, for > > clearing out the 'environment' or rather the superglobal arrays

Re: [PHP] Database abstraction?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 8:55 AM, Richard Heyes <[EMAIL PROTECTED]> wrote: > I'm back with yet another question But getting closer to sounding like > > I know what I'm talking about and that's all thanks to all of you. A free > > beer (Or beverage of choice)* for everyone who has helped me over

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston <[EMAIL PROTECTED]> wrote: > > "Robert Cummings" <[EMAIL PROTECTED]> wrote in message > > While I agree that Interfaces are mostly a lot of extra code, I have to > > also say that they are there primarily to enforce a contract between the > > user of t

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 12:01 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-04-16 at 17:22 +0100, Robin Vickery wrote: > > On 16/04/2008, Jay Blanchard <[EMAIL PROTECTED]> wrote: > > > [snip] > > > > What about encapsulation? > > > > > > Interfaces have nothing to do with encap

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 12:54 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-04-16 at 12:43 -0600, Nathan Nobbe wrote: > > On Wed, Apr 16, 2008 at 5:47 AM, Tony Marston < > [EMAIL PROTECTED]> > > wrote: > > > > > > > &g

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 12:56 PM, Jeremy Privett <[EMAIL PROTECTED]> wrote: > This is a holy war that is never going to end. It boils down to personal > and professional preferences. The fact of the matter is, if a company uses > these concepts and you don't know, understand, or execute that know

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 9:13 PM, Daevid Vincent <[EMAIL PROTECTED]> wrote: > > >> All that extra code for absolutely no benefit! It is > > possible to define an > > >> interface (as in API) without actually using the term > > "interface", so IMHO > > >> the term "interface" is totally redundant an

Re: [PHP] Database abstraction?

2008-04-16 Thread Nathan Nobbe
On Wed, Apr 16, 2008 at 1:30 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > hope ya dont mind if i borrow that one :D > > > > arm, have you seen my website...? :-) > umm; sry, havent :( i was reading through it, and i was like; holy shit; that dudes from the > list !! btw, i talked to the guy

[PHP] & performance issues

2008-04-16 Thread Nathan Nobbe
all, i have heard from various sources that using the & in php can at times be costly, and therefore, it should not be used when it is not needed. for example, passing an array by reference because you think youre passing the actual array is not a good idea. only pass it by reference if a modifi

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-17 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 3:42 AM, Robin Vickery <[EMAIL PROTECTED]> wrote: > On 16/04/2008, Tony Marston <[EMAIL PROTECTED]> wrote: > > > > > > > -Original Message- > > > From: Robin Vickery [mailto:[EMAIL PROTECTED] > > > Sent: 16 April 2008 17:23 > > > To: Jay Blanchard > > > Cc: Ton

Re: [PHP] & performance issues

2008-04-17 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 12:14 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > If it's faster, it's faster so that would suggest a performance gain... > but as many will tell you, and you most likely already know... is the > gain worth the effort? BTW, rote replacement of references like that, > m

Re: [PHP] & performance issues

2008-04-17 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic <[EMAIL PROTECTED]> wrote: > in PHP5 by default Objects are passed by reference and as you can see at > this graph passing array by reference in PHP5 is slower > http://nathan.moxune.com/arrayVsArrayIteratorReport.php wow, thats hilarious, thats m

Re: [PHP] PHP console script vs C/C++/C#

2008-04-17 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 3:30 PM, Daniel Kolbo <[EMAIL PROTECTED]> wrote: > Hello, > > I am writing a PHP script for a local application (not web/html based). > My script is taking a longer time to execute than I want. The source code > is a few thousand lines, so I will spare you all this level

Re: [PHP] & performance issues

2008-04-17 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 11:51 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Thu, Apr 17, 2008 at 12:00 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > On Thu, Apr 17, 2008 at 4:57 AM, Bojan Tesanovic <[EMAIL PROTECTED]> > > wrote: > > > >

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 9:33 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > Like I said before, since you know that most of your time is in a > specific part of your script, just move that function into a custom > extension written in c/c++. > > http://talks.php.net/show/extending-php-apachecon2003/

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 5:46 PM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > > If I wrote the console application in a c language (and compiled) would > one > > expect to see any improvements in performance? If so, how much > improvement > > could one expect (in general)? > > Depends. Shitty alg

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Thu, Apr 17, 2008 at 5:43 PM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > On Thu, Apr 17, 2008 at 10:05:11AM +0200, Michael Preminger wrote: > > Hello! > > > > Seems that PHP gets more and more object oriented, which is good. > > > > I am now running a course in PHP, using PHP 5, where we are

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 11:21 AM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > On Fri, Apr 18, 2008 at 10:25:29AM -0600, Nathan Nobbe wrote: > > On Thu, Apr 17, 2008 at 5:43 PM, Nick Stinemates <[EMAIL PROTECTED]> > > wrote: > > > > > On Thu, Apr 17, 2

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 11:50 AM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > That's a relatively narrow minded response to my point, since I gave > a pretty concrete example of exactly what I meant, no, its a very valid criticism of your flawed example. you supply a definition of encapsulatio

Re: [PHP] PHP console script vs C/C++/C#

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 11:25 AM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > I don't think there was a single place where I said PHP was faster than > C, nor did I imply it. > > > Depends. Shitty algorithms are shitty, regardless of language > > implementation. implies that the same algorithm

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 12:50 PM, Jim Lucas <[EMAIL PROTECTED]> wrote: > > Let me quote, you said this: "Is no different than" You are wrong, in > fact it IS different. Having your own custom methods to get or set data > allows you to have more control over what data is injected into your object

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 1:02 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > What he means is don't ask for the data literally (by property name) ask > for it via a method. This allows wrapping the data in "work". This is a > moot issue in PHP since PHP allows trapping the property accessor. i

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 1:42 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > Nope, the point is moot. If I've made my properties publicly accessible, > now, due to the ability to trap via __get() or __set(), I can remove > them and handle them. Thus, I can retrospectively change the semantics > w

Re: [PHP] PHP5 and the DOM model

2008-04-18 Thread Nathan Nobbe
On Fri, Apr 18, 2008 at 2:28 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-04-18 at 13:54 -0600, Nathan Nobbe wrote: > > On Fri, Apr 18, 2008 at 1:42 PM, Robert Cummings <[EMAIL PROTECTED]> > > wrote: > > > > > Nope, the point

Re: [PHP] PHP console script vs C/C++/C#

2008-04-19 Thread Nathan Nobbe
On Sat, Apr 19, 2008 at 7:08 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > > > On Fri, Apr 18, 2008 at 11:25 AM, Nick Stinemates > > <[EMAIL PROTECTED]> wrote: > > > >> I don't think there was a single place where I s

Re: [PHP] PHP console script vs C/C++/C#

2008-04-20 Thread Nathan Nobbe
On Sun, Apr 20, 2008 at 6:50 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Nathan Nobbe wrote: > > > umm, so whats going on here is the implicit component of the statement > > that incorporates relative or absolute performance. in terms of > > relative performance

Re: [PHP] PHP console script vs C/C++/C#

2008-04-20 Thread Nathan Nobbe
On Sun, Apr 20, 2008 at 2:34 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Sun, 2008-04-20 at 14:17 -0400, Nathan Nobbe wrote: > > On Sun, Apr 20, 2008 at 6:50 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > > > > > Nathan Nobbe wrote: > > > >

Re: [PHP] function returns no value

2008-04-20 Thread Nathan Nobbe
On Sun, Apr 20, 2008 at 4:51 PM, Ali Reza Sajedi <[EMAIL PROTECTED]> wrote: > Hello, > > with the following call I try to print a string out of DB > > echo $allg->translate($db, $lang, 14, "auth/authCallback", 4); > > function translate () should do a DB querry and returns the requested > string.

Re: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Nathan Nobbe
On Mon, Apr 21, 2008 at 1:48 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Mon, 2008-04-21 at 15:20 -0400, Daniel Brown wrote: > > On Mon, Apr 21, 2008 at 3:01 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > > > > > Just think about the frequent flyer miles you'd get! Vacation > anywhere you

Re: [PHP] Denver PHP opportunity - Senior Software Engineers

2008-04-21 Thread Nathan Nobbe
On Mon, Apr 21, 2008 at 3:59 PM, Manuel Lemos <[EMAIL PROTECTED]> wrote: > Hello, > > You may want to take a look here and find qualified PHP developers near > your region. You may even search for developers that have relevant skills. > > http://www.phpclasses.org/professionals/country/us/ the z

Re: [PHP] Re: php framework vs just php?

2008-04-22 Thread Nathan Nobbe
On Tue, Apr 22, 2008 at 9:00 AM, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > > [snip] > > If you don't use a framework then obviously you are writing nothing > but > > mickey mouse programs, and wouldn't stand a chance when it comes to > > writing a proper application. > >..If you thin

Re: [PHP] Re: php framework vs just php?

2008-04-22 Thread Nathan Nobbe
On Tue, Apr 22, 2008 at 9:30 AM, Jay Blanchard <[EMAIL PROTECTED]> wrote: > This is not the only real measure of a good framework, it is just one of > many. I wrote a tool a long time ago that does the table/form/query bit > in well under 5 minutes with several permutations. A good framework is >

Re: [PHP] Re: php framework vs just php?

2008-04-22 Thread Nathan Nobbe
On Tue, Apr 22, 2008 at 9:54 AM, paragasu <[EMAIL PROTECTED]> wrote: > i can only think of copy & paste method if i were required to write a PHP > application > without a single line of code even a simple "hello world!" application. > i am really cannot be in the same league :( . well, i might ha

Re: [PHP] Re: php framework vs just php?

2008-04-22 Thread Nathan Nobbe
On Tue, Apr 22, 2008 at 11:02 AM, paragasu <[EMAIL PROTECTED]> wrote: > > imagine a cms, like drupal or joomla. you install the thing w/ the web > > based installer then go through adding content via the web interface; u > > can > > do it :D > > > > -nathan > > > > i am going to miss the fun doin

[PHP] :: breakage - post php 5.2.4

2008-04-23 Thread Nathan Nobbe
all, i have observed breakage in some of the class functionality involving the scope resolution operator in php after php 5.2.4. in said version strings holding class names can be used w/ the scope resolution operator to resolve static members and class constants. this no longer works in php 5.2

Re: [PHP] Re: php framework vs just php?

2008-04-23 Thread Nathan Nobbe
On Wed, Apr 23, 2008 at 12:29 PM, tedd <[EMAIL PROTECTED]> wrote: > At 5:24 PM +0300 4/22/08, Sancar Saran wrote: > >> Hello there, >> >> Is anyone looking jQuery recently ?. Thas what I call framework... >> > > Yes, and I'm programming with it. > > But, that's what jQuery and I call a library.

Re: [PHP] Re: php framework vs just php?

2008-04-23 Thread Nathan Nobbe
On Wed, Apr 23, 2008 at 1:01 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Wed, Apr 23, 2008 at 2:49 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > interestingly, prototype claims it is a framework. > > http://www.google.com/search?hl=en&q=define%3A+framew

Re: [PHP] Re: php framework vs just php?

2008-04-23 Thread Nathan Nobbe
On Wed, Apr 23, 2008 at 1:22 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-04-23 at 13:14 -0600, Nathan Nobbe wrote: > > On Wed, Apr 23, 2008 at 1:01 PM, Eric Butera <[EMAIL PROTECTED]> > wrote: > > > > > On Wed, Apr 23, 2008

Re: [PHP] Big companies that use PHP?

2008-04-23 Thread Nathan Nobbe
On Wed, Apr 23, 2008 at 2:26 PM, Thiago Pojda < [EMAIL PROTECTED]> wrote: > Thanks everyone for replying, I think those names can change someone's mind > ;) i know where youre coming from; i recall a certain manager once saying to me 'php doesnt scale when it goes OO'. i wanted to take his head

Re: [PHP] Re: the most amazing php code i have ever seen so far

2008-04-24 Thread Nathan Nobbe
On Thu, Apr 24, 2008 at 1:22 PM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > paragasu wrote: > >> i have seen many php code. i learn php on my own, and during early days >> with >> php, >> i download many open source php project and try to learn the coding on my >> own. >> i did see many code (ugl

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 9:50 AM, Leurent Francois <[EMAIL PROTECTED]> wrote: > Is there any hope that > echo "Welcome {session::$user_info['user_name']}"; > > will work someday, if not, is there a simple reason i'm missing ? actually, if you see my post from the other day, this is something that

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 10:02 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Apr 25, 2008, at 11:56 AM, Nathan Nobbe wrote: > > On Fri, Apr 25, 2008 at 9:50 AM, Leurent Francois <[EMAIL PROTECTED]> >> wrote: >> >> Is there any hope that >>

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 10:53 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-04-25 at 10:14 -0600, Nathan Nobbe wrote: > > On Fri, Apr 25, 2008 at 10:02 AM, Jason Pruim <[EMAIL PROTECTED]> > wrote: > > > > > > > > On Apr 25, 200

Re: [PHP] peer review (was php framework vs just php?)

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 10:59 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2008-04-25 at 11:17 -0500, Jay Blanchard wrote: > > I did a quick and dirty of just one of those functions. This function > > takes a table and creates a form based on the table. It needs quite a > > bit of refi

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 11:01 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2008-04-25 at 10:55 -0600, Nathan Nobbe wrote: > > > > bah; concatenation operator - schmacatatenation operator! i dont really > > care about that; but i would like to see suppo

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 11:02 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 12:55 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > i would like to see support for $a::$someStatic come > > callback :P > > http://us.php.net/manual/

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 11:19 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-04-25 at 11:11 -0600, Nathan Nobbe wrote: > > On Fri, Apr 25, 2008 at 11:01 AM, Robert Cummings <[EMAIL PROTECTED]> > > wrote: > > > > > On Fri,

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 11:35 AM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 01:19:58PM -0400, Robert Cummings wrote: > > > > I don't see how the throwing everything and the kitchen sink into double > > quotes support caters to either of these groups. It strikes me, and o

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 11:37 AM, Nick Stinemates <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 11:29:05AM -0600, Nathan Nobbe wrote: > > here we are back at the classic syntactic sugar argument. at least weve > > moved past abstract classes and interfaces ! > &g

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 12:21 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-04-25 at 11:29 -0600, Nathan Nobbe wrote: > > On Fri, Apr 25, 2008 at 11:19 AM, Robert Cummings <[EMAIL PROTECTED]> > > wrote: > > > > > > > >

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 12:28 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 2:25 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > want to know a syntactic sugar feature i avoid like the plague, its the > > ternary operator! > > Like

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 12:36 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Fri, 2008-04-25 at 12:25 -0600, Nathan Nobbe wrote: > > On Fri, Apr 25, 2008 at 11:35 AM, Nick Stinemates <[EMAIL PROTECTED]> > > wrote: > > > > > On Fri, Apr 25, 20

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 12:44 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 2:36 PM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > > > > On Fri, 2008-04-25 at 12:25 -0600, Nathan Nobbe wrote: > > > On Fri, Apr 25, 2008 at 11:35 A

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 12:52 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 2:50 PM, Robert Cummings <[EMAIL PROTECTED]> > wrote: > > Why would anyone use htmlspecialchars() on a shell script? > > > > >:) > > Who uses a session in a cli script? > i do; that way when the s

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 1:08 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 2:51 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > class OutputEscaper { > > I dunno man. I have an escape() method on different classes such as > View (which ca

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 1:14 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 3:09 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > i do; that way when the script terminates the session is wiped clean :D > > $GLOBALS would get you the same thing

Re: [PHP] Class Static variables in double quoted string or heredoc

2008-04-25 Thread Nathan Nobbe
On Fri, Apr 25, 2008 at 1:16 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > On Fri, Apr 25, 2008 at 3:12 PM, Nathan Nobbe <[EMAIL PROTECTED]> > wrote: > > meh; just make sure the instance holds what you want it to; it was just a > > contrived example to illustrate

Re: [PHP] peer review (was php framework vs just php?)

2008-04-26 Thread Nathan Nobbe
On Sat, Apr 26, 2008 at 1:44 AM, Robert Cummings <[EMAIL PROTECTED]> wrote: > Wow, that's umm hideous. > lol, u da man rob;) but imagine if you had to deal w/ that every day for almost a year:O thankfully ive found a new job; whew. -nathan

Re: [PHP] peer review (was php framework vs just php?)

2008-04-26 Thread Nathan Nobbe
On Sat, Apr 26, 2008 at 2:59 AM, Jason Norwood-Young < [EMAIL PROTECTED]> wrote: > > On Fri, 2008-04-25 at 17:32 -0500, Jay Blanchard wrote: > > [snip] > > I can't say I've ever had a form that exactly matched a database table > > for a user perspective. From an admin perspective that changes, but

Re: [PHP] convert unix time to Gregorian

2008-04-27 Thread Nathan Nobbe
On Sun, Apr 27, 2008 at 12:27 PM, Yui Hiroaki <[EMAIL PROTECTED]> wrote: > hi! > I am try to change unix time to Gregorian. > > I successfully convert unix time to Gregorian. > But Gregorian time is now showing hour and second and more detail time. > > $unix_timestamp="1208764059"; > echo "$unix_

Re: [PHP] Making an array from delimited data

2008-04-28 Thread Nathan Nobbe
On Mon, Apr 28, 2008 at 1:44 PM, Joe Harman <[EMAIL PROTECTED]> wrote: > I have some data that I pull from a database that is in the following > format: > > - > Gauge Style: Auto Meter Pro-Comp > Tachometer Usage: Standard > Gauge Series:

Re: [PHP] Re: Making an array from delimited data

2008-04-28 Thread Nathan Nobbe
On Mon, Apr 28, 2008 at 1:58 PM, Joe Harman <[EMAIL PROTECTED]> wrote: > this is the complete data that was initially submitted through a textarea > field. > just to clarify my example assumes $dbData is a single string. if the info you posted is getting stored in a single field it should work j

Re: [PHP] web based chat app

2008-04-28 Thread Nathan Nobbe
On Tue, Apr 29, 2008 at 12:48 AM, paragasu <[EMAIL PROTECTED]> wrote: > i am planning to integrate chat application on my website. > the idea is to make online user on my website to chat to each other. > it is using PHP5+jQuery, i want it to be as light as possible. I am not > sure > about the dat

Re: [PHP] web based chat app

2008-04-28 Thread Nathan Nobbe
On Tue, Apr 29, 2008 at 1:56 AM, paragasu <[EMAIL PROTECTED]> wrote: > > > im thinking you probly dont need a database unless you want to preserve > chat history. > i don't think chat history is necessary. but i need to keep some of the > user chat session > right? well it should be better perfo

Re: [PHP] web based chat app

2008-04-29 Thread Nathan Nobbe
On Tue, Apr 29, 2008 at 2:35 AM, paragasu <[EMAIL PROTECTED]> wrote: > > i believe the sysv-ipc functions in php can give you access to that as > well (dont quote me tho; > im to lazy to look it up atm :)) > well, thanks.. i just aware of semaphore function in php. i never see > anyone use this fu

Re: [PHP] Re: PHP Errors to screen

2008-04-29 Thread Nathan Nobbe
On Tue, Apr 29, 2008 at 6:38 AM, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > Adam Gerson wrote: > >> Where do I change the setting to print PHP errors to the screen when >> running in a web browser? >> >> Thanks, >> Adam >> >> >> php.ini, display_errors you should also take a look at log_errors

Re: [PHP] Fun with SOAP.

2008-04-29 Thread Nathan Nobbe
On Tue, Apr 29, 2008 at 2:15 PM, Eric Butera <[EMAIL PROTECTED]> wrote: > A fellow co-worker of mine is working on a project integrating with > Amazon using SOAP. I've never used SOAP before but it seemed like > things were straight forward at first. Some parts work while others > done. Right n

Re: [PHP] Fun with SOAP.

2008-04-30 Thread Nathan Nobbe
On Wed, Apr 30, 2008 at 1:53 PM, Larry Brown < [EMAIL PROTECTED]> wrote: > Sorry no quick silver bullet, but I would highly recommend looking at > nusoap if only as a test. > additionally, i could not find any occurrence of 'attachment' grepping through the c code in the soap extension or the rpc

Re: [PHP] check if any element of an array is not "empty"

2008-04-30 Thread Nathan Nobbe
On Wed, Apr 30, 2008 at 2:36 PM, afan pasalic <[EMAIL PROTECTED]> wrote: > hi, > as a result of one calculation I'm receiving an array where elements > could be 0 or date (as string -mm-dd hh:ii:ss). > I have to check if any of elements of the array is "date" or if all > elements of the array

Re: [PHP] check if any element of an array is not "empty"

2008-04-30 Thread Nathan Nobbe
On Wed, Apr 30, 2008 at 2:58 PM, Richard Heyes <[EMAIL PROTECTED]> wrote: > but I was thinking if there is the function does that. >> > > array_filter(). Note this: > > "If no callback is supplied, all entries of input equal to FALSE (see > converting to boolean) will be removed." > > http://uk3.p

Re: [PHP] problem with for loop

2008-05-02 Thread Nathan Nobbe
On Fri, May 2, 2008 at 1:20 AM, Richard Kurth <[EMAIL PROTECTED]> wrote: > Way does my for loop not complete the task if there are 4 emails it only > process 3 emails through the foreach loop if there is 3 it only process 2 > > $file=file_get_contents("C:\web\bouncehandler\eml\em$i"); > $multiArra

Re: [PHP] Assigning functions

2008-05-02 Thread Nathan Nobbe
On Fri, May 2, 2008 at 1:09 PM, Philip Thompson <[EMAIL PROTECTED]> wrote: > Hi all. I have several classes. Within each class, a new class is called. > Is there a way to assign a function in a *deeper* class to be called in the > first class? Example to follow.. > > class A { >function _

Re: [PHP] Assigning functions

2008-05-02 Thread Nathan Nobbe
On Fri, May 2, 2008 at 2:03 PM, Craige Leeder <[EMAIL PROTECTED]> wrote: > ons here) as a simple example something like this > > > > class B { > > //... > > function doSomething() { > > return $this->c->doSomething(); > > } > > } > > > > which allows you this in A instances > > > >

Re: [PHP] Assigning functions

2008-05-02 Thread Nathan Nobbe
On Fri, May 2, 2008 at 1:48 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Fri, May 2, 2008 at 1:09 PM, Philip Thompson <[EMAIL PROTECTED]> > wrote: > >> Hi all. I have several classes. Within each class, a new class is called. >> Is there a way to assign a f

Re: [PHP] Re: Assigning functions

2008-05-02 Thread Nathan Nobbe
On Fri, May 2, 2008 at 5:37 PM, Craige Leeder <[EMAIL PROTECTED]> wrote: > On Fri, May 2, 2008 at 7:27 PM, Shawn McKenzie <[EMAIL PROTECTED]> > wrote: > > Why are you using OOP? That's insane. > > > > -Shawn > > I believe that's a matter of opinion. Some people like OOP, others > don't. Why cr

Re: [PHP] Question on PHP 6 and static calls to instance methods.

2008-05-04 Thread Nathan Nobbe
On 5/3/08, Adam Richardson <[EMAIL PROTECTED]> wrote: > > I have a quick question on what's coming in PHP 6. > > I've incorporated use of the ability to call instance methods through > static calls, allowing for me to mimic multiple inheritance without having > to make edits to classes that are alr

Re: [PHP] the Y2K38 BUG

2008-05-06 Thread Nathan Nobbe
On Tue, May 6, 2008 at 10:57 PM, Paul Scott <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-05-07 at 10:03 +0530, Chetan Rane wrote: > > Have guys heard of the the Y2K38 Bug more details are on this link > > > > Nope, but I can guess what its about. > > > Can there be a possible solution. As the syste

Re: [PHP] the Y2K38 BUG

2008-05-06 Thread Nathan Nobbe
On Tue, May 6, 2008 at 11:56 PM, Paul Scott <[EMAIL PROTECTED]> wrote: > > On Tue, 2008-05-06 at 23:50 -0600, Nathan Nobbe wrote: > > true-that ;) > > anyway, the DateTime class is implemented as a 64-bit unsigned (i think) > > value. so if you use it you should be

Re: [PHP] the Y2K38 BUG

2008-05-06 Thread Nathan Nobbe
On Wed, May 7, 2008 at 12:48 AM, Kalle Sommer Nielsen <[EMAIL PROTECTED]> wrote: > Quoting "Jon L." <[EMAIL PROTECTED]>: > > Another possibility... >> Port the Date object implementation from ECMA/Javascript. >> It has a range of +/-8.64e15, or Tue, 20 Apr -271821 00:00:00 GMT to Sat, >> 13 >> Se

Re: [PHP] the Y2K38 BUG

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 1:11 AM, Paul Scott <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-05-07 at 00:54 -0600, Nathan Nobbe wrote: > > > looks like mine only goes to dec. 31, =/ > > > > *Gasp!* best you get cracking on finding an alternative solution! yes

Re: [PHP] ldap_search results limited

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 12:50 PM, mburtch <[EMAIL PROTECTED]> wrote: > > I am running into a problem with my queries returning a limited number of > result entries. The LDAP server is Kerio Mail Server, and I am verified > that > the SIZELIMIT in the server's configuration is 0 (no limit). For some

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 2:22 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-05-07 at 16:03 -0400, tedd wrote: > > At 12:34 PM -0400 5/7/08, Robert Cummings wrote: > > > > > >The exception being when it performs cleanup. Cleanup should be > > >relegated to a cron job. > > > > Rob: >

Re: [PHP] ldap_search results limited

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 2:26 PM, Matt Burtch <[EMAIL PROTECTED]> wrote: > Thanks for the tips. phpLDAPAdmin was hanging while trying to > authenticate, but I'll give it a try again later. > > Nathan: splitting up the search; I hadn't considered this! It is working > nicely for the time being, thank

Re: [PHP] $_SESSION v. Cookies

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 2:35 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-05-07 at 14:29 -0600, Nathan Nobbe wrote: > > On Wed, May 7, 2008 at 2:22 PM, Robert Cummings <[EMAIL PROTECTED]> > > wrote: > > > > On Wed, 2008-05-07 at

Re: [PHP] Redirection

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 5:55 PM, Ben <[EMAIL PROTECTED]> wrote: > Is there a way to take all the variables, no matter what their names and > values are, from the parameters in a url and POST them to another URL so > that they don't show up in the address bar? I've noticed a huge increase > in > my

Re: [PHP] Recursion... Sort of...

2008-05-08 Thread Nathan Nobbe
On Thu, May 8, 2008 at 3:48 PM, Matt Neimeyer <[EMAIL PROTECTED]> wrote: > Is there a way to tell if a function has been called that has resulted > in a call to the same function? > > We have an in-house CRM app that has a function that draws a tabbed > panel on a screen... BUT if there are sub-su

Re: [PHP] Setting up a program that can be accessed by all domain on a server

2008-05-08 Thread Nathan Nobbe
On Thu, May 8, 2008 at 3:37 PM, Richard Kurth <[EMAIL PROTECTED]> wrote: > Dan Joseph wrote: > >> On Thu, May 8, 2008 at 11:54 AM, Richard Kurth < >> [EMAIL PROTECTED]> >> wrote: >> >> >> >>> Dan Joseph wrote: >>> >>> >>> On Thu, May 8, 2008 at 11:47 AM, Richard Kurth < [EMAIL PROTECTED]

<    4   5   6   7   8   9   10   11   12   >