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

[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

[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

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

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

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

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

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

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

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

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

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

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

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

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

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

[PHP] Retrieving an URL paramter via fsockopen

2005-02-07 Thread Larry Laffer
Hi, who can give me a solution or at least a hint for the following problem: I have to get an URL parameter with an fsockopen connection. I can connect with fsockopen an given link and get back this link with an URL parameter cnr=xx Who can I do this? And who can I "read" this URL parameter?

[PHP] Retrieving an URL paramter via fsockopen

2005-02-07 Thread Larry Laffer
Hi, who can give me a solution or at least a hint for the following problem: I have to get an URL parameter via fsockopen connection. I shall connect with fsockopen to a given link and get back this link with an URL parameter cnr=xx Who can I do this? And who can I "read" this URL parameter?

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] detecting a leading hyphen from post data

2005-03-20 Thread Larry Brown
"-", "\-", nor "/^-/" give me a hit? Could someone throw me a bone here? Larry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] how to validate a domain

2004-04-13 Thread Larry Brown
e the standard and then start to charge. I'm guessing that is why a lot of the older links no longer exist. http://wavendon.dsdata.co.uk/axis/services/WhoisData?wsdl responded to generate the schema. I don't know if they search all of the domain names or not either. Larry -Original Me

RE: [PHP] session var puzzle

2004-04-18 Thread Larry Brown
In the last pair of examples where it fails, you know you are first assigning the value of $Data['ID'] to the $_SESSION['CategoryID'] and the over-writing that value with the value of intval($Data['ID'])? Why are you assigning $Data['ID'] to it if you are going to overwrite it? If those other tes

[PHP] array key starting with digit ending with string

2004-05-27 Thread Larry Brown
I have an unusual situation where I have to communicate with an MS based soap server. They have named one of their variables with a name leading with a 1 such as 1variable. Nusoap loads the variable descriptions from the wsdl document and compares the variable names I am trying to send with the o

RE: [PHP] Simple preg I think

2004-05-30 Thread Larry Brown
That works for me... $testVal = "this is the ./command"; if(preg_match("/\.\//i", $testVal)) { echo "hello"; } This printed hello, then I removed the slash and it did not match and did not print hello. Sounds like it is a logic problem, or the variable is not arriving as you expected.

RE: [PHP] mail() problem

