Re: [nyphp-talk] PHP is not just for professionals

2014-05-23 Thread GLENN POWELL
Gary and Leam, I also agree. Over the past few years I have worked on 3 “homegrown” MVC frameworks. 2 of these were business applications (inventory, ERP, that sort of thing.) and that’s the use case I’m thinking of here. I didn’t design them or code them and had no involvement in the creation

Re: [nyphp-talk] What PHP tools are you using?

2012-05-30 Thread Glenn Powell
PhpStorm on development box/s and vim on the servers. PhpStorm really helps with a large MVC codebase. -Glenn On May 29, 2012, at 6:02 PM, Federico Ulfo wrote: > Hey guys, > what tools do you use to develop in PHP? Are you using Jenkins with all the > fancy plugins? And what abou

Re: [nyphp-talk] set datadir in mysql config

2011-01-03 Thread Glenn
that? HTH, Glenn On Jan 3, 2011, at 10:15 AM, Nicholas Hart wrote: I am trying to configure mysql to use a different datadir than default in order to move this to a larger volume. I have copied all mysql data from /var/lib/mysql to my new volume and ran both chown - R mysql:mysql * and

Re: [nyphp-talk] Array-cersize

2010-10-22 Thread Glenn
I'm not sure that I fully understand the subtleties of the data/ problem but... array_walk_recursive might be part of a solution. You could write a callback function to use with it to do whatever you need. http://www.php.net/manual/en/function.array-walk-recursive.php hth, glenn O

Re: [nyphp-talk] Inspiration for projects.

2010-01-21 Thread Glenn Powell
Some of the time, some of the coders code the clients ideas and dreams. Some of the time, some of the coders code their own ideas and dreams. Here's to the dreamers and inventers, clients and coders alike. :) Glenn On Jan 20, 2010, at 3:08 PM, Anthony Wlodarski wrote: I have a large amou

Re: [nyphp-talk] using PHP to import large-ish SQL into mysql

2009-10-21 Thread Glenn Powell
I remember seeing "Premature end of script headers" with Perl scripts when I mistakenly ftp'd them to the server in binary mode instead of ascii mode. Drove me crazy, and I knew better than to do that, I just overlooked the mode when I uploaded. Glenn On Oct 21, 2009, at

Re: [nyphp-talk] Arrays out of a file and back in?

2009-10-20 Thread Glenn Powell
This might do it. I haven't used this, but I've seen other's use it. http://us2.php.net/manual/en/function.serialize.php HTH, Glenn On Oct 20, 2009, at 6:05 PM, Leam Hall wrote: Down the road I'll get this going in a database, but at the moment I'm stuck using

Re: [nyphp-talk] developer's machine specs -- recomendations?

2009-10-19 Thread Glenn Powell
fusion and potential problems, especially when I'm tired. Glenn ___ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation _

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Glenn Powell
continuation from last post... and another idea... When you get the list of record ids, select enough of the text around the (target phrase to be "linkafied") to give it some context, and, at the point of publication of a new article, display those blurbs in a list with a pre checked checkbo

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Glenn Powell
If the article copy is stored in the db, and you've got sql to work with, then at the point of publication of a new article, it might be possible to narrow the targets with; select id from articles where article_text like %valley forge%"; (or something like that). Then you can do whatever yo

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Glenn Powell
Ah. New article titles are based on phrases from pre-existing content. On Aug 27, 2009, at 2:37 PM, Randal Rust wrote: On Thu, Aug 27, 2009 at 11:40 AM, Glenn Powell wrote: Maybe altering the existing articles is a one time process? Unfortunately, no. These sites are encyclopedias, so

Re: [nyphp-talk] Dynamically Add Links to Text

2009-08-27 Thread Glenn Powell
That would mean that only new articles would need to be run through the process at the time of publication? and update the known article titles with the new one. Of course, I probably don't fully understand the challenge... Glenn On Aug 27, 2009, at 10:04 AM, Randal Rust wrote:

Re: [nyphp-talk] Input as array names

2009-08-25 Thread Glenn Powell
this... Hope it helps. (then find a good tutorial/book and use your imagination...) glenn $myarray[1][0] = 'somekey'; $myarray[1][] = '1234'; $myarray[1][] = '5678'; $myarray[1][] = '9101112'; print "example a\n"; print_r($myarray); p

Re: [nyphp-talk] Migrate to Cloud

2009-08-13 Thread Glenn Powell
ally "like" depending on S3 to deliver components of the actual web app, but it works. For user created content in a load balanced situation it solves the problem of where to store the user created stuff. Best Regards, Glenn On Aug 13, 2009, at 8:56 PM, Peter Sawczynec wrote: Really just

Re: [nyphp-talk] table structure for "friend" relationships

2009-07-30 Thread Glenn Powell
Thanks for clarifying. glenn On Jul 30, 2009, at 5:07 PM, Allen Shaw wrote: Glenn Powell wrote: ... if 100 considers 300 a friend, that does not mean that 300 considers 100 a friend. It could be maddening for a user to see that they are a friend of 300, when in fact they have not done

Re: [nyphp-talk] table structure for "friend" relationships

2009-07-30 Thread Glenn Powell
the system to create that relationship. Looking for friends of 100 should probably mean looking for friends that 100 listed as friends? best, glenn On Jul 30, 2009, at 4:02 PM, Allen Shaw wrote: Hi Gang, To support "friend" relationships in a contacts management database, I&#

Re: [nyphp-talk] Learned one CMS and want to move on.

2009-07-27 Thread Glenn Powell
My jaded 2 cents... It's cheaper for your employer to use the most experienced Drupal developer for Drupal work. You can probably get Drupal things done very quickly compared to others at your workplace... quick=profit (or getting the job in the first place.) I would guess that your car

Re: [nyphp-talk] memory problems

2009-06-04 Thread Glenn Powell
I had a similar problem and I added some old fashioned debug code using "echo" and "memory_get_usage" to see where the leaks were. It really helped, and it's very educational. (and fun...) HTH glenn On Jun 4, 2009, at 5:23 PM, Rahmin Pavlovic wrote: On Jun

Re: [nyphp-talk] Timeouts ... how to get around it?

2008-10-14 Thread Glenn
y_exists". When you find a key match, THEN look up the full record in the db. hth, Glenn On Oct 14, 2008, 1:57 AM, [EMAIL PROTECTED] wrote: Hello NYPHP, I have an array that has 13000 email addresses. For now, its in the script but will be in a database table eventually. It is a list o

Re: [nyphp-talk] Weird Switch Behavior

2008-09-13 Thread Glenn
determine what was happening. Glenn On Sep 9, 2008, at 10:31 PM, Michael B Allen wrote: Can someone explain why the below switch matches the 0 element? $ cat switch.php 1, 'bar' => 2, 'zap', ); foreach ($tmp as $key => $val) { switch ($key) {

Re: [nyphp-talk] PHP/MySQL environment problem??

2008-02-29 Thread Glenn
Just curious. Why not use an autoincrement ? I'm probably missing something...??? Back to your question; I think I remember reading something about last_insert_id() being different between mysql versions. Regards, Glenn On Feb 28, 2008, at 2:11 PM, PaulCheung wrote: The applicati