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] What makes a PHP expert

2007-01-19 Thread Larry Garfield
ust an indication that they don't not know what they're doing. On Friday 19 January 2007 9:43 am, bruce wrote: > larry... > > sounds good... however, given that you often have a myriad of different > ways to solve a problem, how does on determine which of the solutions

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] 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] 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] 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-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] 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] 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] 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-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-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] 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] 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] 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] 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] 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] 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] 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

[PHP] New To PHP

2007-02-20 Thread Larry Chu
I am new to php and was trying to view the code below. I do see in my browser the question that is being asked, but for some reason the answer is not displayed. I am copying this from a book and am sure I have typed everything as it should be typed. Can you please tell mw what might be wrong?

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Larry Garfield
t works fine this way, as soon as I change the form to > method="get" it looses the parameter "kind" when I change e.g. the > second parameter from "-Alle-" to "Gültig". Has anybody an idea why it > works with POST but not with GET? > > > ...

[PHP] FTP issues

2007-02-28 Thread Larry Bradley
ems, but maybe one of you has run across similar issues. Many thanks. Larry Bradley Orleans (Ottawa), Ontario, CANADA -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] best framework (pear vs zend framework)

2007-03-01 Thread Larry Garfield
ough with the one-form-per-page limitation. That is my opinion from not actually building anything with it yet, at least. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclu

Re: [PHP] Holes in mysql primary key and other db issues...

2007-03-04 Thread Larry Garfield
)) { $records[] = $record; } array_shuffle($records); for ($i=0; $i < 3; ++$i) { $use[] = $records[$i]; } Now you have an array, $use, that is 3 random entries from the last 10, ordered by a time field. The unique ID is irrelevant to that, as it should be. -- Larry Garfield

Re: [PHP] Re: [PHP-DB] array field type

2007-03-04 Thread Larry Garfield
ot SO BIG > deal (for now of course). > > My db expertise covers a bit mysql and mysql does not have any array type > field (enum just so simple). > > I just want to know is there any way to keep array data type natively in a > sql field. > > Regards. > > Sancar -- L

Re: [PHP] Is there a way to un include a file

2007-03-07 Thread Larry Garfield
be doing some experimentation. > Thanks in advance; > Jeff K -- 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 called

Re: [PHP] Array mysteries

2007-03-11 Thread Larry Garfield
ay each > time, as compared to a switch statement? Just another thought... > > Ed That's why you can just declare it static: function convert_from_weekday ($weekday) { static $wdays = array( 0 => "Sonntag", 1 => "Montag&

Re: [PHP] php 4 and 5

2007-03-11 Thread Larry Garfield
ation isn't already presented to you on a silver platter. -- 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 called

[PHP] Redirecting in a PHP script

2007-03-12 Thread Larry Bradley
Javascript code really does the same as the PHP stuff, and thus must obey the same rules, but I'm not sure. Comments? Larry Bradley Orleans (Ottawa), Ontario, CANADA

Re: [PHP] different and logic between PHP4 and PHP5

2007-03-13 Thread Larry Garfield
start with. :-) Find whoever you inherited the code from and shoot him. (Really, I know how badly inherited code can suck.) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of

Re: [PHP] register_globals and passing variables

2007-03-14 Thread Larry Garfield
t they use suPHP to parse php > files and I have the option of using custom php.ini files. That I could > create a .htaccess file or put individual php.ini files in the folder that > contains the files im running. In other words do it myself. > > > So I created this file: &

Re: [PHP] Preventing unwanted chars from outputting

2007-03-18 Thread Larry Garfield
tech.com/blog/unicode-8-vs-16 -- 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 called an idea, which an individual may

Re: [PHP] Preventing unwanted chars from outputting

2007-03-18 Thread Larry Garfield
On Sunday 18 March 2007 2:17 pm, Robert Cummings wrote: > On Sun, 2007-03-18 at 13:58 -0500, Larry Garfield wrote: > > On Sunday 18 March 2007 5:57 am, Don Don wrote: > > > Hi all, > > > my program outputs some characters along with text from the database, > > &

[PHP] PDO and buffered queries

2007-03-28 Thread Larry Garfield
roughly confused at this point, and the manual is quite unclear on all of the important details I care about. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusiv

Re: [PHP] PDO and buffered queries

