Re: [PHP] framework or not

2013-10-23 Thread Larry Martell
On Wed, Oct 23, 2013 at 11:08 AM, Tedd Sperling wrote: > On Oct 23, 2013, at 12:34 PM, Larry Martell > wrote: > > Was it Brian Kernighan who said the 3 rules of programming are: > > > > 1. Keep it simple. > > 2. Build it in stages. > > 3. Let someone else do

Re: [PHP] framework or not

2013-10-23 Thread Larry Martell
On Wed, Oct 23, 2013 at 10:26 AM, Tedd Sperling wrote: > On Oct 23, 2013, at 12:04 AM, Robert Cummings > wrote: > > > On 13-10-22 05:38 PM, Larry Garfield wrote: > >> If you need more convincing, I will cite Fred Brooks: > >> > >> http

Re: [PHP] Friday's Question

2013-09-20 Thread Larry Martell
On Fri, Sep 20, 2013 at 11:24 AM, Joshua Kehn wrote: > > On Sep 20, 2013, at 1:23 PM, Larry Martell > wrote: > >> On Fri, Sep 20, 2013 at 11:16 AM, Joshua Kehn wrote: >>> >>> I'm in my 20's and rarely, if ever, use a dedicated mouse. I've

Re: [PHP] Friday's Question

2013-09-20 Thread Larry Martell
On Fri, Sep 20, 2013 at 11:20 AM, Jen Rasmussen wrote: > -Original Message- > What in the heck is a Bag Bomb? It's a salve for cow udders. Not sure what a person would do with it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Friday's Question

2013-09-20 Thread Larry Martell
On Fri, Sep 20, 2013 at 11:16 AM, Joshua Kehn wrote: > On Sep 20, 2013, at 1:04 PM, Daniel Brown wrote: > >>I'm in my mid-thirties and - despite having an optical mouse - I >> do indeed still use a mousepad. A customized one that the wife did >> for me for Christmas one year: images of Futur

Re: [PHP] Friday's Question

2013-09-20 Thread Larry Martell
On Fri, Sep 20, 2013 at 10:51 AM, Tedd Sperling wrote: > Hi gang: > > Do you use a Mousepad? > > My reason for asking is that I've used a Mousepad ever since mice first came > out (back when they had one ball). > > Now that mice are optical (no balls), Mousepads are not really needed -- or > so

Re: [PHP] Friday's Question

2013-09-20 Thread Larry Martell
On Fri, Sep 20, 2013 at 11:35 AM, Joshua Kehn wrote: > On Sep 20, 2013, at 1:26 PM, Larry Martell > wrote: > >> On Fri, Sep 20, 2013 at 11:24 AM, Joshua Kehn wrote: >>> >>> >>> Slightly snobbish solution: Don't use windows. >> >> Unfo

Re: [PHP] PHP vs JAVA

2013-08-20 Thread Larry Garfield
eums are very big on Drupal. (That's my day job. ) PHP's marketshare is huge, even in "enterprise". --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how old is this version of PHP?

2013-08-19 Thread Larry Garfield
ing them now then your code should break. :-) They're a security hole. But those are very few and far between. --Larry Garfield On 8/19/13 7:25 AM, Jeff Burcher wrote: I apologize if this is off topic, but this raises a question for me. Why can't new versions be backwards compa

Re: [PHP] how old is this version of PHP?

2013-08-18 Thread Larry Garfield
a disservice by allowing them to run such an ancient and unsupported version. --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POST action

2013-08-01 Thread Larry Garfield
On 7/29/13 3:02 PM, Paul M Foster wrote: On Mon, Jul 29, 2013 at 11:50:01AM -0500, Larry Garfield wrote: On 7/28/13 9:23 PM, Paul M Foster wrote: On Sun, Jul 28, 2013 at 08:46:06PM -0500, Larry Garfield wrote: [snip] Except as noted above. This is all home-grown, using native PHP

Re: [PHP] POST action

2013-07-29 Thread Larry Garfield
On 7/28/13 9:23 PM, Paul M Foster wrote: On Sun, Jul 28, 2013 at 08:46:06PM -0500, Larry Garfield wrote: On 07/28/2013 12:38 PM, Ashley Sheridan wrote: On Sun, 2013-07-28 at 13:37 -0400, Jim Giner wrote: Never write your own form? I'm guilty - oh, so guilty. What exactly is a 

