From matt at atopia.net Fri Jul 1 02:06:35 2005 From: matt at atopia.net (Matt Juszczak) Date: Fri, 1 Jul 2005 02:06:35 -0400 (EDT) Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <330532b605061217097f7ce18d@mail.gmail.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> Message-ID: <20050701020601.J76031@neptune.atopia.net> >>> NYC PHP programmers should make a minimum of $50/hr, and I get offers >>> up to $120. Wow.... I'm a PHP/FreeBSD/Linux guy and make $15/hour ...... but thats a stable job.... From agfische at email.smith.edu Fri Jul 1 02:34:03 2005 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 1 Jul 2005 02:34:03 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <20050701020601.J76031@neptune.atopia.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> Message-ID: It might be time to look in the classifieds. =) I'm not versed in what the market offers for FreeBSD or Linux, but $15 an hour for PHP programming (even with benefits and retirement) sounds extremely low. -Aaron On Jul 1, 2005, at 2:06 AM, Matt Juszczak wrote: >>>> NYC PHP programmers should make a minimum of $50/hr, and I get >>>> offers >>>> up to $120. > > Wow.... I'm a PHP/FreeBSD/Linux guy and make $15/hour ...... but thats > a stable job.... From codebowl at gmail.com Fri Jul 1 06:29:33 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 1 Jul 2005 06:29:33 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> Message-ID: <8d9a42800507010329612f9ca9@mail.gmail.com> now why would you go and tell him that... now i gotta find a new slave :) LOL -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From d126099 at atos.wmid.amu.edu.pl Fri Jul 1 06:47:08 2005 From: d126099 at atos.wmid.amu.edu.pl (Marcin Szkudlarek) Date: Fri, 1 Jul 2005 12:47:08 +0200 (CEST) Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <8d9a42800507010329612f9ca9@mail.gmail.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <8d9a42800507010329612f9ca9@mail.gmail.com> Message-ID: 15$/h is much, much more if you have to work for 4$/h .. Like you all I'm php programmer but unfortunately I don't work in US. So I'm a real slave here .. ;) M.S. On Fri, 1 Jul 2005, Joseph Crawford wrote: > now why would you go and tell him that... now i gotta find a new slave :) > LOL > > > From totalfunatwork at hotmail.com Fri Jul 1 07:18:32 2005 From: totalfunatwork at hotmail.com (Fun Works) Date: Fri, 01 Jul 2005 06:18:32 -0500 Subject: [nycphp-talk] when PHP outsourcing is not cheap any more Message-ID: Well the whole thread was started because the guy who posted it, was asking for $500 sitting in India. Anyway he was asking it not for himself, but for his team members. All of the need to get salary, as this guy runs a software company with all the accumulated $500 he makes from all the clients. But anyway see the marketing fundas. We must say GOOGLE is helping guys to become rich :) _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From reto at nerdbude.de Fri Jul 1 07:26:34 2005 From: reto at nerdbude.de (Reto M. Kiefer) Date: Fri, 01 Jul 2005 13:26:34 +0200 Subject: [nycphp-talk] Pitching PHP to a Java House In-Reply-To: <20050630190611.H68649@neptune.atopia.net> References: <20050609121048.79978.qmail@web30807.mail.mud.yahoo.com> <20050630190611.H68649@neptune.atopia.net> Message-ID: <42C5286A.4070709@nerdbude.de> Hi Matt, > As a side note, where I can get some more info on OOP in PHP5? :) Is > there a nice book or tutorial for people who already know PHP but not much > OOP? One outstanding book that is really dedicated to OOP / Design Patterns is: Matt Zandstra PHP 5 Objects, Patterns, and Practice Apress I do not know it if sufficient if you're completely new to OOP. Another recommended reading (but not that good) is: Ed Lecky-Thompson et.al Professional PHP 5 Wrox Hope this helps Bye Reto From jsiegel1 at optonline.net Fri Jul 1 07:48:09 2005 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Fri, 01 Jul 2005 07:48:09 -0400 Subject: [nycphp-talk] Code from Mars? In-Reply-To: Message-ID: <0IIY00GGA62X4K90@mta9.srv.hcvlny.cv.net> May be no need to write it. Just Google this: PHP Code obfuscator Jeff -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Mintz Sent: Thursday, June 30, 2005 9:16 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Code from Mars? On Thu, 30 Jun 2005, Joseph Crawford wrote: > and probably too poor to afford zend encoder ;) > So how many minutes do you suppose would it take to write a poor-man's-code-obfuscator-deobfuscator? --- David Mintz http://davidmintz.org/ _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From chsnyder at gmail.com Fri Jul 1 08:21:52 2005 From: chsnyder at gmail.com (csnyder) Date: Fri, 1 Jul 2005 08:21:52 -0400 Subject: [nycphp-talk] when PHP outsourcing is not cheap any more In-Reply-To: References: Message-ID: On 7/1/05, Fun Works wrote: > this guy runs a software company with all the accumulated $500 > he makes from all the clients. So he's where I was in 2002... From chsnyder at gmail.com Fri Jul 1 08:30:47 2005 From: chsnyder at gmail.com (csnyder) Date: Fri, 1 Jul 2005 08:30:47 -0400 Subject: [nycphp-talk] Geocoder and PHP In-Reply-To: <42A9E724.8050105@phpwerx.net> References: <20050610190139.B0D9BA86DE@virtu.nyphp.org> <42A9E724.8050105@phpwerx.net> Message-ID: On 6/10/05, Dan Cech wrote: > Apparently their web service is based on this cpan module. > > http://search.cpan.org/~sderle/Geo-Coder-US/ Oh, that's great! One module imports the free TIGER/Line census data which has lat/long for every address in the US (right?), and the other module does lookups on it. Skip the Perl frontend, it shouldn't take more than a couple hours to do this yourself in PHP. Then again, $50 for 20,000 lookups is a pretty good deal, and you jump directly to the fun part. -- Chris Snyder http://chxo.com/ From phil at bearingasset.com Fri Jul 1 09:10:34 2005 From: phil at bearingasset.com (Phil Duffy) Date: Fri, 1 Jul 2005 09:10:34 -0400 Subject: [nycphp-talk] Parse Error: Unexpected "; ", expected T_FUNCTION in Line 247 In-Reply-To: Message-ID: <20050701131039.1F654A877D@virtu.nyphp.org> Bill, The closing tag in this case is the same color as the opening tag, and is the same color used in all "healthy" PHP scripts. I still suspect that your possibility is the best suspect, and perhaps my next step is to get a Zend Developer editor. I appreciate your offer to review the code, but it is 247 lines long and the List Moderator is currently blocking the posting of that code on the list because of its length. Phil _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Kamm, William R (Bill), ALABS Sent: Wednesday, June 29, 2005 8:45 AM To: NYPHP Talk Subject: RE: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 Phil, I use Dreamweaver as well for php. For certain syntax errors that it catches, it displays the closing php tag (?>) in a lighter color to tell you something is missing or added. Maybe a missing or extra parenthesis or bracket, or a missing or extra semi colon. If the file is not too large, just paste it into an email, and I will take a look. Bill -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phil Duffy Sent: Wednesday, June 29, 2005 9:02 AM To: 'NYPHP Talk' Subject: RE: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 Brian, I did a Find Next on ";;" and found nothing, then a Find Next on ";" and likewise found nothing suspicious. I am using Macromedia's Dreamweaver editor, which offers PHP editing with syntax coloring, but it did not complain when I introduced the ";;" error. I sense that this editor was not designed for PHP but simply offers PHP editing as an add-on. I'll investigate Zend. Thanks for the tip. Phil _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Brian O'Connor Sent: Wednesday, June 29, 2005 12:00 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 The way I usually find it is through Zend, but I'm assuming you're not using Zend, or another editor with the red underlining on errors. My only suggestion would be to do a search for a ';;' (two semi-colors), or try out Zend :D Good luck. On 6/28/05, Phil Duffy wrote: My thanks to the following who responded to my call for help: Flavio - I tested your code and reproduced the same error message. Brian - The extra ";" is the prime suspect, but two visual reviews have not surfaced the problem. Jeff - I suspect you are right about the missing (or extra) ";" further up the code. That makes sense. Joseph - The suspects have been narrowed with the help of Flavio, Brian and Jeff, but the problem is still unresolved. What is the best way to send the code - attachment or paste into e-mail? Phil _____ From: talk-bounces at lists.nyphp.org [mailto: talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: Tuesday, June 28, 2005 2:11 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 show your code ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From phil at bearingasset.com Fri Jul 1 10:20:11 2005 From: phil at bearingasset.com (Phil Duffy) Date: Fri, 1 Jul 2005 10:20:11 -0400 Subject: [nycphp-talk] Question about frameworks In-Reply-To: Message-ID: <20050701142025.AC4DBA877D@virtu.nyphp.org> My motivation for trying Seagull was to create a Model-View-Controller (MVC) foundation for a system that I expected to grow substantially over time (I accept the counter-MVC argument that MVC is overkill for simple applications). The cause of my fanaticism was a bad experience with developing an otherwise advanced architecture for the client-server world that didn't migrate easily to the web because of inappropriate code segregation. In the new system, it will be the database that characterizes the next layer of the system, not content management. There are content management plans for the system, and these are based upon my experience with Documentum. However, data structure, and not CMS considerations will drive the system. Seagull comes with some very simple content management features, but all in separate Seagull modules that you are free to discard. I could not say that CMS constrains Seagull in any way. I have copied this to the Seagull list so that other Seagull developers can offer their impressions. Phil -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Eric K. Sent: Wednesday, June 29, 2005 3:53 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Question about frameworks I think the tie in is simply because, at the end of the day, when you are done designing coding and testing (the part that the framework is most useful for), most php applications will need to spit out html/images/etc (content) which warrants the need for an html/images/etc (content) management system of some kind... I'd say install/try out the framework and ignore as much of the CMS as you need to, to get your app done. The benefits of reusing the framework code and the inherent coding methods will be an improvement from coding the straight PHP way. On 6/29/05, Anthony Papillion wrote: > Hello Everyone, > > In light of today's discussions about frameworks I think now is a good time > for me to ask a question that's prevented me from using frameworks in the > past and doing everything the "straight PHP" way: > > It seems that all of the frameworks I've run across are somehow tied to > CMS's. In my mind, and perhaps wrongly, this limits their usefulness to > creating CMS software. What about people who are creating other type of > software? And does it also mean that one has to install a complete CMS just > to have acess to the API's? This seems like a lot of overkill to me. > > Perhaps, and probably, I am wrong. I am very eager to work with a framework > since they really seem to eliminate a lot of work. Can anyone tae a little > time to shed some light on these issues for me? > > Thanks! > > -- > Anthony M. Papillion > Quality Technical Services and Support > Phone: (918) 926-0139 > Email: papillion at gmail.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From leam at reuel.net Fri Jul 1 10:34:51 2005 From: leam at reuel.net (leam at reuel.net) Date: Fri, 1 Jul 2005 10:34:51 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <20050701020601.J76031@neptune.atopia.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> Message-ID: <20050701143451.GA2735@leitz.reuel.net> On Fri, Jul 01, 2005 at 02:06:35AM -0400, Matt Juszczak wrote: > >>>NYC PHP programmers should make a minimum of $50/hr, and I get offers > >>>up to $120. > > Wow.... I'm a PHP/FreeBSD/Linux guy and make $15/hour ...... but thats a > stable job.... Then let me give you some friendly advice, becuase a good PHP/Bsd/Linux guy is worth more than $15 hour. 1. Drop the "Free" in BSD. Per the SAGE salary guidelines, last time I read them, Using FreeBSD lowered the average salary, all other things being equal. I've got nothing against FreeBSD, but it seems to have a dampening effect on peoples wallets. 2. If you want to be more of a web-site programmer, add MySQL and some Apache. Make sure you read Chris' security stuff. E-commerce is growing in a *big* way and small businesses will pick you up to configure things. 3. Learn an e-commerce package like OSCommerce. Much of the hard work is done, and you can really speed up your delivery time. 4. Donate your time to a worthy cause. This will give you a portfolio to show your prospective paying clients, give you experience dealing with non-technical clients, and give you references in case someone should ask for them. :) 5. This one should have been first, but I always have a harder time expressing it. Find your vocation. A vocation is a calling--it is what you would do if money was no object and all the bills were paid. How would you spend your day? When you know your calling and are working in it your passion will be communicated to your clients. Just my thoughts. I believe you could work hard for the next year and probably double your rate. ciao! leam From phil at bearingasset.com Fri Jul 1 11:15:22 2005 From: phil at bearingasset.com (Phil Duffy) Date: Fri, 1 Jul 2005 11:15:22 -0400 Subject: [nycphp-talk] Question about frameworks In-Reply-To: <20050701142025.AC4DBA877D@virtu.nyphp.org> Message-ID: <20050701151526.AE08DA879E@virtu.nyphp.org> The lead developer of Seagull asked me to convey the following to the members of the NY PHP list: You may want to tell folks that within the next fews weeks the core of the Seagull framework will be factored out, available as a separate download, and currently included modules will be optional downloads. The framework will include a system to incorporate downloadable 3rd party modules in a point + click fashion similar to mambo, etc. From acas at sapo.pt Fri Jul 1 11:50:06 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Fri, 1 Jul 2005 16:50:06 +0100 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <20050701143451.GA2735@leitz.reuel.net> Message-ID: Lem... You are an inspiration... A role model... If only I lived in NY... (sigh) Cheers, -- Alberto dos Santos email: acas at sapo.pt skype: fatflash Este email e seus anexos est?o protegidos de v?rus e programas maliciosos. Se notar algo de anormal por favor informe-me. Obrigado. This email and it?s attachments are protected from virus and malicious software. If you notice something unusual please report. Thanks. Este email y sus anexos est?n protegidos contra virus y software mal?volo. Si usted nota algo inusual por favor divulgar. Gracias. Ces email et c'est des attachements sont prot?g?s contre le virus et le logiciel malveillant. Si vous notez quelque chose de peu commun svp pour rapporter. Merci. Questi email ? su collegamenti sono protetti dal virus e dal software cattivo. Se notate qualche cosa di insolito prego segnalare. Grazie. > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of leam at reuel.net > Sent: Friday, July 01, 2005 3:35 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] [OT] Consulting work > > On Fri, Jul 01, 2005 at 02:06:35AM -0400, Matt Juszczak wrote: > > >>>NYC PHP programmers should make a minimum of $50/hr, and > I get offers > > >>>up to $120. > > > > Wow.... I'm a PHP/FreeBSD/Linux guy and make $15/hour > ...... but thats a > > stable job.... > > Then let me give you some friendly advice, becuase a good > PHP/Bsd/Linux guy is worth more than $15 hour. > > 1. Drop the "Free" in BSD. Per the SAGE salary guidelines, > last time I read them, Using FreeBSD lowered the average > salary, all other things being equal. I've got nothing > against FreeBSD, but it seems to have a dampening effect on > peoples wallets. > > 2. If you want to be more of a web-site programmer, add MySQL > and some Apache. Make sure you read Chris' security stuff. > E-commerce is growing in a *big* way and small businesses > will pick you up to configure things. > > 3. Learn an e-commerce package like OSCommerce. Much of the > hard work is done, and you can really speed up your delivery time. > > 4. Donate your time to a worthy cause. This will give you a > portfolio to show your prospective paying clients, give you > experience dealing with non-technical clients, and give you > references in case someone should ask for them. :) > > 5. This one should have been first, but I always have a > harder time expressing it. Find your vocation. A vocation is > a calling--it is what you would do if money was no object and > all the bills were paid. How would you spend your day? When > you know your calling and are working in it your passion will > be communicated to your clients. > > > Just my thoughts. I believe you could work hard for the next > year and probably double your rate. > > ciao! > > leam > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From dwclifton at gmail.com Fri Jul 1 11:56:36 2005 From: dwclifton at gmail.com (Douglas Clifton) Date: Fri, 1 Jul 2005 11:56:36 -0400 Subject: [nycphp-talk] Re: [OT] Consulting work In-Reply-To: <20050701131045.18BB2A87C1@virtu.nyphp.org> References: <20050701131045.18BB2A87C1@virtu.nyphp.org> Message-ID: <7d6cdcb05070108567bcec93b@mail.gmail.com> I'm going to chime in here because this is a topic that I find upsetting. I recently had a guy offer me 20 CD/hour to work as contractor doing professional PHP programming work. After the exchange rate, paying my own taxes and other expenses, etc., that boiled down to doing professional programming work for minimum wage. Which is ludicrous. I'm no expert on these things, but I think there are two things going on here. Kids, with no experience or education, that are willing to work for peanuts or just for the "fun" of it, and the overseas contingent. How is an American supposed to compete with that and still have a decent quality of life? Especially in a major city like NY, or on the west coast where housing costs alone are to the moon. I keep telling people that approach me with projects, and are expecting to be able to get away with a rate similar to what I've just described, you get what you pay for. Because I don't know about the rest of this group, but I have not only seen the quality of the code and database designs from folks that are willing to work on the cheap, I've also had to throw a lot of it in the trash and start over. I have even considered registering domain names and selling myself on this very idea: we-clean-up-after-[insert slur here].com. If anyone reading this list is looking for an experienced, well rounded developer (PHP,MySQL,Apache,Perl,Linux or BSD Unix,X/HTML,CSS...), then contact me. If you want to pay me $15 an hour, then please DO NOT contact me. I am in the DC area, but am willing to relocate. NY would be awesome. Doug -- Douglas Clifton dwclifton at gmail.com http://loadaveragezero.com/ http://loadaveragezero.com/drx/rss/recent > From: Aaron Fischer > To: NYPHP Talk > Date: Fri, 1 Jul 2005 02:34:03 -0400 > Subject: Re: [nycphp-talk] [OT] Consulting work > It might be time to look in the classifieds. =) > > I'm not versed in what the market offers for FreeBSD or Linux, but $15 > an hour for PHP programming (even with benefits and retirement) sounds > extremely low. From rolan at omnistep.com Fri Jul 1 12:16:23 2005 From: rolan at omnistep.com (Rolan Yang) Date: Fri, 01 Jul 2005 12:16:23 -0400 Subject: [nycphp-talk] Re: [OT] Consulting work In-Reply-To: <7d6cdcb05070108567bcec93b@mail.gmail.com> References: <20050701131045.18BB2A87C1@virtu.nyphp.org> <7d6cdcb05070108567bcec93b@mail.gmail.com> Message-ID: <42C56C57.2010306@omnistep.com> The real money can be found in cleaning up the mess left behind by these $15/hr programmers when they discover they can't complete the job or finally realize that the money it isn't worth their time and bail out 1/2 way through the project (or are fired by the client when they discover things are not going as planned). It is still a rarity to find an experienced consultant who can do more than simply convert raw specifications to code. One that can effectively communicate with the client, foresee problems down the line, offer suggestions on how to avoid them, accurately spec out time and price for a job, and deliver quality work within the bounds of the estimate. If someone is offering you only $20/hr and you know you are worth much more, politely decline their offer and move on to find other work with a client that is more in touch with reality. In the end, it will work out better for you and your client. ~Rolan Douglas Clifton wrote: >I'm going to chime in here because this is a topic that I find >upsetting. > >I recently had a guy offer me 20 CD/hour to work as contractor >doing professional PHP programming work. After the exchange >rate, paying my own taxes and other expenses, etc., that boiled >down to doing professional programming work for minimum >wage. Which is ludicrous. > >I'm no expert on these things, but I think there are two things >going on here. Kids, with no experience or education, that are >willing to work for peanuts or just for the "fun" of it, and the >overseas contingent. How is an American supposed to >compete with that and still have a decent quality of life? >Especially in a major city like NY, or on the west coast where >housing costs alone are to the moon. > >I keep telling people that approach me with projects, and are >expecting to be able to get away with a rate similar to what >I've just described, you get what you pay for. Because I >don't know about the rest of this group, but I have not only >seen the quality of the code and database designs from >folks that are willing to work on the cheap, I've also had to >throw a lot of it in the trash and start over. I have even >considered registering domain names and selling myself >on this very idea: we-clean-up-after-[insert slur here].com. > >If anyone reading this list is looking for an experienced, >well rounded developer (PHP,MySQL,Apache,Perl,Linux >or BSD Unix,X/HTML,CSS...), then contact me. If you want >to pay me $15 an hour, then please DO NOT contact me. >I am in the DC area, but am willing to relocate. > >NY would be awesome. > >Doug > > From matt at atopia.net Fri Jul 1 12:19:27 2005 From: matt at atopia.net (Matt Juszczak) Date: Fri, 1 Jul 2005 12:19:27 -0400 (EDT) Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <20050701143451.GA2735@leitz.reuel.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <20050701143451.GA2735@leitz.reuel.net> Message-ID: <20050701121902.L94926@neptune.atopia.net> >>>>> NYC PHP programmers should make a minimum of $50/hr, and I get offers >>>>> up to $120. Funny ....... http://news.com.com/2061-10788_3-5770608.html?tag=ubind.bld From phil at bearingasset.com Fri Jul 1 12:33:21 2005 From: phil at bearingasset.com (Phil Duffy) Date: Fri, 1 Jul 2005 12:33:21 -0400 Subject: [nycphp-talk] Parse Error: Unexpected "; ", expected T_FUNCTION in Line 247 In-Reply-To: <20050701131039.1F654A877D@virtu.nyphp.org> Message-ID: <20050701163330.60FB1A877D@virtu.nyphp.org> My thanks to Bill Kamm who solved this one. The problematic code was as follows: if ($input->submit) { if (empty($input->info_item->item_no)) { $aErrors['item_no'] = 'Please fill in a item_no'; } if (empty($input->info_item->author)) { $aErrors['author'] = 'Please fill in an author number'; } if (empty($input->info_item->item_text)) { $aErrors['item_text'] = 'Please fill in an item_text'; } Bill's diagnosis was, "You are missing a closing bracket for the first if statement. Add one and you should be OK. How did I find this? I removed chunks of code a little at a time, waiting for the error message to change. I first got rid of all the comments, then started removing entire functions. When I got to validate(), the error went away, so I looked closer at that code and found it." The problem was actually that the third nested if condition wasn't terminated by a "}", but the PHP translator would not have made that distinction. Bill's determination was actually correct in that sense. It is interesting that the PHP translator thought the problem was an unexpected ";", but that was probably because it picked up a subsequent ";" before it picked up a "}". Case closed. Phil _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phil Duffy Sent: Friday, July 01, 2005 8:11 AM To: 'NYPHP Talk' Subject: RE: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 Bill, The closing tag in this case is the same color as the opening tag, and is the same color used in all "healthy" PHP scripts. I still suspect that your possibility is the best suspect, and perhaps my next step is to get a Zend Developer editor. I appreciate your offer to review the code, but it is 247 lines long and the List Moderator is currently blocking the posting of that code on the list because of its length. Phil _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Kamm, William R (Bill), ALABS Sent: Wednesday, June 29, 2005 8:45 AM To: NYPHP Talk Subject: RE: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 Phil, I use Dreamweaver as well for php. For certain syntax errors that it catches, it displays the closing php tag (?>) in a lighter color to tell you something is missing or added. Maybe a missing or extra parenthesis or bracket, or a missing or extra semi colon. If the file is not too large, just paste it into an email, and I will take a look. Bill -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phil Duffy Sent: Wednesday, June 29, 2005 9:02 AM To: 'NYPHP Talk' Subject: RE: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 Brian, I did a Find Next on ";;" and found nothing, then a Find Next on ";" and likewise found nothing suspicious. I am using Macromedia's Dreamweaver editor, which offers PHP editing with syntax coloring, but it did not complain when I introduced the ";;" error. I sense that this editor was not designed for PHP but simply offers PHP editing as an add-on. I'll investigate Zend. Thanks for the tip. Phil _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Brian O'Connor Sent: Wednesday, June 29, 2005 12:00 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 The way I usually find it is through Zend, but I'm assuming you're not using Zend, or another editor with the red underlining on errors. My only suggestion would be to do a search for a ';;' (two semi-colors), or try out Zend :D Good luck. On 6/28/05, Phil Duffy wrote: My thanks to the following who responded to my call for help: Flavio - I tested your code and reproduced the same error message. Brian - The extra ";" is the prime suspect, but two visual reviews have not surfaced the problem. Jeff - I suspect you are right about the missing (or extra) ";" further up the code. That makes sense. Joseph - The suspects have been narrowed with the help of Flavio, Brian and Jeff, but the problem is still unresolved. What is the best way to send the code - attachment or paste into e-mail? Phil _____ From: talk-bounces at lists.nyphp.org [mailto: talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: Tuesday, June 28, 2005 2:11 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 show your code ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at atopia.net Fri Jul 1 13:00:06 2005 From: matt at atopia.net (Matt Juszczak) Date: Fri, 1 Jul 2005 13:00:06 -0400 (EDT) Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> Message-ID: <20050701125958.F95727@neptune.atopia.net> On Fri, 1 Jul 2005, Aaron Fischer wrote: > It might be time to look in the classifieds. =) > > I'm not versed in what the market offers for FreeBSD or Linux, but $15 an > hour for PHP programming (even with benefits and retirement) sounds extremely > low. I'm in South Jersey though, not much work here. From matt at atopia.net Fri Jul 1 13:30:47 2005 From: matt at atopia.net (Matt Juszczak) Date: Fri, 1 Jul 2005 13:30:47 -0400 (EDT) Subject: [nycphp-talk] Geocoder and PHP In-Reply-To: References: <20050610190139.B0D9BA86DE@virtu.nyphp.org> <42A9E724.8050105@phpwerx.net> Message-ID: <20050701133033.A96329@neptune.atopia.net> > Then again, $50 for 20,000 lookups is a pretty good deal, and you jump > directly to the fun part. They are really nice people over there too. I'd support them more if I had the cash. From matt at atopia.net Fri Jul 1 13:33:11 2005 From: matt at atopia.net (Matt Juszczak) Date: Fri, 1 Jul 2005 13:33:11 -0400 (EDT) Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <20050701143451.GA2735@leitz.reuel.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <20050701143451.GA2735@leitz.reuel.net> Message-ID: <20050701133111.N96329@neptune.atopia.net> > 1. Drop the "Free" in BSD. Per the SAGE salary guidelines, last time I read them, Using FreeBSD lowered the average salary, all other things being equal. I've got nothing against FreeBSD, but it seems to have a dampening effect on peoples wallets. I usually advertise BSD/Linux administration/setup, Router Configuration, and custom LAMP (I like to call it BAMP, for appropriate reasons). > 2. If you want to be more of a web-site programmer, add MySQL and some Apache. Make sure you read Chris' security stuff. E-commerce is growing in a *big* way and small businesses will pick you up to configure things. Already fully SQL/Apache/MySQL/PostGRES knowledgeable... > 3. Learn an e-commerce package like OSCommerce. Much of the hard work is done, and you can really speed up your delivery time. This is where I'm weak.... > 4. Donate your time to a worthy cause. This will give you a portfolio to show your prospective paying clients, give you experience dealing with non-technical clients, and give you references in case someone should ask for them. :) Already do :) Manage 5 non-profit websites for large non profs in Belize. > 5. This one should have been first, but I always have a harder time expressing it. Find your vocation. A vocation is a calling--it is what you would do if money was no object and all the bills were paid. How would you spend your day? When you know your calling and are working in it your passion will be communicated to your clients. Flying Airplanes :) > Just my thoughts. I believe you could work hard for the next year and probably double your rate. > > ciao! Thanks :) From joel at tagword.com Fri Jul 1 14:59:10 2005 From: joel at tagword.com (Joel De Gan) Date: Fri, 01 Jul 2005 14:59:10 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <20050701121902.L94926@neptune.atopia.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <20050701143451.GA2735@leitz.reuel.net> <20050701121902.L94926@neptune.atopia.net> Message-ID: <1120244350.8441.370.camel@bezel> On Fri, 2005-07-01 at 12:19, Matt Juszczak wrote: > >>>>> NYC PHP programmers should make a minimum of $50/hr, and I get offers > >>>>> up to $120. > > Funny ....... what is seriously funny is that I work for a company in New Orleans and live in Manhattan... Originally planned to work for a company here, but they all want people to work for ~30k/year and if someone won't bother to actually fish for real developers then I won't waste my time showing them my resume.. Granted I am not out there checking the posting daily. Actually, went on some interviews here to talk with companies (where they were offering a little less than I currently make) just to see what the offices look like and the dress code was so I could have an idea if I really wanted to not be a telecommuter anymore or not.. Anyway, what sites are people using to find good pay work here in the city? I don't like to waste time with companies who start off on the "low ball estimate". To me, they are willing to screw you over from the start and it also, to me, means they don't know exactly what they want. From matt at atopia.net Fri Jul 1 13:36:57 2005 From: matt at atopia.net (Matt Juszczak) Date: Fri, 1 Jul 2005 13:36:57 -0400 (EDT) Subject: [nycphp-talk] Re: [OT] Consulting work In-Reply-To: <7d6cdcb05070108567bcec93b@mail.gmail.com> References: <20050701131045.18BB2A87C1@virtu.nyphp.org> <7d6cdcb05070108567bcec93b@mail.gmail.com> Message-ID: <20050701133540.K96329@neptune.atopia.net> > I keep telling people that approach me with projects, and are > expecting to be able to get away with a rate similar to what > I've just described, you get what you pay for. Because I > don't know about the rest of this group, but I have not only > seen the quality of the code and database designs from > folks that are willing to work on the cheap, I've also had to > throw a lot of it in the trash and start over. I have even > considered registering domain names and selling myself > on this very idea: we-clean-up-after-[insert slur here].com. Agreed. And I'm willing to put more time in if the job pays more than $15/hour. A high paying job will make me want to write good code, because I'm not thinking or stressing about how I'm going to pay my rent. In any case, if anyone wants to hire me for part time coding, I will also work on the side :) From nestorflorez at earthlink.net Fri Jul 1 13:37:26 2005 From: nestorflorez at earthlink.net (Nestor Florez) Date: Fri, 1 Jul 2005 10:37:26 -0700 (GMT-07:00) Subject: [nycphp-talk] [OT] Consulting work Message-ID: <28370308.1120239446744.JavaMail.root@wamui-mouette.atl.sa.earthlink.net> I would love to get a job telecommuting...... :-) -----Original Message----- From: Joel De Gan Sent: Jul 1, 2005 11:59 AM To: NYPHP Talk Subject: Re: [nycphp-talk] [OT] Consulting work On Fri, 2005-07-01 at 12:19, Matt Juszczak wrote: > >>>>> NYC PHP programmers should make a minimum of $50/hr, and I get offers > >>>>> up to $120. > > Funny ....... what is seriously funny is that I work for a company in New Orleans and live in Manhattan... Originally planned to work for a company here, but they all want people to work for ~30k/year and if someone won't bother to actually fish for real developers then I won't waste my time showing them my resume.. Granted I am not out there checking the posting daily. Actually, went on some interviews here to talk with companies (where they were offering a little less than I currently make) just to see what the offices look like and the dress code was so I could have an idea if I really wanted to not be a telecommuter anymore or not.. Anyway, what sites are people using to find good pay work here in the city? I don't like to waste time with companies who start off on the "low ball estimate". To me, they are willing to screw you over from the start and it also, to me, means they don't know exactly what they want. _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From matt at atopia.net Fri Jul 1 13:39:29 2005 From: matt at atopia.net (Matt Juszczak) Date: Fri, 1 Jul 2005 13:39:29 -0400 (EDT) Subject: [nycphp-talk] Re: [OT] Consulting work In-Reply-To: <42C56C57.2010306@omnistep.com> References: <20050701131045.18BB2A87C1@virtu.nyphp.org> <7d6cdcb05070108567bcec93b@mail.gmail.com> <42C56C57.2010306@omnistep.com> Message-ID: <20050701133744.G96329@neptune.atopia.net> On Fri, 1 Jul 2005, Rolan Yang wrote: > The real money can be found in cleaning up the mess left behind by these > $15/hr programmers when they discover they can't complete the job or finally > realize that the money it isn't worth their time and bail out 1/2 way through > the project (or are fired by the client when they discover things are not > going as planned). I dont think there's ever a time where I can't finish a job. I never give up, so I might ask for an extension, but I dont think I've ever not been able to do something. > If someone is offering you only $20/hr and you know you are worth much more, > politely decline their offer and move on to find other work with a client > that is more in touch with reality. In the end, it will work out better for > you and your client. I can't afford that right now though. And I think other people agree. I'm in South Jersey, and there's not much more opportunity down here. Plus, I've still got one more semester in College, to which I still haven't learned much. Does anyone else agree that College teaches you things you don't really need to know? I've learned more on my own than anything... I think once I have the degree, things will be different... From george at omniti.com Fri Jul 1 13:43:45 2005 From: george at omniti.com (George Schlossnagle) Date: Fri, 1 Jul 2005 13:43:45 -0400 Subject: [nycphp-talk] Re: [OT] Consulting work In-Reply-To: <20050701133744.G96329@neptune.atopia.net> References: <20050701131045.18BB2A87C1@virtu.nyphp.org> <7d6cdcb05070108567bcec93b@mail.gmail.com> <42C56C57.2010306@omnistep.com> <20050701133744.G96329@neptune.atopia.net> Message-ID: <3BB22BDE-767F-4302-9759-675435E7D2C8@omniti.com> On Jul 1, 2005, at 1:39 PM, Matt Juszczak wrote: > > I think once I have the degree, things will be different... I think you need to be confident in the value of your services, understand what a fair rate is, and refuse to go below that. There will always be people who want work for nothing. What perpetuates their existence is that there are people who will give them something for nothing. George From lists at zaunere.com Fri Jul 1 13:52:05 2005 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 1 Jul 2005 13:52:05 -0400 Subject: [nycphp-talk] Re: [OT] Consulting work In-Reply-To: <7d6cdcb05070108567bcec93b@mail.gmail.com> Message-ID: <0MKyxe-1DoPgN3YRi-000772@mrelay.perfora.net> > I'm going to chime in here because this is a topic that I find > upsetting. > > I recently had a guy offer me 20 CD/hour to work as contractor > doing professional PHP programming work. After the exchange > rate, paying my own taxes and other expenses, etc., that boiled > down to doing professional programming work for minimum > wage. Which is ludicrous. > > I'm no expert on these things, but I think there are two things > going on here. Kids, with no experience or education, that are > willing to work for peanuts or just for the "fun" of it, and the > overseas contingent. How is an American supposed to > compete with that and still have a decent quality of life? > Especially in a major city like NY, or on the west coast where > housing costs alone are to the moon. > > I keep telling people that approach me with projects, and are > expecting to be able to get away with a rate similar to what > I've just described, you get what you pay for. Because I > don't know about the rest of this group, but I have not only > seen the quality of the code and database designs from > folks that are willing to work on the cheap, I've also had to > throw a lot of it in the trash and start over. I have even > considered registering domain names and selling myself > on this very idea: we-clean-up-after-[insert slur here].com. Much of this is right on... there needs to be a tone set about the professionalism of PHP developers. While the actually act of writing code is being commoditized, there are added values any of use can give customers that add value. I hope that everyone on this list stands fast on a real rate for real work. "I'm Good Enough, I'm Smart Enough and Doggone It, People Like Me" Daily Affirmations By Stuart Smalley --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From shiflett at php.net Fri Jul 1 18:57:00 2005 From: shiflett at php.net (Chris Shiflett) Date: Fri, 01 Jul 2005 18:57:00 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <8d9a428005062813137ee4d2a0@mail.gmail.com> References: <42C1AB68.4080607@supertom.com> <20050628200941.5305.qmail@web30808.mail.mud.yahoo.com> <8d9a428005062813137ee4d2a0@mail.gmail.com> Message-ID: <42C5CA3C.5010805@php.net> Joseph Crawford wrote: > I suppose if you accidentally named it .asp you would have problems. If you're running IIS, you already have problems. :-) Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From shiflett at php.net Fri Jul 1 19:04:26 2005 From: shiflett at php.net (Chris Shiflett) Date: Fri, 01 Jul 2005 19:04:26 -0400 Subject: [nycphp-talk] Code from Mars? In-Reply-To: <8d9a42800506301940ca91776@mail.gmail.com> References: <8d9a428005063018325b7bdea7@mail.gmail.com> <0IIX002WWECGN610@mta5.srv.hcvlny.cv.net> <8d9a42800506301850326d9c82@mail.gmail.com> <8d9a42800506301940ca91776@mail.gmail.com> Message-ID: <42C5CBFA.4040907@php.net> Joseph Crawford wrote: > no idea as i dont even understand what they did to thier code ;) It looks like they just wrote it out replacing each character (letter) with its octal value. You can go somewhere like http://asciitable.com/ to translate this stuff manually. If you want to parse it with PHP, you can use something like chr(): http://php.net/chr I guess it's a similar idea to rot13 - it makes casual observation impossible, so someone has to actually want to read the code. Maybe they use vulgarities as variable names. :-) Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From mitch.pirtle at gmail.com Fri Jul 1 19:07:40 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Fri, 1 Jul 2005 19:07:40 -0400 Subject: [nycphp-talk] Question about frameworks In-Reply-To: <20050701151526.AE08DA879E@virtu.nyphp.org> References: <20050701142025.AC4DBA877D@virtu.nyphp.org> <20050701151526.AE08DA879E@virtu.nyphp.org> Message-ID: <330532b605070116075ac999df@mail.gmail.com> On 7/1/05, Phil Duffy wrote: > similar to mambo, etc. Gosh darned it, one more framework to evaluate! There goes the weekend. -- Mitch Pirtle Mambo Core Developer From codebowl at gmail.com Fri Jul 1 19:12:34 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 1 Jul 2005 19:12:34 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <42C5CA3C.5010805@php.net> References: <42C1AB68.4080607@supertom.com> <20050628200941.5305.qmail@web30808.mail.mud.yahoo.com> <8d9a428005062813137ee4d2a0@mail.gmail.com> <42C5CA3C.5010805@php.net> Message-ID: <8d9a428005070116126a234883@mail.gmail.com> agreed :) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Fri Jul 1 19:14:07 2005 From: shiflett at php.net (Chris Shiflett) Date: Fri, 01 Jul 2005 19:14:07 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <20050701020601.J76031@neptune.atopia.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> Message-ID: <42C5CE3F.3060609@php.net> Matt Juszczak wrote: > I'm a PHP/FreeBSD/Linux guy and make $15/hour If this is in the US (I realize other countries pay very little, and I don't want to be insensitive), then you should leave. I can't even think of a caveat to that. I suppose that if it's for a non-profit, and you consider your employment to be a cross between a paying job and a volunteer one, then it might be tolerable. I despise companies that take advantage of their employees. There's no excuse for it - they only do it because they can get away with it. If they offer you a raise when you mention leaving, you should leave anyway. They've already committed their crime. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From mitch.pirtle at gmail.com Fri Jul 1 19:24:11 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Fri, 1 Jul 2005 19:24:11 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <42C5CE3F.3060609@php.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> Message-ID: <330532b605070116245a51b635@mail.gmail.com> On 7/1/05, Chris Shiflett wrote: > Matt Juszczak wrote: > > I'm a PHP/FreeBSD/Linux guy and make $15/hour People that would pay you that poorly have absolutely no intentions of treating you fairly. I cannot possibly imagine professional developers getting paid $15/hr. Especially when people sacking groceries make $15/hr. I would recommend getting together with several other developers and starting a more international presence. Specialize in a popular technology, and if you are good you will be able to compete in a global market. I'm constantly lowering my bids, because I know I am competing with firms in eastern europe and asia with much lower living costs. But there is still plenty of business out there! -- Mitch Pirtle Mambo Core Developer From faber at linuxnj.com Fri Jul 1 19:33:36 2005 From: faber at linuxnj.com (Faber Fedor) Date: Fri, 1 Jul 2005 19:33:36 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <42C5CE3F.3060609@php.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> Message-ID: <20050701233336.GA22860@uranus.faber.nom> On 01/07/05 19:14 -0400, Chris Shiflett wrote: > Matt Juszczak wrote: > >I'm a PHP/FreeBSD/Linux guy and make $15/hour > > If this is in the US (I realize other countries pay very little, and I > don't want to be insensitive), then you should leave. I can't even think > of a caveat to that. I suppose that if it's for a non-profit, and you > consider your employment to be a cross between a paying job and a > volunteer one, then it might be tolerable. Agreed. > I despise companies that take advantage of their employees. There's no > excuse for it - they only do it because they can get away with it. If > they offer you a raise when you mention leaving, you should leave > anyway. They've already committed their crime. Huh? What crime? If I offer someone $15 an hour to build me a website/cook a gourmet meal/perform heart surgery and they agree, what have *I* done wrong? Granted, I may get a crappy product/service but I may get a decent one as well. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From matt at atopia.net Fri Jul 1 19:37:08 2005 From: matt at atopia.net (Matt Juszczak) Date: Fri, 1 Jul 2005 19:37:08 -0400 (EDT) Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <42C5CE3F.3060609@php.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> Message-ID: <20050701193652.C15487@neptune.atopia.net> > I despise companies that take advantage of their employees. There's no excuse > for it - they only do it because they can get away with it. If they offer you > a raise when you mention leaving, you should leave anyway. They've already > committed their crime. Chris, I like my job, but I'm also in South Jersey. There's nothing else down here. -Matt From joshmccormack at travelersdiary.com Fri Jul 1 20:06:07 2005 From: joshmccormack at travelersdiary.com (Josh McCormack) Date: Fri, 01 Jul 2005 20:06:07 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <20050701233336.GA22860@uranus.faber.nom> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> Message-ID: <42C5DA6F.8000504@travelersdiary.com> Faber Fedor wrote: > On 01/07/05 19:14 -0400, Chris Shiflett wrote: > > > Huh? What crime? If I offer someone $15 an hour to build me a website/cook a > gourmet meal/perform heart surgery and they agree, what have *I* done wrong? > Granted, I may get a crappy product/service but I may get a decent one > as well. > In my experience, if you can remove project managers, marketing types and others from the equation you can save. However, the less expensive a developer is, often the more detailed your specs need to be and the greater your supervision of the code. Josh From joshmccormack at travelersdiary.com Fri Jul 1 20:14:04 2005 From: joshmccormack at travelersdiary.com (Josh McCormack) Date: Fri, 01 Jul 2005 20:14:04 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <20050701193652.C15487@neptune.atopia.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701193652.C15487@neptune.atopia.net> Message-ID: <42C5DC4C.2030602@travelersdiary.com> Matt Juszczak wrote: > Chris, > > I like my job, but I'm also in South Jersey. There's nothing else down > here. > > -Matt I hired a contract information architect at the last contract position I was at. My employer told me they wanted someone onsite. I found the perfect person, hands on experience in everything the project would involve. His onsite rate was a lot higher than they wanted and his offsite rate slightly higher. They went with the offsite arrangement even though they had excluded other potential candidates earlier that would only do offsite. So I think if you're somewhere like South Jersey you could potentially sell it as a benefit - "Sure, I can do the work for you onsite in Manhattan. My onsite rate is $75/hr. My offsite rate is $35/hr." Boy, not seeing you is going to look really attractive for all but the occasional meeting. Josh From dwclifton at gmail.com Fri Jul 1 20:15:04 2005 From: dwclifton at gmail.com (Douglas Clifton) Date: Fri, 1 Jul 2005 20:15:04 -0400 Subject: [nycphp-talk] Re: talk Digest, Vol 26, Issue 4 In-Reply-To: <20050701230745.5789AA87C5@virtu.nyphp.org> References: <20050701230745.5789AA87C5@virtu.nyphp.org> Message-ID: <7d6cdcb05070117157b42ecdc@mail.gmail.com> > ---------- Forwarded message ---------- > From: "Hans Zaunere" > To: "'NYPHP Talk'" > Date: Fri, 1 Jul 2005 13:52:05 -0400 > Subject: RE: [nycphp-talk] Re: [OT] Consulting work > > > I'm going to chime in here because this is a topic that I find > > upsetting. [snip] > > I keep telling people that approach me with projects, and are > > expecting to be able to get away with a rate similar to what > > I've just described, you get what you pay for. Because I > > don't know about the rest of this group, but I have not only > > seen the quality of the code and database designs from > > folks that are willing to work on the cheap, I've also had to > > throw a lot of it in the trash and start over. I have even > > considered registering domain names and selling myself > > on this very idea: we-clean-up-after-[insert slur here].com. > > Much of this is right on... there needs to be a tone set about the professionalism of PHP developers. While the actually act of writing code is being commoditized, there are added values any of use can give customers that add value. I hope that everyone on this list stands fast on a real rate for real work. > > "I'm Good Enough, I'm Smart Enough and Doggone It, People Like Me" > Daily Affirmations By Stuart Smalley > > --- > Hans Zaunere > President, Founder > > New York PHP > http://www.nyphp.org > > AMP Technology > Supporting Apache, MySQL and PHP Thanks for your post in support of this thread Hans. One more quick point to make is derived directly from your signature. And that is this: Employers that are seeking out developers with AMP skills, and want to cut corners on labor costs [by whatever method] are already using technologies built from 1000s upon 1000s of hours of work by many under appreciated people to bring operating systems, Web server software, programming languages and database systems that do not, except in the case of MySQL in a commercial environment, cost them a single dime in license fees. I'm not sure if this contributes to the mindset of company owners, IT managers, HR departments, and the like, but if so...well, I think you can draw your own conclusions on my opinions of such thinking. To all PHPers, from the States at least, I say: enjoy the holiday. And to those struggling to make a career out of this, no matter what your locale, better things to come! Doug -- Douglas Clifton dwclifton at gmail.com http://loadaveragezero.com/ http://loadaveragezero.com/drx/rss/recent From matt at atopia.net Fri Jul 1 20:50:40 2005 From: matt at atopia.net (Matt Juszczak) Date: Fri, 1 Jul 2005 20:50:40 -0400 (EDT) Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <42C5DC4C.2030602@travelersdiary.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701193652.C15487@neptune.atopia.net> <42C5DC4C.2030602@travelersdiary.com> Message-ID: <20050701204946.Q16583@neptune.atopia.net> > So I think if you're somewhere like South Jersey you could potentially sell > it as a benefit - "Sure, I can do the work for you onsite in Manhattan. My > onsite rate is $75/hr. My offsite rate is $35/hr." Boy, not seeing you is > going to look really attractive for all but the occasional meeting. If I could find part time work that paid $20/hour OR paid by the project and the money was worth it, I would hop on it in a heart beat. I love working from home, especially on weekends, my house is a very comforatable atmosphere ... AND, I do good work. Where could I find this? From faber at linuxnj.com Sat Jul 2 00:45:29 2005 From: faber at linuxnj.com (Faber Fedor) Date: Sat, 2 Jul 2005 00:45:29 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <42C5DA6F.8000504@travelersdiary.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> Message-ID: <20050702044529.GB24446@uranus.faber.nom> On 01/07/05 20:06 -0400, Josh McCormack wrote: > Faber Fedor wrote: > >On 01/07/05 19:14 -0400, Chris Shiflett wrote: > > > > >Huh? What crime? If I offer someone $15 an hour to build me a > >website/cook a > >gourmet meal/perform heart surgery and they agree, what have *I* done > >wrong? > >Granted, I may get a crappy product/service but I may get a decent one > >as well. > > > > In my experience, if you can remove project managers, marketing types > and others from the equation you can save. However, the less expensive a > developer is, often the more detailed your specs need to be and the > greater your supervision of the code. No argument there. I just want to know what I have done wrong by offering and retaining a person at $15 per hour. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From faber at linuxnj.com Sat Jul 2 01:04:05 2005 From: faber at linuxnj.com (Faber Fedor) Date: Sat, 2 Jul 2005 01:04:05 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <20050701204946.Q16583@neptune.atopia.net> References: <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701193652.C15487@neptune.atopia.net> <42C5DC4C.2030602@travelersdiary.com> <20050701204946.Q16583@neptune.atopia.net> Message-ID: <20050702050405.GC24446@uranus.faber.nom> On 01/07/05 20:50 -0400, Matt Juszczak wrote: > >So I think if you're somewhere like South Jersey you could potentially > >sell it as a benefit - "Sure, I can do the work for you onsite in > >Manhattan. My onsite rate is $75/hr. My offsite rate is $35/hr." Boy, not > >seeing you is going to look really attractive for all but the occasional > >meeting. > > If I could find part time work that paid $20/hour OR paid by the project > and the money was worth it, I would hop on it in a heart beat. I love > working from home, especially on weekends, my house is a very comforatable > atmosphere ... AND, I do good work. Where could I find this? IME, "part time work" might be your problem. If I'm going to pay someone 50/80/100 USD per hour, I don't expect them to be "part time". If I need your help *now*, I don't want to hear "I'll be over as soon as I get off from my day job". I, and my clients, pay for that kind of access. As for paying "by project", it's all in how you approach them. If you say "I charge $X per hour and I can do Y" they will want to know how long it takes you to do the project. If you say "I can install Apache for you (your website is extra) and it will costs $300" and they agree to it, you just earned $300 to install an RPM. One of my clients paid $300 to have SpamAssassin installed. Granted, the guy did a good job, but I know it didn't take him $300/(15$/hour) = 20 hours to do it. It didn't take the guy three hours to do it. BTW, there *is* work in south Jersey. I've had a client near Eatontown for years and I just picked up another one near there. I can't pay the rent on just those two but then I'm not located in south Jersey. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From matt at atopia.net Sat Jul 2 01:56:48 2005 From: matt at atopia.net (Matt Juszczak) Date: Sat, 2 Jul 2005 01:56:48 -0400 (EDT) Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <20050702050405.GC24446@uranus.faber.nom> References: <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701193652.C15487@neptune.atopia.net> <42C5DC4C.2030602@travelersdiary.com> <20050701204946.Q16583@neptune.atopia.net> <20050702050405.GC24446@uranus.faber.nom> Message-ID: <20050702015427.B94534@neptune.atopia.net> > IME, "part time work" might be your problem. If I'm going to pay > someone 50/80/100 USD per hour, I don't expect them to be "part time". > If I need your help *now*, I don't want to hear "I'll be over as soon as > I get off from my day job". I, and my clients, pay for that kind of > access. The reason I say part time is because I have to pay my bills and need a steady job. If someone offered me a full time job, then of course I would probably switch if I was ready. > As for paying "by project", it's all in how you approach them. If you > say "I charge $X per hour and I can do Y" they will want to know how > long it takes you to do the project. If you say "I can install Apache > for you (your website is extra) and it will costs $300" and they agree > to it, you just earned $300 to install an RPM. One of my clients paid > $300 to have SpamAssassin installed. Granted, the guy did a good job, > but I know it didn't take him $300/(15$/hour) = 20 hours to do it. It > didn't take the guy three hours to do it. Wow ... I think I install things at work all day long, its like a repetitiveness for me ... mostly ports though :) I just wish I could market everything I do ... I can do anti spam solutions, LDAP solutions, Webserver setup, configuration, custom PHP, database work, Mail server setup, etc. etc .... so much, I just wish I knew how to get work for it. > BTW, there *is* work in south Jersey. I've had a client near Eatontown for > years and I just picked up another one near there. I can't pay the rent > on just those two but then I'm not located in south Jersey. Well if you ever find anyone looking to hire for any kind of work related to the above, let me know :) I have resume and references :) -Matt From joshmccormack at travelersdiary.com Sat Jul 2 07:22:42 2005 From: joshmccormack at travelersdiary.com (Josh McCormack) Date: Sat, 02 Jul 2005 07:22:42 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <20050702044529.GB24446@uranus.faber.nom> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> Message-ID: <42C67902.4020307@travelersdiary.com> Faber Fedor wrote: >>In my experience, if you can remove project managers, marketing types >>and others from the equation you can save. However, the less expensive a >>developer is, often the more detailed your specs need to be and the >>greater your supervision of the code. > > > No argument there. I just want to know what I have done wrong by > offering and retaining a person at $15 per hour. > Nothing. For some people that isn't settling, that's the amount they're willing to take for the work they do (maybe they want to work from home, set their own hours, and that price works for them). If we have problems with rates like that we have to differentiate ourselves so we can justify higher rates. Josh From faber at linuxnj.com Sat Jul 2 09:48:51 2005 From: faber at linuxnj.com (Faber Fedor) Date: Sat, 2 Jul 2005 09:48:51 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <20050702015427.B94534@neptune.atopia.net> References: <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701193652.C15487@neptune.atopia.net> <42C5DC4C.2030602@travelersdiary.com> <20050701204946.Q16583@neptune.atopia.net> <20050702050405.GC24446@uranus.faber.nom> <20050702015427.B94534@neptune.atopia.net> Message-ID: <20050702134851.GA28029@uranus.faber.nom> On 02/07/05 01:56 -0400, Matt Juszczak wrote: > The reason I say part time is because I have to pay my bills and need a > steady job. No, you don't need a steady job. You need an income. I have bills to pay and I don't have a steady job. How do you think I pay them? Right, I have an income. > Wow ... I think I install things at work all day long, its like a > repetitiveness for me ... mostly ports though :) I just wish I could > market everything I do ... I can do anti spam solutions, LDAP solutions, > Webserver setup, configuration, custom PHP, database work, Mail server > setup, etc. etc .... so much, I just wish I knew how to get work for it. Well for starters, advertise! I just did several Google searches for, as an example, 'BSD consultant "new jersey" south' and I never once saw your name. > Well if you ever find anyone looking to hire for any kind of work related > to the above, let me know :) I have resume and references :) Are you available during the day? -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From mitch.pirtle at gmail.com Sat Jul 2 12:10:15 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sat, 2 Jul 2005 12:10:15 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <20050702044529.GB24446@uranus.faber.nom> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> Message-ID: <330532b6050702091043e6f4f9@mail.gmail.com> On 7/2/05, Faber Fedor wrote: > > No argument there. I just want to know what I have done wrong by > offering and retaining a person at $15 per hour. This is not directed personally toward you Faber, but more a general ethical issue that I have. Begin rant ;-) If the going rate for something is $20, and you want one, and you have $20, then you should find a good one that is suitable to your purposes and pay the $20. If you automatically offer $rate - 20%, then you are cheap. And I don't mean cheap as in "getting a good deal", but cheap as in "screwing somebody and taking a selfish stance that ultimately lowers the quality of living on a gradual decline for all of us, even yourself". And I am not big money either - I spend more than 50% of my time working on open source projects (writing code, running servers, evangelizing etc). So I am not one who has unlimited funds when I need something done. But when I do need something done, I look for someone with the right skills and expertise, and pay them a good price, absolutely fair market rate. Any other approach just perpetuates the misconception that internet developers are cheap and disposable, and that hurts all of us. This attitude is why we get those dork posts in nyphp-jobs where they want someone with 8 years programming experience, 5 years project management experience, 7 years database experience, and oh by the way we can only afford $20/hr. Fuhgeddaboudit! $cheaper != $better, and I openly detest the short-minded, selfish people that pollute the world with lousy food, garbage products, and refuse to pay for the value that they want. Don't be a consumer, be a producer! :-) -- Mitch From faber at linuxnj.com Sat Jul 2 13:47:17 2005 From: faber at linuxnj.com (Faber Fedor) Date: Sat, 2 Jul 2005 13:47:17 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <330532b6050702091043e6f4f9@mail.gmail.com> References: <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <330532b6050702091043e6f4f9@mail.gmail.com> Message-ID: <20050702174717.GA29370@uranus.faber.nom> On 02/07/05 12:10 -0400, Mitch Pirtle wrote: > On 7/2/05, Faber Fedor wrote: > > > > No argument there. I just want to know what I have done wrong by > > offering and retaining a person at $15 per hour. > > This is not directed personally toward you Faber, And it's not taken that way. > but more a general ethical issue that I have. Begin rant ;-) > > If the going rate for something is $20, and you want one, and you have > $20, then you should find a good one that is suitable to your purposes > and pay the $20. If you automatically offer $rate - 20%, then you are > cheap. I think we differ in an assumption here. To me, the "going rate" is whatever I can negotiate. To use the example of one of my clients, if I offer to install SpamAssassin for $300 and the other person accepts, that is the "going rate", at least for that client. If I then farm out the job to a vendor (say a college kid) willing to take $20/hour, then that is the "going rate" for that vendor. If, at the end of the deal the client is happy and the vendor is happy, that's the best of all possible worlds. If one or the other is not happy, well, it's my job to make sure they are happy (assuming I ever want to see either of them again ;-). > And I don't mean cheap as in "getting a good deal", but cheap as in > "screwing somebody and taking a selfish stance that ultimately lowers > the quality of living on a gradual decline for all of us, even > yourself". But if every leaves happy, no one gets screwed. I don't see where it's my responsibility to make sure that someone else (the vendor) handles her finances properly. > But when I do need something done, I look for someone with the right > skills and expertise, and pay them a good price, absolutely fair > market rate. I pay them what they ask for. My accountant and plumber charge above-average market prices (especially in this area!). I gladly pay them what they ask because it's worth it to me (the value). Could I get a cheaper accountant/plumber? Sure and in the past I have. That's why I now pay above-average rates. > Any other approach just perpetuates the misconception that internet > developers are cheap and disposable, and that hurts all of us. This > attitude is why we get those dork posts in nyphp-jobs where they want > someone with 8 years programming experience, 5 years project > management experience, 7 years database experience, and oh by the way > we can only afford $20/hr. Fuhgeddaboudit! I agree with you. *I* won't take those jobs either but if someone else will do it for that price, more power to them. > $cheaper != $better, and I openly detest the short-minded, selfish > people that pollute the world with lousy food, garbage products, and > refuse to pay for the value that they want. They *are* paying for the value they want. It's just not the same value you want. > Don't be a consumer, be a producer! :-) Which is exactly why I work for myself. :-) -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From matt at atopia.net Sat Jul 2 14:41:57 2005 From: matt at atopia.net (Matt Juszczak) Date: Sat, 2 Jul 2005 14:41:57 -0400 (EDT) Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <20050702134851.GA28029@uranus.faber.nom> References: <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701193652.C15487@neptune.atopia.net> <42C5DC4C.2030602@travelersdiary.com> <20050701204946.Q16583@neptune.atopia.net> <20050702050405.GC24446@uranus.faber.nom> <20050702015427.B94534@neptune.atopia.net> <20050702134851.GA28029@uranus.faber.nom> Message-ID: <20050702144102.G37037@neptune.atopia.net> > Well for starters, advertise! I just did several Google searches for, as > an example, 'BSD consultant "new jersey" south' and I never once saw > your name. Agreed. So are you saying I make a page with a bunch of keywords and meta tags and let google pick the page up? I could do that.... > Are you available during the day? Depends. I can be, and would mostly be morning. I usually work my day job noon - eight. Although, as you say, if I found a steady "income", jobs could change.... -Matt From shiflett at php.net Sat Jul 2 16:32:20 2005 From: shiflett at php.net (Chris Shiflett) Date: Sat, 02 Jul 2005 16:32:20 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <20050702044529.GB24446@uranus.faber.nom> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> Message-ID: <42C6F9D4.9020800@php.net> Faber Fedor wrote: > I just want to know what I have done wrong by offering and > retaining a person at $15 per hour. I make it a point not to judge people, but this tactic and my own personal values clash violently. I think the reason is made clear by your defense - you can get away with it. There are companies that get away with some pretty awful employment practices (http://en.wikipedia.org/wiki/Sweatshop) - have they done nothing wrong? What you can get away with isn't a good measure of what is right. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From hans at cyberxdesigns.com Sat Jul 2 17:44:14 2005 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Sat, 02 Jul 2005 17:44:14 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <42C6F9D4.9020800@php.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> Message-ID: <42C70AAE.2060408@cyberxdesigns.com> I am glad this discussion was held so publicly. Google should pick it up in no time. The use of unfair practices / principles have a way of coming back around to haunt us. We all have karma, manage it well. HCK Chris Shiflett wrote: > Faber Fedor wrote: > >> I just want to know what I have done wrong by offering and >> retaining a person at $15 per hour. > > > I make it a point not to judge people, but this tactic and my own > personal values clash violently. I think the reason is made clear by > your defense - you can get away with it. > > There are companies that get away with some pretty awful employment > practices (http://en.wikipedia.org/wiki/Sweatshop) - have they done > nothing wrong? > > What you can get away with isn't a good measure of what is right. > > Chris > From codebowl at gmail.com Sat Jul 2 17:47:01 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Sat, 2 Jul 2005 17:47:01 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <42C70AAE.2060408@cyberxdesigns.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> <42C70AAE.2060408@cyberxdesigns.com> Message-ID: <8d9a42800507021447262b931e@mail.gmail.com> i know what you guys say about low prices, but per se am i charging too little? i am running an Inc company here, just myself for now however i charge $50/hr for most php work. when i quote i usually quote the hours x by 50 then discount a certain % -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Sat Jul 2 18:26:49 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sat, 2 Jul 2005 18:26:49 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <8d9a42800507021447262b931e@mail.gmail.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> <42C70AAE.2060408@cyberxdesigns.com> <8d9a42800507021447262b931e@mail.gmail.com> Message-ID: <330532b60507021526d8bb972@mail.gmail.com> This ethical stance also has a flipside, and here is a real-life example: I was approached with a project opportunity, and I knew that if we asked ~$30,000 we could have landed the gig. We base all our deliverables on Mambo (well we should, we're core developers LOL), and I knew we could get to market with 80-90% of what the client needed with off-the-shelf stuff from MamboForge.net and so on, and the whole shebang would take less than a month. I wager the others bidding on the project were planning on writing a bunch of code on their own, and as such needed more time and money. So we ended up bidding $10,000, even when I was confident we could have asked for three times that amount. And what we deliver will be equal (or most likely superior) to what the others could have offered when all is said and done. Why? Because that is what the work was worth. Just because you can get more doesn't mean it is justified, nor ethical. And the client will be even more enthusiastic to recommend us to his peers; and the other people we are working with on that project are equally enthusiastic to have us working with them as they want to have us handy for future projects. It all perpetuates itself - if you give, you receive. There's really nothing else to it. -- Mitch Pirtle Mambo Core Developer From lists at natserv.com Sat Jul 2 18:41:45 2005 From: lists at natserv.com (Francisco Reyes) Date: Sat, 2 Jul 2005 18:41:45 -0400 (EDT) Subject: [nycphp-talk] Mambo (was: Consulting work) In-Reply-To: <330532b60507021526d8bb972@mail.gmail.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> <42C70AAE.2060408@cyberxdesigns.com> <8d9a42800507021447262b931e@mail.gmail.com> <330532b60507021526d8bb972@mail.gmail.com> Message-ID: <20050702183529.Y25132@zoraida.natserv.net> On Sat, 2 Jul 2005, Mitch Pirtle wrote: > We base all our deliverables on Mambo (well we should, we're core > developers LOL), and I knew we could get to market with 80-90% of what > the client needed with off-the-shelf stuff from MamboForge.net and so > on, and the whole shebang would take less than a month. Mitch could I ask you a few questions related to Mambo? CCing the lits since I think it may be of interest.. Recently I bumped into Mambo and I think it would be a great time saver because of what you listed above (lots of components already built, communal work, etc...). The questions.. * Non MySQL support. Based on what I see on the forums and an email I sent asking it seems Mambo will support other databases in the not too distant future. Do you have any guestimates when this may be? * How big a learning curve do you see learning Mambo? We talking days or weeks.. for an experience PHP developer. Don't have MySQL so have not tried Mambo.. but looking to try it once it supports other DBs. * For what type of applications do you think it's best suited and least suited? I have seem some of the mambo sites users have done and it seemed a pretty wide spectrum. From leam at reuel.net Sat Jul 2 18:51:28 2005 From: leam at reuel.net (leam at reuel.net) Date: Sat, 2 Jul 2005 18:51:28 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <330532b60507021526d8bb972@mail.gmail.com> References: <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> <42C70AAE.2060408@cyberxdesigns.com> <8d9a42800507021447262b931e@mail.gmail.com> <330532b60507021526d8bb972@mail.gmail.com> Message-ID: <20050702225128.GB2979@leitz.reuel.net> On Sat, Jul 02, 2005 at 06:26:49PM -0400, Mitch Pirtle wrote: > This ethical stance also has a flipside, and here is a real-life example: (snipping a good example) > It all perpetuates itself - if you give, you receive. There's really > nothing else to it. > > -- > Mitch Pirtle > Mambo Core Developer I think this thought works both ways. If I'm a start-up struggling for survival and I need something done right and someone gives me a good job at a cut-rate I'll darn sure go back to that person first when there's another job. And I won't base my offer purely on "hey, you did it for $x.95 last time". More like "Hey, you took a hit last time, let me pay you well on this one." Personality seems to be a big factor, too. I think a lot of my decisions have been and will continue to be biased by interactions here. If I want to find someone to do something, I'll look here. A few weeks ago a potential client's need suggested a security code review. I knew who to ask--it's just that simple. ciao! leam From leam at reuel.net Sat Jul 2 19:02:38 2005 From: leam at reuel.net (leam at reuel.net) Date: Sat, 2 Jul 2005 19:02:38 -0400 Subject: [nycphp-talk] Mambo (was: Consulting work) In-Reply-To: <20050702183529.Y25132@zoraida.natserv.net> References: <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> <42C70AAE.2060408@cyberxdesigns.com> <8d9a42800507021447262b931e@mail.gmail.com> <330532b60507021526d8bb972@mail.gmail.com> <20050702183529.Y25132@zoraida.natserv.net> Message-ID: <20050702230238.GD2979@leitz.reuel.net> On Sat, Jul 02, 2005 at 06:41:45PM -0400, Francisco Reyes wrote: > On Sat, 2 Jul 2005, Mitch Pirtle wrote: > > >We base all our deliverables on Mambo (well we should, we're core > >developers LOL), and I knew we could get to market with 80-90% of what > >the client needed with off-the-shelf stuff from MamboForge.net and so > >on, and the whole shebang would take less than a month. > > Mitch could I ask you a few questions related to Mambo? > CCing the lits since I think it may be of interest.. > > Recently I bumped into Mambo and I think it would be a great time saver > because of what you listed above (lots of components already built, > communal work, etc...). > > The questions.. > * Non MySQL support. > Based on what I see on the forums and an email I sent asking it seems > Mambo will support other databases in the not too distant future. > > Do you have any guestimates when this may be? > > * How big a learning curve do you see learning Mambo? We talking days or > weeks.. for an experience PHP developer. > > Don't have MySQL so have not tried Mambo.. but looking to try it once it > supports other DBs. > > * For what type of applications do you think it's best suited and least > suited? > > I have seem some of the mambo sites users have done and it seemed a pretty > wide spectrum. I can answer some of this. First, I was able to do stuff with Mambo and I'm not a good programmer. There are lots of add-ons you can get for Mambo, Mitch just mentioned Mambo-PHPshop. A skilled PHP'r would have a lot of fun setting things up and tweaking them. My view of Mambo is that it's best for an informational site where the non-tech user updates things. You can add/edit pages on-line and publish them at will. Pretty neat sutff. On the other hand, I'm paranoid enough to want lots of backups and editing on-line gives me the willies. Note that my opinion is based on some exposure, but not a lot. I wouldn't choose Mambo for a minimal e-commerce site because much of it wouldn't be used. But I have a place or two I wish I would have know about Mambo before they got set up... Jump in--you'll love it! ciao! leam From mitch.pirtle at gmail.com Sat Jul 2 19:42:41 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sat, 2 Jul 2005 19:42:41 -0400 Subject: [nycphp-talk] Re: Mambo (was: Consulting work) In-Reply-To: <20050702183529.Y25132@zoraida.natserv.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> <42C70AAE.2060408@cyberxdesigns.com> <8d9a42800507021447262b931e@mail.gmail.com> <330532b60507021526d8bb972@mail.gmail.com> <20050702183529.Y25132@zoraida.natserv.net> Message-ID: <330532b60507021642730963a6@mail.gmail.com> Committing a heinous crime and cross-posting to the NYPHP Mambo list. *gasp!* On 7/2/05, Francisco Reyes wrote: > > * Non MySQL support. > Based on what I see on the forums and an email I sent asking it seems > Mambo will support other databases in the not too distant future. > > Do you have any guestimates when this may be? The upcoming 4.5.3 release utilizes ADOdb for database abstraction, and we support any database that ADOdb supports. We've made a lot of changes and fixes along the way, hoping to make ADOdb better as well. You can check it out of cvs from the mambo project site at MamboForge, the module is 4.5.x. Right now it runs on whatever database you want, I am finishing up the installer to work the same way. > * How big a learning curve do you see learning Mambo? We talking days or > weeks.. for an experience PHP developer. Last week a fellow walked up to me at TGIFridays and asked a couple questions. Come to find out he doesn't program at all, he basically takes mambo and installs a bunch of goodies and he is done. So if a non-programmer can use Mambo, a geek should be able to get productive too ;-) http://help.mamboserver.com/ has a couple component and module tutorials as well as the API. That in itself should get you going, but I am a learner by doing and suggest you jump in and start breaking things to learn the fastest. > * For what type of applications do you think it's best suited and least > suited? Great for corporate sites, business sites, commerce sites, and online publications. It is not especially suited for community sites at the moment, but that weakness is being taken care of rapidly. Right now Mambo is not really suited for blogging, but we are about to release a GPL blogging component that is really crazy. After that point, then there is really very little that Mambo cannot do, and do well. > I have seem some of the mambo sites users have done and it seemed a pretty > wide spectrum. >From Mitsubishi to Michael Jackson, Mambo is in use everywhere. I've seen sites with the stock template barely modified, and others (like Porsche) where the whole HTML front end has been ripped out and replaced with flash. Like my story above, if someone pays you $x to deliver a site, you can start at 0% done, or 80-90% done. Choose wisely! ;-) -- Mitch Pirtle Mambo Core Developer From mitch.pirtle at gmail.com Sat Jul 2 19:51:00 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sat, 2 Jul 2005 19:51:00 -0400 Subject: [nycphp-talk] Mambo (was: Consulting work) In-Reply-To: <20050702230238.GD2979@leitz.reuel.net> References: <20050701020601.J76031@neptune.atopia.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> <42C70AAE.2060408@cyberxdesigns.com> <8d9a42800507021447262b931e@mail.gmail.com> <330532b60507021526d8bb972@mail.gmail.com> <20050702183529.Y25132@zoraida.natserv.net> <20050702230238.GD2979@leitz.reuel.net> Message-ID: <330532b6050702165147fbe907@mail.gmail.com> On 7/2/05, leam at reuel.net wrote: > > My view of Mambo is that it's best for an informational site where the non-tech user > updates things. You can add/edit pages on-line and publish them at will. Pretty neat sutff. > On the other hand, I'm paranoid enough to want lots of backups and editing on-line gives > me the willies. We got 6 projects approved for Google's Summer of Code, and 3 others have volunteered to do the work anyway (without the pay). One of those projects is version control, which directly addresses this issue. The others are equally fascinating, and we have a really great group of students to work with this summer. We are setting up a wiki for the projects and will announce when everyone is ready. Also, note that as soon as 4.5.3 ships we can start ripping out the ACL for 4.6, where you will have full users/groups options for fine grained access control. -- Mitch Pirtle Mambo Core Developer -------------- next part -------------- An HTML attachment was scrubbed... URL: From faber at linuxnj.com Sat Jul 2 22:26:19 2005 From: faber at linuxnj.com (Faber Fedor) Date: Sat, 2 Jul 2005 22:26:19 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <20050702144102.G37037@neptune.atopia.net> References: <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701193652.C15487@neptune.atopia.net> <42C5DC4C.2030602@travelersdiary.com> <20050701204946.Q16583@neptune.atopia.net> <20050702050405.GC24446@uranus.faber.nom> <20050702015427.B94534@neptune.atopia.net> <20050702134851.GA28029@uranus.faber.nom> <20050702144102.G37037@neptune.atopia.net> Message-ID: <20050703022619.GA31857@uranus.faber.nom> On 02/07/05 14:41 -0400, Matt Juszczak wrote: > >Well for starters, advertise! I just did several Google searches for, as > >an example, 'BSD consultant "new jersey" south' and I never once saw > >your name. > > Agreed. So are you saying I make a page with a bunch of keywords and meta > tags and let google pick the page up? I could do that.... It's a start! > >Are you available during the day? > > Depends. I can be, and would mostly be morning. I usually work my day > job noon - eight. Although, as you say, if I found a steady "income", > jobs could change.... Okay, I'll keep you in mind then. However, you had better charge me what everyone in here thinks is a reasonable rate otherwise they'll accuse me of running a sweatshop. ;-) -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From faber at linuxnj.com Sat Jul 2 22:37:47 2005 From: faber at linuxnj.com (Faber Fedor) Date: Sat, 2 Jul 2005 22:37:47 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <42C6F9D4.9020800@php.net> References: <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> Message-ID: <20050703023747.GB31857@uranus.faber.nom> On 02/07/05 16:32 -0400, Chris Shiflett wrote: > Faber Fedor wrote: > >I just want to know what I have done wrong by offering and > >retaining a person at $15 per hour. > > I make it a point not to judge people, but this tactic and my own > personal values clash violently. I think the reason is made clear by > your defense - you can get away with it. Look, I'm not forcing them to do it. If they don't like what I have to offer, guess what, they CAN go elsewhere. If I can't find anyone to do it at the price I'm offering, I have to raise my offer. That how Adam's Invisible Hand works. > There are companies that get away with some pretty awful employment > practices (http://en.wikipedia.org/wiki/Sweatshop) - have they done > nothing wrong? Oh, please! Why don't you just call me a Nazi and get it over with. > What you can get away with isn't a good measure of what is right. I'm not ripping anybody off. I am not forcing anyone to do anything they don't want. I am not the only game in town. I don't have that kind of influence over another person. A young fella recently contacted me and said he charges $25/hour and did I have any work for him. You're telling me that I am at fault if I take him up on that? And for your information, I've never paid a subcontractor less than $65/hour (does that rate meet your approval?) and I've told the young fellow mentioned above that he's underpricing himself. -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From joshmccormack at travelersdiary.com Sat Jul 2 23:01:46 2005 From: joshmccormack at travelersdiary.com (Josh McCormack) Date: Sat, 02 Jul 2005 23:01:46 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <330532b60507021526d8bb972@mail.gmail.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> <42C70AAE.2060408@cyberxdesigns.com> <8d9a42800507021447262b931e@mail.gmail.com> <330532b60507021526d8bb972@mail.gmail.com> Message-ID: <42C7551A.80805@travelersdiary.com> Mitch Pirtle wrote: > This ethical stance also has a flipside, and here is a real-life example: > > I was approached with a project opportunity, and I knew that if we > asked ~$30,000 we could have landed the gig. > So we ended up bidding $10,000, even when I was confident we could > have asked for three times that amount. And what we deliver will be > equal (or most likely superior) to what the others could have offered > when all is said and done. > I bid on a project one time, it was an RFP one with multiple groups submitting. I bid a fair amount, everyone else did much, much higher. I didn't get it and they actually told me, through someone else, that they didn't think it was possible that I could do it for that amount when everyone else wanted so much more. I'm not advocating ripping anyone off, but you should consider charging people for the value of the product you're delivering, even if 80-90% of it is free and already done. Many people will expect it, and will gladly pay knowing that 80-90% of it surely works, as it's being used by others. Josh From faber at linuxnj.com Sat Jul 2 23:22:08 2005 From: faber at linuxnj.com (Faber Fedor) Date: Sat, 2 Jul 2005 23:22:08 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <42C7551A.80805@travelersdiary.com> References: <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> <42C70AAE.2060408@cyberxdesigns.com> <8d9a42800507021447262b931e@mail.gmail.com> <330532b60507021526d8bb972@mail.gmail.com> <42C7551A.80805@travelersdiary.com> Message-ID: <20050703032208.GB32182@uranus.faber.nom> On 02/07/05 23:01 -0400, Josh McCormack wrote: > I'm not advocating ripping anyone off, but you should consider charging > people for the value of the product you're delivering, Thank you! -- Regards, Faber Fedor President Linux New Jersey, Inc. 908-320-0357 800-706-0701 http://www.linuxnj.com From mitch.pirtle at gmail.com Sat Jul 2 23:39:44 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sat, 2 Jul 2005 23:39:44 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <42C7551A.80805@travelersdiary.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> <42C70AAE.2060408@cyberxdesigns.com> <8d9a42800507021447262b931e@mail.gmail.com> <330532b60507021526d8bb972@mail.gmail.com> <42C7551A.80805@travelersdiary.com> Message-ID: <330532b6050702203949b91c39@mail.gmail.com> On 7/2/05, Josh McCormack wrote: > > I'm not advocating ripping anyone off, but you should consider charging > people for the value of the product you're delivering, even if 80-90% of > it is free and already done. Many people will expect it, and will gladly > pay knowing that 80-90% of it surely works, as it's being used by others. I'll keep that in mind if you ever call us for a project (rimshot) On a serious note, one fascinating trend I see is that clients actually want their custom code released as open source, so they have a chance that the community picks up development and keeps the codebase alive. Very cool. -- Mitch -------------- next part -------------- An HTML attachment was scrubbed... URL: From agfische at email.smith.edu Sun Jul 3 00:43:20 2005 From: agfische at email.smith.edu (Aaron Fischer) Date: Sun, 3 Jul 2005 00:43:20 -0400 Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <20050703023747.GB31857@uranus.faber.nom> References: <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> <20050703023747.GB31857@uranus.faber.nom> Message-ID: <972d29b12c94d7e2f8521c7844ab1977@email.smith.edu> Old school economics. Business for your own good and your own good only. Seize every advantage, exploit all available resources. Part of me thinks you are just playing devil's advocate. If not, well, I'm sorry. It's too bad if you don't see the direct or indirect consequences of your actions. I'd rather see us talk about coding. It's rare that the list embarks on a path of this sort. -Aaron On Jul 2, 2005, at 10:37 PM, Faber Fedor wrote: > Look, I'm not forcing them to do it. If they don't like what I have to > offer, guess what, they CAN go elsewhere. If I can't find anyone to do > it at the price I'm offering, I have to raise my offer. That how > Adam's > Invisible Hand works. From matt at atopia.net Sun Jul 3 13:35:58 2005 From: matt at atopia.net (Matt Juszczak) Date: Sun, 3 Jul 2005 13:35:58 -0400 (EDT) Subject: [nycphp-talk] Re: Consulting work In-Reply-To: <20050703022619.GA31857@uranus.faber.nom> References: <330532b605061217097f7ce18d@mail.gmail.com> <20050701020601.J76031@neptune.atopia.net> <42C5CE3F.3060609@php.net> <20050701193652.C15487@neptune.atopia.net> <42C5DC4C.2030602@travelersdiary.com> <20050701204946.Q16583@neptune.atopia.net> <20050702050405.GC24446@uranus.faber.nom> <20050702015427.B94534@neptune.atopia.net> <20050702134851.GA28029@uranus.faber.nom> <20050702144102.G37037@neptune.atopia.net> <20050703022619.GA31857@uranus.faber.nom> Message-ID: <20050703133526.I69637@neptune.atopia.net> On Sat, 2 Jul 2005, Faber Fedor wrote: > On 02/07/05 14:41 -0400, Matt Juszczak wrote: >>> Well for starters, advertise! I just did several Google searches for, as >>> an example, 'BSD consultant "new jersey" south' and I never once saw >>> your name. >> >> Agreed. So are you saying I make a page with a bunch of keywords and meta >> tags and let google pick the page up? I could do that.... > > It's a start! OK :) sounds good. I'll do that. Put my resume on there too or keep it separate? > >>> Are you available during the day? >> >> Depends. I can be, and would mostly be morning. I usually work my day >> job noon - eight. Although, as you say, if I found a steady "income", >> jobs could change.... > > Okay, I'll keep you in mind then. Thanks :) > However, you had better charge me what everyone in here thinks is a > reasonable rate otherwise they'll accuse me of running a sweatshop. ;-) OK.... From lists at natserv.com Sun Jul 3 17:49:07 2005 From: lists at natserv.com (Francisco Reyes) Date: Sun, 3 Jul 2005 17:49:07 -0400 (EDT) Subject: [nycphp-talk] Re: Mambo (was: Consulting work) In-Reply-To: <330532b60507021642730963a6@mail.gmail.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <42C5CE3F.3060609@php.net> <20050701233336.GA22860@uranus.faber.nom> <42C5DA6F.8000504@travelersdiary.com> <20050702044529.GB24446@uranus.faber.nom> <42C6F9D4.9020800@php.net> <42C70AAE.2060408@cyberxdesigns.com> <8d9a42800507021447262b931e@mail.gmail.com> <330532b60507021526d8bb972@mail.gmail.com> <20050702183529.Y25132@zoraida.natserv.net> <330532b60507021642730963a6@mail.gmail.com> Message-ID: <20050703174810.S9690@zoraida.natserv.net> On Sat, 2 Jul 2005, Mitch Pirtle wrote: > Committing a heinous crime and cross-posting to the NYPHP Mambo list. Didn't know that list existed... will subscribe shortly. :-) Thanks for pointing it out and for the response. I will likely give the CVS code a try. From dmintz at davidmintz.org Tue Jul 5 09:23:16 2005 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 5 Jul 2005 09:23:16 -0400 (EDT) Subject: [nycphp-talk] CMS/Blogging Apps XML-RPC vulnerability Message-ID: You guys must have heard about this: http://news.netcraft.com/archives/2005/07/04/php_blogging_apps_vulnerable_to_xmlrpc_exploits.html but since nobody has posted anything about it yet, I thought I'd take the liberty. --- David Mintz http://davidmintz.org/ From mitch.pirtle at gmail.com Tue Jul 5 10:48:43 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Tue, 5 Jul 2005 10:48:43 -0400 Subject: [nycphp-talk] CMS/Blogging Apps XML-RPC vulnerability In-Reply-To: References: Message-ID: <330532b6050705074843ee9411@mail.gmail.com> On 7/5/05, David Mintz wrote: > > You guys must have heard about this: > > http://news.netcraft.com/archives/2005/07/04/php_blogging_apps_vulnerable_to_xmlrpc_exploits.html > > but since nobody has posted anything about it yet, I thought I'd take the > liberty. Good thing Mambo uses a different library. *spacemonkey smiles a great big grin -- Mitch From mwithington at PLMresearch.com Tue Jul 5 13:12:17 2005 From: mwithington at PLMresearch.com (Mark Withington) Date: Tue, 5 Jul 2005 13:12:17 -0400 Subject: [nycphp-talk] PHP reports Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358EF255A@network.PLMresearch.com> Before I go off and try to write an AMP report generation tool (eg. via PHP, FCKeditor, HTMLdoc and MySQL), thought I would ping the group to see if anyone had already beaten me to it? What I'd like to do is allow the user to layout reports from data stored in MySQL tables and then print them out in PDF. Any thoughts? -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 ext. 704 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.plmdev.com/plmr/plmresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmdev.com/plmr/plmresearch.com/calendar.php From mlynch at icbf.com Tue Jul 5 13:34:34 2005 From: mlynch at icbf.com (Michael Lynch) Date: Tue, 5 Jul 2005 18:34:34 +0100 Subject: [nycphp-talk] RE: Sending OCI array through XML_RPC Message-ID: <11B62D16D13187468EEF6726E13214640E9B78@icbf-server1> Hi Daniel Thanks for the reply. Apologies for not replying sooner. I'm afraid I'm still stumped by converting a multi-row result into something that XML_RPC can handle. Lets say I get a result as such from "select * from emp" EMP_ID EMP_NAME EMP_SAL 123 Fred 1000 345 Joe 2000 678 Tom 5000 I convert the result into an array using oci_fetch What happens next is where I get confused : Do I loop through the rows and create an XML_RPC_Value of each row or is it just for the overall result that I package it ? Should I be using "array" or "struct" types ? Thanks Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at cyberxdesigns.com Wed Jul 6 11:16:18 2005 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Wed, 06 Jul 2005 11:16:18 -0400 Subject: [nycphp-talk] June Presentation Message-ID: <42CBF5C2.3050501@cyberxdesigns.com> It is that time of the month again. We have updated the NY PHP web site. We have posted the Audio for the May presentation Building Enterprise Applications with Mozilla, AMP, XML-RPC and JSON. And we have posted the slides from the June presentation by IBM. I should have the audio from the June presentation up later today or tomorrow. You can find all the presentation goodness at: http://www.nyphp.org/content/presentations/index.php June's Presentation: Join us this month as we hear from David Boloker, CTO of Emerging Technology in the IBM Software Group. Dave and his team will speak about IBM's PHP strategy, contributions, and upcoming products. The team from IBM will also discuss the recent Zend Technologies partnership and demonstrate some PHP applications and extensions that are in the works. This meeting promises to be a great opportunity to ask questions about IBM's PHP roadmap. The presenters will cover the following topics: IBM's PHP Strategy (David Boloker) * Why PHP * The Zend relationship * What are we doing and where are we going PHP Technologies and IBM (Stewart Nickolas) * PDO status and efforts * Web services Composite Applications using Mambo (Dan Gisolfi) * Building composite applications with open source components and frameworks Thank you, Hans K -- Hans Kaspersetz Cyber X Designs New York PHP http://www.cyberxdesigns.com http://www.nyphp.org From lists at zaunere.com Wed Jul 6 13:16:04 2005 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 6 Jul 2005 13:16:04 -0400 Subject: [nycphp-talk] June Presentation In-Reply-To: <42CBF5C2.3050501@cyberxdesigns.com> Message-ID: <0MKyxe-1DqDVD45Ss-0003wa@mrelay.perfora.net> Thanks to everyone who made this meeting possible. A big thanks to IBM, David Boloker, Dan Gisolfi and Stewart Nickolas for hosting and presenting this meeting. We had one of the fullest meetings ever, and I'm sure many would agree that it was enlightening to see the IBM/PHP relationship, and the bright future ahead. For those not in the area, or those who couldn't attend in person, the audio/presentation/pictures will be a great asset. Thanks to Dan Krook, Michael DeWitt and Hans Kaspersetz for continual stellar meeting production. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Hans C. Kaspersetz > Sent: Wednesday, July 06, 2005 11:16 AM > To: NYPHP Talk > Subject: [nycphp-talk] June Presentation > > It is that time of the month again. We have updated the NY PHP web > site. We have posted the Audio for the May presentation Building > Enterprise Applications with Mozilla, AMP, XML-RPC and JSON. And we > have posted the slides from the June presentation by IBM. I should have > the audio from the June presentation up later today or tomorrow. > > You can find all the presentation goodness at: > http://www.nyphp.org/content/presentations/index.php > > June's Presentation: > > Join us this month as we hear from David Boloker, CTO of Emerging > Technology in the IBM Software Group. Dave and his team will speak about > IBM's PHP strategy, contributions, and upcoming products. > > The team from IBM will also discuss the recent Zend Technologies > partnership and demonstrate some PHP applications and extensions that > are in the works. This meeting promises to be a great opportunity to ask > questions about IBM's PHP roadmap. > > The presenters will cover the following topics: > > IBM's PHP Strategy (David Boloker) > * Why PHP > * The Zend relationship > * What are we doing and where are we going > > PHP Technologies and IBM (Stewart Nickolas) > * PDO status and efforts > * Web services > > Composite Applications using Mambo (Dan Gisolfi) > * Building composite applications with open source components and > frameworks > > > Thank you, > Hans K > > -- > Hans Kaspersetz > Cyber X Designs > New York PHP > > http://www.cyberxdesigns.com > http://www.nyphp.org > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From agfische at email.smith.edu Wed Jul 6 13:23:15 2005 From: agfische at email.smith.edu (Aaron Fischer) Date: Wed, 6 Jul 2005 13:23:15 -0400 Subject: [nycphp-talk] June Presentation In-Reply-To: <0MKyxe-1DqDVD45Ss-0003wa@mrelay.perfora.net> References: <0MKyxe-1DqDVD45Ss-0003wa@mrelay.perfora.net> Message-ID: <99546b66182e76978aabb375a61dfd21@email.smith.edu> As one of those folks not in the (near) area, I can say that I find the audio and other meeting materials to be a great asset. Thanks guys! -Aaron On Jul 6, 2005, at 1:16 PM, Hans Zaunere wrote: > For those not in the area, or those who couldn't attend in person, the > audio/presentation/pictures will be a great asset. Thanks to Dan > Krook, > Michael DeWitt and Hans Kaspersetz for continual stellar meeting > production. From atzeniantonello at bluewin.ch Wed Jul 6 15:49:19 2005 From: atzeniantonello at bluewin.ch (atzeniantonello at bluewin.ch) Date: Wed, 6 Jul 2005 19:49:19 +0000 Subject: [nycphp-talk] PHP MYSQL Problems Message-ID: <42BC9255000534ED@mssbzhh-int.msg.bluewin.ch> Hi, I Have two web site on one server I can see only one (www.fitandfun-sportsupplements.ch), I made a redesigne from algozone.com and from then I cannot see the other site (www.swiss-supplements.ch) they sed to me there is a problem with php but they cannot do anything to fix it. From my team support they don't undertand what append, so there is someone can please HELP ME!!! I will send all the information and posswords for the server, the site is a oscommerce e-commerce, is my job I really need to fix the problem!! Please and sorry about my english. Reardes. Antonello Atzeni. Fine del messaggio allegato From ps at pswebcode.com Wed Jul 6 16:04:58 2005 From: ps at pswebcode.com (Peter Sawczynec) Date: Wed, 6 Jul 2005 16:04:58 -0400 Subject: [nycphp-talk] Global SQL Update Query Needed Message-ID: <000201c58265$ff6b7f70$6400a8c0@yourx1adg12jme> I need a SQL query for MySQL 4.1. The table has over 20,000 rows. Each row has a "keywords" field. The keywords field has either zero words, one word or a series of colon (:) delimited words. Need to swap all occurrences of the keyword "moon" with new keyword "lunar". What SQL query might do that. Warmest regards, Peter Sawczynec Technology Director PSWebcode ps at pswebcode.com 718.543.3240 From dcech at phpwerx.net Wed Jul 6 16:10:47 2005 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 06 Jul 2005 16:10:47 -0400 Subject: [nycphp-talk] Global SQL Update Query Needed In-Reply-To: <000201c58265$ff6b7f70$6400a8c0@yourx1adg12jme> References: <000201c58265$ff6b7f70$6400a8c0@yourx1adg12jme> Message-ID: <42CC3AC7.7080606@phpwerx.net> http://dev.mysql.com/doc/mysql/en/string-functions.html UPDATE mytable SET keywords = REPLACE(keywords,'moon','lunar'); Dan Peter Sawczynec wrote: > I need a SQL query for MySQL 4.1. > > The table has over 20,000 rows. Each row has a "keywords" field. The > keywords field has either zero words, one word or a series of colon (:) > delimited words. > > Need to swap all occurrences of the keyword "moon" with new keyword "lunar". > What SQL query might do that. > > Warmest regards, > > Peter Sawczynec > Technology Director > PSWebcode > ps at pswebcode.com > 718.543.3240 > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From ps at pswebcode.com Wed Jul 6 17:50:14 2005 From: ps at pswebcode.com (Peter Sawczynec) Date: Wed, 6 Jul 2005 17:50:14 -0400 Subject: [nycphp-talk] Global SQL Update Query Needed In-Reply-To: <42CC3AC7.7080606@phpwerx.net> Message-ID: <000301c58274$b440ccd0$6400a8c0@yourx1adg12jme> Fine. So very fine. Gracias, Pedro -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Dan Cech Sent: Wednesday, July 06, 2005 4:11 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Global SQL Update Query Needed http://dev.mysql.com/doc/mysql/en/string-functions.html UPDATE mytable SET keywords = REPLACE(keywords,'moon','lunar'); Dan Peter Sawczynec wrote: > I need a SQL query for MySQL 4.1. > > The table has over 20,000 rows. Each row has a "keywords" field. The > keywords field has either zero words, one word or a series of colon > (:) delimited words. > > Need to swap all occurrences of the keyword "moon" with new keyword > "lunar". What SQL query might do that. > > Warmest regards, > > Peter Sawczynec > Technology Director > PSWebcode > ps at pswebcode.com > 718.543.3240 > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From kigathi at gmail.com Wed Jul 6 21:33:39 2005 From: kigathi at gmail.com (Eric K.) Date: Wed, 6 Jul 2005 21:33:39 -0400 Subject: [nycphp-talk] Roadsend Compiler & Standalone PHP Apps Message-ID: Has anyone worked with the Roadsend Compiler (www.roadsend.com) or any other PHP compiler capable of creating standalone executables from PHP code? I'm working on a primarily PHP project that requires a small, standalone app to be installed on a number of web servers, that may not have PHP installed. I could whip up something in Perl/Python/Ruby or even C but why bother if I can get what I want done in PHP and compile on each platform that I'll be deploying on? Comments, ideas, suggestions? From hans at cyberxdesigns.com Wed Jul 6 23:03:51 2005 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Wed, 06 Jul 2005 23:03:51 -0400 Subject: [nycphp-talk] June Presentation Audio Message-ID: <42CC9B97.6010204@cyberxdesigns.com> For all of those who were unable to attend and those who can't get enough, we have posted the audio of the June presentation by IBM. You can find a link to the audio on the presentation page: http://www.nyphp.org/content/presentations/. And for those who don't already know, we post the audio each month from the presentation. If you can not attend the meeting, you can at least stay on top of things by listening to the audio and checking out the slides. Thanks, Hans K -- Hans C. Kaspersetz Cyber X Designs New York PHP http://www.cyberxdesigns.com http://www.nyphp.org From arzala at gmail.com Thu Jul 7 00:27:02 2005 From: arzala at gmail.com (Anirudh Zala (Gmail)) Date: Thu, 7 Jul 2005 09:57:02 +0530 Subject: [nycphp-talk] PHP MYSQL Problems References: <42BC9255000534ED@mssbzhh-int.msg.bluewin.ch> Message-ID: <014f01c582ac$22fb7da0$10cc000a@aum1> >From my investigation it seems that your php script is "exiting" before it can output something back to server and then to browser. Your webserver is working since request goes to proper place (as I can see icon logo in address bar). Further investigation tells that you have used directive to host ....swiss-supp... website and your Document Root for ....swiss-supp... website is SOME_WEBROOT/ FitAndFun2/ and here is problem. So please check that necessary pages exist there. I need to check "index.php" or similar file that loads first when this ....swiss-supp.... website is called. Then I called url like http://www.swiss-supplements.ch/list.php directly (list.php I just tried to check whether php support is there or not) and it output like " No input file specified. " that means PHP support is there. So now I am sure that your script "index.php" (or any other files that is being included in this script) has problem somewhere. Sometimes it happens that when you upgrade your original software by adding third party code, and you don't take care about necessary values & parameters like Host name, Db name, Password etc. then called script (that is part of third party) tends to Exit without further execution. For example in each php script we include "config.inc" to provide necessary variables about Db, Server, Userid Password etc. and there are most probably some kind of validation mechanism/functionality to check whether all critical values are available for each script or not, and once that mechanism/functionality fails there, it terminates whole script and output "some/no messages" about relevant error. So please check whether you have configured all parameters and values that are required to run your script successfully. Thanks Anirudh Zala ----- Original Message ----- From: To: Sent: Thursday, July 07, 2005 1:19 AM Subject: [nycphp-talk] PHP MYSQL Problems > Hi, > I Have two web site on one server I can see only one (www.fitandfun-sportsupplements.ch), > I made a redesigne from algozone.com and from then I cannot see the other > site (www.swiss-supplements.ch) they sed to me there is a problem with php > but they cannot do anything to fix it. From my team support they don't undertand > what append, so there is someone can please HELP ME!!! I will send all the > information and posswords for the server, the site is a oscommerce e-commerce, > is my job I really need to fix the problem!! Please and sorry about my english. > Reardes. > Antonello Atzeni. > > Fine del messaggio allegato > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From scott at crisscott.com Thu Jul 7 08:46:57 2005 From: scott at crisscott.com (Scott Mattocks) Date: Thu, 07 Jul 2005 08:46:57 -0400 Subject: [nycphp-talk] Roadsend Compiler & Standalone PHP Apps In-Reply-To: References: Message-ID: <42CD2441.6020009@crisscott.com> Eric K. wrote: > Has anyone worked with the Roadsend Compiler (www.roadsend.com) or any > other PHP compiler capable of creating standalone executables from PHP > code? I have tried using Roadsend Compiler for creating standalone PHP-GTK applications but their GTK support is not quite ready. Have you looked at bComipler? (http://pecl.php.net/package/bcompiler) It is a PECL package that is designed to create standalone apps. -- Scott Mattocks scott at crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks From jay_nyphp at fastmail.fm Thu Jul 7 09:16:06 2005 From: jay_nyphp at fastmail.fm (Jayesh Sheth) Date: Thu, 07 Jul 2005 09:16:06 -0400 Subject: [nycphp-talk] Roadsend Compiler & Standalone PHP Apps Message-ID: <1120742166.25340.237949156@webmail.messagingengine.com> Hi Eric, I tried an earlier version of the Roadsend Compiler. While it is a good product, and while its authors have clearly put a ton of work in it, I identified several deal-breaker shortcomings for me. For one, it is a re-implementation of the entire Zend Engine interpreter / compiler, so many built-in PHP functions, constructs and conventions are not supported. It has support for some PHP extensions bundled, but not for all. For example, when you use a mysql_ or mysqli_ function in PHP, you are really using the MySQL client libraries through a PHP function. In other words, the real strength of PHP lies in how it builds a framework of functionality using existing third-party open source C libraries. PHP may have 3000+ "built-in" functions, but a lot of them rely on third-party extensions. The Roadsend Compiler is a fine product, and fills a certain niche, but I found it too limited in its current form for my needs. For creating desktop applications with PHP, I would recommend checking out the following: WinBinder (only for Windows): http://www.hypervisual.com/winbinder/index.php PHP-GTK (cross-platform): http://gtk.php.net/ A vastly improved version 2 of PHP-GTK should be released in the coming months. Hope that helps. - Jay From scott at crisscott.com Thu Jul 7 09:18:15 2005 From: scott at crisscott.com (Scott Mattocks) Date: Thu, 07 Jul 2005 09:18:15 -0400 Subject: [nycphp-talk] Roadsend Compiler & Standalone PHP Apps In-Reply-To: <1120742166.25340.237949156@webmail.messagingengine.com> References: <1120742166.25340.237949156@webmail.messagingengine.com> Message-ID: <42CD2B97.2040703@crisscott.com> Jayesh Sheth wrote: > PHP-GTK (cross-platform): http://gtk.php.net/ > A vastly improved version 2 of PHP-GTK should be released in the coming > months. PHP-GTK still requires PHP to be installed unless you use some sort of PHP "compiler". While I whole-heartedly recommend taking a look at it, it won't solve Eric's problem. Scott Mattocks From jay_nyphp at fastmail.fm Thu Jul 7 09:50:10 2005 From: jay_nyphp at fastmail.fm (Jayesh Sheth) Date: Thu, 07 Jul 2005 09:50:10 -0400 Subject: [nycphp-talk] PEAR_ErrorStack - documentation not on main site, but elsewhere? Message-ID: <1120744210.28588.237952318@webmail.messagingengine.com> Hello all, I found the following documentation for the new PEAR_ErrorStack library: http://pear.activeventure.com/core/core.pear.pear-errorstack.intro.html The source for the library itself is here: http://cvs.php.net/co.php/pear-core/PEAR/ErrorStack.php?r=1.19 I don't think the library has been released yet, so I was wondering how this third-party site got its hands on such good documentation. Is it using the CVS version of PEAR's documentation? I checked on the main PEAR site for documentation on this library, but I could not find it. Any ideas? Best regards, - Jay From codebowl at gmail.com Thu Jul 7 10:04:59 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 7 Jul 2005 10:04:59 -0400 Subject: [nycphp-talk] Roadsend Compiler & Standalone PHP Apps In-Reply-To: <42CD2B97.2040703@crisscott.com> References: <1120742166.25340.237949156@webmail.messagingengine.com> <42CD2B97.2040703@crisscott.com> Message-ID: <8d9a428005070707042aee98f6@mail.gmail.com> WinBinder looks really interesting, as i dont know GTK i havent ventured down that road, also i dont like the visual feel of GTK 1, i have been waiting for the new release of PHP-GTK to use GTK 2 before i ventured off that way, looks like i may checkout WinBinder. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Thu Jul 7 10:38:56 2005 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 7 Jul 2005 10:38:56 -0400 Subject: [nycphp-talk] Roadsend Compiler & Standalone PHP Apps In-Reply-To: Message-ID: <0MKyxe-1DqXWi1DJS-0006Ct@mrelay.perfora.net> > Has anyone worked with the Roadsend Compiler (www.roadsend.com) or any > other PHP compiler capable of creating standalone executables from PHP > code? I've played with it a little bit, but not in production. Looks like a promising product with some potential. > I'm working on a primarily PHP project that requires a small, > standalone app to be installed on a number of web servers, that may > not have PHP installed. I could whip up something in Perl/Python/Ruby > or even C but why bother if I can get what I want done in PHP and > compile on each platform that I'll be deploying on? > > Comments, ideas, suggestions? I think you could give Roadsend a try. They are Long Island based, and in fact some of their team I believe is on this list. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From atzeniantonello at bluewin.ch Thu Jul 7 13:40:58 2005 From: atzeniantonello at bluewin.ch (atzeniantonello at bluewin.ch) Date: Thu, 7 Jul 2005 17:40:58 +0000 Subject: [nycphp-talk] PHP MYSQL Problems In-Reply-To: <014f01c582ac$22fb7da0$10cc000a@aum1> Message-ID: <42BC92550005B6A1@mssbzhh-int.msg.bluewin.ch> Hi Anirudh Zala, As I told you I have problems with the folders FitAndFun and FitAndFun2 the last one was redesigned by algozone.com. The site is: www.swiss-supplements.ch , server address is: ftp://195.186.67.5/FitAndFun/admin Login: fitand Password: 22332233 Let me know if you have any other questions. Thank you Antonello >-- Messaggio originale -- >From: "Anirudh Zala (Gmail)" >To: "NYPHP Talk" >Subject: Re: [nycphp-talk] PHP MYSQL Problems >Date: Thu, 7 Jul 2005 09:57:02 +0530 >Reply-To: NYPHP Talk > > >>From my investigation it seems that your php script is "exiting" before >it >can output something back to server and then to browser. Your webserver is >working since request goes to proper place (as I can see icon logo in >address bar). > >Further investigation tells that you have used directive to host >....swiss-supp... website and your Document Root for ....swiss-supp... >website is SOME_WEBROOT/ FitAndFun2/ and here is problem. So please check >that necessary pages exist there. I need to check "index.php" or similar >file that loads first when this ....swiss-supp.... website is called. > >Then I called url like http://www.swiss-supplements.ch/list.php directly >(list.php I just tried to check whether php support is there or not) and >it >output like " No input file specified. " that means PHP support is there. >So >now I am sure that your script "index.php" (or any other files that is being >included in this script) has problem somewhere. > >Sometimes it happens that when you upgrade your original software by adding >third party code, and you don't take care about necessary values & >parameters like Host name, Db name, Password etc. then called script (that >is part of third party) tends to Exit without further execution. For example >in each php script we include "config.inc" to provide necessary variables >about Db, Server, Userid Password etc. and there are most probably some kind >of validation mechanism/functionality to check whether all critical values >are available for each script or not, and once that mechanism/functionality >fails there, it terminates whole script and output "some/no messages" about >relevant error. So please check whether you have configured all parameters >and values that are required to run your script successfully. > >Thanks > >Anirudh Zala > >----- Original Message ----- >From: >To: >Sent: Thursday, July 07, 2005 1:19 AM >Subject: [nycphp-talk] PHP MYSQL Problems > > >> Hi, >> I Have two web site on one server I can see only one >(www.fitandfun-sportsupplements.ch), >> I made a redesigne from algozone.com and from then I cannot see the other >> site (www.swiss-supplements.ch) they sed to me there is a problem with >php >> but they cannot do anything to fix it. From my team support they don't >undertand >> what append, so there is someone can please HELP ME!!! I will send all >the >> information and posswords for the server, the site is a oscommerce >e-commerce, >> is my job I really need to fix the problem!! Please and sorry about my >english. >> Reardes. >> Antonello Atzeni. >> >> Fine del messaggio allegato >> >> _______________________________________________ >> New York PHP Talk Mailing List >> AMP Technology >> Supporting Apache, MySQL and PHP >> http://lists.nyphp.org/mailman/listinfo/talk >> http://www.nyphp.org > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org From dmintz at davidmintz.org Thu Jul 7 13:54:45 2005 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 7 Jul 2005 13:54:45 -0400 (EDT) Subject: [nycphp-talk] PHP MYSQL Problems In-Reply-To: <42BC92550005B6A1@mssbzhh-int.msg.bluewin.ch> References: <42BC92550005B6A1@mssbzhh-int.msg.bluewin.ch> Message-ID: On Thu, 7 Jul 2005 atzeniantonello at bluewin.ch wrote: > As I told you I have problems with the folders FitAndFun and FitAndFun2 the > last one was redesigned by algozone.com. The site is: www.swiss-supplements.ch > , > server address is: ftp://195.186.67.5/FitAndFun/admin > Login: fitand > Password: [*****] > Let me know if you have any other questions. > Thank you > Antonello Jeez! You might want to change that password real soon. --- David Mintz http://davidmintz.org/ From ashaw at iifwp.org Thu Jul 7 16:32:02 2005 From: ashaw at iifwp.org (Allen Shaw) Date: Thu, 07 Jul 2005 16:32:02 -0400 Subject: [nycphp-talk] php rpm for RH 7.3? Message-ID: <42CD9142.9080600@iifwp.org> I'm looking for an rpm package for my RedHat 7.3 box -- hopefully the latest 4.3.11 version. (Currently I'm still using fedoralegacy's latest, 4.1.2) Could anyone point me to a source you trust for unofficial php rpms? Thanks, Allen From phil at bearingasset.com Thu Jul 7 16:34:23 2005 From: phil at bearingasset.com (Phil Duffy) Date: Thu, 7 Jul 2005 16:34:23 -0400 Subject: [nycphp-talk] PEAR Book In-Reply-To: Message-ID: <20050707203428.95A3AA862D@virtu.nyphp.org> The last time I looked at Amazon.com. there was only one book available about PEAR, it was copyrighted in 2003 and focused only on DB. Is there anything more recent/comprehensive? Phil -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Mintz Sent: Thursday, July 07, 2005 12:55 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP MYSQL Problems On Thu, 7 Jul 2005 atzeniantonello at bluewin.ch wrote: > As I told you I have problems with the folders FitAndFun and FitAndFun2 the > last one was redesigned by algozone.com. The site is: www.swiss-supplements.ch > , > server address is: ftp://195.186.67.5/FitAndFun/admin > Login: fitand > Password: [*****] > Let me know if you have any other questions. > Thank you > Antonello Jeez! You might want to change that password real soon. --- David Mintz http://davidmintz.org/ _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From Consult at CovenantEDesign.com Thu Jul 7 16:56:07 2005 From: Consult at CovenantEDesign.com (CED) Date: Thu, 7 Jul 2005 16:56:07 -0400 Subject: [nycphp-talk] PHP MYSQL Problems References: <42BC92550005B6A1@mssbzhh-int.msg.bluewin.ch> Message-ID: <000901c58336$4c6cab70$0319a8c0@ced> LOL, nah, lets see who can change it first, her or some high-school hacker who crawled for an e-mail like this. ----- Original Message ----- From: "David Mintz" To: "NYPHP Talk" Sent: Thursday, July 07, 2005 1:54 PM Subject: Re: [nycphp-talk] PHP MYSQL Problems > On Thu, 7 Jul 2005 atzeniantonello at bluewin.ch wrote: > > > As I told you I have problems with the folders FitAndFun and FitAndFun2 the > > last one was redesigned by algozone.com. The site is: www.swiss-supplements.ch > > , > > server address is: ftp://195.186.67.5/FitAndFun/admin > > Login: fitand > > Password: [*****] > > Let me know if you have any other questions. > > Thank you > > Antonello > > > Jeez! You might want to change that password real soon. > > --- > David Mintz > http://davidmintz.org/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From damovand at yahoo.com Thu Jul 7 20:30:37 2005 From: damovand at yahoo.com (Leila Lappin) Date: Thu, 7 Jul 2005 17:30:37 -0700 (PDT) Subject: [nycphp-talk] php rpm for RH 7.3? In-Reply-To: <42CD9142.9080600@iifwp.org> Message-ID: <20050708003038.55681.qmail@web30813.mail.mud.yahoo.com> --- Allen Shaw wrote: > I'm looking for an rpm package for my RedHat 7.3 box > -- hopefully the > latest 4.3.11 version. (Currently I'm still using > fedoralegacy's latest, > 4.1.2) > > Could anyone point me to a source you trust for > unofficial php rpms? > > Thanks, > Allen > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > Start by using google to find out exactly what rpm you need. I usually use a search string like ?what-I-need rpm download?. My experience finding missing rpm?s this way has been very good. A couple of years ago when I first upgraded from RH 7 to RH 9 there was some dependency failures and as the result I could not use PHP with MySQL. It took a while for me to find the patch and the rpm download for it but it was a good experience and I learned a lot. Last week I finally upgraded from Redhat 9 to Fedora Core 4, because I wanted to use PHP 5. Now, with Fedora upgrade, I no longer have to look for packages everywhere. Fedora comes with a utility (yum) that links to specific repositories of upgrade rpm?s and installs from those directly. Life is getting easier and better every day. ____________________________________________________ Sell on Yahoo! Auctions ? no fees. Bid on great items. http://auctions.yahoo.com/ From dmintz at davidmintz.org Thu Jul 7 22:19:34 2005 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 7 Jul 2005 22:19:34 -0400 (EDT) Subject: [nycphp-talk] php rpm for RH 7.3? In-Reply-To: <20050708003038.55681.qmail@web30813.mail.mud.yahoo.com> References: <20050708003038.55681.qmail@web30813.mail.mud.yahoo.com> Message-ID: On Thu, 7 Jul 2005, Leila Lappin wrote: > > [snip] > Last week I finally upgraded from Redhat 9 to Fedora > Core 4, because I wanted to use PHP 5. Now, with > Fedora upgrade, I no longer have to look for packages > everywhere. Fedora comes with a utility (yum) that > links to specific repositories of upgrade rpm?s and > installs from those directly. Life is getting easier > and better every day. Interesting -- I'm a fellow former RH9 user, now using Fedora 3 at work (Ubuntu at home), and I use rpms and yum and apt-get for nearly everything I can ~except~ Apache/MySQL/PHP, prefering instead to compile from source (or install the MySQL binaries from one of their tasty tarballs). That's because -- this is my ignorance speaking here -- I don't know how to find out what extensions are supported in e.g. the PHP binary that comes in the rpm, and where the rpm plans to put things, until after it's done. How's the Fedora 4 php rpm in this regard? I also like having the option of doing an upgrade NOW, when a new version comes out, instead of having to wait a couple days for an rpm to follow. --- David Mintz http://davidmintz.org/ From damovand at yahoo.com Thu Jul 7 22:51:25 2005 From: damovand at yahoo.com (Leila Lappin) Date: Thu, 7 Jul 2005 19:51:25 -0700 (PDT) Subject: [nycphp-talk] php rpm for RH 7.3? In-Reply-To: Message-ID: <20050708025125.81660.qmail@web30811.mail.mud.yahoo.com> --- David Mintz wrote: > On Thu, 7 Jul 2005, Leila Lappin wrote: > > > > [snip] > > Last week I finally upgraded from Redhat 9 to > Fedora > > Core 4, because I wanted to use PHP 5. Now, with > > Fedora upgrade, I no longer have to look for > packages > > everywhere. Fedora comes with a utility (yum) > that > > links to specific repositories of upgrade rpm?s > and > > installs from those directly. Life is getting > easier > > and better every day. > > Interesting -- I'm a fellow former RH9 user, now > using Fedora 3 at work > (Ubuntu at home), and I use rpms and yum and apt-get > for nearly everything > I can ~except~ Apache/MySQL/PHP, prefering instead > to compile from source > (or install the MySQL binaries from one of their > tasty tarballs). That's > because -- this is my ignorance speaking here -- I > don't know how to find > out what extensions are supported in e.g. the PHP > binary that comes in the > rpm, and where the rpm plans to put things, until > after it's done. How's > the Fedora 4 php rpm in this regard? > > I also like having the option of doing an upgrade > NOW, when a new version > comes out, instead of having to wait a couple days > for an rpm to follow. > > --- > David Mintz > http://davidmintz.org/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > Wow that is interesting, Because I stick with rpm exactly for the reason you don?t do rpm. I find the standard option and extension are perfectly sufficient for me. As for upgrades, I never found immediate, and to some extent continual upgrades, to my liking. For example I had PHP 4.1.xx with my RH9. I waited until Fedora Core 5 to upgrade everything and with it move to PHP 5. To answer your question, PHP5 upgrade was part of Fedora Core 4 upgrade and the installation went flawless. The only things I had to install after the upgrade were non-PHP related. I had to install yum and a couple python services that were needed for yum rpm. These weren?t part of the standard upgrade I guess because I jumped directly to FC 4 and these were part of the earlier versions of Fedora. Then I had to also install MySQL server. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From mwithington at PLMresearch.com Thu Jul 7 23:56:50 2005 From: mwithington at PLMresearch.com (Mark Withington) Date: Thu, 7 Jul 2005 23:56:50 -0400 Subject: [nycphp-talk] PEAR Book Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358EF2579@network.PLMresearch.com> I like David Sklar's book, Essential PHP Tools. Pear and a whole lot more. -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 ext. 704 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.plmdev.com/plmr/plmresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmdev.com/plmr/plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Phil Duffy Sent: Thursday, July 07, 2005 4:34 PM To: 'NYPHP Talk' Subject: [nycphp-talk] PEAR Book The last time I looked at Amazon.com. there was only one book available about PEAR, it was copyrighted in 2003 and focused only on DB. Is there anything more recent/comprehensive? Phil -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Mintz Sent: Thursday, July 07, 2005 12:55 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP MYSQL Problems On Thu, 7 Jul 2005 atzeniantonello at bluewin.ch wrote: > As I told you I have problems with the folders FitAndFun and FitAndFun2 the > last one was redesigned by algozone.com. The site is: www.swiss-supplements.ch > , > server address is: ftp://195.186.67.5/FitAndFun/admin > Login: fitand > Password: [*****] > Let me know if you have any other questions. > Thank you > Antonello Jeez! You might want to change that password real soon. --- David Mintz http://davidmintz.org/ _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From arzala at gmail.com Fri Jul 8 02:01:16 2005 From: arzala at gmail.com (Anirudh Zala (Gmail)) Date: Fri, 8 Jul 2005 11:31:16 +0530 Subject: [nycphp-talk] PHP MYSQL Problems References: <42BC92550005BA39@mssbzhh-int.msg.bluewin.ch> Message-ID: <00c701c58382$78f29c80$10cc000a@aum1> Hi Antonio, # Your problem has been resolved. You programmers had overwritten file ../FitAndFun2/includes/boxes/currencies.php => ../FitAndFun2/includes/classes/currencies.php That is why output of server was not printed. At this moment I have just placed proper file in proper directory by downaloding it's appropriate version. # I have made 1 more change in file ".../FitAndFun2/includes/configure.php" at line no 41 to change password of DB server that you had changed but didn't change in this file. # That's all for now, take care while using third party softwares. Understand well before taking into use. # And yes change necessary password/s now for security reasons. Thanks Anirudh Zala ----- Original Message ----- From: To: Sent: Thursday, July 07, 2005 11:54 PM Subject: Re: [nycphp-talk] PHP MYSQL Problems > For security reasons > > Possword change: [*********] > Thank you > Antonello > > > > > > >-- Messaggio originale -- > >From: "Anirudh Zala (Gmail)" > >To: "NYPHP Talk" > >Subject: Re: [nycphp-talk] PHP MYSQL Problems > >Date: Thu, 7 Jul 2005 09:57:02 +0530 > >Reply-To: NYPHP Talk > > > > > >>From my investigation it seems that your php script is "exiting" before > >it > >can output something back to server and then to browser. Your webserver > is > >working since request goes to proper place (as I can see icon logo in > >address bar). > > > >Further investigation tells that you have used directive to > host > >....swiss-supp... website and your Document Root for ....swiss-supp... > >website is SOME_WEBROOT/ FitAndFun2/ and here is problem. So please check > >that necessary pages exist there. I need to check "index.php" or similar > >file that loads first when this ....swiss-supp.... website is called. > > > >Then I called url like http://www.swiss-supplements.ch/list.php directly > >(list.php I just tried to check whether php support is there or not) and > >it > >output like " No input file specified. " that means PHP support is there. > >So > >now I am sure that your script "index.php" (or any other files that is being > >included in this script) has problem somewhere. > > > >Sometimes it happens that when you upgrade your original software by adding > >third party code, and you don't take care about necessary values & > >parameters like Host name, Db name, Password etc. then called script (that > >is part of third party) tends to Exit without further execution. For example > >in each php script we include "config.inc" to provide necessary variables > >about Db, Server, Userid Password etc. and there are most probably some > kind > >of validation mechanism/functionality to check whether all critical values > >are available for each script or not, and once that mechanism/functionality > >fails there, it terminates whole script and output "some/no messages" about > >relevant error. So please check whether you have configured all parameters > >and values that are required to run your script successfully. > > > >Thanks > > > >Anirudh Zala > > > >----- Original Message ----- > >From: > >To: > >Sent: Thursday, July 07, 2005 1:19 AM > >Subject: [nycphp-talk] PHP MYSQL Problems > > > > > >> Hi, > >> I Have two web site on one server I can see only one > >(www.fitandfun-sportsupplements.ch), > >> I made a redesigne from algozone.com and from then I cannot see the other > >> site (www.swiss-supplements.ch) they sed to me there is a problem with > >php > >> but they cannot do anything to fix it. From my team support they don't > >undertand > >> what append, so there is someone can please HELP ME!!! I will send all > >the > >> information and posswords for the server, the site is a oscommerce > >e-commerce, > >> is my job I really need to fix the problem!! Please and sorry about my > >english. > >> Reardes. > >> Antonello Atzeni. > >> > >> Fine del messaggio allegato > >> > >> _______________________________________________ > >> New York PHP Talk Mailing List > >> AMP Technology > >> Supporting Apache, MySQL and PHP > >> http://lists.nyphp.org/mailman/listinfo/talk > >> http://www.nyphp.org > > > >_______________________________________________ > >New York PHP Talk Mailing List > >AMP Technology > >Supporting Apache, MySQL and PHP > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.nyphp.org > From phil at bearingasset.com Fri Jul 8 08:38:44 2005 From: phil at bearingasset.com (Phil Duffy) Date: Fri, 8 Jul 2005 08:38:44 -0400 Subject: [nycphp-talk] PEAR Book In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358EF2579@network.PLMresearch.com> Message-ID: <20050708123846.3D760A8797@virtu.nyphp.org> Mark, Thanks for the recommendation. I had heard positive things about that book elsewhere, so that is probably the logical choice. Phil -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Mark Withington Sent: Thursday, July 07, 2005 10:57 PM To: 'NYPHP Talk' Subject: RE: [nycphp-talk] PEAR Book I like David Sklar's book, Essential PHP Tools. Pear and a whole lot more. -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 ext. 704 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.plmdev.com/plmr/plmresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmdev.com/plmr/plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Phil Duffy Sent: Thursday, July 07, 2005 4:34 PM To: 'NYPHP Talk' Subject: [nycphp-talk] PEAR Book The last time I looked at Amazon.com. there was only one book available about PEAR, it was copyrighted in 2003 and focused only on DB. Is there anything more recent/comprehensive? Phil -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Mintz Sent: Thursday, July 07, 2005 12:55 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP MYSQL Problems On Thu, 7 Jul 2005 atzeniantonello at bluewin.ch wrote: > As I told you I have problems with the folders FitAndFun and FitAndFun2 the > last one was redesigned by algozone.com. The site is: www.swiss-supplements.ch > , > server address is: ftp://195.186.67.5/FitAndFun/admin > Login: fitand > Password: [*****] > Let me know if you have any other questions. > Thank you > Antonello Jeez! You might want to change that password real soon. --- David Mintz http://davidmintz.org/ _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From ashaw at iifwp.org Fri Jul 8 09:41:27 2005 From: ashaw at iifwp.org (Allen Shaw) Date: Fri, 08 Jul 2005 09:41:27 -0400 Subject: [nycphp-talk] php rpm for RH 7.3? In-Reply-To: <20050708003038.55681.qmail@web30813.mail.mud.yahoo.com> References: <20050708003038.55681.qmail@web30813.mail.mud.yahoo.com> Message-ID: <42CE8287.7060906@iifwp.org> An HTML attachment was scrubbed... URL: From jay_nyphp at fastmail.fm Fri Jul 8 09:58:14 2005 From: jay_nyphp at fastmail.fm (Jayesh Sheth) Date: Fri, 08 Jul 2005 09:58:14 -0400 Subject: [nycphp-talk] PHP reports Message-ID: <1120831094.12835.238038694@webmail.messagingengine.com> Hello Mark, you may want to check out PM Report: http://freshmeat.net/projects/pmreport/?branch_id=55708&release_id=200966 - Jay From lists at zaunere.com Fri Jul 8 10:03:30 2005 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 8 Jul 2005 10:03:30 -0400 Subject: [nycphp-talk] php rpm for RH 7.3? In-Reply-To: <42CE8287.7060906@iifwp.org> Message-ID: <0MKz1m-1DqtRy0Fin-0005Wi@mrelay.perfora.net> Hey everyone, As it?s probably no surprise, I?m a fan of compiling from source. The exception, however, is MySQL, which I will use either the RPM or tarball. Especially for production systems, I?ve found much better stability and reliability (from a maintenance and system administration perspective) when compiling from source. Combine that with a high load environment, and trimming the fat of unneeded extensions, etc. and source is generally the way to go. I will say, however, that for development ? especially on Windows ? I?ll use some type of package management or pre-built packages, like XAMPP (http://www.apachefriends.org ) which I use all the time on Windows. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Allen Shaw Sent: Friday, July 08, 2005 9:41 AM To: NYPHP Talk Subject: Re: [nycphp-talk] php rpm for RH 7.3? Hi Leila, Yep, I've found several sites for rpm downloads (though not yet php 4.3.11 for RH7.3), but I just wonder, how far can you trust an rpm that you find that way? I'm still a little green, but I think trust and integrity is the reason I check md5sums on official php rpms from Zend; so if I'm concerned about trust and integrity, shouldn't I be concerned about where those unofficial rpms come from and what other people say about them? So, I'm just wondering if anyone's got a trusted source that they like for such things. Still, I admit, it seems like most people prefer building from source, right gang? And I'll probably end up going that way after all. Thanks, Allen Leila Lappin wrote: --- Allen Shaw wrote: I'm looking for an rpm package for my RedHat 7.3 box -- hopefully the latest 4.3.11 version. (Currently I'm still using fedoralegacy's latest, 4.1.2) Could anyone point me to a source you trust for unofficial php rpms? Thanks, Allen _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org Start by using google to find out exactly what rpm you need. I usually use a search string like ?what-I-need rpm download?. My experience finding missing rpm?s this way has been very good. A couple of years ago when I first upgraded from RH 7 to RH 9 there was some dependency failures and as the result I could not use PHP with MySQL. It took a while for me to find the patch and the rpm download for it but it was a good experience and I learned a lot. Last week I finally upgraded from Redhat 9 to Fedora Core 4, because I wanted to use PHP 5. Now, with Fedora upgrade, I no longer have to look for packages everywhere. Fedora comes with a utility (yum) that links to specific repositories of upgrade rpm?s and installs from those directly. Life is getting easier and better every day. ____________________________________________________ Sell on Yahoo! Auctions ? no fees. Bid on great items. http://auctions.yahoo.com/ _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -- =========================================================== Allen Shaw ashaw at iifwp.org IIFWP Data and 914.631.1331 x.106 IT Services http://www.iifwp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashaw at iifwp.org Fri Jul 8 10:21:05 2005 From: ashaw at iifwp.org (Allen Shaw) Date: Fri, 08 Jul 2005 10:21:05 -0400 Subject: [nycphp-talk] "On Behalf Of ..." Message-ID: <42CE8BD1.4040102@iifwp.org> An HTML attachment was scrubbed... URL: From damovand at yahoo.com Fri Jul 8 10:25:47 2005 From: damovand at yahoo.com (Leila Lappin) Date: Fri, 8 Jul 2005 07:25:47 -0700 (PDT) Subject: [nycphp-talk] php rpm for RH 7.3? In-Reply-To: <0MKz1m-1DqtRy0Fin-0005Wi@mrelay.perfora.net> Message-ID: <20050708142547.18028.qmail@web30813.mail.mud.yahoo.com> Hi Allen, I am afraid I always had to take my chances with the rpm's I downloaded. I wish I could be of more help in that regard. That's one good reason to upgrade to Fedora since it comes yum which allows users upgrade using approved rpm's from specific sites. --- Hans Zaunere wrote: > > > Hey everyone, > > > > As it?s probably no surprise, I?m a fan of compiling > from source. The > exception, however, is MySQL, which I will use > either the RPM or tarball. > > > > Especially for production systems, I?ve found much > better stability and > reliability (from a maintenance and system > administration perspective) when > compiling from source. Combine that with a high > load environment, and > trimming the fat of unneeded extensions, etc. and > source is generally the > way to go. I will say, however, that for > development ? especially on > Windows ? I?ll use some type of package management > or pre-built packages, > like XAMPP (http://www.apachefriends.org > ) > which I use all the time on Windows. > > > > > > --- > > Hans Zaunere > > President, Founder > > > > New York PHP > > http://www.nyphp.org > > > > AMP Technology > > Supporting Apache, MySQL and PHP > > > > > > > > _____ > > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On > Behalf Of Allen Shaw > Sent: Friday, July 08, 2005 9:41 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] php rpm for RH 7.3? > > > > Hi Leila, > > Yep, I've found several sites for rpm downloads > (though not yet php 4.3.11 > for RH7.3), but I just wonder, how far can you trust > an rpm that you find > that way? I'm still a little green, but I think > trust and integrity is the > reason I check md5sums on official php rpms from > Zend; so if I'm concerned > about trust and integrity, shouldn't I be concerned > about where those > unofficial rpms come from and what other people say > about them? So, I'm > just wondering if anyone's got a trusted source that > they like for such > things. > > Still, I admit, it seems like most people prefer > building from source, right > gang? And I'll probably end up going that way after > all. > > Thanks, > Allen > > Leila Lappin wrote: > > > --- Allen Shaw > wrote: > > > > I'm looking for an rpm package for my RedHat 7.3 box > -- hopefully the > latest 4.3.11 version. (Currently I'm still using > fedoralegacy's latest, > 4.1.2) > > Could anyone point me to a source you trust for > unofficial php rpms? > > Thanks, > Allen > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > > > > Start by using google to find out exactly what rpm > you > need. I usually use a search string like > ?what-I-need > rpm download?. My experience finding missing rpm?s > this way has been very good. A couple of years ago > when I first upgraded from RH 7 to RH 9 there was > some > dependency failures and as the result I could not > use > PHP with MySQL. It took a while for me to find the > patch and the rpm download for it but it was a good > experience and I learned a lot. > > Last week I finally upgraded from Redhat 9 to Fedora > Core 4, because I wanted to use PHP 5. Now, with > Fedora upgrade, I no longer have to look for > packages > everywhere. Fedora comes with a utility (yum) that > links to specific repositories of upgrade rpm?s and > installs from those directly. Life is getting > easier > and better every day. > > > > > ____________________________________________________ > Sell on Yahoo! Auctions ? no fees. Bid on great > items. > http://auctions.yahoo.com/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > > > > > > > -- > =========================================================== > Allen Shaw > ashaw at iifwp.org > IIFWP Data and > 914.631.1331 x.106 > IT Services > http://www.iifwp.org > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org ____________________________________________________ Sell on Yahoo! Auctions ? no fees. Bid on great items. http://auctions.yahoo.com/ From codebowl at gmail.com Fri Jul 8 10:30:10 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 8 Jul 2005 10:30:10 -0400 Subject: [nycphp-talk] [ OT ] - Lyris List Manager Message-ID: <8d9a4280050708073053bea01e@mail.gmail.com> Anyone here have much experience with this software? A client of mine wants to have a survey form where there is a checkbox to join the list, also will have an unsubscribe form. I have looked at the HTML form Lyris uses to allow an email to be added and it's posted to script, however is there a way i can make my script somehow add the email to lyris if the user has choosen so. I am not sure how i would re-POST data automatically to another script from within mine. I understand if Lyris accepted GET i could just pass it as parameters in the query string. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Fri Jul 8 10:38:26 2005 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 8 Jul 2005 10:38:26 -0400 Subject: [nycphp-talk] "On Behalf Of ..." In-Reply-To: <42CE8BD1.4040102@iifwp.org> Message-ID: <0MKz1m-1Dqtzl3n62-0006Yi@mrelay.perfora.net> Not at all ? it?s just Mailman?s way of rewriting/mangling headers. H _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Allen Shaw Sent: Friday, July 08, 2005 10:21 AM To: NYPHP Talk Subject: [nycphp-talk] "On Behalf Of ..." Hi All, I see this header in a list-member's posted copy of my email: _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Allen Shaw Does this indicate I'm doing something wrong when I post? -- =========================================================== Allen Shaw ashaw at iifwp.org IIFWP Data and 914.631.1331 x.106 IT Services http://www.iifwp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Fri Jul 8 12:47:49 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Fri, 8 Jul 2005 12:47:49 -0400 Subject: [nycphp-talk] php rpm for RH 7.3? In-Reply-To: <42CE8287.7060906@iifwp.org> References: <20050708003038.55681.qmail@web30813.mail.mud.yahoo.com> <42CE8287.7060906@iifwp.org> Message-ID: <330532b6050708094721df7ecf@mail.gmail.com> On 7/8/05, Allen Shaw wrote: > > Still, I admit, it seems like most people prefer building from source, > right gang? And I'll probably end up going that way after all. I detest it, as it negates the whole purpose of using a distribution that has a package manager in the first place. However, every time I try to build from SRPM (or try to make my own) everything works just fine, until I do it with PHP. Then I get slammed with a dependency for libgilflapsnatwabble-0.1-alpha or some such nonsense, and I end up turning a nice clean system into a frankenstein alpha bleeding edge mystery machine just to build PHP as an RPM. Ditto for debian, running source of PHP 5.0.4 on ubuntu because working with the debs available was a complete disaster for me. But no, I'm not bitter! ;-) With packages, the dependencies for PHP force you to sit way behind the current versions available, and from a security standpoint I cannot do that on production machines. So I am forced to compile PHP for each box. -- Mitch, thinking about Gentoo (again!) LOL From danielc at analysisandsolutions.com Fri Jul 8 15:38:57 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 8 Jul 2005 15:38:57 -0400 Subject: [nycphp-talk] Alerts from SecurityFocus Newsletter #305 Message-ID: <20050708193857.GB24948@panix.com> Alerts from SecurityFocus Newsletter #305 APPLICATIONS USING PHP ---------------------- Edgewall Software Trac Unauthorized File Upload/Download Vulnerability http://www.securityfocus.com/bid/13990 Uapplication Ublog Reload Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/13991 PAFaq Database Unauthorized Access Vulnerability http://www.securityfocus.com/bid/13999 PAFaq Question Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/14001 PAFaq Administrator Username SQL Injection Vulnerability http://www.securityfocus.com/bid/14003 MercuryBoard Index.PHP Remote SQL Injection Vulnerability http://www.securityfocus.com/bid/14015 RaXnet Cacti Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/14027 RaXnet Cacti Config_Settings.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/14028 RaXnet Cacti Top_Graph_Header.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/14030 RaXnet Cacti Graph_Image.PHP Remote Command Execution Vulnerability http://www.securityfocus.com/bid/14042 Simple Machines Msg Parameter SQL Injection Vulnerability http://www.securityfocus.com/bid/14043 Whois.Cart Profile.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/14044 Whois.Cart Index.PHP Directory Traversal Vulnerability http://www.securityfocus.com/bid/14046 UBBCentral UBB.Threads Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/14050 UBBCentral UBB.Threads Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/14052 UBBCentral UBB.Threads Multiple HTTP Response Splitting Vulnerabilities http://www.securityfocus.com/bid/14053 UBBCentral UBB.Threads Local File Include Vulnerability http://www.securityfocus.com/bid/14055 PHP-Nuke Avatar HTML Injection Vulnerability http://www.securityfocus.com/bid/14056 -- 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 danielc at analysisandsolutions.com Fri Jul 8 15:38:34 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 8 Jul 2005 15:38:34 -0400 Subject: [nycphp-talk] Alerts from SecurityFocus Newsletter #306 Message-ID: <20050708193834.GA24948@panix.com> Alerts from SecurityFocus Newsletter #306 APPLICATIONS USING PHP ---------------------- XML-RPC for PHP Remote Code Injection Vulnerability http://www.securityfocus.com/bid/14088 Below is most of the software containing this vulnerability and which version fixes the problem: Serendipity 0.8.2 PEAR XML_RPC 1.3.1 (and 1.3.2 fixes additional vulnerabilities) XML-RPC for PHP 1.1.1 Drupal 4.6.2 or 4.5.4 Xoops 2.0.12a phpMyFAQ 1.4.9 or 1.5.0 RC5 WordPress 1.5.1.3 Nucleus CMS 3.21 phpAdsNew 2.0.5 phpPgAds 2.0.5 Drupal Arbitrary PHP Code Execution Vulnerability http://www.securityfocus.com/bid/14110 Mambo Open Source Multiple Unspecified Injection Vulnerabilities http://www.securityfocus.com/bid/14117 Mambo Open Source Session ID Spoofing Vulnerability http://www.securityfocus.com/bid/14119 Mambo Open Source MosDBTable Class Unspecified Vulnerability http://www.securityfocus.com/bid/14120 Xoops XMLRPC Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/14094 Xoops Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/14096 PHP-Fusion SUBMIT.PHP HTML Injection Vulnerabilities http://www.securityfocus.com/bid/14066 Mensajeitor IP Parameter HTML Injection Vulnerability http://www.securityfocus.com/bid/14071 WebCalendar Assistant_Edit.PHP Unauthorized Access Vulnerability http://www.securityfocus.com/bid/14072 UBBDesign JCDex Lite Index.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/14081 PHPBB Viewtopic.PHP Remote Code Execution Vulnerability http://www.securityfocus.com/bid/14086 Comdev eCommerce Review Form HTML Injection Vulnerability http://www.securityfocus.com/bid/14107 Pavsta Auto Site SitePath Remote File Include Vulnerability http://www.securityfocus.com/bid/14108 Comdev eCommerce Index.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/14109 OSTicket Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/14127 RaXnet Cacti Input Filter Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/14128 RaXnet Cacti Graph_Image.PHP Remote Command Execution Variant Vulnerability http://www.securityfocus.com/bid/14129 RaXnet Cacti Config.PHP Design Error Vulnerability http://www.securityfocus.com/bid/14130 RELATED STUFF ------------- Apache HTTP Request Smuggling Vulnerability http://www.securityfocus.com/bid/14106 -- 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 danielc at analysisandsolutions.com Fri Jul 8 15:39:17 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 8 Jul 2005 15:39:17 -0400 Subject: [nycphp-talk] Alerts from SecurityFocus Newsletter #304 Message-ID: <20050708193917.GC24948@panix.com> APPLICATIONS USING PHP ---------------------- Mambo Open Source Com_Contents SQL Injection Vulnerability http://www.securityfocus.com/bid/13966 SquirrelMail Multiple Unspecified Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/13973 osCommerce Multiple HTTP Response Splitting Vulnerabilities http://www.securityfocus.com/bid/13979 XAMMP Lang.PHP HTML Injection Vulnerability http://www.securityfocus.com/bid/13982 XAMMP Lang.PHP Directory Traversal Vulnerability http://www.securityfocus.com/bid/13983 Ajax-Spell HTML Tag Script Injection Vulnerability http://www.securityfocus.com/bid/13986 Ajax-Spell is a plugin for WordPress Singapore Image Gallery Index.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/13938 FusionBB Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/13939 Annuaire 1Two Commentaires.PHP Multiple HTML Injection Vulnerabilities http://www.securityfocus.com/bid/13960 Annuaire 1Two Index.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/13961 McGallery Lang Argument File Disclosure Vulnerability http://www.securityfocus.com/bid/13963 Bitrix Site Manager Remote File Include Vulnerability http://www.securityfocus.com/bid/13965 Ultimate PHP Board Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/13971 Ultimate PHP Board Weak Password Encryption Vulnerability http://www.securityfocus.com/bid/13975 ATutor Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/13972 RELATED STUFF ------------- Opera Web Browser Cross-Site Scripting Local File Disclosure Vulnerability http://www.securityfocus.com/bid/13969 Opera Web Browser XMLHttpRequest Object Cross-Domain Access Vulnerability http://www.securityfocus.com/bid/13970 -- 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 danielc at analysisandsolutions.com Fri Jul 8 16:04:25 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 8 Jul 2005 16:04:25 -0400 Subject: [nycphp-talk] RE: Sending OCI array through XML_RPC In-Reply-To: <11B62D16D13187468EEF6726E13214640E9B78@icbf-server1> References: <11B62D16D13187468EEF6726E13214640E9B78@icbf-server1> Message-ID: <20050708200425.GA25013@panix.com> On Tue, Jul 05, 2005 at 06:34:34PM +0100, Michael Lynch wrote: > I'm afraid I'm still stumped by converting a multi-row result into > something that XML_RPC can handle. // pseudo code $rows = array(); while ($rows[] = oci_fetch_array($stmt, OCI_ASSOC)); $params = array(XML_RPC_Encode($rows)); $msg = new XML_RPC_Message('somemethod', $params); --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 matt at jobsforge.com Fri Jul 8 18:15:27 2005 From: matt at jobsforge.com (Matthew Terenzio) Date: Fri, 8 Jul 2005 18:15:27 -0400 Subject: [nycphp-talk] PEAR Book In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358EF2579@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358EF2579@network.PLMresearch.com> Message-ID: <06fd705a372fe97621138a35b552ada6@jobsforge.com> On Jul 7, 2005, at 11:56 PM, Mark Withington wrote: > I like David Sklar's book, Essential PHP Tools. Pear and a whole lot > more. I second that. I'm using Pear a whole lot more since I read that. > > > -------------------------- > Mark L. Withington > PLMresearch > "eBusiness for the Midsize Enterprise" > PO Box 1354 > Plymouth, MA 02362 > o: 800-310-3992 ext. 704 > f: 508-746-4973 > v: 508-746-2383 > m: 508-801-0181 > http://www.PLMresearch.com > Netscape/AOL/MSN IM: PLMresearch > mwithington at plmresearch.com > Public Key: > http://www.plmdev.com/plmr/plmresearch.com/keys/MLW_public_key.asc > Calendar: http://www.plmdev.com/plmr/plmresearch.com/calendar.php > > > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Phil Duffy > Sent: Thursday, July 07, 2005 4:34 PM > To: 'NYPHP Talk' > Subject: [nycphp-talk] PEAR Book > > > The last time I looked at Amazon.com. there was only one book available > about PEAR, it was copyrighted in 2003 and focused only on DB. Is > there > anything more recent/comprehensive? > > Phil > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On > Behalf Of David Mintz > Sent: Thursday, July 07, 2005 12:55 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] PHP MYSQL Problems > > On Thu, 7 Jul 2005 atzeniantonello at bluewin.ch wrote: > >> As I told you I have problems with the folders FitAndFun and >> FitAndFun2 > the >> last one was redesigned by algozone.com. The site is: > www.swiss-supplements.ch >> , >> server address is: ftp://195.186.67.5/FitAndFun/admin >> Login: fitand >> Password: [*****] >> Let me know if you have any other questions. >> Thank you >> Antonello > > > Jeez! You might want to change that password real soon. > > --- > David Mintz > http://davidmintz.org/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From cmerlo441 at gmail.com Sat Jul 9 09:33:46 2005 From: cmerlo441 at gmail.com (Christopher Merlo) Date: Sat, 9 Jul 2005 09:33:46 -0400 Subject: [nycphp-talk] php rpm for RH 7.3? In-Reply-To: <330532b6050708094721df7ecf@mail.gmail.com> References: <20050708003038.55681.qmail@web30813.mail.mud.yahoo.com> <42CE8287.7060906@iifwp.org> <330532b6050708094721df7ecf@mail.gmail.com> Message-ID: <9465864805070906337756146b@mail.gmail.com> On 7/8/05, Mitch Pirtle wrote: > Ditto for debian, running source of PHP 5.0.4 on ubuntu because > working with the debs available was a complete disaster for me. I have to stand up for Debian, because I'm a fan. Debian stable, and even testing, are perfect server environments. Ubuntu was designed strictly for the user's desktop. You have to be careful which .deb files you use in Ubuntu, because mixing and matching Debian .debs and Ubuntu .debs can lead to nightmares. I've been running PHP, MySQL, and Apache, all from .debs, on a Debian stable system, for about 3.5 years now, with no complaints. This summer, I'm switching to testing, because it's that stable. Ubuntu is a pretty desktop toy (which I'm using right now as I type this e-mail on my laptop), but I would never use it on a server. -- cmerlo441 at gmail.com http://www.firstofthenext.com/ From preinheimer at gmail.com Sat Jul 9 12:30:11 2005 From: preinheimer at gmail.com (Paul Reinheimer) Date: Sat, 9 Jul 2005 12:30:11 -0400 Subject: [nycphp-talk] php rpm for RH 7.3? In-Reply-To: <9465864805070906337756146b@mail.gmail.com> References: <20050708003038.55681.qmail@web30813.mail.mud.yahoo.com> <42CE8287.7060906@iifwp.org> <330532b6050708094721df7ecf@mail.gmail.com> <9465864805070906337756146b@mail.gmail.com> Message-ID: <6ec19ec705070909303640bbda@mail.gmail.com> I to am a build from source person for the Apache/PHP/MySQL set. My argument in support of this decision (even on an RPM based distro) has a couple facets: 1. I've got my machine set up to automatically update RPMs when they become available, I don't want to do this for these three. If there's going to be a problem I want it to happen while I'm watching. 2. My configure command for PHP is kind of... long. I'm not even sure if I would get all this with the RPM: './configure' '--with-mysql=/usr/local/mysql' '--with-apxs=/etc/httpd/bin/apxs' '--with-gd' '--with-png' '--with-zlib-dir=/usr/local/zlib-1.2.2' '--enable-gd-native-ttf' '--with-ttf' '--with-jpeg-dir=/usr/local/lib/jpeg-6b/' '--with-freetype-dir=/usr/local/lib/freetype-2.1.9/' '--with-xpm-dir=/usr/X11R6/' '--with-tidy' '--with-curl' '--with-openssl=/usr/local/' '--enable-dba=shared' '--with-db4' 3. When I looked, I seem to recall having problems matching PHP 5.0.newest with Apache 1.3.newest. 4. Long configure commands aside, If I don't need it, I don't want it. It's only one more thing to worry about. I'm happy to let up2date manage the other stuff kicking around on the machine, but for the trio that make my webserver work, I'm going to stick with source. paul On 7/9/05, Christopher Merlo wrote: > On 7/8/05, Mitch Pirtle wrote: > > > Ditto for debian, running source of PHP 5.0.4 on ubuntu because > > working with the debs available was a complete disaster for me. > > I have to stand up for Debian, because I'm a fan. Debian stable, and > even testing, are perfect server environments. Ubuntu was designed > strictly for the user's desktop. You have to be careful which .deb > files you use in Ubuntu, because mixing and matching Debian .debs and > Ubuntu .debs can lead to nightmares. > > I've been running PHP, MySQL, and Apache, all from .debs, on a Debian > stable system, for about 3.5 years now, with no complaints. This > summer, I'm switching to testing, because it's that stable. Ubuntu is > a pretty desktop toy (which I'm using right now as I type this e-mail > on my laptop), but I would never use it on a server. > > -- > cmerlo441 at gmail.com > http://www.firstofthenext.com/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Paul Reinheimer Zend Certified Engineer From tom at supertom.com Sat Jul 9 12:54:26 2005 From: tom at supertom.com (Tom Melendez) Date: Sat, 09 Jul 2005 12:54:26 -0400 Subject: [nycphp-talk] php rpm for RH 7.3? In-Reply-To: <6ec19ec705070909303640bbda@mail.gmail.com> References: <20050708003038.55681.qmail@web30813.mail.mud.yahoo.com> <42CE8287.7060906@iifwp.org> <330532b6050708094721df7ecf@mail.gmail.com> <9465864805070906337756146b@mail.gmail.com> <6ec19ec705070909303640bbda@mail.gmail.com> Message-ID: <42D00142.9000007@supertom.com> Hey folks, It's so interesting how we all have similar reasons, yet different conclusions. My situation is a little different, so I thought I would share. I'm an RPM person, all the way. I believe in maintaining a large number of machines, you need to trust the distro. That doesn't mean you shouldn't run a test server and review the packages, however. Now for the difference in my situation: I work on an embedded product, which uses an old distro, so I NEED to build everything (well, alot of things) myself, and then package it myself as an RPM, as this software needs to go to many servers remotely. But frankly, I'd rather use the RPMs provided by the distro, as it scales much better, in terms of machines, and in terms of people (just give it to the system admin to install, no compiling necessary). Regarding the list below, here are my thoughts/experiences (I know you didn't ask!) 1. Agreed, run a test server, and install RPMs manually 2. many RPMs uses the "enable-all-modules" (I forget the flag), so you get all (if not all, alot) modules 3. I haven't heard this, but am using PHP 5.0.4 (actually just build 5.1beta yesterday) Apache 1.3.33 and the newest mod_ssl and it works fine so far. 4. Good point. I do this at the package level, however (don't install software you don't need, which may cause dependency issues, I know!) Just my two cents. Tom http://www.liphp.org Paul Reinheimer wrote: >I to am a build from source person for the Apache/PHP/MySQL set. My >argument in support of this decision (even on an RPM based distro) has >a couple facets: >1. I've got my machine set up to automatically update RPMs when they >become available, I don't want to do this for these three. If there's >going to be a problem I want it to happen while I'm watching. >2. My configure command for PHP is kind of... long. I'm not even sure >if I would get all this with the RPM: >'./configure' '--with-mysql=/usr/local/mysql' >'--with-apxs=/etc/httpd/bin/apxs' '--with-gd' '--with-png' >'--with-zlib-dir=/usr/local/zlib-1.2.2' '--enable-gd-native-ttf' >'--with-ttf' '--with-jpeg-dir=/usr/local/lib/jpeg-6b/' >'--with-freetype-dir=/usr/local/lib/freetype-2.1.9/' >'--with-xpm-dir=/usr/X11R6/' '--with-tidy' '--with-curl' >'--with-openssl=/usr/local/' '--enable-dba=shared' '--with-db4' >3. When I looked, I seem to recall having problems matching PHP >5.0.newest with Apache 1.3.newest. >4. Long configure commands aside, If I don't need it, I don't want it. >It's only one more thing to worry about. > >I'm happy to let up2date manage the other stuff kicking around on the >machine, but for the trio that make my webserver work, I'm going to >stick with source. > > > >paul > > > > >On 7/9/05, Christopher Merlo wrote: > > >>On 7/8/05, Mitch Pirtle wrote: >> >> >> >>>Ditto for debian, running source of PHP 5.0.4 on ubuntu because >>>working with the debs available was a complete disaster for me. >>> >>> >>I have to stand up for Debian, because I'm a fan. Debian stable, and >>even testing, are perfect server environments. Ubuntu was designed >>strictly for the user's desktop. You have to be careful which .deb >>files you use in Ubuntu, because mixing and matching Debian .debs and >>Ubuntu .debs can lead to nightmares. >> >>I've been running PHP, MySQL, and Apache, all from .debs, on a Debian >>stable system, for about 3.5 years now, with no complaints. This >>summer, I'm switching to testing, because it's that stable. Ubuntu is >>a pretty desktop toy (which I'm using right now as I type this e-mail >>on my laptop), but I would never use it on a server. >> >>-- >>cmerlo441 at gmail.com >>http://www.firstofthenext.com/ >>_______________________________________________ >>New York PHP Talk Mailing List >>AMP Technology >>Supporting Apache, MySQL and PHP >>http://lists.nyphp.org/mailman/listinfo/talk >>http://www.nyphp.org >> >> >> > > > > From ashaw at iifwp.org Sat Jul 9 13:23:46 2005 From: ashaw at iifwp.org (Allen Shaw) Date: Sat, 09 Jul 2005 13:23:46 -0400 Subject: [nycphp-talk] php rpm for RH 7.3? In-Reply-To: <42D00142.9000007@supertom.com> References: <20050708003038.55681.qmail@web30813.mail.mud.yahoo.com> <42CE8287.7060906@iifwp.org> <330532b6050708094721df7ecf@mail.gmail.com> <9465864805070906337756146b@mail.gmail.com> <6ec19ec705070909303640bbda@mail.gmail.com> <42D00142.9000007@supertom.com> Message-ID: <42D00822.5060100@iifwp.org> For what it's worth I did decide to go ahead with the source install... But I (doh!) didn't uninstall the existing rpms first. Oops. Most everything works fine still. Except pear. Except select calls through phpMyAdmin. But everything else... so far... Looks like I have something do keep me busy for another Saturday afternoon. Thanks for the input folks. - Allen From ashaw at iifwp.org Sat Jul 9 18:13:04 2005 From: ashaw at iifwp.org (Allen Shaw) Date: Sat, 09 Jul 2005 18:13:04 -0400 Subject: [nycphp-talk] php install: "can't find mysql headers" Message-ID: <42D04BF0.6040404@iifwp.org> Okay, I decided to go with a source install, and now I'm just confused. As I mentioned earlier I installed php 4.3.11 from source this morning without removing the existing php rpms, and I noticed that some things weren't working. So I went back and removed those rpms and tried to rebuild again, but the problems don't go away. The real problem I'm trying to solve is that apache (1.3) is consistently segfaulting on a few apparently randomly chosen calls. That is, I have a few links on my site that are garuanteed to cause a segmentation fault in apache, but it's seems oddly random why those links are broken and not any other. So I thought, maybe it's an arcane php bug; upgrade to latest and then submit a bug-report if necessary. Even stranger, now that I've upgraded, I get the *same* behavior, but on *different* links (including any select operations with phpMyAdmin, but not update, insert, etc., and not selects in other php scripts...) But my hope has been that, maybe, just maybe, there IS a bug in php's mysql support somewhere, and if I were to compile --with-mysql=/path/to/mysql-headers I might just be okay. But that seems a no-go, too. Using '--with-mysql=/usr/include/mysql' gets me the error 'Cannot find MySQL header files under /usr/include/mysql'; same for '--with-mysql=/usr/lib/mysql'. Those are the only two directories that rpm says contain files from the MySQL-devel package. And /usr/include/mysql does contain mysql.h . There are numerous discussions of this error message on the Web, but all the one's I've found seem to be either dead ends or just as trial-and-error as I am. So, banging my head again, I ask the group: what the heck am I doing wrong? (Even the most obscure hint would be appreciated...) Thanks, Allen -- =========================================================== Allen Shaw ashaw at iifwp.org IIFWP Data and 914.631.1331 x.106 IT Services http://www.iifwp.org From tom at supertom.com Sun Jul 10 09:35:00 2005 From: tom at supertom.com (Tom Melendez) Date: Sun, 10 Jul 2005 09:35:00 -0400 Subject: [nycphp-talk] php install: "can't find mysql headers" In-Reply-To: <42D04BF0.6040404@iifwp.org> References: <42D04BF0.6040404@iifwp.org> Message-ID: <42D12404.7050605@supertom.com> Hi Allen, Ok, here's an obscure suggestion: I'm not sure what the problem is, but you may want to take a look at the spec files for some PHP/MySQL RPMs, and see if that gives you any clues. Good Luck! Tom http://www.liphp.org Allen Shaw wrote: > Okay, I decided to go with a source install, and now I'm just > confused. As I mentioned earlier I installed php 4.3.11 from source > this morning without removing the existing php rpms, and I noticed > that some things weren't working. So I went back and removed those > rpms and tried to rebuild again, but the problems don't go away. > > The real problem I'm trying to solve is that apache (1.3) is > consistently segfaulting on a few apparently randomly chosen calls. > That is, I have a few links on my site that are garuanteed to cause a > segmentation fault in apache, but it's seems oddly random why those > links are broken and not any other. So I thought, maybe it's an > arcane php bug; upgrade to latest and then submit a bug-report if > necessary. Even stranger, now that I've upgraded, I get the *same* > behavior, but on *different* links (including any select operations > with phpMyAdmin, but not update, insert, etc., and not selects in > other php scripts...) > > But my hope has been that, maybe, just maybe, there IS a bug in php's > mysql support somewhere, and if I were to compile > --with-mysql=/path/to/mysql-headers I might just be okay. But that > seems a no-go, too. > > Using '--with-mysql=/usr/include/mysql' gets me the error 'Cannot find > MySQL header files under /usr/include/mysql'; same for > '--with-mysql=/usr/lib/mysql'. Those are the only two directories > that rpm says contain files from the MySQL-devel package. And > /usr/include/mysql does contain mysql.h . > > There are numerous discussions of this error message on the Web, but > all the one's I've found seem to be either dead ends or just as > trial-and-error as I am. > > So, banging my head again, I ask the group: what the heck am I doing > wrong? (Even the most obscure hint would be appreciated...) > > Thanks, > Allen > From damovand at yahoo.com Sun Jul 10 11:20:20 2005 From: damovand at yahoo.com (Leila Lappin) Date: Sun, 10 Jul 2005 08:20:20 -0700 (PDT) Subject: [nycphp-talk] php install: "can't find mysql headers" In-Reply-To: <42D04BF0.6040404@iifwp.org> Message-ID: <20050710152020.25059.qmail@web30801.mail.mud.yahoo.com> --- Allen Shaw wrote: > Okay, I decided to go with a source install, and now > I'm just confused. > As I mentioned earlier I installed php 4.3.11 from > source this morning > without removing the existing php rpms, and I > noticed that some things > weren't working. So I went back and removed those > rpms and tried to > rebuild again, but the problems don't go away. > > The real problem I'm trying to solve is that apache > (1.3) is > consistently segfaulting on a few apparently > randomly chosen calls. > That is, I have a few links on my site that are > garuanteed to cause a > segmentation fault in apache, but it's seems oddly > random why those > links are broken and not any other. So I thought, > maybe it's an arcane > php bug; upgrade to latest and then submit a > bug-report if necessary. > Even stranger, now that I've upgraded, I get the > *same* behavior, but on > *different* links (including any select operations > with phpMyAdmin, but > not update, insert, etc., and not selects in other > php scripts...) > > But my hope has been that, maybe, just maybe, there > IS a bug in php's > mysql support somewhere, and if I were to compile > --with-mysql=/path/to/mysql-headers I might just be > okay. But that > seems a no-go, too. > > Using '--with-mysql=/usr/include/mysql' gets me the > error 'Cannot find > MySQL header files under /usr/include/mysql'; same > for > '--with-mysql=/usr/lib/mysql'. Those are the only > two directories that > rpm says contain files from the MySQL-devel package. > And > /usr/include/mysql does contain mysql.h . > > There are numerous discussions of this error message > on the Web, but all > the one's I've found seem to be either dead ends or > just as > trial-and-error as I am. > > So, banging my head again, I ask the group: what the > heck am I doing > wrong? (Even the most obscure hint would be > appreciated...) > > Thanks, > Allen > > -- > =========================================================== > Allen Shaw > ashaw at iifwp.org > IIFWP Data and > 914.631.1331 x.106 > IT Services > http://www.iifwp.org > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > Hi, Segfaul error (or segmentation fault) occurs when a bogus address is being referenced. More specific to your case when apache is looking for something at an address that is no longer holding that information. This error will also occur if two binaries being linked together are compiled with two different versions of the compiler. All and all I think this error could be the result of you old version of PHP prevents the newer version from being identified. I am assuming that?s what you mean by ?without removing existing php rpms?. The fix may be tricky, I would first try to uninstall the old version of the PHP (rpm commands and options) and then try to re-install the new version of PHP from source. ____________________________________________________ Sell on Yahoo! Auctions ? no fees. Bid on great items. http://auctions.yahoo.com/ From danielc at analysisandsolutions.com Sun Jul 10 11:33:11 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 10 Jul 2005 11:33:11 -0400 Subject: [nycphp-talk] php install: "can't find mysql headers" In-Reply-To: <42D04BF0.6040404@iifwp.org> References: <42D04BF0.6040404@iifwp.org> Message-ID: <20050710153311.GA9337@panix.com> On Sat, Jul 09, 2005 at 06:13:04PM -0400, Allen Shaw wrote: > > Using '--with-mysql=/usr/include/mysql' gets me the error 'Cannot find > MySQL header files under /usr/include/mysql'; same for > '--with-mysql=/usr/lib/mysql'. Those are the only two directories that > rpm says contain files from the MySQL-devel package. And > /usr/include/mysql does contain mysql.h . Did you install the "Libraries and header files" RPM (MySQL-devel-4.1.12-1.i386.rpm)? How about the "Client programs" (MySQL-client-4.1.12-1.i386.rpm) and "Server" (MySQL-server-4.1.12-1.i386.rpm)? --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 mitch.pirtle at gmail.com Sun Jul 10 11:51:05 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sun, 10 Jul 2005 11:51:05 -0400 Subject: [nycphp-talk] Re: [mambo] Howto add session variables to Mambo 4.5.x In-Reply-To: <42D13F77.5040600@cyberxdesigns.com> References: <42CF62CF.3040202@cyberxdesigns.com> <330532b6050709213274540cda@mail.gmail.com> <42D13F77.5040600@cyberxdesigns.com> Message-ID: <330532b605071008516861a571@mail.gmail.com> On 7/10/05, Hans C. Kaspersetz wrote: > Just to clarify my position, I am not complaining about the current > implementation. Well, I am ;-) -- Mitch Pirtle Mambo Core Developer From damovand at yahoo.com Sun Jul 10 14:21:54 2005 From: damovand at yahoo.com (Leila Lappin) Date: Sun, 10 Jul 2005 11:21:54 -0700 (PDT) Subject: [nycphp-talk] php install: "can't find mysql headers" In-Reply-To: <42D04BF0.6040404@iifwp.org> Message-ID: <20050710182154.97955.qmail@web30811.mail.mud.yahoo.com> --- Allen Shaw wrote: > Okay, I decided to go with a source install, and now > I'm just confused. > As I mentioned earlier I installed php 4.3.11 from > source this morning > without removing the existing php rpms, and I > noticed that some things > weren't working. So I went back and removed those > rpms and tried to > rebuild again, but the problems don't go away. > > The real problem I'm trying to solve is that apache > (1.3) is > consistently segfaulting on a few apparently > randomly chosen calls. > That is, I have a few links on my site that are > garuanteed to cause a > segmentation fault in apache, but it's seems oddly > random why those > links are broken and not any other. So I thought, > maybe it's an arcane > php bug; upgrade to latest and then submit a > bug-report if necessary. > Even stranger, now that I've upgraded, I get the > *same* behavior, but on > *different* links (including any select operations > with phpMyAdmin, but > not update, insert, etc., and not selects in other > php scripts...) > > But my hope has been that, maybe, just maybe, there > IS a bug in php's > mysql support somewhere, and if I were to compile > --with-mysql=/path/to/mysql-headers I might just be > okay. But that > seems a no-go, too. > > Using '--with-mysql=/usr/include/mysql' gets me the > error 'Cannot find > MySQL header files under /usr/include/mysql'; same > for > '--with-mysql=/usr/lib/mysql'. Those are the only > two directories that > rpm says contain files from the MySQL-devel package. > And > /usr/include/mysql does contain mysql.h . > > There are numerous discussions of this error message > on the Web, but all > the one's I've found seem to be either dead ends or > just as > trial-and-error as I am. > > So, banging my head again, I ask the group: what the > heck am I doing > wrong? (Even the most obscure hint would be > appreciated...) > > Thanks, > Allen > > -- > =========================================================== > Allen Shaw > ashaw at iifwp.org > IIFWP Data and > 914.631.1331 x.106 > IT Services > http://www.iifwp.org > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > Allen, I?m not sure if this will help you or not, but it seems to me that the problems you have listed are two different ones. The one with apache occurs at link time. Apache is looking for something at an address that's illegal; doesn't exist or doesn't have the correct size. The header not found problem is happening at compile time. It seems that the makefile is not finding the headers where it expects them to be. Both could be as the result of mismatched versions; one version is looking for something in a directory that is not provided by the other version. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From lists at zaunere.com Sun Jul 10 14:55:26 2005 From: lists at zaunere.com (Hans Zaunere) Date: Sun, 10 Jul 2005 14:55:26 -0400 Subject: [nycphp-talk] php install: "can't find mysql headers" In-Reply-To: <42D04BF0.6040404@iifwp.org> Message-ID: <0MKyxe-1Drgxa2GLw-0006Hf@mrelay.perfora.net> > Okay, I decided to go with a source install, and now I'm just confused. > As I mentioned earlier I installed php 4.3.11 from source this morning > without removing the existing php rpms, and I noticed that some things > weren't working. So I went back and removed those rpms and tried to > rebuild again, but the problems don't go away. > > The real problem I'm trying to solve is that apache (1.3) is > consistently segfaulting on a few apparently randomly chosen calls. > That is, I have a few links on my site that are garuanteed to cause a > segmentation fault in apache, but it's seems oddly random why those > links are broken and not any other. So I thought, maybe it's an arcane > php bug; upgrade to latest and then submit a bug-report if necessary. > Even stranger, now that I've upgraded, I get the *same* behavior, but on > *different* links (including any select operations with phpMyAdmin, but > not update, insert, etc., and not selects in other php scripts...) > > But my hope has been that, maybe, just maybe, there IS a bug in php's Hmm, unlikely - at least for something this simple. It's probably a cross compile/RPM issue/version mismatch. > mysql support somewhere, and if I were to compile > --with-mysql=/path/to/mysql-headers I might just be okay. But that > seems a no-go, too. > > Using '--with-mysql=/usr/include/mysql' gets me the error 'Cannot find > MySQL header files under /usr/include/mysql'; same for > '--with-mysql=/usr/lib/mysql'. Those are the only two directories that > rpm says contain files from the MySQL-devel package. And > /usr/include/mysql does contain mysql.h . So you have the RPMs of MySQL installed? And you've also installed the libs/headers/shared libs/ RPMs from mysql.com, right? Just to be overly certain, you also have all the same version number and playform, right? Before installing them, remove all MySQL or PHP RPMs. rpm -qa | grep -i mysql rpm -qa | grep -i php Then of course rpm -e each one. Once you seem to have things settled on that end, install the MySQL rpms. And probably wouldn't hurt to run ldconfig and check ldconfig -p to make sure the libs are installed and ready to be found (ie, they are listed). Now you can compile PHP, specifying the base path of the MySQL install,: --with-mysql=/usr Give that a try and see if it helps. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From phil at bearingasset.com Sun Jul 10 17:48:27 2005 From: phil at bearingasset.com (Phil Duffy) Date: Sun, 10 Jul 2005 17:48:27 -0400 Subject: [nycphp-talk] PEAR Book In-Reply-To: <06fd705a372fe97621138a35b552ada6@jobsforge.com> Message-ID: <20050710214833.A32AAA85F3@virtu.nyphp.org> Thanks Matt. That makes the case for Sklar's book. Phil -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Matthew Terenzio Sent: Friday, July 08, 2005 5:15 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PEAR Book On Jul 7, 2005, at 11:56 PM, Mark Withington wrote: > I like David Sklar's book, Essential PHP Tools. Pear and a whole lot > more. I second that. I'm using Pear a whole lot more since I read that. > > > -------------------------- > Mark L. Withington > PLMresearch > "eBusiness for the Midsize Enterprise" > PO Box 1354 > Plymouth, MA 02362 > o: 800-310-3992 ext. 704 > f: 508-746-4973 > v: 508-746-2383 > m: 508-801-0181 > http://www.PLMresearch.com > Netscape/AOL/MSN IM: PLMresearch > mwithington at plmresearch.com > Public Key: > http://www.plmdev.com/plmr/plmresearch.com/keys/MLW_public_key.asc > Calendar: http://www.plmdev.com/plmr/plmresearch.com/calendar.php > > > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Phil Duffy > Sent: Thursday, July 07, 2005 4:34 PM > To: 'NYPHP Talk' > Subject: [nycphp-talk] PEAR Book > > > The last time I looked at Amazon.com. there was only one book available > about PEAR, it was copyrighted in 2003 and focused only on DB. Is > there > anything more recent/comprehensive? > > Phil > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On > Behalf Of David Mintz > Sent: Thursday, July 07, 2005 12:55 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] PHP MYSQL Problems > > On Thu, 7 Jul 2005 atzeniantonello at bluewin.ch wrote: > >> As I told you I have problems with the folders FitAndFun and >> FitAndFun2 > the >> last one was redesigned by algozone.com. The site is: > www.swiss-supplements.ch >> , >> server address is: ftp://195.186.67.5/FitAndFun/admin >> Login: fitand >> Password: [*****] >> Let me know if you have any other questions. >> Thank you >> Antonello > > > Jeez! You might want to change that password real soon. > > --- > David Mintz > http://davidmintz.org/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From acas at sapo.pt Sun Jul 10 18:46:43 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Sun, 10 Jul 2005 23:46:43 +0100 Subject: [nycphp-talk] [OT]Active Grid Message-ID: Hello PPL, Did any of you, gentlepeople, had the chance to fiddle around with Active Grid ( www.activegrid.com)? I would like to get some input on it and also some enlightment as to where to find the appropriate literature to all those standards... If you feel it's too OT just PM me outside the list. Thanks. -- Alberto dos Santos email: acas at sapo.pt skype: fatflash Este email e seus anexos est?o protegidos de v?rus e programas maliciosos. Se notar algo de anormal por favor informe-me. Obrigado. This email and it?s attachments are protected from virus and malicious software. If you notice something unusual please report. Thanks. Este email y sus anexos est?n protegidos contra virus y software mal?volo. Si usted nota algo inusual por favor divulgar. Gracias. Ces email et c'est des attachements sont prot?g?s contre le virus et le logiciel malveillant. Si vous notez quelque chose de peu commun svp pour rapporter. Merci. Questi email ? su collegamenti sono protetti dal virus e dal software cattivo. Se notate qualche cosa di insolito prego segnalare. Grazie. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashaw at iifwp.org Sun Jul 10 22:28:33 2005 From: ashaw at iifwp.org (Allen Shaw) Date: Sun, 10 Jul 2005 22:28:33 -0400 Subject: [nycphp-talk] php install: "can't find mysql headers" References: <0MKyxe-1Drgxa2GLw-0006Hf@mrelay.perfora.net> Message-ID: <000701c585c0$3ffa23e0$6801a8c0@allen> Oh, boy, what a bunch of quality advice. Hans (and a couple of others I guess) hit it on the head: > It's probably a cross > compile/RPM issue/version mismatch. I had mismatching versions of the mysql rpms -- something like devel-4.0.25, server-4.0.22, client-4.0.22. Like Hans suggested, I wiped 'em all out, installed new packages (all 4.0.25) from MySQL AB, and recompiled PHP. Configure ('--with-mysql=/usr') ran without a hitch, as did the rest of the install. Ace the installation problem. Restart apache, and the segfaults go away, too, at least all the ones I've noticed so far. Ace the segfault problem. This is great to know. From what I saw on the web, these problems (apparently random segfaults from php/mysql; and "cannot find headers" in php compile) have hit a number of people, and none of them were lucky enough to find solutions this quickly; nobody suggested this cause to them, at least not in the online discussions. Hopefully the next guy will either google up this list archive or have the good fortune of knowing a few folks who know their stuff. Thanks much, Allen ----- Original Message ----- From: "Hans Zaunere" To: "'NYPHP Talk'" Sent: Sunday, July 10, 2005 2:55 PM Subject: RE: [nycphp-talk] php install: "can't find mysql headers" > > > Okay, I decided to go with a source install, and now I'm just confused. > > As I mentioned earlier I installed php 4.3.11 from source this morning > > without removing the existing php rpms, and I noticed that some things > > weren't working. So I went back and removed those rpms and tried to > > rebuild again, but the problems don't go away. > > > > The real problem I'm trying to solve is that apache (1.3) is > > consistently segfaulting on a few apparently randomly chosen calls. > > That is, I have a few links on my site that are garuanteed to cause a > > segmentation fault in apache, but it's seems oddly random why those > > links are broken and not any other. So I thought, maybe it's an arcane > > php bug; upgrade to latest and then submit a bug-report if necessary. > > Even stranger, now that I've upgraded, I get the *same* behavior, but on > > *different* links (including any select operations with phpMyAdmin, but > > not update, insert, etc., and not selects in other php scripts...) > > > > But my hope has been that, maybe, just maybe, there IS a bug in php's > > Hmm, unlikely - at least for something this simple. It's probably a cross > compile/RPM issue/version mismatch. > > > mysql support somewhere, and if I were to compile > > --with-mysql=/path/to/mysql-headers I might just be okay. But that > > seems a no-go, too. > > > > Using '--with-mysql=/usr/include/mysql' gets me the error 'Cannot find > > MySQL header files under /usr/include/mysql'; same for > > '--with-mysql=/usr/lib/mysql'. Those are the only two directories that > > rpm says contain files from the MySQL-devel package. And > > /usr/include/mysql does contain mysql.h . > > So you have the RPMs of MySQL installed? And you've also installed the > libs/headers/shared libs/ RPMs from mysql.com, right? Just to be overly > certain, you also have all the same version number and playform, right? > > Before installing them, remove all MySQL or PHP RPMs. > > rpm -qa | grep -i mysql > rpm -qa | grep -i php > > Then of course rpm -e each one. > > Once you seem to have things settled on that end, install the MySQL rpms. > And probably wouldn't hurt to run ldconfig and check ldconfig -p to make > sure the libs are installed and ready to be found (ie, they are listed). > > Now you can compile PHP, specifying the base path of the MySQL install,: > > --with-mysql=/usr > > Give that a try and see if it helps. > > > --- > Hans Zaunere > President, Founder > > New York PHP > http://www.nyphp.org > > AMP Technology > Supporting Apache, MySQL and PHP > > > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From lists at zaunere.com Mon Jul 11 10:15:21 2005 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 11 Jul 2005 10:15:21 -0400 Subject: [nycphp-talk] [OT]Active Grid In-Reply-To: Message-ID: <0MKyxe-1Drz452m38-0004k0@mrelay.perfora.net> Hi Albertos, I haven?t played with the software, but we did have them come in and give a presentation: http://www.nyphp.org/content/presentations/ All the stuff is online there (given on Jan). They have a number of technologies, but at that time I believe their primary platform was Python. Perhaps they?ve added PHP by now ? I?d be interested to hear if others have played with it too. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Alberto dos Santos Sent: Sunday, July 10, 2005 6:47 PM To: 'NYPHP Talk' Subject: [nycphp-talk] [OT]Active Grid Hello PPL, Did any of you, gentlepeople, had the chance to fiddle around with Active Grid ( www.activegrid.com)? I would like to get some input on it and also some enlightment as to where to find the appropriate literature to all those standards... If you feel it's too OT just PM me outside the list. Thanks. -- Alberto dos Santos email: acas at sapo.pt skype: fatflash Este email e seus anexos est?o protegidos de v?rus e programas maliciosos. Se notar algo de anormal por favor informe-me. Obrigado. This email and it?s attachments are protected from virus and malicious software. If you notice something unusual please report. Thanks. Este email y sus anexos est?n protegidos contra virus y software mal?volo. Si usted nota algo inusual por favor divulgar. Gracias. Ces email et c'est des attachements sont prot?g?s contre le virus et le logiciel malveillant. Si vous notez quelque chose de peu commun svp pour rapporter. Merci. Questi email ? su collegamenti sono protetti dal virus e dal software cattivo. Se notate qualche cosa di insolito prego segnalare. Grazie. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Mon Jul 11 10:17:04 2005 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 11 Jul 2005 10:17:04 -0400 Subject: [nycphp-talk] php install: "can't find mysql headers" In-Reply-To: <000701c585c0$3ffa23e0$6801a8c0@allen> Message-ID: <0MKyxe-1Drz5k2JSE-0004wn@mrelay.perfora.net> > Oh, boy, what a bunch of quality advice. Hans (and a couple of others I > guess) hit it on the head: > > It's probably a cross > > compile/RPM issue/version mismatch. > > I had mismatching versions of the mysql rpms -- something like devel- > 4.0.25, > server-4.0.22, client-4.0.22. Like Hans suggested, I wiped 'em all out, > installed new packages (all 4.0.25) from MySQL AB, and recompiled PHP. > Configure ('--with-mysql=/usr') ran without a hitch, as did the rest of > the > install. Ace the installation problem. Restart apache, and the segfaults > go away, too, at least all the ones I've noticed so far. Ace the segfault > problem. > > This is great to know. From what I saw on the web, these problems > (apparently random segfaults from php/mysql; and "cannot find headers" in > php compile) have hit a number of people, and none of them were lucky > enough > to find solutions this quickly; nobody suggested this cause to them, at > least not in the online discussions. Hopefully the next guy will either > google up this list archive or have the good fortune of knowing a few > folks > who know their stuff. Happy it worked out. Version mismatch problems are an often cause for segfaults. If you have any notes/articles written up, we can get them online at nyphp.org too. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From ashaw at iifwp.org Mon Jul 11 17:00:14 2005 From: ashaw at iifwp.org (Allen Shaw) Date: Mon, 11 Jul 2005 17:00:14 -0400 Subject: [nycphp-talk] php install: "can't find mysql headers" References: <0MKyxe-1Drz5k2JSE-0004wn@mrelay.perfora.net> Message-ID: <001201c5865b$8cb8e2c0$6801a8c0@allen> ----- Original Message ----- From: "Hans Zaunere" > Happy it worked out. Version mismatch problems are an often cause for > segfaults. If you have any notes/articles written up, we can get them > online at nyphp.org too. Yes, it's a great idea. I will try to transcribe a few notes and get them to you -- hopefully we can make it less of a mystery for future readers. Thanks, Allen From chucksmith at fun-electronics.com Mon Jul 11 19:18:09 2005 From: chucksmith at fun-electronics.com (chucksmith at fun-electronics.com) Date: Mon, 11 Jul 2005 19:18:09 -0400 Subject: [nycphp-talk] finding an affiliate program in php Message-ID: <1121123889.42d2fe31b2665@webmail.fun-electronics.com> Hi, I came to the recent meeting at IBM on Madison Ave and decided to sign up for the PHP talk list. I run an e-commerce website at www.fun-electronics.com and I need to set up an affiliate program. We want to give 5% commission to people who send customers who buy from our site. It seems like it would be much better to take a script that someone else has written instead of trying to write my own. Does anyone have any recommendation of open source scripts or even commercial programs they would recommend? We're running PHP 4.3.11 and MySQL 4.1.7 on FreeBSD 5.3. I wrote my own shopping cart, so it seems like it would be easy to customize it to work with an affiliate script. Thank you, Chuck Smith ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From codebowl at gmail.com Mon Jul 11 19:20:16 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 11 Jul 2005 19:20:16 -0400 Subject: [nycphp-talk] finding an affiliate program in php In-Reply-To: <1121123889.42d2fe31b2665@webmail.fun-electronics.com> References: <1121123889.42d2fe31b2665@webmail.fun-electronics.com> Message-ID: <8d9a4280050711162021d86638@mail.gmail.com> have you tried sites like cgi.resourceindex.comand www.hotscripts.com ? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at plexpod.com Mon Jul 11 21:34:09 2005 From: andrew at plexpod.com (Andrew Yochum) Date: Mon, 11 Jul 2005 21:34:09 -0400 Subject: [nycphp-talk] finding an affiliate program in php In-Reply-To: <1121123889.42d2fe31b2665@webmail.fun-electronics.com> References: <1121123889.42d2fe31b2665@webmail.fun-electronics.com> Message-ID: <4AAD4DFE-F0B6-4452-8BEA-1526ED8827FB@plexpod.com> Hi Chuck, On Jul 11, 2005, at 7:18 PM, chucksmith at fun-electronics.com wrote: > Hi, > > I came to the recent meeting at IBM on Madison Ave and decided to > sign up for > the PHP talk list. I run an e-commerce website at www.fun- > electronics.com and Welcome to the list. We met briefly @ TGIF. > I need to set up an affiliate program. We want to give 5% > commission to people > who send customers who buy from our site. It seems like it would > be much better > to take a script that someone else has written instead of trying to > write my > own. Does anyone have any recommendation of open source scripts or > even > commercial programs they would recommend? We're running PHP 4.3.11 > and MySQL > 4.1.7 on FreeBSD 5.3. I'm sure you could do this with an app, but the process of cutting checks each month wouldn't interest me. My clients who've setup affiliate programs use one of the major commercial networks. I can't recommend any one in particular as I don't operate sites, just implement. I've implemented commercial solutions for a number of clients. Here are some of those my clients have chosen: http://www.cj.com/ http://www.myaffiliateprogram.com/ http://www.directtrack.com/ http://www.linkshare.com/ > I wrote my own shopping cart, so it seems like it would be easy to > customize it > to work with an affiliate script. They're usually very easy to implement, with or without a custom cart. HTH, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From 1j0lkq002 at sneakemail.com Mon Jul 11 23:14:27 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: 11 Jul 2005 23:14:27 -0400 Subject: [nycphp-talk] finding an affiliate program in php Message-ID: <6237-20647@sneakemail.com> As an active affiliate, I can say that choosing a network as middleman means you will miss many 'super affiliates'. I will rarely work with CJ or LS, although Shareasale has some attraction. Definitely self-managed is most attractive to those affiliates seriously into the game, if not the only option. The closer the marketer can get to the business decision maker, the better the bait for supers. -----Original Message----- From: Andrew Yochum andrew-at-plexpod.com |nyphp dev/internal group use| Date: 7/11/05 9:34 pm To: NYPHP Talk , chucksmith at fun-electronics.com Subj: Re: [nycphp-talk] finding an affiliate program in php Hi Chuck, On Jul 11, 2005, at 7:18 PM, chucksmith at fun-electronics.com wrote: > Hi, > > I came to the recent meeting at IBM on Madison Ave and decided to > sign up for > the PHP talk list. I run an e-commerce website at www.fun- > electronics.com and Welcome to the list. We met briefly @ TGIF. > I need to set up an affiliate program. We want to give 5% > commission to people > who send customers who buy from our site. It seems like it would > be much better > to take a script that someone else has written instead of trying to > write my > own. Does anyone have any recommendation of open source scripts or > even > commercial programs they would recommend? We're running PHP 4.3.11 > and MySQL > 4.1.7 on FreeBSD 5.3. I'm sure you could do this with an app, but the process of cutting checks each month wouldn't interest me. My clients who've setup affiliate programs use one of the major commercial networks. I can't recommend any one in particular as I don't operate sites, just implement. I've implemented commercial solutions for a number of clients. Here are some of those my clients have chosen: http://www.cj.com/ http://www.myaffiliateprogram.com/ http://www.directtrack.com/ http://www.linkshare.com/ > I wrote my own shopping cart, so it seems like it would be easy to > customize it > to work with an affiliate script. They're usually very easy to implement, with or without a custom cart. HTH, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From list at harveyk.com Tue Jul 12 10:44:31 2005 From: list at harveyk.com (harvey) Date: Tue, 12 Jul 2005 10:44:31 -0400 Subject: [nycphp-talk] Sssllloooowww Query Message-ID: <6.1.0.6.2.20050712101400.030dbcc8@pop.earthlink.net> Hi NYPHP, I've got some code that works, but it's pretty slllooooww... There are about 4,000 bands in the overall list, and we're displaying them all, so I'm sure that's part of it. But I have a feeling the major slowdown is the loop in the middle that checks to see if the band is performing in the selected concert. Are there any obvious modifications to the code that would speed it up a bit? I tried a foreach loop on $row_showbands instead of the do-while on $showbands, but couldn't quite get it to work properly. I think the reset was not working? Thanks in advance... Harvey This query gets the full list of band names to display alphabetically. This query gets the id's of the particular bands in the selected concert. This query shows the full list of bands in a list box, with the specific concert bands highlighted. From codebowl at gmail.com Tue Jul 12 10:48:23 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 12 Jul 2005 10:48:23 -0400 Subject: [nycphp-talk] Sssllloooowww Query In-Reply-To: <6.1.0.6.2.20050712101400.030dbcc8@pop.earthlink.net> References: <6.1.0.6.2.20050712101400.030dbcc8@pop.earthlink.net> Message-ID: <8d9a4280050712074857ba3cca@mail.gmail.com> 4000 bands in a drop down box, are you crazy? i would make the user choose a state or city then only show the relevant ones to make your query faster. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at n0p.net Tue Jul 12 11:21:52 2005 From: nyphp at n0p.net (Flavio daCosta) Date: Tue, 12 Jul 2005 11:21:52 -0400 Subject: [nycphp-talk] Sssllloooowww Query In-Reply-To: <6.1.0.6.2.20050712101400.030dbcc8@pop.earthlink.net> References: <6.1.0.6.2.20050712101400.030dbcc8@pop.earthlink.net> Message-ID: <42D3E010.6030005@n0p.net> On 07/12/2005 10:44 AM, harvey wrote: > I've got some code that works, but it's pretty slllooooww... > --snip-- Unless I am missing something here, cant you just simplify it with a LEFT JOIN and use only 1 result set? -- untested -- SELECT ms.subcat_id, ms.subcat_name, msab.show_fid FROM music_subcats AS ms LEFT JOIN music_showsandbands as msab ON (ms.subcat_id = msab.band_fid AND msab.show_fid = $id) ORDER BY ms.subcat_name ASC Then something like: while ($row = mysql_fetch_assoc($allbands)) { $format = ''; $selected = $row['show_fid'] > 0 ? ' selected' : ''; printf($format, $row['subcat_id'], $selected, $row['subcat_name'] ); } -- untested -- Forgive me if I totally missed the boat on this one ;) Flavio From list at harveyk.com Tue Jul 12 11:49:09 2005 From: list at harveyk.com (harvey) Date: Tue, 12 Jul 2005 11:49:09 -0400 Subject: [nycphp-talk] Sssllloooowww Query In-Reply-To: <8d9a4280050712074857ba3cca@mail.gmail.com> References: <6.1.0.6.2.20050712101400.030dbcc8@pop.earthlink.net> <8d9a4280050712074857ba3cca@mail.gmail.com> Message-ID: <6.1.0.6.2.20050712114656.03098e80@mail.harveyk.com> It's not for the user, it's for the admin to select bands when he is entering a new show. Believe it or not, they're all bands that have performed in NYC over the past few months. And even the slow query only takes about 6 seconds to load. But, yes, I am crazy. At 10:48 AM 7/12/2005, you wrote: >4000 bands in a drop down box, are you crazy? > >i would make the user choose a state or city then only show the relevant >ones to make your query faster. > >-- >Joseph Crawford Jr. >Codebowl Solutions, Inc. >1-802-671-2021 >codebowl at gmail.com >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaron at aarond.com Tue Jul 12 11:52:25 2005 From: aaron at aarond.com (aaron at aarond.com) Date: Tue, 12 Jul 2005 11:52:25 -0400 Subject: [nycphp-talk] Sssllloooowww Query In-Reply-To: <6.1.0.6.2.20050712114656.03098e80@mail.harveyk.com> References: <6.1.0.6.2.20050712101400.030dbcc8@pop.earthlink.net> <8d9a4280050712074857ba3cca@mail.gmail.com> <6.1.0.6.2.20050712114656.03098e80@mail.harveyk.com> Message-ID: <42D3E739.6060807@aarond.com> Maybe print the results in sets in an iframe. Just have the admin enter a list of id's in the form. harvey wrote: > It's not for the user, it's for the admin to select bands when he is > entering a new show. > > Believe it or not, they're all bands that have performed in NYC over the > past few months. > > And even the slow query only takes about 6 seconds to load. > > But, yes, I am crazy. > > > > > At 10:48 AM 7/12/2005, you wrote: > >> 4000 bands in a drop down box, are you crazy? >> >> i would make the user choose a state or city then only show the >> relevant ones to make your query faster. >> >> -- >> Joseph Crawford Jr. >> Codebowl Solutions, Inc. >> 1-802-671-2021 >> codebowl at gmail.com >> _______________________________________________ >> New York PHP Talk Mailing List >> AMP Technology >> Supporting Apache, MySQL and PHP >> http://lists.nyphp.org/mailman/listinfo/talk >> http://www.nyphp.org > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From fields at hedge.net Tue Jul 12 11:57:48 2005 From: fields at hedge.net (Adam Fields) Date: Tue, 12 Jul 2005 11:57:48 -0400 Subject: [nycphp-talk] Sssllloooowww Query In-Reply-To: <6.1.0.6.2.20050712114656.03098e80@mail.harveyk.com> References: <6.1.0.6.2.20050712101400.030dbcc8@pop.earthlink.net> <8d9a4280050712074857ba3cca@mail.gmail.com> <6.1.0.6.2.20050712114656.03098e80@mail.harveyk.com> Message-ID: <20050712155748.GG31271@lola.aquick.org> On Tue, Jul 12, 2005 at 11:49:09AM -0400, harvey wrote: > It's not for the user, it's for the admin to select bands when he is > entering a new show. Still - break it up alphabetically or something. Actually, this is a perfect opportunity for you to try out that XmlHttpRequest object you've been dying to use. A few other suggestions: 1) Yes, use an outer join as previously suggested. 2) Make sure you check your indexes. 3) Is the query taking a long time, or is the page taking a long time to build/load? That's important to know. > Believe it or not, they're all bands that have performed in NYC over the > past few months. > > And even the slow query only takes about 6 seconds to load. > > But, yes, I am crazy. > > > > > At 10:48 AM 7/12/2005, you wrote: > > >4000 bands in a drop down box, are you crazy? > > > >i would make the user choose a state or city then only show the relevant > >ones to make your query faster. > > > >-- > >Joseph Crawford Jr. > >Codebowl Solutions, Inc. > >1-802-671-2021 > >codebowl at gmail.com > >_______________________________________________ > >New York PHP Talk Mailing List > >AMP Technology > >Supporting Apache, MySQL and PHP > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.nyphp.org > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org -- - Adam ** I can fix your database problems: http://www.everylastounce.com/mysql.html ** Blog............... [ http://www.aquick.org/blog ] Links.............. [ http://del.icio.us/fields ] Photos............. [ http://www.flickr.com/photos/fields ] Experience......... [ http://www.adamfields.com/resume.html ] Product Reviews: .. [ http://www.buyadam.com/blog ] From chucksmith at fun-electronics.com Tue Jul 12 18:54:41 2005 From: chucksmith at fun-electronics.com (chucksmith at fun-electronics.com) Date: Tue, 12 Jul 2005 18:54:41 -0400 Subject: [nycphp-talk] finding an affiliate program in php In-Reply-To: <4AAD4DFE-F0B6-4452-8BEA-1526ED8827FB@plexpod.com> References: <1121123889.42d2fe31b2665@webmail.fun-electronics.com> <4AAD4DFE-F0B6-4452-8BEA-1526ED8827FB@plexpod.com> Message-ID: <1121208881.42d44a318f36f@webmail.fun-electronics.com> Thanks everyone for all of your help. I think we are going to go with iDevAffiliate from idevdirect.com which I found through hotscripts.com. Sincerely, Chuck Smith Fun Electronics, Inc. www.fun-electronics.com ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From henry at beewh.com Wed Jul 13 11:15:17 2005 From: henry at beewh.com (Henry Ponce) Date: Wed, 13 Jul 2005 12:15:17 -0300 Subject: [nycphp-talk] different sites, one database Message-ID: <200507131215.18205.henry@beewh.com> Hello all: I've been trying to solve this on my own with no luck. I can't seem to find the answer on google. I get different problems/solutions but not the answer to what I want to do. Maybe someone here can help me or point me in the right direction. Here's what I need to do... I have a dedicated server with different sites hosted, each with their own mysql database which I connect to perfectly in my php scripts, using "localhost" as the server in the mysql_connect() function. The sites are for example...site1.com, site2.com, site3.com. Well, now I need to connect to a mysql database on site1.com that holds information that is usefull and needed for most sites. I need to do this on scripts that run on site2.com and site3.com. How can I connect to the mysql database on site1.com, when I am running a script on site2.com or site3.com? I can't use "localhost" as the server in the mysql_connect() function in the scripts on site2.com or site3.com, because I would be connecting to the mysql database, on each site, which I understand. Help!! Thank you in advance and I hope my explanation was clear. Henry From fields at hedge.net Wed Jul 13 11:33:22 2005 From: fields at hedge.net (Adam Fields) Date: Wed, 13 Jul 2005 11:33:22 -0400 Subject: [nycphp-talk] different sites, one database In-Reply-To: <200507131215.18205.henry@beewh.com> References: <200507131215.18205.henry@beewh.com> Message-ID: <20050713153322.GR31271@lola.aquick.org> On Wed, Jul 13, 2005 at 12:15:17PM -0300, Henry Ponce wrote: > Well, now I need to connect to a mysql database on site1.com that holds > information that is usefull and needed for most sites. I need to do this on > scripts that run on site2.com and site3.com. > > How can I connect to the mysql database on site1.com, when I am running a > script on site2.com or site3.com? > > I can't use "localhost" as the server in the mysql_connect() function in the > scripts on site2.com or site3.com, because I would be connecting to the mysql > database, on each site, which I understand. That depends. Are these actually the same database with different logins? That's probably the case, in which case you >can< use localhost, and just change the login info. If they're different databases, you should be able to substitute "site1.com" or "site2.com" or whatever for "localhost", assuming the db is set up to listen on ips other than 127.0.0.1 (which it probably shouldn't be, but probably is). Do site1.com, site2.com, etc... all resolve to the same IP address? -- - Adam ** I can fix your database problems: http://www.everylastounce.com/mysql.html ** Blog............... [ http://www.aquick.org/blog ] Links.............. [ http://del.icio.us/fields ] Photos............. [ http://www.flickr.com/photos/fields ] Experience......... [ http://www.adamfields.com/resume.html ] Product Reviews: .. [ http://www.buyadam.com/blog ] From acas at sapo.pt Wed Jul 13 11:43:51 2005 From: acas at sapo.pt (Alberto) Date: Wed, 13 Jul 2005 16:43:51 +0100 Subject: [nycphp-talk] different sites, one database In-Reply-To: <200507131215.18205.henry@beewh.com> References: <200507131215.18205.henry@beewh.com> Message-ID: <1121269432.831.10.camel@localhost.localdomain> On Wed, 2005-07-13 at 12:15 -0300, Henry Ponce wrote: > Hello all: > > I've been trying to solve this on my own with no luck. I can't seem to find > the answer on google. I get different problems/solutions but not the answer > to what I want to do. Maybe someone here can help me or point me in the right > direction. That's what we're here for. > > Here's what I need to do... > > I have a dedicated server with different sites hosted, each with their own > mysql database which I connect to perfectly in my php scripts, using > "localhost" as the server in the mysql_connect() function. > > The sites are for example...site1.com, site2.com, site3.com. > > Well, now I need to connect to a mysql database on site1.com that holds > information that is usefull and needed for most sites. I need to do this on > scripts that run on site2.com and site3.com. > > How can I connect to the mysql database on site1.com, when I am running a > script on site2.com or site3.com? > > I can't use "localhost" as the server in the mysql_connect() function in the > scripts on site2.com or site3.com, because I would be connecting to the mysql > database, on each site, which I understand. Easy. First, I assume you have configured MySQL to allow different users to each database, right? If not so, please do, either by using a graphical tool like phpMyAdmin, or by hand, see the MySQL Manual. Second, maybe first, nevermind that, you have ONE machine with all the sites inside, right? Having checked this, you WILL connect to server "localhost" because it is the only server you have, no matter how many databases it serves. Now, on your scripts, if you do not use a DBAL (database abstraction layer) in which case you should consider either using an existing one, or writting one (as I do), you only have to invoque the database with mysql_connect: mysql_connect("localhost",USER,PASSWORD); // USER and PASSWORD MUST be the ones allowed to access the database you want. mysql_select_db(DATABASE); And Query it... With this you should be on your way. > > Help!! > > Thank you in advance and I hope my explanation was clear. > > Henry You're welcome. Alberto dos Santos email: acas at sapo.pt skype: fatflash -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From henry at beewh.com Wed Jul 13 11:46:08 2005 From: henry at beewh.com (Henry Ponce) Date: Wed, 13 Jul 2005 12:46:08 -0300 Subject: [nycphp-talk] different sites, one database In-Reply-To: <20050713153322.GR31271@lola.aquick.org> References: <200507131215.18205.henry@beewh.com> <20050713153322.GR31271@lola.aquick.org> Message-ID: <200507131246.08823.henry@beewh.com> On Wednesday 13 July 2005 12:33, Adam Fields wrote: > On Wed, Jul 13, 2005 at 12:15:17PM -0300, Henry Ponce wrote: > > Well, now I need to connect to a mysql database on site1.com that holds > > information that is usefull and needed for most sites. I need to do this > > on scripts that run on site2.com and site3.com. > > > > How can I connect to the mysql database on site1.com, when I am running a > > script on site2.com or site3.com? > > > > I can't use "localhost" as the server in the mysql_connect() function in > > the scripts on site2.com or site3.com, because I would be connecting to > > the mysql database, on each site, which I understand. > > That depends. Are these actually the same database with different > logins? That's probably the case, in which case you >can< use > localhost, and just change the login info. > > If they're different databases, you should be able to substitute > "site1.com" or "site2.com" or whatever for "localhost", assuming the > db is set up to listen on ips other than 127.0.0.1 (which it probably > shouldn't be, but probably is). > > Do site1.com, site2.com, etc... all resolve to the same IP address? They do. They all resolve the same IP address. And they are different databases. I tried substituting "localhost" for "site1.com" and got an error: Warning: mysql_connect(): Access denied for user: 'henry at site1.com' (Using password: YES) in /home/httpd/vhosts/site2.com/httpdocs/mysql_test.php on line 22 Thanx... Henry From matt at atopia.net Wed Jul 13 12:04:56 2005 From: matt at atopia.net (Matt Juszczak) Date: Wed, 13 Jul 2005 12:04:56 -0400 Subject: [nycphp-talk] different sites, one database In-Reply-To: <200507131246.08823.henry@beewh.com> References: <200507131215.18205.henry@beewh.com> <20050713153322.GR31271@lola.aquick.org> <200507131246.08823.henry@beewh.com> Message-ID: <42D53BA8.2020409@atopia.net> >They do. They all resolve the same IP address. > >And they are different databases. I tried substituting "localhost" for >"site1.com" and got an error: > >Warning: mysql_connect(): Access denied for user: 'henry at site1.com' (Using >password: YES) in /home/httpd/vhosts/site2.com/httpdocs/mysql_test.php on >line 22 > >Thanx... >Henry > > Can you please send us your mysql_connect() (just comment out the password) -Matt From henry at beewh.com Wed Jul 13 12:14:44 2005 From: henry at beewh.com (Henry Ponce) Date: Wed, 13 Jul 2005 13:14:44 -0300 Subject: [nycphp-talk] different sites, one database In-Reply-To: <42D53BA8.2020409@atopia.net> References: <200507131215.18205.henry@beewh.com> <200507131246.08823.henry@beewh.com> <42D53BA8.2020409@atopia.net> Message-ID: <200507131314.44992.henry@beewh.com> Sure: the script to test is running in: http://www.chess.ac/mysql_test.php You can see the errors i get there. from www.chess.ac, I want to connect to a database in www.calchess.org. Both these sites are on the same server (same IP). And here is the mysql_test.php code (I hope it is not too much, if it is, sorry....) '; } mysql_close($dbh); // connect to calchess.org database $host = "calchess.org"; $user = "chesshustler"; $pass = ""; $link = mysql_connect($host, $user, $pass); $db = "chessdb"; mysql_select_db($db); $q = 'select * from chess_bio_invited'; $res = mysql_query($q); echo 'CALCHESS DATA'; echo '
'; while ($row = mysql_fetch_array($res)){ echo $row["user_id"]; echo '
'; } mysql_close($link); ?> Thank you all for your help. Henry From matt at atopia.net Wed Jul 13 12:36:02 2005 From: matt at atopia.net (Matt Juszczak) Date: Wed, 13 Jul 2005 12:36:02 -0400 Subject: [nycphp-talk] different sites, one database In-Reply-To: <200507131314.44992.henry@beewh.com> References: <200507131215.18205.henry@beewh.com> <200507131246.08823.henry@beewh.com> <42D53BA8.2020409@atopia.net> <200507131314.44992.henry@beewh.com> Message-ID: <42D542F2.7040605@atopia.net> I'm thinking this has something to do with the hosts, or the actual usernames. What about a: use mysql; select * from user; you dont ha\ve to actually paste that, but look in there and see if you notice what the source's are setup as. -Matt From mike.johnson at wagner.edu Wed Jul 13 12:56:07 2005 From: mike.johnson at wagner.edu (Michael Johnson) Date: Wed, 13 Jul 2005 12:56:07 -0400 Subject: [nycphp-talk] different sites, one database In-Reply-To: <42D54669.2050803@wagner.edu> References: <200507131215.18205.henry@beewh.com> <200507131246.08823.henry@beewh.com> <42D53BA8.2020409@atopia.net> <200507131314.44992.henry@beewh.com> <42D542F2.7040605@atopia.net> <42D54669.2050803@wagner.edu> Message-ID: <42D547A7.4020901@wagner.edu> sounds like a mysql permissions problem, try this: use mysql; grant all privileges on .* to @'%' identified by 'password'; if you're using PHP4: set password for @'%'=OLD_PASSWORD('password'); obviously set DB_NAME,DB_USER and password to your values; p.s. you should also set a test for a successful connection before trying to select, query, etc.: $conn = mysql_connect(....); if (!conn) die "Could not connect to database $db_name REASON:".mysql_error(); From dmintz at davidmintz.org Wed Jul 13 13:01:38 2005 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 13 Jul 2005 13:01:38 -0400 (EDT) Subject: [nycphp-talk] different sites, one database In-Reply-To: <42D547A7.4020901@wagner.edu> References: <200507131215.18205.henry@beewh.com> <200507131246.08823.henry@beewh.com> <42D53BA8.2020409@atopia.net> <200507131314.44992.henry@beewh.com> <42D542F2.7040605@atopia.net> <42D54669.2050803@wagner.edu> <42D547A7.4020901@wagner.edu> Message-ID: On Wed, 13 Jul 2005, Michael Johnson wrote: > sounds like a mysql permissions problem, try this: > > use mysql; > grant all privileges on .* to @'%' identified by > 'password'; > ... followed by "flush privileges;" --- David Mintz http://davidmintz.org/ From mike.johnson at wagner.edu Wed Jul 13 13:04:28 2005 From: mike.johnson at wagner.edu (Michael Johnson) Date: Wed, 13 Jul 2005 13:04:28 -0400 Subject: [nycphp-talk] different sites, one database In-Reply-To: References: <200507131215.18205.henry@beewh.com> <200507131246.08823.henry@beewh.com> <42D53BA8.2020409@atopia.net> <200507131314.44992.henry@beewh.com> <42D542F2.7040605@atopia.net> <42D54669.2050803@wagner.edu> <42D547A7.4020901@wagner.edu> Message-ID: <42D5499C.8090801@wagner.edu> David Mintz wrote: >On Wed, 13 Jul 2005, Michael Johnson wrote: > > > >>sounds like a mysql permissions problem, try this: >> >>use mysql; >>grant all privileges on .* to @'%' identified by >>'password'; >> >> >> > >... followed by "flush privileges;" > >--- >David Mintz >http://davidmintz.org/ >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > Oh yeah, whoops! Good catch. -- Michael Johnson Web: Systems Administrator/Programmer Wagner College mike.johnson at wagner.edu 718-420-4425 From henry at beewh.com Wed Jul 13 13:34:27 2005 From: henry at beewh.com (Henry Ponce) Date: Wed, 13 Jul 2005 14:34:27 -0300 Subject: [nycphp-talk] different sites, one database In-Reply-To: <42D5499C.8090801@wagner.edu> References: <200507131215.18205.henry@beewh.com> <42D5499C.8090801@wagner.edu> Message-ID: <200507131434.27798.henry@beewh.com> Ok worked the other way around. i can connect from chess.ac to any other site in database just with "localhost". look: www.chess.ac/mysql_test.php This connects to www.calchess.org database correctly from chess.ac script. But I can't connect from any other site to chess.ac. I checked user table in mysql database and there is a row that has: Host: 127.0.0.1 User: chess_ac This will not let me connect to chess.ac from another site right? no other sites have this. Can i delete that row, without affecting database access? There is another row: Host: localhost User: chess_ac I should leave only that? Thank you all for your help. Henry From dmintz at davidmintz.org Wed Jul 13 14:37:53 2005 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 13 Jul 2005 14:37:53 -0400 (EDT) Subject: [nycphp-talk] different sites, one database In-Reply-To: <200507131434.27798.henry@beewh.com> References: <200507131215.18205.henry@beewh.com> <42D5499C.8090801@wagner.edu> <200507131434.27798.henry@beewh.com> Message-ID: Actually I will be joining Henry in waiting with bated breathe for the answer to a question similar to this one. I have gotten what I thought was screwy behavior when there were rows in mysql.user that had the same value for user but different values for host. Connection from one host would work but not the other, as thought the first matching row mysql encounters were overshadowing the second. Can you or can you not have two users 'foo', one of which has host 'host1' and the other of which has 'host2' and have both be able to connect from their respective hosts? (And I am talking about doing this through GRANT statements rather than updating the user table directly). On Wed, 13 Jul 2005, Henry Ponce wrote: > [...] > But I can't connect from any other site to chess.ac. I checked user table in > mysql database and there is a row that has: > > Host: 127.0.0.1 > User: chess_ac > > This will not let me connect to chess.ac from another site right? no other > sites have this. Can i delete that row, without affecting database access? > > There is another row: > Host: localhost > User: chess_ac > > I should leave only that? --- David Mintz http://davidmintz.org/ From patrick at ramsden.com Wed Jul 13 15:05:01 2005 From: patrick at ramsden.com (Patrick Ramsden) Date: Wed, 13 Jul 2005 14:05:01 -0500 Subject: [nycphp-talk] different sites, one database In-Reply-To: Message-ID: <47qfdc$1nj8jm@smtp04.mrf.mail.rcn.net> Check out http://dev.mysql.com/doc/mysql/en/access-denied.html. There's a bullet point mid-way down and a user comment that could be helpful. Henry, can you post the error you're getting again and all the user name / host combinations from the user table? -Pat > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Mintz > Sent: Wednesday, July 13, 2005 1:38 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] different sites, one database > > > Actually I will be joining Henry in waiting with bated breathe for the > answer to a question similar to this one. I have gotten what > I thought was > screwy behavior when there were rows in mysql.user that had > the same value > for user but different values for host. Connection from one host would > work but not the other, as thought the first matching row > mysql encounters > were overshadowing the second. > > Can you or can you not have two users 'foo', one of which has > host 'host1' > and the other of which has 'host2' and have both be able to > connect from > their respective hosts? (And I am talking about doing this > through GRANT > statements rather than updating the user table directly). > > > On Wed, 13 Jul 2005, Henry Ponce wrote: > > > [...] > > But I can't connect from any other site to chess.ac. I > checked user table in > > mysql database and there is a row that has: > > > > Host: 127.0.0.1 > > User: chess_ac > > > > This will not let me connect to chess.ac from another site > right? no other > > sites have this. Can i delete that row, without affecting > database access? > > > > There is another row: > > Host: localhost > > User: chess_ac > > > > I should leave only that? > > --- > David Mintz > http://davidmintz.org/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From rolson at aeso.org Wed Jul 13 20:59:19 2005 From: rolson at aeso.org (Rick Olson) Date: Wed, 13 Jul 2005 17:59:19 -0700 Subject: [nycphp-talk] PHP MYSQL Problems In-Reply-To: <42BC92550005B6A1@mssbzhh-int.msg.bluewin.ch> References: <42BC92550005B6A1@mssbzhh-int.msg.bluewin.ch> Message-ID: <42D5B8E7.8020904@aeso.org> *gasp* For future reference, it's often times better to send a private email with confidential information like this... as opposed to mailing to a list that gets read by 21439218749 people. Especially for a commerce site. Rick Olson deviantART, Inc. http://www.deviantart.com atzeniantonello at bluewin.ch wrote: >Hi Anirudh Zala, > >As I told you I have problems with the folders FitAndFun and FitAndFun2 the >last one was redesigned by algozone.com. The site is: www.swiss-supplements.ch >, >server address is: ftp://195.186.67.5/FitAndFun/admin >Login: fitand >Password: 22332233 >Let me know if you have any other questions. >Thank you >Antonello > > > > > > >>-- Messaggio originale -- >>From: "Anirudh Zala (Gmail)" >>To: "NYPHP Talk" >>Subject: Re: [nycphp-talk] PHP MYSQL Problems >>Date: Thu, 7 Jul 2005 09:57:02 +0530 >>Reply-To: NYPHP Talk >> >> >>>From my investigation it seems that your php script is "exiting" before >>it >>can output something back to server and then to browser. Your webserver >> >> >is > > >>working since request goes to proper place (as I can see icon logo in >>address bar). >> >>Further investigation tells that you have used directive to >> >> >host > > >>....swiss-supp... website and your Document Root for ....swiss-supp... >>website is SOME_WEBROOT/ FitAndFun2/ and here is problem. So please check >>that necessary pages exist there. I need to check "index.php" or similar >>file that loads first when this ....swiss-supp.... website is called. >> >>Then I called url like http://www.swiss-supplements.ch/list.php directly >>(list.php I just tried to check whether php support is there or not) and >>it >>output like " No input file specified. " that means PHP support is there. >>So >>now I am sure that your script "index.php" (or any other files that is being >>included in this script) has problem somewhere. >> >>Sometimes it happens that when you upgrade your original software by adding >>third party code, and you don't take care about necessary values & >>parameters like Host name, Db name, Password etc. then called script (that >>is part of third party) tends to Exit without further execution. For example >>in each php script we include "config.inc" to provide necessary variables >>about Db, Server, Userid Password etc. and there are most probably some >> >> >kind > > >>of validation mechanism/functionality to check whether all critical values >>are available for each script or not, and once that mechanism/functionality >>fails there, it terminates whole script and output "some/no messages" about >>relevant error. So please check whether you have configured all parameters >>and values that are required to run your script successfully. >> >>Thanks >> >>Anirudh Zala >> >>----- Original Message ----- >>From: >>To: >>Sent: Thursday, July 07, 2005 1:19 AM >>Subject: [nycphp-talk] PHP MYSQL Problems >> >> >> >> >>>Hi, >>>I Have two web site on one server I can see only one >>> >>> >>(www.fitandfun-sportsupplements.ch), >> >> >>>I made a redesigne from algozone.com and from then I cannot see the other >>>site (www.swiss-supplements.ch) they sed to me there is a problem with >>> >>> >>php >> >> >>>but they cannot do anything to fix it. From my team support they don't >>> >>> >>undertand >> >> >>>what append, so there is someone can please HELP ME!!! I will send all >>> >>> >>the >> >> >>>information and posswords for the server, the site is a oscommerce >>> >>> >>e-commerce, >> >> >>>is my job I really need to fix the problem!! Please and sorry about my >>> >>> >>english. >> >> >>>Reardes. >>>Antonello Atzeni. >>> >>>Fine del messaggio allegato >>> >>>_______________________________________________ >>>New York PHP Talk Mailing List >>>AMP Technology >>>Supporting Apache, MySQL and PHP >>>http://lists.nyphp.org/mailman/listinfo/talk >>>http://www.nyphp.org >>> >>> >>_______________________________________________ >>New York PHP Talk Mailing List >>AMP Technology >>Supporting Apache, MySQL and PHP >>http://lists.nyphp.org/mailman/listinfo/talk >>http://www.nyphp.org >> >> > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > > > From tgales at tgaconnect.com Thu Jul 14 09:01:55 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 14 Jul 2005 09:01:55 -0400 Subject: [nycphp-talk] different sites, one database In-Reply-To: References: <200507131215.18205.henry@beewh.com> <42D5499C.8090801@wagner.edu> <200507131434.27798.henry@beewh.com> Message-ID: <42D66243.6050808@tgaconnect.com> David Mintz writes: > ... > answer to a question similar to this one. I have gotten what I thought was > screwy behavior when there were rows in mysql.user that had the same value > for user but different values for host. Connection from one host would > work but not the other, as thought the first matching row mysql encounters > were overshadowing the second. > > Can you or can you not have two users 'foo', one of which has host 'host1' > and the other of which has 'host2' and have both be able to connect from > their respective hosts? (And I am talking about doing this through GRANT > statements rather than updating the user table directly). > Yes. (see 5.6.5. Access Control, Stage 1: Connection Verification in the manual) " It is a common misconception to think that, for a given username, all entries that explicitly name that user are used first when the server attempts to find a match for the connection." "f you are able to connect to the server, but your privileges are not what you expect, you probably are being authenticated as some other account. " Basically MySQL orders the host user combination from the most specific (restrictive) to the most general (like entries with wildcard characters) It uses the first combination which would allow a connection. This can cause uexpected results if you login successfully under a different authentication record than you were meaning to. The manual suggests using 'CURRENT_USER()' to help explain what's happening. -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From tgales at tgaconnect.com Thu Jul 14 09:05:55 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 14 Jul 2005 09:05:55 -0400 Subject: [nycphp-talk] different sites, one database In-Reply-To: <42D66243.6050808@tgaconnect.com> References: <200507131215.18205.henry@beewh.com> <42D5499C.8090801@wagner.edu> <200507131434.27798.henry@beewh.com> <42D66243.6050808@tgaconnect.com> Message-ID: <42D66333.60107@tgaconnect.com> Tim Gales wrote: >> Can you or can you not have two users 'foo', one of which has host >> 'host1' >> and the other of which has 'host2' and have both be able to connect from >> their respective hosts? >> > Yes. I meant to say: yes you can Tim G. From dmintz at davidmintz.org Thu Jul 14 09:45:10 2005 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 14 Jul 2005 09:45:10 -0400 (EDT) Subject: [nycphp-talk] different sites, one database In-Reply-To: <42D66333.60107@tgaconnect.com> References: <200507131215.18205.henry@beewh.com> <42D5499C.8090801@wagner.edu> <200507131434.27798.henry@beewh.com> <42D66243.6050808@tgaconnect.com> <42D66333.60107@tgaconnect.com> Message-ID: On Thu, 14 Jul 2005, Tim Gales wrote: > Tim Gales wrote: > > >> Can you or can you not have two users 'foo', one of which has host > >> 'host1' > >> and the other of which has 'host2' and have both be able to connect from > >> their respective hosts? > >> > > Yes. > > I meant to say: yes you can Ha! I inferred as much. Gracias por iluminarme, David --- David Mintz http://davidmintz.org/ From jsiegel1 at optonline.net Thu Jul 14 10:00:40 2005 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 14 Jul 2005 10:00:40 -0400 Subject: [nycphp-talk] IE on MAC...problem with SSL Message-ID: <0IJM000NXEXGKZ61@mta5.srv.hcvlny.cv.net> The SSL connection for the URL below doesn't work on a MAC with IE (ver. 5.0) (works well with Safari, though). Any clues as to why this might be the issue? Of course...it works on a PC with either IE or Firefox. https://www.ceonlinecenter.com/sign_up.php Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Thu Jul 14 10:57:23 2005 From: chsnyder at gmail.com (csnyder) Date: Thu, 14 Jul 2005 10:57:23 -0400 Subject: [nycphp-talk] IE on MAC...problem with SSL In-Reply-To: <0IJM000NXEXGKZ61@mta5.srv.hcvlny.cv.net> References: <0IJM000NXEXGKZ61@mta5.srv.hcvlny.cv.net> Message-ID: Do you have the usual BrowserMatch IE fix in your ssl.conf? BrowserMatch MSIE nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 From jsiegel1 at optonline.net Thu Jul 14 11:16:22 2005 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 14 Jul 2005 11:16:22 -0400 Subject: [nycphp-talk] IE on MAC...problem with SSL In-Reply-To: Message-ID: <0IJM00BFAIFMHPW3@mta4.srv.hcvlny.cv.net> Ain't got it. I assume this is the fix: http://www.modssl.org/docs/2.6/ssl_faq.html#io-ie Jeff -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of csnyder Sent: Thursday, July 14, 2005 9:57 AM To: NYPHP Talk Subject: Re: [nycphp-talk] IE on MAC...problem with SSL Do you have the usual BrowserMatch IE fix in your ssl.conf? BrowserMatch MSIE nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0 _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From cliff at pinestream.com Thu Jul 14 12:08:10 2005 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 14 Jul 2005 12:08:10 -0400 Subject: [nycphp-talk] Optimal Object, property, variable passing strategy between classes Message-ID: <002401c5888e$3b13e3e0$11a8a8c0@cliff> This may be a newbie question, but I am confused regarding the most optimal way to pass information between classes, especially if I want access to a variable, say for example a product name to be used in an email alert, but don't need to modify it. I come across this situation frequently when one class becomes bloated and I decide to split it off into several more logically partitioned classes. If I use arguments in functions, I believe the values are copied, which would seem to be slow. As one function calls another function and so on, it seems like needless copies of a variable are made. If I use & reference, there's no copy, but now the variable is "exposed" to change. If I pass an object by reference, there's no copy, but once again, the properties are "exposed" and I still have the copy propagation problem with multiple nested function calls. Would the best way be to pass an object in the argument of the constructor to capture values for all function within the new class? Thanks in advance. Cliff Hirsch -------------- next part -------------- An HTML attachment was scrubbed... URL: From damovand at yahoo.com Thu Jul 14 14:47:02 2005 From: damovand at yahoo.com (Leila Lappin) Date: Thu, 14 Jul 2005 11:47:02 -0700 (PDT) Subject: [nycphp-talk] Optimal Object, property, variable passing strategy between classes In-Reply-To: <002401c5888e$3b13e3e0$11a8a8c0@cliff> Message-ID: <20050714184702.73941.qmail@web30811.mail.mud.yahoo.com> --- Cliff Hirsch wrote: > This may be a newbie question, but I am confused > regarding the most > optimal way to pass information between classes, > especially if I want > access to a variable, say for example a product name > to be used in an > email alert, but don't need to modify it. I come > across this situation > frequently when one class becomes bloated and I > decide to split it off > into several more logically partitioned classes. > > If I use arguments in functions, I believe the > values are copied, which > would seem to be slow. As one function calls another > function and so on, > it seems like needless copies of a variable are > made. If I use & > reference, there's no copy, but now the variable is > "exposed" to change. > If I pass an object by reference, there's no copy, > but once again, the > properties are "exposed" and I still have the copy > propagation problem > with multiple nested function calls. Would the best > way be to pass an > object in the argument of the constructor to capture > values for all > function within the new class? > > Thanks in advance. > Cliff Hirsch > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org The points that you are making are valid, but the alternative to passing information as parameters is to use global variables. Using global variables negates one of the major advantages of OO programming, that is encapsulation. In C++ we used be able to declare a parameter as constant and prevent it from being modified. I’m not sure if ‘const’ness is possible in PHP. ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs From chsnyder at gmail.com Thu Jul 14 15:04:35 2005 From: chsnyder at gmail.com (csnyder) Date: Thu, 14 Jul 2005 15:04:35 -0400 Subject: [nycphp-talk] Optimal Object, property, variable passing strategy between classes In-Reply-To: <20050714184702.73941.qmail@web30811.mail.mud.yahoo.com> References: <002401c5888e$3b13e3e0$11a8a8c0@cliff> <20050714184702.73941.qmail@web30811.mail.mud.yahoo.com> Message-ID: On 7/14/05, Leila Lappin wrote: > In C++ we used be able to declare a > parameter as constant and prevent it from being > modified. I'm not sure if > 'const'ness is possible in PHP. Oh yeah, check out define(). define( 'WEB_ROOT', '/var/www/html' ); From cliff at pinestream.com Thu Jul 14 15:11:56 2005 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 14 Jul 2005 15:11:56 -0400 Subject: [nycphp-talk] Optimal Object, property, variable passing strategy between classes In-Reply-To: Message-ID: <001e01c588a7$e759dfb0$11a8a8c0@cliff> Sounds like passing arguments is the best way, or if speed is really a concern, passing by reference while being really careful. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of csnyder Sent: Thursday, July 14, 2005 3:05 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Optimal Object, property,variable passing strategy between classes On 7/14/05, Leila Lappin wrote: > In C++ we used be able to declare a > parameter as constant and prevent it from being > modified. I'm not sure if > 'const'ness is possible in PHP. Oh yeah, check out define(). define( 'WEB_ROOT', '/var/www/html' ); _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From nyphp at n0p.net Thu Jul 14 15:26:32 2005 From: nyphp at n0p.net (Flavio daCosta) Date: Thu, 14 Jul 2005 15:26:32 -0400 Subject: [nycphp-talk] Optimal Object, property, variable passing strategy between classes In-Reply-To: <002401c5888e$3b13e3e0$11a8a8c0@cliff> References: <002401c5888e$3b13e3e0$11a8a8c0@cliff> Message-ID: <42D6BC68.5060808@n0p.net> here is my $.02 Of course everything really depends on each individual scenario, but here goes: On 07/14/2005 12:08 PM, Cliff Hirsch wrote: > --snip -- > If I use arguments in functions, I believe the values are copied, which > would seem to be slow. As one function calls another function and so on, > it seems like needless copies of a variable are made. If I use & > reference, there's no copy, but now the variable is "exposed" to change. Variables: If you have many that you are passing, I would encapsulate them in an object otherwise I would copy if I was concerned about tampering and reference if variable data is large. > If I pass an object by reference, there's no copy, but once again, the > properties are "exposed" and I still have the copy propagation problem > with multiple nested function calls. If you have accessors methods, you _should_ be able to protect against un-authorized changes, no? > Would the best way be to pass an > object in the argument of the constructor to capture values for all > function within the new class? I find passing an object in the constructor works well, especially for substituting the _passed_ object with a mock object in order to test. You could also utilize the Singleton Design pattern. YMMV Flavio From dmintz at davidmintz.org Thu Jul 14 15:48:36 2005 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 14 Jul 2005 15:48:36 -0400 (EDT) Subject: [nycphp-talk] Optimal Object, property, variable passing strategy between classes In-Reply-To: <42D6BC68.5060808@n0p.net> References: <002401c5888e$3b13e3e0$11a8a8c0@cliff> <42D6BC68.5060808@n0p.net> Message-ID: On Thu, 14 Jul 2005, Flavio daCosta wrote: > On 07/14/2005 12:08 PM, Cliff Hirsch wrote: > > Variables: If you have many that you are passing, I would encapsulate > them in an object otherwise I would copy if I was concerned about > tampering and reference if variable data is large. > > > If I pass an object by reference, there's no copy, but once again, the > > properties are "exposed" and I still have the copy propagation problem > > with multiple nested function calls. > > If you have accessors methods, you _should_ be able to protect against > un-authorized changes, no? We didn't ask him if he was in PHP 4 or 5. In any case, doesn't PHP's copy-on-write behavior at least mitigate the overhead problem? IOW you don't have to worry about pass-by-copy eating too much memory unless the data is changed on the receiving end. > > You could also utilize the Singleton Design pattern. ... which is a piece of cake in PHP 5. --- David Mintz http://davidmintz.org/ From cliff at pinestream.com Thu Jul 14 16:27:31 2005 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 14 Jul 2005 16:27:31 -0400 Subject: [nycphp-talk] Optimal Object, property, variable passing strategybetween classes In-Reply-To: Message-ID: <002301c588b2$764f1e60$11a8a8c0@cliff> Thanks David: I am using PHP 5 and should have read this chapter more completely! PHP 5 Object, Patterns, and Practice: Page 141, "The Singleton Pattern, The global variable is one of the great bugbears of OOP..." More bedtime reading... Plus for ready only, copy-on-write behavior would eliminate the overhead problem. Since we have that licked, another question. I have not been able to find canned functions for turning a MySQL DB linked list (id, description, parent id) into an array tree. Managing categories seems like such a popular task, that I'm surprised that I have not found standard functions for the front-end, back-end admin. Etc. Has anyone tried PEAR HTML_TreeMenu or Tree (which at 0.2.4 (beta) released on 2003-03-17 does not seem very active) to do this? -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Mintz Sent: Thursday, July 14, 2005 3:49 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Optimal Object, property, variable passing strategybetween classes On Thu, 14 Jul 2005, Flavio daCosta wrote: > On 07/14/2005 12:08 PM, Cliff Hirsch wrote: > > Variables: If you have many that you are passing, I would encapsulate > them in an object otherwise I would copy if I was concerned about > tampering and reference if variable data is large. > > > If I pass an object by reference, there's no copy, but once again, > > the properties are "exposed" and I still have the copy propagation > > problem with multiple nested function calls. > > If you have accessors methods, you _should_ be able to protect against > un-authorized changes, no? We didn't ask him if he was in PHP 4 or 5. In any case, doesn't PHP's copy-on-write behavior at least mitigate the overhead problem? IOW you don't have to worry about pass-by-copy eating too much memory unless the data is changed on the receiving end. > > You could also utilize the Singleton Design pattern. ... which is a piece of cake in PHP 5. --- David Mintz http://davidmintz.org/ _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From damovand at yahoo.com Thu Jul 14 22:20:20 2005 From: damovand at yahoo.com (Leila Lappin) Date: Thu, 14 Jul 2005 19:20:20 -0700 (PDT) Subject: [nycphp-talk] Optimal Object, property, variable passing strategy between classes In-Reply-To: <001e01c588a7$e759dfb0$11a8a8c0@cliff> Message-ID: <20050715022020.32538.qmail@web30812.mail.mud.yahoo.com> --- Cliff Hirsch wrote: > Sounds like passing arguments is the best way, or if > speed is really a > concern, passing by reference while being really > careful. > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of csnyder > Sent: Thursday, July 14, 2005 3:05 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Optimal Object, > property,variable passing > strategy between classes > > > On 7/14/05, Leila Lappin wrote: > > In C++ we used be able to declare a > > parameter as constant and prevent it from being > > modified. I'm not sure if > > 'const'ness is possible in PHP. > > Oh yeah, check out define(). > > define( 'WEB_ROOT', '/var/www/html' ); > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > Hi, I meant declaring parameters as constants like this, void foo( const string & var) { // do something with var } ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs From jeff.loiselle at gmail.com Fri Jul 15 09:08:00 2005 From: jeff.loiselle at gmail.com (Jeff Loiselle) Date: Fri, 15 Jul 2005 09:08:00 -0400 Subject: [nycphp-talk] [ OT ] - Lyris List Manager In-Reply-To: <8d9a4280050708073053bea01e@mail.gmail.com> References: <8d9a4280050708073053bea01e@mail.gmail.com> Message-ID: <4b188711050715060862628706@mail.gmail.com> I tested out Lyris very little once. They do have a REST API. You might consider using cURL to access it from within your script. On 7/8/05, Joseph Crawford wrote: > > Anyone here have much experience with this software? A client of mine > wants to have a survey form where there is a checkbox to join the list, also > will have an unsubscribe form. I have looked at the HTML form Lyris uses to > allow an email to be added and it's posted to script, however is there a way > i can make my script somehow add the email to lyris if the user has choosen > so. I am not sure how i would re-POST data automatically to another script > from within mine. I understand if Lyris accepted GET i could just pass it as > parameters in the query string. > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > -- --- Jeff Loiselle Web Developer, Musician, and Observer http://jeff.loiselles.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikko.rantalainen at peda.net Fri Jul 15 09:12:37 2005 From: mikko.rantalainen at peda.net (Mikko Rantalainen) Date: Fri, 15 Jul 2005 16:12:37 +0300 Subject: [nycphp-talk] Optimal Object, property, variable passing strategy between classes In-Reply-To: References: <002401c5888e$3b13e3e0$11a8a8c0@cliff> <20050714184702.73941.qmail@web30811.mail.mud.yahoo.com> Message-ID: <42D7B645.1000407@peda.net> csnyder wrote: > On 7/14/05, Leila Lappin wrote: > >>In C++ we used be able to declare a >>parameter as constant and prevent it from being >>modified. I'm not sure if >>'const'ness is possible in PHP. > > > Oh yeah, check out define(). > > define( 'WEB_ROOT', '/var/www/html' ); And that would be (in C++) const std::string WEB_ROOT("/var/ww/html"); (or something along those lines, I cannot remember) Cliff Hirsch asked for PHP equivalent of following C++ code void f(const type& param) { /* do something with param, compiler generates an error if param is modified in any way */ } AFAIK, this isn't possible in PHP. I think that PHP implements copy-on-write for (at least) strings so if you don't pass complex objects, pass by value seems like a reasonable way (safe and fast). I use objects as parameters for some methods and I do pass by reference because otherwise I'll end up with a copy (in PHP4). I also pass by reference if I have to pass an array. So, I'd write above C++ code in PHP like this function f(&$param) { // try not to mess with $param ;-/ } If I'm returning complex stuff like arrays or objects, I'll use function &f(&$param) { ... return $a_complex_thing; } Again, there're cases where this can crash the PHP environment. (I think such a crash is always a bug. There have been some progress in PHP 4.4.0 on this area, if I've understood correctly.) And no, you cannot emulate const'ness with a global variable. Passing a reference provides exactly the same safety and the same (almost?) performance. -- Mikko From lists at zaunere.com Fri Jul 15 10:40:24 2005 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 15 Jul 2005 10:40:24 -0400 Subject: [nycphp-talk] Optimal Object, property, variable passing strategybetween classes In-Reply-To: <002301c588b2$764f1e60$11a8a8c0@cliff> Message-ID: <0MKz1m-1DtRMW0g2W-0007sK@mrelay.perfora.net> > I am using PHP 5 and should have read this chapter more completely! > > PHP 5 Object, Patterns, and Practice: Page 141, "The Singleton Pattern, > The global variable is one of the great bugbears of OOP..." More bedtime > reading... > > Plus for ready only, copy-on-write behavior would eliminate the overhead > problem. Exactly. PHP uses copy-on-write, so even if the ampersand is not used when passing variables, the variable's data isn't copied unless it's changed in the local scope. > Since we have that licked, another question. I have not been able to > find canned functions for turning a MySQL DB linked list (id, > description, parent id) into an array tree. Managing categories seems > like such a popular task, that I'm surprised that I have not found > standard functions for the front-end, back-end admin. Etc. Has anyone > tried PEAR HTML_TreeMenu or Tree (which at 0.2.4 (beta) released on > 2003-03-17 does not seem very active) to do this? I haven't, sorry, but prefer NSM when dealing with hierarchies. http://www.pcomd.net/pnsm It needs some work though. Fear Joe: http://www.dbmsmag.com/9604d06.html --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From damovand at yahoo.com Sat Jul 16 12:24:22 2005 From: damovand at yahoo.com (Leila Lappin) Date: Sat, 16 Jul 2005 09:24:22 -0700 (PDT) Subject: [nycphp-talk] A question for mambo experts Message-ID: <20050716162427.15632.qmail@web30803.mail.mud.yahoo.com> Is there a relation between mambo modules and components? I haven?t been able to find any information to make this clear to me. The documentation I?ve found so far all focus on how to create them but nothing else. I?ve also been looking through mambo?s data model design and, as far as I can see, there is a relation between mambo modules and menus but nothing between modules and components. This is important for me to understand because I am thinking of re-implementing my website, www.tutorialwizard.net, to work within a mambo framework, if possible. Any ideas and advice from mambo experts in this regard would be very much appreciated. I like mambo, I think it has great potential to create sophisticated websites with minimal effort. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From matt at jobsforge.com Sat Jul 16 17:06:23 2005 From: matt at jobsforge.com (Matthew Terenzio) Date: Sat, 16 Jul 2005 17:06:23 -0400 Subject: [nycphp-talk] Web Traffic Analytics Message-ID: <98763d07214cd76dcb1bcece54d20b46@jobsforge.com> Anyone have a favorite web traffic analytics program or service? Preferably free, but I 'd like some level of sophistication. From damovand at yahoo.com Sun Jul 17 10:56:05 2005 From: damovand at yahoo.com (Leila Lappin) Date: Sun, 17 Jul 2005 07:56:05 -0700 (PDT) Subject: [nycphp-talk] No post in two days! Message-ID: <20050717145606.78114.qmail@web30812.mail.mud.yahoo.com> I'm just wondering. ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs From ps at pswebcode.com Mon Jul 18 14:07:58 2005 From: ps at pswebcode.com (Peter Sawczynec) Date: Mon, 18 Jul 2005 14:07:58 -0400 Subject: [nycphp-talk] Regular Expression Assistance in MySQL Message-ID: <000201c58bc3$a4564d10$6400a8c0@yourx1adg12jme> Using the multi-word string below as an example: The West and a Western South-westerly Revolt What is the reg exp that would match only the freestanding West and not match the West in Western or South-westerly. Warmest regards, Peter Sawczynec Technology Director PSWebcode ps at pswebcode.com 718.543.3240 From lists at zaunere.com Mon Jul 18 19:32:34 2005 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 18 Jul 2005 19:32:34 -0400 Subject: [nycphp-talk] No post in two days! In-Reply-To: <20050717145606.78114.qmail@web30812.mail.mud.yahoo.com> Message-ID: <0MKz1m-1Duf6A0Sg1-0007bt@mrelay.perfora.net> On Sunday, July 17, 2005 10:56 AM, wrote: > I'm just wondering. Sorry folks - had a small issue with mailman. The lists should be back online now. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From adam at trachtenberg.com Mon Jul 18 19:39:29 2005 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 18 Jul 2005 19:39:29 -0400 (EDT) Subject: [nycphp-talk] Regular Expression Assistance in MySQL In-Reply-To: <000201c58bc3$a4564d10$6400a8c0@yourx1adg12jme> References: <000201c58bc3$a4564d10$6400a8c0@yourx1adg12jme> Message-ID: On Mon, 18 Jul 2005, Peter Sawczynec wrote: > Using the multi-word string below as an example: > The West and a Western South-westerly Revolt > > What is the reg exp that would match only the freestanding West and not > match the West in Western or South-westerly. "West ", but that won't watch "West." or "West," or similar matches. You need to really think about what you're trying to hit. -adam -- adam at trachtenberg.com | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From mitch.pirtle at gmail.com Mon Jul 18 21:07:19 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 18 Jul 2005 21:07:19 -0400 Subject: [nycphp-talk] A question for mambo experts In-Reply-To: <20050716162427.15632.qmail@web30803.mail.mud.yahoo.com> References: <20050716162427.15632.qmail@web30803.mail.mud.yahoo.com> Message-ID: <330532b6050718180765b2b0b0@mail.gmail.com> On 7/16/05, Leila Lappin wrote: > Is there a relation between mambo modules and > components? Hi Leila, Consider modules as blocks of logic that are secondary to the page content, and components as logic that *IS* the actual content. So with a base mambo install, you can see that the litle blocks are modules, but when you click on Contact Us you will see in the main content area the component itself (com_contact). Modules are strictly for the front end; whereas components can be on the front end as well as the back end (again, see contacts for an example). Further complicating things is that you can use a component on the back end to maintain a front end module (polls, for example). I don't remember when this all started making sense to me, but I do remember that it was really just an adjustment of terminology - which is a challenge no matter what CMS you choose. -- Mitch Pirtle Mambo Core Developer From mitch.pirtle at gmail.com Mon Jul 18 21:07:57 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 18 Jul 2005 21:07:57 -0400 Subject: [nycphp-talk] Web Traffic Analytics In-Reply-To: <98763d07214cd76dcb1bcece54d20b46@jobsforge.com> References: <98763d07214cd76dcb1bcece54d20b46@jobsforge.com> Message-ID: <330532b605071818075ca2515@mail.gmail.com> I prefer awstats, but would love to hear everyone else's opinion. -- Mitch Pirtle Mambo Core Developer On 7/16/05, Matthew Terenzio wrote: > > > Anyone have a favorite web traffic analytics program or service? > Preferably free, but I 'd like some level of sophistication. > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From matt at jiffycomp.com Mon Jul 18 22:01:48 2005 From: matt at jiffycomp.com (Matt Morgan) Date: Mon, 18 Jul 2005 22:01:48 -0400 Subject: [nycphp-talk] Web Traffic Analytics In-Reply-To: <98763d07214cd76dcb1bcece54d20b46@jobsforge.com> References: <98763d07214cd76dcb1bcece54d20b46@jobsforge.com> Message-ID: <42DC5F0C.30202@jiffycomp.com> Matthew Terenzio wrote: > > > Anyone have a favorite web traffic analytics program or service? > Preferably free, but I 'd like some level of sophistication. > I used to really like Analog (http://www.analog.cx), but I haven't been in charge of web stats for a while. It was nerdy and fairly manual, but pretty capable. It's still maintained and updated, and has both free and commercial support options. Lately I use webalizer but only because the Fedora package is easy to install. I don't really know a lot about it. From damovand at yahoo.com Mon Jul 18 22:15:33 2005 From: damovand at yahoo.com (Leila Lappin) Date: Mon, 18 Jul 2005 19:15:33 -0700 (PDT) Subject: [nycphp-talk] A question for mambo experts In-Reply-To: <330532b6050718180765b2b0b0@mail.gmail.com> Message-ID: <20050719021533.80299.qmail@web30813.mail.mud.yahoo.com> Thanks Mitch, This leaves me with a lot to think about:) --- Mitch Pirtle wrote: > On 7/16/05, Leila Lappin wrote: > > Is there a relation between mambo modules and > > components? > > Hi Leila, > > Consider modules as blocks of logic that are > secondary to the page > content, and components as logic that *IS* the > actual content. > > So with a base mambo install, you can see that the > litle blocks are > modules, but when you click on Contact Us you will > see in the main > content area the component itself (com_contact). > > Modules are strictly for the front end; whereas > components can be on > the front end as well as the back end (again, see > contacts for an > example). > > Further complicating things is that you can use a > component on the > back end to maintain a front end module (polls, for > example). > > I don't remember when this all started making sense > to me, but I do > remember that it was really just an adjustment of > terminology - which > is a challenge no matter what CMS you choose. > > -- > Mitch Pirtle > Mambo Core Developer > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 From nasir81 at gmail.com Mon Jul 18 22:22:11 2005 From: nasir81 at gmail.com (Nasir Zubair) Date: Mon, 18 Jul 2005 22:22:11 -0400 Subject: [nycphp-talk] No post in two days! In-Reply-To: <0MKz1m-1Duf6A0Sg1-0007bt@mrelay.perfora.net> References: <20050717145606.78114.qmail@web30812.mail.mud.yahoo.com> <0MKz1m-1Duf6A0Sg1-0007bt@mrelay.perfora.net> Message-ID: <40fcda73050718192267cf7259@mail.gmail.com> bad mailman, bad. I thought my gmail finally broke :-) On 7/18/05, Hans Zaunere wrote: > > > On Sunday, July 17, 2005 10:56 AM, wrote: > > I'm just wondering. > > Sorry folks - had a small issue with mailman. The lists should be back > online now. > > > --- > Hans Zaunere > President, Founder > New York PHP > http://www.nyphp.org > > AMP Technology > Supporting Apache, MySQL and PHP > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Nasir Zubair http://www.nasir.us/ From dmintz at davidmintz.org Mon Jul 18 22:34:04 2005 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 18 Jul 2005 22:34:04 -0400 (EDT) Subject: [nycphp-talk] Regular Expression Assistance in MySQL In-Reply-To: <000201c58bc3$a4564d10$6400a8c0@yourx1adg12jme> References: <000201c58bc3$a4564d10$6400a8c0@yourx1adg12jme> Message-ID: On Mon, 18 Jul 2005, Peter Sawczynec wrote: > The West and a Western South-westerly Revolt > > What is the reg exp that would match only the freestanding West and not > match the West in Western or South-westerly. This seems to work: mysql> SELECT 'The West and a Western South-westerly Revolt' REGEXP BINARY '[[:<:]]West[[:>:]]' as matches; +---------+ | matches | +---------+ | 1 | +---------+ 1 row in set (0.01 sec) (http://dev.mysql.com/doc/mysql/en/regexp.html) --- David Mintz http://davidmintz.org/ From ajai at bitblit.net Mon Jul 18 22:38:04 2005 From: ajai at bitblit.net (Ajai Khattri) Date: Mon, 18 Jul 2005 22:38:04 -0400 Subject: [nycphp-talk] A question for mambo experts In-Reply-To: <330532b6050718180765b2b0b0@mail.gmail.com> References: <20050716162427.15632.qmail@web30803.mail.mud.yahoo.com> <330532b6050718180765b2b0b0@mail.gmail.com> Message-ID: <42DC678C.8080609@bitblit.net> Mitch Pirtle wrote: >I don't remember when this all started making sense to me, but I do >remember that it was really just an adjustment of terminology - which >is a challenge no matter what CMS you choose. > That's putting it mildly! (Not that Mambo is any worse than any other CMS - Ive already used it for several projects and Im just about to try my hand at writing a component ;-) -- Aj. From mitch.pirtle at gmail.com Mon Jul 18 23:39:11 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 18 Jul 2005 23:39:11 -0400 Subject: [nycphp-talk] A question for mambo experts In-Reply-To: <42DC678C.8080609@bitblit.net> References: <20050716162427.15632.qmail@web30803.mail.mud.yahoo.com> <330532b6050718180765b2b0b0@mail.gmail.com> <42DC678C.8080609@bitblit.net> Message-ID: <330532b605071820391b250345@mail.gmail.com> On 7/18/05, Ajai Khattri wrote: > Mitch Pirtle wrote: > > >I don't remember when this all started making sense to me, but I do > >remember that it was really just an adjustment of terminology - which > >is a challenge no matter what CMS you choose. > > > > That's putting it mildly! (Not that Mambo is any worse than any other > CMS - Ive already used it for several projects and Im just about to try > my hand at writing a component ;-) http://help.mamboserver.com Take a look at the component tutorial. That should provide a decent example to get you started. Also, you can grab Mambo Designer from mambodev.com or jamboworks.com (not launched yet). This will create a base template, module or component that you can then work from. Yes it is beta, but is quite usable :-) -- Mitch Pirtle Mambo Core Developer From kigathi at gmail.com Tue Jul 19 03:07:45 2005 From: kigathi at gmail.com (Eric K.) Date: Tue, 19 Jul 2005 03:07:45 -0400 Subject: [nycphp-talk] Web Traffic Analytics In-Reply-To: <42DC5F0C.30202@jiffycomp.com> References: <98763d07214cd76dcb1bcece54d20b46@jobsforge.com> <42DC5F0C.30202@jiffycomp.com> Message-ID: I have access to Webalizer, Analog and AWStats but I find AWStats to be the most thorough and my clients really like the granularity of the reports (breakdown by day, time of day, month, hits, visits, bytes transfered, referring sites, search engines & keywords etc etc) Take a look here: http://awstats.sourceforge.net/cgi-bin/awstats.pl I've had to patch it a couple of times due to security issues but otherwise it's been great, I'd definitely recommend it. On 7/18/05, Matt Morgan wrote: > Matthew Terenzio wrote: > > > > > > > Anyone have a favorite web traffic analytics program or service? > > Preferably free, but I 'd like some level of sophistication. > > > I used to really like Analog (http://www.analog.cx), but I haven't been > in charge of web stats for a while. It was nerdy and fairly manual, but > pretty capable. It's still maintained and updated, and has both free and > commercial support options. > > Lately I use webalizer but only because the Fedora package is easy to > install. I don't really know a lot about it. > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From ps at pswebcode.com Tue Jul 19 07:10:59 2005 From: ps at pswebcode.com (Peter Sawczynec) Date: Tue, 19 Jul 2005 07:10:59 -0400 Subject: [nycphp-talk] Regular Expression Assistance in MySQL In-Reply-To: Message-ID: <000301c58c52$8e969f90$6400a8c0@yourx1adg12jme> "West ", but that won't match "West." or "West," or similar matches. You need to really think about what you're trying to hit. -adam Using the additional above input from Adam, here is more refinements to the criteria. [ Cannot be any alphanum character. Could be no space. Could be a space. Could be any punctuation, except not a dash (-). ] SEARCH TERM [Cannot be any alphanum character. Could be no space. Could be a space. Could be any punctuation, except not a dash (-). ] I believe this is the criteria the reg exp needs to meet. Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Mintz Sent: Monday, July 18, 2005 10:34 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Regular Expression Assistance in MySQL On Mon, 18 Jul 2005, Peter Sawczynec wrote: > The West and a Western South-westerly Revolt > > What is the reg exp that would match only the freestanding West and > not match the West in Western or South-westerly. This seems to work: mysql> SELECT 'The West and a Western South-westerly Revolt' REGEXP mysql> BINARY '[[:<:]]West[[:>:]]' as matches; +---------+ | matches | +---------+ | 1 | +---------+ 1 row in set (0.01 sec) (http://dev.mysql.com/doc/mysql/en/regexp.html) --- David Mintz http://davidmintz.org/ _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From ps at pswebcode.com Tue Jul 19 09:35:08 2005 From: ps at pswebcode.com (Peter Sawczynec) Date: Tue, 19 Jul 2005 09:35:08 -0400 Subject: [nycphp-talk] Succinct Real-World Example(s) of PHP5 OOP for Reference Message-ID: <001701c58c66$b16164b0$6400a8c0@yourx1adg12jme> Can you refer me to PHP5 project(s) or module(s) using PHP5 OOP that impressed you and can be freely studied as a reference to see some basic quality real world OOP in use. It would be great if the project(s) were smaller in scope and featured one or two instances of class inheritance, __construct and __destruct, and get and set accessor methods on properties. Does not need to be backwards compatible to PHP4. Warmest regards, Peter Sawczynec Technology Director PSWebcode ps at pswebcode.com 718.543.3240 From mikko.rantalainen at peda.net Tue Jul 19 10:27:37 2005 From: mikko.rantalainen at peda.net (Mikko Rantalainen) Date: Tue, 19 Jul 2005 17:27:37 +0300 Subject: [nycphp-talk] Optimal Object, property, variable passing strategybetween classes In-Reply-To: <0MKz1m-1DtRMW0g2W-0007sK@mrelay.perfora.net> References: <0MKz1m-1DtRMW0g2W-0007sK@mrelay.perfora.net> Message-ID: <42DD0DD9.9090103@peda.net> Hans Zaunere wrote: > > Exactly. PHP uses copy-on-write, so even if the ampersand is not used when > passing variables, the variable's data isn't copied unless it's changed in > the local scope. Is there documentation about this somewhere? I'm wondering how this works... Given following code: function f($a) { $a[2] = "z"; } $a = array("x","y","z"); f($a); Will the PHP make a copy of value "z", the whole array $a, or does it notice that $a[2] already has the value "z". Or will it create a new array $a inside function f() and just uses copy-on-write to the values? I'm pretty sure that PHP doesn't notice that $a[2] isn't used anywhere in f() so setting it could be skipped. -- Mikko From jeff.knight at gmail.com Tue Jul 19 11:49:29 2005 From: jeff.knight at gmail.com (Jeff Knight) Date: Tue, 19 Jul 2005 11:49:29 -0400 Subject: [nycphp-talk] Web Traffic Analytics In-Reply-To: References: <98763d07214cd76dcb1bcece54d20b46@jobsforge.com> <42DC5F0C.30202@jiffycomp.com> Message-ID: <2ca9ba9105071908495c10a37b@mail.gmail.com> I see attemts to hit awstats as the number one suspicious activity in my error logs for the last six months. I really like the program, but please make sure to patch it and read all the information about securiing it. Also, rename it and stick it in an odd-named directory just to add that extra layer of obscurity. On 7/19/05, Eric K. wrote: > I have access to Webalizer, Analog and AWStats but I find AWStats to > be the most thorough and my clients really like the granularity of the > reports (breakdown by day, time of day, month, hits, visits, bytes > transfered, referring sites, search engines & keywords etc etc) > > Take a look here: > http://awstats.sourceforge.net/cgi-bin/awstats.pl > > I've had to patch it a couple of times due to security issues but > otherwise it's been great, I'd definitely recommend it. > > On 7/18/05, Matt Morgan wrote: > > Matthew Terenzio wrote: > > > > > > > > > > > Anyone have a favorite web traffic analytics program or service? > > > Preferably free, but I 'd like some level of sophistication. > > > > > I used to really like Analog (http://www.analog.cx), but I haven't been > > in charge of web stats for a while. It was nerdy and fairly manual, but > > pretty capable. It's still maintained and updated, and has both free and > > commercial support options. > > > > Lately I use webalizer but only because the Fedora package is easy to > > install. I don't really know a lot about it. > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From chsnyder at gmail.com Tue Jul 19 12:58:48 2005 From: chsnyder at gmail.com (csnyder) Date: Tue, 19 Jul 2005 12:58:48 -0400 Subject: [nycphp-talk] Web Traffic Analytics In-Reply-To: <2ca9ba9105071908495c10a37b@mail.gmail.com> References: <98763d07214cd76dcb1bcece54d20b46@jobsforge.com> <42DC5F0C.30202@jiffycomp.com> <2ca9ba9105071908495c10a37b@mail.gmail.com> Message-ID: On 7/19/05, Jeff Knight wrote: > I see attemts to hit awstats as the number one suspicious activity in > my error logs for the last six months. I really like the program, but > please make sure to patch it and read all the information about > securiing it. Also, rename it and stick it in an odd-named directory > just to add that extra layer of obscurity. Or put a password on it. It's a nice gesture to have publicly available stats, but it also invites trouble from people who want to monkey with referrer strings and the like. From patrick at ramsden.com Tue Jul 19 15:28:29 2005 From: patrick at ramsden.com (Patrick Ramsden) Date: Tue, 19 Jul 2005 14:28:29 -0500 Subject: [nycphp-talk] Succinct Real-World Example(s) of PHP5 OOP forReference In-Reply-To: <001701c58c66$b16164b0$6400a8c0@yourx1adg12jme> Message-ID: <47qfdc$1pm4fg@smtp04.mrf.mail.rcn.net> I don't have experience with them but Prado and EZPDO are both PHP5 and sound like good projects... > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Peter Sawczynec > Sent: Tuesday, July 19, 2005 8:35 AM > To: 'Org, Talk at Nyphp.' > Subject: [nycphp-talk] Succinct Real-World Example(s) of PHP5 > OOP forReference > > Can you refer me to PHP5 project(s) or module(s) using PHP5 OOP that > impressed you and can be freely studied as a reference to see > some basic > quality real world OOP in use. > > It would be great if the project(s) were smaller in scope and > featured one > or two instances of class inheritance, __construct and > __destruct, and get > and set accessor methods on properties. > > Does not need to be backwards compatible to PHP4. > > > Warmest regards, > > Peter Sawczynec > Technology Director > PSWebcode > ps at pswebcode.com > 718.543.3240 > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From damovand at yahoo.com Tue Jul 19 17:37:04 2005 From: damovand at yahoo.com (Leila Lappin) Date: Tue, 19 Jul 2005 14:37:04 -0700 (PDT) Subject: [nycphp-talk] A question for mambo experts In-Reply-To: <330532b605071820391b250345@mail.gmail.com> Message-ID: <20050719213704.15505.qmail@web30803.mail.mud.yahoo.com> --- Mitch Pirtle wrote: > On 7/18/05, Ajai Khattri wrote: > > Mitch Pirtle wrote: > > > > >I don't remember when this all started making > sense to me, but I do > > >remember that it was really just an adjustment of > terminology - which > > >is a challenge no matter what CMS you choose. > > > > > > > That's putting it mildly! (Not that Mambo is any > worse than any other > > CMS - Ive already used it for several projects and > Im just about to try > > my hand at writing a component ;-) > > http://help.mamboserver.com > > Take a look at the component tutorial. That should > provide a decent > example to get you started. Also, you can grab > Mambo Designer from > mambodev.com or jamboworks.com (not launched yet). > This will create a > base template, module or component that you can then > work from. Yes it > is beta, but is quite usable :-) > > -- > Mitch Pirtle > Mambo Core Developer > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > Thanks again for your advice, The tutorial you?ve mentioned is a good one. I actually started going through it half way once but got stuck on something. I?ll give it a try again. And what makes this even more challenging is that I want to create a website, using mambo framework, that looks like the website I have now. I think this would require creating a new template as well as two new components. Leila ____________________________________________________ Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs From lists at zaunere.com Wed Jul 20 06:42:46 2005 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 20 Jul 2005 06:42:46 -0400 Subject: [nycphp-talk] Optimal Object, property, variable passing strategybetween classes In-Reply-To: <42DD0DD9.9090103@peda.net> Message-ID: <0MKyxe-1DvC2H2KYZ-0002vA@mrelay.perfora.net> On Tuesday, July 19, 2005 10:28 AM, talk-bounces at lists.nyphp.org wrote: > Hans Zaunere wrote: > > > > Exactly. PHP uses copy-on-write, so even if the ampersand is not > > used when passing variables, the variable's data isn't copied > > unless it's changed in the local scope. > > Is there documentation about this somewhere? I'm wondering how this > works... That's a good question about the documentation. There was some, but I'm honestly not sure how current it is, given PHP 5. http://www.bozemanlug.org/talks/phppresentation.html And that's not really what I was looking for, but google couldn't come up with the older document when given "andi php references" But this is new: http://www.zend.com/php5/andi-book-excerpt.php > Given following code: > > function f($a) > { > $a[2] = "z"; > } > > $a = array("x","y","z"); > f($a); > > Will the PHP make a copy of value "z", the whole array $a, or does > it notice that $a[2] already has the value "z". Or will it create a > new array $a inside function f() and just uses copy-on-write to the > values? My understanding is that the entire array will be copied, thus locally scopped, into the function. When the function returns, the array is removed. If a "reference" was used, by indicating so with an ampersand, then the original array, outside of the function's scope, would be modified. The best thing is to test it - make an array with 10mb of junk, then pass it in while watching the size of the PHP process. If it more than doubles, then it's been copied :) --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From michael.southwell at nyphp.org Wed Jul 20 10:14:17 2005 From: michael.southwell at nyphp.org (Michael Southwell) Date: Wed, 20 Jul 2005 10:14:17 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? Message-ID: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> I have run into an odd (odd to me, at least) problem where $_SERVER['PHP_SELF'] doesn't seem to be working. The code is this: =========== // required entries missing if ( $reqEntries < 6 ) { header( "Location:$_SERVER[PHP_SELF]?action=internet&reqflag=1&join=$joinFlag"); // debug exit( "reqentries is $reqEntries so exiting" ); } =========== This is working perfectly on my localhost, PHP 4.3.9, Apache 1.3.24. It is not working on my test site, PHP 4.3.11, Apache 1.3.33. The debug exit shows that the if clause is true, and it's the header that's not working. phpinfo seems to show nothing weird or unexpected about the value of _SERVER['PHP_SELF'] on the test site. Anybody have any ideas about what might be going on here? Thanks in advance. Michael Southwell, Vice President for Education New York PHP http://nyphp.org/twoday - In-depth PHP Training Courses From ps at pswebcode.com Wed Jul 20 10:16:18 2005 From: ps at pswebcode.com (Peter Sawczynec) Date: Wed, 20 Jul 2005 10:16:18 -0400 Subject: [nycphp-talk] Regular Expression Assistance in MySQL In-Reply-To: Message-ID: <000901c58d35$9eb0d7e0$6400a8c0@yourx1adg12jme> I need this reg exp example you provided to also accept "OR a colon" on the left side only. Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Mintz Sent: Monday, July 18, 2005 10:34 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Regular Expression Assistance in MySQL On Mon, 18 Jul 2005, Peter Sawczynec wrote: > The West and a Western South-westerly Revolt > > What is the reg exp that would match only the freestanding West and > not match the West in Western or South-westerly. This seems to work: mysql> SELECT 'The West and a Western South-westerly Revolt' REGEXP mysql> BINARY '[[:<:]]West[[:>:]]' as matches; +---------+ | matches | +---------+ | 1 | +---------+ 1 row in set (0.01 sec) (http://dev.mysql.com/doc/mysql/en/regexp.html) --- David Mintz http://davidmintz.org/ _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From dcech at phpwerx.net Wed Jul 20 10:21:28 2005 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 20 Jul 2005 10:21:28 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> Message-ID: <42DE5DE8.1010803@phpwerx.net> Michael Southwell wrote: > I have run into an odd (odd to me, at least) problem where > $_SERVER['PHP_SELF'] doesn't seem to be working. > > The code is this: > =========== > // required entries missing > if ( $reqEntries < 6 ) { > header( > "Location:$_SERVER[PHP_SELF]?action=internet&reqflag=1&join=$joinFlag"); > > // debug > exit( "reqentries is $reqEntries so exiting" ); > > } > =========== > This is working perfectly on my localhost, PHP 4.3.9, Apache 1.3.24. It is > not working on my test site, > PHP 4.3.11, Apache 1.3.33. The debug exit shows that the if clause is > true, and it's the header that's not > working. phpinfo seems to show nothing weird or unexpected about the value > of _SERVER['PHP_SELF'] > on the test site. > > Anybody have any ideas about what might be going on here? Thanks in advance. I'm not sure, but I can think of 2 things that might be the cause: 1. No space between Location: and the URL 2. Non-absolute URL You could try: header('Location: http://'. $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] .'?action=internet&reqflag=1&join='. $joinFlag); Also, you could try echoing the location string directly to see what is being sent. Dan > > Michael Southwell, Vice President for Education > New York PHP > http://nyphp.org/twoday - In-depth PHP Training Courses From dcech at phpwerx.net Wed Jul 20 10:27:05 2005 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 20 Jul 2005 10:27:05 -0400 Subject: [nycphp-talk] Regular Expression Assistance in MySQL In-Reply-To: <000901c58d35$9eb0d7e0$6400a8c0@yourx1adg12jme> References: <000901c58d35$9eb0d7e0$6400a8c0@yourx1adg12jme> Message-ID: <42DE5F39.8040709@phpwerx.net> Peter Sawczynec wrote: > I need this reg exp example you provided to also accept "OR a colon" on the > left side only. I would suggest starting here: http://dev.mysql.com/doc/mysql/en/regexp.html It is a good introduction to Regular expressions in MySQL and should give you all the information you need to craft the right regexp for your situation. Dan > Peter > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On > Behalf Of David Mintz > Sent: Monday, July 18, 2005 10:34 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Regular Expression Assistance in MySQL > > > On Mon, 18 Jul 2005, Peter Sawczynec wrote: > > >>The West and a Western South-westerly Revolt >> >>What is the reg exp that would match only the freestanding West and >>not match the West in Western or South-westerly. > > > This seems to work: > > mysql> SELECT 'The West and a Western South-westerly Revolt' REGEXP > mysql> BINARY > '[[:<:]]West[[:>:]]' as matches; > > +---------+ > | matches | > +---------+ > | 1 | > +---------+ > 1 row in set (0.01 sec) > > (http://dev.mysql.com/doc/mysql/en/regexp.html) > > --- > David Mintz > http://davidmintz.org/ _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From Consult at CovenantEDesign.com Wed Jul 20 10:30:58 2005 From: Consult at CovenantEDesign.com (CED) Date: Wed, 20 Jul 2005 10:30:58 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> Message-ID: <001001c58d37$a5de63a0$0319a8c0@ced> Try echoing out the string to get a better idea of what you're actually sending. ----- Original Message ----- From: "Michael Southwell" To: Sent: Wednesday, July 20, 2005 10:14 AM Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? I have run into an odd (odd to me, at least) problem where $_SERVER['PHP_SELF'] doesn't seem to be working. The code is this: =========== // required entries missing if ( $reqEntries < 6 ) { header( "Location:$_SERVER[PHP_SELF]?action=internet&reqflag=1&join=$joinFlag"); // debug exit( "reqentries is $reqEntries so exiting" ); } =========== This is working perfectly on my localhost, PHP 4.3.9, Apache 1.3.24. It is not working on my test site, PHP 4.3.11, Apache 1.3.33. The debug exit shows that the if clause is true, and it's the header that's not working. phpinfo seems to show nothing weird or unexpected about the value of _SERVER['PHP_SELF'] on the test site. Anybody have any ideas about what might be going on here? Thanks in advance. Michael Southwell, Vice President for Education New York PHP http://nyphp.org/twoday - In-depth PHP Training Courses _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From max at neuropunks.org Wed Jul 20 12:07:32 2005 From: max at neuropunks.org (max) Date: Wed, 20 Jul 2005 11:07:32 -0500 Subject: [nycphp-talk] Cannot unset $_POST during logout Message-ID: <20050720160732.GA25969@neuropunks.org> Hello, cant figure this out, Im trying to make it so once a user logs out, they cannot hit back and be logged back in - which im sure is trivial, but for some reason does not work with my code. here is the code snippet from the beginning of index.php (which handles $_POST $_GET and does authentication/signup/proper page display): body .= build_signup(); $page->body .= build_survey(); $page->htmlBuild("index"); exit; } if ($get[a] == "logout") { unset($_POST); unset($_GET); unset($_SESSION); session_unset(); session_destroy(); $page->body = "You were successfully logged out"; $page->htmlBuild("index"); exit; } } ?> The code goes on for much more after that, but i would think these are the relevant parts. I also tried inserting various header() cache control things, but that didnt work either. If I print_r($_POST) after I call unset()'s and session_destroy() its empty, so somehow the browser caches the $_POST and does not honor header("Cache-Control: no-store, no-cache, must-revalidate"); which I used to have at the beginning of this page (after session_start() and before require_once()) I also tried replacing unset() with $_SESSION = array() and same for $_POST and $_GET but it still caches. There are checks in the code for varous $_SESSION vars to be set to gain access to certain data, so you would think unset($_SESSION) would prevent access, but it doesnt. Here is one of the checks: if (count($_SESSION[user]) > 1) { echo "
This is protected content, only for authenticated users."; } else { echo "
This is general content for everyone."; } That is in the html that gets called by $page->htmlBuild function, and it still gets bypassed due to caching (of $_POST i would assume) So I am a little confused now, I looked at some other code and it looks like checking for certain $_SESSION vars being set is an acceptable authentication verification method, but it fails for me. Thanks for any input! max From rahmin at insite-out.com Wed Jul 20 12:18:11 2005 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Wed, 20 Jul 2005 12:18:11 -0400 Subject: [nycphp-talk] Cannot unset $_POST during logout Message-ID: <200507201618.j6KGIBOx031948@webmail5.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From cliff at pinestream.com Wed Jul 20 12:25:12 2005 From: cliff at pinestream.com (Cliff Hirsch) Date: Wed, 20 Jul 2005 12:25:12 -0400 Subject: [nycphp-talk] Cannot unset $_POST during logout In-Reply-To: <200507201618.j6KGIBOx031948@webmail5.megamailservers.com> Message-ID: <001201c58d47$9af9e530$11a8a8c0@cliff> How do you access the table from each new thread? Can a thread access other session data or do you store the table in a database? >I like to store corresponding sessions in table, tracking the user id, session id, last >active timestamp, if they clicked "logout," etc. This was done in-part to prevent >multiple account logins, but if you have something like that to test against, you can >determine if the user has logged out before processing any other data. _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From max at neuropunks.org Wed Jul 20 12:46:50 2005 From: max at neuropunks.org (max) Date: Wed, 20 Jul 2005 11:46:50 -0500 Subject: [nycphp-talk] Cannot unset $_POST during logout In-Reply-To: <001201c58d47$9af9e530$11a8a8c0@cliff> References: <200507201618.j6KGIBOx031948@webmail5.megamailservers.com> <001201c58d47$9af9e530$11a8a8c0@cliff> Message-ID: <20050720164650.GA34348@neuropunks.org> well, storing session data in the db was an attractive idea, but I decided not to do it because the $_SESSION array is too tiny for this app, and the app wont grow in the $_SESSION[user] sense. There are other things in the app tied to $_SESSION[user][uid] and when I need to access those things, i do a db lookup using the uid. I would also like to avoid recoding some of this to make everything get stored in the db. Also, wouldnt this introduce at least slightly more overhead? I would assume you would have to query db on pretty much every page that user goes through to make sure they have enough access to access this page, as well as check their session id, etc. Ive seen alot of discussion advocating db backend for session storage, but I am still not convinced its a good idea. But you do have a point, I would be able to track vars pretty well. I use print_r and echo and those type things now to see values for $_POST and $_SESSION, and they come up empty once i call print_r after processing $_GET logout request. This really looks like a browser caching issue, but I do have those no-cache header statements, and the code makes that check and it still sucks : / max On Wed, Jul 20, 2005 at 12:25:12PM -0400, Cliff Hirsch wrote: > How do you access the table from each new thread? Can a thread access > other session data or do you store the table in a database? > > >I like to store corresponding sessions in table, tracking the user id, > session id, last >active timestamp, if they clicked "logout," etc. This > was done in-part to prevent > >multiple account logins, but if you have something like that to test > against, you can > >determine if the user has logged out before processing any other data. > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From rahmin at insite-out.com Wed Jul 20 13:07:58 2005 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Wed, 20 Jul 2005 13:07:58 -0400 Subject: [nycphp-talk] Cannot unset $_POST during logout Message-ID: <200507201707.j6KH7wOx006569@webmail5.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From lists at zaunere.com Wed Jul 20 15:12:58 2005 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 20 Jul 2005 15:12:58 -0400 Subject: [nycphp-talk] Cannot unset $_POST during logout In-Reply-To: <20050720160732.GA25969@neuropunks.org> Message-ID: <0MKz1m-1DvK011uCw-0005mf@mrelay.perfora.net> On Wednesday, July 20, 2005 12:08 PM, talk-bounces at lists.nyphp.org wrote: > Hello, > cant figure this out, Im trying to make it so once a user > logs out, they cannot hit back and be logged back in - which > im sure is trivial, but for some reason does not work with my code. > here is the code snippet from the beginning of index.php > (which handles $_POST $_GET and does > authentication/signup/proper page display): > > session_start(); > require_once ("../conf/app.conf"); > > $page = new Page(); > > if ($_GET) { > $get = input_process($_GET); > if ($get[a] == "signup") { > $page->body .= build_signup(); > $page->body .= build_survey(); > $page->htmlBuild("index"); > exit; > } > > if ($get[a] == "logout") { > unset($_POST); > unset($_GET); > unset($_SESSION); > session_unset(); > session_destroy(); > $page->body = "You were successfully logged out"; > $page->htmlBuild("index"); > exit; > } > > } > > > > > > The code goes on for much more after that, but i would think > these are the relevant parts. > I also tried inserting various header() cache control things, > but that didnt work either. If I print_r($_POST) after I call > unset()'s and session_destroy() its empty, so somehow the > browser caches the $_POST and does not honor > > header("Cache-Control: no-store, no-cache, must-revalidate"); > > which I used to have at the beginning of this page (after > session_start() and before require_once()) > I also tried replacing unset() with $_SESSION = array() and > same for $_POST and $_GET but it still caches. > There are checks in the code for varous $_SESSION vars to be > set to gain access to certain data, so you would think > unset($_SESSION) would prevent access, but it doesnt. > Here is one of the checks: > > if (count($_SESSION[user]) > 1) { > echo "
This is protected content, only for > authenticated users."; > } else { > echo "
This is general content for everyone."; > } > > That is in the html that gets called by $page->htmlBuild > function, and it still gets bypassed due to caching (of $_POST i > would assume) So I am a little confused now, I looked at some other > code > and it looks like checking for certain $_SESSION vars being > set is an acceptable authentication verification method, but > it fails for me. There are a couple of different issues here. Number, is to destroy the session, which you're doing. The basic procedure at: http://us2.php.net/session_destroy should suffice. Now regardless of whether the user hits the back button or not, his session will be dead. Keep in mind that sessions are stored on the server, and once you destroy it, and properly handle any cookies if they exist, you've effectively logged them out. $_POST and $_GET will be set in PHP regardless of a session. They are created automatically if there's such a request from the browser, and shouldn't be depended on for a session. Instead, the state of the session, using the functions in the above URL, should be used to qualify whether a session is active, and thus if they have the correct credentials. Then, $_GET and $_POST can be acted upon accordingly. Hope that helps a little, --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From michael.southwell at nyphp.org Wed Jul 20 16:33:08 2005 From: michael.southwell at nyphp.org (Michael Southwell) Date: Wed, 20 Jul 2005 16:33:08 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'] is now working... Message-ID: <6.1.2.0.2.20050720162814.02114aa8@mail.optonline.net> because I finally noticed the include with the unnoticed output ;-( but hmm, it worked on localhost anyway ?????). Anyway, thanks to those whose ideas got me looking closely enough to find what I had previously overlooked. Michael Southwell, Vice President for Education New York PHP http://nyphp.org/twoday - In-depth PHP Training Courses From danielc at analysisandsolutions.com Wed Jul 20 19:02:34 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 20 Jul 2005 19:02:34 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> Message-ID: <20050720230234.GA28079@panix.com> Hey Michael: On Wed, Jul 20, 2005 at 10:14:17AM -0400, Michael Southwell wrote: > > header( > "Location:$_SERVER[PHP_SELF]?action=internet&reqflag=1&join=$joinFlag"); Putting aside the issues other people mentioned, not quoting key names is damn ugly and causes notices. You can do any of the following. "Location: {$_SERVER['PHP_SELF']}?action..." "Location: ${_SERVER['PHP_SELF']}?action...
" 'Location: ' . $_SERVER['PHP_SELF'] . '?action...' More importantly, PHP_SELF can be tainted by users. Don't assume it's safe. --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 shiflett at php.net Wed Jul 20 19:22:55 2005 From: shiflett at php.net (Chris Shiflett) Date: Wed, 20 Jul 2005 19:22:55 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> Message-ID: <42DEDCCF.2070708@php.net> Michael Southwell wrote: > $_SERVER['PHP_SELF'] doesn't seem to be working. [snip] > header("Location:$_SERVER[PHP_SELF]?action=internet&reqflag=1&join=$joinFlag"); As someone else suggested, a good first debugging step is to use echo instead of header(), so you see exactly what header you're sending. In this case, there are several problems worth eliminating, most of which Dan pointed out: 1. No space after the colon 2. No absolute URL 3. Improper syntax for an array When you reference an array as $_SERVER[PHP_SELF], you're telling PHP that the index of the element you want is the constant PHP_SELF. Once PHP discovers that no such constant exists, it will try to treat PHP_SELF as a string, in case that's what you really meant. In a brief test, none of these mistakes made it fail to redirect, so there must be something else (or your browser is pickier). Perhaps $joinFlag is not set, and your error_reporting is set to E_ALL? What's the behavior you're observing? Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From cliff at pinestream.com Wed Jul 20 20:11:25 2005 From: cliff at pinestream.com (cliff) Date: Wed, 20 Jul 2005 19:11:25 -0500 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <20050720230234.GA28079@panix.com> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> Message-ID: <20050721001125.M47801@pinestream.com> Dan: You have opened a can of worms. If PHP_SELF can be tainted, are you saying we shouldn't use it? It's such a valuable tool. HOw can we guarantee it's integrity? > More importantly, PHP_SELF can be tainted by users. Don't assume > it's safe. > > --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 > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From shiflett at php.net Thu Jul 21 08:09:57 2005 From: shiflett at php.net (Chris Shiflett) Date: Thu, 21 Jul 2005 08:09:57 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <20050721001125.M47801@pinestream.com> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <20050721001125.M47801@pinestream.com> Message-ID: <42DF9095.5030309@php.net> cliff wrote: > You have opened a can of worms. If PHP_SELF can be tainted, are > you saying we shouldn't use it? It's such a valuable tool. HOw > can we guarantee it's integrity? To answer a question with a question, everything you receive from the user is tainted, so should you not use any of it? :-) Dan is just pointing out the fact that you should filter it first. With the way Michael is using it, an attacker could potentially send a string with a \r\n in it to send additional HTTP headers of the attacker's choosing. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From tgales at tgaconnect.com Thu Jul 21 08:21:12 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 21 Jul 2005 08:21:12 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <20050721001125.M47801@pinestream.com> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <20050721001125.M47801@pinestream.com> Message-ID: <200507210821.12113.tgales@tgaconnect.com> On Wednesday 20 July 2005 08:11 pm, cliff wrote: > Dan: > > You have opened a can of worms. If PHP_SELF can be tainted, are you saying > we shouldn't use it? It's such a valuable tool. HOw can we guarantee it's > integrity? > You could filter with a whitelist approach as suggested at: http://phpsec.org/projects/guide/1.html -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From chsnyder at gmail.com Thu Jul 21 08:54:45 2005 From: chsnyder at gmail.com (csnyder) Date: Thu, 21 Jul 2005 08:54:45 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <20050720230234.GA28079@panix.com> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> Message-ID: On 7/20/05, Daniel Convissor wrote: > More importantly, PHP_SELF can be tainted by users. Don't assume it's > safe. Hmm. How does $_SERVER['PHP_SELF'] get tainted by users? -- Chris Snyder http://chxo.com/ From george at omniti.com Thu Jul 21 09:15:38 2005 From: george at omniti.com (George Schlossnagle) Date: Thu, 21 Jul 2005 09:15:38 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> Message-ID: On Jul 21, 2005, at 8:54 AM, csnyder wrote: > On 7/20/05, Daniel Convissor wrote: > > >> More importantly, PHP_SELF can be tainted by users. Don't assume >> it's >> safe. >> > > Hmm. How does $_SERVER['PHP_SELF'] get tainted by users? By appending parameters to the uri you're requesting, i.e. requesting http://example.com/?$BAD_STUFF_HERE George From chsnyder at gmail.com Thu Jul 21 09:22:43 2005 From: chsnyder at gmail.com (csnyder) Date: Thu, 21 Jul 2005 09:22:43 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> Message-ID: On 7/21/05, George Schlossnagle wrote: > > On Jul 21, 2005, at 8:54 AM, csnyder wrote: > > > On 7/20/05, Daniel Convissor wrote: > > > > > >> More importantly, PHP_SELF can be tainted by users. Don't assume > >> it's > >> safe. > >> > > > > Hmm. How does $_SERVER['PHP_SELF'] get tainted by users? > > By appending parameters to the uri you're requesting, i.e. requesting > > http://example.com/?$BAD_STUFF_HERE Not in PHP 5.0.4 -- PHP_SELF is only the relative filename of the script called by the webserver, no query information is attached. From cliff at pinestream.com Thu Jul 21 09:30:18 2005 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 21 Jul 2005 09:30:18 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: Message-ID: <005501c58df8$5663e400$11a8a8c0@cliff> On 7/21/05, George Schlossnagle wrote: > > On Jul 21, 2005, at 8:54 AM, csnyder wrote: > > > On 7/20/05, Daniel Convissor > > wrote: > > > > > >> More importantly, PHP_SELF can be tainted by users. Don't assume > >> it's safe. > >> > > > > Hmm. How does $_SERVER['PHP_SELF'] get tainted by users? > > By appending parameters to the uri you're requesting, i.e. requesting > > http://example.com/?$BAD_STUFF_HERE > >Not in PHP 5.0.4 -- PHP_SELF is only the relative filename of the >script called by the webserver, no query information is attached. This would eliminate the security hole, but does mean that we would have to reconstruct the get query to figure out how to get back to where we started from. A bit of a pain if we are trying to bounce back to a page that, for example, requested user login. From tgales at tgaconnect.com Thu Jul 21 10:01:42 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 21 Jul 2005 10:01:42 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> Message-ID: <42DFAAC6.3080307@tgaconnect.com> csnyder wrote: > On 7/21/05, George Schlossnagle wrote: > >>On Jul 21, 2005, at 8:54 AM, csnyder wrote: >> >> >>>On 7/20/05, Daniel Convissor wrote: >>> >>> >>> >>>>More importantly, PHP_SELF can be tainted by users. Don't assume >>>>it's >>>>safe. >>>> >>> >>>Hmm. How does $_SERVER['PHP_SELF'] get tainted by users? >> >>By appending parameters to the uri you're requesting, i.e. requesting >> >>http://example.com/?$BAD_STUFF_HERE > > > Not in PHP 5.0.4 -- PHP_SELF is only the relative filename of the > script called by the webserver, no query information is attached. > _______________________________________________ The original question was how to get >> header( >>"Location:$_SERVER[PHP_SELF]?action=internet&reqflag=1&join=$joinFlag"); >> -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From george at omniti.com Thu Jul 21 10:09:37 2005 From: george at omniti.com (George Schlossnagle) Date: Thu, 21 Jul 2005 10:09:37 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <42DFAAC6.3080307@tgaconnect.com> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <42DFAAC6.3080307@tgaconnect.com> Message-ID: On Jul 21, 2005, at 10:01 AM, Tim Gales wrote: > csnyder wrote: > >> On 7/21/05, George Schlossnagle wrote: >> >> >>> On Jul 21, 2005, at 8:54 AM, csnyder wrote: >>> >>> >>> >>>> On 7/20/05, Daniel Convissor >>>> wrote: >>>> >>>> >>>> >>>> >>>>> More importantly, PHP_SELF can be tainted by users. Don't assume >>>>> it's >>>>> safe. >>>>> >>>>> >>>> >>>> Hmm. How does $_SERVER['PHP_SELF'] get tainted by users? >>>> >>> >>> By appending parameters to the uri you're requesting, i.e. >>> requesting >>> >>> http://example.com/?$BAD_STUFF_HERE >>> >> >> >> Not in PHP 5.0.4 -- PHP_SELF is only the relative filename of the >> script called by the webserver, no query information is attached. My example was flawed, but the same case still works. Apache allows the use of '/' as an IFS, so you can do http://www.example.com/index.php/$BAD_STUFF_HERE and it will appear in full form in PHP_SELF. Georg From dcech at phpwerx.net Thu Jul 21 10:12:11 2005 From: dcech at phpwerx.net (Dan Cech) Date: Thu, 21 Jul 2005 10:12:11 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> Message-ID: <42DFAD3B.5050608@phpwerx.net> George Schlossnagle wrote: > On Jul 21, 2005, at 8:54 AM, csnyder wrote: >>On 7/20/05, Daniel Convissor wrote: >>>More importantly, PHP_SELF can be tainted by users. Don't assume >>>it's >>>safe. >> >>Hmm. How does $_SERVER['PHP_SELF'] get tainted by users? > > By appending parameters to the uri you're requesting, i.e. requesting > > http://example.com/?$BAD_STUFF_HERE As far as I am aware, $_SERVER['PHP_SELF'] does not contain any query string information, from the manual: > 'PHP_SELF' > The filename of the currently executing script, relative to the document root. For instance, $_SERVER['PHP_SELF'] in a script at the address http://example.com/test.php/foo.bar would be /test.php/foo.bar. The __FILE__ constant contains the full path and filename of the current (i.e. included) file. > > If PHP is running as a command-line processor this variable contains the script name since PHP 4.3.0. Previously it was not available. Testing on my local machine running 4.4.0 shows this behaviour: > $_SERVER["QUERY_STRING"] hello=tiger > $_SERVER["REQUEST_URI"] /info.php?hello=tiger > $_SERVER["SCRIPT_NAME"] /info.php > $_SERVER["PHP_SELF"] /info.php So, it seems $_SERVER['PHP_SELF'] should be relatively safe to use this way. Dan From dcech at phpwerx.net Thu Jul 21 10:16:48 2005 From: dcech at phpwerx.net (Dan Cech) Date: Thu, 21 Jul 2005 10:16:48 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <42DFAAC6.3080307@tgaconnect.com> Message-ID: <42DFAE50.3090906@phpwerx.net> George Schlossnagle wrote: > My example was flawed, but the same case still works. Apache allows > the use of '/' as an IFS, so you can do > > http://www.example.com/index.php/$BAD_STUFF_HERE and it will appear > in full form in PHP_SELF. You are absolutely correct, I hadn't thought of that case either. Would it make more sense to use the $_SERVER['SCRIPT_NAME'] variable? > $_SERVER["QUERY_STRING"] no value > $_SERVER["REQUEST_URI"] /info.php/hello=tiger > $_SERVER["SCRIPT_NAME"] /info.php > $_SERVER["PATH_INFO"] /hello=tiger > $_SERVER["PHP_SELF"] /info.php/hello=tiger Dan From lists at zaunere.com Thu Jul 21 10:26:13 2005 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 21 Jul 2005 10:26:13 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: Message-ID: <0MKyxe-1Dvc052RBV-0008M5@mrelay.perfora.net> > > > > > > More importantly, PHP_SELF can be tainted by users. Don't > > > > > > assume it's safe. > > > > > > > > > > > > > > > > > > > > > > Hmm. How does $_SERVER['PHP_SELF'] get tainted by users? > > > > > > > > > > > > > By appending parameters to the uri you're requesting, i.e. > > > > requesting > > > > > > > > http://example.com/?$BAD_STUFF_HERE > > > > > > > > > > > > > Not in PHP 5.0.4 -- PHP_SELF is only the relative filename of the > > > script called by the webserver, no query information is attached. > > My example was flawed, but the same case still works. Apache allows > the use of '/' as an IFS, so you can do > > http://www.example.com/index.php/$BAD_STUFF_HERE and it will appear > in full form in PHP_SELF. And PHP_SELF depends on the configuration of Apache, too, as it will change depending on certain directives. I'm a fan of SCRIPT_NAME... --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From chsnyder at gmail.com Thu Jul 21 10:43:53 2005 From: chsnyder at gmail.com (csnyder) Date: Thu, 21 Jul 2005 10:43:53 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <42DFAAC6.3080307@tgaconnect.com> Message-ID: On 7/21/05, George Schlossnagle wrote: > > My example was flawed, but the same case still works. Apache allows > the use of '/' as an IFS, so you can do > > http://www.example.com/index.php/$BAD_STUFF_HERE and it will appear > in full form in PHP_SELF. Ah, now we're getting somewhere. So the BAD_STUFF would include %0D%0A (\r\n) followed by some other HTTP headers. http://www.example.com/index.php/foo%0D%0ALocation%3A%20http... Sounds like $_SERVER['SCRIPT_NAME'] is definitely the way to go here, or at least strip any newlines out of PHP_SELF. From chsnyder at gmail.com Thu Jul 21 10:53:05 2005 From: chsnyder at gmail.com (csnyder) Date: Thu, 21 Jul 2005 10:53:05 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <42DFAAC6.3080307@tgaconnect.com> Message-ID: This also means that if you use $_SERVER['PHP_SELF'] as the url for a
action, you'd better make sure you filter it using htmlentities(). One urlencoded doublequote would open you up to a cross-site scripting attack. You really did open a can of worms, Michael! From agfische at email.smith.edu Thu Jul 21 11:04:51 2005 From: agfische at email.smith.edu (Aaron Fischer) Date: Thu, 21 Jul 2005 11:04:51 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <42DFAAC6.3080307@tgaconnect.com> Message-ID: <90446aee83282334eaa4b0b24789d9b5@email.smith.edu> I've been following this topic with interest. Can someone clarify what the IFS is? Internet File System is my speculative guess... Thanks, -Aaron > > My example was flawed, but the same case still works. Apache allows > the use of '/' as an IFS, so you can do > > http://www.example.com/index.php/$BAD_STUFF_HERE and it will appear > in full form in PHP_SELF. From george at omniti.com Thu Jul 21 11:11:10 2005 From: george at omniti.com (George Schlossnagle) Date: Thu, 21 Jul 2005 11:11:10 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <90446aee83282334eaa4b0b24789d9b5@email.smith.edu> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <42DFAAC6.3080307@tgaconnect.com> <90446aee83282334eaa4b0b24789d9b5@email.smith.edu> Message-ID: On Jul 21, 2005, at 11:04 AM, Aaron Fischer wrote: > I've been following this topic with interest. Can someone clarify > what > the IFS is? Internet File System is my speculative guess... Input Field Separator. In this case the token that separates the path which maps to a file on disk and the query string parameters. 'Normally' you do http://example.com/index.php?foo=bar Apache allows the following as an equivalent expression: http://example.com/index.php/foo=bar George From matt at atopia.net Thu Jul 21 11:22:10 2005 From: matt at atopia.net (Matt Juszczak) Date: Thu, 21 Jul 2005 11:22:10 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <42DFAAC6.3080307@tgaconnect.com> Message-ID: <42DFBDA2.7020905@atopia.net> Great, and all my old systems use $_SERVER['PHP_SELF'] in the .................... csnyder wrote: >This also means that if you use $_SERVER['PHP_SELF'] as the url for a > action, you'd better make sure you filter it using >htmlentities(). One urlencoded doublequote would open you up to a >cross-site scripting attack. > >You really did open a can of worms, Michael! >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > >!DSPAM:42dfb6f8241174053363745! > > From danielc at analysisandsolutions.com Thu Jul 21 11:22:15 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 21 Jul 2005 11:22:15 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <0MKyxe-1Dvc052RBV-0008M5@mrelay.perfora.net> References: <0MKyxe-1Dvc052RBV-0008M5@mrelay.perfora.net> Message-ID: <20050721152215.GA8012@panix.com> On Thu, Jul 21, 2005 at 10:26:13AM -0400, Hans Zaunere wrote: > > And PHP_SELF depends on the configuration of Apache, too, as it will > change depending on certain directives. I'm a fan of SCRIPT_NAME... __FILE__ is the safest, most reliable (cross-sapi) way to get this kind of info. basename() and dirname() functions on that value can be very helpful. --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 danielc at analysisandsolutions.com Thu Jul 21 11:26:43 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 21 Jul 2005 11:26:43 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <42DFBDA2.7020905@atopia.net> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <42DFAAC6.3080307@tgaconnect.com> <42DFBDA2.7020905@atopia.net> Message-ID: <20050721152643.GB8012@panix.com> Hey: On Thu, Jul 21, 2005 at 11:22:10AM -0400, Matt Juszczak wrote: > Great, and all my old systems use $_SERVER['PHP_SELF'] in the method="action" post="..."> .................... Of course, ou mean . Anyway, using PHP_SELF for the action is supurfluous, since all it does is name itself the default action of a form is submitting to itself in the first place. --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 agfische at email.smith.edu Thu Jul 21 11:27:05 2005 From: agfische at email.smith.edu (Aaron Fischer) Date: Thu, 21 Jul 2005 11:27:05 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <42DFAAC6.3080307@tgaconnect.com> <90446aee83282334eaa4b0b24789d9b5@email.smith.edu> Message-ID: On Jul 21, 2005, at 11:11 AM, George Schlossnagle wrote: > > On Jul 21, 2005, at 11:04 AM, Aaron Fischer wrote: > >> I've been following this topic with interest. Can someone clarify >> what >> the IFS is? Internet File System is my speculative guess... > > Input Field Separator. In this case the token that separates the > path which maps to a file on disk and the query string parameters. > 'Normally' you do > > http://example.com/index.php?foo=bar > > Apache allows the following as an equivalent expression: > > http://example.com/index.php/foo=bar > > George > > I see, thanks. So the jist of it is that in PHP 5 the user can still pass bad stuff to PHP_SELF through the query string if they use the / token. I'm interested in learning more about security stuff and filtering/cleansing user data. Checking out Tim's link... -Aaron From george at omniti.com Thu Jul 21 11:28:50 2005 From: george at omniti.com (George Schlossnagle) Date: Thu, 21 Jul 2005 11:28:50 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <42DFAAC6.3080307@tgaconnect.com> <90446aee83282334eaa4b0b24789d9b5@email.smith.edu> Message-ID: On Jul 21, 2005, at 11:27 AM, Aaron Fischer wrote: >> > > I see, thanks. So the jist of it is that in PHP 5 the user can still > pass bad stuff to PHP_SELF through the query string if they use the / > token. In PHP4 too. They behave the same, my original comment was a typo/ thoughto. > > I'm interested in learning more about security stuff and > filtering/cleansing user data. Checking out Tim's link... It's important stuff to know. Great power/great responsibility, etc. etc. George From chsnyder at gmail.com Thu Jul 21 11:55:19 2005 From: chsnyder at gmail.com (csnyder) Date: Thu, 21 Jul 2005 11:55:19 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <20050721152643.GB8012@panix.com> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <42DFAAC6.3080307@tgaconnect.com> <42DFBDA2.7020905@atopia.net> <20050721152643.GB8012@panix.com> Message-ID: On 7/21/05, Daniel Convissor wrote: > Anyway, using PHP_SELF for the action is supurfluous, since all it does is > name itself the default action of a form is submitting to itself in the first place. Except that if you call the script with a URI that includes embedded quotes, you can break the form and add abritrary HTML to the page. when called with a url like: index.php/%22%3E%3C%2Fform%3EMy%20HTML%20Here Becomes: My HTML Here" method="post"> From george at omniti.com Thu Jul 21 12:00:25 2005 From: george at omniti.com (George Schlossnagle) Date: Thu, 21 Jul 2005 12:00:25 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <42DFAAC6.3080307@tgaconnect.com> <42DFBDA2.7020905@atopia.net> <20050721152643.GB8012@panix.com> Message-ID: On Jul 21, 2005, at 11:55 AM, csnyder wrote: > On 7/21/05, Daniel Convissor wrote: > >> Anyway, using PHP_SELF for the action is supurfluous, since all it >> does is >> name itself the default action of a form is submitting to itself >> in the first place. >> > > Except that if you call the script with a URI that includes embedded > quotes, you can break the form and add abritrary HTML to the page. > >
when called > with a url like: > > index.php/%22%3E%3C%2Fform%3EMy%20HTML%20Here > > Becomes: > >
My HTML Here" method="post"> His point was that using PHP_SELF as the form action was not only insecure but pointless as well, since best-case it restates the default behavior. George From shiflett at php.net Thu Jul 21 12:10:52 2005 From: shiflett at php.net (Chris Shiflett) Date: Thu, 21 Jul 2005 12:10:52 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <42DFAAC6.3080307@tgaconnect.com> Message-ID: <42DFC90C.5050709@php.net> csnyder wrote: > This also means that if you use $_SERVER['PHP_SELF'] as the url for a >
action, you'd better make sure you filter it using > htmlentities(). One urlencoded doublequote would open you up to a > cross-site scripting attack. Yep, and this is discussed here: http://blog.phpdoc.info/archives/13-XSS-Woes.html As Dan pointed out, the default action is the current URL anyway. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From cliff at pinestream.com Thu Jul 21 15:36:43 2005 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 21 Jul 2005 15:36:43 -0400 Subject: [nycphp-talk] Zend October SFO versus PHP Works September Toronto conferences In-Reply-To: <20050721152215.GA8012@panix.com> Message-ID: <005701c58e2b$865a7420$11a8a8c0@cliff> Any thoughts on the merits or differences between the upcoming Zend conference in San Francisco in October and the PHP Works conference in Toronto in September? Which one would you attend? None, one, both? Cliff Hirsch From Michael_Cassidy at advancemags.com Thu Jul 21 15:47:20 2005 From: Michael_Cassidy at advancemags.com (Cassidy, Michael) Date: Thu, 21 Jul 2005 15:47:20 -0400 Subject: [nycphp-talk] Zend October SFO versus PHP Works September Toronto conferences In-Reply-To: <005701c58e2b$865a7420$11a8a8c0@cliff> Message-ID: San fran is nice in oct > From: Cliff Hirsch > Organization: Pinestream Communications, Inc. > Reply-To: NYPHP Talk > Date: Thu, 21 Jul 2005 15:36:43 -0400 > To: 'NYPHP Talk' > Subject: [nycphp-talk] Zend October SFO versus PHP Works September Toronto > conferences > > Any thoughts on the merits or differences between the upcoming Zend > conference in San Francisco in October and the PHP Works conference in > Toronto in September? Which one would you attend? None, one, both? > > Cliff Hirsch > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From dmintz at davidmintz.org Thu Jul 21 16:06:40 2005 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 21 Jul 2005 16:06:40 -0400 (EDT) Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <42DFC90C.5050709@php.net> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <42DFAAC6.3080307@tgaconnect.com> <42DFC90C.5050709@php.net> Message-ID: On Thu, 21 Jul 2005, Chris Shiflett wrote: > [...] > http://blog.phpdoc.info/archives/13-XSS-Woes.html > > As Dan pointed out, the default action is the current URL anyway. It looks as though "action" is a required attribute of the FORM element according to the HTML 4.01 spec. I wonder if empty string is a valid value... guess I should test it against a validator. --- David Mintz http://davidmintz.org/ From dmintz at davidmintz.org Thu Jul 21 16:28:28 2005 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 21 Jul 2005 16:28:28 -0400 (EDT) Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <42DFAAC6.3080307@tgaconnect.com> <42DFC90C.5050709@php.net> Message-ID: On Thu, 21 Jul 2005, David Mintz wrote: > It looks as though "action" is a required attribute of the FORM element > according to the HTML 4.01 spec. I wonder if empty string is a valid > value... guess I should test it against a validator. Correct. "action" is a required attribute of FORM, and according to validator.w3.org, action="" is fine. --- David Mintz http://davidmintz.org/ From matt at atopia.net Thu Jul 21 16:52:18 2005 From: matt at atopia.net (Matt Juszczak) Date: Thu, 21 Jul 2005 16:52:18 -0400 (EDT) Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <42DF9095.5030309@php.net> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <20050721001125.M47801@pinestream.com> <42DF9095.5030309@php.net> Message-ID: <20050721164957.U31212@neptune.atopia.net> >> You have opened a can of worms. If PHP_SELF can be tainted, are >> you saying we shouldn't use it? It's such a valuable tool. HOw >> can we guarantee it's integrity? I'm freaking out now ... Like I had before.... appears in a LOT of my code. is it now crucial to switch this to: Is there any circumstance which could keep me from having to switch all this code? -Matt From dcech at phpwerx.net Thu Jul 21 17:16:21 2005 From: dcech at phpwerx.net (Dan Cech) Date: Thu, 21 Jul 2005 17:16:21 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <20050721164957.U31212@neptune.atopia.net> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <20050721001125.M47801@pinestream.com> <42DF9095.5030309@php.net> <20050721164957.U31212@neptune.atopia.net> Message-ID: <42E010A5.2030403@phpwerx.net> You could put: $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME']; into one of your common include files. Dan Matt Juszczak wrote: >>>You have opened a can of worms. If PHP_SELF can be tainted, are >>>you saying we shouldn't use it? It's such a valuable tool. HOw >>>can we guarantee it's integrity? > > > I'm freaking out now ... > > Like I had before.... > > > > appears in a LOT of my code. > > is it now crucial to switch this to: > > > > Is there any circumstance which could keep me from having to switch all > this code? > > -Matt From chsnyder at gmail.com Thu Jul 21 17:28:30 2005 From: chsnyder at gmail.com (csnyder) Date: Thu, 21 Jul 2005 17:28:30 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <42DFAAC6.3080307@tgaconnect.com> <42DFC90C.5050709@php.net> Message-ID: On 7/21/05, David Mintz wrote: > Correct. "action" is a required attribute of FORM, and according to > validator.w3.org, action="" is fine. I was getting all ready to say that Safari doesn't like these empty action attributes, but I just tested it and it's fine. I swear I've seen brokenness on this, but maybe it was just a bug that got patched. Which sucks, because I used to use empty actions. Well, back to it I guess. From acas at sapo.pt Thu Jul 21 17:35:54 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Thu, 21 Jul 2005 22:35:54 +0100 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: Message-ID: <000001c58e3c$2d124080$a7179a52@xp> This whole discussion turned out pretty funny for me, as I never have dreamed of using empty actions... And I've been around the net for a while. Thanks [LIST] for being an eye opener, lol. -- Alberto dos Santos acas at sapo.pt Skype: Fatflash -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of csnyder Sent: quinta-feira, 21 de Julho de 2005 22:29 To: NYPHP Talk Subject: Re: [nycphp-talk] $_SERVER['PHP_SELF'} not working? On 7/21/05, David Mintz wrote: > Correct. "action" is a required attribute of FORM, and according to > validator.w3.org, action="" is fine. I was getting all ready to say that Safari doesn't like these empty action attributes, but I just tested it and it's fine. I swear I've seen brokenness on this, but maybe it was just a bug that got patched. Which sucks, because I used to use empty actions. Well, back to it I guess. _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From dmintz at davidmintz.org Thu Jul 21 18:07:36 2005 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 21 Jul 2005 18:07:36 -0400 (EDT) Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <42DFAAC6.3080307@tgaconnect.com> <42DFC90C.5050709@php.net> Message-ID: On Thu, 21 Jul 2005, csnyder wrote: > > I was getting all ready to say that Safari doesn't like these empty > action attributes, but I just tested it and it's fine. I swear I've > seen brokenness on this, but maybe it was just a bug that got patched. > > Which sucks, because I used to use empty actions. Well, back to it I guess. Maybe I'm dense but I lost you there, and I'm curious -- what sucks, and why? --- David Mintz http://davidmintz.org/ From danielc at analysisandsolutions.com Thu Jul 21 19:42:00 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 21 Jul 2005 19:42:00 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <20050721164957.U31212@neptune.atopia.net> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <20050721001125.M47801@pinestream.com> <42DF9095.5030309@php.net> <20050721164957.U31212@neptune.atopia.net> Message-ID: <20050721234200.GA27481@panix.com> Hi Matt: On Thu, Jul 21, 2005 at 04:52:18PM -0400, Matt Juszczak wrote: > is it now crucial to switch this to: > > No, for two reasons: 1) basename() doesn't buy you any security from HTML injection. 2) PHP_SELF is pointless, since the form will act the same way if you just leave the action blank. So, just do this: --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 jsiegel1 at optonline.net Thu Jul 21 20:24:02 2005 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 21 Jul 2005 20:24:02 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: Message-ID: <0IK00063T6G8P260@mta5.srv.hcvlny.cv.net> I had a problem with empty action strings (action="") when visitors were using some old version of AOL with who-knows-what browser embedded in it. Jeff -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of csnyder Sent: Thursday, July 21, 2005 4:29 PM To: NYPHP Talk Subject: Re: [nycphp-talk] $_SERVER['PHP_SELF'} not working? On 7/21/05, David Mintz wrote: > Correct. "action" is a required attribute of FORM, and according to > validator.w3.org, action="" is fine. I was getting all ready to say that Safari doesn't like these empty action attributes, but I just tested it and it's fine. I swear I've seen brokenness on this, but maybe it was just a bug that got patched. Which sucks, because I used to use empty actions. Well, back to it I guess. _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From danielc at analysisandsolutions.com Thu Jul 21 21:17:10 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 21 Jul 2005 21:17:10 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <0IK00063T6G8P260@mta5.srv.hcvlny.cv.net> References: <0IK00063T6G8P260@mta5.srv.hcvlny.cv.net> Message-ID: <20050722011710.GA15314@panix.com> Hey Jeff: On Thu, Jul 21, 2005 at 08:24:02PM -0400, Jeff Siegel wrote: > > I had a problem with empty action strings (action="") when visitors were > using some old version of AOL with who-knows-what browser embedded in it. I generally put the script name in the action="" manually. But for those here who are enthralled with lazy-assed magic, you could do something like this, which I alluded to before: --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 jv_nyphp at duikerbok.com Fri Jul 22 05:30:48 2005 From: jv_nyphp at duikerbok.com (Jose Villegas) Date: Fri, 22 Jul 2005 05:30:48 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <20050721234200.GA27481@panix.com> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050720230234.GA28079@panix.com> <20050721001125.M47801@pinestream.com> <42DF9095.5030309@php.net> <20050721164957.U31212@neptune.atopia.net> <20050721234200.GA27481@panix.com> Message-ID: <49BB1C08-FA93-11D9-8A72-000A95D78076@duikerbok.com> Some browsers interpret an empty action as the web root. I think this happens on IE for the pc, at least some versions. Can't check at the moment. It's definitely caused problems for me. On Jul 21, 2005, at 7:42 PM, Daniel Convissor wrote: > So, just do this: > > ... From jsiegel1 at optonline.net Fri Jul 22 08:59:37 2005 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Fri, 22 Jul 2005 08:59:37 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <20050722011710.GA15314@panix.com> Message-ID: <0IK100GMT5FJWI25@mta1.srv.hcvlny.cv.net> I thought the only good programmer is a lazy programmer. Does that philosophy not hold anymore? Jeff -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Daniel Convissor Sent: Thursday, July 21, 2005 8:17 PM To: NYPHP Talk Subject: Re: [nycphp-talk] $_SERVER['PHP_SELF'} not working? Hey Jeff: On Thu, Jul 21, 2005 at 08:24:02PM -0400, Jeff Siegel wrote: > > I had a problem with empty action strings (action="") when visitors were > using some old version of AOL with who-knows-what browser embedded in it. I generally put the script name in the action="" manually. But for those here who are enthralled with lazy-assed magic, you could do something like this, which I alluded to before: --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 _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From dmintz at davidmintz.org Fri Jul 22 09:16:02 2005 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 22 Jul 2005 09:16:02 -0400 (EDT) Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <0IK100GMT5FJWI25@mta1.srv.hcvlny.cv.net> References: <0IK100GMT5FJWI25@mta1.srv.hcvlny.cv.net> Message-ID: I feel a haiku coming on. Something about the PHP Self and how you can't taint my __FILE__. --- David Mintz http://davidmintz.org/ From george at omniti.com Fri Jul 22 09:17:47 2005 From: george at omniti.com (George Schlossnagle) Date: Fri, 22 Jul 2005 09:17:47 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <0IK100GMT5FJWI25@mta1.srv.hcvlny.cv.net> Message-ID: <72929935-21B2-44CA-B27C-4684DBA113AA@omniti.com> On Jul 22, 2005, at 9:16 AM, David Mintz wrote: > > I feel a haiku coming on. Something about the PHP Self and how you > can't > taint my __FILE__. Fool! Haikus are reserved for Perl! George From chucksmith at fun-electronics.com Fri Jul 22 09:54:37 2005 From: chucksmith at fun-electronics.com (chucksmith at fun-electronics.com) Date: Fri, 22 Jul 2005 09:54:37 -0400 Subject: [nycphp-talk] server stats - hits by response code? In-Reply-To: References: Message-ID: <1122040477.42e0fa9d28069@webmail.fun-electronics.com> At work, we're using Webalizer 2.01 and I ran across the following statistics in a site we just launched about a week ago (perfumesandpampering.com). I saw the following statistics under Hits by Response Code: Code 200 - OK 4564 Code 206 - Partial Content 2 Code 301 - Moved Permanently 1 Code 302 - Found 155 Code 304 - Not Modified 2836 Code 400 - Bad Request 7 Code 403 - Forbidden 116 Code 404 - Not Found 165 Is there any site that explains what these codes mean without the highly technical jargon that one finds at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html? Should I be concerned about any of these numbers or are they fairly normal? Is there anything I should check to make sure our site is working properly? Thank you, Chuck Smith ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From codebowl at gmail.com Fri Jul 22 09:12:22 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 22 Jul 2005 09:12:22 -0400 Subject: [nycphp-talk] Batch Printing Message-ID: <8d9a4280050722061246dfc585@mail.gmail.com> Hello Everyone, Once again i have a question for you guys. I have a list of perspective clients in an mysql database. I would like to send them letters to try to gain them as a client. I know i can use a template engine such as smarty to create the HTML template. Here's the question. Is there a way i could run a script and have it automatically loop each record, send it off to my printer? I know i could do this with javascript to auto print the page i am looking at. Also i know that PHP is serverside and if installed on my remote server there is no way to send it to my local printer, so i was thinking of making a script here on my dev machine that would access the remote db, maybe then there is a way to have PHP or JS send each record to my printer in a batch job. Any suggestions will be appreciated -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Consult at CovenantEDesign.com Fri Jul 22 10:08:22 2005 From: Consult at CovenantEDesign.com (CED) Date: Fri, 22 Jul 2005 10:08:22 -0400 Subject: [nycphp-talk] server stats - hits by response code? References: <1122040477.42e0fa9d28069@webmail.fun-electronics.com> Message-ID: <047401c58ec6$d27726a0$0319a8c0@ced> Those numbers look typical. The first number is really the only particular attention you should give if you want to keep it NOT technical... http://kbs.cs.tu-berlin.de/~jutta/ht/responses.html Edward Prevost Applications Specialist Albany Medical College Edward.Prevost at amc.edu ----- Original Message ----- From: To: Sent: Friday, July 22, 2005 9:54 AM Subject: [nycphp-talk] server stats - hits by response code? At work, we're using Webalizer 2.01 and I ran across the following statistics in a site we just launched about a week ago (perfumesandpampering.com). I saw the following statistics under Hits by Response Code: Code 200 - OK 4564 Code 206 - Partial Content 2 Code 301 - Moved Permanently 1 Code 302 - Found 155 Code 304 - Not Modified 2836 Code 400 - Bad Request 7 Code 403 - Forbidden 116 Code 404 - Not Found 165 Is there any site that explains what these codes mean without the highly technical jargon that one finds at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html? Should I be concerned about any of these numbers or are they fairly normal? Is there anything I should check to make sure our site is working properly? Thank you, Chuck Smith ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From tom at supertom.com Fri Jul 22 10:19:03 2005 From: tom at supertom.com (Tom Melendez) Date: Fri, 22 Jul 2005 10:19:03 -0400 Subject: [nycphp-talk] Batch Printing In-Reply-To: <8d9a4280050722061246dfc585@mail.gmail.com> References: <8d9a4280050722061246dfc585@mail.gmail.com> Message-ID: <42E10057.7030202@supertom.com> Don't know what platform you are on, but you could do the following with IE (you might be able to do the same with FF, I'm not sure). Generate each record as a page (could be dynamic or static) Create a "table of contents", which is one page with all pages linked. In IE, you can say "print all linked documents" Hope that helps! Tom http://www.liphp.org Joseph Crawford wrote: > Hello Everyone, > > Once again i have a question for you guys. I have a list of > perspective clients in an mysql database. I would like to send them > letters to try to gain them as a client. I know i can use a template > engine such as smarty to create the HTML template. Here's the > question. Is there a way i could run a script and have it > automatically loop each record, send it off to my printer? I know i > could do this with javascript to auto print the page i am looking at. > Also i know that PHP is serverside and if installed on my remote > server there is no way to send it to my local printer, so i was > thinking of making a script here on my dev machine that would access > the remote db, maybe then there is a way to have PHP or JS send each > record to my printer in a batch job. > > Any suggestions will be appreciated > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com > >------------------------------------------------------------------------ > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > From hendler at simmons.edu Fri Jul 22 10:48:57 2005 From: hendler at simmons.edu (Jonathan) Date: Fri, 22 Jul 2005 10:48:57 -0400 Subject: [nycphp-talk] Batch Printing In-Reply-To: <42E10057.7030202@supertom.com> References: <8d9a4280050722061246dfc585@mail.gmail.com> <42E10057.7030202@supertom.com> Message-ID: <42E10759.5020501@simmons.edu> I've known people to use BASH or Applescript to generate either html, pdf, or postscript files, then batch those out to the printer. Linux has plenty of command line printing options. I imagine windoze can do it too, if you ask nicely. I guess a lot of the question depends. 1. what platform are you on? 2. how much formatting/images is in the pages? (I mean are they text files, LaTex, PDF, etc) 3. Is this a one shot app you have to finish in 3 hours, or something you plan to re-use and port For PDF I've used ezPDF, free and native php from a guy in NZ. I've seen some one use IE and JS to do batch jobs, but there were 500 pages, and it was really slow and would time out. Tom Melendez wrote: >Don't know what platform you are on, but you could do the following with >IE (you might be able to do the same with FF, I'm not sure). > >Generate each record as a page (could be dynamic or static) >Create a "table of contents", which is one page with all pages linked. >In IE, you can say "print all linked documents" > >Hope that helps! > >Tom > >http://www.liphp.org > > >Joseph Crawford wrote: > > > >>Hello Everyone, >> >>Once again i have a question for you guys. I have a list of >>perspective clients in an mysql database. I would like to send them >>letters to try to gain them as a client. I know i can use a template >>engine such as smarty to create the HTML template. Here's the >>question. Is there a way i could run a script and have it >>automatically loop each record, send it off to my printer? I know i >>could do this with javascript to auto print the page i am looking at. >>Also i know that PHP is serverside and if installed on my remote >>server there is no way to send it to my local printer, so i was >>thinking of making a script here on my dev machine that would access >>the remote db, maybe then there is a way to have PHP or JS send each >>record to my printer in a batch job. >> >>Any suggestions will be appreciated >> >>-- >>Joseph Crawford Jr. >>Codebowl Solutions, Inc. >>1-802-671-2021 >>codebowl at gmail.com >> >>------------------------------------------------------------------------ >> >>_______________________________________________ >>New York PHP Talk Mailing List >>AMP Technology >>Supporting Apache, MySQL and PHP >>http://lists.nyphp.org/mailman/listinfo/talk >>http://www.nyphp.org >> >> >> >> > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > From scott at crisscott.com Fri Jul 22 11:01:02 2005 From: scott at crisscott.com (Scott Mattocks) Date: Fri, 22 Jul 2005 11:01:02 -0400 Subject: [nycphp-talk] Batch Printing In-Reply-To: <8d9a4280050722061246dfc585@mail.gmail.com> References: <8d9a4280050722061246dfc585@mail.gmail.com> Message-ID: <42E10A2E.3090204@crisscott.com> Joseph Crawford wrote: > Hello Everyone, > > Once again i have a question for you guys. I have a list of perspective > clients in an mysql database. I would like to send them letters to try to > gain them as a client. While PHP is wonderful and very versatile, I don't think PHP is the right tool for the job here. There are tools designed specifically to do what you want. Use MS Word's Mail Merge feature to create and print the letters. You will be done in 1/10th the time it will take you to put together a PHP/Smarty/Javascript solution. -- Scott Mattocks scott at crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks From cliff at pinestream.com Fri Jul 22 11:03:40 2005 From: cliff at pinestream.com (Cliff Hirsch) Date: Fri, 22 Jul 2005 11:03:40 -0400 Subject: [nycphp-talk] How do you secure a confidential URL w/query sent via email? In-Reply-To: <20050722011710.GA15314@panix.com> Message-ID: <000001c58ece$8b96f320$11a8a8c0@cliff> I just received an email from evite with a link that looked something like this: References: <1122040477.42e0fa9d28069@webmail.fun-electronics.com> <047401c58ec6$d27726a0$0319a8c0@ced> Message-ID: <42E10FC8.1030705@danhorning.com> best simple link http://internetseer.com/help/error.xtp#Codes CED wrote: >Those numbers look typical. The first number is really the only particular >attention you should give if you want to keep it NOT technical... >http://kbs.cs.tu-berlin.de/~jutta/ht/responses.html > >Edward Prevost >Applications Specialist >Albany Medical College >Edward.Prevost at amc.edu > > > >----- Original Message ----- >From: >To: >Sent: Friday, July 22, 2005 9:54 AM >Subject: [nycphp-talk] server stats - hits by response code? > > >At work, we're using Webalizer 2.01 and I ran across the following >statistics in >a site we just launched about a week ago (perfumesandpampering.com). I saw >the >following statistics under Hits by Response Code: > >Code 200 - OK 4564 >Code 206 - Partial Content 2 >Code 301 - Moved Permanently 1 >Code 302 - Found 155 >Code 304 - Not Modified 2836 >Code 400 - Bad Request 7 >Code 403 - Forbidden 116 >Code 404 - Not Found 165 > >Is there any site that explains what these codes mean without the highly >technical jargon that one finds at >http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html? > >Should I be concerned about any of these numbers or are they fairly normal? >Is >there anything I should check to make sure our site is working properly? > >Thank you, >Chuck Smith > >---------------------------------------------------------------- >This message was sent using IMP, the Internet Messaging Program. > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > From agfische at email.smith.edu Fri Jul 22 11:28:49 2005 From: agfische at email.smith.edu (Aaron Fischer) Date: Fri, 22 Jul 2005 11:28:49 -0400 Subject: [nycphp-talk] Batch Printing In-Reply-To: <42E10A2E.3090204@crisscott.com> References: <8d9a4280050722061246dfc585@mail.gmail.com> <42E10A2E.3090204@crisscott.com> Message-ID: <0b532bf813d842c5afbb53a6f933f0b9@email.smith.edu> Agreed on that. I regularly do the word mail merge thing for stuff like that. Link an Access db to the mysql db and then merge with word. -Aaron On Jul 22, 2005, at 11:01 AM, Scott Mattocks wrote: > > While PHP is wonderful and very versatile, I don't think PHP is the > right tool for the job here. There are tools designed specifically to > do > what you want. Use MS Word's Mail Merge feature to create and print the > letters. You will be done in 1/10th the time it will take you to put > together a PHP/Smarty/Javascript solution. From cliff at pinestream.com Fri Jul 22 11:30:27 2005 From: cliff at pinestream.com (Cliff Hirsch) Date: Fri, 22 Jul 2005 11:30:27 -0400 Subject: [nycphp-talk] How do you secure a confidential URL w/query sent viaemail? In-Reply-To: <000001c58ece$8b96f320$11a8a8c0@cliff> Message-ID: <000401c58ed2$4972bde0$11a8a8c0@cliff> I think I've answered my own question. The very low probability approach just may work. 20 letters = 26^20, if my high school math is correct, which is 2,600,000,000,000,000,000,000 -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Cliff Hirsch Sent: Friday, July 22, 2005 11:04 AM To: 'NYPHP Talk' Subject: [nycphp-talk] How do you secure a confidential URL w/query sent viaemail? I just received an email from evite with a link that looked something like this: References: <0IK100GMT5FJWI25@mta1.srv.hcvlny.cv.net> Message-ID: Thanks, David. Like I don't have enough to do... Empty form action Feels unnaturally sparse PHP_SELF... oops. From chsnyder at gmail.com Fri Jul 22 11:43:29 2005 From: chsnyder at gmail.com (csnyder) Date: Fri, 22 Jul 2005 11:43:29 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <72929935-21B2-44CA-B27C-4684DBA113AA@omniti.com> References: <0IK100GMT5FJWI25@mta1.srv.hcvlny.cv.net> <72929935-21B2-44CA-B27C-4684DBA113AA@omniti.com> Message-ID: On 7/22/05, George Schlossnagle wrote: > Fool! Haikus are reserved for Perl! But PHP can do anything! From hendler at simmons.edu Fri Jul 22 11:57:20 2005 From: hendler at simmons.edu (Jonathan) Date: Fri, 22 Jul 2005 11:57:20 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: References: <0IK100GMT5FJWI25@mta1.srv.hcvlny.cv.net> <72929935-21B2-44CA-B27C-4684DBA113AA@omniti.com> Message-ID: <42E11760.8080309@simmons.edu> Ginsberg is reserved for PHP? csnyder wrote: >On 7/22/05, George Schlossnagle wrote: > > > >>Fool! Haikus are reserved for Perl! >> >> > >But PHP can do anything! >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > From jellicle at gmail.com Fri Jul 22 12:05:17 2005 From: jellicle at gmail.com (Michael Sims) Date: Fri, 22 Jul 2005 12:05:17 -0400 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <42E010A5.2030403@phpwerx.net> References: <6.1.2.0.2.20050720101055.0210c040@mail.optonline.net> <20050721164957.U31212@neptune.atopia.net> <42E010A5.2030403@phpwerx.net> Message-ID: <200507221205.17920.jellicle@gmail.com> On Thursday 21 July 2005 17:16, Dan Cech wrote: > You could put: > > $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME']; > > into one of your common include files. Yes. I'm afraid I don't understand this entire thread. Apparently because of the numerous PHP developer articles recommending it, and because of the php.net page which for whatever reason lists it first on the list of predefined variables, people are using PHP_SELF when they really want SCRIPT_NAME. SCRIPT_NAME solves all the problems mentioned in this thread - it's just the script name, without any extra garbage that might be tacked on by the user. PHP_SELF explicitly includes that extra garbage, so solutions in this thread that involve stripping the garbage off of PHP_SELF to make it safe are really, really missing the point - just use SCRIPT_NAME instead. Please don't use FORM ACTION=""; according to the spec, what the browser does with that is undefined, so even if it works in current browsers, it might not work in future ones. People can be forgiven for making this mistake -- I'm here holding my copy of _Learning PHP 5_, and it recommends on page 8 and again on page 86 the use of PHP_SELF for self-referencing forms, ahem -- but it's time to put it to bed: PHP_SELF is unsafe for any usage where it is echoed back to the page. Michael Sims From dmintz at davidmintz.org Fri Jul 22 12:45:22 2005 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 22 Jul 2005 12:45:22 -0400 (EDT) Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: <42E11760.8080309@simmons.edu> References: <0IK100GMT5FJWI25@mta1.srv.hcvlny.cv.net> <72929935-21B2-44CA-B27C-4684DBA113AA@omniti.com> <42E11760.8080309@simmons.edu> Message-ID: On Fri, 22 Jul 2005, Jonathan wrote: > Ginsberg is reserved for PHP? Ginsberg? Damn, I must be missing the allusion. > >On 7/22/05, George Schlossnagle wrote: > > > > > >>Fool! Haikus are reserved for Perl! > >> --- David Mintz http://davidmintz.org/ From hendler at simmons.edu Fri Jul 22 13:30:03 2005 From: hendler at simmons.edu (Jonathan) Date: Fri, 22 Jul 2005 13:30:03 -0400 Subject: [nycphp-talk] PHP Poetry In-Reply-To: References: <0IK100GMT5FJWI25@mta1.srv.hcvlny.cv.net> <72929935-21B2-44CA-B27C-4684DBA113AA@omniti.com> <42E11760.8080309@simmons.edu> Message-ID: <42E12D1B.8090702@simmons.edu> David Mintz wrote: >On Fri, 22 Jul 2005, Jonathan wrote: > > > >>Ginsberg is reserved for PHP? >> >> Ginsberg? Damn, I must be missing the allusion. >> >> >> Sorry for going so far off topic. Zing! If Haiku (a concise, compact, simplified poetry) can be written in Perl, then is Ginsberg (a often verbose, complicated, free flowing style) to be written in PHP? That's the typical view of _other_ languages' coders of PHP coders, isn't it? I mean if Perl can claim so easily capable of Haiku, can't PHP enjoy a little messiness? Could Python or Ruby be used to write Beat Poetry as sufficiently as PHP? Free Speech Man! Ok, now I sound nutz. Here's a background story : When I was learning to code, some one (rightly) accused my code of being messy and they said good code should be like poetry. So I said, "Then just think of me as Ginsberg!" From chsnyder at gmail.com Fri Jul 22 13:48:56 2005 From: chsnyder at gmail.com (csnyder) Date: Fri, 22 Jul 2005 13:48:56 -0400 Subject: [nycphp-talk] How do you secure a confidential URL w/query sent viaemail? In-Reply-To: <000401c58ed2$4972bde0$11a8a8c0@cliff> References: <000001c58ece$8b96f320$11a8a8c0@cliff> <000401c58ed2$4972bde0$11a8a8c0@cliff> Message-ID: On 7/22/05, Cliff Hirsch wrote: > I think I've answered my own question. The very low probability approach > just may work. > 20 letters = 26^20, if my high school math is correct, which is > 2,600,000,000,000,000,000,000 When you factor in uppercase and numerals, the number of possibilities is even larger. But consider that the code might be a base64-encoded binary string, which means 256 choices for each byte. PHP session IDs work the same way. We trust them because they are large, hard-to-guess random values. From patrick at ramsden.com Fri Jul 22 14:45:05 2005 From: patrick at ramsden.com (Patrick Ramsden) Date: Fri, 22 Jul 2005 13:45:05 -0500 Subject: [nycphp-talk] $_SERVER['PHP_SELF'} not working? In-Reply-To: Message-ID: <47qfdc$1qsr23@smtp04.mrf.mail.rcn.net> I don't think I'd make a good hourly rate writing Haiku... I learned not to use Empty actions and PHP_SELF SCRIPT_NAME from now on! > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of csnyder > Sent: Friday, July 22, 2005 10:33 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] $_SERVER['PHP_SELF'} not working? > > Thanks, David. Like I don't have enough to do... > > Empty form action > Feels unnaturally sparse > PHP_SELF... oops. > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From Michael_Cassidy at advancemags.com Fri Jul 22 16:54:26 2005 From: Michael_Cassidy at advancemags.com (Cassidy, Michael) Date: Fri, 22 Jul 2005 16:54:26 -0400 Subject: [nycphp-talk] A bit long, I hope not too long Message-ID: This is a bit long. I?ve just started messing around with PHP; so I stuff several different thingies.. I?ve run into a problem with IE MAC 5.2. On all my other browsers this page works but on IE MAC though the source code looks identical to the other browsers the link showing what page you are reading is not turning red. I don?t understand. Does IE MAC have problems with: #index #nav p #index-link, #test3 #nav p #test3-link, #assie2 #nav p #assie2-link, #assie_discuss #nav p #assie_discuss-link{ color: red !important; } Thanks. The relevant CSS: #nav p { font-family: Georgia, Times, serif; font-size: 100%; line-height: 2px; padding-left: 2em; color: #024; } #index #nav p #index-link, #test3 #nav p #test3-link, #assie2 #nav p #assie2-link, #assie_discuss #nav p #assie_discuss-link{ color: red !important; } #nav p a:link { text-decoration: none; display: inline; color: #024; } The page [test3.php] doing the calls:

This is the body of the page.

The Page.

$browser

"; ?>

This is the end of the body of the page.

This is head2.php The page "; ?> MAC IE 5.2 Source: The page

This is the body of the page.

The Page.

Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)

This is the end of the body of the page.

Some footer type

Safari MAC Source: The page

This is the body of the page.

The Page.

Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/124 (KHTML, like Gecko) Safari/125.1

This is the end of the body of the page.

Some footer type

-------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Fri Jul 22 16:59:57 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 22 Jul 2005 16:59:57 -0400 Subject: [nycphp-talk] A bit long, I hope not too long In-Reply-To: References: Message-ID: <8d9a428005072213596107686b@mail.gmail.com> i think this is more of a front end question... try front-end at lists.nyphp.org -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Sat Jul 23 13:41:57 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Sat, 23 Jul 2005 13:41:57 -0400 (GMT-04:00) Subject: [nycphp-talk] Web Traffic Analytics Message-ID: <3253-41807@sneakemail.com> This is another case of convenience and perhaps customer ignorance trumping security. These are log-file analysis programs, which operate after-the-fact on server files which contain proprietary company data. Do they really need to be "live" on a public web server? We could go on for months about how users of analytics don't actually understand them, or use them properly, vs. how customers demand access to and over-value the reports, how we have to please the customer as a business model, etc. but the truth includes: - users of log-based analytics don't need "real time" access (if they need "real time" knowledge, they should be using a diferent tool). - every web coder should have technology for providing secure file access for customers, and web analytics (trade secret information) should be accessed that way - not via open http on a pubic web server. Yes we need to satisfy the customer, but I also think that the PHP-talk list is the place to recognize this poor industry practice. Perhaps (gulp) duscussion could lead to some practice improvements. At the very least it needs to be acknowledged (?) It might be commercially helpful if PHP-talk members provided expert advise to their customers on the issue, even as they provided the web-based solutions requested. Perhaps instead of meeting the competitive challenge by lowering price and offering the same stuff, one could diferentiate by doing so along with advice and caution on the poor practice? -=john andrews -----Original Message----- From: "Jeff Knight jeff.knight-at-gmail.com |nyphp dev/internal group use|" <...> Sent: Jul 19, 2005 11:49 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Web Traffic Analytics I see attemts to hit awstats as the number one suspicious activity in my error logs for the last six months. I really like the program, but please make sure to patch it and read all the information about securiing it. Also, rename it and stick it in an odd-named directory just to add that extra layer of obscurity. On 7/19/05, Eric K. wrote: > I have access to Webalizer, Analog and AWStats but I find AWStats to > be the most thorough and my clients really like the granularity of the > reports (breakdown by day, time of day, month, hits, visits, bytes > transfered, referring sites, search engines & keywords etc etc) > > Take a look here: > http://awstats.sourceforge.net/cgi-bin/awstats.pl > > I've had to patch it a couple of times due to security issues but > otherwise it's been great, I'd definitely recommend it. > > On 7/18/05, Matt Morgan wrote: > > Matthew Terenzio wrote: > > > > > > > > > > > Anyone have a favorite web traffic analytics program or service? > > > Preferably free, but I 'd like some level of sophistication. > > > > > I used to really like Analog (http://www.analog.cx), but I haven't been > > in charge of web stats for a while. It was nerdy and fairly manual, but > > pretty capable. It's still maintained and updated, and has both free and > > commercial support options. > > > > Lately I use webalizer but only because the Fedora package is easy to > > install. I don't really know a lot about it. > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From nestorflorez at earthlink.net Sat Jul 23 15:07:49 2005 From: nestorflorez at earthlink.net (Nestor Florez) Date: Sat, 23 Jul 2005 12:07:49 -0700 (GMT-07:00) Subject: [nycphp-talk] OT - Nagios Message-ID: <7325213.1122145669294.JavaMail.root@wamui-royal.atl.sa.earthlink.net> This is not an PHP question but with the multiple background of th epeople in this forum, I figured I wuld ask. Have any of you install Nagios? Any gotchas one must be awared? From chsnyder at gmail.com Sun Jul 24 10:23:35 2005 From: chsnyder at gmail.com (csnyder) Date: Sun, 24 Jul 2005 10:23:35 -0400 Subject: [nycphp-talk] OT - Nagios In-Reply-To: <7325213.1122145669294.JavaMail.root@wamui-royal.atl.sa.earthlink.net> References: <7325213.1122145669294.JavaMail.root@wamui-royal.atl.sa.earthlink.net> Message-ID: On 7/23/05, Nestor Florez wrote: > Have any of you install Nagios? Yes. It works as advertised. > Any gotchas one must be awared? Configuration is a nightmare... well, maybe just a bad dream, but anyway there are six or seven different files with a bunch of default values that all reference each other, and nothing works until they are all in place. If someone were to redo Nagios in a professional, easy-to-install-and-configure way (using zero-config networking!), sysadmins would beat a path to their door. Or even if Cacti (http://www.cacti.net/) would just add an alert system... but the developers have said they aren't interested. From corey at bmfenterprises.com Sun Jul 24 11:30:36 2005 From: corey at bmfenterprises.com (Corey Fogarty) Date: Sun, 24 Jul 2005 11:30:36 -0400 Subject: [nycphp-talk] Batch Printing In-Reply-To: Message-ID: You don?t even need to link to Access, just export a comma separated list to a text file. Mail Merge will grab that no problem. > > Message: 3 > Date: Fri, 22 Jul 2005 11:28:49 -0400 > From: Aaron Fischer > Subject: Re: [nycphp-talk] Batch Printing > To: NYPHP Talk > Message-ID: <0b532bf813d842c5afbb53a6f933f0b9 at email.smith.edu> > Content-Type: text/plain; charset=US-ASCII; format=flowed > > Agreed on that. I regularly do the word mail merge thing for stuff > like that. Link an Access db to the mysql db and then merge with word. > > -Aaron > > On Jul 22, 2005, at 11:01 AM, Scott Mattocks wrote: > >> > >> > While PHP is wonderful and very versatile, I don't think PHP is the >> > right tool for the job here. There are tools designed specifically to >> > do >> > what you want. Use MS Word's Mail Merge feature to create and print the >> > letters. You will be done in 1/10th the time it will take you to put >> > together a PHP/Smarty/Javascript solution. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joshmccormack at travelersdiary.com Sun Jul 24 12:34:27 2005 From: joshmccormack at travelersdiary.com (Josh McCormack) Date: Sun, 24 Jul 2005 12:34:27 -0400 Subject: [nycphp-talk] OT - Nagios In-Reply-To: References: <7325213.1122145669294.JavaMail.root@wamui-royal.atl.sa.earthlink.net> Message-ID: <42E3C313.4040701@travelersdiary.com> I modified Cacti for a client years ago to give clients password protected access to just their info, show 95% info, and it told the hosting company when the MySQL database was getting so large they needed to back it up and move it off-line. It's all pretty hackable. If people want that so much, perhaps I should play around with it again! Josh csnyder wrote: > On 7/23/05, Nestor Florez wrote: > >>Have any of you install Nagios? > > > Yes. It works as advertised. > > >>Any gotchas one must be awared? > > > Configuration is a nightmare... well, maybe just a bad dream, but > anyway there are six or seven different files with a bunch of default > values that all reference each other, and nothing works until they are > all in place. > > If someone were to redo Nagios in a professional, > easy-to-install-and-configure way (using zero-config networking!), > sysadmins would beat a path to their door. > > Or even if Cacti (http://www.cacti.net/) would just add an alert > system... but the developers have said they aren't interested. > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From jeff.loiselle at gmail.com Mon Jul 25 13:00:28 2005 From: jeff.loiselle at gmail.com (Jeff Loiselle) Date: Mon, 25 Jul 2005 13:00:28 -0400 Subject: [nycphp-talk] Input Filtering Message-ID: <4b188711050725100013671882@mail.gmail.com> Can anyone recommend any good packages for input filtering? --- Jeff Loiselle Web Developer, Musician, and Observer http://jeff.loiselles.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gatzby3jr at gmail.com Mon Jul 25 14:41:41 2005 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Mon, 25 Jul 2005 14:41:41 -0400 Subject: [nycphp-talk] strpos with space Message-ID: <29da5d15050725114125ffe04d@mail.gmail.com> I'm trying to create a function that displays the first 250 words of a text, and then puts " ... [ full text ] " (as a link). I did my research and I found the functions that I thought would work, however when I try to findt he 250th space (to determine where the 250th word would be) it doesn't seem to work, and the function only displays 250 characters. Here is the function, maybe I am misunderstanding something: function createTextPreview($text, $words = 250) { if(str_word_count($text) < $words) { return $text; } else { return substr($text, 0, strpos($text, ' ', $words)) . ' ... [ full text ]' . str_word_count($text); } } Thanks in advance. -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From Consult at CovenantEDesign.com Mon Jul 25 14:56:14 2005 From: Consult at CovenantEDesign.com (CED) Date: Mon, 25 Jul 2005 14:56:14 -0400 Subject: [nycphp-talk] strpos with space References: <29da5d15050725114125ffe04d@mail.gmail.com> Message-ID: <00fd01c5914a$89433e20$6401a8c0@ced> Try NOT setting the value of $words in the paramater. try full text ]' . str_word_count($text); } } ?> ----- Original Message ----- From: Brian O'Connor To: talk at lists.nyphp.org Sent: Monday, July 25, 2005 2:41 PM Subject: [nycphp-talk] strpos with space I'm trying to create a function that displays the first 250 words of a text, and then puts " ... [ full text ] " (as a link). I did my research and I found the functions that I thought would work, however when I try to findt he 250th space (to determine where the 250th word would be) it doesn't seem to work, and the function only displays 250 characters. Here is the function, maybe I am misunderstanding something: function createTextPreview($text, $words = 250) { if(str_word_count($text) < $words) { return $text; } else { return substr($text, 0, strpos($text, ' ', $words)) . ' ... [ full text ]' . str_word_count($text); } } Thanks in advance. -- Brian O'Connor ------------------------------------------------------------------------------ _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From gatzby3jr at gmail.com Mon Jul 25 15:15:24 2005 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Mon, 25 Jul 2005 15:15:24 -0400 Subject: [nycphp-talk] strpos with space In-Reply-To: <00fd01c5914a$89433e20$6401a8c0@ced> References: <29da5d15050725114125ffe04d@mail.gmail.com> <00fd01c5914a$89433e20$6401a8c0@ced> Message-ID: <29da5d1505072512157abbffba@mail.gmail.com> Same result, and I also tried replacing $words altogether with 250 just to test that, and still the same result. As a side note, the . str_word_count($text) is there for debugging purposes and I didn't get around to taking it out. On 7/25/05, CED wrote: > > Try NOT setting the value of $words in the paramater. > try > $words = 250 ; > function creatText($text, $words) > { if(str_word_count($text) < $words) { > return $text; > } else { > return substr($text, 0, strpos($text, ' ', $words)) . ' ... [ href="link">full text ]' . str_word_count($text); > } > } > ?> > > ----- Original Message ----- > *From:* Brian O'Connor > *To:* talk at lists.nyphp.org > *Sent:* Monday, July 25, 2005 2:41 PM > *Subject:* [nycphp-talk] strpos with space > > I'm trying to create a function that displays the first 250 words of a > text, and then puts " ... [ full text ] " (as a link). I did my research and > I found the functions that I thought would work, however when I try to findt > he 250th space (to determine where the 250th word would be) it doesn't seem > to work, and the function only displays 250 characters. > > Here is the function, maybe I am misunderstanding something: > > function createTextPreview($text, $words = 250) > { > if(str_word_count($text) < $words) { > return $text; > } else { > return substr($text, 0, strpos($text, ' ', $words)) . ' ... [ href="link">full text ]' . str_word_count($text); > } > } > > Thanks in advance. > > -- > Brian O'Connor > > ------------------------------ > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael_Cassidy at advancemags.com Mon Jul 25 15:21:45 2005 From: Michael_Cassidy at advancemags.com (Cassidy, Michael) Date: Mon, 25 Jul 2005 15:21:45 -0400 Subject: [nycphp-talk] strpos with space In-Reply-To: <29da5d1505072512157abbffba@mail.gmail.com> Message-ID: How about displaying for the first 125 spaces; that should get you close to 250 words From: Brian O'Connor Reply-To: NYPHP Talk Date: Mon, 25 Jul 2005 15:15:24 -0400 To: NYPHP Talk Subject: Re: [nycphp-talk] strpos with space Same result, and I also tried replacing $words altogether with 250 just to test that, and still the same result. As a side note, the . str_word_count($text) is there for debugging purposes and I didn't get around to taking it out. On 7/25/05, CED < Consult at covenantedesign.com > wrote: > Try NOT setting the value of $words in the paramater. > > try > > $words = 250 ; > > function creatText($text, $words) > { if(str_word_count($text) < $words) { > return $text; > } else { > return substr($text, 0, strpos($text, ' ', $words)) . ' ... [ href="link">full text ]' . str_word_count($text); > } > } > > ?> > > >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Mon Jul 25 15:28:16 2005 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 25 Jul 2005 15:28:16 -0400 Subject: [nycphp-talk] strpos with space In-Reply-To: <29da5d15050725114125ffe04d@mail.gmail.com> Message-ID: <0MKz1m-1Dx8cb1Nf3-00037i@mrelay.perfora.net> Here are some old functions I've used to do similar things. I can't guarantee how well they work, but they should give you some ideas at least. http://www.pcomd.net/word_bevel http://www.pcomd.net/str_bevel --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Brian O'Connor Sent: Monday, July 25, 2005 2:42 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] strpos with space I'm trying to create a function that displays the first 250 words of a text, and then puts " ... [ full text ] " (as a link). I did my research and I found the functions that I thought would work, however when I try to findt he 250th space (to determine where the 250th word would be) it doesn't seem to work, and the function only displays 250 characters. Here is the function, maybe I am misunderstanding something: function createTextPreview($text, $words = 250) { if(str_word_count($text) < $words) { return $text; } else { return substr($text, 0, strpos($text, ' ', $words)) . ' ... [ full text ]' . str_word_count($text); } } Thanks in advance. -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From gatzby3jr at gmail.com Mon Jul 25 15:54:26 2005 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Mon, 25 Jul 2005 15:54:26 -0400 Subject: [nycphp-talk] strpos with space In-Reply-To: <0MKz1m-1Dx8cb1Nf3-00037i@mrelay.perfora.net> References: <29da5d15050725114125ffe04d@mail.gmail.com> <0MKz1m-1Dx8cb1Nf3-00037i@mrelay.perfora.net> Message-ID: <29da5d15050725125430ecd0e9@mail.gmail.com> I played around with those functions, and I think I can get them to work with what I need. However, I'm equally as interested in figuring out why this doesn't work as I am in getting a working function for what I need. Thanks for those functions btw. On 7/25/05, Hans Zaunere wrote: > > Here are some old functions I've used to do similar things. I can't > guarantee how well they work, but they should give you some ideas at least. > http://www.pcomd.net/word_bevel > http://www.pcomd.net/str_bevel > > --- > Hans Zaunere > President, Founder > New York PHP > http://www.nyphp.org > > AMP Technology > Supporting Apache, MySQL and PHP > > ------------------------------ > *From:* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > *On Behalf Of *Brian O'Connor > *Sent:* Monday, July 25, 2005 2:42 PM > *To:* talk at lists.nyphp.org > *Subject:* [nycphp-talk] strpos with space > > I'm trying to create a function that displays the first 250 words of a > text, and then puts " ... [ full text ] " (as a link). I did my research and > I found the functions that I thought would work, however when I try to findt > he 250th space (to determine where the 250th word would be) it doesn't seem > to work, and the function only displays 250 characters. > > Here is the function, maybe I am misunderstanding something: > > function createTextPreview($text, $words = 250) > { > if(str_word_count($text) < $words) { > return $text; > } else { > return substr($text, 0, strpos($text, ' ', $words)) . ' ... [ href="link">full text ]' . str_word_count($text); > } > } > > Thanks in advance. > > -- > Brian O'Connor > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From jellicle at gmail.com Mon Jul 25 16:01:28 2005 From: jellicle at gmail.com (Michael Sims) Date: Mon, 25 Jul 2005 16:01:28 -0400 Subject: [nycphp-talk] strpos with space In-Reply-To: <29da5d15050725114125ffe04d@mail.gmail.com> References: <29da5d15050725114125ffe04d@mail.gmail.com> Message-ID: <200507251601.29155.jellicle@gmail.com> On Monday 25 July 2005 14:41, Brian O'Connor wrote: > Here is the function, maybe I am misunderstanding something: > > function createTextPreview($text, $words = 250) > { > if(str_word_count($text) < $words) { > return $text; > } else { > return substr($text, 0, strpos($text, ' ', $words)) . ' ... [ href="link">full text ]' . str_word_count($text); Note that str_word_count($foo) returns the number of words found, with no indication of anything else (such as where the 250th word might be). Your strpos() function counts characters, not words. What you want: http://php.net/str_word_count is str_word_count($foo,2), which according to the docs returns an array with the words and their position in the string. So if you looked at the key for the 251st element of that array, and subtracted one, that would be the place to break the string between the 250th and 251st words. Then you can just use substr($foo, 0, ($keyvalue-1)) to dump the first part of the text string... Since I'm guessing that str_word_count() is slow, to avoid running it twice you could use array_count_values() to count the elements of the returned array. If it's more than 250, then do the above. If the returned array has less than 250 elements, you can output the entire string since it's less than 250 words. All of this implies that you're happy with what str_word_count defines as a "word". If you need to be more picky, the function Hans Zaunere linked to would let you choose exactly what constitutes a word boundary. Food for thought: what does your application do if it receives a 10,000 character sequence of A's in a row without spaces? Might it be that you want to break at 250 words OR a maximum number of characters? Michael Sims From hendler at simmons.edu Mon Jul 25 16:02:28 2005 From: hendler at simmons.edu (Jonathan) Date: Mon, 25 Jul 2005 16:02:28 -0400 Subject: [nycphp-talk] strpos with space In-Reply-To: <29da5d15050725125430ecd0e9@mail.gmail.com> References: <29da5d15050725114125ffe04d@mail.gmail.com> <0MKz1m-1Dx8cb1Nf3-00037i@mrelay.perfora.net> <29da5d15050725125430ecd0e9@mail.gmail.com> Message-ID: <42E54554.3040201@simmons.edu> I am confused by the "strpos($text, ' ', $words)" because in this case $words represents 250 charactor offset for the function strpos. So instead of 250 words, wouldn't you get the first 250 charactors? You want to find the position of the 250th word? I would use the index 250 of the array returned from str_word_count: http://us3.php.net/manual/en/function.str-word-count.php "2 - returns an associative array, where the key is the numeric position of the word inside the string and the value is the actual w" Brian O'Connor wrote: > I played around with those functions, and I think I can get them to > work with what I need. > > However, I'm equally as interested in figuring out why this doesn't > work as I am in getting a working function for what I need. > > Thanks for those functions btw. > > On 7/25/05, *Hans Zaunere* > wrote: > > > Here are some old functions I've used to do similar things. I > can't guarantee how well they work, but they should give you some > ideas at least. > > http://www.pcomd.net/word_bevel > http://www.pcomd.net/str_bevel > > > --- > Hans Zaunere > President, Founder > New York PHP > http://www.nyphp.org > > AMP Technology > Supporting Apache, MySQL and PHP > > > ------------------------------------------------------------------------ > *From:* talk-bounces at lists.nyphp.org > > [mailto:talk-bounces at lists.nyphp.org > ] *On Behalf Of *Brian > O'Connor > *Sent:* Monday, July 25, 2005 2:42 PM > *To:* talk at lists.nyphp.org > *Subject:* [nycphp-talk] strpos with space > > I'm trying to create a function that displays the first 250 > words of a text, and then puts " ... [ full text ] " (as a > link). I did my research and I found the functions that I > thought would work, however when I try to findt he 250th space > (to determine where the 250th word would be) it doesn't seem > to work, and the function only displays 250 characters. > > Here is the function, maybe I am misunderstanding something: > > function createTextPreview($text, $words = 250) > { > if(str_word_count($text) < $words) { > return $text; > } else { > return substr($text, 0, strpos($text, ' ', $words)) . > ' ... [ full text ]' . str_word_count($text); > } > } > > Thanks in advance. > > -- > Brian O'Connor > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > > > > -- > Brian O'Connor > >------------------------------------------------------------------------ > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > From Consult at CovenantEDesign.com Mon Jul 25 16:04:14 2005 From: Consult at CovenantEDesign.com (CED) Date: Mon, 25 Jul 2005 16:04:14 -0400 Subject: [nycphp-talk] strpos with space References: <29da5d15050725114125ffe04d@mail.gmail.com> <200507251601.29155.jellicle@gmail.com> Message-ID: <013801c59154$08a5ef60$6401a8c0@ced> I've always used Split() ----- Original Message ----- From: "Michael Sims" To: "NYPHP Talk" Sent: Monday, July 25, 2005 4:01 PM Subject: Re: [nycphp-talk] strpos with space On Monday 25 July 2005 14:41, Brian O'Connor wrote: > Here is the function, maybe I am misunderstanding something: > > function createTextPreview($text, $words = 250) > { > if(str_word_count($text) < $words) { > return $text; > } else { > return substr($text, 0, strpos($text, ' ', $words)) . ' ... [ href="link">full text ]' . str_word_count($text); Note that str_word_count($foo) returns the number of words found, with no indication of anything else (such as where the 250th word might be). Your strpos() function counts characters, not words. What you want: http://php.net/str_word_count is str_word_count($foo,2), which according to the docs returns an array with the words and their position in the string. So if you looked at the key for the 251st element of that array, and subtracted one, that would be the place to break the string between the 250th and 251st words. Then you can just use substr($foo, 0, ($keyvalue-1)) to dump the first part of the text string... Since I'm guessing that str_word_count() is slow, to avoid running it twice you could use array_count_values() to count the elements of the returned array. If it's more than 250, then do the above. If the returned array has less than 250 elements, you can output the entire string since it's less than 250 words. All of this implies that you're happy with what str_word_count defines as a "word". If you need to be more picky, the function Hans Zaunere linked to would let you choose exactly what constitutes a word boundary. Food for thought: what does your application do if it receives a 10,000 character sequence of A's in a row without spaces? Might it be that you want to break at 250 words OR a maximum number of characters? Michael Sims _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From gatzby3jr at gmail.com Mon Jul 25 16:10:24 2005 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Mon, 25 Jul 2005 16:10:24 -0400 Subject: [nycphp-talk] strpos with space In-Reply-To: <42E54554.3040201@simmons.edu> References: <29da5d15050725114125ffe04d@mail.gmail.com> <0MKz1m-1Dx8cb1Nf3-00037i@mrelay.perfora.net> <29da5d15050725125430ecd0e9@mail.gmail.com> <42E54554.3040201@simmons.edu> Message-ID: <29da5d15050725131031826902@mail.gmail.com> The 250 offsets the 250th occurance of ' ', which therefore should be right after the 250th word (assuming there aren't some random occurances of it). http://us2.php.net/manual/en/function.strpos.php - note the last example, where it returns 7 and not 1 (with the offset). >> Food for thought: what does your application do if it receives a 10,000 >> character sequence of A's in a row without spaces? Might it be that >> you want to break at 250 words OR a maximum number of characters? This function is only being used where administrators of the site would be inputting data, so that right now isn't a concern for me. However, once I get the site launched and start fine tuning my scripts, I may also put a character limit on it with a certain ratio of words to characters. On 7/25/05, Jonathan wrote: > > I am confused by the > > "strpos($text, ' ', $words)" > because in this case $words represents 250 charactor offset for the > function strpos. > So instead of 250 words, wouldn't you get the first 250 charactors? > > You want to find the position of the 250th word? I would use the index > 250 of the array returned from str_word_count: > > http://us3.php.net/manual/en/function.str-word-count.php > "2 - returns an associative array, where the key is the numeric position > of the word inside the string and the value is the actual w" > > Brian O'Connor wrote: > > > I played around with those functions, and I think I can get them to > > work with what I need. > > > > However, I'm equally as interested in figuring out why this doesn't > > work as I am in getting a working function for what I need. > > > > Thanks for those functions btw. > > > > On 7/25/05, *Hans Zaunere* > > wrote: > > > > > > Here are some old functions I've used to do similar things. I > > can't guarantee how well they work, but they should give you some > > ideas at least. > > > > http://www.pcomd.net/word_bevel > > http://www.pcomd.net/str_bevel > > > > > > --- > > Hans Zaunere > > President, Founder > > New York PHP > > http://www.nyphp.org > > > > AMP Technology > > Supporting Apache, MySQL and PHP > > > > > > ------------------------------------------------------------------------ > > *From:* talk-bounces at lists.nyphp.org > > > > [mailto:talk-bounces at lists.nyphp.org > > ] *On Behalf Of *Brian > > O'Connor > > *Sent:* Monday, July 25, 2005 2:42 PM > > *To:* talk at lists.nyphp.org > > *Subject:* [nycphp-talk] strpos with space > > > > I'm trying to create a function that displays the first 250 > > words of a text, and then puts " ... [ full text ] " (as a > > link). I did my research and I found the functions that I > > thought would work, however when I try to findt he 250th space > > (to determine where the 250th word would be) it doesn't seem > > to work, and the function only displays 250 characters. > > > > Here is the function, maybe I am misunderstanding something: > > > > function createTextPreview($text, $words = 250) > > { > > if(str_word_count($text) < $words) { > > return $text; > > } else { > > return substr($text, 0, strpos($text, ' ', $words)) . > > ' ... [ full text ]' . str_word_count($text); > > } > > } > > > > Thanks in advance. > > > > -- > > Brian O'Connor > > > > > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > > > > > > > > -- > > Brian O'Connor > > > >------------------------------------------------------------------------ > > > >_______________________________________________ > >New York PHP Talk Mailing List > >AMP Technology > >Supporting Apache, MySQL and PHP > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.nyphp.org > > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From ps at pswebcode.com Mon Jul 25 16:14:13 2005 From: ps at pswebcode.com (Peter Sawczynec) Date: Mon, 25 Jul 2005 16:14:13 -0400 Subject: [nycphp-talk] Input Filtering In-Reply-To: <4b188711050725100013671882@mail.gmail.com> Message-ID: <002401c59155$769e4a20$6400a8c0@yourx1adg12jme> www.owasp.org -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jeff Loiselle Sent: Monday, July 25, 2005 1:00 PM To: NYPHP Talk Subject: [nycphp-talk] Input Filtering Can anyone recommend any good packages for input filtering? --- Jeff Loiselle Web Developer, Musician, and Observer http://jeff.loiselles.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From hendler at simmons.edu Mon Jul 25 16:37:35 2005 From: hendler at simmons.edu (Jonathan) Date: Mon, 25 Jul 2005 16:37:35 -0400 Subject: [nycphp-talk] strpos with space In-Reply-To: <29da5d15050725131031826902@mail.gmail.com> References: <29da5d15050725114125ffe04d@mail.gmail.com> <0MKz1m-1Dx8cb1Nf3-00037i@mrelay.perfora.net> <29da5d15050725125430ecd0e9@mail.gmail.com> <42E54554.3040201@simmons.edu> <29da5d15050725131031826902@mail.gmail.com> Message-ID: <42E54D8F.701@simmons.edu> The offset doesn't work for me either the way it is documented here -- IF -- using spaces - but other characters work. It doesn't say you can't use spaces, but I'd guess it only uses standard charactors as needles. I haven't tested \n's for example. |// We can search for the character, ignoring anything before the offset $newstring = 'abcdef abcdef'; $pos = strpos($newstring, 'a', 1); // $pos = 7, not 0 |Is this a php version issue? I am using php 4.3.11. Brian O'Connor wrote: > The 250 offsets the 250th occurance of ' ', which therefore should be > right after the 250th word (assuming there aren't some random > occurances of it). > > http://us2.php.net/manual/en/function.strpos.php - note the last > example, where it returns 7 and not 1 (with the offset). > > >> Food for thought: what does your application do if it receives a 10,000 > >> character sequence of A's in a row without spaces? Might it be that > >> you want to break at 250 words OR a maximum number of characters? > > This function is only being used where administrators of the site > would be inputting data, so that right now isn't a concern for me. > However, once I get the site launched and start fine tuning my > scripts, I may also put a character limit on it with a certain ratio > of words to characters. > > On 7/25/05, *Jonathan* > wrote: > > I am confused by the > > "strpos($text, ' ', $words)" > because in this case $words represents 250 charactor offset for the > function strpos. > So instead of 250 words, wouldn't you get the first 250 charactors? > > You want to find the position of the 250th word? I would use the index > 250 of the array returned from str_word_count: > > http://us3.php.net/manual/en/function.str-word-count.php > > "2 - returns an associative array, where the key is the numeric > position > of the word inside the string and the value is the actual w" > > Brian O'Connor wrote: > > > I played around with those functions, and I think I can get them to > > work with what I need. > > > > However, I'm equally as interested in figuring out why this doesn't > > work as I am in getting a working function for what I need. > > > > Thanks for those functions btw. > > > > On 7/25/05, *Hans Zaunere* > > >> wrote: > > > > > > Here are some old functions I've used to do similar things. I > > can't guarantee how well they work, but they should give you > some > > ideas at least. > > > > http://www.pcomd.net/word_bevel < > http://www.pcomd.net/word_bevel> > > http://www.pcomd.net/str_bevel > > > > > > --- > > Hans Zaunere > > President, Founder > > New York PHP > > http://www.nyphp.org > > > > > AMP Technology > > Supporting Apache, MySQL and PHP > > > > > > > ------------------------------------------------------------------------ > > *From:* talk-bounces at lists.nyphp.org > > > > > > [mailto:talk-bounces at lists.nyphp.org > > > >] *On Behalf Of *Brian > > O'Connor > > *Sent:* Monday, July 25, 2005 2:42 PM > > *To:* talk at lists.nyphp.org > > > > *Subject:* [nycphp-talk] strpos with space > > > > I'm trying to create a function that displays the first 250 > > words of a text, and then puts " ... [ full text ] " (as a > > link). I did my research and I found the functions that I > > thought would work, however when I try to findt he 250th > space > > (to determine where the 250th word would be) it doesn't seem > > to work, and the function only displays 250 characters. > > > > Here is the function, maybe I am misunderstanding > something: > > > > function createTextPreview($text, $words = 250) > > { > > if(str_word_count($text) < $words) { > > return $text; > > } else { > > return substr($text, 0, strpos($text, ' ', > $words)) . > > ' ... [ full text ]' . > str_word_count($text); > > } > > } > > > > Thanks in advance. > > > > -- > > Brian O'Connor > > > > > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > > http://www.nyphp.org > > > > > > > > > > -- > > Brian O'Connor > > > >------------------------------------------------------------------------ > > > > >_______________________________________________ > >New York PHP Talk Mailing List > >AMP Technology > >Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > >http://www.nyphp.org > > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > > > > -- > Brian O'Connor > >------------------------------------------------------------------------ > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > From steve.rieger at tbwachiat.com Mon Jul 25 16:45:36 2005 From: steve.rieger at tbwachiat.com (Steve Rieger) Date: Mon, 25 Jul 2005 16:45:36 -0400 Subject: [nycphp-talk] pdf to jpg Message-ID: <6C773B37-DFF2-4AA3-A807-0EAF9C1818F3@tbwachiat.com> hi all whats the best way to convert pdf's to jpg is it via imagemagick or not. please share your thoughts thanx -- Steve Rieger AIM chozrim ICQ 53956607 Cell 646 335 8915 steve.rieger at tbwachiat.com This e-mail is intended only for the named person or entity to which it is addressed and contains valuable business information that is privileged, confidential and/or otherwise protected from disclosure. Dissemination, distribution or copying of this e-mail or the information herein by anyone other than the intended recipient, or an employee or agent responsible for delivering the message to the intended recipient, is strictly prohibited. All contents are the copyright property of TBWA\Chiat\Day, its agencies or a client of such agencies. If you are not the intended recipient, you are nevertheless bound to respect the worldwide legal rights of TBWA\Chiat\Day, its agencies and its clients. We require that unintended recipients delete the e-mail and destroy all electronic copies in their system, retaining no copies in any media. If you have received this e-mail in error, please immediately notify us via e-mail to disclaimer at tbwachiat.com. We appreciate your cooperation. We make no warranties as to the accuracy or completeness of this e-mail and accept no liability for its content or use. Any opinions expressed in this e-mail are those of the author and do not necessarily reflect the opinions of TBWA\Chiat\Day or any of its agencies or affiliates. From Michael_Cassidy at advancemags.com Mon Jul 25 18:36:41 2005 From: Michael_Cassidy at advancemags.com (Cassidy, Michael) Date: Mon, 25 Jul 2005 18:36:41 -0400 Subject: [nycphp-talk] strpos with space In-Reply-To: <42E54554.3040201@simmons.edu> Message-ID: "; echo $end; $character= 0; while (($count < 10) && ($character < 109)) { echo substr($temp, $character, 1); if (substr($temp, $character, 1) == " ") { $count= $count+1; } $character= $character+1; } ?> From chucksmith at fun-electronics.com Mon Jul 25 19:34:13 2005 From: chucksmith at fun-electronics.com (chucksmith at fun-electronics.com) Date: Mon, 25 Jul 2005 19:34:13 -0400 Subject: [nycphp-talk] configuring log_errors in php.ini In-Reply-To: References: Message-ID: <1122334453.42e576f51d816@webmail.fun-electronics.com> First of all, thanks for all your help on the server stats question. Since we have moved into production, I am now trying to turn off displaying errors and deciding to log errors instead. No matter what I do, I can't seem to find where our FreeBSD 5.3 server is putting our PHP error log. Do I need to specify a file in error_log or does stderr send errors to some log on my server. How can I find out where that log would be? I have copied the current contents of our error handling of our php.ini file to the end of this email. I commented out the error_log statement. I've tried putting a filename in there before and it still did not work (I also made sure the write permissions were correct). Any ideas what I might be doing wrong and how I can fix it? I'm relatively new to Unix, so I'm probably overlooking something really minor. Thanks in advance for your help! Chuck Smith ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Error handling and logging ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; error_reporting is a bit-field. Or each number up to get desired error ; reporting level ; E_ALL - All errors and warnings ; E_ERROR - fatal run-time errors ; E_WARNING - run-time warnings (non-fatal errors) ; E_PARSE - compile-time parse errors ; E_NOTICE - run-time notices (these are warnings which often result ; from a bug in your code, but it's possible that it was ; intentional (e.g., using an uninitialized variable and ; relying on the fact it's automatically initialized to an ; empty string) ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's ; initial startup ; E_COMPILE_ERROR - fatal compile-time errors ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors) ; E_USER_ERROR - user-generated error message ; E_USER_WARNING - user-generated warning message ; E_USER_NOTICE - user-generated notice message ; ; Examples: ; ; - Show all errors, except for notices ; ;error_reporting = E_ALL & ~E_NOTICE ; ; - Show only errors ; ;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR ; ; - Show all errors except for notices ; error_reporting = E_ALL & ~E_NOTICE ; Print out errors (as a part of the output). For production web sites, ; you're strongly encouraged to turn this feature off, and use error logging ; instead (see below). Keeping display_errors enabled on a production web site ; may reveal security information to end users, such as file paths on your Web ; server, your database schema or other information. display_errors = Off ; Even when display_errors is on, errors that occur during PHP's startup ; sequence are not displayed. It's strongly recommended to keep ; display_startup_errors off, except for when debugging. display_startup_errors = Off ; Log errors into a log file (server-specific log, stderr, or error_log (below)) ; As stated above, you're strongly advised to use error logging in place of ; error displaying on production web sites. log_errors = On ; Store the last error/warning message in $php_errormsg (boolean). track_errors = Off ; String to output before an error message. ;error_prepend_string = "" ; String to output after an error message. ;error_append_string = "" ; Log errors to specified file. ;error_log = filename; ; Log errors to syslog (Event Log on NT, not valid in Windows 95). ;error_log = syslog ; Warn if the + operator is used with strings. warn_plus_overloading = Off ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From tgales at tgaconnect.com Mon Jul 25 19:47:17 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Mon, 25 Jul 2005 19:47:17 -0400 Subject: [nycphp-talk] configuring log_errors in php.ini In-Reply-To: <1122334453.42e576f51d816@webmail.fun-electronics.com> References: <1122334453.42e576f51d816@webmail.fun-electronics.com> Message-ID: <42E57A05.3030901@tgaconnect.com> chucksmith at fun-electronics.com wrote: ... > ; Log errors to specified file. > ;error_log = filename; > Try deleting the semicolon and replacing filename with the name of the logfile you want to use. -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From gatzby3jr at gmail.com Mon Jul 25 23:56:02 2005 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Mon, 25 Jul 2005 23:56:02 -0400 Subject: [nycphp-talk] strpos with space In-Reply-To: References: <42E54554.3040201@simmons.edu> Message-ID: <29da5d15050725205637f8a13c@mail.gmail.com> Thanks for the function. I'm still curious though, how come the space doesn't work with the function, is it bugged or was it intentional? On 7/25/05, Cassidy, Michael wrote: > > > > > > $temp= "The Word of the Famous TurkeyFace. The Word of the very Famous > TurkeyFace with the blue nose and green toes."; > > > $end= substr_count($temp, " ") . "
"; > > echo $end; > > $character= 0; > > > while (($count < 10) && ($character < 109)) { > > echo substr($temp, $character, 1); > > if (substr($temp, $character, 1) == " ") { > $count= $count+1; > } > > $character= $character+1; > > } > ?> > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael_Cassidy at advancemags.com Tue Jul 26 09:10:21 2005 From: Michael_Cassidy at advancemags.com (Cassidy, Michael) Date: Tue, 26 Jul 2005 09:10:21 -0400 Subject: [nycphp-talk] strpos with space In-Reply-To: <29da5d15050725205637f8a13c@mail.gmail.com> Message-ID: Here?s another, a modification off of en example on the PHP WWW page: $temp= "The Word of the Famous TurkeyFace. The Word of the very Famous TurkeyFace with the blue nose and green toes."; $temp2= strtok($temp, " "); while (($temp2 !==false) && ($countB < 6)) { echo "$temp2 "; $temp2= strtok(" "); $countB++; } I deleted your original email so I was trying to find what function didn?t see the space. I haven?t found it yet; though now I at least know what strtok does. From: Brian O'Connor Reply-To: NYPHP Talk Date: Mon, 25 Jul 2005 23:56:02 -0400 To: NYPHP Talk Subject: Re: [nycphp-talk] strpos with space Thanks for the function. I'm still curious though, how come the space doesn't work with the function, is it bugged or was it intentional? _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From chucksmith at fun-electronics.com Tue Jul 26 11:49:46 2005 From: chucksmith at fun-electronics.com (chucksmith at fun-electronics.com) Date: Tue, 26 Jul 2005 11:49:46 -0400 Subject: [nycphp-talk] talk Digest, Vol 26, Issue 41 In-Reply-To: References: Message-ID: <1122392986.42e65b9a72cb5@webmail.fun-electronics.com> > chucksmith at fun-electronics.com wrote: > ... > > ; Log errors to specified file. > > ;error_log = filename; > > > Try deleting the semicolon and > replacing filename with the name > of the logfile you want to use. > -- > T. Gales & Associates > 'Helping People Connect with Technology' > > http://www.tgaconnect.com In fact, I just realized that I was forgetting that I had to restart Apache to let it recognize the new php.ini settings. Then, I had to set the file owner to apache, so that it had permission to log the php errors. I'm mostly writing this in case others might have the same problem to say how I solved it. Thanks for the help! Chuck ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From chucksmith at fun-electronics.com Tue Jul 26 13:06:43 2005 From: chucksmith at fun-electronics.com (chucksmith at fun-electronics.com) Date: Tue, 26 Jul 2005 13:06:43 -0400 Subject: [nycphp-talk] MySQL error log? In-Reply-To: References: Message-ID: <1122397603.42e66da3eaaa1@webmail.fun-electronics.com> I thought that by setting up the PHP error log, it would also send MySQL errors there. However, MySQL errors still appear on the screen. Is there any way to set this up? I've looked at various websites and tutorials and none of them seem to be of help. I'm programming the IPN (Instant Payment Notification) for Paypal, so Paypal is calling our php page directly and so I cannot see what errors are happening there. I see documentation on the MySQL error log, but it seems to only give information about when the server crashes. It says that this error file should be at 'hostname'.err, but when I search for it, nothing appears. Any idea what could be wrong or how I could set up MySQL error logging? Is there a file similar to php.ini for MySQL? Thanks, Chuck ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From cmerlo441 at gmail.com Tue Jul 26 16:05:05 2005 From: cmerlo441 at gmail.com (Christopher Merlo) Date: Tue, 26 Jul 2005 16:05:05 -0400 Subject: [nycphp-talk] pdf to jpg In-Reply-To: <6C773B37-DFF2-4AA3-A807-0EAF9C1818F3@tbwachiat.com> References: <6C773B37-DFF2-4AA3-A807-0EAF9C1818F3@tbwachiat.com> Message-ID: <9465864805072613055207b982@mail.gmail.com> On 7/25/05, Steve Rieger wrote: > hi all > > whats the best way to convert pdf's to jpg I recently needed a similar conversion, and found a tool called "a2ping". I forget where I found it, and I'm currently at a public library w/o my bookmarks, but it's out there. I don't remember seeing a Windows version, but then again, I wasn't looking for one. But this tool will convert from nearly anything to nearly anything, and fixes a lot of flaws in the files while it converts. Great tool. Someday in my Copious Free Time, I'm going to try (with the author's permission) to make a .deb of it. HTH, -c -- cmerlo441 at gmail.com http://www.firstofthenext.com/ From nasir81 at gmail.com Tue Jul 26 16:30:43 2005 From: nasir81 at gmail.com (Nasir Zubair) Date: Tue, 26 Jul 2005 16:30:43 -0400 Subject: [nycphp-talk] MySQL error log? In-Reply-To: <1122397603.42e66da3eaaa1@webmail.fun-electronics.com> References: <1122397603.42e66da3eaaa1@webmail.fun-electronics.com> Message-ID: <40fcda730507261330175a8bec@mail.gmail.com> You can probably use your own function to capture those errors. for example if you use "or die(mysql_error())" to halt your script, replace die() with your function which logs the error and then exits. Or may be a more elegant solution, http://us3.php.net/manual/en/function.set-error-handler.php On 7/26/05, chucksmith at fun-electronics.com wrote: > I thought that by setting up the PHP error log, it would also send MySQL errors > there. However, MySQL errors still appear on the screen. Is there any way to > set this up? I've looked at various websites and tutorials and none of them > seem to be of help. > > I'm programming the IPN (Instant Payment Notification) for Paypal, so Paypal is > calling our php page directly and so I cannot see what errors are happening > there. I see documentation on the MySQL error log, but it seems to only give > information about when the server crashes. It says that this error file should > be at 'hostname'.err, but when I search for it, nothing appears. Any idea what > could be wrong or how I could set up MySQL error logging? Is there a file > similar to php.ini for MySQL? > > Thanks, > Chuck > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Nasir Zubair http://www.nasir.us/ From jeff.loiselle at gmail.com Tue Jul 26 17:03:08 2005 From: jeff.loiselle at gmail.com (Jeff Loiselle) Date: Tue, 26 Jul 2005 17:03:08 -0400 Subject: [nycphp-talk] Input Filtering In-Reply-To: <002401c59155$769e4a20$6400a8c0@yourx1adg12jme> References: <4b188711050725100013671882@mail.gmail.com> <002401c59155$769e4a20$6400a8c0@yourx1adg12jme> Message-ID: <4b18871105072614034848643b@mail.gmail.com> I checked out the oLabs PHP Filters.. it seems a little too paranoid for me. Sometimes we need things like hyphens.. OWASP is a great resource, but I think the filters are lacking a bit. Any other ideas? (or of course I could just shut up and write my own) -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmintz at davidmintz.org Tue Jul 26 17:21:12 2005 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 26 Jul 2005 17:21:12 -0400 (EDT) Subject: [nycphp-talk] MySQL error log? In-Reply-To: <40fcda730507261330175a8bec@mail.gmail.com> References: <1122397603.42e66da3eaaa1@webmail.fun-electronics.com> <40fcda730507261330175a8bec@mail.gmail.com> Message-ID: On Tue, 26 Jul 2005, Nasir Zubair wrote: > You can probably use your own function to capture those errors. for > example if you use "or die(mysql_error())" to halt your script, > replace die() with your function which logs the error and then exits. > > Or may be a more elegant solution, > http://us3.php.net/manual/en/function.set-error-handler.php > Plus -- just to make sure Chuck understands -- something like a SQL syntax error, or a query that fails for some other reason, will not make it into the mysql error log. As I understand it, the error log is for mysqld's internal stuff: when it starts and stops, and critical errors (http://dev.mysql.com/doc/mysql/en/error-log.html). A failed query is more like an event in the course of a conversation between the server and a particular client. I'll leave it to the big boys to correct me if I'm wrong, or re-state this in more technically precise terms. --- David Mintz http://davidmintz.org/ From lists at zaunere.com Tue Jul 26 17:57:29 2005 From: lists at zaunere.com (Hans Zaunere) Date: Tue, 26 Jul 2005 17:57:29 -0400 Subject: [nycphp-talk] Input Filtering In-Reply-To: <4b18871105072614034848643b@mail.gmail.com> Message-ID: <0MKz1m-1DxXQY02rA-0004oA@mrelay.perfora.net> > Any other ideas? > > (or of course I could just shut up and write my own) That's a great idea (writing your own, that is). Then you can give a presentation on it, too :) H From amir.aavani at gmail.com Wed Jul 27 03:25:22 2005 From: amir.aavani at gmail.com (Amir Aavani) Date: Wed, 27 Jul 2005 11:55:22 +0430 Subject: [nycphp-talk] Index files in MySQL Message-ID: Dear friends I have some problem in getting query from mysql, I have table named news in following fornat ID Int, sid Int, Title Varchar , .... data DateTime I have a query like this SELECT count(*) from news where sid in (1, 2, 3, 4, 5 ,6, ...) order by id LIMIT 0, 10; I want to force mysql to use id as index (not sid) (because of bug size of my table) but I was unsuccessfull in that, and always mysql use filesort to sort the results. Something wonderfull is when I changed the query to SELECT count(*) from news where (id< 1000 or id> 100000) order by id LIMIT 0, 10; mysql didn't use id as index. Thanks in advanced Amir Aavani From dmintz at davidmintz.org Wed Jul 27 09:28:48 2005 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 27 Jul 2005 09:28:48 -0400 (EDT) Subject: [nycphp-talk] Input Filtering In-Reply-To: <0MKz1m-1DxXQY02rA-0004oA@mrelay.perfora.net> References: <0MKz1m-1DxXQY02rA-0004oA@mrelay.perfora.net> Message-ID: On Tue, 26 Jul 2005, Hans Zaunere wrote: > > > Any other ideas? > > > > (or of course I could just shut up and write my own) > > That's a great idea (writing your own, that is). Then you can give a presentation on it, too :) I was gonna say, when you say input filtering, I take it you mean both validation and filtering. To my mind, the former is like, "does $email look like a syntactically valid email address?" while the latter is like, "strip all the non-digits out of $phone_number" or "escape all the html entities in $string." In any case, HTML_QuickForm is something you might want to look at if you haven't already. It is concerned with form generation and not just input validation -- you have to instantiate an HTML_Quickform and add elements to it before you can add validation rules -- but still you might find it interesting. --- David Mintz http://davidmintz.org/ From dmintz at davidmintz.org Wed Jul 27 09:30:04 2005 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 27 Jul 2005 09:30:04 -0400 (EDT) Subject: [nycphp-talk] Input Filtering In-Reply-To: References: <0MKz1m-1DxXQY02rA-0004oA@mrelay.perfora.net> Message-ID: PS: http://pear.php.net/manual/en/package.html.html-quickform.php --- David Mintz http://davidmintz.org/ From gisolfi at us.ibm.com Wed Jul 27 11:44:11 2005 From: gisolfi at us.ibm.com (Dan Gisolfi) Date: Wed, 27 Jul 2005 11:44:11 -0400 Subject: [nycphp-talk] Building Rich Internet Applications Using JavaScript Message-ID: Fellow PHP-ers: Laurent and I would like to thank you for bearing the duration of our presentation last evening. I am not sure if it was the desire to stay in the cool air-conditioned room or that the material was actually of interest :-) Hans should have our presentation posted on the site soon. In that presentation you will find the URL for downloading a trial version of Rational Application Developer (RADv6) so that you can get access to the JSL framework. As mentioned, we are deeply interested in hearing your thoughts and requirements for an open source community project for a RIA Framework. Please either email Laurent and I directly and/or post your requirements/suggestions to talk at lists.nyphp.org. We are especially interested in real world opportunities that can benefit from such an open source project. We would also like to hear your thoughts about a PHP IDE that provides functionality analogous to what was demonstrated last evening in RAD. Here are some links that may come in handy: Our Presentation Overview http://www.nyphp.org/content/calendar/view_entry.php?id=78&date=20050726 JSL Overivew Articles (JSL is also known as FacesClient) http://www-128.ibm.com/developerworks/web/library/wa-facescomp1/ http://www-128.ibm.com/developerworks/web/library/wa-facescomp2/ http://www-128.ibm.com/developerworks/web/library/wa-facescomp3/ http://www.devx.com/ibm/Article/21409 Laszlo IDE for Eclipse http://alphaworks.ibm.com/tech/ide4laszlo http://eclipse.org/proposals/laszlo/index.html Rational Application/Web Developer Comparison Features and benefits http://www.ibm.com/software/awdtools/developer/application/features/ Rational Application Developer Trial http://www.ibm.com/developerworks/downloads/r/rad/ Overview of RAD 6 http://www3.software.ibm.com/ibmdl/pub/software/rational/web/datasheets/rat_app_dev_LoRes.pdf Rational Web Developer Trial http://www.ibm.com/developerworks/downloads/r/rwd/ Overview of RWD 6 (RWD = Rational Web Developer - a smaller version of RAD) http://www3.software.ibm.com/ibmdl/pub/software/rational/web/datasheets/rat_web_dev_LoRes.pdf Again, thanks for your interest in the JSL. Dan Gisolfi (gisolfi at us.ibm.com) Laurent Hasson (ldhasson at us.ibm.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: From gisolfi at us.ibm.com Wed Jul 27 13:09:17 2005 From: gisolfi at us.ibm.com (Dan Gisolfi) Date: Wed, 27 Jul 2005 13:09:17 -0400 Subject: [nycphp-talk] Flash Movies of JSL Demos Message-ID: In the URL below you can find 11 flash demos of teh demonstration Laurent and I perfomed last evening. http://www-128.ibm.com/developerworks/rational/library/05/524_face Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Wed Jul 27 14:09:10 2005 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 27 Jul 2005 14:09:10 -0400 Subject: [nycphp-talk] OT Eclipse Message-ID: <0MKz5u-1DxqL91j55-000703@mrelay.perfora.net> After seeing the Eclipse environment in action at last night's presentation, I've given it a try. I have the PHP plug-in installed, and things look to be pretty solid. The big problem I've come across so far is the lack of SFTP/FTP support, although perhaps I'm missing something. I did find this: http://www.eclipse-plugins.info/eclipse/plugin_details.jsp?id=293 Which I went ahead and installed. However, I'm getting some error messages. >From looking at the last time the plug-in was updated, I'm guessing that it won't work with the latest version of Eclipse, which is 3.1 and what I just installed. Anyone know of any other options for SFTP/FTP access? Any recommendations for working with remote files, namely with subversion? Thanks, Hans, long way from ditching UltraEdit From lists at zaunere.com Wed Jul 27 14:18:29 2005 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 27 Jul 2005 14:18:29 -0400 Subject: [nycphp-talk] Building Rich Internet Applications Using JavaScript In-Reply-To: Message-ID: <0MKz5u-1DxqUA1r6p-0007ER@mrelay.perfora.net> Dan (and Laurent if he's on this list), Thanks again for a great presentation. There's a lot of material out there, and I appreciate you taking the time putting everything together. For those that couldn't attend last night, the JavaScript libraries we went over are very complete, and offer a lot of flexibility for AJAX types of applications, and more importantly, rich internet applications in general, which is a technology that's sure to take hold soon. Thanks to Dan's posts, you can view samples, demos, etc. about what's available, and we'll have the presentation and audio tapes on nyphp.org soon. Most importantly, Dan and Laurent have come to us for feedback and community interaction regarding the libraries and given us a great opportunity. As mentioned below, please give them feedback and get involved in making the great libraries available as an open source project that could benefit the entire open source community. But like all open source projects, it has to start somewhere, so it's up to us to get things moving. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Dan Gisolfi Sent: Wednesday, July 27, 2005 11:44 AM To: talk at lists.nyphp.org Subject: [nycphp-talk] Building Rich Internet Applications Using JavaScript Fellow PHP-ers: Laurent and I would like to thank you for bearing the duration of our presentation last evening. I am not sure if it was the desire to stay in the cool air-conditioned room or that the material was actually of interest :-) Hans should have our presentation posted on the site soon. In that presentation you will find the URL for downloading a trial version of Rational Application Developer (RADv6) so that you can get access to the JSL framework. As mentioned, we are deeply interested in hearing your thoughts and requirements for an open source community project for a RIA Framework. Please either email Laurent and I directly and/or post your requirements/suggestions to talk at lists.nyphp.org. We are especially interested in real world opportunities that can benefit from such an open source project. We would also like to hear your thoughts about a PHP IDE that provides functionality analogous to what was demonstrated last evening in RAD. Here are some links that may come in handy: Our Presentation Overview http://www.nyphp.org/content/calendar/view_entry.php?id=78&date=20050726 JSL Overivew Articles (JSL is also known as FacesClient) http://www-128.ibm.com/developerworks/web/library/wa-facescomp1/ http://www-128.ibm.com/developerworks/web/library/wa-facescomp2/ http://www-128.ibm.com/developerworks/web/library/wa-facescomp3/ http://www.devx.com/ibm/Article/21409 Laszlo IDE for Eclipse http://alphaworks.ibm.com/tech/ide4laszlo http://eclipse.org/proposals/laszlo/index.html Rational Application/Web Developer Comparison Features and benefits http://www.ibm.com/software/awdtools/developer/application/features/ Rational Application Developer Trial http://www.ibm.com/developerworks/downloads/r/rad/ Overview of RAD 6 http://www3.software.ibm.com/ibmdl/pub/software/rational/web/datasheets/rat_ app_dev_LoRes.pdf Rational Web Developer Trial http://www.ibm.com/developerworks/downloads/r/rwd/ Overview of RWD 6 (RWD = Rational Web Developer - a smaller version of RAD) http://www3.software.ibm.com/ibmdl/pub/software/rational/web/datasheets/rat_ web_dev_LoRes.pdf Again, thanks for your interest in the JSL. Dan Gisolfi (gisolfi at us.ibm.com) Laurent Hasson (ldhasson at us.ibm.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: From hendler at simmons.edu Wed Jul 27 14:36:33 2005 From: hendler at simmons.edu (Jonathan) Date: Wed, 27 Jul 2005 14:36:33 -0400 Subject: [nycphp-talk] OT Eclipse In-Reply-To: <0MKz5u-1DxqL91j55-000703@mrelay.perfora.net> References: <0MKz5u-1DxqL91j55-000703@mrelay.perfora.net> Message-ID: <42E7D431.5050606@simmons.edu> I use subversion and sftp with eclipse 3.1. For SFTP try Klomp. Subversion I use subclipse. Here's a bit of my install history. Jul 7, 2005 4:55:45 PM com.quantum.Quantum_2.4.5 feature-install success Jul 7, 2005 4:56:09 PM com.quantum.Quantum_2.4.5 feature-enable success Jul 7, 2005 4:56:09 PM net.sourceforge.phpeclipse_1.1.4 feature-install success Jul 7, 2005 4:57:30 PM net.sourceforge.phpeclipse_1.1.4 feature-enable success Jul 7, 2005 4:57:30 PM org.eclipse.team.extras_3.0.0 feature-install success Jul 7, 2005 4:57:44 PM org.eclipse.team.extras_3.0.0 feature-enable success Jul 7, 2005 4:57:44 PM org.klomp.eclipse.feature.team.sftp_3.0.0 feature-install success Jul 7, 2005 4:58:55 PM org.klomp.eclipse.feature.team.sftp_3.0.0 feature-enable success Jul 7, 2005 4:58:55 PM org.tigris.subversion.subclipse_0.9.30 feature-install success Jul 7, 2005 4:59:10 PM org.tigris.subversion.subclipse_0.9.30 feature-enable success Hans Zaunere wrote: >After seeing the Eclipse environment in action at last night's presentation, >I've given it a try. > >I have the PHP plug-in installed, and things look to be pretty solid. The >big problem I've come across so far is the lack of SFTP/FTP support, >although perhaps I'm missing something. > >I did find this: > >http://www.eclipse-plugins.info/eclipse/plugin_details.jsp?id=293 > >Which I went ahead and installed. However, I'm getting some error messages. >>From looking at the last time the plug-in was updated, I'm guessing that it >won't work with the latest version of Eclipse, which is 3.1 and what I just >installed. > >Anyone know of any other options for SFTP/FTP access? Any recommendations >for working with remote files, namely with subversion? > > >Thanks, > >Hans, long way from ditching UltraEdit > > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hendler at simmons.edu Wed Jul 27 14:42:44 2005 From: hendler at simmons.edu (Jonathan) Date: Wed, 27 Jul 2005 14:42:44 -0400 Subject: [nycphp-talk] OT Eclipse In-Reply-To: <42E7D431.5050606@simmons.edu> References: <0MKz5u-1DxqL91j55-000703@mrelay.perfora.net> <42E7D431.5050606@simmons.edu> Message-ID: <42E7D5A4.5080804@simmons.edu> sorry, didn't notice that you already had Klomp. In 3.1 I am unable to load as well. I think they do explicitly say they don't support 3.1 yet... Jonathan wrote: > I use subversion and sftp with eclipse 3.1. > > For SFTP try Klomp. > Subversion I use subclipse. > > Here's a bit of my install history. > > > > > > Jul 7, 2005 4:55:45 PM com.quantum.Quantum_2.4.5 feature-install > success > Jul 7, 2005 4:56:09 PM com.quantum.Quantum_2.4.5 feature-enable > success > Jul 7, 2005 4:56:09 PM net.sourceforge.phpeclipse_1.1.4 > feature-install success > Jul 7, 2005 4:57:30 PM net.sourceforge.phpeclipse_1.1.4 > feature-enable success > Jul 7, 2005 4:57:30 PM org.eclipse.team.extras_3.0.0 > feature-install success > Jul 7, 2005 4:57:44 PM org.eclipse.team.extras_3.0.0 > feature-enable success > Jul 7, 2005 4:57:44 PM org.klomp.eclipse.feature.team.sftp_3.0.0 > feature-install success > Jul 7, 2005 4:58:55 PM org.klomp.eclipse.feature.team.sftp_3.0.0 > feature-enable success > Jul 7, 2005 4:58:55 PM org.tigris.subversion.subclipse_0.9.30 > feature-install success > Jul 7, 2005 4:59:10 PM org.tigris.subversion.subclipse_0.9.30 > feature-enable success > > > > > Hans Zaunere wrote: > >>After seeing the Eclipse environment in action at last night's presentation, >>I've given it a try. >> >>I have the PHP plug-in installed, and things look to be pretty solid. The >>big problem I've come across so far is the lack of SFTP/FTP support, >>although perhaps I'm missing something. >> >>I did find this: >> >>http://www.eclipse-plugins.info/eclipse/plugin_details.jsp?id=293 >> >>Which I went ahead and installed. However, I'm getting some error messages. >>>From looking at the last time the plug-in was updated, I'm guessing that it >>won't work with the latest version of Eclipse, which is 3.1 and what I just >>installed. >> >>Anyone know of any other options for SFTP/FTP access? Any recommendations >>for working with remote files, namely with subversion? >> >> >>Thanks, >> >>Hans, long way from ditching UltraEdit >> >> >>_______________________________________________ >>New York PHP Talk Mailing List >>AMP Technology >>Supporting Apache, MySQL and PHP >>http://lists.nyphp.org/mailman/listinfo/talk >>http://www.nyphp.org >> >> > >------------------------------------------------------------------------ > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > From hans at cyberxdesigns.com Wed Jul 27 14:48:09 2005 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Wed, 27 Jul 2005 14:48:09 -0400 Subject: [nycphp-talk] July Presentation Posted. Message-ID: <42E7D6E9.6080204@cyberxdesigns.com> We have posted July's presentation Building Rich Internet Applications Using JavaScript. To view the presentation materials please visit: http://www.nyphp.org/content/presentations/index.php. There is a PDF of the presentation and links to addition materials and trial software. I want to thank Dan and Laurent for coming out last night. This was a very cool presentation to be at. We will post the audio as soon as it is ready. Thanks, Hans Kaspersetz Presentation Lacky, NYPHP -- Hans C. Kaspersetz Cyber X Designs http://www.cyberxdesigns.com From lists at zaunere.com Wed Jul 27 14:50:48 2005 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 27 Jul 2005 14:50:48 -0400 Subject: [nycphp-talk] OT Eclipse In-Reply-To: <42E7D5A4.5080804@simmons.edu> Message-ID: <0MKz5u-1DxqzQ347A-0008Q9@mrelay.perfora.net> On Wednesday, July 27, 2005 2:43 PM, talk-bounces at lists.nyphp.org wrote: > sorry, didn't notice that you already had Klomp. > In 3.1 I am unable to load as well. I think they do explicitly say they > don't support 3.1 yet... Thanks Jonathan - I use svn so I'll check out the WebDav/subversion options, as it's quickly becoming my favorite method of remote development and source control. H From patrick at ramsden.com Wed Jul 27 15:47:01 2005 From: patrick at ramsden.com (Patrick Ramsden) Date: Wed, 27 Jul 2005 14:47:01 -0500 Subject: [nycphp-talk] OT Eclipse In-Reply-To: <0MKz5u-1DxqzQ347A-0008Q9@mrelay.perfora.net> Message-ID: <47qfdc$1sjao2@smtp04.mrf.mail.rcn.net> I'd second that approach. I've been using Eclipse 3, phpEclipse, Subclipse and Subversion (using Apache SSL WebDav) and pleased with it. -Pat > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Hans Zaunere > Sent: Wednesday, July 27, 2005 1:51 PM > To: 'NYPHP Talk' > Subject: Re: [nycphp-talk] OT Eclipse > > > > On Wednesday, July 27, 2005 2:43 PM, > talk-bounces at lists.nyphp.org wrote: > > sorry, didn't notice that you already had Klomp. > > In 3.1 I am unable to load as well. I think they do > explicitly say they > > don't support 3.1 yet... > > Thanks Jonathan - I use svn so I'll check out the > WebDav/subversion options, > as it's quickly becoming my favorite method of remote > development and source > control. > > H > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From evdo.hsdpa at gmail.com Wed Jul 27 16:25:11 2005 From: evdo.hsdpa at gmail.com (Robert Kim Wireless Internet Advisor) Date: Wed, 27 Jul 2005 13:25:11 -0700 Subject: [nycphp-talk] webcam googlemap - more webcams wanted + alpha test help Message-ID: <1ec620e905072713257e5ce611@mail.gmail.com> guys... hi... i just put up a google map for webcam and traffic cams across the country at http://evdo-coverage.com/webcam/ theres a whole lot of space for other webcams too so if you know of some useful webcams.. please add them to the database... and also let me know what i can do to improve the site as well... its just in alpha testing now and all the feedback i can get is suuuuper appreciated... -- Robert Q Kim, Wireless Internet Advisor http://evdo-coverage.com http://wirelessinternetcoverage.com http://hsdpa-coverage.com 2611 S. Pacific Coast Highway 101 Suite 102 Cardiff by the Sea, CA 92007 206 984 0880 -------------- next part -------------- An HTML attachment was scrubbed... URL: From damovand at yahoo.com Wed Jul 27 19:13:32 2005 From: damovand at yahoo.com (Leila Lappin) Date: Wed, 27 Jul 2005 16:13:32 -0700 (PDT) Subject: [nycphp-talk] Index files in MySQL In-Reply-To: Message-ID: <20050727231332.46832.qmail@web30809.mail.mud.yahoo.com> I don?t know if this has been answered or not but, this select statement simply returns the number of records in the table. Since you?re not returning ?id? therefore nothing happens to the order. --- Amir Aavani wrote: > Dear friends > I have some problem in getting query from mysql, > I have table named news in following fornat > ID Int, sid Int, Title Varchar , .... data DateTime > I have a query like this > SELECT count(*) from news where sid in (1, 2, 3, 4, > 5 ,6, ...) order > by id LIMIT 0, 10; > I want to force mysql to use id as index (not sid) > (because of bug > size of my table) but I was unsuccessfull in that, > and always mysql > use filesort to sort the results. > Something wonderfull is when I changed the query to > SELECT count(*) from news where (id< 1000 or id> > 100000) order by id > LIMIT 0, 10; > mysql didn't use id as index. > > Thanks in advanced > Amir Aavani > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From jeff.loiselle at gmail.com Wed Jul 27 22:25:57 2005 From: jeff.loiselle at gmail.com (Jeff Loiselle) Date: Wed, 27 Jul 2005 22:25:57 -0400 Subject: [nycphp-talk] Input Filtering In-Reply-To: References: <0MKz1m-1DxXQY02rA-0004oA@mrelay.perfora.net> Message-ID: <4b188711050727192571dfdadd@mail.gmail.com> Yeah, I've taken a quick peek at it in the past. But since you've mentioned it, I will take a look at it again. Hey Rasmus, where's my pfilter().. ;-) But seriously, I can't believe there isn't a good modular library for this or something.. I'm just imagining php developers all over the world writing the same regexes over and over again... seems like an incredible waste of brainpower. On 7/27/05, David Mintz wrote: > > PS: > > http://pear.php.net/manual/en/package.html.html-quickform.php > > > --- > David Mintz > http://davidmintz.org/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- --- Jeff Loiselle Web Developer, Musician, and Observer http://jeff.loiselles.com From amir.aavani at gmail.com Thu Jul 28 00:43:20 2005 From: amir.aavani at gmail.com (Amir Aavani) Date: Thu, 28 Jul 2005 08:13:20 +0330 Subject: [nycphp-talk] Index files in MySQL In-Reply-To: <20050727231332.46832.qmail@web30809.mail.mud.yahoo.com> References: <20050727231332.46832.qmail@web30809.mail.mud.yahoo.com> Message-ID: Dear Leila, I misstyped the query, (count(*) must be replaced by * ), On 7/28/05, Leila Lappin wrote: > I don't know if this has been answered or not but, > this select statement simply returns the number of > records in the table. Since you're not returning 'id' > therefore nothing happens to the order. > > --- Amir Aavani wrote: > > > Dear friends > > I have some problem in getting query from mysql, > > I have table named news in following fornat > > ID Int, sid Int, Title Varchar , .... data DateTime > > I have a query like this > > SELECT count(*) from news where sid in (1, 2, 3, 4, > > 5 ,6, ...) order > > by id LIMIT 0, 10; > > I want to force mysql to use id as index (not sid) > > (because of big > > size of my table) but I was unsuccessfull in that, > > and always mysql > > use filesort to sort the results. > > Something wonderfull is when I changed the query to > > SELECT count(*) from news where (id< 1000 or id> > > 100000) order by id > > LIMIT 0, 10; > > mysql didn't use id as index. > > > > Thanks in advanced > > Amir Aavani > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From patrick at ramsden.com Thu Jul 28 00:57:06 2005 From: patrick at ramsden.com (Patrick Ramsden) Date: Wed, 27 Jul 2005 23:57:06 -0500 Subject: [nycphp-talk] Index files in MySQL In-Reply-To: Message-ID: <47qfdc$1soh3t@smtp04.mrf.mail.rcn.net> For that first query, I think you want MySql to use the index on SID because it limits the result set -- otherwise it would have to do a table scan. I'm not sure how MySql handles multiple index elements but perhaps having an combined index on SID and ID could help. HTH, Pat > --- Amir Aavani wrote: > Dear Leila, > I misstyped the query, (count(*) must be replaced by * ), > > On 7/28/05, Leila Lappin wrote: > > I don't know if this has been answered or not but, > > this select statement simply returns the number of > > records in the table. Since you're not returning 'id' > > therefore nothing happens to the order. > > > > --- Amir Aavani wrote: > > > > > Dear friends > > > I have some problem in getting query from mysql, > > > I have table named news in following fornat > > > ID Int, sid Int, Title Varchar , .... data DateTime > > > I have a query like this > > > SELECT count(*) from news where sid in (1, 2, 3, 4, > > > 5 ,6, ...) order > > > by id LIMIT 0, 10; > > > I want to force mysql to use id as index (not sid) > > > (because of big > > > size of my table) but I was unsuccessfull in that, > > > and always mysql > > > use filesort to sort the results. > > > Something wonderfull is when I changed the query to > > > SELECT count(*) from news where (id< 1000 or id> > > > 100000) order by id > > > LIMIT 0, 10; > > > mysql didn't use id as index. From 1j0lkq002 at sneakemail.com Thu Jul 28 13:37:51 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Thu, 28 Jul 2005 10:37:51 -0700 Subject: [nycphp-talk] [OT] SPAM? Re: webcam googlemap - more webcams wanted + alpha test help In-Reply-To: <1ec620e905072713257e5ce611@mail.gmail.com> References: <1ec620e905072713257e5ce611@mail.gmail.com> Message-ID: <3630-39423@sneakemail.com> Not that it isn't interesting, but isn't this list spam? Robert Kim Wireless Internet Advisor evdo.hsdpa-at-gmail.com |nyphp dev/internal group use| wrote: > guys... hi... i just put up a google map for webcam and traffic cams > across the country at http://evdo-coverage.com/webcam/ > > theres a whole lot of space for other webcams too so if you know of > some useful webcams.. please add them to the database... and also let > me know what i can do to improve the site as well... its just in alpha > testing now and all the feedback i can get is suuuuper appreciated... > > -- > Robert Q Kim, Wireless Internet Advisor > http://evdo-coverage.com > http://wirelessinternetcoverage.com > http://hsdpa-coverage.com > > 2611 S. Pacific Coast Highway 101 > Suite 102 > Cardiff by the Sea, CA 92007 > 206 984 0880 From dcech at phpwerx.net Thu Jul 28 13:55:48 2005 From: dcech at phpwerx.net (Dan Cech) Date: Thu, 28 Jul 2005 13:55:48 -0400 Subject: [nycphp-talk] [OT] SPAM? Re: webcam googlemap - more webcams wanted + alpha test help In-Reply-To: <3630-39423@sneakemail.com> References: <1ec620e905072713257e5ce611@mail.gmail.com> <3630-39423@sneakemail.com> Message-ID: <42E91C24.2060804@phpwerx.net> Yup, definitely more commercial (read spam) than interesting. Dan inforequest wrote: > Not that it isn't interesting, but isn't this list spam? > > Robert Kim Wireless Internet Advisor evdo.hsdpa-at-gmail.com |nyphp > dev/internal group use| wrote: > > >>guys... hi... i just put up a google map for webcam and traffic cams >>across the country at http://evdo-coverage.com/webcam/ >> >>theres a whole lot of space for other webcams too so if you know of >>some useful webcams.. please add them to the database... and also let >>me know what i can do to improve the site as well... its just in alpha >>testing now and all the feedback i can get is suuuuper appreciated... >> >>-- >>Robert Q Kim, Wireless Internet Advisor >>http://evdo-coverage.com >>http://wirelessinternetcoverage.com >>http://hsdpa-coverage.com >> >>2611 S. Pacific Coast Highway 101 >>Suite 102 >>Cardiff by the Sea, CA 92007 >>206 984 0880 From nestorflorez at earthlink.net Thu Jul 28 15:28:03 2005 From: nestorflorez at earthlink.net (Nestor_earth) Date: Thu, 28 Jul 2005 12:28:03 -0700 Subject: [nycphp-talk] OT - Nagios In-Reply-To: References: <7325213.1122145669294.JavaMail.root@wamui-royal.atl.sa.earthlink.net> Message-ID: <42E931C3.8030104@earthlink.net> Thanks to all for the information provided. Nestor :-) csnyder wrote: >On 7/23/05, Nestor Florez wrote: > > >>Have any of you install Nagios? >> >> > >Yes. It works as advertised. > > > >>Any gotchas one must be awared? >> >> > >Configuration is a nightmare... well, maybe just a bad dream, but >anyway there are six or seven different files with a bunch of default >values that all reference each other, and nothing works until they are >all in place. > >If someone were to redo Nagios in a professional, >easy-to-install-and-configure way (using zero-config networking!), >sysadmins would beat a path to their door. > >Or even if Cacti (http://www.cacti.net/) would just add an alert >system... but the developers have said they aren't interested. >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > > > From credulity at gmail.com Fri Jul 29 05:44:46 2005 From: credulity at gmail.com (pete) Date: Fri, 29 Jul 2005 05:44:46 -0400 Subject: [nycphp-talk] http analyzer Message-ID: <42E9FA8E.8000209@gmail.com> An HTML attachment was scrubbed... URL: From jeff.knight at gmail.com Fri Jul 29 13:54:31 2005 From: jeff.knight at gmail.com (Jeff Knight) Date: Fri, 29 Jul 2005 13:54:31 -0400 Subject: [nycphp-talk] OT Eclipse In-Reply-To: <0MKz5u-1DxqzQ347A-0008Q9@mrelay.perfora.net> References: <42E7D5A4.5080804@simmons.edu> <0MKz5u-1DxqzQ347A-0008Q9@mrelay.perfora.net> Message-ID: <2ca9ba9105072910545f3fef8e@mail.gmail.com> On 7/27/05, Hans Zaunere wrote: > as it's quickly becoming my favorite method of remote development and source > control. I think I'm going to faint.... From aaron at aarond.com Fri Jul 29 14:58:29 2005 From: aaron at aarond.com (aaron) Date: Fri, 29 Jul 2005 14:58:29 -0400 Subject: [nycphp-talk] proxy voting In-Reply-To: <2ca9ba9105072910545f3fef8e@mail.gmail.com> References: <42E7D5A4.5080804@simmons.edu> <0MKz5u-1DxqzQ347A-0008Q9@mrelay.perfora.net> <2ca9ba9105072910545f3fef8e@mail.gmail.com> Message-ID: <42EA7C55.9060800@aarond.com> The company I work for has decided to have the proxy voting process for new board members done via web. Does anyone know of any apps out there or process models done similar to this? I guess just a secure voting site where users have to login with a provided id# thanks, Aaron D. From reto at nerdbude.de Sat Jul 30 04:57:08 2005 From: reto at nerdbude.de (Reto M. Kiefer) Date: Sat, 30 Jul 2005 10:57:08 +0200 Subject: [nycphp-talk] OT Eclipse In-Reply-To: <47qfdc$1sjao2@smtp04.mrf.mail.rcn.net> References: <47qfdc$1sjao2@smtp04.mrf.mail.rcn.net> Message-ID: <42EB40E4.2070605@nerdbude.de> Hi all, > I'd second that approach. I've been using Eclipse 3, phpEclipse, Subclipse > and Subversion (using Apache SSL WebDav) and pleased with it. Just curious. Are you using all the phpeclipse plugin or has someone tried the Xored Truestudio (foundation or professional). Their latest maintenance build are quite usable under Eclipse 3.1... IMO Truestudio has some more advanced features and the plugin imitates some of the Java developement practises is Eclipse. The professional versions is commercial ($95/year) but the foundation might do the job as well, if you can forfeit some features. CU Reto From shiflett at php.net Sat Jul 30 09:55:06 2005 From: shiflett at php.net (Chris Shiflett) Date: Sat, 30 Jul 2005 09:55:06 -0400 Subject: [nycphp-talk] http analyzer In-Reply-To: <42E9FA8E.8000209@gmail.com> References: <42E9FA8E.8000209@gmail.com> Message-ID: <42EB86BA.5060501@php.net> pete wrote: > What I want to see is simply the html of a web site. Most browsers have an option to view source. Is this different than what you're wanting to do? Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From lists at genoverly.net Sat Jul 30 11:11:24 2005 From: lists at genoverly.net (michael) Date: Sat, 30 Jul 2005 11:11:24 -0400 Subject: [nycphp-talk] darwinports Message-ID: <20050730111124.745a45c3@genoverly.com> At the last PHP meeting I was talking about Fink as a way to install open source software on OSX. The alternative, which slipped my mind, was DarwinPorts: http://darwinports.org/ I was uncomfortable with the way fink did things and was very pleased with DarwinPorts. Mitch, wasn't that you I was talking with? Michael -- From danielc at analysisandsolutions.com Sat Jul 30 12:01:34 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 30 Jul 2005 12:01:34 -0400 Subject: [nycphp-talk] securityfocus 307 Message-ID: <20050730160133.GA11484@panix.com> Alerts from SecurityFocus Newsletter #307 APPLICATIONS USING PHP ---------------------- ID Team ID Board SQL.CLS.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/14204 PPA ppa_root_path File Include Vulnerability http://www.securityfocus.com/bid/14209 PHPsFTPd Inc.Login.PHP Privilege Escalation Vulnerability http://www.securityfocus.com/bid/14222 Moodle Unspecified Security Vulnerability http://www.securityfocus.com/bid/14224 iPhotoAlbum Multiple File Include Vulnerabilities http://www.securityfocus.com/bid/14229 Yawp Conf_Path Remote File Include Vulnerability http://www.securityfocus.com/bid/14237 Emilda Management.PHP Input Validation Vulnerability http://www.securityfocus.com/bid/14244 SquirrelMail Variable Handling Vulnerability http://www.securityfocus.com/bid/14254 PHPCounter EpochPrefix Cross Site Scripting Vulnerabillity http://www.securityfocus.com/bid/14256 Class-1 Forum Users.PHP Cross Site Scripting Vulnerabilities http://www.securityfocus.com/bid/14261 Laffer IM.PHP File Include Vulnerability http://www.securityfocus.com/bid/14264 Clever Copy Calendar.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/14278 MooseGallery Display.PHP File Include Vulnerability http://www.securityfocus.com/bid/14280 RELATED STUFF ------------- Mozilla Suite, Firefox And Thunderbird Multiple Vulnerabilities http://www.securityfocus.com/bid/14242 -- 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 danielc at analysisandsolutions.com Sat Jul 30 12:01:49 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 30 Jul 2005 12:01:49 -0400 Subject: [nycphp-talk] securityfocus 308 Message-ID: <20050730160149.GB11484@panix.com> Alerts from SecurityFocus Newsletter #308 APPLICATIONS USING PHP ---------------------- Invision PowerBoard SQL Injection Privilege Escalation Vulnerability http://www.securityfocus.com/bid/14289 OSCommerce Update.PHP Information Disclosure Vulnerability http://www.securityfocus.com/bid/14294 CaLogic Multiple Remote File Include Vulnerabilities http://www.securityfocus.com/bid/14296 e107 Website System Nested BBCode URL Tag Script Injection Vulnerability http://www.securityfocus.com/bid/14301 tForum Member.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/14303 PHPPageProtect Admin.PHP Cross Site Scripting Vulnerability http://www.securityfocus.com/bid/14314 PHPPageProtect Login.PHP Cross Site Scripting Vulnerability http://www.securityfocus.com/bid/14318 SEO-Board Smilies_popup.PHP Cross Site Scripting Vulnerability http://www.securityfocus.com/bid/14320 PHPFinance Inc.login.PHP Authentication Bypass Vulnerability http://www.securityfocus.com/bid/14322 Form Sender Processform.PHP3 Name Cross Site Scripting Vulnerability http://www.securityfocus.com/bid/14324 Form Sender Processform.PHP3 Failed Cross Site Scripting Vulnerability http://www.securityfocus.com/bid/14326 CuteNews Search.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/14328 PHP Surveyor Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/14329 PHP Surveyor Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/14331 PHP-Fusion BBcode Color Tag Code Injection Vulnerability http://www.securityfocus.com/bid/14332 PHPNews Auth.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/14333 ReviewPost Showproduct.PHP Sort SQL Injection Vulnerability http://www.securityfocus.com/bid/14335 Website Generator Remote Code Execution Vulnerability http://www.securityfocus.com/bid/14337 Website Generator Multiple Remote Cross Site Scripting Vulnerabilities http://www.securityfocus.com/bid/14338 Pyrox Search Newsearch.PHP Whatdoreplace Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/14343 PHPSiteSearch Search.PHP Query Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/14344 CMSimple Index.PHP Search Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/14346 Ultimate PHP Board Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/14348 Ultimate PHP Remote Injection Vulnerabilities http://www.securityfocus.com/bid/14350 Sendcard Sendcard.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/14351 Contrexx Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/14352 PHP TopSites Setup.PHP Authentication Bypass Vulnerability http://www.securityfocus.com/bid/14353 ASN Guestbook Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/14356 RELATED STUFF ------------- Mozilla Firefox Weak Authentication Mechanism Vulnerability http://www.securityfocus.com/bid/14325 -- 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 credulity at gmail.com Sat Jul 30 12:49:52 2005 From: credulity at gmail.com (pete) Date: Sat, 30 Jul 2005 12:49:52 -0400 Subject: [nycphp-talk] http analyzer Message-ID: <42EBAFB0.8070908@gmail.com> An HTML attachment was scrubbed... URL: From wkamm at att.com Sat Jul 30 12:56:50 2005 From: wkamm at att.com (Kamm, William R (Bill), ALABS) Date: Sat, 30 Jul 2005 11:56:50 -0500 Subject: [nycphp-talk] http analyzer Message-ID: It all depends on what you are looking for. If it's just the html itself, View Source is the way to go, especially if the author formatted it nicely by indenting blocks of code. A network analyzer like Ethereal is good for looking at things you won't see in the browser, such as http headers, including cookies being passed from the browser to the server and vice versa. If you know how to read a network trace, the info there is fascinating. Bill -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of pete Sent: Saturday, July 30, 2005 12:50 PM To: phpTalk Subject: Re: [nycphp-talk] http analyzer Chris, For some reason I had this fixation that I had to see the actual html text in the http analyzer. I realized after I wrote the email that as you have stated the view source in a browser pretty much meets all my needs. Who knows what I was thinking. DUH Thanks for responding, Pete pete wrote: What I want to see is simply the html of a web site. Most browsers have an option to view source. Is this different than what you're wanting to do? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From brettstil at gmail.com Sat Jul 30 13:41:17 2005 From: brettstil at gmail.com (Brett Stilwell) Date: Sat, 30 Jul 2005 13:41:17 -0400 Subject: [nycphp-talk] http analyzer In-Reply-To: <42EB86BA.5060501@php.net> References: <42E9FA8E.8000209@gmail.com> <42EB86BA.5060501@php.net> Message-ID: <4048d2ca050730104155931209@mail.gmail.com> On 7/30/05, Chris Shiflett wrote: > pete wrote: > > What I want to see is simply the html of a web site. > > Most browsers have an option to view source. Is this different than what > you're wanting to do? The combination of Live HTTP Headers and View Source should do it. Live HTTP Headers also has some options, such as filter out traffic for images, favicon, etc., if you're just concerned with the HTML traffic. Brett From plehrer at gmail.com Sat Jul 30 14:48:17 2005 From: plehrer at gmail.com (Peter Lehrer) Date: Sat, 30 Jul 2005 14:48:17 -0400 Subject: [nycphp-talk] OT - Printing Web pages using FireFox Message-ID: Hi, I am trying to print web pages using FireFox on Fedora 4. Some pages, like Yahoo Mail only print blank pages. I also get blank pages when I do a print preview. Gmail on the other hand prints fine. Can anyone shed some light on this behaviour? Best, Peter Lehrer -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Sat Jul 30 21:16:33 2005 From: lists at zaunere.com (Hans Zaunere) Date: Sat, 30 Jul 2005 21:16:33 -0400 Subject: [nycphp-talk] OT Eclipse In-Reply-To: <42EB40E4.2070605@nerdbude.de> Message-ID: <0MKyxe-1Dz2RO48sq-0004Ts@mrelay.perfora.net> On Saturday, July 30, 2005 4:57 AM, talk-bounces at lists.nyphp.org wrote: > Hi all, > > > I'd second that approach. I've been using Eclipse 3, phpEclipse, Subclipse > > and Subversion (using Apache SSL WebDav) and pleased with it. > > Just curious. Are you using all the phpeclipse plugin or has someone > tried the Xored Truestudio (foundation or professional). Their latest > maintenance build are quite usable under Eclipse 3.1... I've been trying both; Eclipse 3.1 with PHPClipse and another install of Eclipse 3.0 with the TruStudio package. I haven't seen that it would work with 3.1, but I'll give it a shot anyway. > IMO Truestudio has some more advanced features and the plugin imitates > some of the Java developement practises is Eclipse. The professional > versions is commercial ($95/year) but the foundation might do > the job as well, if you can forfeit some features. It has been looking pretty good - some nice source browsing features, etc. although so far it's missing some nice things, as far as I can tell (click class to go to definition, UML, etc). Those aren't very big deals, though. My biggest problem with Eclipse so far has been working remotely. It's quite common to need to work on a remote server when doing any type of web work. I've tried mounting a WebDav server in Windows XP, and having Eclipse use it as the project directory. So far it's ok, although there are some reoccuring errors that don't seem to hurt the file consistency, but I'm not comfortable taking a chance for real development. The other missing feature in Eclipse is the lack of SFTP. There is a plug-in from Klomp, but it seems outdated, and only to work with 3.0. I'm a little surprised that Eclipse hasn't included SFTP (and even WebDav) access in it's core, as most other editors/IDEs have. I'm still seeing what works and what doesn't, and will post back what I find the magic combo to be (if there is one). --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From mitch.pirtle at gmail.com Sat Jul 30 21:43:30 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sat, 30 Jul 2005 21:43:30 -0400 Subject: [nycphp-talk] darwinports In-Reply-To: <20050730111124.745a45c3@genoverly.com> References: <20050730111124.745a45c3@genoverly.com> Message-ID: <330532b605073018432cc203e7@mail.gmail.com> Yup, that was me. And as one of my partners is demanding that the rest of us get Powerbooks, I suppose I will find out soon enough which method makes the most sense ;-) -- Mitch Pirtle Mambo Core Developer On 7/30/05, michael wrote: > At the last PHP meeting I was talking about Fink as a way to install > open source software on OSX. The alternative, which slipped my mind, > was DarwinPorts: http://darwinports.org/ > > I was uncomfortable with the way fink did things and was very pleased > with DarwinPorts. > > Mitch, wasn't that you I was talking with? From hans at cyberxdesigns.com Sun Jul 31 00:04:15 2005 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Sun, 31 Jul 2005 00:04:15 -0400 Subject: [nycphp-talk] July Presentation Audio and Gallery Images Message-ID: <42EC4DBF.7080603@cyberxdesigns.com> We have posted the audio recording of July's presentation, Building Rich Internet Applications Using JavaScript by Dan Gisolfi and Laurent Hasson. You can find a link to it on the presentation page: http://www.nyphp.org/content/presentations/index.php or you can find it here: http://www.nyphp.org/content/mp3/nyphp072605.mp3 We have also posted images of the presentation: http://www.nyphp.org/content/gallery/view_album.php?set_albumName=jul05 I would like to thank Mike Dewitt for making sure the recordings happen and get uploaded, the same goes for the photos. Hans Kaspersetz Presentation Lacky, NYPHP. -- Hans C. Kaspersetz Cyber X Designs http://www.cyberxdesigns.com From hendler at simmons.edu Sun Jul 31 10:21:51 2005 From: hendler at simmons.edu (Jonathan) Date: Sun, 31 Jul 2005 10:21:51 -0400 Subject: [nycphp-talk] darwinports In-Reply-To: <330532b605073018432cc203e7@mail.gmail.com> References: <20050730111124.745a45c3@genoverly.com> <330532b605073018432cc203e7@mail.gmail.com> Message-ID: <42ECDE7F.8080703@simmons.edu> I was working in a mac environment and installed MAMP on some designers/developers machines. But to install subversion and some other packages I used darwinports. Mitch Pirtle wrote: >Yup, that was me. And as one of my partners is demanding that the rest >of us get Powerbooks, I suppose I will find out soon enough which >method makes the most sense ;-) > >-- >Mitch Pirtle >Mambo Core Developer > >On 7/30/05, michael wrote: > > >>At the last PHP meeting I was talking about Fink as a way to install >>open source software on OSX. The alternative, which slipped my mind, >>was DarwinPorts: http://darwinports.org/ >> >>I was uncomfortable with the way fink did things and was very pleased >>with DarwinPorts. >> >>Mitch, wasn't that you I was talking with? >> >> >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > From dwclifton at gmail.com Sun Jul 31 13:48:38 2005 From: dwclifton at gmail.com (Douglas Clifton) Date: Sun, 31 Jul 2005 13:48:38 -0400 Subject: [nycphp-talk] darwinports In-Reply-To: References: Message-ID: <7d6cdcb05073110486ed5a481@mail.gmail.com> Warning: shameless plug ahead. For Mac OS X developers, and Web development in particular, you might be interested in this list of resources: http://loadaveragezero.com/app/drx/Software/Operating_Systems/Unix/Mac_OS_X There's a ton of other stuff in there, and directly related to this category are FreeBSD and Safari. ~d -- Douglas Clifton dwclifton at gmail.com http://loadaveragezero.com/ http://loadaveragezero.com/drx/rss/recent > ---------- Forwarded message ---------- > From: Jonathan > To: NYPHP Talk > Date: Sun, 31 Jul 2005 10:21:51 -0400 > Subject: Re: [nycphp-talk] darwinports > I was working in a mac environment and installed MAMP on some > designers/developers machines. > But to install subversion and some other packages I used darwinports. > > Mitch Pirtle wrote: > > >Yup, that was me. And as one of my partners is demanding that the rest > >of us get Powerbooks, I suppose I will find out soon enough which > >method makes the most sense ;-) > > > >-- > >Mitch Pirtle > >Mambo Core Developer > > > >On 7/30/05, michael wrote: > > > > > >>At the last PHP meeting I was talking about Fink as a way to install > >>open source software on OSX. The alternative, which slipped my mind, > >>was DarwinPorts: http://darwinports.org/ > >> > >>I was uncomfortable with the way fink did things and was very pleased > >>with DarwinPorts. > >> > >>Mitch, wasn't that you I was talking with? > >> > >> > >_______________________________________________ > >New York PHP Talk Mailing List > >AMP Technology > >Supporting Apache, MySQL and PHP > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.nyphp.org From tom at supertom.com Sun Jul 31 16:04:25 2005 From: tom at supertom.com (Tom) Date: Sun, 31 Jul 2005 16:04:25 -0400 Subject: [nycphp-talk] PHP Sessions on windows Message-ID: <0IKI0011HC7E7ISE@mta1.srv.hcvlny.cv.net> Hey folks, I really must be missing something, and I just can't figure it out. I can't seem to get sessions working on windows. I'm using PHP5.1 beta 3 (I just upgraded to this, I was using 5.0.4, sessions didn't work there, either), Apache 2.0.53 on Windows 2000 Professional (workstation, not server). The problem appears to be that the session file is created (and it has data in it), but not "re-read", meaning that a new session is ALWAYS created. Apache was originally running as the "LocalSystem" user, I changed it to Administrator, with no change. Here are the PHP session settings from my system, with my comments about what I've tried underneath (I doubt this will 'tab' well in everyone's email client): session.auto_start Off Off ; tried both on and off session.bug_compat_42 On On ; tried both on and off session.bug_compat_warn On On session.cache_expire 180 180 session.cache_limiter nocache nocache session.cookie_domain no value no value session.cookie_lifetime 0 0 session.cookie_path \ \ session.cookie_secure Off Off session.entropy_file no value no value session.entropy_length 0 0 session.gc_divisor 1000 1000 session.gc_maxlifetime 1440 1440 session.gc_probability 1 1 session.hash_bits_per_character 5 5 session.hash_function 0 0 session.name FOOBAR FOOBAR ; originally running as PHPSESSID - shouldn't matter anyway session.referer_check no value no value session.save_handler files files (*)session.save_path C:/Documents and Settings/Administrator/Local Settings/Temp/php C:/Documents and Settings/Administrator/Local Settings/Temp/php session.serialize_handler php php session.use_cookies On On session.use_only_cookies Off Off session.use_trans_sid 0 0 * session.save_path - (no, the star is not in my php.ini file) I've had the save path at c:\temp, c:\tmp and the entry above. I've had all of the slashes in both directions '\' and '/' with no luck (I'm not even sure which one is right anymore). I've set permissions on all of the directories, and their parents to "full control" for "Everybody". Like I said earlier, the file is getting written, it is just not being read back in. Ok, here is my PHP test code. Works fine on Linux: Go to page 2"; print "
Clear Session"; ?> I also notice the data in the session file isn't encrypted in any way. Should it be? I would think it would be at least base64 encoded.... Any suggestions greatly appreciated - this is very frustrating! Thanks, Tom http://www.liphp.org From danielc at analysisandsolutions.com Sun Jul 31 17:28:55 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 31 Jul 2005 17:28:55 -0400 Subject: [nycphp-talk] PHP Sessions on windows In-Reply-To: <0IKI0011HC7E7ISE@mta1.srv.hcvlny.cv.net> References: <0IKI0011HC7E7ISE@mta1.srv.hcvlny.cv.net> Message-ID: <20050731212855.GA1999@panix.com> On Sun, Jul 31, 2005 at 04:04:25PM -0400, Tom wrote: > (*)session.save_path C:/Documents and > Settings/Administrator/Local Settings/Temp/php C:/Documents and > Settings/Administrator/Local Settings/Temp/php session.save_path = "c:/temp" Of course, that directory needs to be writable by the web server, but you don't want other users being able to read or tinker around with the files. Here are the perms on mine: C:\PROGRA~1>cacls c:\temp c:\temp BUILTIN\Administrators:(OI)(CI)F machinename\Apache:(CI)(special access:) SYNCHRONIZE FILE_WRITE_DATA FILE_APPEND_DATA NT AUTHORITY\Authenticated Users:(CI)(special access:) SYNCHRONIZE FILE_WRITE_DATA FILE_APPEND_DATA FILE_EXECUTE CREATOR OWNER:(OI)(CI)(IO)F NT AUTHORITY\SYSTEM:(OI)(CI)F --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 tom at supertom.com Sun Jul 31 18:21:56 2005 From: tom at supertom.com (Tom) Date: Sun, 31 Jul 2005 18:21:56 -0400 Subject: [nycphp-talk] PHP Sessions on windows In-Reply-To: <20050731212855.GA1999@panix.com> Message-ID: <0IKI00EEOIKI2BN1@mta10.srv.hcvlny.cv.net> Hi Dan, Thanks for the response. I changed my save_path back to c:/temp, and compared my permissions to yours (thanks for the command, BTW, didn't know that existed), and still no luck. As I mentioned earlier, it's weird because the file is getting written - every time I press reload, I see the file. The web server running right now as the Administrator account, I guess it just can't read the file? There are no errors in the Apache error log. Any other ideas? Thanks, Tom http://www.liphp.org -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Daniel Convissor Sent: Sunday, July 31, 2005 5:29 PM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP Sessions on windows On Sun, Jul 31, 2005 at 04:04:25PM -0400, Tom wrote: > (*)session.save_path C:/Documents and > Settings/Administrator/Local Settings/Temp/php C:/Documents and > Settings/Administrator/Local Settings/Temp/php session.save_path = "c:/temp" Of course, that directory needs to be writable by the web server, but you don't want other users being able to read or tinker around with the files. Here are the perms on mine: C:\PROGRA~1>cacls c:\temp c:\temp BUILTIN\Administrators:(OI)(CI)F machinename\Apache:(CI)(special access:) SYNCHRONIZE FILE_WRITE_DATA FILE_APPEND_DATA NT AUTHORITY\Authenticated Users:(CI)(special access:) SYNCHRONIZE FILE_WRITE_DATA FILE_APPEND_DATA FILE_EXECUTE CREATOR OWNER:(OI)(CI)(IO)F NT AUTHORITY\SYSTEM:(OI)(CI)F --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 _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From damovand at yahoo.com Sun Jul 31 19:18:47 2005 From: damovand at yahoo.com (Leila Lappin) Date: Sun, 31 Jul 2005 16:18:47 -0700 (PDT) Subject: [nycphp-talk] newline with "\n" question Message-ID: <20050731231847.57643.qmail@web30810.mail.mud.yahoo.com> Hi all, Could someone please tell me what I need to setup in order for ?\n" to generate a newline? Currently the only way I can get a newline is through ?
?. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From tom at supertom.com Sun Jul 31 19:45:09 2005 From: tom at supertom.com (Tom) Date: Sun, 31 Jul 2005 19:45:09 -0400 Subject: [nycphp-talk] newline with "\n" question In-Reply-To: <20050731231847.57643.qmail@web30810.mail.mud.yahoo.com> Message-ID: <0IKI004J8MF6ZE90@mta8.srv.hcvlny.cv.net> Hi Leila, I don't know if you can "set something up". The options I can think of are: * Run your text through the nl2br function. Ex: nl2br("My Text with newlines, etc."); * Wrap your text in 'pre' tags Good Luck! Tom http://www.liphp.org -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Leila Lappin Sent: Sunday, July 31, 2005 7:19 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] newline with "\n" question Hi all, Could someone please tell me what I need to setup in order for "\n" to generate a newline? Currently the only way I can get a newline is through "
". __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From damovand at yahoo.com Sun Jul 31 19:58:40 2005 From: damovand at yahoo.com (Leila Lappin) Date: Sun, 31 Jul 2005 16:58:40 -0700 (PDT) Subject: [nycphp-talk] newline with "\n" question In-Reply-To: <0IKI004J8MF6ZE90@mta8.srv.hcvlny.cv.net> Message-ID: <20050731235840.31936.qmail@web30812.mail.mud.yahoo.com> Thanks Tom, nl2br function did it. --- Tom wrote: > Hi Leila, > > I don't know if you can "set something up". > > The options I can think of are: > > * Run your text through the nl2br function. Ex: > nl2br("My Text with > newlines, etc."); > * Wrap your text in 'pre' tags > > Good Luck! > > Tom > > http://www.liphp.org > > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On > Behalf Of Leila Lappin > Sent: Sunday, July 31, 2005 7:19 PM > To: talk at lists.nyphp.org > Subject: [nycphp-talk] newline with "\n" question > > Hi all, > > Could someone please tell me what I need to setup in > order for "\n" to > generate a newline? Currently the only way I can > get a newline is through > "
". > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com