2007-03-31 Thread Larry Garfield
So there's no PDO experts out there, eh? :-( On Wednesday 28 March 2007 11:14 pm, Larry Garfield wrote: > HI all. The PHP.net manual is somewhat unclear on this point, so I thought > I'd ask here. Does PDO automatically buffer queries the way that the > mysql_* extension does

Re: [PHP] PDO and buffered queries

2007-04-01 Thread Larry Garfield
On Sunday 01 April 2007 3:42 am, Tijnema ! wrote: > > On Wednesday 28 March 2007 11:14 pm, Larry Garfield wrote: > > > HI all. The PHP.net manual is somewhat unclear on this point, so I > > > thought I'd ask here. Does PDO automatically buffer queries the way >

Re: [PHP] PDO and buffered queries

2007-04-01 Thread Larry Garfield
On Sunday 01 April 2007 3:09 pm, Jürgen Wind wrote: > Larry Garfield wrote: > > ...segfaults under PHP 5.1.6 ... > > php 5.1.5/6 was the source for many segfaults (f.e. using phpmyadmin) > better don't use it any more. See also: > http://bugs.php.net/bug.php?id=39

Re: [PHP] Question on Portfoilo's

2007-04-09 Thread Larry Garfield
s that > your provide to a potential employer? What things do you feel I should > avoid when putting this kinda of thing together? -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all oth

Re: [PHP] php5 oop question

2007-04-12 Thread Larry Garfield
, they can make PHP code more intuitive > for people who weren't the ones who created it. I don't think they > make code execution any faster (or slower, for that matter). It's > worth knowing about them, but they probably shouldn't change your day > to day practices. As wit

Re: [PHP] isset

2007-04-15 Thread Larry Garfield
t, regardless of the language. If you want your syntax to be a bit simpler, I frequently use helper functions along these lines: function http_get_int($var, $default=0) { return isset($_GET[$var]) ? (int) $_GET[$var] : $default; } if (http_get_int('var') ==5) { // Do stuff } Clean to read,

Re: [PHP] CSS vs. Tables OT

2007-04-17 Thread Larry Garfield
rden.com/ > > Only with hacks. Using tables for layout *is* a hack. A common one, but still a hack. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it

Re: [PHP] CSS vs. Tables OT

2007-04-17 Thread Larry Garfield
On Tuesday 17 April 2007 8:14 pm, Robert Cummings wrote: > On Tue, 2007-04-17 at 18:53 -0500, Larry Garfield wrote: > > On Tuesday 17 April 2007 3:40 pm, Robert Cummings wrote: > > > > BTW, any web developer worth his or her salt with a reasonable amount > > > >

Re: [PHP] CSS vs. Tables OT

2007-04-17 Thread Larry Garfield
On Tuesday 17 April 2007 9:54 pm, Robert Cummings wrote: > On Tue, 2007-04-17 at 21:21 -0500, Larry Garfield wrote: > > On Tuesday 17 April 2007 8:14 pm, Robert Cummings wrote: > > > On Tue, 2007-04-17 at 18:53 -0500, Larry Garfield wrote: > > > > On Tuesday 17 April

Re: [PHP] php exception handling

2009-10-11 Thread Larry Garfield
Print user friendly message. // Log detailed information or whatever you're going to do. } -- Larry Garfield la...@garfieldtech.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Classes and Functions

2009-11-01 Thread Larry Garfield
nstants http://www.php.net/get_declared_classes http://www.php.net/get_declared_interfaces http://www.php.net/get_included_files -- Larry Garfield la...@garfieldtech.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Good SQL builder class

2009-12-05 Thread Larry Garfield
ay like : > > $home["street"] = test2; > $home["housenr"] = 2; > > > but the idea stays the same = the index is the name of the DB fields > and the assigned value the element > > > > I have looked on hotscripts and phpclasses but I have no idea how

Re: [PHP] OOP Design Question

2009-12-20 Thread Larry Garfield
g all 60 classes even when you're only going to use 2; you're still loading up roughly the same amount of code. Parsing it as one mega class or one big parent with a few small child classes is about a break-even as far as performance goes, but the mega class is much poorer architecture. -- Larry Garfield la...@garfieldtech.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] efficiency of include()

2009-12-20 Thread Larry Garfield
#x27;m pretty sure that PHP will recognize that it's already parsed that file and keep the opcode caches in memory, so it needn't hit disk again. I've not checked into that part of the engine, though, so I may be wrong there. -- Larry Garfield la...@garfieldtech.com -- PHP Gen

