Re: [PHP] un include?

2007-02-11 Thread Larry Garfield
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

Re: [PHP] un include?

2007-02-10 Thread Larry Garfield
($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

Re: [PHP] include file identifier

2007-02-03 Thread Larry Garfield
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

Re: [PHP] Suggestions of GPL plugin-system?

2007-01-29 Thread Larry Garfield
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 > >

Re: [PHP] Suggestions of GPL plugin-system?

2007-01-29 Thread Larry Garfield
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!

Re: [PHP] Select record by ID

2007-01-29 Thread Larry Garfield
#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

Re: [PHP] Select record by ID

2007-01-28 Thread Larry Garfield
;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

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-28 Thread Larry Garfield
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

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-27 Thread 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]

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-27 Thread Larry Garfield
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: > > >

Re: [PHP] SQL Readability.. (was Re: most powerful php editor)

2007-01-26 Thread Larry Garfield
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

Re: [PHP] most powerful php editor

2007-01-24 Thread Larry Garfield
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

Re: [PHP] most powerful php editor

2007-01-24 Thread Larry Garfield
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

Re: [PHP] Encoding issue with £

2007-01-23 Thread Larry Garfield
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

Re: [PHP] most powerful php editor

2007-01-21 Thread Larry Garfield
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

Re: [PHP] most powerful php editor

2007-01-21 Thread Larry Garfield
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

Re: [PHP] multidimensional array problems

2007-01-19 Thread Larry Garfield
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

Re: [PHP] What makes a PHP expert

2007-01-19 Thread Larry Garfield
, 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

Re: [PHP] What makes a PHP expert

2007-01-19 Thread Larry Garfield
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

Re: [PHP] Mailing list combined with PHP based forum

2007-01-15 Thread Larry Garfield
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: [PHP] Stripslashes

2007-01-14 Thread Larry Garfield
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 > > >

Re: [PHP] Stripslashes

2007-01-14 Thread Larry Garfield
> > > > > > if(!empty($_POST)){ > > > > foreach($_POST as $x => $y){ > > > > $_POST[$x] = stripslashes($y); > > > > } > > > > } > > > > > > > > This came about after someone tried to enter O'Toole in a >

Re: [PHP] Stripslashes

2007-01-13 Thread Larry Garfield
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

Re: [PHP] multidimensional array problems

2007-01-13 Thread Larry Garfield
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:

Re: [PHP] multidimensional array problems

2007-01-13 Thread Larry Garfield
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]', &#x

Re: [PHP] ODBC and long text fields

2007-01-07 Thread Larry Garfield
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

[PHP] ODBC and long text fields

2007-01-07 Thread Larry Garfield
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

Re: [PHP] Re: Are PHP5 features worth it?

2006-12-19 Thread Larry Garfield
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

Re: [PHP] How php works?

2006-12-19 Thread Larry Garfield
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

Re: [PHP] How php works?

2006-12-18 Thread Larry Garfield
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

Re: [PHP] weird timestamp problem

2006-12-07 Thread Larry Garfield
> { > $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

Re: [PHP] alternative method

2006-12-02 Thread Larry Garfield
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

Re: [PHP] func_get_args as a hash? (faster constructors)

2006-11-29 Thread Larry Garfield
!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) {

Re: [PHP] Self generating variables/arrays

2006-11-25 Thread Larry Garfield
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

Re: [PHP] security question

2006-11-22 Thread Larry Garfield
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

Re: [PHP] PHP Programmers

2006-11-18 Thread Larry Garfield
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

Re: [PHP] Smart Quotes not so smart

2006-11-17 Thread Larry Garfield
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 >

Re: [PHP] Dynamic Year Drop Down

2006-11-16 Thread Larry Garfield
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

[PHP] Smart Quotes not so smart

2006-11-15 Thread 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

Re: [PHP] CSS / PHP / Javascript

2006-11-14 Thread Larry Garfield
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

Re: [PHP] Mysql strategy

2006-11-13 Thread Larry Garfield
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

Re: [PHP] http_build_query ... argh

2006-11-09 Thread Larry Garfield
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

Re: [PHP] Nested includes - Relative paths?

2006-11-08 Thread Larry Garfield
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

Re: [PHP] Nested includes - Relative paths?

2006-11-07 Thread Larry Garfield
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?

Re: [PHP] Closing a connection to browser without exiting the script

2006-11-05 Thread Larry Garfield
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

Re: [PHP] str_replace on words with an array

2006-10-30 Thread Larry Garfield
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

Re: [PHP] forms usage in web pages

2006-10-29 Thread Larry Garfield
. > 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

Re: [PHP] heredoc usage [WAS:

2006-10-29 Thread Larry Garfield
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

Re: [PHP] How does the Zend engine behave?

2006-10-26 Thread Larry Garfield
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

Re: [PHP] DATETIME or UNIX TIMESTAMPS?

2006-10-26 Thread Larry Garfield
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

Re: [PHP] Job Opening

2006-10-26 Thread 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

[PHP] Job Opening

2006-10-25 Thread Larry Garfield
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

Re: [PHP] How does the Zend engine behave?

2006-10-25 Thread Larry Garfield
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

Re: [PHP] Creating Tree Structure from associative array

2006-10-19 Thread Larry Garfield
> > *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:

Re: [PHP] A no brainer...

2006-10-16 Thread Larry Garfield
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

Re: [PHP] Retrieving values from array on a class

2006-10-15 Thread Larry Garfield
:$instance = array($a, $b, $c, $d); >} >return self::$instance; > } > > private function __clone(){ > } > > } > > ?> > > > This way i can't get the array elements. > I'