Re: [PHP] POST action

2013-07-28 Thread Larry Garfield
th. "Do it manually for the learning, then use a battle-hardened tool for real work" is a generally good approach to many things in programming. --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] POST action

2013-07-28 Thread Larry Garfield
27;re quite different), and there are reasonably stand-alone components available in both Symfony2 Components and Zend Framework. Please don't write your own. There are too many good ones (and even more bad ones, of course) already out there that have been security hardened. --Larry Garfield

Re: [PHP] /tmp/directory

2013-07-22 Thread Larry Martell
On Mon, Jul 22, 2013 at 9:50 AM, Tedd Sperling wrote: > On Jul 22, 2013, at 11:20 AM, Tedd Sperling wrote >> Hi gang: >> >> I should know this, but I don't. >> >> Where is the /tmp/ directory? >> >> You see, I have a client where his host has apparently changed the /tmp/ >> directory permissions

Re: [PHP] /tmp/directory

2013-07-22 Thread Larry Martell
On Mon, Jul 22, 2013 at 9:59 AM, Larry Martell wrote: > On Mon, Jul 22, 2013 at 9:50 AM, Tedd Sperling > wrote: >> On Jul 22, 2013, at 11:20 AM, Tedd Sperling wrote >>> Hi gang: >>> >>> I should know this, but I don't. >>> >>>

Re: [PHP] Split/Group date together.

2013-07-18 Thread Larry Garfield
If I understand you correctly, I call what you're trying to do "PHP group by", and did a write up on it a few years back: http://www.garfieldtech.com/blog/php-group-by-with-arrays --Larry Garfield On 7/18/13 8:43 AM, Karl-Arne Gjersøyen wrote: Hello again. In my program I ha

Re: [PHP] json stream filter

2013-06-22 Thread Larry Garfield
ode() does), I am not sure what the benefit is of what you're describing. (And I'm not sure you could do that, although it would be neato if you could.) --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ODBC

2013-05-19 Thread Larry Martell
On Sun, May 19, 2013 at 9:06 AM, georg wrote: > Actually who the heck has put SELinux in my machine ? > > anyone knows (is this a part of fedora ?) Never used Fedora, but it's part of Red Hat and Centos, so would guess it's also part of fedora. You can disable SELinux with this: echo 0 > /selinu

Re: [PHP] A Good OOP Tutorial/Read?

2013-05-16 Thread Larry Garfield
7;s writing to an interface, not to the database. Swap out your data store with one that is used just for testing. Etc. That's what interfaces give you. Loose coupling, and the ability to divide-and-conquer... and even let someone else solve problems for you. :-) --Larry Garfield -

Re: [PHP] Problems with array_push?

2013-05-07 Thread Larry Martell
On Tue, May 7, 2013 at 3:06 PM, Jay Blanchard wrote: > I know that I must be missing something really ridiculous, but when I > print_r these arrays they are empty. I have confirmed that $arrayElement is > properly formed, it just seems that array_push is not working. I know I have > done this befo

Re: [PHP] Date weirdness

2013-04-18 Thread Larry Martell
On Thu, Mar 28, 2013 at 3:40 PM, Larry Martell wrote: > On Thu, Mar 28, 2013 at 2:44 PM, Steven Staples wrote: >>> I think I am losing my mind. I have some time zone converting code, and I >>> just don't understand what I am seeing. Also my system seems to return the

Re: [PHP]

2013-04-18 Thread Larry Martell
On Wed, Apr 17, 2013 at 5:02 PM, Micky Hulse wrote: > On Wed, Apr 17, 2013 at 3:59 PM, Micky Hulse wrote: >> You might need to turn on the short tag option >> in your conf file. > > Sorry, ini file, not conf. Been a long day. :D > > I guess I should have asked if short tags are turned on for your

[PHP]

2013-04-17 Thread Larry Martell
Continuing in my effort to port an app from PHP version 5.1.6 to 5.3.3, the app uses this construct all over the place when building links: I never could find any documentation for this, but I assumed it was some conditional thing - use $var if it's defined, otherwise use nothing. In 5.1.6 it se

Re: [PHP] timezone