Re: [PHP] OOP Design Question

2009-12-20 Thread Larry Garfield
art on your specific use case. The most important aspect of a good autoload mechanism, though, is that it's fast and extensible. Use spl_autoload_register() instead of __autoload(), and make sure that you keep the runtime of your autoload callbacks to an absolute minimum. (A DB hit

Re: [PHP] Multiple Inheritance Concern

2009-12-25 Thread Larry Garfield
g checks against the interfaces rather than the classes themselves. If they don't, you should file a bug against that base library as They're Doing It Wrong(tm). -- Larry Garfield la...@garfieldtech.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Accessing Objects - Object to Object Communication

2009-12-26 Thread Larry Garfield
ction or factory object: function create_page($root) { $db = create_your_db(); $notifier = create_your_notifier(); return new Page($db, $notifier, $root); } $new_page = create_page($my_root); And the db and notifier routines can be as simple or complex as needed for your use case. The

Re: [PHP] Multiple Inheritance Needed in OOP?

2009-12-28 Thread Larry Garfield
around, and wrap the compiler's head around. What you're looking for is composition, which can do pretty much what you're looking for. See my last reply to you on this list from Christmas day. There's been some discussion of implementing "traits" in later versions of

Re: [PHP] If design patterns are not supposed to produce reusable code then why use them?

2009-12-31 Thread Larry Garfield
Meant to send this to the list, sorry. -- Forwarded Message -- Subject: Re: [PHP] If design patterns are not supposed to produce reusable code then why use them? Date: Thursday 31 December 2009 From: Larry Garfield To: "Tony Marston" On Wednesday 30 December 200

Re: [PHP] If design patterns are not supposed to produce reusable code then why use them?

2010-01-01 Thread Larry Garfield
stupid. Blindly ignoring established "solved problems" just for the sake of avoiding those pointless design patterns is just as stupid. Remember, code is irrelevant. You don't sell code. You sell ideas and concepts, implemented in code. By not having to re-invent th

Re: [PHP] Open Source CMS

2010-01-21 Thread Larry Garfield
tp://www.packtpub.com/drupal-6-module-development/book Disclaimer: The author used to work with me, and I'm a Drupal core developer so I am admittedly biased. :-) --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SQL insert () values (),(),(); how to get auto_increments properly?

2010-02-14 Thread Larry Garfield
and every insert as they only need to be rebuilt once. 3) If you're on InnoDB, using transactions can sometimes give you a performance boost because the writes hit disk all at once when you commit. There may be other side effects and trade offs here, though, so take with a grain of salt. --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] array conversion

2010-02-18 Thread Larry Garfield
aved_key = $a[$i]; > } > elseif ($i % 2 == 1) { > $b[$saved_key] = $a[$i]; > } > } > > Code is crude and untested, but you get the idea. > > Paul This would be even shorter, I think: foreach ($items as $i => $value) { $temp[$i % 2][] = $value; } $done = array_combine($temp[0], $temp[1]); (Also untested, just off the cuff...) --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Memory investigation

2010-03-02 Thread Larry Garfield
ts memory usage be? I just have no idea how to do that. Anyone have a suggestion for how to accomplish that? --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Code samples in OOo Presenter

2010-03-21 Thread Larry Garfield
to have a custom text region or format or something that is "take this and highlight it properly", but I don't know if such a plugin exists. I could be talked into using KPresenter / KOffice instead if that would be easier, but as I am on Linux I have no access to KeyNote or PowerPoi

Re: [PHP] Code samples in OOo Presenter

2010-03-21 Thread Larry Garfield
it properly", but I don't know > > if such a plugin exists. > > > > I could be talked into using KPresenter / KOffice instead if that would > > be easier, but as I am on Linux I have no access to KeyNote or > > PowerPoint. > > > > Any suggestion

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Larry Garfield
Perhaps if you asked a question you'd get an answer rather than coming off as an angry immature crybaby in your last paragraph... No, I'm not going to dignify your post with a real answer. Come back when you can ask a real question and maybe you'll get a real answer. --Lar

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-22 Thread Larry Garfield
ng" design is very deliberate. It has design trade-offs like anything else. PHP is a web-centric language. It's not really intended for building tier-1 daemon processes, just like you'd be an idiot to try and code your entire web app in C from the start. --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-23 Thread Larry Garfield
uld be useful is for lots of very small writes on rapidly changing data. I would never want to write, say, the World of Warcraft servers without threading and a persistent runtime, but then I wouldn't want to write them in PHP to begin with. Insert that old saying about hammers and nails here. --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Constructor usage

