From john.b.williams at gmail.com Mon Apr 5 16:01:36 2010 From: john.b.williams at gmail.com (John Williams) Date: Mon, 5 Apr 2010 16:01:36 -0400 Subject: [nycphp-talk] passing variable when location.href='target.php' Message-ID: Thank you in advance for your response(s): Is there way to pass a variable to browser through php, when redirecting output using location.href='target.php' From mturk2k at hotmail.com Mon Apr 5 16:14:51 2010 From: mturk2k at hotmail.com (Michael Turk) Date: Mon, 5 Apr 2010 16:14:51 -0400 Subject: [nycphp-talk] passing variable when location.href='target.php' Message-ID: Hi John, What about adding the variable to the url you are using in your js location.href call? location.href='target.php?myKey=myVal' Then you can access the variable on target.php using php's $_GET array: $_GET['myKey'] Does that help or did I misunderstand your question? > From: john.b.williams at gmail.com > Date: Mon, 5 Apr 2010 16:01:36 -0400 > To: talk at lists.nyphp.org > Subject: [nycphp-talk] passing variable when location.href='target.php' > > Thank you in advance for your response(s): > > Is there way to pass a variable to browser through php, > when redirecting output using location.href='target.php' > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: From allen at TwoMiceAndAStrawberry.com Mon Apr 5 16:18:19 2010 From: allen at TwoMiceAndAStrawberry.com (Allen Shaw) Date: Mon, 05 Apr 2010 15:18:19 -0500 Subject: [nycphp-talk] passing variable when location.href='target.php' In-Reply-To: References: Message-ID: <4BBA458B.1070807@TwoMiceAndAStrawberry.com> John Williams wrote: > Is there way to pass a variable to browser through php, > when redirecting output using location.href='target.php' Hi John, If I understand your question correctly, you could use this: location.href='http://example.com/target.php?foo=bar&var=val' The sample code you gave uses a relative URL where an entire URL path is required. If you use the fully qualified URL, you'll be able to append URL parameters in the common fashion. (Strictly speaking this is not a PHP issue, as what you're doing is using JavaScript to redirect the user to a new URL, but anyway...) Hope this helps. - Allen -- Allen Shaw TwoMiceAndAStrawberry.com "Excellence in Web software development and design" From david at davidmintz.org Wed Apr 7 12:35:23 2010 From: david at davidmintz.org (David Mintz) Date: Wed, 7 Apr 2010 12:35:23 -0400 Subject: [nycphp-talk] netbeans redux Message-ID: Just wanted to express gratitude to whoever was talking up Netbeans a while back. Zend Studio had simply been killing me to death here, with my paltry 1 GB RAM, and I couldn't stand it anymore. Gave Netbeans a try -- goodbye, Zend Studio. -- Support real health care reform: http://phimg.org/ -- David Mintz http://davidmintz.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From allen at TwoMiceAndAStrawberry.com Wed Apr 7 12:41:25 2010 From: allen at TwoMiceAndAStrawberry.com (Allen Shaw) Date: Wed, 07 Apr 2010 11:41:25 -0500 Subject: [nycphp-talk] netbeans redux In-Reply-To: References: Message-ID: <4BBCB5B5.4070200@TwoMiceAndAStrawberry.com> David Mintz wrote: > Just wanted to express gratitude to whoever was talking up Netbeans a > while back. Zend Studio had simply been killing me to death here, with > my paltry 1 GB RAM, and I couldn't stand it anymore. Gave Netbeans a > try -- goodbye, Zend Studio. My main problem with Netbeans: no wordwrap. Will content myself with using Kate for now. -- Allen Shaw TwoMiceAndAStrawberry.com "Excellence in Web software development and design" From ant92083 at gmail.com Wed Apr 7 13:02:43 2010 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Wed, 7 Apr 2010 13:02:43 -0400 Subject: [nycphp-talk] netbeans redux In-Reply-To: <4BBCB5B5.4070200@TwoMiceAndAStrawberry.com> References: <4BBCB5B5.4070200@TwoMiceAndAStrawberry.com> Message-ID: In regards to the word wrap issue, there is a feature in Netbeans where you can set the right most margin and manually make returns. My monitor is 1920x1080 pixels so word wrap is not really a help for me. I can see where this would be applicable to netbooks or laptops. Eclipse from what I can remember doesn't even have native support for word wrap either, they have a plugin but it is wishy washy and barely functions correctly. I guess the saving grace to all of this is that Netbeans has this featured targeted for Netbeans 7. Take a look at the thread here: http://netbeans.org/bugzilla/show_bug.cgi?id=89894. If it was TL;DR the gist of it is that they tried to squeeze it into 6.9 but didn't make the deadline but it is going to be in 7 stable. -Anthony On Wed, Apr 7, 2010 at 12:41 PM, Allen Shaw wrote: > David Mintz wrote: > >> Just wanted to express gratitude to whoever was talking up Netbeans a >> while back. Zend Studio had simply been killing me to death here, with my >> paltry 1 GB RAM, and I couldn't stand it anymore. Gave Netbeans a try -- >> goodbye, Zend Studio. >> > My main problem with Netbeans: no wordwrap. Will content myself with using > Kate for now. > > -- > Allen Shaw > TwoMiceAndAStrawberry.com > > "Excellence in Web software development and design" > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nhart at partsauthority.com Tue Apr 13 12:04:09 2010 From: nhart at partsauthority.com (Nicholas Hart) Date: Tue, 13 Apr 2010 12:04:09 -0400 Subject: [nycphp-talk] Undelete mysql records Message-ID: I am looking for a way to search all deleted records in a table and undelete ones that were deleted by mistake. Anyone know of an easy way to do this? These are ISAM tables. Thanks. Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at atopia.net Tue Apr 13 12:06:51 2010 From: matt at atopia.net (Matt Juszczak) Date: Tue, 13 Apr 2010 12:06:51 -0400 (EDT) Subject: [nycphp-talk] Undelete mysql records In-Reply-To: References: Message-ID: > I am looking for a way to search all deleted records in a table and undelete > ones that were deleted by mistake.? Anyone know of an easy way to do this?? > These are ISAM tables.? Thanks. By deleted records, do you mean they were deleted with: DELETE FROM tableName WHERE .... ? Or something like: UPDATE tableName set is_deleted = 1 WHERE ... ? If you deleted them logically, it's a matter of writing the correct SQL statement. If you deleted them physically, good luck, especially with MyISAM, unless you had binary logging turned on or backups... -Matt From lester at glitnir.com Tue Apr 13 15:33:44 2010 From: lester at glitnir.com (Lester Leong) Date: Tue, 13 Apr 2010 15:33:44 -0400 Subject: [nycphp-talk] What's the best PHP obfuscator? Message-ID: Hey all, What's the best PHP obfuscator out there? I've heard Zend Guard mentioned a few times, but it's a bit too pricey at $600/month. I'm not against paying, but if anyone has any experiences or recommendations I'm open to them. Lester Leong -------------- next part -------------- An HTML attachment was scrubbed... URL: From tedd at sperling.com Tue Apr 13 16:44:42 2010 From: tedd at sperling.com (tedd) Date: Tue, 13 Apr 2010 16:44:42 -0400 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: References: Message-ID: At 3:33 PM -0400 4/13/10, Lester Leong wrote: >Hey all, > >What's the best PHP obfuscator out there? I've heard Zend Guard >mentioned a few times, but it's a bit too pricey at $600/month. I'm >not against paying, but if anyone has any experiences or >recommendations I'm open to them. > >Lester Leong I've reviewed a few coder's work that would qualify, but I wouldn't recommend them. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From greg at freephile.com Tue Apr 13 22:07:37 2010 From: greg at freephile.com (Greg Rundlett (freephile)) Date: Tue, 13 Apr 2010 22:07:37 -0400 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: References: Message-ID: On Tue, Apr 13, 2010 at 4:44 PM, tedd wrote: > At 3:33 PM -0400 4/13/10, Lester Leong wrote: > >> Hey all, >> >> What's the best PHP obfuscator out there? I've heard Zend Guard mentioned >> a few times, but it's a bit too pricey at $600/month. I'm not against >> paying, but if anyone has any experiences or recommendations I'm open to >> them. >> >> Lester Leong >> > > I've reviewed a few coder's work that would qualify, but I wouldn't > recommend them. > > Cheers, > > tedd > rotflmao Greg Rundlett -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramons at gmx.net Wed Apr 14 07:18:44 2010 From: ramons at gmx.net (David Krings) Date: Wed, 14 Apr 2010 07:18:44 -0400 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: References: Message-ID: <4BC5A494.6080100@gmx.net> On 4/13/2010 15:33, Lester Leong wrote: > Hey all, > > What's the best PHP obfuscator out there? I've heard Zend Guard > mentioned a few times, but it's a bit too pricey at $600/month. I'm not > against paying, but if anyone has any experiences or recommendations I'm > open to them. > > Lester Leong Why obfuscate the code? Knowing the why may make it easier to determine the how. David From tpsailer at gmail.com Wed Apr 14 10:13:56 2010 From: tpsailer at gmail.com (Tim Sailer) Date: Wed, 14 Apr 2010 10:13:56 -0400 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: References: Message-ID: On Tue, Apr 13, 2010 at 4:44 PM, tedd wrote: > At 3:33 PM -0400 4/13/10, Lester Leong wrote: > >> Hey all, >> >> What's the best PHP obfuscator out there? I've heard Zend Guard mentioned >> a few times, but it's a bit too pricey at $600/month. I'm not against >> paying, but if anyone has any experiences or recommendations I'm open to >> them. >> >> Lester Leong >> > > I've reviewed a few coder's work that would qualify, but I wouldn't > recommend them. > > That's one of the funniest responses I've seen in a great while. I'll have to keep this one. Unfortunately, it's also true. Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: From d at ingk.com Wed Apr 14 10:19:04 2010 From: d at ingk.com (Damion Hankejh) Date: Wed, 14 Apr 2010 10:19:04 -0400 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: References: Message-ID: Off-shore outsource it for the lowest rate you can find. --- Damion Hankejh | hankejh.com On Tue, Apr 13, 2010 at 3:33 PM, Lester Leong wrote: > Hey all, > > What's the best PHP obfuscator out there? I've heard Zend Guard mentioned a > few times, but it's a bit too pricey at $600/month. I'm not against paying, > but if anyone has any experiences or recommendations I'm open to them. > > Lester Leong > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulcheung at tiscali.co.uk Wed Apr 14 11:17:29 2010 From: paulcheung at tiscali.co.uk (Paul Cheung) Date: Wed, 14 Apr 2010 16:17:29 +0100 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: References: Message-ID: Hello Lester, What an excellent question. However, without going in personal likes or dislikes on the merits or demerits of obfuscators a good starting point for many things including obfuscators is http://sourceforge.net/ at least it will point you in the right direction to help you make your own informed decision. Paul From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Lester Leong Sent: 13 April 2010 20:34 To: talk at lists.nyphp.org Subject: [nycphp-talk] What's the best PHP obfuscator? Hey all, What's the best PHP obfuscator out there? I've heard Zend Guard mentioned a few times, but it's a bit too pricey at $600/month. I'm not against paying, but if anyone has any experiences or recommendations I'm open to them. Lester Leong -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeanbaptiste.verrey at gmail.com Wed Apr 14 12:08:10 2010 From: jeanbaptiste.verrey at gmail.com (jeanbaptiste.verrey at gmail.com) Date: Wed, 14 Apr 2010 17:08:10 +0100 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: References: Message-ID: <006001cadbec$af76e550$0e64aff0$@gmail.com> Hi, Just in case: Zend Guard is $600/year and not a month ! http://shop.zend.com/eu/zend-guard.html "Zend Guard is an annual subscription that includes 1 year of support and upgrades." Jean-Baptiste Verrey De : talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] De la part de Damion Hankejh On Tue, Apr 13, 2010 at 3:33 PM, Lester Leong wrote: Hey all, What's the best PHP obfuscator out there? I've heard Zend Guard mentioned a few times, but it's a bit too pricey at $600/month. I'm not against paying, but if anyone has any experiences or recommendations I'm open to them. Lester Leong -------------- next part -------------- An HTML attachment was scrubbed... URL: From edwardpotter at gmail.com Wed Apr 14 13:24:03 2010 From: edwardpotter at gmail.com (Edward Potter) Date: Wed, 14 Apr 2010 13:24:03 -0400 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: <006001cadbec$af76e550$0e64aff0$@gmail.com> References: <006001cadbec$af76e550$0e64aff0$@gmail.com> Message-ID: I guess the reality is if someone REALLY, REALLY, REALLY wants your code, there is no way to hide it. I mean a guy recently used an electron microscope to break obfuscation on an uncrackable chip. People have already cracked iPhone/4.0 from Apple. And Apple has a room of Stanford Phd's working on security. So it's kind of a lost cause. But if you can do $600 a year, Zend looks ok to me. :-) On Wed, Apr 14, 2010 at 12:08 PM, wrote: > Hi, > > Just in case: Zend Guard is $600/year and not a month ! > http://shop.zend.com/eu/zend-guard.html ?Zend Guard is an annual > subscription that includes 1 year of support and upgrades.? > > > > Jean-Baptiste Verrey > > > > *De :* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > *De la part de* Damion Hankejh > > On Tue, Apr 13, 2010 at 3:33 PM, Lester Leong wrote: > > Hey all, > > What's the best PHP obfuscator out there? I've heard Zend Guard mentioned a > few times, but it's a bit too pricey at $600/month. I'm not against paying, > but if anyone has any experiences or recommendations I'm open to them. > > Lester Leong > > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- IM/iChat: ejpusa Links: http://del.icio.us/ejpusa Follow me: http://www.twitter.com/ejpusa Karma: http://www.coderswithconscience.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrick at saint-laurent.us Wed Apr 14 13:47:25 2010 From: patrick at saint-laurent.us (Patrick Saint - laurent) Date: Wed, 14 Apr 2010 13:47:25 -0400 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: References: <006001cadbec$af76e550$0e64aff0$@gmail.com> Message-ID: You are wasting your time don't waste your money as well. Anyone with an intermediate knowledge of php internals will be able to decompile/unobfuscate/decrypt any of these products. If the Zend engine can read it and convert it to bytecode it can be unobfuscated. Patrick Saint - laurent On Wed, Apr 14, 2010 at 1:24 PM, Edward Potter wrote: > I guess the reality is if someone REALLY, REALLY, REALLY wants your code, > there is no way to hide it. I mean a guy recently used an electron > microscope to break obfuscation on an uncrackable chip. > > People have already cracked iPhone/4.0 from Apple. And Apple has a room of > Stanford Phd's working on security. > > So it's kind of a lost cause. But if you can do $600 a year, Zend looks ok > to me. > > :-) > > > > On Wed, Apr 14, 2010 at 12:08 PM, wrote: > >> Hi, >> >> Just in case: Zend Guard is $600/year and not a month ! >> http://shop.zend.com/eu/zend-guard.html ?Zend Guard is an annual >> subscription that includes 1 year of support and upgrades.? >> >> >> >> Jean-Baptiste Verrey >> >> >> >> *De :* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] >> *De la part de* Damion Hankejh >> >> On Tue, Apr 13, 2010 at 3:33 PM, Lester Leong wrote: >> >> Hey all, >> >> What's the best PHP obfuscator out there? I've heard Zend Guard mentioned >> a few times, but it's a bit too pricey at $600/month. I'm not against >> paying, but if anyone has any experiences or recommendations I'm open to >> them. >> >> Lester Leong >> >> >> >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > > > -- > IM/iChat: ejpusa > Links: http://del.icio.us/ejpusa > Follow me: http://www.twitter.com/ejpusa > Karma: http://www.coderswithconscience.com > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From d at ingk.com Wed Apr 14 13:54:31 2010 From: d at ingk.com (Damion Hankejh) Date: Wed, 14 Apr 2010 13:54:31 -0400 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: References: <006001cadbec$af76e550$0e64aff0$@gmail.com> Message-ID: Yeah that's the rub -- everything has a hole in it. Still, obfuscation can thwart the efforts of many otherwise PITA obnoxious students and losers living in basements. I see thousands of attempts every week from China alone, and have resorted to IP blocking and ridiculously long passwords, among other techniques. We can't keep everyone out, but most hackers will move on to easier challenges. Lester, what are your obfuscation objectives? --- Damion Hankejh | hankejh.com On Wed, Apr 14, 2010 at 1:24 PM, Edward Potter wrote: > I guess the reality is if someone REALLY, REALLY, REALLY wants your code, > there is no way to hide it. I mean a guy recently used an electron > microscope to break obfuscation on an uncrackable chip. > > People have already cracked iPhone/4.0 from Apple. And Apple has a room of > Stanford Phd's working on security. > > So it's kind of a lost cause. But if you can do $600 a year, Zend looks ok > to me. > > :-) > > > > On Wed, Apr 14, 2010 at 12:08 PM, wrote: > >> Hi, >> >> Just in case: Zend Guard is $600/year and not a month ! >> http://shop.zend.com/eu/zend-guard.html ?Zend Guard is an annual >> subscription that includes 1 year of support and upgrades.? >> >> >> >> Jean-Baptiste Verrey >> >> >> >> *De :* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] >> *De la part de* Damion Hankejh >> >> On Tue, Apr 13, 2010 at 3:33 PM, Lester Leong wrote: >> >> Hey all, >> >> What's the best PHP obfuscator out there? I've heard Zend Guard mentioned >> a few times, but it's a bit too pricey at $600/month. I'm not against >> paying, but if anyone has any experiences or recommendations I'm open to >> them. >> >> Lester Leong >> >> >> >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > > > -- > IM/iChat: ejpusa > Links: http://del.icio.us/ejpusa > Follow me: http://www.twitter.com/ejpusa > Karma: http://www.coderswithconscience.com > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Wed Apr 14 13:59:52 2010 From: chsnyder at gmail.com (Chris Snyder) Date: Wed, 14 Apr 2010 13:59:52 -0400 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: References: <006001cadbec$af76e550$0e64aff0$@gmail.com> Message-ID: On Wed, Apr 14, 2010 at 1:47 PM, Patrick Saint - laurent wrote: > You are wasting your time don't waste your money as well. ?Anyone with an > intermediate knowledge of php internals will be able to > decompile/unobfuscate/decrypt any of these products. ?If the Zend engine can > read it and convert it to bytecode it can be unobfuscated. > Patrick Saint - laurent The typical use case for obfuscation is to deliver working code to a client that doesn't already have a history of paying you. When the check clears, the client gets the unobfuscated version. Yes, they could steal the code and run, but they will still have to pay someone with "intermediate knowledge of php internals" in order to decompile it. One hopes it's easier to just pay you. From lester.bleong at gmail.com Wed Apr 14 15:36:37 2010 From: lester.bleong at gmail.com (Lester Leong) Date: Wed, 14 Apr 2010 15:36:37 -0400 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: References: <006001cadbec$af76e550$0e64aff0$@gmail.com> Message-ID: Hey all, The use case here is something similar to what Chris mentioned above, in that my organization develops and maintains a piece of software and we host this software on the client's premises, not ours. The obfuscation is just meant to be another hurdle to complicate life for the would-be attacker. If someone was determined enough to break in and reverse engineer it, it wouldn't be the end of the world either, as there is no mission-critical code or super secret Google search algorithm within. I looked at a few options and it seems like there are two classes of obfuscators here- ones that use additional software (ie. loaders) and ones that don't. The ones that don't are really crappy, since the only thing it can really do is change the var names, constants and strings. The rest of the syntax is still relatively intact (it has to be, otherwise how will it be interpreted?) The ones with loaders look more attractive. Still not a silver bullet, but this is more attuned to what I'm looking for. The only other option is some kind of PHP compiler that converts the PHP into binary, but we're not willing to go there just yet. Hope this helps Lester On Apr 14, 2010 2:00 PM, "Chris Snyder" wrote: On Wed, Apr 14, 2010 at 1:47 PM, Patrick Saint - laurent wrote: > You are... The typical use case for obfuscation is to deliver working code to a client that doesn't already have a history of paying you. When the check clears, the client gets the unobfuscated version. Yes, they could steal the code and run, but they will still have to pay someone with "intermediate knowledge of php internals" in order to decompile it. One hopes it's easier to just pay you. _______________________________________________ New York PHP Users Group Community Talk Mailing List... -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidalanroth at gmail.com Thu Apr 15 02:29:23 2010 From: davidalanroth at gmail.com (David Roth) Date: Thu, 15 Apr 2010 02:29:23 -0400 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: References: <006001cadbec$af76e550$0e64aff0$@gmail.com> Message-ID: <295BCC82-E9AF-4055-B308-D4CA8308BB57@gmail.com> Lots of entertaining replies. :-) A security attacker could simply replace the program with something else entirely. But I'm getting ahead of myself. If the main concern is that someone could break into the hosting site and change the PHP code to do something evil, than you could set-up a way to monitor the PHP (.php) source code. Do a 'sum' of all the .php and related files. Store this away from the PHP directories, and put it in the cron to run to do a 'sum' of all the .php files and send an e-mail alert if anything has changed along with the 'diff' output. This is assuming this monitoring is being done on a production server where development of the .php code isn't taking place with constant changes. With this scheme, you would be made aware of a change in any PHP code that's on the production server, and how it has been changed. This may reduce the fear if wondering if the site has been attacked and if so, what might have been changed. If a program contained the "secret sauce" I think I'd look at writing it in something that compiles like "C". At least there wouldn't be a reason to have source code for it of any kind running on a production server that's exposed to web attacks. Hope this helps! David Roth On Apr 14, 2010, at 3:36 PM, Lester Leong wrote: > Hey all, > > The use case here is something similar to what Chris mentioned > above, in that my organization develops and maintains a piece of > software and we host this software on the client's premises, not > ours. The obfuscation is just meant to be another hurdle to > complicate life for the would-be attacker. If someone was determined > enough to break in and reverse engineer it, it wouldn't be the end > of the world either, as there is no mission-critical code or super > secret Google search algorithm within. > > I looked at a few options and it seems like there are two classes of > obfuscators here- ones that use additional software (ie. loaders) > and ones that don't. The ones that don't are really crappy, since > the only thing it can really do is change the var names, constants > and strings. The rest of the syntax is still relatively intact (it > has to be, otherwise how will it be interpreted?) > > The ones with loaders look more attractive. Still not a silver > bullet, but this is more attuned to what I'm looking for. The only > other option is some kind of PHP compiler that converts the PHP into > binary, but we're not willing to go there just yet. > > Hope this helps > > Lester > >> On Apr 14, 2010 2:00 PM, "Chris Snyder" wrote: >> >> On Wed, Apr 14, 2010 at 1:47 PM, Patrick Saint - laurent >> wrote: >> > You are... >> >> The typical use case for obfuscation is to deliver working code to a >> client that doesn't already have a history of paying you. >> >> When the check clears, the client gets the unobfuscated version. >> >> Yes, they could steal the code and run, but they will still have to >> pay someone with "intermediate knowledge of php internals" in order >> to >> decompile it. One hopes it's easier to just pay you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramons at gmx.net Thu Apr 15 06:51:03 2010 From: ramons at gmx.net (David Krings) Date: Thu, 15 Apr 2010 06:51:03 -0400 Subject: [nycphp-talk] What's the best PHP obfuscator? In-Reply-To: References: <006001cadbec$af76e550$0e64aff0$@gmail.com> Message-ID: <4BC6EF97.1080403@gmx.net> On 4/14/2010 15:36, Lester Leong wrote: > Hey all, > The use case here is something similar to what Chris mentioned above, in > that my organization develops and maintains a piece of software and we > host this software on the client's premises, not ours. The obfuscation > is just meant to be another hurdle to complicate life for the would-be > attacker. Wouldn't you want to invest in security measures than obfusctating the code? It is like putting all your money in a safe, but sticking a pad lock from Junk Lot on the front door. The thieves will crack the door no problem and then wheel the safe out figuring out to crack that later. I assume that you do take other measures and that obfuscating is not the only defence. That said, you may want to take a look at NuCoder (http://www.nusphere.com/products/nucoder.htm). I haven't used it, but NuSphere is a halfway decent company who just needs to shape up on their licensing a bit. Their IDE is top shelf. David From nhart at partsauthority.com Thu Apr 15 11:32:23 2010 From: nhart at partsauthority.com (Nicholas Hart) Date: Thu, 15 Apr 2010 11:32:23 -0400 Subject: [nycphp-talk] Undelete mysql records Message-ID: I'm now trying to restore missing data from a prior date using binlogs but cannot seem to get this to load. Anyone familiar with restoring data from binlogs? Thanks. Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: From rewwer1212 at gmail.com Thu Apr 15 12:26:18 2010 From: rewwer1212 at gmail.com (Roger) Date: Thu, 15 Apr 2010 12:26:18 -0400 Subject: [nycphp-talk] Undelete mysql records In-Reply-To: References: Message-ID: I can't my question answered either. Robert On Thu, Apr 15, 2010 at 11:32 AM, Nicholas Hart wrote: > I'm now trying to restore missing data from a prior date using binlogs but > cannot seem to get this to load. Anyone familiar with restoring data from > binlogs? Thanks. > > Nick > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rolan at omnistep.com Thu Apr 15 12:41:21 2010 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 15 Apr 2010 12:41:21 -0400 Subject: [nycphp-talk] Undelete mysql records In-Reply-To: References: Message-ID: <4BC741B1.8020008@omnistep.com> Nicholas Hart wrote: > I'm now trying to restore missing data from a prior date using binlogs > but cannot seem to get this to load. Anyone familiar with restoring > data from binlogs? Yes. Did you look at this? http://dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html ~Rolan From ps at blu-studio.com Thu Apr 15 12:46:08 2010 From: ps at blu-studio.com (ps at blu-studio.com) Date: Thu, 15 Apr 2010 09:46:08 -0700 Subject: [nycphp-talk] Undelete mysql records Message-ID: <20100415094608.69a71d519390b8693ef02edaf26f7b19.219339ed06.wbe@email.secureserver.net> An HTML attachment was scrubbed... URL: From allen at TwoMiceAndAStrawberry.com Thu Apr 15 12:46:33 2010 From: allen at TwoMiceAndAStrawberry.com (Allen Shaw) Date: Thu, 15 Apr 2010 11:46:33 -0500 Subject: [nycphp-talk] Undelete mysql records In-Reply-To: References: Message-ID: <4BC742E9.6060100@TwoMiceAndAStrawberry.com> Nicholas Hart wrote: > I'm now trying to restore missing data from a prior date using binlogs > but cannot seem to get this to load. Anyone familiar with restoring > data from binlogs? Thanks. Hi Nick, I've restored data in this way many times, as I'm sure have others on this list. I'd be happy to offer some tips on getting the results you're looking for. What have you tried so far, and what results are you getting? This page is a good starting point, though you may have reviewed it already: http://dev.mysql.com/doc/refman/5.1/en/mysqlbinlog.html - Allen -- Allen Shaw TwoMiceAndAStrawberry.com "Excellence in Web software development and design" From matt at atopia.net Thu Apr 15 12:49:25 2010 From: matt at atopia.net (Matt Juszczak) Date: Thu, 15 Apr 2010 16:49:25 +0000 Subject: [nycphp-talk] Undelete mysql records In-Reply-To: <20100415094608.69a71d519390b8693ef02edaf26f7b19.219339ed06.wbe@email.secureserver.net> References: <20100415094608.69a71d519390b8693ef02edaf26f7b19.219339ed06.wbe@email.secureserver.net> Message-ID: <948746606-1271350166-cardhu_decombobulator_blackberry.rim.net-1506150707-@bda188.bisx.prod.on.blackberry> Is bin logging definitely turned on? What's the output of "show master status\G" and "show global variables\G" -----Original Message----- From: ps at blu-studio.com Date: Thu, 15 Apr 2010 09:46:08 To: NYPHP Talk Subject: Re: [nycphp-talk] Undelete mysql records _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation From lists at zaunere.com Fri Apr 16 09:57:41 2010 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 16 Apr 2010 09:57:41 -0400 Subject: [nycphp-talk] The Largest Web Sites Message-ID: <00db01cadd6c$c8546120$58fd2360$@com> Looks like an excellent resource - http://royal.pingdom.com/2010/04/14/peeking-behind-the-scenes-of-the-worlds- largest-sites/ H From nhart at partsauthority.com Fri Apr 16 13:24:19 2010 From: nhart at partsauthority.com (Nicholas Hart) Date: Fri, 16 Apr 2010 13:24:19 -0400 Subject: [nycphp-talk] Undelete mysql records - resolved! Message-ID: Probably worth noting. Turns out if you connect PHP to one database and insert a record in another database then the binlogs filter this together with the database you are connected to. In other words, I wasn't seeing any inserts with the --database= option in mysqlbinlog. Ended up dumping all binlog data and parsing it before reinserting my missing data. Nick On Fri, Apr 16, 2010 at 12:00 PM, wrote: > Send talk mailing list submissions to > talk at lists.nyphp.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.nyphp.org/mailman/listinfo/talk > or, via email, send a message with subject or body 'help' to > talk-request at lists.nyphp.org > > You can reach the person managing the list at > talk-owner at lists.nyphp.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of talk digest..." > > > Today's Topics: > > 1. Re: Undelete mysql records (Roger) > 2. Re: Undelete mysql records (Rolan Yang) > 3. Re: Undelete mysql records (ps at blu-studio.com) > 4. Re: Undelete mysql records (Allen Shaw) > 5. Re: Undelete mysql records (Matt Juszczak) > 6. The Largest Web Sites (Hans Zaunere) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 15 Apr 2010 12:26:18 -0400 > From: Roger > To: NYPHP Talk > Subject: Re: [nycphp-talk] Undelete mysql records > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > I can't my question answered either. > > Robert > > On Thu, Apr 15, 2010 at 11:32 AM, Nicholas Hart >wrote: > > > I'm now trying to restore missing data from a prior date using binlogs > but > > cannot seem to get this to load. Anyone familiar with restoring data > from > > binlogs? Thanks. > > > > Nick > > > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.nyphp.org/pipermail/talk/attachments/20100415/a31ccfd3/attachment-0001.html > > > > ------------------------------ > > Message: 2 > Date: Thu, 15 Apr 2010 12:41:21 -0400 > From: Rolan Yang > To: NYPHP Talk > Subject: Re: [nycphp-talk] Undelete mysql records > Message-ID: <4BC741B1.8020008 at omnistep.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Nicholas Hart wrote: > > I'm now trying to restore missing data from a prior date using binlogs > > but cannot seem to get this to load. Anyone familiar with restoring > > data from binlogs? > > Yes. > > Did you look at this? > http://dev.mysql.com/doc/refman/5.0/en/point-in-time-recovery.html > > > ~Rolan > > > ------------------------------ > > Message: 3 > Date: Thu, 15 Apr 2010 09:46:08 -0700 > From: ps at blu-studio.com > To: "NYPHP Talk" > Subject: Re: [nycphp-talk] Undelete mysql records > Message-ID: > < > 20100415094608.69a71d519390b8693ef02edaf26f7b19.219339ed06.wbe at email.secureserver.net > > > > Content-Type: text/plain; charset="us-ascii" > > An HTML attachment was scrubbed... > URL: < > http://lists.nyphp.org/pipermail/talk/attachments/20100415/74316770/attachment-0001.html > > > > ------------------------------ > > Message: 4 > Date: Thu, 15 Apr 2010 11:46:33 -0500 > From: Allen Shaw > To: NYPHP Talk > Subject: Re: [nycphp-talk] Undelete mysql records > Message-ID: <4BC742E9.6060100 at TwoMiceAndAStrawberry.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Nicholas Hart wrote: > > I'm now trying to restore missing data from a prior date using binlogs > > but cannot seem to get this to load. Anyone familiar with restoring > > data from binlogs? Thanks. > Hi Nick, > > I've restored data in this way many times, as I'm sure have others on > this list. I'd be happy to offer some tips on getting the results > you're looking for. > > What have you tried so far, and what results are you getting? > > This page is a good starting point, though you may have reviewed it > already: > http://dev.mysql.com/doc/refman/5.1/en/mysqlbinlog.html > > - Allen > > -- > Allen Shaw > TwoMiceAndAStrawberry.com > > "Excellence in Web software development and design" > > > > > ------------------------------ > > Message: 5 > Date: Thu, 15 Apr 2010 16:49:25 +0000 > From: "Matt Juszczak" > To: "NYPHP Talk" > Subject: Re: [nycphp-talk] Undelete mysql records > Message-ID: > > <948746606-1271350166-cardhu_decombobulator_blackberry.rim.net-1506150707- at bda188.bisx.prod.on.blackberry > > > > Content-Type: text/plain > > Is bin logging definitely turned on? > > What's the output of "show master status\G" and "show global variables\G" > > > -----Original Message----- > From: ps at blu-studio.com > Date: Thu, 15 Apr 2010 09:46:08 > To: NYPHP Talk > Subject: Re: [nycphp-talk] Undelete mysql records > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > ------------------------------ > > Message: 6 > Date: Fri, 16 Apr 2010 09:57:41 -0400 > From: "Hans Zaunere" > To: "'NYPHP Talk'" > Subject: [nycphp-talk] The Largest Web Sites > Message-ID: <00db01cadd6c$c8546120$58fd2360$@com> > Content-Type: text/plain; charset="us-ascii" > > Looks like an excellent resource - > > > http://royal.pingdom.com/2010/04/14/peeking-behind-the-scenes-of-the-worlds- > largest-sites/ > > H > > > > > > ------------------------------ > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > End of talk Digest, Vol 42, Issue 6 > *********************************** > -- -Nicholas Hart Parts Authority IT 516-678-3900 X3242 -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at atopia.net Fri Apr 16 13:43:47 2010 From: matt at atopia.net (Matt Juszczak) Date: Fri, 16 Apr 2010 13:43:47 -0400 (EDT) Subject: [nycphp-talk] Undelete mysql records - resolved! In-Reply-To: References: Message-ID: > Probably worth noting.? Turns out if you connect PHP to one database and insert a record in another database then the > binlogs filter this together with the database you are connected to.? In other words, I wasn't seeing any inserts with > the --database=? option in mysqlbinlog.? Ended up dumping all binlog data and parsing it before reinserting my missing > data. This is correct behavior. It's actually why I don't recommend people use database-specific replication. When you skip a database or only replicate a specific database, it will only work if queries are actually selecting that database as the working database (in PHP, mysql_select_db(), and on the command line, use ;). I've seen what you describe above break replication setups massively, when people think an entire specific database is being replicated, and then run queries like: INSERT INTO DB.tableName VALUES (...,...,...); And that doesn't get replicated. A better thing to do is blackhole tables on a slave if you really don't want to store that data, and just setup replication normally - then you're at least guaranteed to have consistent data (though, you can't happily promote that slave to a master, but you wouldn't have been able to do that anyway with the original db-specific replication). Just my .02 -Matt From chsnyder at gmail.com Fri Apr 16 15:02:17 2010 From: chsnyder at gmail.com (Chris Snyder) Date: Fri, 16 Apr 2010 15:02:17 -0400 Subject: [nycphp-talk] using mailman for authentication Message-ID: I'm working with a group that is centered around a Mailman mailing list (imagine that!) and they want to add a private wiki that would only be accessible by list subscribers. Has anyone here built an authentication subroutine against Mailman before? I'm pretty sure you could just craft a POST request to /mailman/roster/listname or one of the other pages that requires email+password auth, and check the response to see if it was successful. If you have done this and have any tips or gotchas to share, please do. Chris Snyder http://chxor.chxo.com/ From ant92083 at gmail.com Fri Apr 16 16:35:06 2010 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Fri, 16 Apr 2010 16:35:06 -0400 Subject: [nycphp-talk] What are everyone's thoughts on Zend Framework. Message-ID: I used to use CakePHP extensively in my projects but found its limitations on certain projects. I have tried Symfony but felt it was too heavy and didn't like the whole kitchen sink model (or its ORM) for that matter. Right now I am evaluating platforms on to build my next project on and it has come to a couple of recommendations. Django, Zend Framework, and Spring+Hibernate. What are your thoughts on ZF, what do you like about it and what do you dislike about it? -Anthony -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmarscher at beaffinitive.com Fri Apr 16 16:42:19 2010 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Fri, 16 Apr 2010 16:42:19 -0400 Subject: [nycphp-talk] What are everyone's thoughts on Zend Framework. In-Reply-To: References: Message-ID: <5AE8FFD5-3EA8-42B5-8474-6022B080B375@beaffinitive.com> On Apr 16, 2010, at 4:35 PM, Anthony Wlodarski wrote: > What are your thoughts on ZF, what do you like about it and what do you dislike about it? Pro: It's nice and modular so you can pick and choose what you use. It has a lot of features/components. I use a number of them (like Zend_Cache) in most of my projects. Some of the abstractions for working with APIs are really nice too (Amazon, Flickr, etc). Cons: The MVC implementation feels a bit heavy compared to other frameworks - might be better with the ZF 2.0 PHP5.3 version since that allows for some shortcuts. You should give Kohana a look. Some of our developers have had good luck with that framework. Lithium PHP looks pretty cool too but given that you found CakePHP limiting, not sure these frameworks will solve that. Not really sure what you're looking for that Cake didn't provide or allow. From ant92083 at gmail.com Fri Apr 16 16:56:37 2010 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Fri, 16 Apr 2010 16:56:37 -0400 Subject: [nycphp-talk] What are everyone's thoughts on Zend Framework. In-Reply-To: <5AE8FFD5-3EA8-42B5-8474-6022B080B375@beaffinitive.com> References: <5AE8FFD5-3EA8-42B5-8474-6022B080B375@beaffinitive.com> Message-ID: I have been working with Kohana 2.x and 3.0.4 as well. My doubts come from what is going to happen with 2.x now that 3.0.4 is here, not to mention the complete lack of docs for 3.x... I was also evaluating Spring/Hibernate and have seen it is really really nice, Django too as well. On Fri, Apr 16, 2010 at 4:42 PM, Rob Marscher wrote: > On Apr 16, 2010, at 4:35 PM, Anthony Wlodarski wrote: > > What are your thoughts on ZF, what do you like about it and what do you > dislike about it? > > > Pro: > It's nice and modular so you can pick and choose what you use. > It has a lot of features/components. I use a number of them (like > Zend_Cache) in most of my projects. Some of the abstractions for working > with APIs are really nice too (Amazon, Flickr, etc). > > Cons: > The MVC implementation feels a bit heavy compared to other frameworks - > might be better with the ZF 2.0 PHP5.3 version since that allows for some > shortcuts. > > You should give Kohana a look. Some of our developers have had good luck > with that framework. Lithium PHP looks pretty cool too but given that you > found CakePHP limiting, not sure these frameworks will solve that. Not > really sure what you're looking for that Cake didn't provide or allow. > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From garyamort at gmail.com Sat Apr 17 15:33:31 2010 From: garyamort at gmail.com (Gary Mort) Date: Sat, 17 Apr 2010 15:33:31 -0400 Subject: [nycphp-talk] Dev on Windows7 Message-ID: Gah, So, after years of fighting to learn Mac...hating the one button mouse, etc etc I finally had gotten an environment I was comfortable in. Mercurial for Version Control. Apache + PHP 5.3 + Passenger/Ruby on Rails MySQL Navicat Netbeans Text Wrangler Komodo Edit Virtual hosts setup for easy server creation Local BIND server to resolve special set of local domain names to localhost to make for easy virtual host setup And then of course....just as I completed this, I moved and after mostly finishing on April 3rd.......had a fire on April 4th and the house is gone...along with my Mac. For the price of 1 MacBook, I was able to replace not only my system but my wifes and get everything functional. So now I'm on windows and trying to figure out how to replicate the above setup in a windows world...... At this point I'm strongly considering picking up a copy of Snow Leopard and seeing if I can convert this thing into a Hackintosh to get my beloved MacOS back...... Guess it's true, don't know a good thing till it's gone. :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenrbnsn at rbnsn.com Sat Apr 17 15:40:00 2010 From: kenrbnsn at rbnsn.com (Ken Robinson) Date: Sat, 17 Apr 2010 15:40:00 -0400 Subject: [nycphp-talk] Dev on Windows7 In-Reply-To: References: Message-ID: <20100417194011.36E481CB0A74@lists.nyphp.org> At 03:33 PM 4/17/2010, Gary Mort wrote (in part): >Gah, > >So, after years of fighting to learn Mac...hating the one button >mouse, etc etc I finally had gotten an environment I was comfortable in. > >Mercurial for Version Control. >Apache + PHP 5.3 + Passenger/Ruby on Rails >MySQL >Navicat >Netbeans >Text Wrangler >Komodo Edit >Virtual hosts setup for easy server creation >Local BIND server to resolve special set of local domain names to >localhost to make for easy virtual host setup > >And then of course....just as I completed this, I moved and after >mostly finishing on April 3rd.......had a fire on April 4th and the >house is gone...along with my Mac. > >For the price of 1 MacBook, I was able to replace not only my system >but my wifes and get everything functional. So now I'm on windows >and trying to figure out how to replicate the above setup in a >windows world...... Sorry to hear of your loss... If you stay on Windows 7, I would suggest downloading and installing xampp. http://www.apachefriends.org/en/xampp.html You could also try using cygwin. http://cygwin.com/ Ken From ajai at bitblit.net Sat Apr 17 17:06:59 2010 From: ajai at bitblit.net (Ajai Khattri) Date: Sat, 17 Apr 2010 17:06:59 -0400 (EDT) Subject: [nycphp-talk] What are everyone's thoughts on Zend Framework. In-Reply-To: Message-ID: On Fri, 16 Apr 2010, Anthony Wlodarski wrote: > What are your thoughts on ZF, what do you like about it and what do you > dislike about it? Its not a framework, its a library of components. -- Aj. From ant92083 at gmail.com Sat Apr 17 17:24:58 2010 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Sat, 17 Apr 2010 16:24:58 -0500 Subject: [nycphp-talk] What are everyone's thoughts on Zend Framework. In-Reply-To: References: Message-ID: Yes, you are correct. So far during today experiments I have seen that it is a loosely coupled library. The experience so far has been positive. With Ubuntu I installed it via Apt and I have the "zf" program in my program path so using it anywhere in the file system is easy. One thing that took me a while was to figure out where the library was stored with the Apt install. I found the folder then created a symlink and everything was in proper order. -Anthony On Sat, Apr 17, 2010 at 4:06 PM, Ajai Khattri wrote: > On Fri, 16 Apr 2010, Anthony Wlodarski wrote: > > > What are your thoughts on ZF, what do you like about it and what do you > > dislike about it? > > Its not a framework, its a library of components. > > > > -- > Aj. > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mutazmusa at gmail.com Sat Apr 17 18:11:12 2010 From: mutazmusa at gmail.com (Mutaz Musa) Date: Sat, 17 Apr 2010 18:11:12 -0400 Subject: [nycphp-talk] What are everyone's thoughts on Zend Framework. In-Reply-To: References: Message-ID: I used to use CakePHP extensively in my projects but found its limitations on certain projects. I'd also be interested to hear what limitations you came across with Cake. On Sat, Apr 17, 2010 at 5:24 PM, Anthony Wlodarski wrote: > Yes, you are correct. So far during today experiments I have seen that it > is a loosely coupled library. The experience so far has been positive. > With Ubuntu I installed it via Apt and I have the "zf" program in my program > path so using it anywhere in the file system is easy. One thing that took > me a while was to figure out where the library was stored with the Apt > install. I found the folder then created a symlink and everything was in > proper order. > > -Anthony > > > On Sat, Apr 17, 2010 at 4:06 PM, Ajai Khattri wrote: > >> On Fri, 16 Apr 2010, Anthony Wlodarski wrote: >> >> > What are your thoughts on ZF, what do you like about it and what do you >> > dislike about it? >> >> Its not a framework, its a library of components. >> >> >> >> -- >> Aj. >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > > > -- > Anthony W. > ant92083 at gmail.com > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ant92083 at gmail.com Sat Apr 17 19:28:07 2010 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Sat, 17 Apr 2010 18:28:07 -0500 Subject: [nycphp-talk] What are everyone's thoughts on Zend Framework. In-Reply-To: References: Message-ID: On a few certain projects with CakePHP I found not being able use type hinting a problem. Also holding onto PHP 4 for as long as it can hurt us OOP practices especially with namespace collisions and class prefixes. Don't get me wrong, the implementation of Active Record is amazing in CakePHP but when you build complex HABTM relationships loading data can be a PITA, thus requiring me to go into each model and set the recursion for how deep it will dig into the database because the arrays coming back are massive. In regards to the HABTM complex relationships it was more of a flying by the seat of your pants, for example once the application grew we noticed that the memory utilization was growing exponentially. Unfortunately it grew so much over a certain amount of time (Site got hit with the Digg effect.) that one night it took the box offline. The client got angry and basically blamed us, after finding the docs on how to reduce the depth of calls into the DB the damage was done. We moved to Kohana after that where they implement a different system for calling related objects. -Anthony On Sat, Apr 17, 2010 at 5:11 PM, Mutaz Musa wrote: > > I used to use CakePHP extensively in my projects but found its limitations > on certain projects. > > I'd also be interested to hear what limitations you came across with Cake. > > > On Sat, Apr 17, 2010 at 5:24 PM, Anthony Wlodarski wrote: > >> Yes, you are correct. So far during today experiments I have seen that it >> is a loosely coupled library. The experience so far has been positive. >> With Ubuntu I installed it via Apt and I have the "zf" program in my program >> path so using it anywhere in the file system is easy. One thing that took >> me a while was to figure out where the library was stored with the Apt >> install. I found the folder then created a symlink and everything was in >> proper order. >> >> -Anthony >> >> >> On Sat, Apr 17, 2010 at 4:06 PM, Ajai Khattri wrote: >> >>> On Fri, 16 Apr 2010, Anthony Wlodarski wrote: >>> >>> > What are your thoughts on ZF, what do you like about it and what do you >>> > dislike about it? >>> >>> Its not a framework, its a library of components. >>> >>> >>> >>> -- >>> Aj. >>> >>> _______________________________________________ >>> New York PHP Users Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/Show-Participation >>> >> >> >> >> -- >> Anthony W. >> ant92083 at gmail.com >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From edwardpotter at gmail.com Sat Apr 17 19:42:49 2010 From: edwardpotter at gmail.com (Edward Potter) Date: Sat, 17 Apr 2010 19:42:49 -0400 Subject: [nycphp-talk] What are everyone's thoughts on Zend Framework. In-Reply-To: References: Message-ID: I think CakePHP is pretty amazing myself. A bit of a learning curve, but really seems rock solid once you get up to speed. I'm using 1.3x. On Sat, Apr 17, 2010 at 7:28 PM, Anthony Wlodarski wrote: > On a few certain projects with CakePHP I found not being able use type > hinting a problem. Also holding onto PHP 4 for as long as it can hurt us > OOP practices especially with namespace collisions and class prefixes. > Don't get me wrong, the implementation of Active Record is amazing in > CakePHP but when you build complex HABTM relationships loading data can be a > PITA, thus requiring me to go into each model and set the recursion for how > deep it will dig into the database because the arrays coming back are > massive. > > In regards to the HABTM complex relationships it was more of a flying by > the seat of your pants, for example once the application grew we noticed > that the memory utilization was growing exponentially. Unfortunately it > grew so much over a certain amount of time (Site got hit with the Digg > effect.) that one night it took the box offline. The client got angry and > basically blamed us, after finding the docs on how to reduce the depth of > calls into the DB the damage was done. We moved to Kohana after that where > they implement a different system for calling related objects. > > -Anthony > > > On Sat, Apr 17, 2010 at 5:11 PM, Mutaz Musa wrote: > >> >> I used to use CakePHP extensively in my projects but found its limitations >> on certain projects. >> >> I'd also be interested to hear what limitations you came across with Cake. >> >> >> On Sat, Apr 17, 2010 at 5:24 PM, Anthony Wlodarski wrote: >> >>> Yes, you are correct. So far during today experiments I have seen that >>> it is a loosely coupled library. The experience so far has been positive. >>> With Ubuntu I installed it via Apt and I have the "zf" program in my program >>> path so using it anywhere in the file system is easy. One thing that took >>> me a while was to figure out where the library was stored with the Apt >>> install. I found the folder then created a symlink and everything was in >>> proper order. >>> >>> -Anthony >>> >>> >>> On Sat, Apr 17, 2010 at 4:06 PM, Ajai Khattri wrote: >>> >>>> On Fri, 16 Apr 2010, Anthony Wlodarski wrote: >>>> >>>> > What are your thoughts on ZF, what do you like about it and what do >>>> you >>>> > dislike about it? >>>> >>>> Its not a framework, its a library of components. >>>> >>>> >>>> >>>> -- >>>> Aj. >>>> >>>> _______________________________________________ >>>> New York PHP Users Group Community Talk Mailing List >>>> http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> http://www.nyphp.org/Show-Participation >>>> >>> >>> >>> >>> -- >>> Anthony W. >>> ant92083 at gmail.com >>> >>> _______________________________________________ >>> New York PHP Users Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/Show-Participation >>> >> >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > > > -- > Anthony W. > ant92083 at gmail.com > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- IM/iChat: ejpusa Links: http://del.icio.us/ejpusa Follow me: http://www.twitter.com/ejpusa Karma: http://www.coderswithconscience.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From yogesh.agashe at gmail.com Sat Apr 17 21:53:27 2010 From: yogesh.agashe at gmail.com (Yogesh Agashe) Date: Sun, 18 Apr 2010 07:23:27 +0530 Subject: [nycphp-talk] The Largest Web Sites In-Reply-To: <00db01cadd6c$c8546120$58fd2360$@com> References: <00db01cadd6c$c8546120$58fd2360$@com> Message-ID: This is good collection of resources. Thank you for sharing. Yogesh On Fri, Apr 16, 2010 at 7:27 PM, Hans Zaunere wrote: > Looks like an excellent resource - > > > http://royal.pingdom.com/2010/04/14/peeking-behind-the-scenes-of-the-worlds- > largest-sites/ > > H > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajai at bitblit.net Sat Apr 17 23:38:56 2010 From: ajai at bitblit.net (Ajai Khattri) Date: Sat, 17 Apr 2010 23:38:56 -0400 (EDT) Subject: [nycphp-talk] What are everyone's thoughts on Zend Framework. In-Reply-To: Message-ID: On Fri, 16 Apr 2010, Anthony Wlodarski wrote: > I have tried Symfony but felt it was too heavy and > didn't like the whole kitchen sink model (or its ORM) for that matter. Of course, you can customize Symfony up the wazoo and can skip the ORM or replace it entirely. You should also check out http://components.symfony-project.org/ -- Aj. From birgunjp0071 at yahoo.com Sun Apr 18 07:46:31 2010 From: birgunjp0071 at yahoo.com (birgunj birgunj) Date: Sun, 18 Apr 2010 04:46:31 -0700 (PDT) Subject: [nycphp-talk] converting tiff images to jpg/jpeg images Message-ID: <538146.93418.qm@web59315.mail.re1.yahoo.com> hi all, i want to convert tiff images to jpg/jpeg images using code(without third part tool like imagemagic).is any body has done it or any idea please share with me. thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Sun Apr 18 15:58:55 2010 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sun, 18 Apr 2010 15:58:55 -0400 Subject: [nycphp-talk] What are everyone's thoughts on Zend Framework. In-Reply-To: References: Message-ID: Coming from a CakePHP background you definitely should check out Lithium: http://rad-dev.org/lithium/source Has a lot of emerging ideas and forward-thinking features that can't be done with frameworks that aim for PHP4 compatibility. -- Mitch From pmjones88 at gmail.com Mon Apr 19 00:33:19 2010 From: pmjones88 at gmail.com (Paul M Jones) Date: Sun, 18 Apr 2010 23:33:19 -0500 Subject: [nycphp-talk] What are everyone's thoughts on Zend Framework. In-Reply-To: References: Message-ID: <1FC8F212-17A6-41AC-822B-ACBA83E4CE36@gmail.com> (Full disclosure: I am the lead architect on Solar.) On Apr 18, 2010, at 14:58 , Mitch Pirtle wrote: > Coming from a CakePHP background you definitely should check out Lithium: > > http://rad-dev.org/lithium/source > > Has a lot of emerging ideas and forward-thinking features that can't > be done with frameworks that aim for PHP4 compatibility. Please note that at least some of those ideas (e.g. the universal constructor) are taken from Solar, which is comparable to ZF in structure and organization (and pre-dates ZF as well). If you're considering ZF, you should consider Solar. Here are some ways Solar is already in advance of ZF: "The Future of Zend Framework is Solar" Someone mentioned the Cake ORM system; here is some info on the Solar ORM (which is use-at-will): - "Solar Models vs. Zend Framework Models" - "Working With Models" - "Working With Related Models" Hope that helps. -- Paul M. Jones http://paul-m-jones.com/ From matt at atopia.net Mon Apr 19 00:41:17 2010 From: matt at atopia.net (Matt Juszczak) Date: Mon, 19 Apr 2010 00:41:17 -0400 (EDT) Subject: [nycphp-talk] Good project management tool? Message-ID: Hi all, So I know all of these Saas Products like basecamp, lighthouse, etc. have come out recently that really make projects easier to manage. However, recently, I installed trac on our server, and was trying to set it up ... but my project buddies didn't like it, and felt it was too hard to use. I saw there were plugins for it, but they were still concerned about its interface and usability. What are you guys doing now-n-days to track things like lists of new ideas (with abilities to rank them/prioritize them), project documentation, ticket assigning, etc.? Thanks, Matt From ramons at gmx.net Mon Apr 19 07:15:05 2010 From: ramons at gmx.net (David Krings) Date: Mon, 19 Apr 2010 07:15:05 -0400 Subject: [nycphp-talk] Good project management tool? In-Reply-To: References: Message-ID: <4BCC3B39.1010806@gmx.net> On 4/19/2010 0:41, Matt Juszczak wrote: > What are you guys doing now-n-days to track things like lists of new > ideas (with abilities to rank them/prioritize them), project > documentation, ticket assigning, etc.? I was confronted once with that issue and being on a 0$ budget I decided to write my own (it was better than paper and pencil, but still rapidly inhaled). That was several years ago and I am sure the offerings are much better now. Aside from docs, the examples you mentioned can be done with any bug tracking software. The bugs/enhancements/ideas can be easily organized and assigned. They each get a number and for each development cycle you can use the numbers to do the project planning. It may be different in your case, but where I work the people who do the project management can care less what a bug is about as long as they know priority (which IMHO is high for any bug) and how long a fix is estimated to take. It is a bit different for new functionality, but even there the PM is more interested in a high level description. This works for us and our PM tools have no connection to the bug tracking. I can see how a connection would be nice, but I think a PM will not make much use of a link or it may become a source of distraction for the PM. That said, you may want to look at two or three seperate tools: - project management - bug tracking / enhancement management - customer support support tools (aka CRM, but you should have relations with your customers, not manage them) Sorry, cannot name any specific names. David From mitch.pirtle at gmail.com Mon Apr 19 07:38:01 2010 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 19 Apr 2010 07:38:01 -0400 Subject: [nycphp-talk] Good project management tool? In-Reply-To: References: Message-ID: I'm a huge fan of Redmine (http://redmine.org) and use it pretty much for everything I do - documents, files, release planning, resource planning, bugs/tracker, wiki... There's also a voting plugin that allows folks to vote on features, which is cool. There's a demo site if you want to check it out: (http://demo.redmine.org) I know there are some PHP efforts underway to replicate these features, but I've always been a bit impatient :-) Lastly this is a great excuse to take a peek at what RoR apps can look like under the hood. If you've ever wondered what the RoR hubbub was about, this is your chance to see for yourself. -- Mitch From pmjones88 at gmail.com Mon Apr 19 08:23:20 2010 From: pmjones88 at gmail.com (Paul M Jones) Date: Mon, 19 Apr 2010 07:23:20 -0500 Subject: [nycphp-talk] Good project management tool? In-Reply-To: References: Message-ID: There's also "mtrack" from Wez Furlong, the same guy that brought us PDO. -- Paul M. Jones http://paul-m-jones.com/ From ant92083 at gmail.com Mon Apr 19 09:06:44 2010 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Mon, 19 Apr 2010 09:06:44 -0400 Subject: [nycphp-talk] Good project management tool? In-Reply-To: References: Message-ID: I have recently been using Project Pier http://www.projectpier.org/. So far everyone in the office has been a fan of it. On Mon, Apr 19, 2010 at 8:23 AM, Paul M Jones wrote: > There's also "mtrack" from Wez Furlong, the same guy that brought us PDO. > > < > http://netevil.org/blog/2010/01/mtrack-a-software-development-tracker-wiki > > > > > -- > > Paul M. Jones > http://paul-m-jones.com/ > > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at devonianfarm.com Mon Apr 19 10:13:13 2010 From: paul at devonianfarm.com (Paul A Houle) Date: Mon, 19 Apr 2010 10:13:13 -0400 Subject: [nycphp-talk] Good project management tool? In-Reply-To: References: Message-ID: <4BCC64F8.70806@devonianfarm.com> Matt Juszczak wrote: > Hi all, > > So I know all of these Saas Products like basecamp, lighthouse, etc. > have come out recently that really make projects easier to manage. > Unfuddle is, I think, the best of that bunch. Basecamp is beautiful but underpowered for real sw development. From tom at supertom.com Mon Apr 19 10:15:55 2010 From: tom at supertom.com (Tom Melendez) Date: Mon, 19 Apr 2010 07:15:55 -0700 Subject: [nycphp-talk] Good project management tool? In-Reply-To: <4BCC64F8.70806@devonianfarm.com> References: <4BCC64F8.70806@devonianfarm.com> Message-ID: On Mon, Apr 19, 2010 at 7:13 AM, Paul A Houle wrote: > Matt Juszczak wrote: >> >> Hi all, >> >> So I know all of these Saas Products like basecamp, lighthouse, etc. have >> come out recently that really make projects easier to manage. >> > Unfuddle is, ?I think, ?the best of that bunch. ?Basecamp is beautiful but > underpowered for real sw development. +1 Unfuddle. Thanks, Tom http://www.liphp.org From felix.shnir at gmail.com Mon Apr 19 10:18:10 2010 From: felix.shnir at gmail.com (Felix Shnir) Date: Mon, 19 Apr 2010 10:18:10 -0400 Subject: [nycphp-talk] Good project management tool? In-Reply-To: References: <4BCC64F8.70806@devonianfarm.com> Message-ID: I'll throw one in. PivotalTracker.com. Its very light to use, has a great web interface, and free. Felix. On Mon, Apr 19, 2010 at 10:15 AM, Tom Melendez wrote: > On Mon, Apr 19, 2010 at 7:13 AM, Paul A Houle > wrote: > > Matt Juszczak wrote: > >> > >> Hi all, > >> > >> So I know all of these Saas Products like basecamp, lighthouse, etc. > have > >> come out recently that really make projects easier to manage. > >> > > Unfuddle is, I think, the best of that bunch. Basecamp is beautiful > but > > underpowered for real sw development. > > +1 Unfuddle. > > Thanks, > > Tom > http://www.liphp.org > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nhart at partsauthority.com Mon Apr 19 12:57:58 2010 From: nhart at partsauthority.com (Nicholas Hart) Date: Mon, 19 Apr 2010 12:57:58 -0400 Subject: [nycphp-talk] Best Hardware for mysql ? Message-ID: I am looking to purchase a new server to be used exclusively as a database server running mysql. Just wanted to know what server hardware people are using and recommending for this purpose. Anything extraordinary for example. Thanks. Thanks, Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at atopia.net Mon Apr 19 16:08:01 2010 From: matt at atopia.net (Matt Juszczak) Date: Mon, 19 Apr 2010 16:08:01 -0400 (EDT) Subject: [nycphp-talk] Good project management tool? In-Reply-To: References: <4BCC64F8.70806@devonianfarm.com> Message-ID: Thanks to everyone for their recommendations! On Mon, 19 Apr 2010, Felix Shnir wrote: > I'll throw one in. ?PivotalTracker.com. ?Its very light to use, has a great web interface, and free. > Felix. > > > On Mon, Apr 19, 2010 at 10:15 AM, Tom Melendez wrote: > On Mon, Apr 19, 2010 at 7:13 AM, Paul A Houle wrote: > > Matt Juszczak wrote: > >> > >> Hi all, > >> > >> So I know all of these Saas Products like basecamp, lighthouse, etc. have > >> come out recently that really make projects easier to manage. > >> > > Unfuddle is, ?I think, ?the best of that bunch. ?Basecamp is beautiful but > > underpowered for real sw development. > > +1 Unfuddle. > > Thanks, > > Tom > http://www.liphp.org > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > From edwardpotter at gmail.com Tue Apr 20 23:28:08 2010 From: edwardpotter at gmail.com (Edward Potter) Date: Tue, 20 Apr 2010 23:28:08 -0400 Subject: [nycphp-talk] Good project management tool? In-Reply-To: References: Message-ID: I always think back when. They project managed building the Empire State building with a Number 2 pencil and a pad. 410 days. Start to finish. From a hole in the ground to the worlds tallest building for 40 years. :-) On Mon, Apr 19, 2010 at 12:41 AM, Matt Juszczak wrote: > Hi all, > > So I know all of these Saas Products like basecamp, lighthouse, etc. have > come out recently that really make projects easier to manage. > > However, recently, I installed trac on our server, and was trying to set it > up ... but my project buddies didn't like it, and felt it was too hard to > use. I saw there were plugins for it, but they were still concerned about > its interface and usability. > > What are you guys doing now-n-days to track things like lists of new ideas > (with abilities to rank them/prioritize them), project documentation, ticket > assigning, etc.? > > Thanks, > > Matt > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- IM/iChat: ejpusa Links: http://del.icio.us/ejpusa Follow me: http://www.twitter.com/ejpusa Karma: http://www.coderswithconscience.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at atopia.net Tue Apr 20 23:40:36 2010 From: matt at atopia.net (Matt Juszczak) Date: Tue, 20 Apr 2010 23:40:36 -0400 (EDT) Subject: [nycphp-talk] Good project management tool? In-Reply-To: References: Message-ID: Wow, that's awesome :) On Tue, 20 Apr 2010, Edward Potter wrote: > I always think back when. > > They project managed building the Empire State building with a Number 2 pencil and a pad. > > 410 days.? Start to finish. From a hole in the ground to the worlds tallest building for 40 years. > > :-) > > > > On Mon, Apr 19, 2010 at 12:41 AM, Matt Juszczak wrote: > Hi all, > > So I know all of these Saas Products like basecamp, lighthouse, etc. have come out recently that really make > projects easier to manage. > > However, recently, I installed trac on our server, and was trying to set it up ... but my project buddies > didn't like it, and felt it was too hard to use. I saw there were plugins for it, but they were still > concerned about its interface and usability. > > What are you guys doing now-n-days to track things like lists of new ideas (with abilities to rank > them/prioritize them), project documentation, ticket assigning, etc.? > > Thanks, > > Matt > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > > -- > IM/iChat: ejpusa > Links: http://del.icio.us/ejpusa > Follow me: http://www.twitter.com/ejpusa > Karma: http://www.coderswithconscience.com > > From ant92083 at gmail.com Fri Apr 23 11:30:22 2010 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Fri, 23 Apr 2010 11:30:22 -0400 Subject: [nycphp-talk] ZF Tutorial written by Rob Allen Message-ID: Hello, I was trying to get situated with ZF and get my feet on solid ground with the framework. The official ZF API and Reference guides lacking quite bad but little did I know that Rob Allen sits in a few chat rooms I freqent on Freenode (#phpc). Take a look at it if you are just getting up and running like myself. Quite basic but it gives you the juicy stuff on the MVC pattern it uses as well as working with forms, layouts, views, and validation. http://akrabat.com/zend-framework-tutorial/ -Anthony -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim_lists at o2group.com Fri Apr 23 14:35:18 2010 From: tim_lists at o2group.com (Tim Lieberman) Date: Fri, 23 Apr 2010 14:35:18 -0400 Subject: [nycphp-talk] ZF Tutorial written by Rob Allen In-Reply-To: References: Message-ID: On Apr 23, 2010, at 11:30 AM, Anthony Wlodarski wrote: > Hello, > > I was trying to get situated with ZF and get my feet on solid ground > with the framework. The official ZF API and Reference guides > lacking quite bad but little did I know that Rob Allen sits in a few > chat rooms I freqent on Freenode (#phpc). Take a look at it if you > are just getting up and running like myself. Quite basic but it > gives you the juicy stuff on the MVC pattern it uses as well as > working with forms, layouts, views, and validation. > > http://akrabat.com/zend-framework-tutorial/ Yup, Rob's tutorial is a must for neophytes. The Official Quickstart is a good read, too. Once you've got a basic level of comfort, and start thinking about how to implement your model layer, Matthew Weier O'Phinney, who IIRC is now the project lead for ZF, has a number of interesting blog posts: http://weierophinney.net/ Though they're not what you'd call tutorials, his posts relating to model infrastructure and using zend_form in your models are valuable reads. -Tim From tim_lists at o2group.com Fri Apr 23 14:41:58 2010 From: tim_lists at o2group.com (Tim Lieberman) Date: Fri, 23 Apr 2010 14:41:58 -0400 Subject: [nycphp-talk] ZF Tutorial written by Rob Allen In-Reply-To: References: Message-ID: <2E8749D7-27C5-4FBC-AC82-02E7E5E4F969@o2group.com> On Apr 23, 2010, at 2:35 PM, Tim Lieberman wrote: > > Once you've got a basic level of comfort, and start thinking about > how to implement your model layer, Matthew Weier O'Phinney, who IIRC > is now the project lead for ZF, has a number of interesting blog > posts: http://weierophinney.net/ Matthew's blog is actually here: http://weierophinney.net/matthew/ The particular posts I mentioned are: http://weierophinney.net/matthew/archives/202-Model-Infrastructure.html and http://weierophinney.net/matthew/archives/200-Using-Zend_Form-in-Your-Models.html Though he's got some other nice posts as well. -Tim From ajai at bitblit.net Fri Apr 23 15:37:54 2010 From: ajai at bitblit.net (Ajai Khattri) Date: Fri, 23 Apr 2010 15:37:54 -0400 (EDT) Subject: [nycphp-talk] Good project management tool? In-Reply-To: Message-ID: On Tue, 20 Apr 2010, Edward Potter wrote: > I always think back when. > > They project managed building the Empire State building with a Number 2 > pencil and a pad. > > 410 days. Start to finish. From a hole in the ground to the worlds tallest > building for 40 years. Of course, people always get misty-eyed about things like that and conveniently forget things are a bit more complicated now. -- A From john.b.williams at gmail.com Fri Apr 23 15:59:35 2010 From: john.b.williams at gmail.com (John Williams) Date: Fri, 23 Apr 2010 15:59:35 -0400 Subject: [nycphp-talk] display html in iFrame Message-ID: Dear List We are trying to display html in an iFrame. The html is generated from an xslt of a .xml and .xsl file. Below are the error messages that appear in the iFrame, followed by our PHP code. Any advice is greatly apreciated! Thank you! Begin iFrame error message: "The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later. Invalid at the top level of the document. Error processing resource 'https://192.168.99.107/xxxDevVxxx/controller.php?d... file_exists=1 -----------------------------..." End iFrame error message if($d->get_mimetype()=='application/xml' || $d->get_mimetype()=='text/xml'){ $convertedFile = substr(basename($url), 0, strrpos(basename($url), '.')) . '_converted.html'; $url = $GLOBALS["fileroot"].'/documents/'.$_SESSION["pid"].'/'.$convertedFile; echo "\n "; $contentType = "application/html"; echo " file_exists=".file_exists($url); if (!file_exists($url)){ echo "\n "; $xml = new DOMDocument(); $xml->load($temp_url); $xslt = new XSLTProcessor(); $ss_es = $xml->getElementsByTagName('xmlFile'); echo ''; if($ss_es->length>0){ $ss = new DOMDocument(); $ss->load($GLOBALS["fileroot"].'/../abc/abc.xsl'); $xslt->importStyleSheet($ss); $xml->loadHTML($xslt->transformToXML($xml)); //$xml->saveHTML(); } else { $ss_es = $xml->getElementsByTagName('xxxDocument'); echo ''; if($ss_es->length>0){ $ss = new DOMDocument(); $ss->load($GLOBALS["fileroot"].'/../aaa/bbb/CCC.xsl'); $xslt->importStyleSheet($ss); $xml->loadHTML($xslt->transformToXML($xml)); //$xml->saveHTML(); } } if($xml->save($url)==false){ $url = $d->get_url(); $contentType = "application/xml"; } } else { echo "\n "; } header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Disposition: " . ($as_file ? "attachment" : "inline") . "; filename=\"" . basename($url) . "\""); header("Content-Type: ".$contentType); header("Content-Length: " . filesize($url)); $f = fopen($url,"r"); fpassthru($f); exit; From chsnyder at gmail.com Fri Apr 23 16:08:54 2010 From: chsnyder at gmail.com (Chris Snyder) Date: Fri, 23 Apr 2010 16:08:54 -0400 Subject: [nycphp-talk] display html in iFrame In-Reply-To: References: Message-ID: On Fri, Apr 23, 2010 at 3:59 PM, John Williams wrote: > Dear List > > We are trying to display html in an iFrame. ?The html is generated > from an xslt of a .xml and .xsl file. Below are the error messages > that appear in the iFrame, followed by our PHP code. Any advice is > greatly apreciated! ?Thank you! > Make sure you are sending a Content-type: text/html header. Chris Snyder http://chxor.chxo.com/ From edwardpotter at gmail.com Fri Apr 23 23:21:06 2010 From: edwardpotter at gmail.com (Edward Potter) Date: Fri, 23 Apr 2010 23:21:06 -0400 Subject: [nycphp-talk] kind of cool new comer: pulsecms >>> php cms Message-ID: Looks kind of cool. super simple, great gui, may help out some php coders that need to knock out a quick cms. the usual suspects, php, mysq, jquery http://pulsecms.com/ :-) -- IM/iChat: ejpusa Links: http://del.icio.us/ejpusa Follow me: http://www.twitter.com/ejpusa Karma: http://www.coderswithconscience.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajai at bitblit.net Sat Apr 24 23:58:11 2010 From: ajai at bitblit.net (Ajai Khattri) Date: Sat, 24 Apr 2010 23:58:11 -0400 (EDT) Subject: [nycphp-talk] MAMP or XAMPP ? Message-ID: Which is better ? -- Aj. From papillion at gmail.com Sun Apr 25 02:01:59 2010 From: papillion at gmail.com (Anthony Papillion) Date: Sun, 25 Apr 2010 01:01:59 -0500 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: References: Message-ID: <020301cae43c$d1e38500$75aa8f00$@com> Hi Aj, It's really just a platform preference. If you're comfortable on Mac, use MAMP and if you're comfortable on Windows/Linux, use XAMPP. As long as you stick to convention, it shouldn't matter at all and your files should be fully portable. Anthony -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Ajai Khattri Sent: Saturday, April 24, 2010 10:58 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] MAMP or XAMPP ? Which is better ? -- Aj. _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation From mmwaldman at nyc.rr.com Sun Apr 25 11:03:58 2010 From: mmwaldman at nyc.rr.com (mmw) Date: Sun, 25 Apr 2010 11:03:58 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: Message-ID: <2F.6F.00932.DD954DB4@hrndva-omtalb.mail.rr.com> Huh? One's for mac one's for pcs. I guess it depends on your system as to which one is better. Xampp works for me. Michele > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Ajai Khattri > Sent: Saturday, April 24, 2010 11:58 PM > To: talk at lists.nyphp.org > Subject: [nycphp-talk] MAMP or XAMPP ? > > > Which is better ? > > -- > Aj. > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From jcampbell1 at gmail.com Sun Apr 25 13:09:10 2010 From: jcampbell1 at gmail.com (John Campbell) Date: Sun, 25 Apr 2010 13:09:10 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: References: Message-ID: I think MAMP is a pain in the ass, and prefer to get the stack from MacPorts. The default MAMP install leaves you with stuff like a different version of PHP for cli vs Apache, and it is a pain to install additional modules. On Sat, Apr 24, 2010 at 11:58 PM, Ajai Khattri wrote: > > Which is better ? > > -- > Aj. > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From mmwaldman at nyc.rr.com Sun Apr 25 13:20:14 2010 From: mmwaldman at nyc.rr.com (mmw) Date: Sun, 25 Apr 2010 13:20:14 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: Message-ID: <2A.13.29484.EC974DB4@hrndva-omtalb.mail.rr.com> I did have trouble installing xampp the first time around. I had to modify some file. Don't ask me which one. Last time I installed, it went well. I use WEBuilder, instead of DreamWeaver or whatever, so with a little help from the tech folks, I got it all setup to preview php files in my editor. WEBuilder was like $60 or something. I've encountered one minor problem which I have not reported. Xampp with WEBuilder cuts down on development time quite a bit. Michele > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of John Campbell > Sent: Sunday, April 25, 2010 1:09 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > > I think MAMP is a pain in the ass, and prefer to get the stack from > MacPorts. The default MAMP install leaves you with stuff like a > different version of PHP for cli vs Apache, and it is a pain to > install additional modules. > > > > On Sat, Apr 24, 2010 at 11:58 PM, Ajai Khattri > wrote: > > > > Which is better ? > > > > -- > > Aj. > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From mitch.pirtle at gmail.com Sun Apr 25 13:25:44 2010 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sun, 25 Apr 2010 13:25:44 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: References: Message-ID: On Sun, Apr 25, 2010 at 1:09 PM, John Campbell wrote: > I think MAMP is a pain in the ass, and prefer to get the stack from > MacPorts. ? The default MAMP install leaves you with stuff like a > different version of PHP for cli vs Apache, and it is a pain to > install additional modules. ++ on this one. I also use rails apps, memcache, and a bunch of other non-standard stuff like LightTPD and macports makes use of all these things a snap. -- Mitch From ajai at bitblit.net Sun Apr 25 13:46:50 2010 From: ajai at bitblit.net (Ajai Khattri) Date: Sun, 25 Apr 2010 13:46:50 -0400 (EDT) Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: <2F.6F.00932.DD954DB4@hrndva-omtalb.mail.rr.com> Message-ID: On Sun, 25 Apr 2010, mmw wrote: > Huh? One's for mac one's for pcs. Err, nope: http://www.apachefriends.org/en/xampp-macosx.html -- Aj. From mmwaldman at nyc.rr.com Sun Apr 25 13:52:12 2010 From: mmwaldman at nyc.rr.com (mmw) Date: Sun, 25 Apr 2010 13:52:12 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: Message-ID: Didn't know xampp made a mac version. But when I looked up mamp or whatever, it was specifically for mac. Michele > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Ajai Khattri > Sent: Sunday, April 25, 2010 1:47 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > > On Sun, 25 Apr 2010, mmw wrote: > > > Huh? One's for mac one's for pcs. > > Err, nope: > http://www.apachefriends.org/en/xampp-macosx.html > > > -- > Aj. > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From tim_lists at o2group.com Sun Apr 25 15:03:42 2010 From: tim_lists at o2group.com (Tim Lieberman) Date: Sun, 25 Apr 2010 15:03:42 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: References: Message-ID: On Apr 25, 2010, at 1:25 PM, Mitch Pirtle wrote: > On Sun, Apr 25, 2010 at 1:09 PM, John Campbell > wrote: >> I think MAMP is a pain in the ass, and prefer to get the stack from >> MacPorts. The default MAMP install leaves you with stuff like a >> different version of PHP for cli vs Apache, and it is a pain to >> install additional modules. > > ++ on this one. I also use rails apps, memcache, and a bunch of other > non-standard stuff like LightTPD and macports makes use of all these > things a snap. If you've got some time to experiment, it's not all that hard to build an AMP stack from source on MacOS. It is more work than using MAMP/XAMMP or MacPorts/Fink, but IMO, the flexibility is worth it in the long run. I try to maintain a set of shell scripts so I can tweak/recompile as needed. I tend to stick everything under some non-standard directory, so I can have multiple stacks for testing. For example, if I needed it, I'd have no problems setting up 4 stacks for 5.2/5.3 under mod_php/ fastcgi. This way, I can keep my local environment very close to whatever the production environment is for any particular project. -Tim From rich at 1webguru.com Mon Apr 26 10:08:31 2010 From: rich at 1webguru.com (Rich Bark) Date: Mon, 26 Apr 2010 10:08:31 -0400 Subject: [nycphp-talk] SimpleSAMLphp Message-ID: <003401cae549$f7b2e470$e718ad50$@com> Anyone here have experience with simpleSAMLphp? I cannot get it to work. Thanks, Rich -------------- next part -------------- An HTML attachment was scrubbed... URL: From nhart at partsauthority.com Mon Apr 26 12:53:22 2010 From: nhart at partsauthority.com (Nicholas Hart) Date: Mon, 26 Apr 2010 12:53:22 -0400 Subject: [nycphp-talk] innodb settings Message-ID: Hi, I am troubleshooting problems with slow inserts with innodb. Anyone have list of recommended config settings to reduce or eliminate these delays? Thanks, Nick On Mon, Apr 26, 2010 at 12:00 PM, wrote: > Send talk mailing list submissions to > talk at lists.nyphp.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.nyphp.org/mailman/listinfo/talk > or, via email, send a message with subject or body 'help' to > talk-request at lists.nyphp.org > > You can reach the person managing the list at > talk-owner at lists.nyphp.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of talk digest..." > > > Today's Topics: > > 1. Re: MAMP or XAMPP ? (John Campbell) > 2. Re: MAMP or XAMPP ? (mmw) > 3. Re: MAMP or XAMPP ? (Mitch Pirtle) > 4. Re: MAMP or XAMPP ? (Ajai Khattri) > 5. Re: MAMP or XAMPP ? (mmw) > 6. Re: MAMP or XAMPP ? (Tim Lieberman) > 7. SimpleSAMLphp (Rich Bark) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 25 Apr 2010 13:09:10 -0400 > From: John Campbell > To: NYPHP Talk > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > I think MAMP is a pain in the ass, and prefer to get the stack from > MacPorts. The default MAMP install leaves you with stuff like a > different version of PHP for cli vs Apache, and it is a pain to > install additional modules. > > > > On Sat, Apr 24, 2010 at 11:58 PM, Ajai Khattri wrote: > > > > Which is better ? > > > > -- > > Aj. > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > > > ------------------------------ > > Message: 2 > Date: Sun, 25 Apr 2010 13:20:14 -0400 > From: "mmw" > To: "'NYPHP Talk'" > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: <2A.13.29484.EC974DB4 at hrndva-omtalb.mail.rr.com> > Content-Type: text/plain; charset="US-ASCII" > > I did have trouble installing xampp the first time around. I had to modify > some file. Don't ask me which one. > > Last time I installed, it went well. > > I use WEBuilder, instead of DreamWeaver or whatever, so with a little help > from the tech folks, I got it all setup to preview php files in my editor. > > WEBuilder was like $60 or something. I've encountered one minor problem > which I have not reported. > > Xampp with WEBuilder cuts down on development time quite a bit. > > Michele > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org > > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of John Campbell > > Sent: Sunday, April 25, 2010 1:09 PM > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > > > > I think MAMP is a pain in the ass, and prefer to get the stack from > > MacPorts. The default MAMP install leaves you with stuff like a > > different version of PHP for cli vs Apache, and it is a pain to > > install additional modules. > > > > > > > > On Sat, Apr 24, 2010 at 11:58 PM, Ajai Khattri > > wrote: > > > > > > Which is better ? > > > > > > -- > > > Aj. > > > > > > _______________________________________________ > > > New York PHP Users Group Community Talk Mailing List > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > http://www.nyphp.org/Show-Participation > > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > > ------------------------------ > > Message: 3 > Date: Sun, 25 Apr 2010 13:25:44 -0400 > From: Mitch Pirtle > To: NYPHP Talk > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > On Sun, Apr 25, 2010 at 1:09 PM, John Campbell > wrote: > > I think MAMP is a pain in the ass, and prefer to get the stack from > > MacPorts. ? The default MAMP install leaves you with stuff like a > > different version of PHP for cli vs Apache, and it is a pain to > > install additional modules. > > ++ on this one. I also use rails apps, memcache, and a bunch of other > non-standard stuff like LightTPD and macports makes use of all these > things a snap. > > -- Mitch > > > ------------------------------ > > Message: 4 > Date: Sun, 25 Apr 2010 13:46:50 -0400 (EDT) > From: Ajai Khattri > To: NYPHP Talk > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > Content-Type: TEXT/PLAIN; charset=US-ASCII > > On Sun, 25 Apr 2010, mmw wrote: > > > Huh? One's for mac one's for pcs. > > Err, nope: > http://www.apachefriends.org/en/xampp-macosx.html > > > -- > Aj. > > > > ------------------------------ > > Message: 5 > Date: Sun, 25 Apr 2010 13:52:12 -0400 > From: "mmw" > To: "'NYPHP Talk'" > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > Content-Type: text/plain; charset="US-ASCII" > > Didn't know xampp made a mac version. > > But when I looked up mamp or whatever, it was specifically for mac. > > Michele > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org > > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Ajai Khattri > > Sent: Sunday, April 25, 2010 1:47 PM > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > > > > On Sun, 25 Apr 2010, mmw wrote: > > > > > Huh? One's for mac one's for pcs. > > > > Err, nope: > > http://www.apachefriends.org/en/xampp-macosx.html > > > > > > -- > > Aj. > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > > ------------------------------ > > Message: 6 > Date: Sun, 25 Apr 2010 15:03:42 -0400 > From: Tim Lieberman > To: NYPHP Talk > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > On Apr 25, 2010, at 1:25 PM, Mitch Pirtle wrote: > > > On Sun, Apr 25, 2010 at 1:09 PM, John Campbell > > wrote: > >> I think MAMP is a pain in the ass, and prefer to get the stack from > >> MacPorts. The default MAMP install leaves you with stuff like a > >> different version of PHP for cli vs Apache, and it is a pain to > >> install additional modules. > > > > ++ on this one. I also use rails apps, memcache, and a bunch of other > > non-standard stuff like LightTPD and macports makes use of all these > > things a snap. > > If you've got some time to experiment, it's not all that hard to build > an AMP stack from source on MacOS. > > It is more work than using MAMP/XAMMP or MacPorts/Fink, but IMO, the > flexibility is worth it in the long run. > > I try to maintain a set of shell scripts so I can tweak/recompile as > needed. > > I tend to stick everything under some non-standard directory, so I can > have multiple stacks for testing. For example, if I needed it, I'd > have no problems setting up 4 stacks for 5.2/5.3 under mod_php/ > fastcgi. This way, I can keep my local environment very close to > whatever the production environment is for any particular project. > > -Tim > > > > ------------------------------ > > Message: 7 > Date: Mon, 26 Apr 2010 10:08:31 -0400 > From: "Rich Bark" > To: > Subject: [nycphp-talk] SimpleSAMLphp > Message-ID: <003401cae549$f7b2e470$e718ad50$@com> > Content-Type: text/plain; charset="us-ascii" > > Anyone here have experience with simpleSAMLphp? I cannot get it to work. > > > > Thanks, > > Rich > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.nyphp.org/pipermail/talk/attachments/20100426/6cbb0ae8/attachment-0001.html > > > > ------------------------------ > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > End of talk Digest, Vol 42, Issue 17 > ************************************ > -- -Nicholas Hart Parts Authority IT 516-678-3900 X3242 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmarscher at beaffinitive.com Mon Apr 26 13:05:08 2010 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Mon, 26 Apr 2010 13:05:08 -0400 Subject: [nycphp-talk] innodb settings In-Reply-To: References: Message-ID: <139BC5D6-C415-4B93-B986-4776B9E69B7D@beaffinitive.com> On Apr 26, 2010, at 12:53 PM, Nicholas Hart wrote: > I am troubleshooting problems with slow inserts with innodb. Anyone have list of recommended config settings to reduce or eliminate these delays? Try out the "mysqltuner.pl" perl script. It can give you some nice suggestions. http://blog.mysqltuner.com/2009/09/mysqltuner-v1-1-0-released/ Also, take a look at how many indexes your table has and the data length of those indexes. Cutting down on the indexes will make inserts faster. Add more ram and faster hard drives. ;) Those are some generic suggestions. Someone would really need to dig into your hardware, mysql settings, and database schema to provide a better analysis. From matt at atopia.net Mon Apr 26 13:06:00 2010 From: matt at atopia.net (Matt Juszczak) Date: Mon, 26 Apr 2010 13:06:00 -0400 (EDT) Subject: [nycphp-talk] innodb settings In-Reply-To: References: Message-ID: Can you be more descriptive? Try wrapping your inserts inside a single transaction. What's your innodb_buffer_pool_size set to? How much RAM do you have? Are you sure you should be using InnoDB for what you're doing? On Mon, 26 Apr 2010, Nicholas Hart wrote: > Hi, > > I am troubleshooting problems with slow inserts with innodb.? Anyone have list of recommended config settings to reduce > or eliminate these delays? > > Thanks, > Nick > > On Mon, Apr 26, 2010 at 12:00 PM, wrote: > Send talk mailing list submissions to > ? ? ? ?talk at lists.nyphp.org > > To subscribe or unsubscribe via the World Wide Web, visit > ? ? ? ?http://lists.nyphp.org/mailman/listinfo/talk > or, via email, send a message with subject or body 'help' to > ? ? ? ?talk-request at lists.nyphp.org > > You can reach the person managing the list at > ? ? ? ?talk-owner at lists.nyphp.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of talk digest..." > > > Today's Topics: > > ? 1. Re: MAMP or XAMPP ? (John Campbell) > ? 2. Re: MAMP or XAMPP ? (mmw) > ? 3. Re: MAMP or XAMPP ? (Mitch Pirtle) > ? 4. Re: MAMP or XAMPP ? (Ajai Khattri) > ? 5. Re: MAMP or XAMPP ? (mmw) > ? 6. Re: MAMP or XAMPP ? (Tim Lieberman) > ? 7. SimpleSAMLphp (Rich Bark) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 25 Apr 2010 13:09:10 -0400 > From: John Campbell > To: NYPHP Talk > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > ? ? ? ? > Content-Type: text/plain; charset=ISO-8859-1 > > I think MAMP is a pain in the ass, and prefer to get the stack from > MacPorts. ? The default MAMP install leaves you with stuff like a > different version of PHP for cli vs Apache, and it is a pain to > install additional modules. > > > > On Sat, Apr 24, 2010 at 11:58 PM, Ajai Khattri wrote: > > > > Which is better ? > > > > -- > > Aj. > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > > > ------------------------------ > > Message: 2 > Date: Sun, 25 Apr 2010 13:20:14 -0400 > From: "mmw" > To: "'NYPHP Talk'" > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: <2A.13.29484.EC974DB4 at hrndva-omtalb.mail.rr.com> > Content-Type: text/plain; ? ? ? charset="US-ASCII" > > I did have trouble installing xampp the first time around. ?I had to modify > some file. ?Don't ask me which one. > > Last time I installed, it went well. > > I use WEBuilder, instead of DreamWeaver or whatever, so with a little help > from the tech folks, I got it all setup to preview php files in my editor. > > WEBuilder was like $60 or something. ?I've encountered one minor problem > which I have not reported. > > Xampp with WEBuilder cuts down on development time quite a bit. > > Michele > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org > > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of John Campbell > > Sent: Sunday, April 25, 2010 1:09 PM > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > > > > I think MAMP is a pain in the ass, and prefer to get the stack from > > MacPorts. ? The default MAMP install leaves you with stuff like a > > different version of PHP for cli vs Apache, and it is a pain to > > install additional modules. > > > > > > > > On Sat, Apr 24, 2010 at 11:58 PM, Ajai Khattri > > wrote: > > > > > > Which is better ? > > > > > > -- > > > Aj. > > > > > > _______________________________________________ > > > New York PHP Users Group Community Talk Mailing List > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > http://www.nyphp.org/Show-Participation > > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > > ------------------------------ > > Message: 3 > Date: Sun, 25 Apr 2010 13:25:44 -0400 > From: Mitch Pirtle > To: NYPHP Talk > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > ? ? ? ? > Content-Type: text/plain; charset=UTF-8 > > On Sun, Apr 25, 2010 at 1:09 PM, John Campbell wrote: > > I think MAMP is a pain in the ass, and prefer to get the stack from > > MacPorts. ? The default MAMP install leaves you with stuff like a > > different version of PHP for cli vs Apache, and it is a pain to > > install additional modules. > > ++ on this one. I also use rails apps, memcache, and a bunch of other > non-standard stuff like LightTPD and macports makes use of all these > things a snap. > > -- Mitch > > > ------------------------------ > > Message: 4 > Date: Sun, 25 Apr 2010 13:46:50 -0400 (EDT) > From: Ajai Khattri > To: NYPHP Talk > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > Content-Type: TEXT/PLAIN; charset=US-ASCII > > On Sun, 25 Apr 2010, mmw wrote: > > > Huh? ?One's for mac one's for pcs. > > Err, nope: > http://www.apachefriends.org/en/xampp-macosx.html > > > -- > Aj. > > > > ------------------------------ > > Message: 5 > Date: Sun, 25 Apr 2010 13:52:12 -0400 > From: "mmw" > To: "'NYPHP Talk'" > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > Content-Type: text/plain; ? ? ? charset="US-ASCII" > > Didn't know xampp made a mac version. > > But when I looked up mamp or whatever, it was specifically for mac. > > Michele > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org > > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Ajai Khattri > > Sent: Sunday, April 25, 2010 1:47 PM > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > > > > On Sun, 25 Apr 2010, mmw wrote: > > > > > Huh? ?One's for mac one's for pcs. > > > > Err, nope: > > http://www.apachefriends.org/en/xampp-macosx.html > > > > > > -- > > Aj. > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > > ------------------------------ > > Message: 6 > Date: Sun, 25 Apr 2010 15:03:42 -0400 > From: Tim Lieberman > To: NYPHP Talk > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > On Apr 25, 2010, at 1:25 PM, Mitch Pirtle wrote: > > > On Sun, Apr 25, 2010 at 1:09 PM, John Campbell > > wrote: > >> I think MAMP is a pain in the ass, and prefer to get the stack from > >> MacPorts. ? The default MAMP install leaves you with stuff like a > >> different version of PHP for cli vs Apache, and it is a pain to > >> install additional modules. > > > > ++ on this one. I also use rails apps, memcache, and a bunch of other > > non-standard stuff like LightTPD and macports makes use of all these > > things a snap. > > If you've got some time to experiment, it's not all that hard to build > an AMP stack from source on MacOS. > > It is more work than using MAMP/XAMMP or MacPorts/Fink, but IMO, the > flexibility is worth it in the long run. > > I try to maintain a set of shell scripts so I can tweak/recompile as > needed. > > I tend to stick everything under some non-standard directory, so I can > have multiple stacks for testing. ?For example, if I needed it, I'd > have no problems setting up 4 stacks for 5.2/5.3 under mod_php/ > fastcgi. ?This way, I can keep my local environment very close to > whatever the production environment is for any particular project. > > -Tim > > > > ------------------------------ > > Message: 7 > Date: Mon, 26 Apr 2010 10:08:31 -0400 > From: "Rich Bark" > To: > Subject: [nycphp-talk] SimpleSAMLphp > Message-ID: <003401cae549$f7b2e470$e718ad50$@com> > Content-Type: text/plain; charset="us-ascii" > > Anyone here have experience with simpleSAMLphp? ?I cannot get it to work. > > > > Thanks, > > Rich > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > End of talk Digest, Vol 42, Issue 17 > ************************************ > > > > > -- > > -Nicholas Hart > Parts Authority IT > 516-678-3900 X3242 > > From ant92083 at gmail.com Mon Apr 26 13:39:15 2010 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Mon, 26 Apr 2010 13:39:15 -0400 Subject: [nycphp-talk] innodb settings In-Reply-To: References: Message-ID: InnoDB makes use of row locking as it is transactional. If the row is locked it will make it a little bit more interesting for inserts (last time I checked the storage engine doesn't do table locks any more). Also not to push this off into another thread/mail trail but I think mysql at lists.nyphp.org would be a better place to send this question too. Look in your slow query log to see if you have any select queries which are running slow that would extend a lock on a row (no index or a index that is not left-prefixed). If you want use EXPLAIN on those slow queries and hit up the MySQL list and we can continue from there. -Anthony On Mon, Apr 26, 2010 at 12:53 PM, Nicholas Hart wrote: > Hi, > > I am troubleshooting problems with slow inserts with innodb. Anyone have > list of recommended config settings to reduce or eliminate these delays? > > Thanks, > Nick > > On Mon, Apr 26, 2010 at 12:00 PM, wrote: > >> Send talk mailing list submissions to >> talk at lists.nyphp.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://lists.nyphp.org/mailman/listinfo/talk >> or, via email, send a message with subject or body 'help' to >> talk-request at lists.nyphp.org >> >> You can reach the person managing the list at >> talk-owner at lists.nyphp.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of talk digest..." >> >> >> Today's Topics: >> >> 1. Re: MAMP or XAMPP ? (John Campbell) >> 2. Re: MAMP or XAMPP ? (mmw) >> 3. Re: MAMP or XAMPP ? (Mitch Pirtle) >> 4. Re: MAMP or XAMPP ? (Ajai Khattri) >> 5. Re: MAMP or XAMPP ? (mmw) >> 6. Re: MAMP or XAMPP ? (Tim Lieberman) >> 7. SimpleSAMLphp (Rich Bark) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Sun, 25 Apr 2010 13:09:10 -0400 >> From: John Campbell >> To: NYPHP Talk >> Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> Message-ID: >> >> Content-Type: text/plain; charset=ISO-8859-1 >> >> I think MAMP is a pain in the ass, and prefer to get the stack from >> MacPorts. The default MAMP install leaves you with stuff like a >> different version of PHP for cli vs Apache, and it is a pain to >> install additional modules. >> >> >> >> On Sat, Apr 24, 2010 at 11:58 PM, Ajai Khattri wrote: >> > >> > Which is better ? >> > >> > -- >> > Aj. >> > >> > _______________________________________________ >> > New York PHP Users Group Community Talk Mailing List >> > http://lists.nyphp.org/mailman/listinfo/talk >> > >> > http://www.nyphp.org/Show-Participation >> > >> >> >> ------------------------------ >> >> Message: 2 >> Date: Sun, 25 Apr 2010 13:20:14 -0400 >> From: "mmw" >> To: "'NYPHP Talk'" >> Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> Message-ID: <2A.13.29484.EC974DB4 at hrndva-omtalb.mail.rr.com> >> Content-Type: text/plain; charset="US-ASCII" >> >> I did have trouble installing xampp the first time around. I had to >> modify >> some file. Don't ask me which one. >> >> Last time I installed, it went well. >> >> I use WEBuilder, instead of DreamWeaver or whatever, so with a little help >> from the tech folks, I got it all setup to preview php files in my editor. >> >> WEBuilder was like $60 or something. I've encountered one minor problem >> which I have not reported. >> >> Xampp with WEBuilder cuts down on development time quite a bit. >> >> Michele >> >> > -----Original Message----- >> > From: talk-bounces at lists.nyphp.org >> > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of John Campbell >> > Sent: Sunday, April 25, 2010 1:09 PM >> > To: NYPHP Talk >> > Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> > >> > I think MAMP is a pain in the ass, and prefer to get the stack from >> > MacPorts. The default MAMP install leaves you with stuff like a >> > different version of PHP for cli vs Apache, and it is a pain to >> > install additional modules. >> > >> > >> > >> > On Sat, Apr 24, 2010 at 11:58 PM, Ajai Khattri >> > wrote: >> > > >> > > Which is better ? >> > > >> > > -- >> > > Aj. >> > > >> > > _______________________________________________ >> > > New York PHP Users Group Community Talk Mailing List >> > > http://lists.nyphp.org/mailman/listinfo/talk >> > > >> > > http://www.nyphp.org/Show-Participation >> > > >> > _______________________________________________ >> > New York PHP Users Group Community Talk Mailing List >> > http://lists.nyphp.org/mailman/listinfo/talk >> > >> > http://www.nyphp.org/Show-Participation >> >> >> >> ------------------------------ >> >> Message: 3 >> Date: Sun, 25 Apr 2010 13:25:44 -0400 >> From: Mitch Pirtle >> To: NYPHP Talk >> Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> Message-ID: >> >> Content-Type: text/plain; charset=UTF-8 >> >> On Sun, Apr 25, 2010 at 1:09 PM, John Campbell >> wrote: >> > I think MAMP is a pain in the ass, and prefer to get the stack from >> > MacPorts. ? The default MAMP install leaves you with stuff like a >> > different version of PHP for cli vs Apache, and it is a pain to >> > install additional modules. >> >> ++ on this one. I also use rails apps, memcache, and a bunch of other >> non-standard stuff like LightTPD and macports makes use of all these >> things a snap. >> >> -- Mitch >> >> >> ------------------------------ >> >> Message: 4 >> Date: Sun, 25 Apr 2010 13:46:50 -0400 (EDT) >> From: Ajai Khattri >> To: NYPHP Talk >> Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> Message-ID: >> Content-Type: TEXT/PLAIN; charset=US-ASCII >> >> On Sun, 25 Apr 2010, mmw wrote: >> >> > Huh? One's for mac one's for pcs. >> >> Err, nope: >> http://www.apachefriends.org/en/xampp-macosx.html >> >> >> -- >> Aj. >> >> >> >> ------------------------------ >> >> Message: 5 >> Date: Sun, 25 Apr 2010 13:52:12 -0400 >> From: "mmw" >> To: "'NYPHP Talk'" >> Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> Message-ID: >> Content-Type: text/plain; charset="US-ASCII" >> >> Didn't know xampp made a mac version. >> >> But when I looked up mamp or whatever, it was specifically for mac. >> >> Michele >> >> > -----Original Message----- >> > From: talk-bounces at lists.nyphp.org >> > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Ajai Khattri >> > Sent: Sunday, April 25, 2010 1:47 PM >> > To: NYPHP Talk >> > Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> > >> > On Sun, 25 Apr 2010, mmw wrote: >> > >> > > Huh? One's for mac one's for pcs. >> > >> > Err, nope: >> > http://www.apachefriends.org/en/xampp-macosx.html >> > >> > >> > -- >> > Aj. >> > >> > _______________________________________________ >> > New York PHP Users Group Community Talk Mailing List >> > http://lists.nyphp.org/mailman/listinfo/talk >> > >> > http://www.nyphp.org/Show-Participation >> >> >> >> ------------------------------ >> >> Message: 6 >> Date: Sun, 25 Apr 2010 15:03:42 -0400 >> From: Tim Lieberman >> To: NYPHP Talk >> Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> Message-ID: >> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes >> >> On Apr 25, 2010, at 1:25 PM, Mitch Pirtle wrote: >> >> > On Sun, Apr 25, 2010 at 1:09 PM, John Campbell >> > wrote: >> >> I think MAMP is a pain in the ass, and prefer to get the stack from >> >> MacPorts. The default MAMP install leaves you with stuff like a >> >> different version of PHP for cli vs Apache, and it is a pain to >> >> install additional modules. >> > >> > ++ on this one. I also use rails apps, memcache, and a bunch of other >> > non-standard stuff like LightTPD and macports makes use of all these >> > things a snap. >> >> If you've got some time to experiment, it's not all that hard to build >> an AMP stack from source on MacOS. >> >> It is more work than using MAMP/XAMMP or MacPorts/Fink, but IMO, the >> flexibility is worth it in the long run. >> >> I try to maintain a set of shell scripts so I can tweak/recompile as >> needed. >> >> I tend to stick everything under some non-standard directory, so I can >> have multiple stacks for testing. For example, if I needed it, I'd >> have no problems setting up 4 stacks for 5.2/5.3 under mod_php/ >> fastcgi. This way, I can keep my local environment very close to >> whatever the production environment is for any particular project. >> >> -Tim >> >> >> >> ------------------------------ >> >> Message: 7 >> Date: Mon, 26 Apr 2010 10:08:31 -0400 >> From: "Rich Bark" >> To: >> Subject: [nycphp-talk] SimpleSAMLphp >> Message-ID: <003401cae549$f7b2e470$e718ad50$@com> >> Content-Type: text/plain; charset="us-ascii" >> >> Anyone here have experience with simpleSAMLphp? I cannot get it to work. >> >> >> >> Thanks, >> >> Rich >> >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> http://lists.nyphp.org/pipermail/talk/attachments/20100426/6cbb0ae8/attachment-0001.html >> > >> >> ------------------------------ >> >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk >> >> End of talk Digest, Vol 42, Issue 17 >> ************************************ >> > > > > -- > > -Nicholas Hart > Parts Authority IT > 516-678-3900 X3242 > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From max at neuropunks.org Mon Apr 26 15:30:41 2010 From: max at neuropunks.org (Max Gribov) Date: Mon, 26 Apr 2010 15:30:41 -0400 Subject: [nycphp-talk] innodb settings In-Reply-To: References: Message-ID: <4BD5E9E1.5030208@neuropunks.org> On 04/26/2010 12:53 PM, Nicholas Hart wrote: > Hi, > > I am troubleshooting problems with slow inserts with innodb. Anyone > have list of recommended config settings to reduce or eliminate these > delays? When you insert in innodb, it will check foreign keys, and like any insert it will update indexes, so those are probably THE bottlenecks.. What kind of inserts are they? Are you doing INSERT ... SELECT type stuff? If so, you can try this in my.cnf: (from: http://harrison-fisk.blogspot.com/2009/02/my-favorite-new-feature-of-mysql-51.html) innodb_autoinc_lock_mode=2 binlog_format=row If you have inserts with LOCK TABLES you can use this to disable that, which can be dangerous under high load: innodb_table_locks = false You can also try this (also from http://harrison-fisk.blogspot.com/2009/02/my-favorite-new-feature-of-mysql-51.html) transaction-isolation=READ-COMMITTED You can also package your inserts into the same statement like: insert into tablename (field1, field2) values(1,2), (2,3), (4,5); this makes inserts faster, and you can make that command as long as max_allowed_packet setting. You can also use this: innodb_flush_log_at_trx_commit = 2 (from: http://www.mysqlperformanceblog.com/2007/11/01/innodb-performance-optimization-basics/) Also innodb_thread_concurrency should be set to 2 * (num_cpu + num_dsk) When all else fails, see if you can change the tables in question to myisam or even move them into something like mongo, which does way more inserts per second than mysql. > > Thanks, > Nick > > On Mon, Apr 26, 2010 at 12:00 PM, > wrote: > > Send talk mailing list submissions to > talk at lists.nyphp.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.nyphp.org/mailman/listinfo/talk > or, via email, send a message with subject or body 'help' to > talk-request at lists.nyphp.org > > You can reach the person managing the list at > talk-owner at lists.nyphp.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of talk digest..." > > > Today's Topics: > > 1. Re: MAMP or XAMPP ? (John Campbell) > 2. Re: MAMP or XAMPP ? (mmw) > 3. Re: MAMP or XAMPP ? (Mitch Pirtle) > 4. Re: MAMP or XAMPP ? (Ajai Khattri) > 5. Re: MAMP or XAMPP ? (mmw) > 6. Re: MAMP or XAMPP ? (Tim Lieberman) > 7. SimpleSAMLphp (Rich Bark) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sun, 25 Apr 2010 13:09:10 -0400 > From: John Campbell > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > > > Content-Type: text/plain; charset=ISO-8859-1 > > I think MAMP is a pain in the ass, and prefer to get the stack from > MacPorts. The default MAMP install leaves you with stuff like a > different version of PHP for cli vs Apache, and it is a pain to > install additional modules. > > > > On Sat, Apr 24, 2010 at 11:58 PM, Ajai Khattri > wrote: > > > > Which is better ? > > > > -- > > Aj. > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > > > ------------------------------ > > Message: 2 > Date: Sun, 25 Apr 2010 13:20:14 -0400 > From: "mmw" > > To: "'NYPHP Talk'" > > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: <2A.13.29484.EC974DB4 at hrndva-omtalb.mail.rr.com > > > Content-Type: text/plain; charset="US-ASCII" > > I did have trouble installing xampp the first time around. I had > to modify > some file. Don't ask me which one. > > Last time I installed, it went well. > > I use WEBuilder, instead of DreamWeaver or whatever, so with a > little help > from the tech folks, I got it all setup to preview php files in my > editor. > > WEBuilder was like $60 or something. I've encountered one minor > problem > which I have not reported. > > Xampp with WEBuilder cuts down on development time quite a bit. > > Michele > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org > > > [mailto:talk-bounces at lists.nyphp.org > ] On Behalf Of John Campbell > > Sent: Sunday, April 25, 2010 1:09 PM > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > > > > I think MAMP is a pain in the ass, and prefer to get the stack from > > MacPorts. The default MAMP install leaves you with stuff like a > > different version of PHP for cli vs Apache, and it is a pain to > > install additional modules. > > > > > > > > On Sat, Apr 24, 2010 at 11:58 PM, Ajai Khattri > > > wrote: > > > > > > Which is better ? > > > > > > -- > > > Aj. > > > > > > _______________________________________________ > > > New York PHP Users Group Community Talk Mailing List > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > http://www.nyphp.org/Show-Participation > > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > > ------------------------------ > > Message: 3 > Date: Sun, 25 Apr 2010 13:25:44 -0400 > From: Mitch Pirtle > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > > > Content-Type: text/plain; charset=UTF-8 > > On Sun, Apr 25, 2010 at 1:09 PM, John Campbell > > wrote: > > I think MAMP is a pain in the ass, and prefer to get the stack from > > MacPorts. ? The default MAMP install leaves you with stuff like a > > different version of PHP for cli vs Apache, and it is a pain to > > install additional modules. > > ++ on this one. I also use rails apps, memcache, and a bunch of other > non-standard stuff like LightTPD and macports makes use of all these > things a snap. > > -- Mitch > > > ------------------------------ > > Message: 4 > Date: Sun, 25 Apr 2010 13:46:50 -0400 (EDT) > From: Ajai Khattri > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > > Content-Type: TEXT/PLAIN; charset=US-ASCII > > On Sun, 25 Apr 2010, mmw wrote: > > > Huh? One's for mac one's for pcs. > > Err, nope: > http://www.apachefriends.org/en/xampp-macosx.html > > > -- > Aj. > > > > ------------------------------ > > Message: 5 > Date: Sun, 25 Apr 2010 13:52:12 -0400 > From: "mmw" > > To: "'NYPHP Talk'" > > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > > Content-Type: text/plain; charset="US-ASCII" > > Didn't know xampp made a mac version. > > But when I looked up mamp or whatever, it was specifically for mac. > > Michele > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org > > > [mailto:talk-bounces at lists.nyphp.org > ] On Behalf Of Ajai Khattri > > Sent: Sunday, April 25, 2010 1:47 PM > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > > > > On Sun, 25 Apr 2010, mmw wrote: > > > > > Huh? One's for mac one's for pcs. > > > > Err, nope: > > http://www.apachefriends.org/en/xampp-macosx.html > > > > > > -- > > Aj. > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > > ------------------------------ > > Message: 6 > Date: Sun, 25 Apr 2010 15:03:42 -0400 > From: Tim Lieberman > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] MAMP or XAMPP ? > Message-ID: > > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > On Apr 25, 2010, at 1:25 PM, Mitch Pirtle wrote: > > > On Sun, Apr 25, 2010 at 1:09 PM, John Campbell > > > wrote: > >> I think MAMP is a pain in the ass, and prefer to get the stack from > >> MacPorts. The default MAMP install leaves you with stuff like a > >> different version of PHP for cli vs Apache, and it is a pain to > >> install additional modules. > > > > ++ on this one. I also use rails apps, memcache, and a bunch of > other > > non-standard stuff like LightTPD and macports makes use of all these > > things a snap. > > If you've got some time to experiment, it's not all that hard to build > an AMP stack from source on MacOS. > > It is more work than using MAMP/XAMMP or MacPorts/Fink, but IMO, the > flexibility is worth it in the long run. > > I try to maintain a set of shell scripts so I can tweak/recompile as > needed. > > I tend to stick everything under some non-standard directory, so I can > have multiple stacks for testing. For example, if I needed it, I'd > have no problems setting up 4 stacks for 5.2/5.3 under mod_php/ > fastcgi. This way, I can keep my local environment very close to > whatever the production environment is for any particular project. > > -Tim > > > > ------------------------------ > > Message: 7 > Date: Mon, 26 Apr 2010 10:08:31 -0400 > From: "Rich Bark" > > To: > > Subject: [nycphp-talk] SimpleSAMLphp > Message-ID: <003401cae549$f7b2e470$e718ad50$@com> > Content-Type: text/plain; charset="us-ascii" > > Anyone here have experience with simpleSAMLphp? I cannot get it > to work. > > > > Thanks, > > Rich > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > > ------------------------------ > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > End of talk Digest, Vol 42, Issue 17 > ************************************ > > > > > -- > > -Nicholas Hart > Parts Authority IT > 516-678-3900 X3242 > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: From edwardpotter at gmail.com Mon Apr 26 16:47:52 2010 From: edwardpotter at gmail.com (Edward Potter) Date: Mon, 26 Apr 2010 16:47:52 -0400 Subject: [nycphp-talk] innodb settings In-Reply-To: <4BD5E9E1.5030208@neuropunks.org> References: <4BD5E9E1.5030208@neuropunks.org> Message-ID: experiment. try The Cloud. at this point, really looking at zillions of records, you should have close to zero wait access times. everything is so ^%$^%&* fast these days. by the time you finger comes off the keys, you should see your data. 186,00 miles/second. or something like that. :-) On Mon, Apr 26, 2010 at 3:30 PM, Max Gribov wrote: > On 04/26/2010 12:53 PM, Nicholas Hart wrote: > > Hi, > > I am troubleshooting problems with slow inserts with innodb. Anyone have > list of recommended config settings to reduce or eliminate these delays? > > > When you insert in innodb, it will check foreign keys, and like any insert > it will update indexes, so those are probably THE bottlenecks.. > > What kind of inserts are they? Are you doing INSERT ... SELECT type stuff? > If so, you can try this in my.cnf: > (from: > http://harrison-fisk.blogspot.com/2009/02/my-favorite-new-feature-of-mysql-51.html > ) > innodb_autoinc_lock_mode=2 > binlog_format=row > > If you have inserts with LOCK TABLES you can use this to disable that, > which can be dangerous under high load: > innodb_table_locks = false > > You can also try this (also from > http://harrison-fisk.blogspot.com/2009/02/my-favorite-new-feature-of-mysql-51.html > ) > transaction-isolation=READ-COMMITTED > > You can also package your inserts into the same statement like: > insert into tablename (field1, field2) values(1,2), (2,3), (4,5); > this makes inserts faster, and you can make that command as long as > max_allowed_packet setting. > > You can also use this: > innodb_flush_log_at_trx_commit = 2 > (from: > http://www.mysqlperformanceblog.com/2007/11/01/innodb-performance-optimization-basics/ > ) > > Also innodb_thread_concurrency should be set to 2 * (num_cpu + num_dsk) > > When all else fails, see if you can change the tables in question to myisam > or even move them into something like mongo, which does way more inserts per > second than mysql. > > > > Thanks, > Nick > > On Mon, Apr 26, 2010 at 12:00 PM, wrote: > >> Send talk mailing list submissions to >> talk at lists.nyphp.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://lists.nyphp.org/mailman/listinfo/talk >> or, via email, send a message with subject or body 'help' to >> talk-request at lists.nyphp.org >> >> You can reach the person managing the list at >> talk-owner at lists.nyphp.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of talk digest..." >> >> >> Today's Topics: >> >> 1. Re: MAMP or XAMPP ? (John Campbell) >> 2. Re: MAMP or XAMPP ? (mmw) >> 3. Re: MAMP or XAMPP ? (Mitch Pirtle) >> 4. Re: MAMP or XAMPP ? (Ajai Khattri) >> 5. Re: MAMP or XAMPP ? (mmw) >> 6. Re: MAMP or XAMPP ? (Tim Lieberman) >> 7. SimpleSAMLphp (Rich Bark) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Sun, 25 Apr 2010 13:09:10 -0400 >> From: John Campbell >> To: NYPHP Talk >> Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> Message-ID: >> >> Content-Type: text/plain; charset=ISO-8859-1 >> >> I think MAMP is a pain in the ass, and prefer to get the stack from >> MacPorts. The default MAMP install leaves you with stuff like a >> different version of PHP for cli vs Apache, and it is a pain to >> install additional modules. >> >> >> >> On Sat, Apr 24, 2010 at 11:58 PM, Ajai Khattri wrote: >> > >> > Which is better ? >> > >> > -- >> > Aj. >> > >> > _______________________________________________ >> > New York PHP Users Group Community Talk Mailing List >> > http://lists.nyphp.org/mailman/listinfo/talk >> > >> > http://www.nyphp.org/Show-Participation >> > >> >> >> ------------------------------ >> >> Message: 2 >> Date: Sun, 25 Apr 2010 13:20:14 -0400 >> From: "mmw" >> To: "'NYPHP Talk'" >> Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> Message-ID: <2A.13.29484.EC974DB4 at hrndva-omtalb.mail.rr.com> >> Content-Type: text/plain; charset="US-ASCII" >> >> I did have trouble installing xampp the first time around. I had to >> modify >> some file. Don't ask me which one. >> >> Last time I installed, it went well. >> >> I use WEBuilder, instead of DreamWeaver or whatever, so with a little help >> from the tech folks, I got it all setup to preview php files in my editor. >> >> WEBuilder was like $60 or something. I've encountered one minor problem >> which I have not reported. >> >> Xampp with WEBuilder cuts down on development time quite a bit. >> >> Michele >> >> > -----Original Message----- >> > From: talk-bounces at lists.nyphp.org >> > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of John Campbell >> > Sent: Sunday, April 25, 2010 1:09 PM >> > To: NYPHP Talk >> > Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> > >> > I think MAMP is a pain in the ass, and prefer to get the stack from >> > MacPorts. The default MAMP install leaves you with stuff like a >> > different version of PHP for cli vs Apache, and it is a pain to >> > install additional modules. >> > >> > >> > >> > On Sat, Apr 24, 2010 at 11:58 PM, Ajai Khattri >> > wrote: >> > > >> > > Which is better ? >> > > >> > > -- >> > > Aj. >> > > >> > > _______________________________________________ >> > > New York PHP Users Group Community Talk Mailing List >> > > http://lists.nyphp.org/mailman/listinfo/talk >> > > >> > > http://www.nyphp.org/Show-Participation >> > > >> > _______________________________________________ >> > New York PHP Users Group Community Talk Mailing List >> > http://lists.nyphp.org/mailman/listinfo/talk >> > >> > http://www.nyphp.org/Show-Participation >> >> >> >> ------------------------------ >> >> Message: 3 >> Date: Sun, 25 Apr 2010 13:25:44 -0400 >> From: Mitch Pirtle >> To: NYPHP Talk >> Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> Message-ID: >> >> Content-Type: text/plain; charset=UTF-8 >> >> On Sun, Apr 25, 2010 at 1:09 PM, John Campbell >> wrote: >> > I think MAMP is a pain in the ass, and prefer to get the stack from >> > MacPorts. ? The default MAMP install leaves you with stuff like a >> > different version of PHP for cli vs Apache, and it is a pain to >> > install additional modules. >> >> ++ on this one. I also use rails apps, memcache, and a bunch of other >> non-standard stuff like LightTPD and macports makes use of all these >> things a snap. >> >> -- Mitch >> >> >> ------------------------------ >> >> Message: 4 >> Date: Sun, 25 Apr 2010 13:46:50 -0400 (EDT) >> From: Ajai Khattri >> To: NYPHP Talk >> Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> Message-ID: >> Content-Type: TEXT/PLAIN; charset=US-ASCII >> >> On Sun, 25 Apr 2010, mmw wrote: >> >> > Huh? One's for mac one's for pcs. >> >> Err, nope: >> http://www.apachefriends.org/en/xampp-macosx.html >> >> >> -- >> Aj. >> >> >> >> ------------------------------ >> >> Message: 5 >> Date: Sun, 25 Apr 2010 13:52:12 -0400 >> From: "mmw" >> To: "'NYPHP Talk'" >> Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> Message-ID: >> Content-Type: text/plain; charset="US-ASCII" >> >> Didn't know xampp made a mac version. >> >> But when I looked up mamp or whatever, it was specifically for mac. >> >> Michele >> >> > -----Original Message----- >> > From: talk-bounces at lists.nyphp.org >> > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Ajai Khattri >> > Sent: Sunday, April 25, 2010 1:47 PM >> > To: NYPHP Talk >> > Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> > >> > On Sun, 25 Apr 2010, mmw wrote: >> > >> > > Huh? One's for mac one's for pcs. >> > >> > Err, nope: >> > http://www.apachefriends.org/en/xampp-macosx.html >> > >> > >> > -- >> > Aj. >> > >> > _______________________________________________ >> > New York PHP Users Group Community Talk Mailing List >> > http://lists.nyphp.org/mailman/listinfo/talk >> > >> > http://www.nyphp.org/Show-Participation >> >> >> >> ------------------------------ >> >> Message: 6 >> Date: Sun, 25 Apr 2010 15:03:42 -0400 >> From: Tim Lieberman >> To: NYPHP Talk >> Subject: Re: [nycphp-talk] MAMP or XAMPP ? >> Message-ID: >> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes >> >> On Apr 25, 2010, at 1:25 PM, Mitch Pirtle wrote: >> >> > On Sun, Apr 25, 2010 at 1:09 PM, John Campbell >> > wrote: >> >> I think MAMP is a pain in the ass, and prefer to get the stack from >> >> MacPorts. The default MAMP install leaves you with stuff like a >> >> different version of PHP for cli vs Apache, and it is a pain to >> >> install additional modules. >> > >> > ++ on this one. I also use rails apps, memcache, and a bunch of other >> > non-standard stuff like LightTPD and macports makes use of all these >> > things a snap. >> >> If you've got some time to experiment, it's not all that hard to build >> an AMP stack from source on MacOS. >> >> It is more work than using MAMP/XAMMP or MacPorts/Fink, but IMO, the >> flexibility is worth it in the long run. >> >> I try to maintain a set of shell scripts so I can tweak/recompile as >> needed. >> >> I tend to stick everything under some non-standard directory, so I can >> have multiple stacks for testing. For example, if I needed it, I'd >> have no problems setting up 4 stacks for 5.2/5.3 under mod_php/ >> fastcgi. This way, I can keep my local environment very close to >> whatever the production environment is for any particular project. >> >> -Tim >> >> >> >> ------------------------------ >> >> Message: 7 >> Date: Mon, 26 Apr 2010 10:08:31 -0400 >> From: "Rich Bark" >> To: >> Subject: [nycphp-talk] SimpleSAMLphp >> Message-ID: <003401cae549$f7b2e470$e718ad50$@com> >> Content-Type: text/plain; charset="us-ascii" >> >> Anyone here have experience with simpleSAMLphp? I cannot get it to work. >> >> >> >> Thanks, >> >> Rich >> >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> http://lists.nyphp.org/pipermail/talk/attachments/20100426/6cbb0ae8/attachment-0001.html >> > >> >> ------------------------------ >> >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk >> >> End of talk Digest, Vol 42, Issue 17 >> ************************************ >> > > > > -- > > -Nicholas Hart > Parts Authority IT > 516-678-3900 X3242 > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing Listhttp://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org/Show-Participation > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- IM/iChat: ejpusa Links: http://del.icio.us/ejpusa Follow me: http://www.twitter.com/ejpusa Karma: http://www.coderswithconscience.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From justin at justinhileman.info Tue Apr 27 00:20:20 2010 From: justin at justinhileman.info (Justin Hileman) Date: Tue, 27 Apr 2010 00:20:20 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: References: Message-ID: <4BD66604.7000600@justinhileman.info> On 4/25/10 1:25 PM, Mitch Pirtle wrote: > On Sun, Apr 25, 2010 at 1:09 PM, John Campbell wrote: >> I think MAMP is a pain in the ass, and prefer to get the stack from >> MacPorts. The default MAMP install leaves you with stuff like a >> different version of PHP for cli vs Apache, and it is a pain to >> install additional modules. > > ++ on this one. I also use rails apps, memcache, and a bunch of other > non-standard stuff like LightTPD and macports makes use of all these > things a snap. > Ugh. MacPorts used to be cool, before I started using Homebrew :) http://mxcl.github.com/homebrew/ -- http://justinhileman.com From jcampbell1 at gmail.com Tue Apr 27 00:35:49 2010 From: jcampbell1 at gmail.com (John Campbell) Date: Tue, 27 Apr 2010 00:35:49 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: <4BD66604.7000600@justinhileman.info> References: <4BD66604.7000600@justinhileman.info> Message-ID: On Tue, Apr 27, 2010 at 12:20 AM, Justin Hileman wrote: > Ugh. MacPorts used to be cool, before I started using Homebrew :) How is Homebrew better than MacPorts? I am seriously curious. -jc From justin at justinhileman.info Tue Apr 27 01:55:58 2010 From: justin at justinhileman.info (Justin Hileman) Date: Tue, 27 Apr 2010 01:55:58 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: References: <4BD66604.7000600@justinhileman.info> Message-ID: <4BD67C6E.2020202@justinhileman.info> On 4/27/10 12:35 AM, John Campbell wrote: > On Tue, Apr 27, 2010 at 12:20 AM, Justin Hileman > wrote: >> Ugh. MacPorts used to be cool, before I started using Homebrew :) > > How is Homebrew better than MacPorts? I am seriously curious. > Homebrew is built on git and really simple ruby "recipes". Homebrew installs everything in version-specific isolated folders, then symlinks into `/usr/local` where local code really belongs :) It's crazy simple to create your own Homebrew packages, just in case you have to install something from source. It's crazy simple to modify existing Homebrew recipes... Because it's built on Git, any upstream changes can be automatically merged into your custom recipe. Homebrew tries really hard not to mess with things that are installed elsewhere. MacPorts and Fink play fast and loose with versions and dependencies, and often install multiple copies of the same thing or existing libraries (i.e. your cli and Apache PHP versions will often be different). Homebrew plays nice with ruby gems, easy_install, pear/pecl, etc. Homebrew comes with bash-completion, so you can tab-complete all your package names. That's pretty hot. If you don't like how something is done in Homebrew: fork, clone, commit, push and convince mxcl to accept your changes :) -- http://justinhileman.com From ajai at bitblit.net Tue Apr 27 08:10:47 2010 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 27 Apr 2010 08:10:47 -0400 (EDT) Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: <4BD67C6E.2020202@justinhileman.info> Message-ID: On Tue, 27 Apr 2010, Justin Hileman wrote: > Homebrew is built on git and really simple ruby "recipes". Sounds like Portage (the Gentoo Linux package system, which builds everything from source using 'ebuild' files that tell the installer how to build a package). I use Gentoo on my servers so Im pretty familiar with it. There is a project (Prefix) which aims to bring this package system to other platforms like MacOS, Solaris, etc so I might try it out on Mac. I know I asked about MAMP and XAMPP but Im now thinking building from source would be a better way to go too. > Homebrew installs everything in version-specific isolated folders, then > symlinks into `/usr/local` where local code really belongs :) You decide where Prefix installs its stuff. Its a self-contained tree containing binaries, libraries, config files, etc. > It's crazy simple to create your own Homebrew packages, just in case you > have to install something from source. Gentoo's Portage also has the concept of 'overlays' which are user-contributed package sets that can be merged into your 'default' package set. > It's crazy simple to modify existing Homebrew recipes... Because it's > built on Git, any upstream changes can be automatically merged into your > custom recipe. With Portage you rsync with a mirror to update your package list. You can then update your installed packages with a single build command. > Homebrew tries really hard not to mess with things that are installed > elsewhere. MacPorts and Fink play fast and loose with versions and > dependencies, and often install multiple copies of the same thing or > existing libraries (i.e. your cli and Apache PHP versions will often be > different). Portage allows you to install different versions of a package simultaneously using a concept called slots. Portage has the added advantage of 'USE' flags: basically you can control how a build is configured by setting various flags in a config file. The flags are persistent so you will always get things built the way you want them when rebuilding/upgrading a package. Most packages have sensible default USE flags but you can tweak them as much as you want. -- Aj. From justin at justinhileman.info Tue Apr 27 08:52:02 2010 From: justin at justinhileman.info (justin) Date: Tue, 27 Apr 2010 08:52:02 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: References: <4BD67C6E.2020202@justinhileman.info> Message-ID: On Tue, Apr 27, 2010 at 8:10 AM, Ajai Khattri wrote: > On Tue, 27 Apr 2010, Justin Hileman wrote: > >> Homebrew is built on git and really simple ruby "recipes". > > Sounds like Portage (the Gentoo Linux package system, which builds > everything from source using 'ebuild' files that tell the installer how to > build a package). It is, in fact, a lot like Portage... From the Homebrew FAQ: Q: How about Gentoo Prefix? A: Gentoo Prefix seems pretty cool, but it isn?t optimised specfically for Mac users and it duplicates worse than MacPorts, including gcc and all that jazz. Otherwise I?d use it. -- justin http://justinhileman.com From vtbludgeon at gmail.com Tue Apr 27 10:07:26 2010 From: vtbludgeon at gmail.com (David Mintz) Date: Tue, 27 Apr 2010 10:07:26 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: References: <4BD67C6E.2020202@justinhileman.info> Message-ID: apt-get install -- Support real health care reform: http://phimg.org/ -- David Mintz http://davidmintz.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ant92083 at gmail.com Tue Apr 27 10:11:09 2010 From: ant92083 at gmail.com (Anthony Wlodarski) Date: Tue, 27 Apr 2010 10:11:09 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: References: <4BD67C6E.2020202@justinhileman.info> Message-ID: I would never recommend that on Ubuntu or a Debain package based systems. Use "sudo tasksel" and then select "LAMP Server". Tasksel is a package management tool for the meta packages that point to the most recent version of the software that exists in the stack. That way you don't have to piece together PHP5, MySQL, and Apache and their latest versions. Since learning about tasksel I have been loving Ubuntu 9.10 server edition and rolling out new instances. -Anthony On Tue, Apr 27, 2010 at 10:07 AM, David Mintz wrote: > apt-get install > > -- > Support real health care reform: > http://phimg.org/ > > -- > David Mintz > http://davidmintz.org/ > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- Anthony W. ant92083 at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajai at bitblit.net Tue Apr 27 11:02:12 2010 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 27 Apr 2010 11:02:12 -0400 (EDT) Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: Message-ID: On Tue, 27 Apr 2010, justin wrote: > On Tue, Apr 27, 2010 at 8:10 AM, Ajai Khattri wrote: > On Tue, 27 Apr 2010, Justin Hileman wrote: > >> Homebrew is built on git and really simple ruby "recipes". > > Sounds like Portage (the Gentoo Linux package system, which builds > everything from source using 'ebuild' files that tell the installer how to > build a package). It is, in fact, a lot like Portage... From the Homebrew FAQ: Q: How about Gentoo Prefix? A: Gentoo Prefix seems pretty cool, but it isn?t optimised specfically for Mac users and it duplicates worse than MacPorts, including gcc and all that jazz. Otherwise I?d use it. The initial bootstrap uses gcc that comes with XCode. The reason they then duplicate some stuff later is to remove that dependency. -- Aj. From ajai at bitblit.net Tue Apr 27 13:12:19 2010 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 27 Apr 2010 13:12:19 -0400 (EDT) Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: Message-ID: On Tue, 27 Apr 2010, Anthony Wlodarski wrote: > I would never recommend that on Ubuntu or a Debain package based systems. > Use "sudo tasksel" and then select "LAMP Server". Tasksel is a package > management tool for the meta packages that point to the most recent version > of the software that exists in the stack. That way you don't have to piece > together PHP5, MySQL, and Apache and their latest versions. Since learning > about tasksel I have been loving Ubuntu 9.10 server edition and rolling out > new instances. Another way to go (if you need lots of different environments) is to use Ubuntu in a virtual environment. Ive used VirtualBox in the past. VMware Fusion is also very decent in Mac. -- Aj. From sequethin at gmail.com Tue Apr 27 13:17:12 2010 From: sequethin at gmail.com (Michael Hernandez) Date: Tue, 27 Apr 2010 13:17:12 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: References: Message-ID: <4202F9BC-3161-44C5-AE04-E4FE07E0A022@gmail.com> On Apr 27, 2010, at 1:12 PM, Ajai Khattri wrote: > On Tue, 27 Apr 2010, Anthony Wlodarski wrote: > >> I would never recommend that on Ubuntu or a Debain package based systems. >> Use "sudo tasksel" and then select "LAMP Server". Tasksel is a package >> management tool for the meta packages that point to the most recent version >> of the software that exists in the stack. That way you don't have to piece >> together PHP5, MySQL, and Apache and their latest versions. Since learning >> about tasksel I have been loving Ubuntu 9.10 server edition and rolling out >> new instances. > > Another way to go (if you need lots of different environments) is to use > Ubuntu in a virtual environment. Ive used VirtualBox in the past. VMware > Fusion is also very decent in Mac. > > > -- > Aj. > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation I'm a late comer to this thread, not sure if anyone mentioned it yet, but there's also Zend Server. I use community edition on my mac as well as ubuntu desktop and ubuntu server... works great, complete stack, nice little admin/management backend... free, etc. Installs from a repo... --Mike H From mmwaldman at nyc.rr.com Tue Apr 27 13:33:29 2010 From: mmwaldman at nyc.rr.com (mmw) Date: Tue, 27 Apr 2010 13:33:29 -0400 Subject: [nycphp-talk] Source Control Message-ID: <5A.35.08792.8EF17DB4@hrndva-omtalb.mail.rr.com> The only source control I've used has been unix side. What other kinds are there, maybe, that can be accessed online, rather than on the server? Michele -------------- next part -------------- An HTML attachment was scrubbed... URL: From papillion at gmail.com Tue Apr 27 14:09:13 2010 From: papillion at gmail.com (Anthony Papillion) Date: Tue, 27 Apr 2010 13:09:13 -0500 Subject: [nycphp-talk] Source Control In-Reply-To: <5A.35.08792.8EF17DB4@hrndva-omtalb.mail.rr.com> References: <5A.35.08792.8EF17DB4@hrndva-omtalb.mail.rr.com> Message-ID: On Tue, Apr 27, 2010 at 12:33 PM, mmw wrote: > > The only source control I?ve used has been unix side. > > > > What other kinds are there, maybe, that can be accessed online, rather than on the server? Hi Michele, While source control definitely seems to be dominated by Unux/Linux, there are some online tools you can use (some are even free). I don't have the URL's for them but if you Google 'Free Subversion Hosting' or 'Free Git Hosting' you will find several of them. GitHub.com is the major one for Git, I think. Of course there's also always SourceForge but they are often less desirable since you might not be wanting to share your code with the public yet. Good luck! -- Anthony Papillion IT Consultant/Software Developer CEO, Advanced Data Concepts, Inc. Blog: ? ? ? ? ? www.cajuntechie.com Facebook: ? www.facebook.com/cajuntechie Twitter: ? ? ? ?www.twitter.com/cajuntechie From zippy1981 at gmail.com Tue Apr 27 14:38:58 2010 From: zippy1981 at gmail.com (Justin Dearing) Date: Tue, 27 Apr 2010 14:38:58 -0400 Subject: [nycphp-talk] Source Control In-Reply-To: <5A.35.08792.8EF17DB4@hrndva-omtalb.mail.rr.com> References: <5A.35.08792.8EF17DB4@hrndva-omtalb.mail.rr.com> Message-ID: Michelle, If you have a dreamhost virtual server, I'm pretty sure you can setup TRAC and subversion from the control panel. So yeah you'd be administrating subversion on your own (virtual) server, but through a provisioning tool. There would also not be much to administer. Personally I'd lean towards paid github hosting for hosting something closed source for clients though. Justin On Tue, Apr 27, 2010 at 1:33 PM, mmw wrote: > The only source control I?ve used has been unix side. > > > > What other kinds are there, maybe, that can be accessed online, rather than > on the server? > > > > Michele > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajai at bitblit.net Tue Apr 27 14:47:48 2010 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 27 Apr 2010 14:47:48 -0400 (EDT) Subject: [nycphp-talk] Source Control In-Reply-To: <5A.35.08792.8EF17DB4@hrndva-omtalb.mail.rr.com> Message-ID: On Tue, 27 Apr 2010, mmw wrote: > The only source control I've used has been unix side. > > What other kinds are there, maybe, that can be accessed online, rather than > on the server? Ive been using svnrepository.com for years now. Despite the name, I think also do git and *maybe* Mercurial. CVSDude is now codesion.com (again, the name is a misnomer :-) -- Aj. From vtbludgeon at gmail.com Thu Apr 29 09:50:22 2010 From: vtbludgeon at gmail.com (David Mintz) Date: Thu, 29 Apr 2010 09:50:22 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: References: <4BD67C6E.2020202@justinhileman.info> Message-ID: On Tue, Apr 27, 2010 at 10:11 AM, Anthony Wlodarski wrote: > I would never recommend that on Ubuntu or a Debain package based systems. > Use "sudo tasksel" and then select "LAMP Server". Tasksel is a package > management tool for the meta packages that point to the most recent version > of the software that exists in the stack. That way you don't have to piece > together PHP5, MySQL, and Apache and their latest versions. Since learning > about tasksel I have been loving Ubuntu 9.10 server edition and rolling out > new instances. > > -Anthony > > Interesting! Thanks for the tip. (Even when you crack wise, you're likely to learn something from this list.) > On Tue, Apr 27, 2010 at 10:07 AM, David Mintz wrote: > >> apt-get install >> >> -- >> > -- Support real health care reform: http://phimg.org/ -- David Mintz http://davidmintz.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtbludgeon at gmail.com Thu Apr 29 10:03:24 2010 From: vtbludgeon at gmail.com (David Mintz) Date: Thu, 29 Apr 2010 10:03:24 -0400 Subject: [nycphp-talk] kind of cool new comer: pulsecms >>> php cms In-Reply-To: References: Message-ID: On Fri, Apr 23, 2010 at 11:21 PM, Edward Potter wrote: > Looks kind of cool. super simple, great gui, may help out some php coders > that need to knock out a quick cms. > > the usual suspects, php, mysq, jquery > > http://pulsecms.com/ > > :-) > > Wow. That really does look appealing. I wonder how small "small" is? -- Support real health care reform: http://phimg.org/ -- David Mintz http://davidmintz.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at devonianfarm.com Thu Apr 29 12:34:52 2010 From: paul at devonianfarm.com (Paul A Houle) Date: Thu, 29 Apr 2010 12:34:52 -0400 Subject: [nycphp-talk] MAMP or XAMPP ? In-Reply-To: References: <4BD67C6E.2020202@justinhileman.info> Message-ID: <4BD9B52C.7040407@devonianfarm.com> David Mintz wrote: > > > On Tue, Apr 27, 2010 at 10:11 AM, Anthony Wlodarski > > wrote: > > I would never recommend that on Ubuntu or a Debain package based > systems. Use "sudo tasksel" and then select "LAMP Server". > Tasksel is a package management tool for the meta packages that > point to the most recent version of the software that exists in > the stack. That way you don't have to piece together PHP5, MySQL, > and Apache and their latest versions. Since learning about > tasksel I have been loving Ubuntu 9.10 server edition and rolling > out new instances. > Maybe I'm old fashioned, but I still install my server stack with the old ./configure make make install on both Linux and Mac machines. It certainly makes your machine grind for a while, but it's not very intellectually challenge. It seems like I often need to compile something a little weird into my PHP, and I like the level of control over the configuration I get. Now when I want to mess with the "AMP" stack on Windows, I use XAMPP these days. I've never gotten around to figuring out how to build the AMP stack on Windows. From jhise at ledcity.net Thu Apr 29 13:28:25 2010 From: jhise at ledcity.net (Jeremy Hise) Date: Thu, 29 Apr 2010 13:28:25 -0400 Subject: [nycphp-talk] Deploying PHP Applications Message-ID: Hiya, So I've recently been put in charge of a tech department at my company. One issue that we are trying to get a handle on is a good way to get our PHP applications from a development/staging environment to a production server. The production servers are accessible via ssh/ftp/etc. One quick thought would be to install a subversion client on the server and have that export the application to a spot where a build script could then set it up. However, is there a "best-practices" way of doing this? Thanks! jeremy From jason.salsiccia at gmail.com Thu Apr 29 13:35:37 2010 From: jason.salsiccia at gmail.com (Jason Salsiccia) Date: Thu, 29 Apr 2010 13:35:37 -0400 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: References: Message-ID: Here's how I to do it. As you said, have a subversion client installed on the server running your web host. If your doc root is /var/www/html, have html be a symlink to current code. /var/www/html -> /var/www/tag_XXXX The build script checks out the new tag to the doc root in directory /var/www/tag_newtagname. The last thing the build script does is switch the html symlink from the old tag to the new tag to make the deployment live. Jason On Thu, Apr 29, 2010 at 1:28 PM, Jeremy Hise wrote: > Hiya, > > So I've recently been put in charge of a tech department at my company. > One issue that we are trying to get a handle on is a good way to get our > PHP applications from a development/staging environment to a production > server. The production servers are accessible via ssh/ftp/etc. One quick > thought would be to install a subversion client on the server and have > that export the application to a spot where a build script could then set > it up. However, is there a "best-practices" way of doing this? > > Thanks! > > jeremy > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhise at ledcity.net Thu Apr 29 13:39:59 2010 From: jhise at ledcity.net (Jeremy Hise) Date: Thu, 29 Apr 2010 13:39:59 -0400 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: References: Message-ID: <7951d405d61198986fdbc39f117f510f.squirrel@webmail.ledcity.net> Ok so it's not crazy to put an svn client on a production server for this purpose. Thanks for the tip! > Here's how I to do it. > > As you said, have a subversion client installed on the server running your > web host. If your doc root is /var/www/html, have html be a symlink to > current code. > > /var/www/html -> /var/www/tag_XXXX > > The build script checks out the new tag to the doc root in directory > /var/www/tag_newtagname. The last thing the build script does is switch > the html symlink from the old tag to the new tag to make the deployment > live. > > Jason > > On Thu, Apr 29, 2010 at 1:28 PM, Jeremy Hise wrote: > >> Hiya, >> >> So I've recently been put in charge of a tech department at my company. >> One issue that we are trying to get a handle on is a good way to get our >> PHP applications from a development/staging environment to a production >> server. The production servers are accessible via ssh/ftp/etc. One quick >> thought would be to install a subversion client on the server and have >> that export the application to a spot where a build script could then >> set >> it up. However, is there a "best-practices" way of doing this? >> >> Thanks! >> >> jeremy >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation Jeremy Hise Application Developer ledCity.net From jason.salsiccia at gmail.com Thu Apr 29 13:44:15 2010 From: jason.salsiccia at gmail.com (Jason Salsiccia) Date: Thu, 29 Apr 2010 13:44:15 -0400 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: <7951d405d61198986fdbc39f117f510f.squirrel@webmail.ledcity.net> References: <7951d405d61198986fdbc39f117f510f.squirrel@webmail.ledcity.net> Message-ID: I don't see any reason not to. If you would prefer, you could run the checkout from any server and FTP / SSH the files up to production in the build script. Thats actually the better way to go when you have multiple web servers. That way can have one build script handle all of them instead of executing a separate deployment on each server. Jason On Thu, Apr 29, 2010 at 1:39 PM, Jeremy Hise wrote: > Ok so it's not crazy to put an svn client on a production server for this > purpose. > > Thanks for the tip! > > > > Here's how I to do it. > > > > As you said, have a subversion client installed on the server running > your > > web host. If your doc root is /var/www/html, have html be a symlink to > > current code. > > > > /var/www/html -> /var/www/tag_XXXX > > > > The build script checks out the new tag to the doc root in directory > > /var/www/tag_newtagname. The last thing the build script does is switch > > the html symlink from the old tag to the new tag to make the deployment > > live. > > > > Jason > > > > On Thu, Apr 29, 2010 at 1:28 PM, Jeremy Hise wrote: > > > >> Hiya, > >> > >> So I've recently been put in charge of a tech department at my company. > >> One issue that we are trying to get a handle on is a good way to get our > >> PHP applications from a development/staging environment to a production > >> server. The production servers are accessible via ssh/ftp/etc. One quick > >> thought would be to install a subversion client on the server and have > >> that export the application to a spot where a build script could then > >> set > >> it up. However, is there a "best-practices" way of doing this? > >> > >> Thanks! > >> > >> jeremy > >> > >> _______________________________________________ > >> New York PHP Users Group Community Talk Mailing List > >> http://lists.nyphp.org/mailman/listinfo/talk > >> > >> http://www.nyphp.org/Show-Participation > >> > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > Jeremy Hise > Application Developer > > ledCity.net > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at atopia.net Thu Apr 29 13:49:38 2010 From: matt at atopia.net (Matt Juszczak) Date: Thu, 29 Apr 2010 13:49:38 -0400 (EDT) Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: References: <7951d405d61198986fdbc39f117f510f.squirrel@webmail.ledcity.net> Message-ID: If you're doing tags, I would recommend an svn export vs. an svn checkout. Branches, use svn checkout (so you can svn up) -Matt On Thu, 29 Apr 2010, Jason Salsiccia wrote: > I don't see any reason not to.??? If you would prefer, you could run the checkout from any server and FTP / SSH the files > up to production in the build script.?? Thats actually the better way to go when you have multiple web servers.?? That > way can have one build script handle all of them instead of executing a separate deployment on each server. > > Jason > > On Thu, Apr 29, 2010 at 1:39 PM, Jeremy Hise wrote: > Ok so it's not crazy to put an svn client on a production server for this > purpose. > > Thanks for the tip! > > > > Here's how I to do it. > > > > As you said, have a subversion client installed on the server running your > > web host. ? If your doc root is /var/www/html, ?have html be a symlink to > > current code. > > > > /var/www/html -> /var/www/tag_XXXX > > > > The build script checks out the new tag to the doc root in directory > > /var/www/tag_newtagname. ? The last thing the build script does is switch > > the html symlink from the old tag to the new tag to make the deployment > > live. > > > > Jason > > > > On Thu, Apr 29, 2010 at 1:28 PM, Jeremy Hise wrote: > > > >> Hiya, > >> > >> So I've recently been put in charge of a tech department at my company. > >> One issue that we are trying to get a handle on is a good way to get our > >> PHP applications from a development/staging environment to a production > >> server. The production servers are accessible via ssh/ftp/etc. One quick > >> thought would be to install a subversion client on the server and have > >> that export the application to a spot where a build script could then > >> set > >> it up. However, is there a "best-practices" way of doing this? > >> > >> Thanks! > >> > >> jeremy > >> > >> _______________________________________________ > >> New York PHP Users Group Community Talk Mailing List > >> http://lists.nyphp.org/mailman/listinfo/talk > >> > >> http://www.nyphp.org/Show-Participation > >> > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > Jeremy Hise > Application Developer > > ledCity.net > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > From max at neuropunks.org Thu Apr 29 13:50:38 2010 From: max at neuropunks.org (Max Gribov) Date: Thu, 29 Apr 2010 13:50:38 -0400 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: References: Message-ID: <4BD9C6EE.9060405@neuropunks.org> On 04/29/2010 01:35 PM, Jason Salsiccia wrote: > Here's how I to do it. > > As you said, have a subversion client installed on the server running > your web host. If your doc root is /var/www/html, have html be a > symlink to current code. > > /var/www/html -> /var/www/tag_XXXX and you can also svn export to an nfs share, and then rsync from there to multiple machines if you want. the rsync and any other tasks can be done by a deploy script. using that tag method you can also automate changelog through svn log. you'd have to have the tag revision numbers. > > The build script checks out the new tag to the doc root in directory > /var/www/tag_newtagname. The last thing the build script does is > switch the html symlink from the old tag to the new tag to make the > deployment live. > > Jason > > On Thu, Apr 29, 2010 at 1:28 PM, Jeremy Hise > wrote: > > Hiya, > > So I've recently been put in charge of a tech department at my > company. > One issue that we are trying to get a handle on is a good way to > get our > PHP applications from a development/staging environment to a > production > server. The production servers are accessible via ssh/ftp/etc. One > quick > thought would be to install a subversion client on the server and have > that export the application to a spot where a build script could > then set > it up. However, is there a "best-practices" way of doing this? > > Thanks! > > jeremy > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at devonianfarm.com Thu Apr 29 13:52:02 2010 From: paul at devonianfarm.com (Paul A Houle) Date: Thu, 29 Apr 2010 13:52:02 -0400 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: <7951d405d61198986fdbc39f117f510f.squirrel@webmail.ledcity.net> References: <7951d405d61198986fdbc39f117f510f.squirrel@webmail.ledcity.net> Message-ID: <4BD9C742.6070301@devonianfarm.com> Jeremy Hise wrote: > Ok so it's not crazy to put an svn client on a production server for this > purpose. > > Thanks for the tip! > > Although it drives certain IT people bonkers, I think it's a very wise thing to put a version control client on your server. I would have a problem with letting it be CVS--, I mean "svn". Although "svn" superficially improves on CVS in some ways, my experience is that the CVS branching model is a perfect match for the challenges that I've faced in developing web systems that evolve. That branching model can be emulated easily in git, and that's what I use today. From papillion at gmail.com Thu Apr 29 13:55:38 2010 From: papillion at gmail.com (Anthony Papillion) Date: Thu, 29 Apr 2010 12:55:38 -0500 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: <4BD9C6EE.9060405@neuropunks.org> References: <4BD9C6EE.9060405@neuropunks.org> Message-ID: <00ed01cae7c5$2d3322e0$879968a0$@com> So I'm a bit curious and perhaps I'm missing the point here (probably am) but why go through all this hassle? Why not just do a straight FTP of the files from the staging machine to the deployment machine? Does using checkin/check out benefit us in some way besides the original file integrity and management? Anthony Papillion From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Max Gribov Sent: Thursday, April 29, 2010 12:51 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Deploying PHP Applications On 04/29/2010 01:35 PM, Jason Salsiccia wrote: Here's how I to do it. As you said, have a subversion client installed on the server running your web host. If your doc root is /var/www/html, have html be a symlink to current code. /var/www/html -> /var/www/tag_XXXX and you can also svn export to an nfs share, and then rsync from there to multiple machines if you want. the rsync and any other tasks can be done by a deploy script. using that tag method you can also automate changelog through svn log. you'd have to have the tag revision numbers. The build script checks out the new tag to the doc root in directory /var/www/tag_newtagname. The last thing the build script does is switch the html symlink from the old tag to the new tag to make the deployment live. Jason On Thu, Apr 29, 2010 at 1:28 PM, Jeremy Hise wrote: Hiya, So I've recently been put in charge of a tech department at my company. One issue that we are trying to get a handle on is a good way to get our PHP applications from a development/staging environment to a production server. The production servers are accessible via ssh/ftp/etc. One quick thought would be to install a subversion client on the server and have that export the application to a spot where a build script could then set it up. However, is there a "best-practices" way of doing this? Thanks! jeremy _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: From rmarscher at beaffinitive.com Thu Apr 29 13:56:06 2010 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Thu, 29 Apr 2010 13:56:06 -0400 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: References: Message-ID: On Apr 29, 2010, at 1:35 PM, Jason Salsiccia wrote: > If your doc root is /var/www/html, have html be a symlink to current code. > /var/www/html -> /var/www/tag_XXXX I also use a similar method with symlinks. Sometimes my web server needs a restart for it to recognize the symlink has changed. It might be caused by php realpath caching or maybe there's some type of caching in my Litespeed server or CentOS. I haven't taken the time to really figure it out. At any rate, if you see problems, try restarting your web server and see if that fixes it. -Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmwaldman at nyc.rr.com Thu Apr 29 13:58:27 2010 From: mmwaldman at nyc.rr.com (mmw) Date: Thu, 29 Apr 2010 13:58:27 -0400 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: Message-ID: This relates back to a question I asked about source control, I think. Subversion deploys from development to production? so it's source control, too, but only runs on the server? I'd love online development side that you can check in and out online, so you have check in options. Not all developers are used to working on the server. Back in the day, I always worked on the server doing c coding. But, a lot of times, I want to work on my own server then roll it to another server. Michele > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Matt Juszczak > Sent: Thursday, April 29, 2010 1:50 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Deploying PHP Applications > > If you're doing tags, I would recommend an svn export vs. an svn checkout. > > Branches, use svn checkout (so you can svn up) > > -Matt > > On Thu, 29 Apr 2010, Jason Salsiccia wrote: > > > I don't see any reason not to.??? If you would prefer, you could run the > checkout from any server and FTP / SSH the files > > up to production in the build script.?? Thats actually the better way to > go when you have multiple web servers.?? That > > way can have one build script handle all of them instead of executing a > separate deployment on each server. > > > > Jason > > > > On Thu, Apr 29, 2010 at 1:39 PM, Jeremy Hise wrote: > > Ok so it's not crazy to put an svn client on a production server > for this > > purpose. > > > > Thanks for the tip! > > > > > > > Here's how I to do it. > > > > > > As you said, have a subversion client installed on the server running > your > > > web host. ? If your doc root is /var/www/html, ?have html be a symlink > to > > > current code. > > > > > > /var/www/html -> /var/www/tag_XXXX > > > > > > The build script checks out the new tag to the doc root in directory > > > /var/www/tag_newtagname. ? The last thing the build script does is > switch > > > the html symlink from the old tag to the new tag to make the > deployment > > > live. > > > > > > Jason > > > > > > On Thu, Apr 29, 2010 at 1:28 PM, Jeremy Hise > wrote: > > > > > >> Hiya, > > >> > > >> So I've recently been put in charge of a tech department at my > company. > > >> One issue that we are trying to get a handle on is a good way to get > our > > >> PHP applications from a development/staging environment to a > production > > >> server. The production servers are accessible via ssh/ftp/etc. One > quick > > >> thought would be to install a subversion client on the server and > have > > >> that export the application to a spot where a build script could then > > >> set > > >> it up. However, is there a "best-practices" way of doing this? > > >> > > >> Thanks! > > >> > > >> jeremy > > >> > > >> _______________________________________________ > > >> New York PHP Users Group Community Talk Mailing List > > >> http://lists.nyphp.org/mailman/listinfo/talk > > >> > > >> http://www.nyphp.org/Show-Participation > > >> > > > _______________________________________________ > > > New York PHP Users Group Community Talk Mailing List > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > http://www.nyphp.org/Show-Participation > > > > > > Jeremy Hise > > Application Developer > > > > ledCity.net > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > > > > > > From jhise at ledcity.net Thu Apr 29 14:12:10 2010 From: jhise at ledcity.net (Jeremy Hise) Date: Thu, 29 Apr 2010 14:12:10 -0400 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: <00ed01cae7c5$2d3322e0$879968a0$@com> References: <4BD9C6EE.9060405@neuropunks.org> <00ed01cae7c5$2d3322e0$879968a0$@com> Message-ID: <98f0c16d14b550aa0fd72729fdbc6d0d.squirrel@webmail.ledcity.net> Well, FTP is a fine option I think, but this deployment strategy I'm trying to work into cruisecontrol.rb. My ultimate goal is to go to the cruise control interface, click a button. Make sure my php unit tests work, make sure php lint doesn't complain and on success, push up the latest release tag to a production server. This would also allow me to deploy to QA servers for the testers. Config files and files generated by the application would need to remain in place. > So I'm a bit curious and perhaps I'm missing the point here (probably am) > but why go through all this hassle? Why not just do a straight FTP of the > files from the staging machine to the deployment machine? Does using > checkin/check out benefit us in some way besides the original file > integrity > and management? > > > > Anthony Papillion > > > > > > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On > Behalf Of Max Gribov > Sent: Thursday, April 29, 2010 12:51 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Deploying PHP Applications > > > > On 04/29/2010 01:35 PM, Jason Salsiccia wrote: > > Here's how I to do it. > > As you said, have a subversion client installed on the server running your > web host. If your doc root is /var/www/html, have html be a symlink to > current code. > > /var/www/html -> /var/www/tag_XXXX > > > and you can also svn export to an nfs share, and then rsync from there to > multiple machines if you want. > the rsync and any other tasks can be done by a deploy script. > using that tag method you can also automate changelog through svn log. > you'd > have to have the tag revision numbers. > > > > > > The build script checks out the new tag to the doc root in directory > /var/www/tag_newtagname. The last thing the build script does is switch > the html symlink from the old tag to the new tag to make the deployment > live. > > Jason > > On Thu, Apr 29, 2010 at 1:28 PM, Jeremy Hise wrote: > > Hiya, > > So I've recently been put in charge of a tech department at my company. > One issue that we are trying to get a handle on is a good way to get our > PHP applications from a development/staging environment to a production > server. The production servers are accessible via ssh/ftp/etc. One quick > thought would be to install a subversion client on the server and have > that export the application to a spot where a build script could then set > it up. However, is there a "best-practices" way of doing this? > > Thanks! > > jeremy > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation Jeremy Hise Application Developer ledCity.net From papillion at gmail.com Thu Apr 29 14:24:32 2010 From: papillion at gmail.com (Anthony Papillion) Date: Thu, 29 Apr 2010 13:24:32 -0500 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: <98f0c16d14b550aa0fd72729fdbc6d0d.squirrel@webmail.ledcity.net> References: <4BD9C6EE.9060405@neuropunks.org> <00ed01cae7c5$2d3322e0$879968a0$@com> <98f0c16d14b550aa0fd72729fdbc6d0d.squirrel@webmail.ledcity.net> Message-ID: <002801cae7c9$36f85e90$a4e91bb0$@com> Ahh, I get it. Makes much more sense. Thanks! -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jeremy Hise Sent: Thursday, April 29, 2010 1:12 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Deploying PHP Applications Well, FTP is a fine option I think, but this deployment strategy I'm trying to work into cruisecontrol.rb. My ultimate goal is to go to the cruise control interface, click a button. Make sure my php unit tests work, make sure php lint doesn't complain and on success, push up the latest release tag to a production server. This would also allow me to deploy to QA servers for the testers. Config files and files generated by the application would need to remain in place. > So I'm a bit curious and perhaps I'm missing the point here (probably am) > but why go through all this hassle? Why not just do a straight FTP of the > files from the staging machine to the deployment machine? Does using > checkin/check out benefit us in some way besides the original file > integrity > and management? > > > > Anthony Papillion > > > > > > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On > Behalf Of Max Gribov > Sent: Thursday, April 29, 2010 12:51 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Deploying PHP Applications > > > > On 04/29/2010 01:35 PM, Jason Salsiccia wrote: > > Here's how I to do it. > > As you said, have a subversion client installed on the server running your > web host. If your doc root is /var/www/html, have html be a symlink to > current code. > > /var/www/html -> /var/www/tag_XXXX > > > and you can also svn export to an nfs share, and then rsync from there to > multiple machines if you want. > the rsync and any other tasks can be done by a deploy script. > using that tag method you can also automate changelog through svn log. > you'd > have to have the tag revision numbers. > > > > > > The build script checks out the new tag to the doc root in directory > /var/www/tag_newtagname. The last thing the build script does is switch > the html symlink from the old tag to the new tag to make the deployment > live. > > Jason > > On Thu, Apr 29, 2010 at 1:28 PM, Jeremy Hise wrote: > > Hiya, > > So I've recently been put in charge of a tech department at my company. > One issue that we are trying to get a handle on is a good way to get our > PHP applications from a development/staging environment to a production > server. The production servers are accessible via ssh/ftp/etc. One quick > thought would be to install a subversion client on the server and have > that export the application to a spot where a build script could then set > it up. However, is there a "best-practices" way of doing this? > > Thanks! > > jeremy > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation Jeremy Hise Application Developer ledCity.net _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation From jhise at ledcity.net Thu Apr 29 14:29:14 2010 From: jhise at ledcity.net (Jeremy Hise) Date: Thu, 29 Apr 2010 14:29:14 -0400 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: <002801cae7c9$36f85e90$a4e91bb0$@com> References: <4BD9C6EE.9060405@neuropunks.org> <00ed01cae7c5$2d3322e0$879968a0$@com> <98f0c16d14b550aa0fd72729fdbc6d0d.squirrel@webmail.ledcity.net> <002801cae7c9$36f85e90$a4e91bb0$@com> Message-ID: <76f1f86606a68b962c66ffe0166a0706.squirrel@webmail.ledcity.net> Thanks everyone. > Ahh, I get it. Makes much more sense. > Thanks! > > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On > Behalf Of Jeremy Hise > Sent: Thursday, April 29, 2010 1:12 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Deploying PHP Applications > > Well, FTP is a fine option I think, but this deployment strategy I'm > trying to work into cruisecontrol.rb. My ultimate goal is to go to the > cruise control interface, click a button. Make sure my php unit tests > work, make sure php lint doesn't complain and on success, push up the > latest release tag to a production server. This would also allow me to > deploy to QA servers for the testers. Config files and files generated by > the application would need to remain in place. > > > > >> So I'm a bit curious and perhaps I'm missing the point here (probably >> am) >> but why go through all this hassle? Why not just do a straight FTP of >> the >> files from the staging machine to the deployment machine? Does using >> checkin/check out benefit us in some way besides the original file >> integrity >> and management? >> >> >> >> Anthony Papillion >> >> >> >> >> >> From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] >> On >> Behalf Of Max Gribov >> Sent: Thursday, April 29, 2010 12:51 PM >> To: NYPHP Talk >> Subject: Re: [nycphp-talk] Deploying PHP Applications >> >> >> >> On 04/29/2010 01:35 PM, Jason Salsiccia wrote: >> >> Here's how I to do it. >> >> As you said, have a subversion client installed on the server running >> your >> web host. If your doc root is /var/www/html, have html be a symlink >> to >> current code. >> >> /var/www/html -> /var/www/tag_XXXX >> >> >> and you can also svn export to an nfs share, and then rsync from there >> to >> multiple machines if you want. >> the rsync and any other tasks can be done by a deploy script. >> using that tag method you can also automate changelog through svn log. >> you'd >> have to have the tag revision numbers. >> >> >> >> >> >> The build script checks out the new tag to the doc root in directory >> /var/www/tag_newtagname. The last thing the build script does is >> switch >> the html symlink from the old tag to the new tag to make the deployment >> live. >> >> Jason >> >> On Thu, Apr 29, 2010 at 1:28 PM, Jeremy Hise wrote: >> >> Hiya, >> >> So I've recently been put in charge of a tech department at my company. >> One issue that we are trying to get a handle on is a good way to get our >> PHP applications from a development/staging environment to a production >> server. The production servers are accessible via ssh/ftp/etc. One quick >> thought would be to install a subversion client on the server and have >> that export the application to a spot where a build script could then >> set >> it up. However, is there a "best-practices" way of doing this? >> >> Thanks! >> >> jeremy >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> >> >> >> >> >> >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> >> >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation > > > Jeremy Hise > Application Developer > > ledCity.net > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > Jeremy Hise Application Developer ledCity.net From chsnyder at gmail.com Thu Apr 29 15:09:11 2010 From: chsnyder at gmail.com (Chris Snyder) Date: Thu, 29 Apr 2010 15:09:11 -0400 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: <00ed01cae7c5$2d3322e0$879968a0$@com> References: <4BD9C6EE.9060405@neuropunks.org> <00ed01cae7c5$2d3322e0$879968a0$@com> Message-ID: On Thu, Apr 29, 2010 at 1:55 PM, Anthony Papillion wrote: > So I?m a bit curious and perhaps I?m missing the point here (probably am) > but why go through all this hassle? Why not just do a straight FTP of the > files from the staging machine to the deployment machine?? Does using > checkin/check out benefit us in some way besides the original file integrity > and management? > FTP (uh, SFTP) forces you to upload the entire codebase or pick-and-choose the files that changed. svn up just gets the changes. Source control also gives you a quick and easy rollback when you realize that one of the new files just borked your production site. From oneofthosed3afmutes at yahoo.com Thu Apr 29 15:51:19 2010 From: oneofthosed3afmutes at yahoo.com (Anthony Wlodarski) Date: Thu, 29 Apr 2010 12:51:19 -0700 (PDT) Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: References: <4BD9C6EE.9060405@neuropunks.org> <00ed01cae7c5$2d3322e0$879968a0$@com> Message-ID: <38298.33801.qm@web114307.mail.gq1.yahoo.com> I additionally preferred the SVN checkout procedure to make the production environment a local working copy that could be used with "svn up". One thing I had to do was make sure that none of the SVN files were accessible via the web. You can throw the following code into a .htaccess file if you don't have access to the .conf files. RewriteRule ^(.*/)?\.svn/ - [F,L] ErrorDocument 403 "Access Forbidden" You just never know what someone could do with access to those .svn directories. Anthony W. oneofthosed3afmutes at yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sequethin at gmail.com Thu Apr 29 15:58:50 2010 From: sequethin at gmail.com (Mike Hernandez) Date: Thu, 29 Apr 2010 15:58:50 -0400 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: <38298.33801.qm@web114307.mail.gq1.yahoo.com> References: <4BD9C6EE.9060405@neuropunks.org> <00ed01cae7c5$2d3322e0$879968a0$@com> <38298.33801.qm@web114307.mail.gq1.yahoo.com> Message-ID: <4BD9E4FA.4010906@gmail.com> On 04/29/2010 03:51 PM, Anthony Wlodarski wrote: > I additionally preferred the SVN checkout procedure to make the > production environment a local working copy that could be used with > "svn up". One thing I had to do was make sure that none of the SVN > files were accessible via the web. You can throw the following code > into a .htaccess file if you don't have access to the .conf files. > > > RewriteRule ^(.*/)?\.svn/ - [F,L] > ErrorDocument 403 "Access Forbidden" > > > You just never know what someone could do with access to those .svn > directories. I've been using svk on my server to mirror the entire repository (which is kept on a separate server off site). One of the benefits I've enjoyed thanks to this is that the code tree that's checked out from the svk repo keeps all of the .svn stuff in my home directory. This way I can still sync changes but I don't have the svn files in the public tree at all. I started with svk when I begin using trac, which has nice subversion integration but wants to have a full repository to work with (as opposed to a simple checkout of the tree). Svk allows me to mirror the entire repository on the server, yet still keep the main subversion repository somewhere else. --Mike H -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at devonianfarm.com Thu Apr 29 16:47:01 2010 From: paul at devonianfarm.com (Paul A Houle) Date: Thu, 29 Apr 2010 16:47:01 -0400 Subject: [nycphp-talk] Deploying PHP Applications In-Reply-To: <00ed01cae7c5$2d3322e0$879968a0$@com> References: <4BD9C6EE.9060405@neuropunks.org> <00ed01cae7c5$2d3322e0$879968a0$@com> Message-ID: <4BD9F045.2010900@devonianfarm.com> Anthony Papillion wrote: > > So I?m a bit curious and perhaps I?m missing the point here (probably > am) but why go through all this hassle? Why not just do a straight FTP > of the files from the staging machine to the deployment machine? Does > using checkin/check out benefit us in some way besides the original > file integrity and management? > > Anthony Papillion > Well, FTP has the advantage of inertia. In a lot of IT departments, FTP is still considered a viable internet protocol, despite numerous problems: (i) it's over-complicated nature means that FTP clients and servers tend to be full of security flaws and (ii) it's just not compatible with the way the internet has worked ever since 1995 or so (NAT, Firewalls, etc.) The inventors of 'SFTP' pulled a brilliant marketing coup by incorporated the three letters 'FTP' into the name of a modern protocol that has no relationship whatsoever with FTP. Now, I'm assuming here that we're working in PHP so that there isn't any compilation, need to kick the server to unload Java classes, etc. Deployment issues become more complex as you have more artifacts like that. There's also the issue of how you deploy changes to database schemas and content. If a system is busy, for one thing, I'd be concerned that many FTP-based ways of maintaining the state of a system would leave the files in an inconsistent state for several seconds to several minutes. There might be some some software out there that's smarter, but the obvious thing to do that "always works" is to delete the target directory and re-copy it, which means the system will be unnecessarily busted for some time. Rsync does better, but in my experience git, particularly with a local repository, is incredibly fast. The big advantage for having your production system be 'checked in' is that you can make emergency changes directly to the production system, and then check them back into source control. You certainly don't want to make changes in your production system on a daily basis, but I've faced situations, particularly when dealing with abusive user behavior, a wonky OS on the production machine, or bad interactions with external automated systems, where a very small patch to the production system (carefully monitored) is the most effective way to solve a problem. If your production system is checked in, you can manage this sort of change very easily -- you can keep track of what was done, when and be able to check it in or back the change out. I've got a pretty nice system for website deployment on the server that serves up http://ny-pictures.com/ that server isn't heavily loaded yet, so I often run development, staging and production environments on the same system. I can deploy new instances of my 'CMS' in less than a minute. The only real trouble I've got is that I've got some databases that take 30 minutes to mysqldump these days... Also I am starting to have a number of things that are "compiled" in my system such as metadata that controls the autoloader, the data dictionary, and, soon, a cache of commonly autoloaded classes that will improve the effectiveness of an opcode cache. Now, if you're working in a clustered environment, where there are multiple copies of the software pushed out to multiple servers, that's a whole different game. From consult at covenantedesign.com Fri Apr 30 19:24:33 2010 From: consult at covenantedesign.com (CED) Date: Fri, 30 Apr 2010 19:24:33 -0400 Subject: [nycphp-talk] PHP Dynamic GET Variables , Do they exist? In-Reply-To: References: Message-ID: <4BDB66B1.7080300@covenantedesign.com> What am I doing wrong? (this is obviously for demonstration purposes only, the actually variables have need for being stored in the manner that they are) -Ed From chsnyder at gmail.com Fri Apr 30 19:39:31 2010 From: chsnyder at gmail.com (Chris Snyder) Date: Fri, 30 Apr 2010 19:39:31 -0400 Subject: [nycphp-talk] PHP Dynamic GET Variables , Do they exist? In-Reply-To: <4BDB66B1.7080300@covenantedesign.com> References: <4BDB66B1.7080300@covenantedesign.com> Message-ID: On Fri, Apr 30, 2010 at 7:24 PM, CED wrote: > //GIVEN a page that is called with: > // ? ?$_GET['abc'] = 'def'; > //CODED with: > ? $dynamic_vars['a']['b'] = 'abc'; > > ? // NO WORKY > ? echo $_GET[ $dynamic_vars['a']['b'] ] ; > > ? // NO WORKY > > ? if(isset($_GET[ $dynamic_vars['a']['b'] ])){ > ? ? ?echo $_GET[ $dynamic_vars['a']['b'] ] ; > ? } > ?> > > What am I doing wrong? > (this is obviously for demonstration purposes only, the actually variables > have need for being stored in the manner that they are) > > -Ed Sample code works for me, php 5.3.2. From consult at covenantedesign.com Fri Apr 30 20:32:24 2010 From: consult at covenantedesign.com (CED) Date: Fri, 30 Apr 2010 20:32:24 -0400 Subject: [nycphp-talk] PHP Dynamic GET Variables , Do they exist? In-Reply-To: References: <4BDB66B1.7080300@covenantedesign.com> Message-ID: <4BDB7698.6090403@covenantedesign.com> Chris Snyder wrote: > On Fri, Apr 30, 2010 at 7:24 PM, CED wrote: > >> > //GIVEN a page that is called with: >> // $_GET['abc'] = 'def'; >> //CODED with: >> $dynamic_vars['a']['b'] = 'abc'; >> >> // NO WORKY >> echo $_GET[ $dynamic_vars['a']['b'] ] ; >> >> // NO WORKY >> >> if(isset($_GET[ $dynamic_vars['a']['b'] ])){ >> echo $_GET[ $dynamic_vars['a']['b'] ] ; >> } >> ?> >> >> What am I doing wrong? >> (this is obviously for demonstration purposes only, the actually variables >> have need for being stored in the manner that they are) >> >> -Ed >> > > Sample code works for me, php 5.3.2. > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation That has got to be it then... 5.2.3 on this box... checking the changelog now; Thank you Mr. Snyder. :D -- 995 Maple Hill Road Castleton, New York 12033 518-331-5061 Consult at CovenanteDesign.com From oneofthosed3afmutes at yahoo.com Fri Apr 30 21:46:31 2010 From: oneofthosed3afmutes at yahoo.com (Anthony Wlodarski) Date: Fri, 30 Apr 2010 18:46:31 -0700 (PDT) Subject: [nycphp-talk] PHP Dynamic GET Variables , Do they exist? In-Reply-To: <4BDB7698.6090403@covenantedesign.com> References: <4BDB66B1.7080300@covenantedesign.com> <4BDB7698.6090403@covenantedesign.com> Message-ID: <406914.28901.qm@web114320.mail.gq1.yahoo.com> I don't think it is the version of PHP you are using for example from my box: anthony at anthony-desktop:~$ php -v PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cli) (built: Jan 6 2010 22:41:56) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies anthony at anthony-desktop:~$ php -a Interactive shell php > $_GET['abc'] = 'def'; php > $dynamic_vars['a']['b'] = 'abc'; php > echo $_GET[$dynamic_vars['a']['b']]; def php > if(isset($_GET[$dynamic_vars['a']['b']])) { php { echo $_GET[$dynamic_vars['a']['b']]; php { } def As you can see I am on 5.2.10-2. -Anthony ________________________________ From: CED To: NYPHP Talk Sent: Fri, April 30, 2010 8:32:24 PM Subject: Re: [nycphp-talk] PHP Dynamic GET Variables , Do they exist? Chris Snyder wrote: > On Fri, Apr 30, 2010 at 7:24 PM, CED wrote: > >> > //GIVEN a page that is called with: >> // $_GET['abc'] = 'def'; >> //CODED with: >> $dynamic_vars['a']['b'] = 'abc'; >> >> // NO WORKY >> echo $_GET[ $dynamic_vars['a']['b'] ] ; >> >> // NO WORKY >> >> if(isset($_GET[ $dynamic_vars['a']['b'] ])){ >> echo $_GET[ $dynamic_vars['a']['b'] ] ; >> } >> ?> >> >> What am I doing wrong? >> (this is obviously for demonstration purposes only, the actually variables >> have need for being stored in the manner that they are) >> >> -Ed >> > > Sample code works for me, php 5.3.2. > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation That has got to be it then... 5.2.3 on this box... checking the changelog now; Thank you Mr. Snyder. :D -- 995 Maple Hill Road Castleton, New York 12033 518-331-5061 Consult at CovenanteDesign.com _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: From consult at covenantedesign.com Fri Apr 30 23:33:02 2010 From: consult at covenantedesign.com (CED) Date: Fri, 30 Apr 2010 23:33:02 -0400 Subject: [nycphp-talk] PHP Dynamic GET Variables , Do they exist? In-Reply-To: <406914.28901.qm@web114320.mail.gq1.yahoo.com> References: <4BDB66B1.7080300@covenantedesign.com> <4BDB7698.6090403@covenantedesign.com> <406914.28901.qm@web114320.mail.gq1.yahoo.com> Message-ID: <4BDBA0EE.7090706@covenantedesign.com> Anthony Wlodarski wrote: > I don't think it is the version of PHP you are using for example from > my box: > > anthony at anthony-desktop:~$ php -v > PHP 5.2.10-2ubuntu6.4 with Suhosin-Patch 0.9.7 (cli) (built: Jan 6 > 2010 22:41:56) > Copyright (c) 1997-2009 The PHP Group > Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies > anthony at anthony-desktop:~$ php -a > Interactive shell > > php > $_GET['abc'] = 'def'; > php > $dynamic_vars['a']['b'] = 'abc'; > php > echo $_GET[$dynamic_vars['a']['b']]; > def > php > if(isset($_GET[$dynamic_vars['a']['b']])) { > php { echo $_GET[$dynamic_vars['a']['b']]; > php { } > def > > As you can see I am on 5.2.10-2. > > -Anthony > ------------------------------------------------------------------------ > *From:* CED > *To:* NYPHP Talk > *Sent:* Fri, April 30, 2010 8:32:24 PM > *Subject:* Re: [nycphp-talk] PHP Dynamic GET Variables , Do they exist? > > Chris Snyder wrote: > > On Fri, Apr 30, 2010 at 7:24 PM, CED > wrote: > > > >> >> //GIVEN a page that is called with: > >> // $_GET['abc'] = 'def'; > >> //CODED with: > >> $dynamic_vars['a']['b'] = 'abc'; > >> > >> // NO WORKY > >> echo $_GET[ $dynamic_vars['a']['b'] ] ; > >> > >> // NO WORKY > >> > >> if(isset($_GET[ $dynamic_vars['a']['b'] ])){ > >> echo $_GET[ $dynamic_vars['a']['b'] ] ; > >> } > >> ?> > >> > >> What am I doing wrong? > >> (this is obviously for demonstration purposes only, the actually > variables > >> have need for being stored in the manner that they are) > >> > >> -Ed > >> > > > > Sample code works for me, php 5.3.2. > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > That has got to be it then... 5.2.3 on this box... checking the > changelog now; Thank you Mr. Snyder. :D > > -- > > 995 Maple Hill Road > Castleton, New York 12033 > 518-331-5061 > Consult at CovenanteDesign.com > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation I couldn't find anything in the changelog... so that would make sense. Could you pass the variable in from the url, instead of assigning it like an array...and let me know... -- 995 Maple Hill Road Castleton, New York 12033 518-331-5061 Consult at CovenanteDesign.com -------------- next part -------------- An HTML attachment was scrubbed... URL: