Search found 10 matches

by PCSpectraRetired
Sun Sep 25, 2005 10:20 pm
Forum: PHP - Theory and Design
Topic: Generic paging class
Replies: 1
Views: 984

Generic paging class

I HATE writing code for pagination of records and having to keep track of the page index, number of items to display, etc...so I have considered trying to invent some generic paging class to assist in the madness... I have looked at all the PHP Paging classes out there (from what could be easily fou...
by PCSpectraRetired
Tue Sep 20, 2005 7:14 pm
Forum: PHP - Code
Topic: function call type???
Replies: 8
Views: 676

results from PHP 5.0.4 [feyd@home]>php -r "class foo{ static function bar() { return is_object($this); } } var_export(foo::bar());" PHP Notice: Undefined variable: this in Command line code on line 1 Notice: Undefined variable: this in Command line code on line 1 false PHP 5 chokes eh.......
by PCSpectraRetired
Tue Sep 20, 2005 2:17 pm
Forum: PHP - Code
Topic: function call type???
Replies: 8
Views: 676

we use these in our framework /** * isStaticCall * checks the call-stack to see if its calling method is being called statically * @param $aOffset integer how many more steps back into the call stack should it step * @author feyd * @return boolean */ function isStaticCall($Offset=0) { $stack = debu...
by PCSpectraRetired
Tue Sep 20, 2005 2:05 pm
Forum: PHP - Code
Topic: function call type???
Replies: 8
Views: 676

It can be read from the result of debug_backtrace(), but I wouldn't rely on it, since it's a debugging function and might change when you least expect it ... Why do you need that? Cool... :) Years of using PHP and i've never even known about these functions :) However like you said, there is someth...
by PCSpectraRetired
Tue Sep 20, 2005 2:11 am
Forum: PHP - Code
Topic: function call type???
Replies: 8
Views: 676

function call type???

This may not even be possible, but what the heck :) Does anyone know of a way to determine whether a classes member function was called statically via the scope resolution operator :: or normally via -> Is there anyway to determine this inside the function just called??? I hoping that PHP's powerful...
by PCSpectraRetired
Sun Aug 28, 2005 9:06 pm
Forum: General Discussion
Topic: Canadian Postal Code Database
Replies: 8
Views: 1888

Just to reconfirm... You cannot download a freely available database of Postal Codes for Canada. It doesn't exist - i've looked and contacted CPost about it. I'm not sure if you could create your own - which I thought of doing, using their postal code maps and a lat/long plotter, but that's probably...
by PCSpectraRetired
Sun Aug 28, 2005 9:02 pm
Forum: General Discussion
Topic: PHP Editor
Replies: 28
Views: 3307

IMHO UltraEdit is the best editor out there for PHP, Perl , etc that don't have a dedicated IDE. It is very fast and can handle large files easily, although...files shouldn't be that large anyway :) It even has Indent/Unindent and column selection capabilities, which IMHO come in really handy when c...
by PCSpectraRetired
Sun Aug 28, 2005 9:00 pm
Forum: General Discussion
Topic: PHP Editor
Replies: 28
Views: 3307

Ah. At the risk of sounding arrogant, it seems to me that keeping code broken into manageable functions avoids the need for anything like that. I've never felt the need to get any code"out of my way" in that fashion, and I've been doing this since 1980 or so, including applications and sy...
by PCSpectraRetired
Sun Aug 28, 2005 8:37 pm
Forum: Job Hunt
Topic: Looking to buy an original PHP script for resale
Replies: 21
Views: 8773

something tells me i would rather not as it's probably gonna be used to support some outsourcing country that's gonna say "we did this.. and we can do this as well" when in fact, they have no idea what they are doing to begin with. but hey, i might be wrong, and if I am sorry. But if I'm ...
by PCSpectraRetired
Sun Aug 28, 2005 8:27 pm
Forum: Job Hunt
Topic: Looking to buy an original PHP script for resale
Replies: 21
Views: 8773

Re: Looking to buy an original PHP script for resale

I would like to buy an original PHP script. I am not really particular as to the nature of the script. I will consider just about anything. The script must be your own work and not include GNU. After the sale, complete rights to the script, all source code, and documentation will transfer to me. Pl...