2010-04-04 Thread Larry Garfield
tered, and was it worth it? --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Constructor usage

2010-04-04 Thread Larry Garfield
Sounds overly complicated, but whatever works. :-) In my experience so far I find that a well-designed factory is sufficient, but it may not be in larger or more involved OO frameworks than I've used to date. --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] class attributes and __construct

2010-04-15 Thread Larry Garfield
tting to anything. OK, I'm a little OCD, but it works. :-) --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] iCal parsing and processing

2010-05-25 Thread Larry Garfield
Hm. Thanks, but it looks like that's all in Python. I'm not a parcel tongue so that wouldn't be much use to me in a PHP app. :-) Thanks though. --Larry Garfield On Tuesday 25 May 2010 06:43:30 pm Jason Pruim wrote: > Hi Larry, > > Take a look at: http://trac.calen

Re: [PHP] CakePHP, alternatives?

2010-06-05 Thread Larry Garfield
s already very solid in PHP at the time, but it made me even better.) --Larry Garfield On Saturday 05 June 2010 12:51:47 am Shreyas wrote: > @ All - Points duly noted. Thanks for all the mighty advice. > > As the owner of the thread, I consider the thread closed for now unless

[PHP] running out of memory processing result set on Linux, but not on Solaris

2010-07-13 Thread Larry Martell
I have an app that runs just fine on an older Solaris apache server (Apache/2.0.53 PHP/5.0.4), but when I run the same app on a newer Linux server (Apache/2.2.3-11 PHP/5.2.8) against the same database on the same mysql server, it fails with "Allowed memory size exhausted". This occurs on a: $resul

Re: [PHP] running out of memory processing result set on Linux, but not on Solaris

2010-07-13 Thread Larry Martell
On Tue, Jul 13, 2010 at 11:11 AM, Ashley Sheridan wrote: > > On Tue, 2010-07-13 at 11:06 -0600, Larry Martell wrote: > > I have an app that runs just fine on an older Solaris apache server > (Apache/2.0.53 PHP/5.0.4), but when I run the same app on a newer > Linux server (A

[PHP] Retaining scroll position after asynchronous refresh

2010-07-23 Thread Larry Martell
scroll position so after the refresh the frames are shown at the same location as before the refresh? I have googled and googled for this, but everything I find is ASP or C# or Java. My stuff is straight php/html. How can I do this with that? TIA! -larry -- PHP General Mailing List (http

Re: [PHP] the state of the PHP community

2010-07-28 Thread Larry Garfield
that group has pretty well died. > Are there any efforts, projects or initiatives which are floating your > boat right now and that your watching eagerly (or getting involved with)? Just lots of stuff within the Drupal world, which is large enough to keep me busy. I won't bore you with details. Come to DrupalCon Copenhagen next month if you want such details. :-) --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] the state of the PHP community

2010-07-29 Thread Larry Garfield
On Thursday 29 July 2010 02:07:58 am you wrote: > Hi Larry, > > Thanks for taking the time to reply, a solid insightful one at that - > kudos +1 for your opensource drupal efforts! > > Good of you to mention, and indeed to see, Palinter grasping opensource > with two hands

Re: [PHP] Text messaging from the web

2010-10-14 Thread Larry Martell
On Thu, Oct 14, 2010 at 9:45 AM, Paul M Foster wrote: > Folks: > > Being fairly geezerly, I know almost nothing about this, so be gentle. > > Assuming someone entered information in a form on a website. Normally, > you would email the responses to someone. But what if you wanted to > send this inf

Re: [PHP] Text messaging from the web

2010-10-14 Thread Larry Martell
On Thu, Oct 14, 2010 at 10:01 AM, Sebastian Detert wrote: > Larry Martell schrieb: > > On Thu, Oct 14, 2010 at 9:45 AM, Paul M Foster > wrote: > > > Folks: > > Being fairly geezerly, I know almost nothing about this, so be gentle. > > Assuming someone entered i

Re: [PHP] Text messaging from the web

2010-10-14 Thread Larry Martell
On Thu, Oct 14, 2010 at 10:29 AM, Sebastian Detert wrote: > Larry Martell schrieb: > > On Thu, Oct 14, 2010 at 10:01 AM, Sebastian Detert > wrote: > > > Larry Martell schrieb: > > On Thu, Oct 14, 2010 at 9:45 AM, Paul M Foster > wrote: > > > Folks: &

Re: [PHP] Text messaging from the web

2010-10-14 Thread Larry Martell
onenum...@mobile.celloneusa.com >>    Omnipoint: 10digitphonenum...@omnipointpcs.com >>    Qwest: 10digitphonenum...@qwestmp.com >> > > Larry, it seems like this method would only be useful if you knew the > carrier of a specific number.  Do you know of a way to determine that? http://w

Re: [PHP] Reminder On Mailing List Rules

2010-10-21 Thread Larry Martell
On Thu, Oct 21, 2010 at 1:37 PM, sueandant wrote: > Hi > > I'm not familiatr with the term "top-post"; could you please explain? http://idallen.com/topposting.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CMS plugin support

2010-10-22 Thread Larry Garfield
arge community of people who can support me in writing more is one of the key reasons that virtually all of my web work these days uses Drupal. AFAIK there is no cross-CMS plugin system in PHP, and given how architecturally different various systems are I don't know that one would

[PHP] Disk IO performance

2010-11-28 Thread Larry Garfield
or hard benchmarks, profiling, or writeups of how OS (Linux specifically if it matters) file caching works in 2010, not in 1998. Modernizing what "everyone knows" is important for the general community, and the quality of our code. --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ORM doctrine

2010-12-09 Thread Larry Garfield
not a decision I took lightly. > > David ORMs are fundamentally fighting the wrong battle. They have their use, but in general they are architecturally not something you want to build your entire system on. See: http://www.garfieldtech.com/blog/orm-vs-query-builders http://blogs.tedneward

Re: [PHP] PDO: good, popular?

2010-12-14 Thread Larry Garfield
the process of spinning it off as a > > stand-alone library because we think it's that cool, but it's not > > completely divorced from Drupal yet. Stay tuned. :-) > > Larry - how many databases does it actually work with? Having rebuilt the > DB layer using PDO d