2013-04-15 Thread Larry Martell
On Mon, Apr 15, 2013 at 2:57 PM, Maciek Sokolewicz wrote: > On 15-4-2013 22:12, Larry Martell wrote: >> >> On Mon, Apr 15, 2013 at 1:59 PM, Lester Caine wrote: >>> >>> Larry Martell wrote: >>>>> >>>>> >>>>> No, I don

Re: [PHP] timezone

2013-04-15 Thread Larry Martell
On Mon, Apr 15, 2013 at 1:59 PM, Lester Caine wrote: > Larry Martell wrote: >>> >>> No, I don't - this app runs in different locations all over the world. >> >> I found some code at php.net that does this: >> >> date_default_timezone_set(

Re: [PHP] timezone

2013-04-15 Thread Larry Martell
On Mon, Apr 15, 2013 at 11:35 AM, Larry Martell wrote: > On Mon, Apr 15, 2013 at 11:33 AM, Ashley Sheridan > wrote: >> You don't know which timezone the server is in? That's what it wants. > > No, I don't - this app runs in different locations all over the wor

Re: [PHP] timezone

2013-04-15 Thread Larry Martell
On Mon, Apr 15, 2013 at 11:33 AM, Ashley Sheridan wrote: > You don't know which timezone the server is in? That's what it wants. No, I don't - this app runs in different locations all over the world. > Larry Martell wrote: >> >> On Mon, Apr 15, 2013 at 11:17

Re: [PHP] timezone

2013-04-15 Thread Larry Martell
On Mon, Apr 15, 2013 at 11:17 AM, Jonathan Sundquist wrote: > > > > On Mon, Apr 15, 2013 at 12:14 PM, Larry Martell > wrote: >> >> I have a client that has an app the runs with PHP 5.1.6. They want to >> upgrade to 5.3.3. First issue I ran into, they have a line

[PHP] timezone

2013-04-15 Thread Larry Martell
I have a client that has an app the runs with PHP 5.1.6. They want to upgrade to 5.3.3. First issue I ran into, they have a line of code that is: $deftz = date("T"); I'm getting this for that line: [Mon Apr 15 10:44:16 2013] [error] [client 10.7.14.21] PHP Warning: date(): It is not safe to rely

Re: [PHP] Date weirdness

2013-03-28 Thread Larry Martell
On Thu, Mar 28, 2013 at 4:55 PM, Maciek Sokolewicz wrote: > On 28-3-2013 22:40, Larry Martell wrote: >> >> On Thu, Mar 28, 2013 at 2:44 PM, Steven Staples wrote: >>>> >>>> I think I am losing my mind. I have some time zone converting code, and >>>

Re: [PHP] Date weirdness

2013-03-28 Thread Larry Martell
On Thu, Mar 28, 2013 at 2:44 PM, Steven Staples wrote: >> I think I am losing my mind. I have some time zone converting code, and I >> just don't understand what I am seeing. Also my system seems to return the >> wrong time after I do some date operations on unrelated objects. >> >> This is from a

[PHP] Date weirdness

2013-03-28 Thread Larry Martell
I think I am losing my mind. I have some time zone converting code, and I just don't understand what I am seeing. Also my system seems to return the wrong time after I do some date operations on unrelated objects. This is from a machine that is in eastern time. I want to convert to, for example ce

[PHP] Re: [PHP-DEV] feature request : easy shared memory

2013-03-17 Thread Larry Garfield
long as you don't do anything naive. If you're doing something stateful like Web Sockets, then you can run PHP as a cli application that is its own persistent server rather than as an Apache add-on. For that, look at Ratchet: http://socketo.me/ --Larry Garfield If PHP should be so res

Re: [PHP] UNLESS Statement Equivalent

2013-03-11 Thread Larry Garfield
e whole thing to return true, so the second and third options don't need to be evaluated. --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] static Logging class?

2013-03-03 Thread Larry Garfield
by project, I don't need something that fancy and all injected and shit!" If it's a simple project, use a simple container to do all the hard work for you: https://packagist.org/packages/pimple/pimple (That's < 100 lines of executable code. Quite powerful, dead simple

Re: [PHP] Affordable low-fee e-commerce - DIY?

2013-02-18 Thread Larry Martell
On Mon, Feb 18, 2013 at 1:26 PM, George Langley wrote: > Hi all. Am wanting to build a site where people can donate $1.00 but is not > for charity or other non-profit per se. So if I use PayPal, with their 2.9% + > .30 per transaction fee, that equals .33 cents for each dollar - that's a > full

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

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

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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] To ?> or not to ?>

