Copying back to the list where it belongs...
On Sunday 11 February 2007 11:01 am, jekillen wrote:
> On Feb 10, 2007, at 8:58 PM, Larry Garfield wrote:
> > You need to rearchitect your system.
> >
> > When you include a file, its code executes. Once it has been
> > ex
($fileToInclude, 'r');
> $str = fread($fr, filesize($fileToInclude))
> fclose($fr);
> // make alterations to $str
> // reopen file and write the changes
> // done but in test function I have written changes have not been made
> }
> looked through the O'Reilly book Progr
hat is not dependent on other variables.
realpath(__FILE__) will give you the absolute path on the server of the
current file, which is unique. Why you want that for what you're doing I
have no idea, but it's the only unique identifier I can think of that isn't a
variable or constan
On Monday 29 January 2007 8:37 pm, Robert Cummings wrote:
> On Mon, 2007-01-29 at 20:02 -0600, Larry Garfield wrote:
> > I was looking for a similar good-example about 2 years ago. What I found
> > was Drupal (http://drupal.org/), and it's hook system. I have since
> >
there is some good GPL modular
> software around (such as Joomla, PHP-Nuke, PHPbb, etc, etc.) that you have
> been working with as a coder. Could any of you suggest a certain GPL
> application that has a great module setup that I could take a look at?
>
> Thanks a lot for your time!
#x27;s some reason for it deep in the bowels of SQL
engines as they existed in the early '80s, but for anyone trying to not
hand-write every frickin' SQL query and automate common tasks it makes life
considerably more annoying.
--
Larry Garfield AIM: LOLG42
[EMAIL PROT
;t wrong
> neither, simply optional.
Actually, I believe they are wrong in some database engines but not others.
MySQL doesn't care. Some others do. Yes, it sucks. :-(
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made
ey are intrinsically atomic (in the sense
> that database transaction 'should' be).
>
> rgds :-)
Well, business reasons dictate that we keep our code portable when possible at
work. I'm not the business person. I just write the code. :-)
--
Larry Garfield
which technically gives you values 0-9.
And yes, I agree that MySQL has fairly decent date manipulation routines. But
at work we do try for database independence when possible, so except on
specific projects we try to avoid it.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED]
On Saturday 27 January 2007 7:43 am, Jochem Maas wrote:
> Larry Garfield wrote:
> > I have long since given up on raw insert/update/delete statements as the
> > syntax is all kinds nasty. These days I just do this, which is even
> > easier and more powerful:
> >
>
en in the wild. Not only is it easier to read, but the task of
> > adding
> > or removing selected fields is trivial.
>
> I meant ONLY the SELECT part on a single line.
>
> Only a moron would cram the FROM and all that into the same line.
>
> :-)
>
> $query = "SELECT
r.
- Real-time debugger. The only one I've found that works for me so far is
Zend's. I cannot overstate how useful a real-time debugger is for tracking
down bugs in complex applications.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
So,
optimize your style for readability. Readability is, of course, partially
subjective so your style will differ from my style, but the key point is
still to optimize the code for when you come back in 3-6 months to add a
feature or find an obscure bug and don't remember what the frel yo
ds I am getting,
> for example, £7 rather than £. Is this an encoding issue?
>
> Many thanks in advance...
Yep, sounds like encoding to me. This article talks more about smart quotes
than the £ sign, but the recommendation applies for that as well.
http://www.garfieldtech.com/blog/stupid-qu
other PHP plugin for Eclipse, and that one behavied like you
> describe, therefore my change to SourceForge PHP Eclipse Plugin.
>
> Best regards,
> Peter Lauri
>
> www.dwsasia.com - company web site
> www.lauri.se - personal web site
> www.carbonfree.org.uk - become Carbon
C Silva [mailto:[EMAIL PROTECTED]
> Sent: Sunday, January 21, 2007 2:54 AM
> To: php-general@lists.php.net
> Subject: [PHP] most powerful php editor
>
> hi everyone!
>
> i'd like to ask something maybe commonly asked here. what is the most
> powerful php editor?
--
Larry G
l_fetch_object($memrosterresults)) {
> $roster[$record->game][] = $record;
> }
> ksort($roster);
> foreach ($roster as $game => $records) {
>print "\n";
>print "{$game}\n";
>print "Name Rank Country Email\n";
>fo
, is
> the 'PHP way'
>
> unless there are seriously obvious flaws with an approach, you can often
> have different approaches of solving a problem that pretty much lead to the
> same result..
>
> peace...
>
>
>
> -Original Message-
> From: Larry Garf
nization, documentation, and
> consistency. Is the programmer published (articles, books, etc) which
> may not count against expertise?
>
> An expert encompasses so much more than skills. For instance, I could be
> an expert on football because I understand history of the
e off with some tips as to how, and if, this might be
> possible?
>
> Thanks for any advice or informaiton.
>
> --
> Dave M G
> Ubuntu 6.06 LTS
> Kernel 2.6.17.7
> Pentium D Dual Core Processor
> PHP 5, MySQL 5, Apache 2
--
Larry Garfield AIM: LOLG4
re a special way this needs
> to be done?
>
> Thanks
>
> > Thanks
> >
> > > -Original Message-
> > > From: Larry Garfield [mailto:[EMAIL PROTECTED]
> > > Sent: January 14, 2007 4:39 PM
> > > To: php-general@lists.php.net
> > >
> >
> > > > if(!empty($_POST)){
> > > > foreach($_POST as $x => $y){
> > > > $_POST[$x] = stripslashes($y);
> > > > }
> > > > }
> > > >
> > > > This came about after someone tried to enter O'Toole in a
>
g a web host that doesn't let you do
so, get a real web host.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking
kup table and member table. Do
> you think it would be better possably to do seperate querys and then match
> them in php? would that be possable the given the setup i have?
>
> >From: Larry Garfield <[EMAIL PROTECTED]>
> >To: php-general@lists.php.net
> >Subject:
gt; (`user_id`, `user_level`, `list_order`, `user_name`, `password`, `email`,
> `country`, `game`, `rank`, `qoute`, `config`, `map`, `gun`, `brand`, `cpu`,
> `ram`, `video`, `sound`, `monitor`, `mouse`) VALUES (2, 1, 1, 'raze',
> 'itsme', '[EMAIL PROTECTED]',
on to the MSSQL server as well as making the issue go
> away.
I don't believe the client allows direct MSSQL connections. Besides, the
MSSQL functions still require an ODBC driver underneath, so if the problem is
with the ODBC driver then that won't change anything.
--
Larry
eld rather than a
varchar or int?
I am confused, and would appreciate assistance in becoming less confused. :-)
Thanks.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
excl
uldn't do in PHP 4, but if all you know
is PHP 4 then you don't know what they are yet. Your argument is logically
false.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all o
t; the most part do as you please with the code.
That's nice. It's also not what I asked. I asked what it was that made it
GPL-incompatible.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less
on this topic for them then, much less now.
Is that why the PHP License is non-GPL compatible, or is there a different
reason for that? (That's always bugged me, personally.)
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature
> {
> $time_start = $start_c;
> $loop_s = $loop_s+900;
> $time_end = $end_c;
>
> $unix_e = $time_end-900;
> $unix_s = date("U", $time_start);
>
> $timeloop_e = date("g:i A", $time_end);
> $timeloop_s = date("g:i A&quo
methods are more secured that those 2.
>
> thx.
> Alain
>
> Windows XP SP2
> PostgreSQL 8.1.4
> Apache 2.0.58
> PHP 5
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature ha
!isset($params['baz']) $params['baz'] = 'b';
...
}
Or for a constructor, you'd do something like this:
class Foo {
private $bar = 'a';
private $baz = 'b';
function __construct($params) {
foreach ($params as $key => $value) {
e I am on the right track.
> Perhaps someone can say yay or nay on the spot, if not
> I can go back and do some experimenting.
> Thanks in advance
> Jeff K
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one
On Wednesday 22 November 2006 22:38, Robert Cummings wrote:
> > maybe we should all refer to forum and google
>
> Teach a man to fish...
And you lose your monopoly on fisheries.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If na
one sites
ranging from small non-profits up through multiple tier-one universities.
We're based in the Chicago area. Contact me off list for details if you're
interested in more info.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If
On Thursday 16 November 2006 14:07, Chris Shiflett wrote:
> Larry Garfield wrote:
> > I've run into this sort of issue a few times before, and never
> > found a good solution.
>
> Not sure if this is the solution you're looking for, but you can convert
>
ly, I could easily
> hard code this or use a combination of the date and mktime functions
> to populate the select. However, I'm looking for a more elegant way
> of doing this.
>
> Thanks for pointing me in the right direction.
>
> Al Padley
--
Larry Garfield
ion, myself. Does
anyone have any better ideas to suggest? Any idea what those smart quotes
actually are, and if they exist in ANY valid character set other than Word
itself?
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has mad
ith
> > defining style sheets for different target browsers and platforms?
> >
> > -Ed
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
--
Larry Garfield AIM: LOLG42
[EMAI
d to do in PHP
with a loop to rebuild a result array. The performance hit for that is not
that big, however, and if you free() the result set afterward then the memory
usage is not a major issue either.
If you're finding your query is slow, look into your indexes. Just today
ad of as GET parameters of a URL.
Er, wouldn't the better solution be to fix http_build_query to not break when
handling fairly typical PHP URLs?
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible th
s
> (defined by include_path) using a priority for that.
>
> Right?
Correct.
http://www.php.net/set_include_path
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive
contains ".", and apache executes a.php,
and a.php includes "foo/b.php", and b.php includes "c.php", then "c.php" is
looked up on the file system as "./c.php", relative to a.php, since that's
what apache is actually running.
Got that?
t;> www.thecodingmachine.com
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >
> > If you haven't gone with any of the listed methods yet you could use
> > fsockopen
trying to
concatenate a string to an array, which as others have said will absolutely
not work.
I can't guarantee that the above code is the best performant method, but it
works. :-)
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nat
.
> what are the pros and cons of using that.
>
> Please forgive me if this is not the right mailing list to post this
> question. But help me out in clarifying this basic doubt.
>
> thanks in advance
>
> Karthi
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED
sing DOM 2 event handlers
anyway, but that's beside the point... :-)
It surprised me, too, when I realized single quotes were kosher (X)HTML, but
it can be quite convenient.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any
t;Split mode". It was
something chx was putting together a while back. I don't know what it's
status is, but he claimed to get a nice performance boost out of it.
Cheers.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If natur
n Postgres', which are different
than Oracle's, etc.
Generally, most of the the math I need to do I can do in PHP either before or
after grabbing the timestamp.
I am sure there is a counter point, but this for what I do I just stick to
timestamps. :-)
--
Larry Garfield
On Wednesday 25 October 2006 22:15, Larry Garfield wrote:
> Well since the consensus seemed to be to allow job postings, I'll make
> one. :-)
>
> My company is looking for a few good PHP programmers.
>
> We are a Chicago-area web consulting firm developing web sites and w
a
must.
If interested, contact me OFF-LIST for more information. Note: I am NOT in a
hiring position, so do NOT send me your resume. :-) I'm just going to pass
you on to the person who is.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"I
ad a slight performance
> edge for my app up until APC's most recent release, where APC now has a
> significant edge.)
>
> > Fourthly, am I right in understanding that scripts do NOT share
> > Fifthly, if a script takes 4MB, given point 4, does the webserver
> &g
>
> *Telephone:* +27 (021) 469 1052
> *Mobile:* +27 (0) 72 441 3355
> *Fax:*+27 (0) 86 681 5885
> *
> Web:* http://www.zlogic.co.za
> *E-Mail:* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
--
Larry Garfield AIM:
rmance-wise when you
need to store data. The right balance will depend greatly on your use case.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is th
:$instance = array($a, $b, $c, $d);
>}
>return self::$instance;
> }
>
> private function __clone(){
> }
>
> }
>
> ?>
>
>
> This way i can't get the array elements.
> I'
On Saturday 14 October 2006 19:09, AR wrote:
> Hello,
>
> I've rewritten my class as you told me:
>
> --
> class returnConfigParams
>
> {
>
> private static $instance = NULL;
>
> var $a;
> var $b;
> var $c;
> var $d;
>
> private
hange by your next
page request anyway is a waste of cycles.
Is your data needed on every page load? Putting a complex data structure into
the session if you only need it occasionally is a waste of cycles. You're
better off rebuilding it each time or implementing your own caching m
is of interesting size, and you have to keep in mind
that if you aren't syncing to the database periodically then you will end up
with stale data objects. (An issue in any case, but the longer the object
representing a view of your database exists, the more of a problem it
becomes. YMMV d
't seem like an
> optimal solution.
>
>
> * Where am I going wrong?
> * Tell me how YOU fetch data from multiple objects to generate reports.
> * Is this an instance where it's better to just ignore OOP rules and go
> straight to the data? Whew, that's not fun to thin
general, fewer queries == A Good Thing.
If you can do with a join or subselect what would take n queries otherwise,
do so.
Also, JOIN is faster than sub-queries. Be aware, though, that MySQL doesn't
support sub-queries until version 4.1.
--
Larry Garfield AIM: LOLG
lution is to set the file's group permissions to 7, then chown the
file to apache:mygroup, then put both apache and your ftp user into the
mygroup group.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less
classes on tr tags for me.)
Again, credit here goes to the Drupal CMS, which uses a much more developed
and refined version of this concept.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptib
~~~
> The Ohio State University [www.osu.edu]
> Computer Science & Engineering [www.cse.osu.edu]
>
> --
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.405 / Virus Database: 268.12.8/455 - Release Date: 9/22/2006
--
L
nd should) then use in all their later projects.
10 points off for every way you find to hack their code. :-)
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the ac
27;re on PHP 5, look at scandir(). It gives you an array of all of the
files/directories in a given directory, which you can then sort with sort()
or usort() or whatever. If you're on PHP 4, there's a backport of it in
PEAR::PHP_Compat that doesn't actually require the rest of PEAR
them.
> I was wondering if there was a quick and dirty way to do this without a for
> loop.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is
is so paranoid that they're blocking on-site session cookies then
they shouldn't be allowed to use a web browser in the first place. :-)
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible t
site.
We get the same symptoms from multiple systems. I get it on my work
desktop, and on the client's desktop in another city.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than al
On Friday 08 September 2006 01:22, Robert Cummings wrote:
> > > Binary search using error_log() and __LINE__ output to track down where
> > > the thing dies.
> >
> > Binary search? I must be using a different definition than you are,
> > since I don't know what a binary search would do for me whe
me to fix this.
The following may prove useful:
http://us2.php.net/scandir
http://us2.php.net/manual/en/function.readdir.php
http://us2.php.net/manual/en/class.dir.php
http://us2.php.net/manual/en/spl (for very new PHP 5)
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED]
#x27;s always at
the end of a given loop iteration in the code that generates the sidebar; at
the end of the loop that passes the 4 KB mark, it seems.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less suscep
not the other now. If it were
the other way around I wouldn't care, but the live site shouldn't break. :-)
Any idea what could be the problem?
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less s
ve direct
access to the box, so I can't check server logs myself.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power calle
akes to connect to your SQL database in the
first place will be an order of magnitude larger than whatever it is you're
doing anyway. :-)
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible tha
ough I'm extremely upset at projects being removed in 3.5. Apparently
there's now a plugin for it to add projects back in, but it's only available
as source. As far as I'm concerned, if it requires a compiler to install
then it's not actually released and doesn't
On Tuesday 22 August 2006 03:33, Colin Guthrie wrote:
> Larry Garfield wrote:
> >> http://www.zend.com/phpide/
> >
> > I just tried to install the modular version for my existing Eclipse
> > install. It insists it won't install without feaure org.eclipse.emf
ll be hell to fix because of the way
it's built.
Most code probably isn't quite that bad, though. Your code could already
break down into functions quite nicely, or it could be easier to just start
from scratch. No way to tell without seeing the code.
--
Larry Garfield
On Tuesday 22 August 2006 00:26, Lester Caine wrote:
> Larry Garfield wrote:
> > I'm watching this thread closely myself, as I'd love something to use at
> > home (on Linux) that doesn't cost what Zend does. :-) Currently I use
> > PHPeclipse, but it is frankl
On Monday 21 August 2006 09:52, Colin Guthrie wrote:
> Larry Garfield wrote:
> > I'm watching this thread closely myself, as I'd love something to use at
> > home (on Linux) that doesn't cost what Zend does. :-) Currently I use
> > PHPeclipse, but it is frankl
w not to write a PHP
application, of any kind.
On Monday 21 August 2006 15:18, Gerry D wrote:
> So if I understand you gentlemen correctly, these pre-builds serve as
> examples how NOT to do it?
>
> Gerry
>
> On 8/20/06, Larry Garfield <[EMAIL PROTECTED]> wrote:
>
ving
> very friendly and responsive support staff. But I would have much rather
> not needed to use their support so much.
>
> But I'd rather that then have to have to build my own set of error
> handlers, which would themselves need constant tweaking, especially as
> I'
On Sunday 20 August 2006 20:17, Gerry D wrote:
> On 8/19/06, Larry Garfield <[EMAIL PROTECTED]> wrote:
> > OSCommerce is crap. Don't bother.
>
> Why do you say that, Larry? I may want to get into an app like that
> because I think one of my clients is ready for it.
interface lies between the chair and the keyboard.
> - Creativity is great, but plagiarism is faster!
> - Smile, everyone loves a moron. :-)
>
> __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
>
z in which case the hint and solution can be condusive
> to further learning.
>
> As you say though, if it were a test, I'd use Ajax and register the show
> hint/solution request. Probably incurring full point loss for show
> solution and partial point loss for s
ack of where that thread ended, so apologies if this is a
> non-issue.
Gah! Please tell me you're joking. That would kill one of PHP's best
features, the fact that you can have dynamic data structures.
PHP != Java!!!
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECT
icitly where
things end, so the browser doesn't have to guess. When doing anything
interesting with CSS or Javascript, knowing explicitly exactly where your DOM
tree breaks down is critical. It also means that whenever you do start
sending XHTML as XHTML, you're 90% done with
SQL's
locale settings and various other rules, including escaping quotes as
appropriate.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the
ed in this e-mail are those of the author of the message and do not
> necessarily coincide with those of Radiomovil Dipsa, S.A. de C.V. or any of
> its control, controlled, affiliates and subsidiaries companies. No part of
> this message or attachments may be used or reproduced in any manne
and so copies are essentially shared until such
> time as you modify one of them. If you don't need references then copies
> are faster than references.
By the same token, then, if I have a function that generates a large string
and returns it, is there any benefit to return-by-reference?
On Tue, July 25, 2006 3:15 pm, Kevin Waterson said:
> This one time, at band camp, Larry Garfield <[EMAIL PROTECTED]>
> wrote:
>
>> The correct answer is (b). (PHP 6 won't even have short tags, so get
>> used to
>> not having them.)
>
> ummm, I thin
ve
> the header.
>
> Is this problem solvable? I've been told that better minds have
> already tried and failed to resolve this issue.
>
> So, what say you group?
>
> Thanks in advance for any replies, comments, explanations, or solutions.
>
> tedd
> --
&g
= mysql_num_fields($result);
for($i=0; $i < $num_fields; $i++) {
echo "", mysql_field_name($result, $i), "";
}
echo "";
while ( $row = mysql_fetch_row($result) ) {
echo "" . implode("", $row) . "";
}
echo "";
The above should wo
isting modules.
Drupal's main disadvantage: There's a metric fuckton of modules and just as
many ways to combine them. The "don't code, just configure" option is not
always easy to figure out because it's just so flexible.
(Disclaimer: I am a Drupal developer, a
gt; exit;
>
> Thanks!
>
> --
> Kind Regards
> Schalk Neethling
> Web Developer.Designer.Programmer.President
> Volume4.Business.Solution.Developers
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than al
be a performance hit over just passing a normal file that
can be streamed right off the disk to the server's NIC.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
excl
t has some
Drupal-isms in it, but for the most part is fairly clear. It also handles
insert, update, and delete, too.
[1] http://drupal.org/node/30334
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less su
; Thanks Larry but i'm working on PHP4. Also you don't use $a directly.
> Instead of writing
> $a = A::instance();
> i can write:
> global $a
>
> both takes two steps which is not what i wanted.
>
> On 7/1/06, Larry Garfield <[EMAIL PROTECTED]> wrote:
>
nction that is a
> method of another class.
>
> class b
> {
>function print()
>{
> $a->print();
>}
> }
>
> i don't want to:
>- declare global $foo,
>- use pre-defined $GLOBALS variable,
>- or use a::print
>
> thanks.
tree for a set of nodes?
Date: Sunday 04 June 2006 12:38
From: Larry Garfield <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
On Sunday 04 June 2006 11:27, Niels wrote:
> This sounds fine -- recursion is obviously the way to go. Where can I see
> your function?
>
> I tried several dif
301 - 400 of 425 matches
Mail list logo