Re: [PHP] Newbie Question

2011-01-02 Thread Larry Garfield
trying to go > 100% open source, but I really find dreamweaver easier to use so far. I bounce between NetBeans and Eclipse, depending on which currently sucks less. I have yet to find a PHP IDE that doesn't suck; it's just degrees of suckage. :-) --Larry Garfield -- PHP General

Re: [PHP] code deployment through php

2012-05-01 Thread Larry Garfield
gious battle between Git and SVN, I do strongly recommend you look into it. This is an excellent resource for why to use it and how to use it: http://progit.org/book If you're serious about development, get serious about version control. --Larry Garfield -- PHP General Mailing List (http:

Re: [PHP] What's happened to our newsgroup?

2012-06-26 Thread Larry Martell
On Tue, Jun 26, 2012 at 1:30 PM, TR Shaw wrote: > > On Jun 26, 2012, at 3:28 PM, Steven Staples wrote: > >> >>> -Original Message- >>> From: Govinda [mailto:govinda.webdnat...@gmail.com] >>> Sent: June 26, 2012 3:25 PM >>> To: PHP-General List >>> Subject: Re: [PHP] What's happened to our

Re: [PHP] Re: php batch/queue framwork

2012-06-30 Thread Larry Garfield
would have to do a polling worker that polls a database for new tasks. You could write such a system -- Drupal comes with one as a default implementation since then you don't need a separate queueing program, for instance -- but it will always be greatly inferior to a real daemonized qu

Re: [PHP] Re: [PHP-WEBMASTER] Re: [PHP] The Cat Signal

2012-07-23 Thread Larry Garfield
industries that don't like being disrupted is not a proper use of governmental power. I'm quite happy to see PHP.net joining in with other defense-of-freedom voices. --Larry Garfield On 7/21/12 1:56 PM, With No Name wrote: On Fri, July 20, 2012 10:04, Lester Caine wrote: In Europe

Re: [PHP] What's the best way to make a dynamic plugin architecture?