2004-06-02 Thread Larry Brown
Sounds like a problem for the maintainers of the spam blocking software? You can't correct the problem with the headers if you don't know what the spam software is objecting to. It may be objecting to the fact that the source is 127.0.0.1? -Original Message- From: Rick [mailto:[EMAIL PROT

Re: [PHP] Re: Printing invoices

2004-06-20 Thread Larry Brown
I would highly recommend pdf. I use it for different reports. I use pdflib which my employer has gratiously afforded; however, I believe there is an open source version. I don't know how well it works, but pdflib creates some really attractive results. Larry. On Sun, 2004-06-20 at

Re: [PHP] Strip numerical indices from array [SOLVED]

2007-08-13 Thread Larry Garfield
On Monday 13 August 2007, Dave M G wrote: > Larry, > > Thank you for responding. > > > ... you want to be using mysql_fetch_assoc() instead... > > Thank you, that helps me achieve what I need. > > > Or, better yet, use mysqli_ ... if > > you're runnin

Re: [PHP] Delete row in a lookup table

2007-08-18 Thread Larry Garfield
> Messenger Café — open for fun 24/7. Hot games, cool activities served > daily. Visit now. http://cafemessenger.com?ocid=TXT_TAGLM_AugWLtagline -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED]

Re: [PHP] getting from one table listing from another

2007-08-19 Thread Larry Garfield
;s more cross-database standardized (nobody expects the Spanish Inquisition!) INNER JOINs return rows only if there are matching values in both tables. LEFT OUTER JOINs return rows if there are matches in just the first (left) table, and fill in NULL values for the columns from the right

Re: [PHP] getting from one table listing from another

2007-08-20 Thread Larry Garfield
type of join specifies how the records should be restricted. In practice I really don't remember the last time I used anything but INNER JOIN or LEFT OUTER JOIN. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Larry Garfield
e PHP dev team did. http://gophp5.org/ Anyone expecting anything but a custom in-house application to continue to work in PHP 4 by next year is simply not paying attention. Let it rest in peace. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 &

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Larry Garfield
o PHP 5. If I'm on a shared host, I'm stuck with whatever that host is running, even if it's ancient. Supporting PHP 4 hurts PHP 5 developers. Supporting PHP 5 does not hurt PHP 4 developers. That's the problem. For more info: http://gophp5.org/faq -- Larry Garfield

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Larry Garfield
nst it at > all. But I don't see what the problem is with maintaining PHP4 > compatibility while enjoying PHP5 if you so choose to use PHP5. Because it is not possible to use SimpleXML or SPL or PDO etc. while maintaining PHP 4 compatibility, unless you write two completely separate imp

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-25 Thread Larry Garfield
s site launched: http://gophp5.org/ I do not know what if any role it played in the PHP Internals folks' decision to EOL PHP 4, but with or without it the bulk of the PHP world is already committed to moving to PHP 5.2 anyway. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTE

Re: [PHP] Database includes

2007-08-26 Thread Larry Garfield
your site/app from one server to another, then you have a design flaw. (I'd say that applies for moving the site to a subdirectory on a server too, but that takes a bit more effort.) Cheers. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "

Re: [PHP] Database includes

2007-08-28 Thread Larry Garfield
gt; > server too, but that takes a bit more effort.) > > I'm with Larry on this. Include a constants file at the top of your > scripts. In that file you can place a switch block that tests for the > $_SERVER['HTTP_HOST']. For each case, place something like: That's ba

Re: [PHP] Dealing with auto-increment in MySQL

2007-09-03 Thread Larry Garfield
sn't have any intrinsic meaning in and of itself. If you want a unique ID that has meaning, don't use auto-increment. It's an either/or question. Auto-increment and don't worry about what the numbers are as long as they're unique or do your own IDs that have some s

[PHP] accessing one object's attribute from another

2007-09-09 Thread Larry Brown
hat are common throughout the user's session that I'm storing in object $first. Class b has nothing in common with a except that it needs a couple of the variables stored in the object that is hanging around in the session. Is $first->thisVar the wrong way to reference that va

Re: [PHP] accessing one object's attribute from another

2007-09-09 Thread Larry Brown
On Mon, 2007-09-10 at 12:45 +1000, Chris wrote: > Larry Brown wrote: > > Hi all, I've be developing with a structured approach for a long time > > and am working at improving my site by adding some classes etc. I > > however, am running into an odd thing that

Re: [PHP] Questions about overloading and visibility in PHP5

2007-09-24 Thread Larry Garfield
e adding more properties to the object if appropriate (thus bypassing the magic methods in the future). -- 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] SOAP in PHP on very restricted host?

2007-09-26 Thread Larry Garfield
Unless somebody has a good tip for a good host... http://gophp5.org/hosts Doesn't look like there's any in Japan, but perhaps there's one nearby in Asia that could be good enough. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If n

Re: [PHP] PDOStatement execute memory issue?

2007-09-26 Thread Larry Garfield
dbc routines; just a trivial test script. If that works but the same test script converted to minimal PDO fails, you've found a bug. If it fails in both cases, I'd start blaming something else. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6

Re: [PHP] Optimized PHP

2007-10-02 Thread Larry Garfield
ettings of that user. > > These are the kind of questions for which I always have to think. So, can > anyone suggest me some source / article / reference from where I can find > the solutions of such of my problems. > > Looking forward for your suggestions .. > > Thx to all

Re: [PHP] inserting ´ in a db

2007-10-03 Thread Larry Garfield
; to MDB2. And I'll raise you native prepared statements with a unified, C-based interface: http://www.php.net/pdo -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusiv

Re: [PHP] error messages

2007-10-04 Thread Larry Garfield
or for an even stricter setting: > > ini_set("error_reporting", "E_STRICT"); > > --Paul You will also need to set: ini_set('display_errors', 'On'); Some web hosts set it Off by default for security reasons, but you probably want it on for development an

Re: [PHP] Generating PDF files (XSLT, ps, XSL-FO, FOP, etc)

2007-10-05 Thread Larry Garfield
nd you could quite possibly make it produce a > PDF. Not quite. You would use XSLT to generate XSL:FO output. You would then use a tool like Apache FOP (or various others, free and not) to convert the XSL:FO document into a PDF. I've done this before, but it's been a while. :

Re: [PHP] How to format CLI tabular data?

2007-10-08 Thread Larry Garfield
> > > > > notice basic things like alignment, > > length of data (as in 'tabs' won't work), etc. > > Looks like something you could whip up in half an hour. > > Cheers, > Rob. > -- > ... > SwarmBuy.com - http://www.swarmbuy.com > > Leveraging the

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-09 Thread Larry Garfield
de. And really, there's FAR more interesting and useful pieces to OOP, PHP's style or otherwise, than PPP. Interfaces are useful. Being able to pass objects around to each other without performance or references dying is useful. And SPL is just plain cool. :-) -- Larry Garfield

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-09 Thread Larry Garfield
don't need > interfaces to do that. Because I want to syntactically guarantee the existence of certain methods so that I can reliably call functionality on them. Call-and-pray is an unreliable methodology. Yes, that is syntactic sugar. See above. Can we stop with the pissing contest n

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-10-10 Thread Larry Garfield
27;s almost as good as Godwin's Law. :-) (This thread has been going on long enough that the statistical odds of it cropping up are getting good.) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less suscept

Re: [PHP] Classes - Dumb question

2007-10-11 Thread Larry Garfield
erything with functions, so "it's functional". The difference is that a function is not a base data type, which is a key component of a functional language. -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made

Re: [PHP] Classes - Dumb question

2007-10-15 Thread Larry Garfield
spl_autoload_register(). That way you can stack multiple autoload routines cleanly. (At least that's what the php-internals folks were saying the last time the topic came up.) http://us2.php.net/manual/en/function.spl-autoload-register.php -- Larry Garfield AIM: LO

[PHP] Strange benchmark behavior

2007-10-18 Thread Larry Garfield
G'What?  Is this a bug in PHP 5.2.4?  Is this a flaw in my testing methodology?  Is this a flaw in that one particular server's configuration or compilation?  If so to either of the second two, what? I'm reluctant to trust any benchmarks from this script until I figure out why it&#x

Re: [PHP] Strange benchmark behavior

2007-10-18 Thread Larry Garfield
e. :-) On Thursday 18 October 2007, Nathan Nobbe wrote: > Larry, > > i havent dug into the code or the post much cause im coding away today, > but i did drop you test script on a box of mine and run it. for what its > worth, > heres the results: > > [EMAIL PROTECTED] ~/working

Re: [PHP] redefine contante value

2007-10-18 Thread Larry Garfield
line 50 to define FPDF_FONTPATH to be whatever it is you want it to be. That's why it's in a config file. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclu

Re: [PHP] Re: newbie questions

2007-10-21 Thread Larry Garfield
ying to over-optimize, which is always a bad idea as it makes the code harder to understand later. :-) -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it i