2012-04-05 Thread Larry Garfield
docs are generally non-commital by design, but outside of those I think it's pretty well-established to just leave it off and be happy. --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Larry
On Thu, Mar 15, 2012 at 4:03 PM, Matijn Woudt wrote: > On Thu, Mar 15, 2012 at 8:41 PM, Larry wrote: >> On Thu, Mar 15, 2012 at 2:57 PM, Matijn Woudt wrote: >>> On Thu, Mar 15, 2012 at 7:51 PM, Larry wrote: >>>> On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt wro

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Larry
On Thu, Mar 15, 2012 at 2:57 PM, Matijn Woudt wrote: > On Thu, Mar 15, 2012 at 7:51 PM, Larry wrote: >> On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt wrote: >>> On Thu, Mar 15, 2012 at 4:59 PM, Larry wrote: >>>> On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Larry
On Thu, Mar 15, 2012 at 12:21 PM, Matijn Woudt wrote: > On Thu, Mar 15, 2012 at 4:59 PM, Larry wrote: >> On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown >> wrote: >>> On Thu, Mar 15, 2012 at 11:30, Larry wrote: >>>> Hello, when I pass a variable whose valu

Re: [PHP] Variables are empty only in fwrite

2012-03-15 Thread Larry
On Thu, Mar 15, 2012 at 11:53 AM, Daniel P. Brown wrote: > On Thu, Mar 15, 2012 at 11:30, Larry wrote: >> Hello, when I pass a variable whose value originally came from $_GET >> or $_REQUEST to fwrite, fwrite behaves as if it was passed an empty >> string. Note that the

[PHP] Variables are empty only in fwrite

2012-03-15 Thread Larry
Hello, when I pass a variable whose value originally came from $_GET or $_REQUEST to fwrite, fwrite behaves as if it was passed an empty string. Note that the file is successfully opened and written to by the script, but the variable that originally came from $_GET does not have its value interpola

Re: [PHP] Arrays: Comma at end?

2012-02-08 Thread Larry Garfield
r all these years. Thanks! Micky Drupal's coding standards encourage the extra trailing comma on multi-line arrays, for all the readability and editability benefits that others have mentioned. We have for years. Cool stuff. :-) --Larry Garfield -- PHP General Mailing List (http://www.

Re: [PHP] Re: Long Live GOTO

2012-02-06 Thread Larry Martell
On Mon, Feb 6, 2012 at 11:07 AM, Daniel Brown wrote: > On Mon, Feb 6, 2012 at 12:59, Larry Martell > wrote: >> >> I just pulled out my notes from that job - it took me 59 hours to do >> the conversion and remove the gotos and recursion, and another 67 >> h

Re: [PHP] Re: Long Live GOTO

2012-02-06 Thread Larry Martell
On Mon, Feb 6, 2012 at 10:13 AM, Adam Richardson wrote: > On Mon, Feb 6, 2012 at 12:09 PM, Larry Martell > wrote: > >> >> The source is my own personal experience working for an avionics >> company and working with the FAA to get our code certified under the >&

Re: [PHP] Re: Long Live GOTO

2012-02-06 Thread Larry Martell
On Mon, Feb 6, 2012 at 9:50 AM, Adam Richardson wrote: > On Mon, Feb 6, 2012 at 11:28 AM, Larry Martell > wrote: > >> On Mon, Feb 6, 2012 at 9:23 AM, Alain Williams wrote: >> > On Mon, Feb 06, 2012 at 11:12:53AM -0500, Jim Giner wrote: >> >> NO "GO&qu

Re: [PHP] Re: Long Live GOTO

2012-02-06 Thread Larry Martell
On Mon, Feb 6, 2012 at 9:23 AM, Alain Williams wrote: > On Mon, Feb 06, 2012 at 11:12:53AM -0500, Jim Giner wrote: >> NO "GO"! >> As one who started back in the 70's with old style coding that utilized GoTo >> in Cobol, Fortran, etc. and had to deal with "spaghetti code" written by >> even earlier

Re: [PHP] news and article posts in one table

2011-11-27 Thread Larry Garfield
on whatever you need. With a LEFT JOIN, you can even get back all data on all articles of both types, and just have lost of nulls in the result set for the off-record fields. --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP exercises

2011-11-25 Thread Larry Garfield
(http://phpexercises.com/), but it of course went offline the day after I found it. Fail! Can anyone recommend other sources for tutorial-based or exercise-based PHP learning? Paid is OK if it's not too expensive and it's worth the money, although free is always preferred. TIA and all

Re: [PHP] Headers already sent

2011-11-10 Thread Larry Garfield
Perhaps your server is configured to have output buffering enabled by default? Check php.ini / phpinfo(). --Larry Garfield On 11/11/2011 12:12 AM, Kranthi Krishna wrote: Hi all, I am missing something pretty obvious here. The PHP Manual says "Remember that header() must be called befor

Re: [PHP] Execute permission question

2011-10-27 Thread Larry Martell
ctly - shell script, python script, perl script, binary program - you need the x bit set. I say directly because you could do: 'perl script' without script being executable (because in that case it's an argument to the perl executable). HTH, -larry -- PHP General Mailing Li

Re: [PHP] Friday Distraction

2011-10-21 Thread Larry Martell
On Fri, Oct 21, 2011 at 11:38 AM, Tedd Sperling wrote: > On Oct 21, 2011, at 12:27 PM, Daniel Brown wrote: > >>    I'll get this week's Friday distraction kicked off here with >> something shared with me by a Facebook friend.  If you're on Facebook, >> try this.  It's pretty sweet (and safe for wo

Re: [PHP] Re: Repetitive answers . . .

2011-09-09 Thread Larry Martell
On Fri, Sep 9, 2011 at 12:36 PM, Daniel Brown wrote: > On Fri, Sep 9, 2011 at 14:30, Robert Cummings wrote: >> >> Oblig: http://www.youtube.com/watch?v=sUntx0pe_qI > >    I didn't know it was possible to fill almost four minutes with a > single note, outside of a test pattern.  That's got to be t

[PHP] Books on PHP guts

2011-08-30 Thread Larry Garfield
ous techniques. Are there any good books on the subject that would be of help? I'm familiar with Sara Goleman's book[1], which has generally good reviews, but it's several years old now and I'm not sure if there's anything newer that covers PHP developments since the 5.0 da

Re: [PHP] phpsadness

2011-06-03 Thread Larry Martell
On Fri, Jun 3, 2011 at 9:29 AM, Daniel Brown wrote: > On Thu, Jun 2, 2011 at 22:14, Paul M Foster wrote: >> On Thu, Jun 02, 2011 at 01:02:26PM -0400, Daniel Brown wrote: >> >>> On Tue, May 31, 2011 at 22:13, Bill Guion wrote: >>> > >>> > So if I understand, you want an explode() with empty param

Re: [PHP] iPhone sadness

2011-05-30 Thread Larry Martell
On Mon, May 30, 2011 at 9:35 AM, Andre Polykanine wrote: > And,  BTW, this bottom posting has started just two or three years ago > when Thunderbird came in place. You obviously have no clue what you are talking about. Since email began bottom posting was the standard. It wasn't until the sheeple

Re: [PHP] Class and interface location

2011-01-19 Thread Larry Garfield
On Wednesday, January 19, 2011 8:56:50 pm Tommy Pham wrote: > > And actually, thinking about it, I wonder if requiring the explicit > declaration > > is a good thing anyway because then it's immediately obvious and > > greppable what the class does. :-) > > &g

[PHP] Class and interface location

2011-01-18 Thread Larry Garfield
t to do so or get it wrong on a regular basis. 5) Wave a wand and let the magic ponies figure it out. I wish. :-) Can anyone suggest a better alternative? At the moment option 3 seems like the most viable approach, but I'm not wild about the implied performance impact nor the potentially

Re: [PHP] Closure and $this

2011-01-12 Thread Larry Garfield
should happen and re-introduce it properly in 5.4. I believe a consensus was reached on how that should happen but I'm not sure what its implementation status is at present. I believe this is the relevant RFC: http://wiki.php.net/rfc/closures/object-extension --Larry Garfield -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Command line PHP

2011-01-07 Thread Larry Garfield
more usable and robust built on top of it that I could leverage rather than rolling my own one-off. Of course, I got lost somewhere in the language holy wars (dear god, people...) so I'll probably just take the "roll my own" approach. --Larry Garfield -- PHP General Mailing Li

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

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

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

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

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

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

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

  1   2   3   4   5   6   7   8   9   >