2012-08-27 Thread Larry Garfield
#x27;s, Symfony2's, and probably Zend has one as well. Also, the key question is how you'll be mapping your situation to the plugin you need. If it's fairly hard-coded (i.e., "mime type of foo => class Bar"), then just use a simple dependency injection container like Pi

Re: [PHP] What's the best way to make a dynamic plugin architecture?

2012-08-27 Thread Larry Garfield
d probably Zend has one as well. I believe there's one in PHP by default now called SPLClassLoader or something like that.. - Matijn There was a proposal for one, but it was never added. You still need a user-space class loader for PSR-0, but they're readily available. --Larry

Re: [PHP] OT (maybe not): Drupal vs WordPress

2012-08-28 Thread Larry Garfield
Only semi-joking line that's been making the rounds lately: If you want to build a blog, use Wordpress. If you want to build Wordpress, use Drupal. If you want to build Drupal, use Symfony2. There is much wisdom in those lines. --Larry Garfield, an openly biased Drupal core developer On

Re: [PHP] OT (maybe not): Drupal vs WordPress

2012-08-28 Thread Larry Garfield
s :) Drupal's security process is substantially similar, and also follows security best practices: http://drupal.org/security-team --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] The end of "mysql"

2012-09-09 Thread Larry Garfield
Then get a new host. A host that disables PDO these days is a host that deserves to go bankrupt. ext/mysql has been dead for years now. --Larry Garfield On 09/08/2012 08:54 AM, Jim Giner wrote: Nope. No PDO as yet either jg On Sep 7, 2012, at 11:22 PM, Adam Richardson wrote: On Fri

Re: [PHP] The end of "mysql"

2012-09-09 Thread Larry Garfield
do is PDO. --Larry Garfield On 09/09/2012 04:49 PM, Larry Garfield wrote: Then get a new host. A host that disables PDO these days is a host that deserves to go bankrupt. ext/mysql has been dead for years now. --Larry Garfield On 09/08/2012 08:54 AM, Jim Giner wrote: Nope. No PDO as yet either jg

Re: [PHP] foreach

2012-10-16 Thread Larry Garfield
l_* functions). It's insecure and slow and lacks features. Instead, use PDO, and bind your parameters. As a nice bonus, the result from a PDO-based query is not a raw resource but an iteratable object, which means you can foreach() it. http://php.net/manual/en/book.pdo.php $conn = ne

Re: [PHP] foreach

2012-10-17 Thread Larry Garfield
On 10/17/12 10:17 AM, Matijn Woudt wrote: On Wed, Oct 17, 2012 at 1:25 AM, Larry Garfield wrote: For the love of god, please stop using ext/mysql (aka the mysql_* functions). It's insecure and slow and lacks features. Instead, use PDO, and bind your parameters. As a nice bonus, the r

Re: [PHP] Multithreading for OOP PHP

2012-10-31 Thread Larry Garfield
quot;oh, now the memory isn't shared, so now what do I do?" Each PHP process could be in its own CPU core, CPU, server, or server cluster, and the code doesn't change in the slightest. The "shared nothing" architecture is a very deliberate design decision, and is in a large

[PHP] Lucene library

2012-12-11 Thread Larry Garfield
be if it were still maintained. I may have a use for it if it still exists. --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Lucene library

2012-12-11 Thread Larry Garfield
Yes, I've worked with Apache Solr quite a bit. It's a separate server, however, and I'm looking for something with smaller requirements for a concept I want to try. I'd consider SQLite, but I really need something schema-free and PHP-native/easily-installable. --Larry Gar

Re: [PHP] Lucene library

2012-12-13 Thread Larry Garfield
Ah ha. Did that ever get ported to Zend 2? --Larry Garfield On 12/12/12 12:07 AM, Louis Huppenbauer wrote: There's Zend_Search_Lucene, part of the Zend framework. I think it should be possible to use it without the whole framework though. http://framework.zend.com/manual/1.

Re: [PHP] Formatting -- defining sections of code

2012-12-14 Thread Larry Martell
On Fri, Dec 14, 2012 at 11:20 AM, Paul M Foster wrote: > On Fri, Dec 14, 2012 at 10:48:05AM -0500, Andy McKenzie wrote: > >> Hey folks, kind of a strange question here. >> >> Basically, I've been trying to move my style from "self taught" to "Oh >> yeah, there IS a standard for this." One of the

<    1   2   3   4   5   6   7   8   9   >