Re: [PHP] Retrieving values from array on a class

2006-10-14 Thread Larry Garfield
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

Re: [PHP] A no brainer...

2006-10-14 Thread Larry Garfield
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

Re: [PHP] A no brainer...

2006-10-13 Thread Larry Garfield
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

Re: [PHP] OOP slow -- am I an idiot?

2006-10-10 Thread Larry Garfield
'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

Re: [PHP] need help to build a query

2006-10-09 Thread Larry Garfield
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

Re: [PHP] Uploading files / processing with a PHP script

2006-10-08 Thread Larry Garfield
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

Re: [PHP] Coding Style Question...

2006-10-02 Thread Larry Garfield
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

Re: [PHP] Logical OR in assignment

2006-09-27 Thread Larry Garfield
~~~ > 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

Re: [PHP] Best open source project/framework to support a php training course?

2006-09-27 Thread Larry Garfield
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

Re: [PHP] readdir

2006-09-15 Thread Larry Garfield
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

Re: [PHP] Months between two dates

2006-09-15 Thread Larry Garfield
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

Re: [PHP] register globals on

2006-09-12 Thread Larry Garfield
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

Re: [PHP] Re: IE session problem on one server only

2006-09-09 Thread Larry Garfield
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

Re: [PHP] Strange server crash problem

2006-09-08 Thread Larry Garfield
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

Re: [PHP] Directory Structure

2006-09-07 Thread Larry Garfield
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]

Re: [PHP] Strange server crash problem

2006-09-07 Thread Larry Garfield
#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

[PHP] IE session problem on one server only

2006-09-07 Thread Larry Garfield
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

[PHP] Strange server crash problem

2006-09-07 Thread Larry Garfield
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

Re: [PHP] Re: Functions vs html outpuit

2006-09-03 Thread Larry Garfield
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

Re: [PHP] Re: Recommendations for PHP debuggers?

2006-08-26 Thread Larry Garfield
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

Re: [PHP] Re: Recommendations for PHP debuggers?

2006-08-26 Thread Larry Garfield
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

Re: [PHP] functions classes

2006-08-25 Thread Larry Garfield
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

Re: [PHP] Recommendations for PHP debuggers?

2006-08-22 Thread 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

Re: [PHP] Re: Recommendations for PHP debuggers?

2006-08-21 Thread Larry Garfield
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

Re: [PHP] Shopping cart

2006-08-21 Thread Larry Garfield
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: >

Re: [PHP] Recommendations for PHP debuggers?

2006-08-21 Thread Larry Garfield
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'

Re: [PHP] Shopping cart

2006-08-20 Thread Larry Garfield
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.

Re: [PHP] Shopping cart

2006-08-19 Thread Larry Garfield
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 >

Re: [PHP] Dhtml/javasript layer tips or software (0.T)

2006-08-18 Thread Larry Garfield
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

Re: [PHP] Easier way to get the name of a variable?

2006-08-15 Thread Larry Garfield
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

Re: [PHP] Re: loop in horizontal direction (php-html)

2006-08-10 Thread Larry Garfield
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

Re: [PHP] Mixing sprintf and mysql_real_escape_string

2006-08-08 Thread Larry Garfield
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

Re: [PHP] Saving a dynamic file

2006-07-29 Thread Larry Garfield
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

Re: [PHP] Return Values Copied? Copied if By Reference?

2006-07-26 Thread Larry Garfield
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?

Re: [PHP] xml v php question

2006-07-25 Thread Larry Garfield
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

Re: [PHP] xml v php question

2006-07-24 Thread Larry Garfield
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

Re: [PHP] Re: SQL Result Set -> HTML Table Fragment (but Simple)

2006-07-24 Thread Larry Garfield
= 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

Re: [PHP] Enterprise grade CMS+Ecomm

2006-07-20 Thread Larry Garfield
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

Re: [PHP] possible IE problem

2006-07-10 Thread Larry Garfield
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

Re: [PHP] GD to database directly

2006-07-10 Thread Larry Garfield
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

Re: [PHP] combine implode() and array_keys() to get a string of key names

2006-07-10 Thread Larry Garfield
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

Re: [PHP] global class instance

2006-07-01 Thread Larry Garfield
; 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: >

Re: [PHP] global class instance

2006-07-01 Thread Larry Garfield
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.

Re: [PHP] creating a threaded message system--sorting messages

2006-06-30 Thread Larry Garfield
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

<    1   2   3   4   5   >