From ioplex at gmail.com Sat Nov 1 12:12:40 2008 From: ioplex at gmail.com (Michael B Allen) Date: Sat, 1 Nov 2008 12:12:40 -0400 Subject: [nycphp-talk] require_once paranoia? Message-ID: <78c6bd860811010912x32cf3979o1de43e5bd2cbb9fe@mail.gmail.com> I've seen numerous references that calling require_once is slow. Zend Framework is very strict about not calling require_once unless absolutely necessary (e.g. for exceptions). In item 3 in this blog post: http://till.vox.com/library/post/zendframework-performance.html the author claims switching to __autoload chopped 220 ms off request times. Why is this so? If you do not call require_once until you actually need the class, I fail to see why __autoload would make any difference as you still need to read the file from disk and interpret it either way. Mike -- Michael B Allen PHP Active Directory SPNEGO SSO http://www.ioplex.com/ From danielc at analysisandsolutions.com Sat Nov 1 13:25:27 2008 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 1 Nov 2008 13:25:27 -0400 Subject: [nycphp-talk] require_once paranoia? In-Reply-To: <78c6bd860811010912x32cf3979o1de43e5bd2cbb9fe@mail.gmail.com> References: <78c6bd860811010912x32cf3979o1de43e5bd2cbb9fe@mail.gmail.com> Message-ID: <20081101172527.GA17581@panix.com> Hey Michael: On Sat, Nov 01, 2008 at 12:12:40PM -0400, Michael B Allen wrote: > > Why is this so? If you do not call require_once until you actually > need the class, I fail to see why __autoload would make any difference > as you still need to read the file from disk and interpret it either > way. Depends on how efficiently you lay out your application's files. You're right if you do a good job and/or the application is small. But when you have a large application that has multiple files that require the same files, PHP will need to to determine the full path to each file over and over and over. This is where autoload is helpful, because if your class/file has already been loaded, PHP doesn't need to check for it again. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From lists at zaunere.com Sun Nov 2 15:51:16 2008 From: lists at zaunere.com (Hans Zaunere) Date: Sun, 2 Nov 2008 15:51:16 -0500 Subject: [nycphp-talk] Converting the pesky MS Word quotes and other characters In-Reply-To: <20081030035526.GA9945@panix.com> References: <517F62E1-920D-4985-BACB-59A19092998C@gmail.com> <20081030035526.GA9945@panix.com> Message-ID: <02f201c93d2c$bfbd9d60$3f38d820$@com> Dan C, > function filter_fancy_characters_polaris($in) { ... > // The order of these is very important. > '/\xC2\xBC/', > '/\xBC/', > '/\xC2\xBD/', > '/\xBD/', > '/\xC2\xBE/', > '/\xBE/', ... > $replace = array( ... > '1/4', > '1/4', > '1/2', > '1/2', > '3/4', > '3/4', I notice you have that the order of these is important. I believe I've run into these types of chars, and had great fun trying to remove them. If you remove only one byte, the subsequent bytes apparently change. I'm assuming these are the same types of chars - do you have any references with technical description and more info about these multi-bytes? H From shiflett at php.net Sun Nov 2 22:49:50 2008 From: shiflett at php.net (Chris Shiflett) Date: Sun, 2 Nov 2008 22:49:50 -0500 Subject: [nycphp-talk] Converting the pesky MS Word quotes and other characters In-Reply-To: <517F62E1-920D-4985-BACB-59A19092998C@gmail.com> References: <517F62E1-920D-4985-BACB-59A19092998C@gmail.com> Message-ID: On Oct 29, 2008, at 3:30 PM, Joseph Crawford wrote: > Has anyone on here found a viable solution? Everything seems to work > on the www side of things but as soon as i use the data in an RSS > feed it does not seem to like the MS Word characters. This might be helpful, particularly the comments: http://shiflett.org/blog/2005/oct/convert-smart-quotes-with-php I have had the whole RSS problem explained to me before by an accessibility guru, and as I recall, it has something to do with namespaces. The solution is to use numerical entities rather than named entities, because stuff like &hearts will make your feed invalid. This sounds like what you're encountering. (I need to update my post with this information, so I don't forget it again.) Hope that helps. Chris -- Chris Shiflett http://shiflett.org/ From lists at zaunere.com Mon Nov 3 12:58:00 2008 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 3 Nov 2008 12:58:00 -0500 Subject: [nycphp-talk] OT - announce list Message-ID: <009301c93ddd$b5f09740$21d1c5c0$@com> Hello all, just a quick question: has anyone seen the announce list posting from this morning? I think there may be something wrong (again) with mailman. Thanks, H From lists at zaunere.com Mon Nov 3 13:06:49 2008 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 3 Nov 2008 13:06:49 -0500 Subject: [nycphp-talk] OT - announce list In-Reply-To: <009301c93ddd$b5f09740$21d1c5c0$@com> References: <009301c93ddd$b5f09740$21d1c5c0$@com> Message-ID: <009401c93dde$f12026e0$d36074a0$@com> > Hello all, just a quick question: has anyone seen the announce list > posting from this morning? I think there may be something wrong (again) with > mailman. Apparently there were some problems, but there should be messages coming through now. H From kenrbnsn at rbnsn.com Mon Nov 3 13:08:34 2008 From: kenrbnsn at rbnsn.com (Ken Robinson) Date: Mon, 03 Nov 2008 13:08:34 -0500 Subject: [nycphp-talk] OT - announce list In-Reply-To: <009301c93ddd$b5f09740$21d1c5c0$@com> References: <009301c93ddd$b5f09740$21d1c5c0$@com> Message-ID: At 12:58 PM 11/3/2008, Hans Zaunere wrote: >Hello all, just a quick question: has anyone seen the announce list posting >from this morning? I think there may be something wrong (again) with >mailman. Yes, I saw the announcement at 12:35 PM. Ken From lists at zaunere.com Mon Nov 3 13:34:45 2008 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 3 Nov 2008 13:34:45 -0500 Subject: [nycphp-talk] OT - announce list References: <009301c93ddd$b5f09740$21d1c5c0$@com> Message-ID: <009e01c93de2$d84036c0$88c0a440$@com> > >Hello all, just a quick question: has anyone seen the announce list > >posting from this morning? I think there may be something wrong (again) with > >mailman. > > Yes, I saw the announcement at 12:35 PM. Strange - it appears things are back to normal after a restart but I'll keep an eye on it. H From lists at zaunere.com Wed Nov 5 08:30:59 2008 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 5 Nov 2008 08:30:59 -0500 Subject: [nycphp-talk] NetBeans/PHP Message-ID: <00c401c93f4a$bd682a60$38387f20$@com> Hello all, Out of curiosity, has anyone used NetBeans/PHP as their environment? Some info: http://blogs.sun.com/netbeansphp/ --- Hans Zaunere / Managing Member / New York PHP www.nyphp.org / ?www.nyphp.com From krozinov at gmail.com Wed Nov 5 16:58:10 2008 From: krozinov at gmail.com (Konstantin Rozinov) Date: Wed, 5 Nov 2008 16:58:10 -0500 Subject: [nycphp-talk] NetBeans/PHP In-Reply-To: <00c401c93f4a$bd682a60$38387f20$@com> References: <00c401c93f4a$bd682a60$38387f20$@com> Message-ID: <865a7acf0811051358o53b6afcap9eaebee116293c74@mail.gmail.com> can anyone recommend a good (free would be a big plus but not necessary) IDE for PHP? Is Zend Studio the most popular one out there? Kon On Wed, Nov 5, 2008 at 8:30 AM, Hans Zaunere wrote: > Hello all, > > Out of curiosity, has anyone used NetBeans/PHP as their environment? > > Some info: > > http://blogs.sun.com/netbeansphp/ > > --- > Hans Zaunere / Managing Member / New York PHP > www.nyphp.org / www.nyphp.com > > > > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From Ricky at nylontechnology.com Wed Nov 5 16:59:50 2008 From: Ricky at nylontechnology.com (Ricky Robinett) Date: Wed, 5 Nov 2008 16:59:50 -0500 Subject: [nycphp-talk] NetBeans/PHP In-Reply-To: <865a7acf0811051358o53b6afcap9eaebee116293c74@mail.gmail.com> References: <00c401c93f4a$bd682a60$38387f20$@com> <865a7acf0811051358o53b6afcap9eaebee116293c74@mail.gmail.com> Message-ID: <86F397D96FD09B4792600C76E082F5B692A123@RODIMUS.nylontechnology.local> I'd highly recommend Eclipse PDT: http://www.eclipse.org/pdt/ ..................................... Ricky Robinett Developer Zend Certified Engineer, PHP5 Adobe Certified Expert, ColdFusion 8 Nylon Technology 350 7th Avenue, 10th Floor New York, NY 10001 ? 212.691.1134 x25?direct 212.691.3477 fax ricky at nylontechnology.com www.nylontechnology.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Konstantin Rozinov Sent: Wednesday, November 05, 2008 4:58 PM To: NYPHP Talk Subject: Re: [nycphp-talk] NetBeans/PHP can anyone recommend a good (free would be a big plus but not necessary) IDE for PHP? Is Zend Studio the most popular one out there? Kon On Wed, Nov 5, 2008 at 8:30 AM, Hans Zaunere wrote: > Hello all, > > Out of curiosity, has anyone used NetBeans/PHP as their environment? > > Some info: > > http://blogs.sun.com/netbeansphp/ > > --- > Hans Zaunere / Managing Member / New York PHP > www.nyphp.org / www.nyphp.com > > > > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From chsnyder at gmail.com Wed Nov 5 17:23:33 2008 From: chsnyder at gmail.com (csnyder) Date: Wed, 5 Nov 2008 17:23:33 -0500 Subject: [nycphp-talk] NetBeans/PHP In-Reply-To: <86F397D96FD09B4792600C76E082F5B692A123@RODIMUS.nylontechnology.local> References: <00c401c93f4a$bd682a60$38387f20$@com> <865a7acf0811051358o53b6afcap9eaebee116293c74@mail.gmail.com> <86F397D96FD09B4792600C76E082F5B692A123@RODIMUS.nylontechnology.local> Message-ID: On Wed, Nov 5, 2008 at 4:59 PM, Ricky Robinett wrote: > I'd highly recommend Eclipse PDT: > http://www.eclipse.org/pdt/ > Funny, I just got done commenting on this review of its more expensive cousin: http://www.dotvoid.com/2008/10/two-weeks-with-zend-studio-for-eclipse/ Every time I start to use Eclipse I'm struck with the thought that you couldn't make a more user-hostile environment if you tried. But of course, it's all just what you're used to. If you can use emacs and like it, you can use anything. Zend Studio 5.5 (non-free) remains my favorite, but I was impressed with the stuff Kevin Hoyt was demoing in Eclipse last night. From lists at zaunere.com Wed Nov 5 17:52:35 2008 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 5 Nov 2008 17:52:35 -0500 Subject: [nycphp-talk] NetBeans/PHP In-Reply-To: <865a7acf0811051358o53b6afcap9eaebee116293c74@mail.gmail.com> References: <00c401c93f4a$bd682a60$38387f20$@com> <865a7acf0811051358o53b6afcap9eaebee116293c74@mail.gmail.com> Message-ID: <004601c93f99$31cdb200$95691600$@com> > can anyone recommend a good (free would be a big plus but not > necessary) IDE for PHP? http://www.eclipse.org/ free http://www.phpeclipse.de/ free Eclipse + PHP Eclipse priceless I have some directions too for setting stuff up, if interested. H From zippy1981 at gmail.com Wed Nov 5 18:20:23 2008 From: zippy1981 at gmail.com (Justin Dearing) Date: Wed, 5 Nov 2008 18:20:23 -0500 Subject: [nycphp-talk] NetBeans/PHP In-Reply-To: <004601c93f99$31cdb200$95691600$@com> References: <00c401c93f4a$bd682a60$38387f20$@com> <865a7acf0811051358o53b6afcap9eaebee116293c74@mail.gmail.com> <004601c93f99$31cdb200$95691600$@com> Message-ID: <5458db3c0811051520q928c55w13d5e00571bd5df0@mail.gmail.com> Does anyone know a sirte that makes Eclipse PDT MSIs, RPMs, DEBs, .APPs (for OSX)? I like eclipse, and I hate the whole "just download a zip file and set it up yourself" feel about it. Visual Studio 2005 is just as configurable and extendable (albeit probably with less of a community and with redistribution issues) as Eclipse. However, it still has an installer and a bunch of sensible default settings that don't detract from that customizability. On Wed, Nov 5, 2008 at 5:52 PM, Hans Zaunere wrote: >> can anyone recommend a good (free would be a big plus but not >> necessary) IDE for PHP? > > http://www.eclipse.org/ > free > > http://www.phpeclipse.de/ > free > > Eclipse + PHP Eclipse > priceless > > I have some directions too for setting stuff up, if interested. > > H > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From zippy1981 at gmail.com Wed Nov 5 18:20:59 2008 From: zippy1981 at gmail.com (Justin Dearing) Date: Wed, 5 Nov 2008 18:20:59 -0500 Subject: [nycphp-talk] NetBeans/PHP In-Reply-To: <004601c93f99$31cdb200$95691600$@com> References: <00c401c93f4a$bd682a60$38387f20$@com> <865a7acf0811051358o53b6afcap9eaebee116293c74@mail.gmail.com> <004601c93f99$31cdb200$95691600$@com> Message-ID: <5458db3c0811051520h20ee6a2k4edc4bd697dfc843@mail.gmail.com> I'd be interested. I'm pretty new to eclipse and some step by step howtos might help me learn a few things about it I have not already used. On Wed, Nov 5, 2008 at 5:52 PM, Hans Zaunere wrote: >> can anyone recommend a good (free would be a big plus but not >> necessary) IDE for PHP? > > http://www.eclipse.org/ > free > > http://www.phpeclipse.de/ > free > > Eclipse + PHP Eclipse > priceless > > I have some directions too for setting stuff up, if interested. > > H > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From matteo.rinaudo at gmail.com Wed Nov 5 18:46:23 2008 From: matteo.rinaudo at gmail.com (Matteo Rinaudo) Date: Wed, 5 Nov 2008 18:46:23 -0500 Subject: [nycphp-talk] NetBeans/PHP In-Reply-To: <004601c93f99$31cdb200$95691600$@com> References: <00c401c93f4a$bd682a60$38387f20$@com> <865a7acf0811051358o53b6afcap9eaebee116293c74@mail.gmail.com> <004601c93f99$31cdb200$95691600$@com> Message-ID: Eclipse + php plugin for Eclipse. Definitely. Matteo On 11/5/08, Hans Zaunere wrote: >> can anyone recommend a good (free would be a big plus but not >> necessary) IDE for PHP? > > http://www.eclipse.org/ > free > > http://www.phpeclipse.de/ > free > > Eclipse + PHP Eclipse > priceless > > I have some directions too for setting stuff up, if interested. > > H > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Sent from my mobile device Matteo Rinaudo -- "God does not play dice with the universe" (Albert Einstein) From ioplex at gmail.com Wed Nov 5 20:29:40 2008 From: ioplex at gmail.com (Michael B Allen) Date: Wed, 5 Nov 2008 20:29:40 -0500 Subject: [nycphp-talk] NetBeans/PHP In-Reply-To: <865a7acf0811051358o53b6afcap9eaebee116293c74@mail.gmail.com> References: <00c401c93f4a$bd682a60$38387f20$@com> <865a7acf0811051358o53b6afcap9eaebee116293c74@mail.gmail.com> Message-ID: <78c6bd860811051729q7abd4b78v16f5eaa7f0e73325@mail.gmail.com> On Wed, Nov 5, 2008 at 4:58 PM, Konstantin Rozinov wrote: > can anyone recommend a good (free would be a big plus but not > necessary) IDE for PHP? > Is Zend Studio the most popular one out there? Vim. No doubt a lot of people will think I'm kidding but seriously, nothing is faster than Vim once you get used to the mnemonics because it doesn't use the mouse pointer. I run 12 xterms w/ Vim on 6 different desktops. Note that even though Vim users are in the minority these days, a lot of serious programmers use it. As a matter of fact, if you're going to mention Zend Studio, I can tell you that a number of Zend people use Vim. My only gripe with Vim is that the maintainers have a tendency to "improve" it once in a while which means you have to spend a lot of time disabling things. For example, vim's syntax highlighting is so obnoxious I would not be surprised if it caused epileptic seizures in otherwise normal individuals. I just turn it off because I don't want my code to look like ransom note. Also, for some reason vim can try to be helpful and insert text for you like indentation space and comment fragments. My config consists almost entirely of commands to disable "features". Mike -- Michael B Allen PHP Active Directory SPNEGO SSO http://www.ioplex.com/ From wenhuang at gmail.com Thu Nov 6 12:20:18 2008 From: wenhuang at gmail.com (Wen Huang) Date: Thu, 6 Nov 2008 09:20:18 -0800 Subject: [nycphp-talk] Re: talk Digest, Vol 25, Issue 6 In-Reply-To: <491322e1.0309d00a.58ae.ffffb100SMTPIN_ADDED@mx.google.com> References: <491322e1.0309d00a.58ae.ffffb100SMTPIN_ADDED@mx.google.com> Message-ID: <2a3777fe0811060920j7e1b4ee4h7524cc5e0f22e73e@mail.gmail.com> If you're in the market for an IDE, you should evaluate NetBeans for PHP, here's the quick pitch: - open source (free) - tiny download (30mb) - PHP editor with integrated support for HTML/CSS/JavaScript (code completion, hints, templates, etc...) - Database Explorer/SQL Editor (with a focus on MySQL) - Debugging via Xdebug - JavaScript debugging for Firefox and IE(Win) - Version Control support Oh, and it's fast. Also, check out the comments from folks that have tried it at ZendCon and IPC: http://blogs.sun.com/netbeansphp/entry/international_php_conference_2008#comments And, a nice quick intro to some of the NetBeans features: http://www.netbeans.org/kb/docs/php/wordpress-screencast.html - w On Thu, Nov 6, 2008 at 9:01 AM, 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: NetBeans/PHP (Konstantin Rozinov) > 2. RE: NetBeans/PHP (Ricky Robinett) > 3. Re: NetBeans/PHP (csnyder) > 4. RE: NetBeans/PHP (Hans Zaunere) > 5. Re: NetBeans/PHP (Justin Dearing) > 6. Re: NetBeans/PHP (Justin Dearing) > 7. Re: NetBeans/PHP (Matteo Rinaudo) > 8. Re: NetBeans/PHP (Michael B Allen) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 5 Nov 2008 16:58:10 -0500 > From: "Konstantin Rozinov" > Subject: Re: [nycphp-talk] NetBeans/PHP > To: "NYPHP Talk" > Message-ID: > <865a7acf0811051358o53b6afcap9eaebee116293c74 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > can anyone recommend a good (free would be a big plus but not > necessary) IDE for PHP? > Is Zend Studio the most popular one out there? > > Kon > > > > On Wed, Nov 5, 2008 at 8:30 AM, Hans Zaunere wrote: > > Hello all, > > > > Out of curiosity, has anyone used NetBeans/PHP as their environment? > > > > Some info: > > > > http://blogs.sun.com/netbeansphp/ > > > > --- > > Hans Zaunere / Managing Member / New York PHP > > www.nyphp.org / www.nyphp.com > > > > > > > > > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > > ------------------------------ > > Message: 2 > Date: Wed, 5 Nov 2008 16:59:50 -0500 > From: "Ricky Robinett" > Subject: RE: [nycphp-talk] NetBeans/PHP > To: "NYPHP Talk" > Message-ID: > > <86F397D96FD09B4792600C76E082F5B692A123 at RODIMUS.nylontechnology.local> > Content-Type: text/plain; charset="iso-8859-1" > > I'd highly recommend Eclipse PDT: > http://www.eclipse.org/pdt/ > > > ..................................... > Ricky Robinett > Developer > Zend Certified Engineer, PHP5 > Adobe Certified Expert, ColdFusion 8 > > Nylon Technology > 350 7th Avenue, 10th Floor > New York, NY 10001 > > 212.691.1134 x25 direct > 212.691.3477 fax > ricky at nylontechnology.com > www.nylontechnology.com > > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Konstantin Rozinov > Sent: Wednesday, November 05, 2008 4:58 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] NetBeans/PHP > > can anyone recommend a good (free would be a big plus but not > necessary) IDE for PHP? > Is Zend Studio the most popular one out there? > > Kon > > > > On Wed, Nov 5, 2008 at 8:30 AM, Hans Zaunere wrote: > > Hello all, > > > > Out of curiosity, has anyone used NetBeans/PHP as their environment? > > > > Some info: > > > > http://blogs.sun.com/netbeansphp/ > > > > --- > > Hans Zaunere / Managing Member / New York PHP > > www.nyphp.org / www.nyphp.com > > > > > > > > > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > ------------------------------ > > Message: 3 > Date: Wed, 5 Nov 2008 17:23:33 -0500 > From: csnyder > Subject: Re: [nycphp-talk] NetBeans/PHP > To: "NYPHP Talk" > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > On Wed, Nov 5, 2008 at 4:59 PM, Ricky Robinett > wrote: > > I'd highly recommend Eclipse PDT: > > http://www.eclipse.org/pdt/ > > > > Funny, I just got done commenting on this review of its more expensive > cousin: > http://www.dotvoid.com/2008/10/two-weeks-with-zend-studio-for-eclipse/ > > Every time I start to use Eclipse I'm struck with the thought that you > couldn't make a more user-hostile environment if you tried. But of > course, it's all just what you're used to. If you can use emacs and > like it, you can use anything. > > Zend Studio 5.5 (non-free) remains my favorite, but I was impressed > with the stuff Kevin Hoyt was demoing in Eclipse last night. > > > ------------------------------ > > Message: 4 > Date: Wed, 5 Nov 2008 17:52:35 -0500 > From: "Hans Zaunere" > Subject: RE: [nycphp-talk] NetBeans/PHP > To: "'NYPHP Talk'" > Message-ID: <004601c93f99$31cdb200$95691600$@com> > Content-Type: text/plain; charset="us-ascii" > > > can anyone recommend a good (free would be a big plus but not > > necessary) IDE for PHP? > > http://www.eclipse.org/ > free > > http://www.phpeclipse.de/ > free > > Eclipse + PHP Eclipse > priceless > > I have some directions too for setting stuff up, if interested. > > H > > > > > > ------------------------------ > > Message: 5 > Date: Wed, 5 Nov 2008 18:20:23 -0500 > From: "Justin Dearing" > Subject: Re: [nycphp-talk] NetBeans/PHP > To: "NYPHP Talk" > Message-ID: > <5458db3c0811051520q928c55w13d5e00571bd5df0 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Does anyone know a sirte that makes Eclipse PDT MSIs, RPMs, DEBs, > .APPs (for OSX)? I like eclipse, and I hate the whole "just download a > zip file and set it up yourself" feel about it. > > Visual Studio 2005 is just as configurable and extendable (albeit > probably with less of a community and with redistribution issues) as > Eclipse. However, it still has an installer and a bunch of sensible > default settings that don't detract from that customizability. > > On Wed, Nov 5, 2008 at 5:52 PM, Hans Zaunere wrote: > >> can anyone recommend a good (free would be a big plus but not > >> necessary) IDE for PHP? > > > > http://www.eclipse.org/ > > free > > > > http://www.phpeclipse.de/ > > free > > > > Eclipse + PHP Eclipse > > priceless > > > > I have some directions too for setting stuff up, if interested. > > > > H > > > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > > ------------------------------ > > Message: 6 > Date: Wed, 5 Nov 2008 18:20:59 -0500 > From: "Justin Dearing" > Subject: Re: [nycphp-talk] NetBeans/PHP > To: "NYPHP Talk" > Message-ID: > <5458db3c0811051520h20ee6a2k4edc4bd697dfc843 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > I'd be interested. I'm pretty new to eclipse and some step by step > howtos might help me learn a few things about it I have not already > used. > > On Wed, Nov 5, 2008 at 5:52 PM, Hans Zaunere wrote: > >> can anyone recommend a good (free would be a big plus but not > >> necessary) IDE for PHP? > > > > http://www.eclipse.org/ > > free > > > > http://www.phpeclipse.de/ > > free > > > > Eclipse + PHP Eclipse > > priceless > > > > I have some directions too for setting stuff up, if interested. > > > > H > > > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > > ------------------------------ > > Message: 7 > Date: Wed, 5 Nov 2008 18:46:23 -0500 > From: "Matteo Rinaudo" > Subject: Re: [nycphp-talk] NetBeans/PHP > To: "NYPHP Talk" > Message-ID: > > Content-Type: text/plain; charset=UTF-8 > > Eclipse + php plugin for Eclipse. Definitely. > Matteo > > On 11/5/08, Hans Zaunere wrote: > >> can anyone recommend a good (free would be a big plus but not > >> necessary) IDE for PHP? > > > > http://www.eclipse.org/ > > free > > > > http://www.phpeclipse.de/ > > free > > > > Eclipse + PHP Eclipse > > priceless > > > > I have some directions too for setting stuff up, if interested. > > > > H > > > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > -- > Sent from my mobile device > > Matteo Rinaudo > -- > "God does not play dice with the universe" (Albert Einstein) > > > ------------------------------ > > Message: 8 > Date: Wed, 5 Nov 2008 20:29:40 -0500 > From: "Michael B Allen" > Subject: Re: [nycphp-talk] NetBeans/PHP > To: "NYPHP Talk" > Message-ID: > <78c6bd860811051729q7abd4b78v16f5eaa7f0e73325 at mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > On Wed, Nov 5, 2008 at 4:58 PM, Konstantin Rozinov > wrote: > > can anyone recommend a good (free would be a big plus but not > > necessary) IDE for PHP? > > Is Zend Studio the most popular one out there? > > Vim. > > No doubt a lot of people will think I'm kidding but seriously, nothing > is faster than Vim once you get used to the mnemonics because it > doesn't use the mouse pointer. I run 12 xterms w/ Vim on 6 different > desktops. > > Note that even though Vim users are in the minority these days, a lot > of serious programmers use it. As a matter of fact, if you're going to > mention Zend Studio, I can tell you that a number of Zend people use > Vim. > > My only gripe with Vim is that the maintainers have a tendency to > "improve" it once in a while which means you have to spend a lot of > time disabling things. For example, vim's syntax highlighting is so > obnoxious I would not be surprised if it caused epileptic seizures in > otherwise normal individuals. I just turn it off because I don't want > my code to look like ransom note. Also, for some reason vim can try to > be helpful and insert text for you like indentation space and comment > fragments. My config consists almost entirely of commands to disable > "features". > > Mike > > -- > Michael B Allen > PHP Active Directory SPNEGO SSO > http://www.ioplex.com/ > > > ------------------------------ > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > End of talk Digest, Vol 25, Issue 6 > *********************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Thu Nov 6 12:37:59 2008 From: chsnyder at gmail.com (csnyder) Date: Thu, 6 Nov 2008 12:37:59 -0500 Subject: [nycphp-talk] NetBeans/PHP Message-ID: On Thu, Nov 6, 2008 at 12:20 PM, Wen Huang wrote: > If you're in the market for an IDE, you should evaluate NetBeans for PHP, > here's the quick pitch: > - open source (free) > - tiny download (30mb) > - PHP editor with integrated support for HTML/CSS/JavaScript (code > completion, hints, templates, etc...) > - Database Explorer/SQL Editor (with a focus on MySQL) > - Debugging via Xdebug > - JavaScript debugging for Firefox and IE(Win) > - Version Control support > > Oh, and it's fast. > I downloaded NetBeans/PHP on a netbook and I have to agree with the fast part. Very impressive. I would probably consider switching except that it doesn't seem to be particularly code-intelligent yet. Not surprising given how new it is, but it doesn't immediately catalog the php objects and functions it finds in your files the way that Zend Studio does. Perhaps I'm missing a way to tell the ide about classes and function libraries you (re)use in your code? This may all be documented somewhere, I just tried it for the first time last night... Chris Snyder http://chxor.chxo.com/ From anangtt at hotmail.com Fri Nov 7 10:17:58 2008 From: anangtt at hotmail.com (Anan Tawia) Date: Fri, 7 Nov 2008 10:17:58 -0500 Subject: [nycphp-talk] dynamic drop down menu issues Message-ID: I am trying to build a real estate page where users could select a location and then all listings associated with that listing will be displayed. For some reason the drop down menu is working. Any help will be appreciated and please find the code below;
'; // Retrieve the URLs for a particular category, if selected. // Make sure the type is an integer. if (isset($_GET['type'])) { $type = (int) $_GET['type']; } else { $type = 0; } if ($type > 0) { // Get the current type name. $query = "SELECT * FROM apartments WHERE location=$type"; $result = mysql_query ($query); list ($location) = mysql_fetch_array ($result, MYSQL_NUM); $tmp_num_cols = $_GET['num_cols']; echo '
'; // START OUR GRID CODE $num_columns = 3; // SET THE NUMBER OF COLUMNS TO DISPLAY TO 3 $column_counter = 1; // COUNTS OUR CURRENT COLUMN // Display all the prints, linked to URLs. $result = mysqli_query ($dbc, $query); // GET ALL THE apartmentS FROM THE DB while ($apartment = mysqli_fetch_array ($result, MYSQL_ASSOC)) { // Display each record. echo ''; if ($column_counter == $num_columns) { // IF WE'VE REACHED THE END OF OUR ROW echo '
"; echo '
'; if ($image = getimagesize ("../uploads/{$apartment['image_name']}")) { echo "\"{$apartment['apartment_name']}\"/
"; } echo "{$apartment['apartment_name'] }
\${$apartment['price']}

'; $column_counter = 0; } $column_counter++; } } // End of while loop. echo '
'; // Close the table. include ('./includes/footer.html'); ?> -------------- next part -------------- An HTML attachment was scrubbed... URL: From tedd at sperling.com Fri Nov 7 11:11:09 2008 From: tedd at sperling.com (tedd) Date: Fri, 7 Nov 2008 11:11:09 -0500 Subject: [nycphp-talk] dynamic drop down menu issues In-Reply-To: References: Message-ID: At 10:17 AM -0500 11/7/08, Anan Tawia wrote: >I am trying to build a real estate page where users could select a >location and then all listings associated with that listing will be >displayed. For some reason the drop down menu is working. If the menu is working, then what do you want us to do -- make it NOT work? However, if the menu is not working, then maybe you should look to another way of doing this. After all, if your menu is supposed to react with the user, then using a client-side language might be better. I recommend going this route: http://sperling.com/examples/menuh/ Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Thu Nov 13 11:03:48 2008 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 13 Nov 2008 08:03:48 -0800 Subject: [nycphp-talk] OT - sound on HTML page Message-ID: Hi people, This is not an PHP question. It is a question about auto load sound on an html page. I am using the following inside an html page but it works on IE but it does not work in FF. FF in rhel5 wants me load a plugin and FF on W2K does nto do anything: <BGSOUND src="dontworry.mp3"> Any ideas? Thanks, Nestor :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: From rolan at omnistep.com Thu Nov 13 11:11:01 2008 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 13 Nov 2008 11:11:01 -0500 Subject: [nycphp-talk] OT - sound on HTML page In-Reply-To: References: Message-ID: <491C5195.9070900@omnistep.com> convert it to a .au or .voc file. N?stor wrote: > Hi people, > > This is not an PHP question. It is a question about auto load sound > on an html page. > > I am using the following inside an html page but it works on IE but it > does not work > in FF. FF in rhel5 wants me load a plugin and FF on W2K does nto do > anything: > > > <BGSOUND src="dontworry.mp3"> > > > Any ideas? > > Thanks, > > Nestor :-) > From zippy1981 at gmail.com Thu Nov 13 11:12:18 2008 From: zippy1981 at gmail.com (Justin Dearing) Date: Thu, 13 Nov 2008 11:12:18 -0500 Subject: [nycphp-talk] OT - sound on HTML page In-Reply-To: <491C5195.9070900@omnistep.com> References: <491C5195.9070900@omnistep.com> Message-ID: <5458db3c0811130812rbba3f18q39663ce4f326806e@mail.gmail.com> On Thu, Nov 13, 2008 at 11:11 AM, Rolan Yang wrote: > convert it to a .au or .voc file. I would embedded a hiden flash applet if I were you. Probably a smaller size than.au or .voc. I never heard of voc until I looked it up just now. If the file size is similar to MP3 go for it. From chsnyder at gmail.com Thu Nov 13 11:15:30 2008 From: chsnyder at gmail.com (csnyder) Date: Thu, 13 Nov 2008 11:15:30 -0500 Subject: [nycphp-talk] OT - sound on HTML page In-Reply-To: References: Message-ID: On Thu, Nov 13, 2008 at 11:03 AM, N?stor wrote: > Hi people, > > This is not an PHP question. It is a question about auto load sound on an > html page. > > I am using the following inside an html page but it works on IE but it does > not work > in FF. FF in rhel5 wants me load a plugin and FF on W2K does nto do > anything: > > width=0 /> > > <BGSOUND src="dontworry.mp3"> > > Any ideas? > > Thanks, > > Nestor :-) > > No no no, that's not complicated enough. Try using SoundManager2: http://www.schillmania.com/projects/soundmanager2/ Since it uses Flash to play audio, it will work in any browser. Plus you get javascript control over audio so you can put a big "mute" button on the page. Or you could wait for HTML5's