Re: [PHP] Re: newbie questions

2007-10-21 Thread Larry Garfield
point. > > Yes the logging is just one simple insert into the database. -- 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 thin

Re: [PHP] Looking for a framework

2007-10-23 Thread Larry Garfield
this and maybe a few tipps how to > >> get it startet. > >> > >> Best regards, > >> > >> Merlin > >> > >> -- > >> PHP General Mailing List (http://www.php.net/) > >> To unsubscribe, visit: http://www.php.net/unsub.php --

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-25 Thread Larry Garfield
rsday 25 October 2007, Sascha Braun wrote: > What is the cause for that error: > > Fatal error: Maximum function nesting level of '100' reached, aborting! > in /home/Projekte/spectral/modules/xml_mm/classes/xml_mm.class.php on > line 118 > > Thank you! > > Sascha

Re: [PHP] moving over to php 5

2007-10-29 Thread Larry Garfield
heck? Compiling such stats is rather hit or miss, and the numbers most people quoted until now I have decided are simply wrong. I have a hard time believing that there are 300,000 different commercial web hosting companies out there. That many servers, sure, but companies? -- Larry Garfield

Re: [PHP] moving over to php 5

2007-10-29 Thread Larry Garfield
t's a 5.1.6 box. Here's a bigger question: When will people stop using mysql_ as their example API, when PDO is more standard in PHP 5 and more secure, and mysqli is available as well? -- Larry Garfield AIM: LOLG42 [EMAIL PROTECTED] ICQ: 6817012 &qu

<    1   2   3   4   5   6   7   8   9   >