From nelly at cgim.com Wed Dec 2 13:19:59 2009 From: nelly at cgim.com (Nelly Yusupova) Date: Wed, 02 Dec 2009 13:19:59 -0500 Subject: [nycphp-talk] Invitation to NYC Webgrrls Holiday Networking Event - Tues, Dec 8 Message-ID: Hello Everyone, I wanted to invite you to the NYC Webgrrls Holiday Networking event on December 8. It is an industry event where you will be able to network with business professionals in the technology industry. We will start at 7:00 PM with an open bar for two hours, some great Italian food, door prizes and drawings from our sponsors. Please feel free to invite clients, friends & colleagues (both men and women). For more information and to RSVP, please go to: http://www.webgrrls.com/newyork-ny/ Use code: WGTwitter to get Webgrrls member rate (50% discount...valid for pre-pay RSVPs only) See you there! Sincerely, Nelly Yusupova Webgrrls.com nelly at cgim.com URL: http://www.webgrrls.com Blog: http://www.webgrrls.com/blog/ Twitter: http://twitter.com/DigitalWoman -------------- next part -------------- An HTML attachment was scrubbed... URL: From greg at freephile.com Wed Dec 2 17:25:43 2009 From: greg at freephile.com (Greg Rundlett (freephile)) Date: Wed, 2 Dec 2009 17:25:43 -0500 Subject: [nycphp-talk] [JOB] Senior Web Developer (Portsmouth, NH) Message-ID: <5e2aaca40912021425t6ef5aaa0oebcf918ded5157bb@mail.gmail.com> Bean Group is hiring a Senior Web Developer to help bring it's web platform to the next level of performance. The Senior Web Developer will work within the Technology team as well as with company managers to execute on the technology vision. The successful candidate will be responsible for implementation of the systems and architecture of Bean Group to reflect best practices in web technology on an Open Source Platform. Experience with Ubuntu Linux, Apache, MySQL, PHP, Python, PostrgreSQL, JavaScript, XML, svn and/or git, content management, social networking, and Google Apps is required. Candidates should have experience leading the development and delivery of customized solutions using Drupal, MediaWiki, Asterisk, WordPress or similar open source applications. Real Estate industry experience such as MLSPIN, IDX, NAR, NNEREN, RETS and projects such as OpenRealty or ReOS desirable. This full-time position will be at the main Portsmouth, NH office. This ambitious professional will build new features and products for and maintain our network of consumer-facing real estate websites. Development also includes internally-facing applications that combine our hosting infrastructure and Google Apps. Qualifications: The ideal candidate will possess the following minimum qualifications: * 5+ years full life cycle web application development * Strong CS fundamentals with Object-oriented programming background * Server-side development experience using PHP * Client-side development experience using template systems like Smarty * Experience with a JavaScript frameworks like jQuery, Prototype, Ext * Intermediate to advanced relational database development and administration experience including PostgreSQL and MySQL * Linux system administration skills * BS Computer Science or equivalent experience * Excellent communication skills The most competitive candidates will also have experience with the following: * PHP web-application frameworks like Zend, CakePHP, or Symfony * Expertise in other languages such as Python, Perl or Java * Revision control systems ? Subversion/CVS/Git * Unit testing with SimpleTest, PHPUnit or Lime * Agile development methods e.g. test-driven development and iterations * Quality Assurance using various tools like validators * Documentation standards e.g. PHPDoc and Doxygen * Design patterns, MVC, and ORM * Conversion tuning with A/B testing * Web services including SOAP, REST and Web 2.0 API integration * Architectural issues that affect performance and scalability of web sites ? caching with memcache, HTTP server experience with Apache, and PostgreSQL database tuning * BASH Shell scripting * Linux systems administration including monitoring, troubleshooting and maintenance Teamwork: * Facilitates effective team interaction. * Acknowledges and appreciates each team member's contributions. Open Source Effectiveness: * Develops relationships with online communities that foster ties with our upstream dependencies. * Communicates effectively within IRC, bugzilla, forums and social networks to identify solutions and evaluate alternative business solutions with project management. * Continually seeks opportunities to contribute to open source projects and deepen community relationships. * Balances community needs with organizational needs effectively. Benefits: In return for your hard work and dedication, we offer competitive market-based salary, a comprehensive benefits package and a positive and friendly working environment. About Bean Group: Bean Group is a fast growing real estate brokerage serving New Hampshire, Maine and Vermont. Since its founding in 2003 Bean Group has grown to 180+ agents and over 200 websites. In 2008 Bean Group was Top Five in Sales Overall and the #1 Independent out of more than 900 NH firms. In 2009 Bean Group was chosen by RealTrends as one of the Top 500 real estate firms in the nation and grew to eight offices, with more planned openings in the future. To Apply: Please send your resume to itjobs at beangroup.com with the subject "Sr. Developer". A cover letter explaining your particular qualifications is expected. Principals only, no third-party inquiries. From lists at zaunere.com Wed Dec 2 17:43:58 2009 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 2 Dec 2009 17:43:58 -0500 Subject: [nycphp-talk] [JOB] Senior Web Developer (Portsmouth, NH) In-Reply-To: <5e2aaca40912021425t6ef5aaa0oebcf918ded5157bb@mail.gmail.com> References: <5e2aaca40912021425t6ef5aaa0oebcf918ded5157bb@mail.gmail.com> Message-ID: <00e701ca73a0$efc531c0$cf4f9540$@com> All - please post open positions to the NYPHP-Jobs list: http://www.nyphp.org/Mailing-Lists Thank you, H > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk- > bounces at lists.nyphp.org] On Behalf Of Greg Rundlett (freephile) > Sent: Wednesday, December 02, 2009 5:26 PM > To: NYPHP Talk > Subject: [nycphp-talk] [JOB] Senior Web Developer (Portsmouth, NH) > > Bean Group is hiring a Senior Web Developer to help bring it's web > platform to the next level of performance. The Senior Web Developer > will work within the Technology team as well as with company managers > to execute on the technology vision. The successful candidate will be > responsible for implementation of the systems and architecture of Bean > Group to reflect best practices in web technology on an Open Source > Platform. Experience with Ubuntu Linux, Apache, MySQL, PHP, Python, > PostrgreSQL, JavaScript, XML, svn and/or git, content management, > social networking, and Google Apps is required. Candidates should > have experience leading the development and delivery of customized > solutions using Drupal, MediaWiki, Asterisk, WordPress or similar open > source applications. Real Estate industry experience such as MLSPIN, > IDX, NAR, NNEREN, RETS and projects such as OpenRealty or ReOS > desirable. > > This full-time position will be at the main Portsmouth, NH office. > This ambitious professional will build new features and products for > and maintain our network of consumer-facing real estate websites. > Development also includes internally-facing applications that combine > our hosting infrastructure and Google Apps. > > > Qualifications: > > > The ideal candidate will possess the following minimum qualifications: > > * 5+ years full life cycle web application development > * Strong CS fundamentals with Object-oriented programming > background > * Server-side development experience using PHP > * Client-side development experience using template systems like > Smarty > * Experience with a JavaScript frameworks like jQuery, Prototype, > Ext > * Intermediate to advanced relational database development and > administration experience including PostgreSQL and MySQL > * Linux system administration skills > * BS Computer Science or equivalent experience > * Excellent communication skills > > > The most competitive candidates will also have experience with the > following: > > * PHP web-application frameworks like Zend, CakePHP, or Symfony > * Expertise in other languages such as Python, Perl or Java > * Revision control systems - Subversion/CVS/Git > * Unit testing with SimpleTest, PHPUnit or Lime > * Agile development methods e.g. test-driven development and > iterations > * Quality Assurance using various tools like validators > * Documentation standards e.g. PHPDoc and Doxygen > * Design patterns, MVC, and ORM > * Conversion tuning with A/B testing > * Web services including SOAP, REST and Web 2.0 API integration > * Architectural issues that affect performance and scalability of > web sites - caching with memcache, HTTP server experience with Apache, > and PostgreSQL database tuning > * BASH Shell scripting > * Linux systems administration including monitoring, > troubleshooting and maintenance > > > Teamwork: > > * Facilitates effective team interaction. > * Acknowledges and appreciates each team member's contributions. > > > Open Source Effectiveness: > > * Develops relationships with online communities that foster ties > with our upstream dependencies. > * Communicates effectively within IRC, bugzilla, forums and social > networks to identify solutions and evaluate alternative business > solutions with project management. > * Continually seeks opportunities to contribute to open source > projects and deepen community relationships. > * Balances community needs with organizational needs effectively. > > > Benefits: > In return for your hard work and dedication, we offer competitive > market-based salary, a comprehensive benefits package and a positive > and friendly working environment. > > > About Bean Group: > Bean Group is a fast growing real estate brokerage serving New > Hampshire, Maine and Vermont. Since its founding in 2003 Bean Group > has grown to 180+ agents and over 200 websites. In 2008 Bean Group > was Top Five in Sales Overall and the #1 Independent out of more than > 900 NH firms. In 2009 Bean Group was chosen by RealTrends as one of > the Top 500 real estate firms in the nation and grew to eight offices, > with more planned openings in the future. > > > To Apply: > Please send your resume to itjobs at beangroup.com with the subject "Sr. > Developer". A cover letter explaining your particular qualifications > is expected. Principals only, no third-party inquiries. > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From greg at freephile.com Wed Dec 2 19:26:39 2009 From: greg at freephile.com (Greg Rundlett (freephile)) Date: Wed, 2 Dec 2009 19:26:39 -0500 Subject: [nycphp-talk] [JOB] Senior Web Developer (Portsmouth, NH) In-Reply-To: <00e701ca73a0$efc531c0$cf4f9540$@com> References: <5e2aaca40912021425t6ef5aaa0oebcf918ded5157bb@mail.gmail.com> <00e701ca73a0$efc531c0$cf4f9540$@com> Message-ID: <5e2aaca40912021626j62343eccu71984aafbb9ec5e5@mail.gmail.com> On Wed, Dec 2, 2009 at 5:43 PM, Hans Zaunere wrote: > All - please post open positions to the NYPHP-Jobs list: > > http://www.nyphp.org/Mailing-Lists > > Thank you, > Sorry Hans (and list). I prefixed the subject so that normal list subscribers wouldn't be bothered by messages they aren't interested in. But, as a long-time list member myself I often feel like not receiving [JOB] messages is like getting the newspaper without the classified section -- you never read it except for when you actually want to buy something. In other words, I feel like devs do not subscribe to the jobs list but are interested in jobs on an infrequent basis. I'm not saying that any policy needs to change, nor that I'm right... I'm just saying I believe the situation is somewhat of a catch-22. Greg Rundlett nbpt 978-225-8302 m. 978-764-4424 -skype/aim/irc/twitter freephile http://profiles.aim.com/freephile From garyamort at gmail.com Wed Dec 2 22:23:51 2009 From: garyamort at gmail.com (Gary Mort) Date: Wed, 2 Dec 2009 22:23:51 -0500 Subject: [nycphp-talk] [JOB] Senior Web Developer (Portsmouth, NH) In-Reply-To: <5e2aaca40912021626j62343eccu71984aafbb9ec5e5@mail.gmail.com> References: <5e2aaca40912021425t6ef5aaa0oebcf918ded5157bb@mail.gmail.com> <00e701ca73a0$efc531c0$cf4f9540$@com> <5e2aaca40912021626j62343eccu71984aafbb9ec5e5@mail.gmail.com> Message-ID: <4bffc350912021923g75e1c0d2radfd928287da8ece@mail.gmail.com> On Wed, Dec 2, 2009 at 7:26 PM, Greg Rundlett (freephile) > > like getting the newspaper without the classified section -- you never > read it except for when you actually want to buy something. In other > words, I feel like devs do not subscribe to the jobs list but are > interested in jobs on an infrequent basis. > As long as the job lists are archived, and they are, those who are interested as I am occasionally can view the archives online. At least that is my opinion. Now if only the RSS feeds were working again[speaking of which, is there anything I can do to get that working? I really liked keeping the jobs on RSS only] -- ---- Hudson Valley Sudbury School What GPL is for application users Our school is for students Help your children grow, change, and learn Let your child direct, control, amend Check out http://www.sudburyschool.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From ron at vnetworx.net Thu Dec 3 00:33:56 2009 From: ron at vnetworx.net (Ron Guerin) Date: Thu, 03 Dec 2009 00:33:56 -0500 Subject: [nycphp-talk] [JOB] Senior Web Developer (Portsmouth, NH) In-Reply-To: <4bffc350912021923g75e1c0d2radfd928287da8ece@mail.gmail.com> References: <5e2aaca40912021425t6ef5aaa0oebcf918ded5157bb@mail.gmail.com> <00e701ca73a0$efc531c0$cf4f9540$@com> <5e2aaca40912021626j62343eccu71984aafbb9ec5e5@mail.gmail.com> <4bffc350912021923g75e1c0d2radfd928287da8ece@mail.gmail.com> Message-ID: <4B174DC4.1030502@vnetworx.net> Gary Mort wrote: > > > On Wed, Dec 2, 2009 at 7:26 PM, Greg Rundlett (freephile) > > like getting the newspaper without the classified section -- you never > read it except for when you actually want to buy something. In other > words, I feel like devs do not subscribe to the jobs list but are > interested in jobs on an infrequent basis. > > > As long as the job lists are archived, and they are, those who are > interested as I am occasionally can view the archives online. At > least that is my opinion. > > Now if only the RSS feeds were working again[speaking of which, is > there anything I can do to get that working? I really liked keeping > the jobs on RSS only] I don't know how they were working on that list before, but you can make your own with this (it works): http://taint.org/mmrss/ - Ron From brandon at ChallengePost.com Thu Dec 3 10:04:40 2009 From: brandon at ChallengePost.com (Brandon Kessler) Date: Thu, 3 Dec 2009 10:04:40 -0500 Subject: [nycphp-talk] Reminder -- NYC BigApps submissions due 12/8! Message-ID: Hi, Just a friendly reminder that apps are due next Tuesday 12/8 for the NYC BigApps $20,000 software competition. To remind you, NYC BigApps is an NYC-sponsored initiative to make apps that improve New York using city data. There are approximately 170 data sets on the NYC.gov Data Mine which were released in the name of government transparency. Judges include Fred Wilson, John Borthwick, Esther Dyson, Jason Calacanis, Dawn Barber, Lawrence Lenihan, Kevin Ryan, Danny Schultz, and Paul Cosgrave. We look forward to receiving your submissions. Thanks, Brandon Kessler NYC BigApps & ChallengePost -------------- next part -------------- An HTML attachment was scrubbed... URL: From afischer at smith.edu Thu Dec 3 12:46:41 2009 From: afischer at smith.edu (Aaron Fischer) Date: Thu, 3 Dec 2009 12:46:41 -0500 Subject: [nycphp-talk] PHP and SOAP Message-ID: <358E05AE-C3F7-433E-BFC2-E50CD0137B67@smith.edu> Greetings all, I'm working on a project that will require the use of SOAP. From what I gather there are three main packages I can use: 1) PHP built-in SOAP extension - http://php.net/manual/en/book.soap.php 2) PEAR SOAP package - http://pear.php.net/package/SOAP 3) NuSOAP package - http://sourceforge.net/projects/nusoap/ Before I move forward I'd be interested in hearing from folks as to their experiences with one or all of these packages. Positives? Negatives? Recommendations? Etc. Thanks, -Aaron From jmcgraw1 at gmail.com Thu Dec 3 12:53:07 2009 From: jmcgraw1 at gmail.com (Jake McGraw) Date: Thu, 3 Dec 2009 12:53:07 -0500 Subject: [nycphp-talk] PHP and SOAP In-Reply-To: <358E05AE-C3F7-433E-BFC2-E50CD0137B67@smith.edu> References: <358E05AE-C3F7-433E-BFC2-E50CD0137B67@smith.edu> Message-ID: Hate to further extend your comparison, but I've used Zend_Soap_Client from the Zend Framework and it works pretty well, very straight forward: http://framework.zend.com/manual/en/zend.soap.client.html PS, You can get the Zend Framework through PEAR: pear channel-discover pear.zfcampus.org pear install zfcampus/zf - jake On Thu, Dec 3, 2009 at 12:46 PM, Aaron Fischer wrote: > Greetings all, > > I'm working on a project that will require the use of SOAP. ?From what I > gather there are three main packages I can use: > > 1) ?PHP built-in SOAP extension - http://php.net/manual/en/book.soap.php > 2) ?PEAR SOAP package - http://pear.php.net/package/SOAP > 3) ?NuSOAP package - http://sourceforge.net/projects/nusoap/ > > Before I move forward I'd be interested in hearing from folks as to their > experiences with one or all of these packages. > > Positives? ?Negatives? ?Recommendations? ?Etc. > > Thanks, > > -Aaron > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From alexchan.1976 at gmail.com Thu Dec 3 13:13:24 2009 From: alexchan.1976 at gmail.com (Alex C) Date: Thu, 3 Dec 2009 13:13:24 -0500 Subject: [nycphp-talk] PHP and SOAP In-Reply-To: References: <358E05AE-C3F7-433E-BFC2-E50CD0137B67@smith.edu> Message-ID: <8f494f760912031013h1a106299xf7e41b9f3bd98059@mail.gmail.com> Hi, I have only used the built in soap extension. I never had problems with it. I have not used any others. Alex Chan On Thu, Dec 3, 2009 at 12:53 PM, Jake McGraw wrote: > Hate to further extend your comparison, but I've used Zend_Soap_Client > from the Zend Framework and it works pretty well, very straight > forward: > > http://framework.zend.com/manual/en/zend.soap.client.html > > PS, You can get the Zend Framework through PEAR: > > pear channel-discover pear.zfcampus.org > pear install zfcampus/zf > > - jake > > On Thu, Dec 3, 2009 at 12:46 PM, Aaron Fischer wrote: >> Greetings all, >> >> I'm working on a project that will require the use of SOAP. ?From what I >> gather there are three main packages I can use: >> >> 1) ?PHP built-in SOAP extension - http://php.net/manual/en/book.soap.php >> 2) ?PEAR SOAP package - http://pear.php.net/package/SOAP >> 3) ?NuSOAP package - http://sourceforge.net/projects/nusoap/ >> >> Before I move forward I'd be interested in hearing from folks as to their >> experiences with one or all of these packages. >> >> Positives? ?Negatives? ?Recommendations? ?Etc. >> >> Thanks, >> >> -Aaron >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- alexchan.1976 at gmail.com (347) 688-8491 From zippy1981 at gmail.com Thu Dec 3 13:30:15 2009 From: zippy1981 at gmail.com (Justin Dearing) Date: Thu, 3 Dec 2009 13:30:15 -0500 Subject: [nycphp-talk] PHP and SOAP In-Reply-To: <8f494f760912031013h1a106299xf7e41b9f3bd98059@mail.gmail.com> References: <358E05AE-C3F7-433E-BFC2-E50CD0137B67@smith.edu> <8f494f760912031013h1a106299xf7e41b9f3bd98059@mail.gmail.com> Message-ID: <5458db3c0912031030x767016a0j85ec24c51b6b3225@mail.gmail.com> Aaron, For new PHP5 development use the built-in or zend soap client I've never used the zend framework one. I take it PHP will be the soap client? What is the soap service written in? Regards, Justin Dearing On Thu, Dec 3, 2009 at 1:13 PM, Alex C wrote: > Hi, > I have only used the built in soap extension. I never had problems with > it. > I have not used any others. > > Alex Chan > > On Thu, Dec 3, 2009 at 12:53 PM, Jake McGraw wrote: > > Hate to further extend your comparison, but I've used Zend_Soap_Client > > from the Zend Framework and it works pretty well, very straight > > forward: > > > > http://framework.zend.com/manual/en/zend.soap.client.html > > > > PS, You can get the Zend Framework through PEAR: > > > > pear channel-discover pear.zfcampus.org > > pear install zfcampus/zf > > > > - jake > > > > On Thu, Dec 3, 2009 at 12:46 PM, Aaron Fischer > wrote: > >> Greetings all, > >> > >> I'm working on a project that will require the use of SOAP. From what I > >> gather there are three main packages I can use: > >> > >> 1) PHP built-in SOAP extension - > http://php.net/manual/en/book.soap.php > >> 2) PEAR SOAP package - http://pear.php.net/package/SOAP > >> 3) NuSOAP package - http://sourceforge.net/projects/nusoap/ > >> > >> Before I move forward I'd be interested in hearing from folks as to > their > >> experiences with one or all of these packages. > >> > >> Positives? Negatives? Recommendations? Etc. > >> > >> Thanks, > >> > >> -Aaron > >> _______________________________________________ > >> New York PHP Users Group Community Talk Mailing List > >> http://lists.nyphp.org/mailman/listinfo/talk > >> > >> http://www.nyphp.org/Show-Participation > >> > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > > > > -- > > alexchan.1976 at gmail.com > (347) 688-8491 > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From afischer at smith.edu Thu Dec 3 13:38:32 2009 From: afischer at smith.edu (Aaron Fischer) Date: Thu, 3 Dec 2009 13:38:32 -0500 Subject: [nycphp-talk] PHP and SOAP In-Reply-To: <5458db3c0912031030x767016a0j85ec24c51b6b3225@mail.gmail.com> References: <358E05AE-C3F7-433E-BFC2-E50CD0137B67@smith.edu> <8f494f760912031013h1a106299xf7e41b9f3bd98059@mail.gmail.com> <5458db3c0912031030x767016a0j85ec24c51b6b3225@mail.gmail.com> Message-ID: Justin, OK, I'm still learning the verbiage here, this is my first go-around with soap. Maybe I should have mentioned I'm a soap newbie in my initial post!! Yes, my app using PHP will be the client. The service to be consumed is Novell GroupWise. I'm not sure what it's written in. http://developer.novell.com/wiki/index.php/GroupWise_Web_Service_%28SOAP%29 On Dec 3, 2009, at 1:30 PM, Justin Dearing wrote: > Aaron, > > For new PHP5 development use the built-in or zend soap client I've > never used the zend framework one. > > I take it PHP will be the soap client? What is the soap service > written in? > > Regards, > > Justin Dearing > > On Thu, Dec 3, 2009 at 1:13 PM, Alex C > wrote: > Hi, > I have only used the built in soap extension. I never had problems > with it. > I have not used any others. > > Alex Chan > > On Thu, Dec 3, 2009 at 12:53 PM, Jake McGraw > wrote: > > Hate to further extend your comparison, but I've used > Zend_Soap_Client > > from the Zend Framework and it works pretty well, very straight > > forward: > > > > http://framework.zend.com/manual/en/zend.soap.client.html > > > > PS, You can get the Zend Framework through PEAR: > > > > pear channel-discover pear.zfcampus.org > > pear install zfcampus/zf > > > > - jake > > > > On Thu, Dec 3, 2009 at 12:46 PM, Aaron Fischer > wrote: > >> Greetings all, > >> > >> I'm working on a project that will require the use of SOAP. From > what I > >> gather there are three main packages I can use: > >> > >> 1) PHP built-in SOAP extension - http://php.net/manual/en/book.soap.php > >> 2) PEAR SOAP package - http://pear.php.net/package/SOAP > >> 3) NuSOAP package - http://sourceforge.net/projects/nusoap/ > >> > >> Before I move forward I'd be interested in hearing from folks as > to their > >> experiences with one or all of these packages. > >> > >> Positives? Negatives? Recommendations? Etc. > >> > >> Thanks, > >> > >> -Aaron > >> _______________________________________________ > >> New York PHP Users Group Community Talk Mailing List > >> http://lists.nyphp.org/mailman/listinfo/talk > >> > >> http://www.nyphp.org/Show-Participation > >> > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > > > > -- > > alexchan.1976 at gmail.com > (347) 688-8491 > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From garyamort at gmail.com Thu Dec 3 13:55:57 2009 From: garyamort at gmail.com (Gary Mort) Date: Thu, 3 Dec 2009 13:55:57 -0500 Subject: [nycphp-talk] PHP and SOAP In-Reply-To: <358E05AE-C3F7-433E-BFC2-E50CD0137B67@smith.edu> References: <358E05AE-C3F7-433E-BFC2-E50CD0137B67@smith.edu> Message-ID: <4bffc350912031055r7b1f166erc8deac8e10ee775e@mail.gmail.com> On Thu, Dec 3, 2009 at 12:46 PM, Aaron Fischer wrote: > > 3) NuSOAP package - http://sourceforge.net/projects/nusoap/ > > NuSOAP has one small gotcha. A lot of SOAP interfaces are designed for Java/Ruby. This means they support things like having multiple soap function calls and choosing which function to use based on the variables being passe For example: $people = new Directory(); $person = $people->FindPerson("firstname", "lastname"); $employeeId = 12345; $person = $people->FindPerson($employeeId); Based on the variables, Java and Ruby know which functions to use. By the same token, when mapped to SOAP objects and exposed as functions, you will have 2 functions defined in the WSDL. When nuSoap parses the WSDL file, only the LAST function with the same name is active, all the others are ignored. -- ---- Hudson Valley Sudbury School What GPL is for application users Our school is for students Help your children grow, change, and learn Let your child direct, control, amend Check out http://www.sudburyschool.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From zippy1981 at gmail.com Thu Dec 3 14:02:23 2009 From: zippy1981 at gmail.com (Justin Dearing) Date: Thu, 3 Dec 2009 14:02:23 -0500 Subject: [nycphp-talk] PHP and SOAP In-Reply-To: References: <358E05AE-C3F7-433E-BFC2-E50CD0137B67@smith.edu> <8f494f760912031013h1a106299xf7e41b9f3bd98059@mail.gmail.com> <5458db3c0912031030x767016a0j85ec24c51b6b3225@mail.gmail.com> Message-ID: <5458db3c0912031102i2fcff328o8fa0375f46118ecd@mail.gmail.com> I never used groupwise soap objects, so I can't comment on specifics there. Some debugging tools: Fiddler2 and charles for getting down and dirty with the messages going over the wire: http://www.fiddler2.com/fiddler2/ http://www.charlesproxy.com/ SoapUI to experiment with calling the service: http://www.soapui.org/ SoapUI is eclipse based, and inherits all the eclipse project/workspace workflow. However, even if you are not a fan of eclipse in general (I am not) this is the best soap tool I know of. If yu are on windows, also look at storm http://www.codeplex.com/storm On Thu, Dec 3, 2009 at 1:38 PM, Aaron Fischer wrote: > Justin, > > OK, I'm still learning the verbiage here, this is my first go-around with > soap. Maybe I should have mentioned I'm a soap newbie in my initial post!! > > Yes, my app using PHP will be the client. The service to be consumed is > Novell GroupWise. I'm not sure what it's written in. > http://developer.novell.com/wiki/index.php/GroupWise_Web_Service_%28SOAP%29 > > > > On Dec 3, 2009, at 1:30 PM, Justin Dearing wrote: > > Aaron, >> >> For new PHP5 development use the built-in or zend soap client I've never >> used the zend framework one. >> >> I take it PHP will be the soap client? What is the soap service written >> in? >> >> Regards, >> >> Justin Dearing >> >> On Thu, Dec 3, 2009 at 1:13 PM, Alex C wrote: >> Hi, >> I have only used the built in soap extension. I never had problems with >> it. >> I have not used any others. >> >> Alex Chan >> >> On Thu, Dec 3, 2009 at 12:53 PM, Jake McGraw wrote: >> > Hate to further extend your comparison, but I've used Zend_Soap_Client >> > from the Zend Framework and it works pretty well, very straight >> > forward: >> > >> > http://framework.zend.com/manual/en/zend.soap.client.html >> > >> > PS, You can get the Zend Framework through PEAR: >> > >> > pear channel-discover pear.zfcampus.org >> > pear install zfcampus/zf >> > >> > - jake >> > >> > On Thu, Dec 3, 2009 at 12:46 PM, Aaron Fischer >> wrote: >> >> Greetings all, >> >> >> >> I'm working on a project that will require the use of SOAP. From what >> I >> >> gather there are three main packages I can use: >> >> >> >> 1) PHP built-in SOAP extension - >> http://php.net/manual/en/book.soap.php >> >> 2) PEAR SOAP package - http://pear.php.net/package/SOAP >> >> 3) NuSOAP package - http://sourceforge.net/projects/nusoap/ >> >> >> >> Before I move forward I'd be interested in hearing from folks as to >> their >> >> experiences with one or all of these packages. >> >> >> >> Positives? Negatives? Recommendations? Etc. >> >> >> >> Thanks, >> >> >> >> -Aaron >> >> _______________________________________________ >> >> New York PHP Users Group Community Talk Mailing List >> >> http://lists.nyphp.org/mailman/listinfo/talk >> >> >> >> http://www.nyphp.org/Show-Participation >> >> >> > _______________________________________________ >> > New York PHP Users Group Community Talk Mailing List >> > http://lists.nyphp.org/mailman/listinfo/talk >> > >> > http://www.nyphp.org/Show-Participation >> > >> >> >> >> -- >> >> alexchan.1976 at gmail.com >> (347) 688-8491 >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From papillion at gmail.com Thu Dec 3 14:11:39 2009 From: papillion at gmail.com (Anthony Papillion) Date: Thu, 3 Dec 2009 13:11:39 -0600 Subject: [nycphp-talk] Returning DB results as XML or JSON? Message-ID: <5458518f0912031111k1c354d47n3232fae933228f0@mail.gmail.com> Hello Everyone, I'm creating a Windows Mobile application that needs to query a remote MySQL database. For logging purposes, I want to perform the database queries on the server instead of having the client issue the command. So my plan is to pass the needed information from the Windows Mobile program into a PHP script, have the PHP script query the database, then return the results in either XML or JSON. While this seems (and indeed is) a rather simple task, it's also fairly tedious. Is there anything out there that can help me auto-format them in one of those formats? Something that takes a standard results set then transforms it into either XML or JSON? Thanks! Anthony Papillion -------------- next part -------------- An HTML attachment was scrubbed... URL: From garyamort at gmail.com Thu Dec 3 14:19:59 2009 From: garyamort at gmail.com (Gary Mort) Date: Thu, 3 Dec 2009 14:19:59 -0500 Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: <5458518f0912031111k1c354d47n3232fae933228f0@mail.gmail.com> References: <5458518f0912031111k1c354d47n3232fae933228f0@mail.gmail.com> Message-ID: <4bffc350912031119m23330811w38f47e46fdc4a3c8@mail.gmail.com> On Thu, Dec 3, 2009 at 2:11 PM, Anthony Papillion wrote: > > While this seems (and indeed is) a rather simple task, it's also fairly > tedious. Is there anything out there that can help me auto-format them in > one of those formats? Something that takes a standard results set then > transforms it into either XML or JSON? > > json_encode http://www.php.net/manual/en/function.json-encode.php -- ---- Hudson Valley Sudbury School What GPL is for application users Our school is for students Help your children grow, change, and learn Let your child direct, control, amend Check out http://www.sudburyschool.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From dorgan at donaldorgan.com Thu Dec 3 14:23:45 2009 From: dorgan at donaldorgan.com (Donald J. Organ IV) Date: Thu, 3 Dec 2009 14:23:45 -0500 (EST) Subject: [nycphp-talk] PHP and SOAP In-Reply-To: <5458db3c0912031102i2fcff328o8fa0375f46118ecd@mail.gmail.com> Message-ID: <12833509.4.1259868225914.JavaMail.root@mail.twoguyshosting.com> I would really recommend taking a look at http://wso2.org/projects/wsf/php it not only gives classes for SOAP client/service creation but it also adds an extension to PHP so that it can do almost anything it needs to when it comes to soap.... Pretty much any other PHP SOAP library out there has limitations when it comes to interacting with SOAP, whether it be the headers, or authentication or attachements.... this doesnt. ----- Original Message ----- From: "Justin Dearing" To: "NYPHP Talk" Sent: Thursday, December 3, 2009 2:02:23 PM Subject: Re: [nycphp-talk] PHP and SOAP I never used groupwise soap objects, so I can't comment on specifics there. Some debugging tools: Fiddler2 and charles for getting down and dirty with the messages going over the wire: http://www.fiddler2.com/fiddler2/ http://www.charlesproxy.com/ SoapUI to experiment with calling the service: http://www.soapui.org/ SoapUI is eclipse based, and inherits all the eclipse project/workspace workflow. However, even if you are not a fan of eclipse in general (I am not) this is the best soap tool I know of. If yu are on windows, also look at storm http://www.codeplex.com/storm On Thu, Dec 3, 2009 at 1:38 PM, Aaron Fischer < afischer at smith.edu > wrote: Justin, OK, I'm still learning the verbiage here, this is my first go-around with soap. Maybe I should have mentioned I'm a soap newbie in my initial post!! Yes, my app using PHP will be the client. The service to be consumed is Novell GroupWise. I'm not sure what it's written in. http://developer.novell.com/wiki/index.php/GroupWise_Web_Service_%28SOAP%29 On Dec 3, 2009, at 1:30 PM, Justin Dearing wrote: Aaron, For new PHP5 development use the built-in or zend soap client I've never used the zend framework one. I take it PHP will be the soap client? What is the soap service written in? Regards, Justin Dearing On Thu, Dec 3, 2009 at 1:13 PM, Alex C < alexchan.1976 at gmail.com > wrote: Hi, I have only used the built in soap extension. I never had problems with it. I have not used any others. Alex Chan On Thu, Dec 3, 2009 at 12:53 PM, Jake McGraw < jmcgraw1 at gmail.com > wrote: > Hate to further extend your comparison, but I've used Zend_Soap_Client > from the Zend Framework and it works pretty well, very straight > forward: > > http://framework.zend.com/manual/en/zend.soap.client.html > > PS, You can get the Zend Framework through PEAR: > > pear channel-discover pear.zfcampus.org > pear install zfcampus/zf > > - jake > > On Thu, Dec 3, 2009 at 12:46 PM, Aaron Fischer < afischer at smith.edu > wrote: >> Greetings all, >> >> I'm working on a project that will require the use of SOAP. From what I >> gather there are three main packages I can use: >> >> 1) PHP built-in SOAP extension - http://php.net/manual/en/book.soap.php >> 2) PEAR SOAP package - http://pear.php.net/package/SOAP >> 3) NuSOAP package - http://sourceforge.net/projects/nusoap/ >> >> Before I move forward I'd be interested in hearing from folks as to their >> experiences with one or all of these packages. >> >> Positives? Negatives? Recommendations? Etc. >> >> Thanks, >> >> -Aaron >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- alexchan.1976 at gmail.com (347) 688-8491 _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmcgraw1 at gmail.com Thu Dec 3 14:29:48 2009 From: jmcgraw1 at gmail.com (Jake McGraw) Date: Thu, 3 Dec 2009 14:29:48 -0500 Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: <4bffc350912031119m23330811w38f47e46fdc4a3c8@mail.gmail.com> References: <5458518f0912031111k1c354d47n3232fae933228f0@mail.gmail.com> <4bffc350912031119m23330811w38f47e46fdc4a3c8@mail.gmail.com> Message-ID: On Thu, Dec 3, 2009 at 2:19 PM, Gary Mort wrote: > > > On Thu, Dec 3, 2009 at 2:11 PM, Anthony Papillion > wrote: >> >> While this seems (and indeed is) a rather simple task, it's also fairly >> tedious. Is there anything out there that can help me auto-format them in >> one of those formats? Something that takes a standard results set then >> transforms it into either XML or JSON? Here is how I would do it (using json_encode or simplexml): http://snipt.net/jakemcgraw/mysql-to-json-or-xml - jake >> > > json_encode > > http://www.php.net/manual/en/function.json-encode.php > > -- > ---- > Hudson Valley Sudbury School > What GPL is for application users > Our school is for students > Help your children grow, change, and learn > Let your child direct, control, amend > Check out http://www.sudburyschool.org > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From papillion at gmail.com Thu Dec 3 14:48:20 2009 From: papillion at gmail.com (Anthony Papillion) Date: Thu, 3 Dec 2009 13:48:20 -0600 Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: <4bffc350912031119m23330811w38f47e46fdc4a3c8@mail.gmail.com> References: <5458518f0912031111k1c354d47n3232fae933228f0@mail.gmail.com> <4bffc350912031119m23330811w38f47e46fdc4a3c8@mail.gmail.com> Message-ID: <5458518f0912031148l4fb2c75fl43dfb07b159bb617@mail.gmail.com> > json_encode > > http://www.php.net/manual/en/function.json-encode.php Thank you! I have no idea why I forgot about json_encode. This was a very 'duh' moment! Thanks again, Anthony Papillion -------------- next part -------------- An HTML attachment was scrubbed... URL: From papillion at gmail.com Thu Dec 3 14:48:39 2009 From: papillion at gmail.com (Anthony Papillion) Date: Thu, 3 Dec 2009 13:48:39 -0600 Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: References: <5458518f0912031111k1c354d47n3232fae933228f0@mail.gmail.com> <4bffc350912031119m23330811w38f47e46fdc4a3c8@mail.gmail.com> Message-ID: <5458518f0912031148tbfb511aqad24d754cf9b979c@mail.gmail.com> Thank you Jake! On Thu, Dec 3, 2009 at 1:29 PM, Jake McGraw wrote: > On Thu, Dec 3, 2009 at 2:19 PM, Gary Mort wrote: > > > > > > On Thu, Dec 3, 2009 at 2:11 PM, Anthony Papillion > > wrote: > >> > >> While this seems (and indeed is) a rather simple task, it's also fairly > >> tedious. Is there anything out there that can help me auto-format them > in > >> one of those formats? Something that takes a standard results set then > >> transforms it into either XML or JSON? > > Here is how I would do it (using json_encode or simplexml): > > http://snipt.net/jakemcgraw/mysql-to-json-or-xml > > - jake > > >> > > > > json_encode > > > > http://www.php.net/manual/en/function.json-encode.php > > > > -- > > ---- > > Hudson Valley Sudbury School > > What GPL is for application users > > Our school is for students > > Help your children grow, change, and learn > > Let your child direct, control, amend > > Check out http://www.sudburyschool.org > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- Anthony Papillion OpenEMR HQ, Inc (918) 533-9699 -------------- next part -------------- An HTML attachment was scrubbed... URL: From afischer at smith.edu Thu Dec 3 14:52:11 2009 From: afischer at smith.edu (Aaron Fischer) Date: Thu, 3 Dec 2009 14:52:11 -0500 Subject: [nycphp-talk] PHP and SOAP In-Reply-To: <5458db3c0912031102i2fcff328o8fa0375f46118ecd@mail.gmail.com> References: <358E05AE-C3F7-433E-BFC2-E50CD0137B67@smith.edu> <8f494f760912031013h1a106299xf7e41b9f3bd98059@mail.gmail.com> <5458db3c0912031030x767016a0j85ec24c51b6b3225@mail.gmail.com> <5458db3c0912031102i2fcff328o8fa0375f46118ecd@mail.gmail.com> Message-ID: <7FB575E3-1FA7-41DC-8506-2A85740AC0EF@smith.edu> Awesome, thanks for the links. I do my coding in BBEdit on a Mac but would be interested in checking out the Eclipse IDE if it makes things easier for this project. On Dec 3, 2009, at 2:02 PM, Justin Dearing wrote: > I never used groupwise soap objects, so I can't comment on specifics > there. > > Some debugging tools: > > Fiddler2 and charles for getting down and dirty with the messages > going over the wire: http://www.fiddler2.com/fiddler2/ http://www.charlesproxy.com/ > > SoapUI to experiment with calling the service: http://www.soapui.org/ > > SoapUI is eclipse based, and inherits all the eclipse project/ > workspace workflow. However, even if you are not a fan of eclipse in > general (I am not) this is the best soap tool I know of. If yu are > on windows, also look at storm http://www.codeplex.com/storm > > On Thu, Dec 3, 2009 at 1:38 PM, Aaron Fischer > wrote: > Justin, > > OK, I'm still learning the verbiage here, this is my first go-around > with soap. Maybe I should have mentioned I'm a soap newbie in my > initial post!! > > Yes, my app using PHP will be the client. The service to be > consumed is Novell GroupWise. I'm not sure what it's written in. > http://developer.novell.com/wiki/index.php/GroupWise_Web_Service_%28SOAP%29 > > > > On Dec 3, 2009, at 1:30 PM, Justin Dearing wrote: > > Aaron, > > For new PHP5 development use the built-in or zend soap client I've > never used the zend framework one. > > I take it PHP will be the soap client? What is the soap service > written in? > > Regards, > > Justin Dearing > > On Thu, Dec 3, 2009 at 1:13 PM, Alex C > wrote: > Hi, > I have only used the built in soap extension. I never had problems > with it. > I have not used any others. > > Alex Chan > > On Thu, Dec 3, 2009 at 12:53 PM, Jake McGraw > wrote: > > Hate to further extend your comparison, but I've used > Zend_Soap_Client > > from the Zend Framework and it works pretty well, very straight > > forward: > > > > http://framework.zend.com/manual/en/zend.soap.client.html > > > > PS, You can get the Zend Framework through PEAR: > > > > pear channel-discover pear.zfcampus.org > > pear install zfcampus/zf > > > > - jake > > > > On Thu, Dec 3, 2009 at 12:46 PM, Aaron Fischer > wrote: > >> Greetings all, > >> > >> I'm working on a project that will require the use of SOAP. From > what I > >> gather there are three main packages I can use: > >> > >> 1) PHP built-in SOAP extension - http://php.net/manual/en/book.soap.php > >> 2) PEAR SOAP package - http://pear.php.net/package/SOAP > >> 3) NuSOAP package - http://sourceforge.net/projects/nusoap/ > >> > >> Before I move forward I'd be interested in hearing from folks as > to their > >> experiences with one or all of these packages. > >> > >> Positives? Negatives? Recommendations? Etc. > >> > >> Thanks, > >> > >> -Aaron > >> _______________________________________________ > >> New York PHP Users Group Community Talk Mailing List > >> http://lists.nyphp.org/mailman/listinfo/talk > >> > >> http://www.nyphp.org/Show-Participation > >> > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > > > > > > -- > > alexchan.1976 at gmail.com > (347) 688-8491 > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From mitch.pirtle at gmail.com Thu Dec 3 16:47:42 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Thu, 3 Dec 2009 16:47:42 -0500 Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: <5458518f0912031148tbfb511aqad24d754cf9b979c@mail.gmail.com> References: <5458518f0912031111k1c354d47n3232fae933228f0@mail.gmail.com> <4bffc350912031119m23330811w38f47e46fdc4a3c8@mail.gmail.com> <5458518f0912031148tbfb511aqad24d754cf9b979c@mail.gmail.com> Message-ID: <330532b60912031347j5e60d98ft7b483b6ab5a7b0d7@mail.gmail.com> Just wanted to add in there that you could use MongoDB instead of MySQL, which gives you additional opportunities to do stuff like real time analytics and live in a SQL-free world. Documents are stored in a binary JSON format, so there's no conversion needed. You could almost look at your PHP scripts as a simple REST interface to MongoDB, which would scale very gracefully and be very quick to prototype. -- Mitch On Thu, Dec 3, 2009 at 2:48 PM, Anthony Papillion wrote: > Thank you Jake! > > On Thu, Dec 3, 2009 at 1:29 PM, Jake McGraw wrote: >> >> On Thu, Dec 3, 2009 at 2:19 PM, Gary Mort wrote: >> > >> > >> > On Thu, Dec 3, 2009 at 2:11 PM, Anthony Papillion >> > wrote: >> >> >> >> While this seems (and indeed is) a rather simple task, it's also fairly >> >> tedious. Is there anything out there that can help me auto-format them >> >> in >> >> one of those formats? Something that takes a standard results set then >> >> transforms it into either XML or JSON? >> >> Here is how I would do it (using json_encode or simplexml): >> >> http://snipt.net/jakemcgraw/mysql-to-json-or-xml >> >> - jake >> >> >> >> > >> > json_encode >> > >> > http://www.php.net/manual/en/function.json-encode.php >> > >> > -- >> > ---- >> > Hudson Valley Sudbury School >> > What GPL is for application users >> > Our school is for students >> > Help your children grow, change, and learn >> > Let your child direct, control, amend >> > Check out http://www.sudburyschool.org >> > >> > _______________________________________________ >> > New York PHP Users Group Community Talk Mailing List >> > http://lists.nyphp.org/mailman/listinfo/talk >> > >> > http://www.nyphp.org/Show-Participation >> > >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation > > > > -- > Anthony Papillion > OpenEMR HQ, Inc > (918) 533-9699 > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From oorza2k5 at gmail.com Thu Dec 3 16:54:25 2009 From: oorza2k5 at gmail.com (Eddie Drapkin) Date: Thu, 3 Dec 2009 16:54:25 -0500 Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: <330532b60912031347j5e60d98ft7b483b6ab5a7b0d7@mail.gmail.com> References: <5458518f0912031111k1c354d47n3232fae933228f0@mail.gmail.com> <4bffc350912031119m23330811w38f47e46fdc4a3c8@mail.gmail.com> <5458518f0912031148tbfb511aqad24d754cf9b979c@mail.gmail.com> <330532b60912031347j5e60d98ft7b483b6ab5a7b0d7@mail.gmail.com> Message-ID: <68de37340912031354r61dd9141t626498398b75b633@mail.gmail.com> Couch is largely the same way. NoSQL or gtfo! --Eddie On Thu, Dec 3, 2009 at 4:47 PM, Mitch Pirtle wrote: > Just wanted to add in there that you could use MongoDB instead of > MySQL, which gives you additional opportunities to do stuff like real > time analytics and live in a SQL-free world. > > Documents are stored in a binary JSON format, so there's no conversion > needed. You could almost look at your PHP scripts as a simple REST > interface to MongoDB, which would scale very gracefully and be very > quick to prototype. > > -- Mitch > > On Thu, Dec 3, 2009 at 2:48 PM, Anthony Papillion wrote: >> Thank you Jake! >> >> On Thu, Dec 3, 2009 at 1:29 PM, Jake McGraw wrote: >>> >>> On Thu, Dec 3, 2009 at 2:19 PM, Gary Mort wrote: >>> > >>> > >>> > On Thu, Dec 3, 2009 at 2:11 PM, Anthony Papillion >>> > wrote: >>> >> >>> >> While this seems (and indeed is) a rather simple task, it's also fairly >>> >> tedious. Is there anything out there that can help me auto-format them >>> >> in >>> >> one of those formats? Something that takes a standard results set then >>> >> transforms it into either XML or JSON? >>> >>> Here is how I would do it (using json_encode or simplexml): >>> >>> http://snipt.net/jakemcgraw/mysql-to-json-or-xml >>> >>> - jake >>> >>> >> >>> > >>> > json_encode >>> > >>> > http://www.php.net/manual/en/function.json-encode.php >>> > >>> > -- >>> > ---- >>> > Hudson Valley Sudbury School >>> > What GPL is for application users >>> > Our school is for students >>> > Help your children grow, change, and learn >>> > Let your child direct, control, amend >>> > Check out http://www.sudburyschool.org >>> > >>> > _______________________________________________ >>> > New York PHP Users Group Community Talk Mailing List >>> > http://lists.nyphp.org/mailman/listinfo/talk >>> > >>> > http://www.nyphp.org/Show-Participation >>> > >>> _______________________________________________ >>> New York PHP Users Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/Show-Participation >> >> >> >> -- >> Anthony Papillion >> OpenEMR HQ, Inc >> (918) 533-9699 >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From ajai at bitblit.net Thu Dec 3 18:20:34 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 3 Dec 2009 18:20:34 -0500 (EST) Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: <330532b60912031347j5e60d98ft7b483b6ab5a7b0d7@mail.gmail.com> Message-ID: On Thu, 3 Dec 2009, Mitch Pirtle wrote: > Just wanted to add in there that you could use MongoDB instead of > MySQL, which gives you additional opportunities to do stuff like real > time analytics and live in a SQL-free world. > > Documents are stored in a binary JSON format, so there's no conversion > needed. You could almost look at your PHP scripts as a simple REST > interface to MongoDB, which would scale very gracefully and be very > quick to prototype. I know MongoDB is cool an' all, but you seem to be pushing it really hard. -- Aj. From jcampbell1 at gmail.com Thu Dec 3 19:12:45 2009 From: jcampbell1 at gmail.com (John Campbell) Date: Thu, 3 Dec 2009 19:12:45 -0500 Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: References: <330532b60912031347j5e60d98ft7b483b6ab5a7b0d7@mail.gmail.com> Message-ID: <8f0676b40912031612m405a0b62rfcd1e0a8b9935c6b@mail.gmail.com> On Thu, Dec 3, 2009 at 6:20 PM, Ajai Khattri wrote: > I know MongoDB is cool an' all, but you seem to be pushing it really hard. +1. Why all the non-relational love? Can you imagine building an e-commercie site with a NoSQL database? The products table would quickly become a god table that is responsible for everything, and counting products by category would require a heroic effort. Keeping non-relational databases consistent requires writing tons of cron jobs to constantly fix the data. Sure, NoSQL may be better than sharding, but it isn't exactly fun. Regards, John Campbell From bmartin at mac.com Thu Dec 3 19:27:11 2009 From: bmartin at mac.com (Bruce Martin) Date: Thu, 03 Dec 2009 19:27:11 -0500 Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: <8f0676b40912031612m405a0b62rfcd1e0a8b9935c6b@mail.gmail.com> References: <330532b60912031347j5e60d98ft7b483b6ab5a7b0d7@mail.gmail.com> <8f0676b40912031612m405a0b62rfcd1e0a8b9935c6b@mail.gmail.com> Message-ID: <010493C3-852C-4B5D-8862-2C0104F347E6@mac.com> Actually there are new innovations in this area where all data is stored in flat text files that are indexed. These systems out perform many databases, if not all, with little overhead. Bruce Martin On Dec 3, 2009, at 7:12 PM, John Campbell wrote: > On Thu, Dec 3, 2009 at 6:20 PM, Ajai Khattri wrote: > >> I know MongoDB is cool an' all, but you seem to be pushing it >> really hard. > > +1. Why all the non-relational love? > > Can you imagine building an e-commercie site with a NoSQL database? > The products table would quickly become a god table that is > responsible for everything, and counting products by category would > require a heroic effort. Keeping non-relational databases consistent > requires writing tons of cron jobs to constantly fix the data. > > Sure, NoSQL may be better than sharding, but it isn't exactly fun. > > Regards, > John Campbell > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From garyamort at gmail.com Thu Dec 3 19:38:44 2009 From: garyamort at gmail.com (Gary Mort) Date: Thu, 3 Dec 2009 19:38:44 -0500 Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: References: <330532b60912031347j5e60d98ft7b483b6ab5a7b0d7@mail.gmail.com> Message-ID: <4bffc350912031638s7ca0c004i511c9918810f378c@mail.gmail.com> On Thu, Dec 3, 2009 at 6:20 PM, Ajai Khattri wrote: > > > I know MongoDB is cool an' all, but you seem to be pushing it really hard. > > > When you discover a high tech swiss army knife, with laser pointer, usb drive, bluetooth headset and led toothpick it's hard to go back to the old toolbox. :-) -- ---- Hudson Valley Sudbury School What GPL is for application users Our school is for students Help your children grow, change, and learn Let your child direct, control, amend Check out http://www.sudburyschool.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Thu Dec 3 20:59:54 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Thu, 3 Dec 2009 20:59:54 -0500 Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: References: <330532b60912031347j5e60d98ft7b483b6ab5a7b0d7@mail.gmail.com> Message-ID: <330532b60912031759i5aeedaf0s13d712c5c348b776@mail.gmail.com> On Thu, Dec 3, 2009 at 6:20 PM, Ajai Khattri wrote: > > I know MongoDB is cool an' all, but you seem to be pushing it really hard. Yep - but it's not an everything solution. My apologies if my enthusiasm makes it sound that way. Coming from the CMS space, document databases are somewhat of a silver bullet though - they solve so many problems that have plagued the space all along. I was on a panel with Drupal, Alfresco and Plone yesterday in Boston, and mentioned that Plone had ZODB all these years while the rest of us were stuck with flat, relational databases that were an awful fit for our object languages. With noSQL databases like MongoDB, CouchDB, hBase and many more, those problems are replaced with new ones sure; but at least we aren't banging our heads against the same old ones :^P Actually, I remember when all the CMS projects seemed to be pushing jQuery very very hard, and it creeped me out. In hindsight, it should be clear to everyone why jQuery was "the topic" back then, as it was so desperately needed. I feel the same way today about being freed from relational databases. -- Mitch From ajai at bitblit.net Thu Dec 3 22:05:17 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 3 Dec 2009 22:05:17 -0500 (EST) Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: <4bffc350912031638s7ca0c004i511c9918810f378c@mail.gmail.com> Message-ID: On Thu, 3 Dec 2009, Gary Mort wrote: > When you discover a high tech swiss army knife, with laser pointer, usb > drive, bluetooth headset and led toothpick it's hard to go back to the old > toolbox. :-) Sure, my Android phone has lots of functions but a dedicated digital camera will always give you better photos than the phone's camera. -- Aj. From ajai at bitblit.net Thu Dec 3 22:11:56 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Thu, 3 Dec 2009 22:11:56 -0500 (EST) Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: <330532b60912031759i5aeedaf0s13d712c5c348b776@mail.gmail.com> Message-ID: On Thu, 3 Dec 2009, Mitch Pirtle wrote: > Yep - but it's not an everything solution. My apologies if my > enthusiasm makes it sound that way. Yeah, it did, kinda :-) > With noSQL databases like MongoDB, CouchDB, hBase and many more, those > problems are replaced with new ones sure; but at least we aren't > banging our heads against the same old ones :^P No, I get it, and in fact MongoDB is very interesting to me - I attended the NoSQL meet in NYC a few weeks ago. Just think we need to step back once in awhile and evangelize a little less. > Actually, I remember when all the CMS projects seemed to be pushing > jQuery very very hard, and it creeped me out. In hindsight, it should > be clear to everyone why jQuery was "the topic" back then, as it was > so desperately needed. Yes absolutely agree. > I feel the same way today about being freed from relational databases. I guess Im more inclined to remind myself that for some situations it makes perfect sense but not for every single case :-) So how's the MongoDB support in Joomla going? -- Aj. From mitch.pirtle at gmail.com Thu Dec 3 23:32:35 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Thu, 3 Dec 2009 23:32:35 -0500 Subject: [nycphp-talk] Returning DB results as XML or JSON? In-Reply-To: References: <330532b60912031759i5aeedaf0s13d712c5c348b776@mail.gmail.com> Message-ID: <330532b60912032032j408d39dak663098f7ae4f649d@mail.gmail.com> On Thu, Dec 3, 2009 at 10:11 PM, Ajai Khattri wrote: > So how's the MongoDB support in Joomla going? It's gone as far as it is going to go (a helper library) until a query builder and proper ORM makes it into the core. There's just too much SQL littering the codebase... The last site I built with Joomla and MongoDB still had to use "just enough MySQL to shut Joomla up" so we could use MongoDB for everything else. I know there are three separate projects with Drupal using MongoDB as well, which is cool - pretty sure they are D7 though. Would love to see CCK on top of a noSQL solution, as that would take a ton of complexity out of the picture. Just started playing with FlexiContent for Joomla, and am looking at that for a possible integration candidate. Anybody coming to the Joomla Developer Conference this weekend? I got offered a lightning talk, and am wondering what folks would like to see. -- Mitch From garyamort at gmail.com Fri Dec 4 07:56:07 2009 From: garyamort at gmail.com (Gary Mort) Date: Fri, 4 Dec 2009 07:56:07 -0500 Subject: [nycphp-talk] MongoDB and others, convince me. :-) Message-ID: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> Ok, so since someone has been singing the praises of MongoDB, and others have been mentioned, I figured I'd provide a contrarian view and see if you can convince me otherwise. I'm a big fan of relational databases. Have been using them since I graduated from college in 1993, starting with DB2, followed with MySQL[and boy was THAT interesting. DB2 was always like 2 years behind all the neat features in other relational databases. Then I went to MySQL and not only did it lack those features, it lacked a lot of what solid, dependable DB2 had! And it was on purpose! They deliberately choose to keep MySQL lean and mean and avoid things like foreign keys, stored procedures, and such.] My experience is that almost any application can be broken up and thought of as tables. Especially in the business world, people naturally think in terms of spreadsheets since the spreadsheet is king there. And a spreadsheet is nothing but a table. And by putting everything in well documented[ha ha!] tables with consistent column and table naming schemes, even power users can use query tools such as Navicat to build their own queries and reports easily. So by keeping everything in a well understood industry standard format, we lower the skill level needed to access and create reports on the underlying data - always a good thing since I personally hate it when someone asks me to create a report on sales from last year "just like this other one except we need to include wholesale prices", There is no challenge there, no fun. Just pure grunt work. So all this talk of moving away from SQL makes me nervous. Will cluefull users still be able to envision the data so they can pull reports. Heck, are there even the user friendly point and click tools for them to do so?[Personally I never use the query builder in Navicat and find it tedious, but I know plenty of power users who CAN do that]. To me, it looks like migrating to this new method of storing data will end up "locking" the business data up in a format that raises the cost to access the data. It reminds me of the way Magentoo is designed, with those oh so cool tables for storing field values without creating new table fields. Sure, it may make it easier to expand/change the system, but having to do multiple joins to the same dang table to get different pieces of data makes the data harder to get to for non programmers! My feeling on business data is that business data belongs TO the business creating it. Not to some programmer who is the only one who can access it[or worse, to some company that stores it in a proprietary format and won't allow the data to be exported!] - so at the moment, I'm not seeing that sort of access for data in MongoDB. Command line pseodo queries is not enough, I want to know the data is easy to get out for a power user - not me. -- ---- Hudson Valley Sudbury School What GPL is for application users Our school is for students Help your children grow, change, and learn Let your child direct, control, amend Check out http://www.sudburyschool.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Fri Dec 4 08:42:50 2009 From: chsnyder at gmail.com (Chris Snyder) Date: Fri, 4 Dec 2009 08:42:50 -0500 Subject: [nycphp-talk] MongoDB and others, convince me. :-) In-Reply-To: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> References: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> Message-ID: On Fri, Dec 4, 2009 at 7:56 AM, Gary Mort wrote: > Ok, so since someone has been singing the praises of MongoDB, and others > have been mentioned, I figured I'd provide a contrarian view and see if you > can convince me otherwise. I kind of think they are different tools for different jobs. NoSQL has risen out of the need for massively scalable databases. For the vast majority of apps, using one is overkill, and probably leads to the kind of messy data access and reporting scenarios you envision. In other words, that "How do I query it?" "You write a map reduce function in Erlang." cartoon is right on the money. From edwardpotter at gmail.com Fri Dec 4 09:42:20 2009 From: edwardpotter at gmail.com (Edward Potter) Date: Fri, 4 Dec 2009 09:42:20 -0500 Subject: [nycphp-talk] MongoDB and others, convince me. :-) In-Reply-To: References: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> Message-ID: You may enjoy playing with Core Data using ObjC on an iPhone. Kind of the next evolution I think. I stick to SQLite these days. It guides the cruise missile and probably your watch. I guess after 20 years playing with DBs (and still learning something new everyday), going back to my roots now. ;-) http://cocoadevcentral.com/articles/000085.php http://www.sqlite.org/ :-) On Fri, Dec 4, 2009 at 8:42 AM, Chris Snyder wrote: > On Fri, Dec 4, 2009 at 7:56 AM, Gary Mort wrote: > > Ok, so since someone has been singing the praises of MongoDB, and others > > have been mentioned, I figured I'd provide a contrarian view and see if > you > > can convince me otherwise. > > I kind of think they are different tools for different jobs. NoSQL has > risen out of the need for massively scalable databases. For the vast > majority of apps, using one is overkill, and probably leads to the > kind of messy data access and reporting scenarios you envision. > > In other words, that "How do I query it?" "You write a map reduce > function in Erlang." cartoon is right on the money. > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- IM/iChat: ejpusa Links: http://del.icio.us/ejpusa Follow me: http://www.twitter.com/ejpusa Karma: http://www.coderswithconscience.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Fri Dec 4 12:11:27 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Fri, 4 Dec 2009 09:11:27 -0800 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP Message-ID: People, I have installed lamp & wamp several times in the pst and for the last 24 hours I have been trying to install wamp and php using FF will ask me " What should I do with this file" Annoying because I follow the steps that I remembered and it did not worked. Then I look at the installations instruction and followed them and still it would not work., thenI tried installing wamp using the wampserver.exe and that failed. I am frustrated, I do not know what in the heck I am doing wrong. I am not able to set up apache running PHP. PHP runs from command line but not via the web. I have 4 computers at home and 3 at work that I have set up before and they worked. Yesterday I decided to install the latest apache and PHP and It is not working. I do not what to do to make it work. HELP!!! I used PHP 5.2.8 and APACHE 2.2.11 on windows XP Is there something that I am not aware off when doing this type of installation? Thanks, N?stor :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.horning at planetnoc.com Fri Dec 4 12:50:00 2009 From: dan.horning at planetnoc.com (Dan Horning) Date: Fri, 4 Dec 2009 12:50:00 -0500 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: References: Message-ID: <000901ca750a$350f7a50$9f2e6ef0$@horning@planetnoc.com> Try Xampp ? easy to install and run ? you?re current system doesn?t have php enabled in apache or it would appear as a ?text/html? to the browser which would make it render. Depending on what you?re trying to test ? I?d also recommend VS.php -- Dan Horning American Digital Services - Where you are only limited by imagination. dan.horning at planetnoc.com :: http://www.americandigitalservices.com 1-518-444-0213 x502 . toll free 1-800-863-3854 . fax 1-888-474-6133 15 Third Street, PO Box 746, Troy, NY 12180 (by appointment only) From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of N?stor Sent: Friday, December 04, 2009 12:11 PM To: NYPHP Talk Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP People, I have installed lamp & wamp several times in the pst and for the last 24 hours I have been trying to install wamp and php using FF will ask me " What should I do with this file" Annoying because I follow the steps that I remembered and it did not worked. Then I look at the installations instruction and followed them and still it would not work., thenI tried installing wamp using the wampserver.exe and that failed. I am frustrated, I do not know what in the heck I am doing wrong. I am not able to set up apache running PHP. PHP runs from command line but not via the web. I have 4 computers at home and 3 at work that I have set up before and they worked. Yesterday I decided to install the latest apache and PHP and It is not working. I do not what to do to make it work. HELP!!! I used PHP 5.2.8 and APACHE 2.2.11 on windows XP Is there something that I am not aware off when doing this type of installation? Thanks, N?stor :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Fri Dec 4 12:57:53 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Fri, 4 Dec 2009 09:57:53 -0800 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: <3515423305334138373@unknownmsgid> References: <3515423305334138373@unknownmsgid> Message-ID: Well, the documentation says to do this: LoadModule php5_module "C:/php528/php5apache2_2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/php528" And that is how my previous installation were done but I can not see it working on FF but it is working on IE I am at a loss for words on this problem. :-( On Fri, Dec 4, 2009 at 9:50 AM, Dan Horning wrote: > Try Xampp ? easy to install and run ? you?re current system doesn?t have > php enabled in apache or it would appear as a ?text/html? to the browser > which would make it render. > > > > Depending on what you?re trying to test ? I?d also recommend VS.php > > > > -- > > *Dan Horning* > > > > *American Digital Services* - *Where you are only limited by imagination*. > > dan.horning at planetnoc.com :: http://www.americandigitalservices.com > > *1-518-444-0213 x502* . *toll free* 1-800-863-3854 . *fax* 1-888-474-6133 > > 15 Third Street, PO Box 746, Troy, NY 12180 (*by appointment only*) > > > > *From:* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > *On Behalf Of *N?stor > *Sent:* Friday, December 04, 2009 12:11 PM > *To:* NYPHP Talk > *Subject:* [nycphp-talk] Firefox 3.5.5 not rendering PHP > > > > People, > > > > I have installed lamp & wamp several times in the pst and for the last 24 > hours I have > > been trying to install wamp and php using FF will ask me " What should I > do with this file" > > > > Annoying because I follow the steps that I remembered and it did not > worked. Then I look > > at the installations instruction and followed them and still it would not > work., thenI tried > > installing wamp using the wampserver.exe and that failed. > > > > I am frustrated, I do not know what in the heck I am doing wrong. I am not > able to set up > > apache running PHP. PHP runs from command line but not via the web. > > > > I have 4 computers at home and 3 at work that I have set up before and they > worked. > > > > Yesterday I decided to install the latest apache and PHP and It is not > working. I do not what > > to do to make it work. HELP!!! > > > > I used PHP 5.2.8 and APACHE 2.2.11 on windows XP > > > > Is there something that I am not aware off when doing this type of > installation? > > > > Thanks, > > > > N?stor :-) > > > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tomsartain at gmail.com Fri Dec 4 13:15:00 2009 From: tomsartain at gmail.com (Tom Sartain) Date: Fri, 4 Dec 2009 13:15:00 -0500 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: References: <3515423305334138373@unknownmsgid> Message-ID: <20190d950912041015s2d35cd1dp80979d0c29261134@mail.gmail.com> First off, try testing in another browser because I doubt that this is a Firefox specific issue. Second, try putting a static HTML page on the server and requesting that. It should show up fine. Third, and really, this should be one of the first things you always do, check the error logs for Apache and PHP. Chances are that there is something in there that would tell you what it causing the problem. Initial guesses would be that either Apache is throwing an error while trying to load PHP or that the content type and/or handler for .php files is not being set properly. One other thing to check on is whether the PHP code is actually executing. Try putting some error_logs or writing to a file or anything that you can verify outside of a browser. If these things happen, then it is a problem of Apache not knowing how to serve the file, not whether it should be executed or not. Try these things first, then let us know of anything you find. I can almost guarantee that it is an Apache configuration issue. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Fri Dec 4 13:42:02 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Fri, 4 Dec 2009 10:42:02 -0800 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: <20190d950912041015s2d35cd1dp80979d0c29261134@mail.gmail.com> References: <3515423305334138373@unknownmsgid> <20190d950912041015s2d35cd1dp80979d0c29261134@mail.gmail.com> Message-ID: Apache is working. The index.html is displaying the error.log : [Fri Dec 04 10:37:48 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.8 configured -- resuming normal operations [Fri Dec 04 10:37:48 2009] [notice] Server built: Dec 10 2008 00:10:06 [Fri Dec 04 10:37:48 2009] [notice] Parent: Created child process 4048 [Fri Dec 04 10:37:48 2009] [notice] Child 4048: Child process is running [Fri Dec 04 10:37:49 2009] [notice] Child 5444: Released the start mutex [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Acquired the start mutex. [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Starting 64 worker threads. [Fri Dec 04 10:37:50 2009] [notice] Child 4048: Starting thread to listen on port 80. [Fri Dec 04 10:37:50 2009] [notice] Child 5444: All worker threads have exited. [Fri Dec 04 10:37:50 2009] [notice] Child 5444: Child process is exiting I can see the phpinfo output on my IE 8 but no on FF 3.5.5 :-( On Fri, Dec 4, 2009 at 10:15 AM, Tom Sartain wrote: > First off, try testing in another browser because I doubt that this is a > Firefox specific issue. > > Second, try putting a static HTML page on the server and requesting that. > It should show up fine. > > Third, and really, this should be one of the first things you always do, > check the error logs for Apache and PHP. Chances are that there is something > in there that would tell you what it causing the problem. Initial guesses > would be that either Apache is throwing an error while trying to load PHP or > that the content type and/or handler for .php files is not being set > properly. > > One other thing to check on is whether the PHP code is actually executing. > Try putting some error_logs or writing to a file or anything that you can > verify outside of a browser. If these things happen, then it is a problem of > Apache not knowing how to serve the file, not whether it should be executed > or not. > > Try these things first, then let us know of anything you find. I can almost > guarantee that it is an Apache configuration issue. > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Fri Dec 4 13:44:39 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Fri, 4 Dec 2009 13:44:39 -0500 Subject: [nycphp-talk] MongoDB and others, convince me. :-) In-Reply-To: References: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> Message-ID: <330532b60912041044i6d4a0553q4d48732ede58b578@mail.gmail.com> DISCLAIMER: I'm a certified Oracle8 DBA, so don't think I'm some young web developer who doesn't know data modeling or relational theory. Here's my passionate plea ;-) For CMS/WCM purposes, there's nothing better. I know of a site that is in the millions of views daily that has nothing but MongoDB on the backend, and not only is performance great but so is ease of code maintenance. The performance benefits have been so significant that they implemented real-time analytics as well - and they don't cache anything coming in from MongoDB, as there's no need. For commerce systems, you still have separate "tables" for users, products and orders. What you don't have is a third normal form schema with 45,000 tables and a massive performance and maintenance headache. I've launched a commerce site myself very recently that sustains 900 requests per second. Absolutely sure this would not have worked as well with a relational engine under the hood. I'd go as far as to say that the next-generation document databases are doing a lot to challenge the norms. Remember when foreign keys were considered essential for data integrity? Remember when a database was only considered ready when it was fully ACID and ANSI SQL compliant? Think again. Part of me hates this transition, because I've spent the past 20 years really mastering the horse and buggy; but these jet planes sure are fast, and they do change the game. Just don't try to ride one like a horse! -- Mitch From gatzby3jr at gmail.com Fri Dec 4 13:47:37 2009 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Fri, 4 Dec 2009 13:47:37 -0500 Subject: [nycphp-talk] MongoDB and others, convince me. :-) In-Reply-To: <330532b60912041044i6d4a0553q4d48732ede58b578@mail.gmail.com> References: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> <330532b60912041044i6d4a0553q4d48732ede58b578@mail.gmail.com> Message-ID: <29da5d150912041047y52d9ed31u8f13290d1064908b@mail.gmail.com> This might be a bit of a side topic, but does anyone have any good resources to read about this noSQL stuff? I've looked VERY briefly at MongoDB, but didn't think it was anything that amazingly fantastical that everyone seems to be talking about. But if it is the next generation, I'd like to be on board. Thanks, Brian On Fri, Dec 4, 2009 at 1:44 PM, Mitch Pirtle wrote: > DISCLAIMER: I'm a certified Oracle8 DBA, so don't think I'm some young > web developer who doesn't know data modeling or relational theory. > > Here's my passionate plea ;-) > > For CMS/WCM purposes, there's nothing better. I know of a site that is > in the millions of views daily that has nothing but MongoDB on the > backend, and not only is performance great but so is ease of code > maintenance. The performance benefits have been so significant that > they implemented real-time analytics as well - and they don't cache > anything coming in from MongoDB, as there's no need. > > For commerce systems, you still have separate "tables" for users, > products and orders. What you don't have is a third normal form schema > with 45,000 tables and a massive performance and maintenance headache. > I've launched a commerce site myself very recently that sustains 900 > requests per second. Absolutely sure this would not have worked as > well with a relational engine under the hood. > > I'd go as far as to say that the next-generation document databases > are doing a lot to challenge the norms. Remember when foreign keys > were considered essential for data integrity? Remember when a database > was only considered ready when it was fully ACID and ANSI SQL > compliant? > > Think again. Part of me hates this transition, because I've spent the > past 20 years really mastering the horse and buggy; but these jet > planes sure are fast, and they do change the game. Just don't try to > ride one like a horse! > > -- Mitch > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From tomsartain at gmail.com Fri Dec 4 13:55:36 2009 From: tomsartain at gmail.com (Tom Sartain) Date: Fri, 4 Dec 2009 13:55:36 -0500 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: References: <3515423305334138373@unknownmsgid> <20190d950912041015s2d35cd1dp80979d0c29261134@mail.gmail.com> Message-ID: <20190d950912041055i26a5457bw1560a84e7468bd5d@mail.gmail.com> Do you have any tools to look at the headers coming back from the server? My guess is that the content-type or disposition is being set weird. The PHP script is *only* doing phpinfo() right? On Fri, Dec 4, 2009 at 1:42 PM, N?stor wrote: > Apache is working. > The index.html is displaying > the error.log : > [Fri Dec 04 10:37:48 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.8 > configured -- resuming normal operations > [Fri Dec 04 10:37:48 2009] [notice] Server built: Dec 10 2008 00:10:06 > [Fri Dec 04 10:37:48 2009] [notice] Parent: Created child process 4048 > [Fri Dec 04 10:37:48 2009] [notice] Child 4048: Child process is running > [Fri Dec 04 10:37:49 2009] [notice] Child 5444: Released the start mutex > [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Acquired the start mutex. > [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Starting 64 worker threads. > [Fri Dec 04 10:37:50 2009] [notice] Child 4048: Starting thread to listen > on port 80. > [Fri Dec 04 10:37:50 2009] [notice] Child 5444: All worker threads have > exited. > [Fri Dec 04 10:37:50 2009] [notice] Child 5444: Child process is exiting > > I can see the phpinfo output on my IE 8 but no on FF 3.5.5 > > :-( > On Fri, Dec 4, 2009 at 10:15 AM, Tom Sartain wrote: > >> First off, try testing in another browser because I doubt that this is a >> Firefox specific issue. >> >> Second, try putting a static HTML page on the server and requesting that. >> It should show up fine. >> >> Third, and really, this should be one of the first things you always do, >> check the error logs for Apache and PHP. Chances are that there is something >> in there that would tell you what it causing the problem. Initial guesses >> would be that either Apache is throwing an error while trying to load PHP or >> that the content type and/or handler for .php files is not being set >> properly. >> >> One other thing to check on is whether the PHP code is actually executing. >> Try putting some error_logs or writing to a file or anything that you can >> verify outside of a browser. If these things happen, then it is a problem of >> Apache not knowing how to serve the file, not whether it should be executed >> or not. >> >> Try these things first, then let us know of anything you find. I can >> almost guarantee that it is an Apache configuration issue. >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Fri Dec 4 14:06:26 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Fri, 4 Dec 2009 11:06:26 -0800 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: <20190d950912041055i26a5457bw1560a84e7468bd5d@mail.gmail.com> References: <3515423305334138373@unknownmsgid> <20190d950912041015s2d35cd1dp80979d0c29261134@mail.gmail.com> <20190d950912041055i26a5457bw1560a84e7468bd5d@mail.gmail.com> Message-ID: Yes, the PHP script is only doing phpinfo(); I have firebug install on firefox but that does not allow me to see anything during the PHP operation because it just aske me to save it. What tools should I use to see the headers? :-) On Fri, Dec 4, 2009 at 10:55 AM, Tom Sartain wrote: > Do you have any tools to look at the headers coming back from the server? > > My guess is that the content-type or disposition is being set weird. The > PHP script is *only* doing phpinfo() right? > > > On Fri, Dec 4, 2009 at 1:42 PM, N?stor wrote: > >> Apache is working. >> The index.html is displaying >> the error.log : >> [Fri Dec 04 10:37:48 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.8 >> configured -- resuming normal operations >> [Fri Dec 04 10:37:48 2009] [notice] Server built: Dec 10 2008 00:10:06 >> [Fri Dec 04 10:37:48 2009] [notice] Parent: Created child process 4048 >> [Fri Dec 04 10:37:48 2009] [notice] Child 4048: Child process is running >> [Fri Dec 04 10:37:49 2009] [notice] Child 5444: Released the start mutex >> [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Acquired the start mutex. >> [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Starting 64 worker >> threads. >> [Fri Dec 04 10:37:50 2009] [notice] Child 4048: Starting thread to listen >> on port 80. >> [Fri Dec 04 10:37:50 2009] [notice] Child 5444: All worker threads have >> exited. >> [Fri Dec 04 10:37:50 2009] [notice] Child 5444: Child process is exiting >> >> I can see the phpinfo output on my IE 8 but no on FF 3.5.5 >> >> :-( >> On Fri, Dec 4, 2009 at 10:15 AM, Tom Sartain wrote: >> >>> First off, try testing in another browser because I doubt that this is >>> a Firefox specific issue. >>> >>> Second, try putting a static HTML page on the server and requesting that. >>> It should show up fine. >>> >>> Third, and really, this should be one of the first things you always do, >>> check the error logs for Apache and PHP. Chances are that there is something >>> in there that would tell you what it causing the problem. Initial guesses >>> would be that either Apache is throwing an error while trying to load PHP or >>> that the content type and/or handler for .php files is not being set >>> properly. >>> >>> One other thing to check on is whether the PHP code is actually >>> executing. Try putting some error_logs or writing to a file or anything that >>> you can verify outside of a browser. If these things happen, then it is a >>> problem of Apache not knowing how to serve the file, not whether it should >>> be executed or not. >>> >>> Try these things first, then let us know of anything you find. I can >>> almost guarantee that it is an Apache configuration issue. >>> >>> _______________________________________________ >>> New York PHP Users Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/Show-Participation >>> >> >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.horning at planetnoc.com Fri Dec 4 14:16:42 2009 From: dan.horning at planetnoc.com (Dan Horning) Date: Fri, 4 Dec 2009 14:16:42 -0500 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: References: <3515423305334138373@unknownmsgid> <20190d950912041015s2d35cd1dp80979d0c29261134@mail.gmail.com> <20190d950912041055i26a5457bw1560a84e7468bd5d@mail.gmail.com> Message-ID: <003301ca7516$51cde9e0$f569bda0$@horning@planetnoc.com> Do you have the following in your php loader? AddHandler php5-script .php AddType text/html .php -- Dan Horning American Digital Services - Where you are only limited by imagination. dan.horning at planetnoc.com :: http://www.americandigitalservices.com 1-518-444-0213 x502 . toll free 1-800-863-3854 . fax 1-888-474-6133 15 Third Street, PO Box 746, Troy, NY 12180 (by appointment only) From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of N?stor Sent: Friday, December 04, 2009 2:06 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Firefox 3.5.5 not rendering PHP Yes, the PHP script is only doing phpinfo(); I have firebug install on firefox but that does not allow me to see anything during the PHP operation because it just aske me to save it. What tools should I use to see the headers? :-) On Fri, Dec 4, 2009 at 10:55 AM, Tom Sartain wrote: Do you have any tools to look at the headers coming back from the server? My guess is that the content-type or disposition is being set weird. The PHP script is *only* doing phpinfo() right? On Fri, Dec 4, 2009 at 1:42 PM, N?stor wrote: Apache is working. The index.html is displaying the error.log : [Fri Dec 04 10:37:48 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.8 configured -- resuming normal operations [Fri Dec 04 10:37:48 2009] [notice] Server built: Dec 10 2008 00:10:06 [Fri Dec 04 10:37:48 2009] [notice] Parent: Created child process 4048 [Fri Dec 04 10:37:48 2009] [notice] Child 4048: Child process is running [Fri Dec 04 10:37:49 2009] [notice] Child 5444: Released the start mutex [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Acquired the start mutex. [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Starting 64 worker threads. [Fri Dec 04 10:37:50 2009] [notice] Child 4048: Starting thread to listen on port 80. [Fri Dec 04 10:37:50 2009] [notice] Child 5444: All worker threads have exited. [Fri Dec 04 10:37:50 2009] [notice] Child 5444: Child process is exiting I can see the phpinfo output on my IE 8 but no on FF 3.5.5 :-( On Fri, Dec 4, 2009 at 10:15 AM, Tom Sartain wrote: First off, try testing in another browser because I doubt that this is a Firefox specific issue. Second, try putting a static HTML page on the server and requesting that. It should show up fine. Third, and really, this should be one of the first things you always do, check the error logs for Apache and PHP. Chances are that there is something in there that would tell you what it causing the problem. Initial guesses would be that either Apache is throwing an error while trying to load PHP or that the content type and/or handler for .php files is not being set properly. One other thing to check on is whether the PHP code is actually executing. Try putting some error_logs or writing to a file or anything that you can verify outside of a browser. If these things happen, then it is a problem of Apache not knowing how to serve the file, not whether it should be executed or not. Try these things first, then let us know of anything you find. I can almost guarantee that it is an Apache configuration issue. _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: From tomsartain at gmail.com Fri Dec 4 14:11:05 2009 From: tomsartain at gmail.com (Tom Sartain) Date: Fri, 4 Dec 2009 14:11:05 -0500 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: References: <3515423305334138373@unknownmsgid> <20190d950912041015s2d35cd1dp80979d0c29261134@mail.gmail.com> <20190d950912041055i26a5457bw1560a84e7468bd5d@mail.gmail.com> Message-ID: <20190d950912041111r47d7fe47m5424b3a3f2ae3c78@mail.gmail.com> Take a look at LiveHTTPHeaders add-on for Firefox ( https://addons.mozilla.org/en-US/firefox/addon/3829 ) which should show you what you need to see. Of course, you could always hit up telnet or curl (or any other number of command line tools) to connect to the server and check out the responses. On Fri, Dec 4, 2009 at 2:06 PM, N?stor wrote: > Yes, the PHP script is only doing phpinfo(); > > I have firebug install on firefox but that does not allow me to see > anything during the PHP operation because it > just aske me to save it. > > What tools should I use to see the headers? > > :-) > > On Fri, Dec 4, 2009 at 10:55 AM, Tom Sartain wrote: > >> Do you have any tools to look at the headers coming back from the server? >> >> >> My guess is that the content-type or disposition is being set weird. The >> PHP script is *only* doing phpinfo() right? >> >> >> On Fri, Dec 4, 2009 at 1:42 PM, N?stor wrote: >> >>> Apache is working. >>> The index.html is displaying >>> the error.log : >>> [Fri Dec 04 10:37:48 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.8 >>> configured -- resuming normal operations >>> [Fri Dec 04 10:37:48 2009] [notice] Server built: Dec 10 2008 00:10:06 >>> [Fri Dec 04 10:37:48 2009] [notice] Parent: Created child process 4048 >>> [Fri Dec 04 10:37:48 2009] [notice] Child 4048: Child process is running >>> [Fri Dec 04 10:37:49 2009] [notice] Child 5444: Released the start mutex >>> [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Acquired the start mutex. >>> [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Starting 64 worker >>> threads. >>> [Fri Dec 04 10:37:50 2009] [notice] Child 4048: Starting thread to listen >>> on port 80. >>> [Fri Dec 04 10:37:50 2009] [notice] Child 5444: All worker threads have >>> exited. >>> [Fri Dec 04 10:37:50 2009] [notice] Child 5444: Child process is exiting >>> >>> I can see the phpinfo output on my IE 8 but no on FF 3.5.5 >>> >>> :-( >>> On Fri, Dec 4, 2009 at 10:15 AM, Tom Sartain wrote: >>> >>>> First off, try testing in another browser because I doubt that this is >>>> a Firefox specific issue. >>>> >>>> Second, try putting a static HTML page on the server and requesting >>>> that. It should show up fine. >>>> >>>> Third, and really, this should be one of the first things you always do, >>>> check the error logs for Apache and PHP. Chances are that there is something >>>> in there that would tell you what it causing the problem. Initial guesses >>>> would be that either Apache is throwing an error while trying to load PHP or >>>> that the content type and/or handler for .php files is not being set >>>> properly. >>>> >>>> One other thing to check on is whether the PHP code is actually >>>> executing. Try putting some error_logs or writing to a file or anything that >>>> you can verify outside of a browser. If these things happen, then it is a >>>> problem of Apache not knowing how to serve the file, not whether it should >>>> be executed or not. >>>> >>>> Try these things first, then let us know of anything you find. I can >>>> almost guarantee that it is an Apache configuration issue. >>>> >>>> _______________________________________________ >>>> New York PHP Users Group Community Talk Mailing List >>>> http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> http://www.nyphp.org/Show-Participation >>>> >>> >>> >>> _______________________________________________ >>> New York PHP Users Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/Show-Participation >>> >> >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Fri Dec 4 14:28:47 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Fri, 4 Dec 2009 11:28:47 -0800 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: <-7019757006817115591@unknownmsgid> References: <3515423305334138373@unknownmsgid> <20190d950912041015s2d35cd1dp80979d0c29261134@mail.gmail.com> <20190d950912041055i26a5457bw1560a84e7468bd5d@mail.gmail.com> <-7019757006817115591@unknownmsgid> Message-ID: I thought that this entries are for CGI. I am using php as an apache module. :-) On Fri, Dec 4, 2009 at 11:16 AM, Dan Horning wrote: > Do you have the following in your php loader? > > > > AddHandler php5-script .php > > AddType text/html .php > > > > -- > > *Dan Horning* > > > > *American Digital Services* - *Where you are only limited by imagination*. > > dan.horning at planetnoc.com :: http://www.americandigitalservices.com > > *1-518-444-0213 x502* . *toll free* 1-800-863-3854 . *fax* 1-888-474-6133 > > 15 Third Street, PO Box 746, Troy, NY 12180 (*by appointment only*) > > > > *From:* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > *On Behalf Of *N?stor > *Sent:* Friday, December 04, 2009 2:06 PM > *To:* NYPHP Talk > *Subject:* Re: [nycphp-talk] Firefox 3.5.5 not rendering PHP > > > > Yes, the PHP script is only doing phpinfo(); > > > > I have firebug install on firefox but that does not allow me to see > anything during the PHP operation because it > > just aske me to save it. > > > > What tools should I use to see the headers? > > > > :-) > > On Fri, Dec 4, 2009 at 10:55 AM, Tom Sartain wrote: > > Do you have any tools to look at the headers coming back from the server? > > > > My guess is that the content-type or disposition is being set weird. The > PHP script is *only* doing phpinfo() right? > > > > On Fri, Dec 4, 2009 at 1:42 PM, N?stor wrote: > > Apache is working. > > The index.html is displaying > > the error.log : > > [Fri Dec 04 10:37:48 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.8 > configured -- resuming normal operations > > [Fri Dec 04 10:37:48 2009] [notice] Server built: Dec 10 2008 00:10:06 > > [Fri Dec 04 10:37:48 2009] [notice] Parent: Created child process 4048 > > [Fri Dec 04 10:37:48 2009] [notice] Child 4048: Child process is running > > [Fri Dec 04 10:37:49 2009] [notice] Child 5444: Released the start mutex > > [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Acquired the start mutex. > > [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Starting 64 worker threads. > > [Fri Dec 04 10:37:50 2009] [notice] Child 4048: Starting thread to listen > on port 80. > > [Fri Dec 04 10:37:50 2009] [notice] Child 5444: All worker threads have > exited. > > [Fri Dec 04 10:37:50 2009] [notice] Child 5444: Child process is exiting > > > > I can see the phpinfo output on my IE 8 but no on FF 3.5.5 > > > > :-( > > On Fri, Dec 4, 2009 at 10:15 AM, Tom Sartain wrote: > > First off, try testing in another browser because I doubt that this is a > Firefox specific issue. > > > > Second, try putting a static HTML page on the server and requesting that. > It should show up fine. > > > > Third, and really, this should be one of the first things you always do, > check the error logs for Apache and PHP. Chances are that there is something > in there that would tell you what it causing the problem. Initial guesses > would be that either Apache is throwing an error while trying to load PHP or > that the content type and/or handler for .php files is not being set > properly. > > > > One other thing to check on is whether the PHP code is actually executing. > Try putting some error_logs or writing to a file or anything that you can > verify outside of a browser. If these things happen, then it is a problem of > Apache not knowing how to serve the file, not whether it should be executed > or not. > > > > Try these things first, then let us know of anything you find. I can almost > guarantee that it is an Apache configuration issue. > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajai at bitblit.net Fri Dec 4 14:30:06 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Fri, 4 Dec 2009 14:30:06 -0500 (EST) Subject: [nycphp-talk] MongoDB and others, convince me. :-) In-Reply-To: <29da5d150912041047y52d9ed31u8f13290d1064908b@mail.gmail.com> Message-ID: On Fri, 4 Dec 2009, Brian O'Connor wrote: > This might be a bit of a side topic, but does anyone have any good resources > to read about this noSQL stuff? I've looked VERY briefly at MongoDB, but > didn't think it was anything that amazingly fantastical that everyone seems > to be talking about. But if it is the next generation, I'd like to be on > board. Maybe http://nosql-databases.org/ :-) You also might want to see if there's a NOSQL meeting taking place nearby (or a talk featuring Mongo, Hadoop, Tokyo Cabinet or Couch). What I like is that a lot of these databases use REST interfaces and some of them use JSON (which scales really well). -- Aj. From rotsen at gmail.com Fri Dec 4 14:34:28 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Fri, 4 Dec 2009 11:34:28 -0800 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: <-7019757006817115591@unknownmsgid> References: <3515423305334138373@unknownmsgid> <20190d950912041015s2d35cd1dp80979d0c29261134@mail.gmail.com> <20190d950912041055i26a5457bw1560a84e7468bd5d@mail.gmail.com> <-7019757006817115591@unknownmsgid> Message-ID: BTW, I did try the first one and it made no difference but again that is for CGI. :-) On Fri, Dec 4, 2009 at 11:16 AM, Dan Horning wrote: > Do you have the following in your php loader? > > > > AddHandler php5-script .php > > AddType text/html .php > > > > -- > > *Dan Horning* > > > > *American Digital Services* - *Where you are only limited by imagination*. > > dan.horning at planetnoc.com :: http://www.americandigitalservices.com > > *1-518-444-0213 x502* . *toll free* 1-800-863-3854 . *fax* 1-888-474-6133 > > 15 Third Street, PO Box 746, Troy, NY 12180 (*by appointment only*) > > > > *From:* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > *On Behalf Of *N?stor > *Sent:* Friday, December 04, 2009 2:06 PM > *To:* NYPHP Talk > *Subject:* Re: [nycphp-talk] Firefox 3.5.5 not rendering PHP > > > > Yes, the PHP script is only doing phpinfo(); > > > > I have firebug install on firefox but that does not allow me to see > anything during the PHP operation because it > > just aske me to save it. > > > > What tools should I use to see the headers? > > > > :-) > > On Fri, Dec 4, 2009 at 10:55 AM, Tom Sartain wrote: > > Do you have any tools to look at the headers coming back from the server? > > > > My guess is that the content-type or disposition is being set weird. The > PHP script is *only* doing phpinfo() right? > > > > On Fri, Dec 4, 2009 at 1:42 PM, N?stor wrote: > > Apache is working. > > The index.html is displaying > > the error.log : > > [Fri Dec 04 10:37:48 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.8 > configured -- resuming normal operations > > [Fri Dec 04 10:37:48 2009] [notice] Server built: Dec 10 2008 00:10:06 > > [Fri Dec 04 10:37:48 2009] [notice] Parent: Created child process 4048 > > [Fri Dec 04 10:37:48 2009] [notice] Child 4048: Child process is running > > [Fri Dec 04 10:37:49 2009] [notice] Child 5444: Released the start mutex > > [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Acquired the start mutex. > > [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Starting 64 worker threads. > > [Fri Dec 04 10:37:50 2009] [notice] Child 4048: Starting thread to listen > on port 80. > > [Fri Dec 04 10:37:50 2009] [notice] Child 5444: All worker threads have > exited. > > [Fri Dec 04 10:37:50 2009] [notice] Child 5444: Child process is exiting > > > > I can see the phpinfo output on my IE 8 but no on FF 3.5.5 > > > > :-( > > On Fri, Dec 4, 2009 at 10:15 AM, Tom Sartain wrote: > > First off, try testing in another browser because I doubt that this is a > Firefox specific issue. > > > > Second, try putting a static HTML page on the server and requesting that. > It should show up fine. > > > > Third, and really, this should be one of the first things you always do, > check the error logs for Apache and PHP. Chances are that there is something > in there that would tell you what it causing the problem. Initial guesses > would be that either Apache is throwing an error while trying to load PHP or > that the content type and/or handler for .php files is not being set > properly. > > > > One other thing to check on is whether the PHP code is actually executing. > Try putting some error_logs or writing to a file or anything that you can > verify outside of a browser. If these things happen, then it is a problem of > Apache not knowing how to serve the file, not whether it should be executed > or not. > > > > Try these things first, then let us know of anything you find. I can almost > guarantee that it is an Apache configuration issue. > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Fri Dec 4 14:38:37 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Fri, 4 Dec 2009 14:38:37 -0500 Subject: [nycphp-talk] MongoDB and others, convince me. :-) In-Reply-To: <29da5d150912041047y52d9ed31u8f13290d1064908b@mail.gmail.com> References: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> <330532b60912041044i6d4a0553q4d48732ede58b578@mail.gmail.com> <29da5d150912041047y52d9ed31u8f13290d1064908b@mail.gmail.com> Message-ID: <330532b60912041138s42698c3bxb9e3fbb3757fe129@mail.gmail.com> On Fri, Dec 4, 2009 at 1:47 PM, Brian O'Connor wrote: > This might be a bit of a side topic, but does anyone have any good resources > to read about this noSQL stuff?? I've looked VERY briefly at MongoDB, but > didn't think it was anything that amazingly fantastical that everyone seems > to be talking about.? But if it is the next generation, I'd like to be on > board. You can see Dwight Merriman, founder of 10gen (MongoDB), and his most recent presentation online in HD: http://www.mefeedia.com/watch/25943056 In it he discusses the different categories of noSQL databases, as well as the differences, strengths/weaknesses of each implementation approach. Actually a good overview of noSQL, not just about MongoDB. In the end you should play with one or more just to get a feel for how they would impact your development. I think it is very understated how going non-relational can benefit the development process. Ajai's points on JSON is also a killer feature of sorts, as you can really leverage rich data structures (and nested data) via Ajax and RIA with zero transformation needed. My previous post ended with a somewhat silly analogy of horse carriages and jet planes. However that is why most folks are usually unimpressed when they evaluate - as they make the mistake of forcing a relational model on a document database. -- Mitch From rotsen at gmail.com Fri Dec 4 14:41:29 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Fri, 4 Dec 2009 11:41:29 -0800 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: <20190d950912041111r47d7fe47m5424b3a3f2ae3c78@mail.gmail.com> References: <3515423305334138373@unknownmsgid> <20190d950912041015s2d35cd1dp80979d0c29261134@mail.gmail.com> <20190d950912041055i26a5457bw1560a84e7468bd5d@mail.gmail.com> <20190d950912041111r47d7fe47m5424b3a3f2ae3c78@mail.gmail.com> Message-ID: TOm, This is the info for my header on my http://localhost, but I do not see any troubles here. Do you? http://localhost/ GET / HTTP/1.1 Host: localhost?,? User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729) FirePHP/0.3?,? Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8?,? Accept-Language: en-us,en;q=0.5?,? Accept-Encoding: gzip,deflate?,? Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7?,? Keep-Alive: 300?,? Connection: keep-alive?,? HTTP/1.1 200 OK Date: Fri, 04 Dec 2009 19:08:18 GMT?,? Server: Apache/2.2.11 (Win32) PHP/5.2.8?,? Last-Modified: Sat, 20 Nov 2004 22:16:24 GMT?,? Etag: "13000000077d49-2c-3e957f94afe00"?,? Accept-Ranges: bytes?,? Content-Length: 44?,? Content-Type: text/html?, I can not display anything for my phpinfo.php file because it wants to sabe it. Thanks, N?stor :-) On Fri, Dec 4, 2009 at 11:11 AM, Tom Sartain wrote: > Take a look at LiveHTTPHeaders add-on for Firefox ( > https://addons.mozilla.org/en-US/firefox/addon/3829 ) which should show > you what you need to see. > > Of course, you could always hit up telnet or curl (or any other number of > command line tools) to connect to the server and check out the responses. > > On Fri, Dec 4, 2009 at 2:06 PM, N?stor wrote: > >> Yes, the PHP script is only doing phpinfo(); >> >> I have firebug install on firefox but that does not allow me to see >> anything during the PHP operation because it >> just aske me to save it. >> >> What tools should I use to see the headers? >> >> :-) >> >> On Fri, Dec 4, 2009 at 10:55 AM, Tom Sartain wrote: >> >>> Do you have any tools to look at the headers coming back from the >>> server? >>> >>> My guess is that the content-type or disposition is being set weird. The >>> PHP script is *only* doing phpinfo() right? >>> >>> >>> On Fri, Dec 4, 2009 at 1:42 PM, N?stor wrote: >>> >>>> Apache is working. >>>> The index.html is displaying >>>> the error.log : >>>> [Fri Dec 04 10:37:48 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.8 >>>> configured -- resuming normal operations >>>> [Fri Dec 04 10:37:48 2009] [notice] Server built: Dec 10 2008 00:10:06 >>>> [Fri Dec 04 10:37:48 2009] [notice] Parent: Created child process 4048 >>>> [Fri Dec 04 10:37:48 2009] [notice] Child 4048: Child process is running >>>> [Fri Dec 04 10:37:49 2009] [notice] Child 5444: Released the start mutex >>>> [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Acquired the start >>>> mutex. >>>> [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Starting 64 worker >>>> threads. >>>> [Fri Dec 04 10:37:50 2009] [notice] Child 4048: Starting thread to >>>> listen on port 80. >>>> [Fri Dec 04 10:37:50 2009] [notice] Child 5444: All worker threads have >>>> exited. >>>> [Fri Dec 04 10:37:50 2009] [notice] Child 5444: Child process is exiting >>>> >>>> I can see the phpinfo output on my IE 8 but no on FF 3.5.5 >>>> >>>> :-( >>>> On Fri, Dec 4, 2009 at 10:15 AM, Tom Sartain wrote: >>>> >>>>> First off, try testing in another browser because I doubt that this >>>>> is a Firefox specific issue. >>>>> >>>>> Second, try putting a static HTML page on the server and requesting >>>>> that. It should show up fine. >>>>> >>>>> Third, and really, this should be one of the first things you always >>>>> do, check the error logs for Apache and PHP. Chances are that there is >>>>> something in there that would tell you what it causing the problem. Initial >>>>> guesses would be that either Apache is throwing an error while trying to >>>>> load PHP or that the content type and/or handler for .php files is not being >>>>> set properly. >>>>> >>>>> One other thing to check on is whether the PHP code is actually >>>>> executing. Try putting some error_logs or writing to a file or anything that >>>>> you can verify outside of a browser. If these things happen, then it is a >>>>> problem of Apache not knowing how to serve the file, not whether it should >>>>> be executed or not. >>>>> >>>>> Try these things first, then let us know of anything you find. I can >>>>> almost guarantee that it is an Apache configuration issue. >>>>> >>>>> _______________________________________________ >>>>> New York PHP Users Group Community Talk Mailing List >>>>> http://lists.nyphp.org/mailman/listinfo/talk >>>>> >>>>> http://www.nyphp.org/Show-Participation >>>>> >>>> >>>> >>>> _______________________________________________ >>>> New York PHP Users Group Community Talk Mailing List >>>> http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> http://www.nyphp.org/Show-Participation >>>> >>> >>> >>> _______________________________________________ >>> New York PHP Users Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/Show-Participation >>> >> >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tomsartain at gmail.com Fri Dec 4 15:09:22 2009 From: tomsartain at gmail.com (Tom Sartain) Date: Fri, 4 Dec 2009 15:09:22 -0500 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: References: <3515423305334138373@unknownmsgid> <20190d950912041015s2d35cd1dp80979d0c29261134@mail.gmail.com> <20190d950912041055i26a5457bw1560a84e7468bd5d@mail.gmail.com> <20190d950912041111r47d7fe47m5424b3a3f2ae3c78@mail.gmail.com> Message-ID: <20190d950912041209p627ba17al9e9dd58e87704423@mail.gmail.com> I'm assuming that the extra characters that I'm seeing at the end of all of those lines ( ?,? ) are a result of copying/pasting from various places and aren't actually being output. It seems a little odd that your phpinfo would be putting out a content-length of 44.. if I'm reading that right. Have you checked your php error log? Try explicitly calling error_log to write to it. Also, what do you see in the file you actually download? Is it the result of phpinfo()? -------------- next part -------------- An HTML attachment was scrubbed... URL: From garyamort at gmail.com Fri Dec 4 16:14:31 2009 From: garyamort at gmail.com (Gary Mort) Date: Fri, 4 Dec 2009 16:14:31 -0500 Subject: [nycphp-talk] MongoDB and others, convince me. :-) In-Reply-To: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> References: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> Message-ID: <4bffc350912041314he7bf37ck567bd9d2d37c74f7@mail.gmail.com> On Fri, Dec 4, 2009 at 7:56 AM, Gary Mort wrote: > Ok, so since someone has been singing the praises of MongoDB, and others > have been mentioned, I figured I'd provide a contrarian view and see if you > can convince me otherwise. > > Thanks for all the well thought out replies . My takeaway is that these databases have 2 important benefits. 1) Performance - they perform much much better than relational databases 2) Ease of programming - they make it faster and easier to code your apps The big downside seems to be reporting, they lock you into needing a programmer for reporting. Which, if it makes it easier to program, is not so bad. And I can definitely see the attraction for internal applications for a company that has an IT staff that can include a couple of part time programmers[a couple for turnover reasons]. I'm not seeing it as a good fit for the company that wants to hire "experts" to come in and do their work. Or the small business setting up a site where they will have a consultant set it up, and they will use it. The former mainly because until it is in widespread enough use, it makes it much harder to find someone else to work on it - and being locked to a single provider is never a good thing. The latter for the same reason. So I can see the use..... I'm just not a "cutting edge" person. I use tried and true solutions where at the end of the day Gary is not a requirement for future changes to the system. -- ---- Hudson Valley Sudbury School What GPL is for application users Our school is for students Help your children grow, change, and learn Let your child direct, control, amend Check out http://www.sudburyschool.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From garyamort at gmail.com Fri Dec 4 16:15:03 2009 From: garyamort at gmail.com (Gary Mort) Date: Fri, 4 Dec 2009 16:15:03 -0500 Subject: [nycphp-talk] MongoDB and others, convince me. :-) In-Reply-To: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> References: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> Message-ID: <4bffc350912041315t2612eb3ah43cd3701a83c8c2c@mail.gmail.com> On Fri, Dec 4, 2009 at 7:56 AM, Gary Mort wrote: > Ok, so since someone has been singing the praises of MongoDB, and others > have been mentioned, I figured I'd provide a contrarian view and see if you > can convince me otherwise. > > Thanks for all the well thought out replies . My takeaway is that these databases have 2 important benefits. 1) Performance - they perform much much better than relational databases 2) Ease of programming - they make it faster and easier to code your apps The big downside seems to be reporting, they lock you into needing a programmer for reporting. Which, if it makes it easier to program, is not so bad. And I can definitely see the attraction for internal applications for a company that has an IT staff that can include a couple of part time programmers[a couple for turnover reasons]. I'm not seeing it as a good fit for the company that wants to hire "experts" to come in and do their work. Or the small business setting up a site where they will have a consultant set it up, and they will use it. The former mainly because until it is in widespread enough use, it makes it much harder to find someone else to work on it - and being locked to a single provider is never a good thing. The latter for the same reason. So I can see the use..... I'm just not a "cutting edge" person. I use tried and true solutions where at the end of the day Gary -- ---- Hudson Valley Sudbury School What GPL is for application users Our school is for students Help your children grow, change, and learn Let your child direct, control, amend Check out http://www.sudburyschool.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Fri Dec 4 16:17:08 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Fri, 4 Dec 2009 13:17:08 -0800 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: <20190d950912041251r37b7e06m3de7fe9a866d054@mail.gmail.com> References: <20190d950912041015s2d35cd1dp80979d0c29261134@mail.gmail.com> <20190d950912041055i26a5457bw1560a84e7468bd5d@mail.gmail.com> <20190d950912041111r47d7fe47m5424b3a3f2ae3c78@mail.gmail.com> <20190d950912041209p627ba17al9e9dd58e87704423@mail.gmail.com> <20190d950912041251r37b7e06m3de7fe9a866d054@mail.gmail.com> Message-ID: Tom, the attached file was the headers for the index.php file, the php file that works,. I set up to display the php errors on C:\tmp/php_errors but nothing is displaying on the file. I tested a small php file that has a loop and that works. I even copied an existing phpinfo.php file from another server that works just in case I had an error on my current phpinfo.php file and that one did not worked also. I can see this happening if it was my first time but I have done this many other times and I never had the rpoblem Ayayayyyyyyy....... I can try installing again but I did that yesterday like 5 times and I even used the wampserver.exe to have it doen automatically and that failed. I guess I can try one more time :-( Thanks, N?stor :-) On Fri, Dec 4, 2009 at 12:51 PM, Tom Sartain wrote: > It seems like something might have gone wrong with the content encoding of > your apache config/installation. I'm guessing that IE is ignoring the extra > bytes at the end of the lines but Firefox is not. I could ask you to look at > any config files you've edited and check the encodings and line endings, but > that would be more trouble than it's worth. > > What are the headers like for the index.php that works? Do they have the > strange characters at the end too? I've never seen anything like that. > > How about a really simple script that just error logs and echos out a basic > string? It's strange that your directory list will work but the phpinfo page > wont. > > Is there anything in your php error log at all? Try to write something to > it from the script to make sure it's writing where you think it should be > writing to. > > This is a very strange case indeed, and if it's not too much trouble I > might actually suggest just trying over. Something seems to have gone wrong > somewhere along the line and it isn't obvious, so a clean install could very > well fix it. Of course, then we'd never know what the problem was. > > -Tom > > On Fri, Dec 4, 2009 at 3:42 PM, N?stor wrote: > >> Tom, >> >> I am sending this message just to you because I have a ttached a file >> about >> the headers info for my index.php file and you can see the extra >> characters >> are like japanese or chinese characters that I can see in the window but >> when >> I save it to a file then it looks like a black square dot. >> >> My phpinfo.php does nto work on FF but I have a php file (index.php) that >> shows me the files on my >> web directory and that php file works >> >> Strange!!! >> >> N?stor :-) >> >> >> >> On Fri, Dec 4, 2009 at 12:09 PM, Tom Sartain wrote: >> >>> I'm assuming that the extra characters that I'm seeing at the end of all >>> of those lines ( ?,? ) are a result of copying/pasting from various >>> places and aren't actually being output. >>> >>> It seems a little odd that your phpinfo would be putting out a >>> content-length of 44.. if I'm reading that right. Have you checked your php >>> error log? Try explicitly calling error_log to write to it. Also, what do >>> you see in the file you actually download? Is it the result of phpinfo()? >>> >>> _______________________________________________ >>> New York PHP Users Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/Show-Participation >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Fri Dec 4 18:36:21 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Fri, 4 Dec 2009 15:36:21 -0800 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: <20190d950912041323j17f66c25q735ed52602c0cabf@mail.gmail.com> References: <20190d950912041055i26a5457bw1560a84e7468bd5d@mail.gmail.com> <20190d950912041111r47d7fe47m5424b3a3f2ae3c78@mail.gmail.com> <20190d950912041209p627ba17al9e9dd58e87704423@mail.gmail.com> <20190d950912041251r37b7e06m3de7fe9a866d054@mail.gmail.com> <20190d950912041323j17f66c25q735ed52602c0cabf@mail.gmail.com> Message-ID: OK, I did the install again using apache 2.2.14 and php5.2.11 So far I can tell you is that 1) phpinfo.php works again 2) a couple of my php scripts work. 3) I download ans install Drupal (intense PHP) and now I am getting "connection to server was reset" The interesting thing is when I go to my drupal site I get a window to sent the error results to tell Microsoft about the pproblem. "Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience." At least I have my server working again. Thanks, N?stor ;-) On Fri, Dec 4, 2009 at 1:23 PM, Tom Sartain wrote: > So is it just a problem with phpinfo()? Can you get any output from a PHP > script? And try throwing an error_log into that php file with the loop. We > want to make sure that errors are being logged where they should be, when > they should be. Check your php.ini to make sure it's enabled there. > > This is very very odd. > > -Tom > > > On Fri, Dec 4, 2009 at 4:17 PM, N?stor wrote: > >> Tom, >> >> the attached file was the headers for the index.php file, the php file >> that works,. I set up to display the >> php errors on C:\tmp/php_errors but nothing is displaying on the file. I >> tested a small php file that has a loop and that works. I even copied an >> existing phpinfo.php file from another server that works just in case I had >> an error >> on my current phpinfo.php file and that one did not worked also. >> >> I can see this happening if it was my first time but I have done this many >> other times and I never had the rpoblem >> >> Ayayayyyyyyy....... >> >> I can try installing again but I did that yesterday like 5 times and I >> even used the wampserver.exe to have it doen automatically and that failed. >> >> I guess I can try one more time :-( >> >> Thanks, >> >> N?stor :-) >> >> On Fri, Dec 4, 2009 at 12:51 PM, Tom Sartain wrote: >> >>> It seems like something might have gone wrong with the content encoding >>> of your apache config/installation. I'm guessing that IE is ignoring the >>> extra bytes at the end of the lines but Firefox is not. I could ask you to >>> look at any config files you've edited and check the encodings and line >>> endings, but that would be more trouble than it's worth. >>> >>> What are the headers like for the index.php that works? Do they have the >>> strange characters at the end too? I've never seen anything like that. >>> >>> How about a really simple script that just error logs and echos out a >>> basic string? It's strange that your directory list will work but the >>> phpinfo page wont. >>> >>> Is there anything in your php error log at all? Try to write something to >>> it from the script to make sure it's writing where you think it should be >>> writing to. >>> >>> This is a very strange case indeed, and if it's not too much trouble I >>> might actually suggest just trying over. Something seems to have gone wrong >>> somewhere along the line and it isn't obvious, so a clean install could very >>> well fix it. Of course, then we'd never know what the problem was. >>> >>> -Tom >>> >>> On Fri, Dec 4, 2009 at 3:42 PM, N?stor wrote: >>> >>>> Tom, >>>> >>>> I am sending this message just to you because I have a ttached a file >>>> about >>>> the headers info for my index.php file and you can see the extra >>>> characters >>>> are like japanese or chinese characters that I can see in the window but >>>> when >>>> I save it to a file then it looks like a black square dot. >>>> >>>> My phpinfo.php does nto work on FF but I have a php file (index.php) >>>> that shows me the files on my >>>> web directory and that php file works >>>> >>>> Strange!!! >>>> >>>> N?stor :-) >>>> >>>> >>>> >>>> On Fri, Dec 4, 2009 at 12:09 PM, Tom Sartain wrote: >>>> >>>>> I'm assuming that the extra characters that I'm seeing at the end of >>>>> all of those lines ( ?,? ) are a result of copying/pasting from >>>>> various places and aren't actually being output. >>>>> >>>>> It seems a little odd that your phpinfo would be putting out a >>>>> content-length of 44.. if I'm reading that right. Have you checked your php >>>>> error log? Try explicitly calling error_log to write to it. Also, what do >>>>> you see in the file you actually download? Is it the result of phpinfo()? >>>>> >>>>> _______________________________________________ >>>>> New York PHP Users Group Community Talk Mailing List >>>>> http://lists.nyphp.org/mailman/listinfo/talk >>>>> >>>>> http://www.nyphp.org/Show-Participation >>>>> >>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peterbsemail at gmail.com Fri Dec 4 10:36:38 2009 From: peterbsemail at gmail.com (Peter Becker) Date: Fri, 04 Dec 2009 10:36:38 -0500 Subject: [nycphp-talk] MongoDB and others, convince me. :-) In-Reply-To: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> References: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> Message-ID: <4B192C86.3080900@gmail.com> Here here! I think that context is everything and the points you made are spot on.....so why this huge interest in non-relational db's now? I'd say it in 2 words Web 2.0 (well actually 1 word and 1integer). Could Facebook, Twitter and any of the others have any idea of what their db should look like or evolve to? I doubt it, and so for these cases where the industry is not mature the non-relational makes perfect sense. But for mature industries, then organizing the data with clearly defined attributes and organization will give the biggest bang for the buck to the business who's inevitably using it (and paying the bills). It'll be interesting to see as these new industries mature and the next generations have a better idea of what they'll be/need to do whether there will be a migration away from the non-relational... Anyway, just my 2 cents from a neophyte who knows just enough to be dangerous. Peter Gary Mort wrote: > Ok, so since someone has been singing the praises of MongoDB, and > others have been mentioned, I figured I'd provide a contrarian view > and see if you can convince me otherwise. > > I'm a big fan of relational databases. Have been using them since I > graduated from college in 1993, starting with DB2, followed with > MySQL[and boy was THAT interesting. DB2 was always like 2 years > behind all the neat features in other relational databases. Then I > went to MySQL and not only did it lack those features, it lacked a lot > of what solid, dependable DB2 had! And it was on purpose! They > deliberately choose to keep MySQL lean and mean and avoid things like > foreign keys, stored procedures, and such.] > > My experience is that almost any application can be broken up and > thought of as tables. Especially in the business world, people > naturally think in terms of spreadsheets since the spreadsheet is king > there. And a spreadsheet is nothing but a table. > > And by putting everything in well documented[ha ha!] tables with > consistent column and table naming schemes, even power users can use > query tools such as Navicat to build their own queries and reports > easily. So by keeping everything in a well understood industry > standard format, we lower the skill level needed to access and create > reports on the underlying data - always a good thing since I > personally hate it when someone asks me to create a report on sales > from last year "just like this other one except we need to include > wholesale prices", There is no challenge there, no fun. Just pure > grunt work. > > So all this talk of moving away from SQL makes me nervous. Will > cluefull users still be able to envision the data so they can pull > reports. Heck, are there even the user friendly point and click tools > for them to do so?[Personally I never use the query builder in Navicat > and find it tedious, but I know plenty of power users who CAN do that]. > > To me, it looks like migrating to this new method of storing data will > end up "locking" the business data up in a format that raises the cost > to access the data. It reminds me of the way Magentoo is designed, > with those oh so cool tables for storing field values without creating > new table fields. Sure, it may make it easier to expand/change the > system, but having to do multiple joins to the same dang table to get > different pieces of data makes the data harder to get to for non > programmers! > > My feeling on business data is that business data belongs TO the > business creating it. Not to some programmer who is the only one who > can access it[or worse, to some company that stores it in a > proprietary format and won't allow the data to be exported!] - so at > the moment, I'm not seeing that sort of access for data in MongoDB. > Command line pseodo queries is not enough, I want to know the data is > easy to get out for a power user - not me. > > -- > ---- > Hudson Valley Sudbury School > What GPL is for application users > Our school is for students > Help your children grow, change, and learn > Let your child direct, control, amend > Check out http://www.sudburyschool.org > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From rolan at omnistep.com Sun Dec 6 22:18:24 2009 From: rolan at omnistep.com (Rolan Yang) Date: Sun, 06 Dec 2009 22:18:24 -0500 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: References: Message-ID: <4B1C7400.6090208@omnistep.com> N?stor wrote: > People, > > I have installed lamp & wamp several times in the pst and for the last > 24 hours I have > been trying to install wamp and php using FF will ask me " What > should I do with this file" > > Annoying because I follow the steps that I remembered and it did not > worked. Then I look > at the installations instruction and followed them and still it would > not work., thenI tried > installing wamp using the wampserver.exe and that failed. > .... > > I used PHP 5.2.8 and APACHE 2.2.11 on windows XP > > Is there something that I am not aware off when doing this type of > installation? > Do you start your php code with References: <4B1C7400.6090208@omnistep.com> Message-ID: Yes, I am aware off that and it is one of the fields I always make sure that is set to On Thanks, Nestor :-) On Sun, Dec 6, 2009 at 7:18 PM, Rolan Yang wrote: > > N?stor wrote: > >> People, >> I have installed lamp & wamp several times in the pst and for the last 24 >> hours I have >> been trying to install wamp and php using FF will ask me " What should I >> do with this file" >> Annoying because I follow the steps that I remembered and it did not >> worked. Then I look >> at the installations instruction and followed them and still it would not >> work., thenI tried >> installing wamp using the wampserver.exe and that failed. >> .... >> I used PHP 5.2.8 and APACHE 2.2.11 on windows XP >> Is there something that I am not aware off when doing this type of >> installation? >> >> > > Do you start your php code with If the latter is not rendering, update your php.ini to include > > short_open_tag = On > > I just installed xampp onto a usb thumbdrive the other day and found some > of my lazy-programmed scripts were not running and that was the reason. > > ~Rolan > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From edwardpotter at gmail.com Mon Dec 7 16:37:06 2009 From: edwardpotter at gmail.com (Edward Potter) Date: Mon, 7 Dec 2009 16:37:06 -0500 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: References: <4B1C7400.6090208@omnistep.com> Message-ID: i'm not a windows guy, but this does not look like an http/site error log. 99% of the time the issue will jump out at you if u check the logs. the error.log : [Fri Dec 04 10:37:48 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.8 configured -- resuming normal operations [Fri Dec 04 10:37:48 2009] [notice] Server built: Dec 10 2008 00:10:06 [Fri Dec 04 10:37:48 2009] [notice] Parent: Created child process 4048 [Fri Dec 04 10:37:48 2009] [notice] Child 4048: Child process is running [Fri Dec 04 10:37:49 2009] [notice] Child 5444: Released the start mutex [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Acquired the start mutex. [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Starting 64 worker threads. [Fri Dec 04 10:37:50 2009] [notice] Child 4048: Starting thread to listen on port 80. [Fri Dec 04 10:37:50 2009] [notice] Child 5444: All worker threads have exited. [Fri Dec 04 10:37:50 2009] [notice] Child 5444: Child process is exiting On Sun, Dec 6, 2009 at 11:53 PM, N?stor wrote: > Yes, I am aware off that and it is one of the fields I always make sure > that is set to On > > Thanks, > > Nestor :-) > > > On Sun, Dec 6, 2009 at 7:18 PM, Rolan Yang wrote: > >> >> N?stor wrote: >> >>> People, >>> I have installed lamp & wamp several times in the pst and for the last >>> 24 hours I have >>> been trying to install wamp and php using FF will ask me " What should I >>> do with this file" >>> Annoying because I follow the steps that I remembered and it did not >>> worked. Then I look >>> at the installations instruction and followed them and still it would not >>> work., thenI tried >>> installing wamp using the wampserver.exe and that failed. >>> .... >>> I used PHP 5.2.8 and APACHE 2.2.11 on windows XP >>> Is there something that I am not aware off when doing this type of >>> installation? >>> >>> >> >> Do you start your php code with > If the latter is not rendering, update your php.ini to include >> >> short_open_tag = On >> >> I just installed xampp onto a usb thumbdrive the other day and found some >> of my lazy-programmed scripts were not running and that was the reason. >> >> ~Rolan >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- IM/iChat: ejpusa Links: http://del.icio.us/ejpusa Follow me: http://www.twitter.com/ejpusa Karma: http://www.coderswithconscience.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Mon Dec 7 18:11:22 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Mon, 7 Dec 2009 15:11:22 -0800 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: References: <4B1C7400.6090208@omnistep.com> Message-ID: Yes, I am starting to think that PHP is having problems accessing Mysql. I installed PHP and Apache but I am still using my original mysql 5.0. I did not have ths problem before I updated php and Apache. I probably need to install a Mysql client or something like that. I am also a Linux guy but evey once in a while I need to deal with MS problems. What is making this hard is that there is no clue of what is happening or that the error is a mysql error. I could see in the Event Viewer the following message: "Faulting application httpd.exe, version 2.2.14.0 faulting module php5ts.dll, version 5.2.11.11, fault address 0x0000ac6a" Now I need to ggole it and see what can be, but I believe that it is a php not talkign to mysql. Thanks, Nestor ;-) On Mon, Dec 7, 2009 at 1:37 PM, Edward Potter wrote: > i'm not a windows guy, but this does not look like an http/site error log. > 99% of the time the issue will jump out at you if u check the logs. > > > the error.log : > [Fri Dec 04 10:37:48 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.8 > configured -- resuming normal operations > [Fri Dec 04 10:37:48 2009] [notice] Server built: Dec 10 2008 00:10:06 > [Fri Dec 04 10:37:48 2009] [notice] Parent: Created child process 4048 > [Fri Dec 04 10:37:48 2009] [notice] Child 4048: Child process is running > [Fri Dec 04 10:37:49 2009] [notice] Child 5444: Released the start mutex > [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Acquired the start mutex. > [Fri Dec 04 10:37:49 2009] [notice] Child 4048: Starting 64 worker threads. > [Fri Dec 04 10:37:50 2009] [notice] Child 4048: Starting thread to listen > on port 80. > [Fri Dec 04 10:37:50 2009] [notice] Child 5444: All worker threads have > exited. > [Fri Dec 04 10:37:50 2009] [notice] Child 5444: Child process is exiting > > > > On Sun, Dec 6, 2009 at 11:53 PM, N?stor wrote: > >> Yes, I am aware off that and it is one of the fields I always make sure >> that is set to On >> >> Thanks, >> >> Nestor :-) >> >> >> On Sun, Dec 6, 2009 at 7:18 PM, Rolan Yang wrote: >> >>> >>> N?stor wrote: >>> >>>> People, >>>> I have installed lamp & wamp several times in the pst and for the last >>>> 24 hours I have >>>> been trying to install wamp and php using FF will ask me " What should >>>> I do with this file" >>>> Annoying because I follow the steps that I remembered and it did not >>>> worked. Then I look >>>> at the installations instruction and followed them and still it would >>>> not work., thenI tried >>>> installing wamp using the wampserver.exe and that failed. >>>> .... >>>> I used PHP 5.2.8 and APACHE 2.2.11 on windows XP >>>> Is there something that I am not aware off when doing this type of >>>> installation? >>>> >>>> >>> >>> Do you start your php code with >> If the latter is not rendering, update your php.ini to include >>> >>> short_open_tag = On >>> >>> I just installed xampp onto a usb thumbdrive the other day and found some >>> of my lazy-programmed scripts were not running and that was the reason. >>> >>> ~Rolan >>> >>> _______________________________________________ >>> New York PHP Users Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/Show-Participation >>> >> >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > > > -- > IM/iChat: ejpusa > Links: http://del.icio.us/ejpusa > Follow me: http://www.twitter.com/ejpusa > Karma: http://www.coderswithconscience.com > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nasir81 at gmail.com Mon Dec 7 18:31:30 2009 From: nasir81 at gmail.com (Nasir Zubair) Date: Mon, 7 Dec 2009 18:31:30 -0500 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: <40fcda730912071530k80b4b43o962793f0682f63de@mail.gmail.com> References: <4B1C7400.6090208@omnistep.com> <40fcda730912071530k80b4b43o962793f0682f63de@mail.gmail.com> Message-ID: <40fcda730912071531i65eb5171l5b3fbe3064f1b91d@mail.gmail.com> Just a thought, are your extensions (mysql.dll, etc) working properly? On windows, they can be a pain to configure. In my experience, Apache crashes like the one you described happen because of misconfigured extensions. On Dec 7, 2009 6:12 PM, "N?stor" wrote: Yes, I am starting to think that PHP is having problems accessing Mysql. I installed PHP and Apache but I am still using my original mysql 5.0. I did not have ths problem before I updated php and Apache. I probably need to install a Mysql client or something like that. I am also a Linux guy but evey once in a while I need to deal with MS problems. What is making this hard is that there is no clue of what is happening or that the error is a mysql error. I could see in the Event Viewer the following message: "Faulting application httpd.exe, version 2.2.14.0 faulting module php5ts.dll, version 5.2.11.11, fault address 0x0000ac6a" Now I need to ggole it and see what can be, but I believe that it is a php not talkign to mysql. Thanks, Nestor ;-) On Mon, Dec 7, 2009 at 1:37 PM, Edward Potter wrote: > > i'm not a window... _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramons at gmx.net Mon Dec 7 19:10:35 2009 From: ramons at gmx.net (David Krings) Date: Mon, 07 Dec 2009 19:10:35 -0500 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: <40fcda730912071531i65eb5171l5b3fbe3064f1b91d@mail.gmail.com> References: <4B1C7400.6090208@omnistep.com> <40fcda730912071530k80b4b43o962793f0682f63de@mail.gmail.com> <40fcda730912071531i65eb5171l5b3fbe3064f1b91d@mail.gmail.com> Message-ID: <4B1D997B.1020603@gmx.net> Nasir Zubair wrote: > Just a thought, are your extensions (mysql.dll, etc) working properly? > On windows, they can be a pain to configure. > Which is why I can only second what someone else mentioned before: download the package from ApacheFriends and install it. Then make sure that everything works. Then replace their htdocs folder with yours, then copy in the MySQL databases without overwriting the system databases followed by the table update. This approach works well, but has one flaw. I never can manage to get the MySQL user accounts and rights to copy over correctly, so I just create the few user accounts I have new. You may want to try backup&restore instead. Lastly, I uncomment the modules that I need for PHP in the php.ini. I keep a list of what I need for the projects that I run. One Apache restart later I am up and running. I use ApacheFriends XAMPP in production use for almost ten years and I can only say two things about it: it always works and it is darn easy to set up. Sure, I don't learn about the detailed configurations and such, but I am happy with outsourcing that to Germany. David From rotsen at gmail.com Mon Dec 7 19:43:11 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Mon, 7 Dec 2009 16:43:11 -0800 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: <40fcda730912071531i65eb5171l5b3fbe3064f1b91d@mail.gmail.com> References: <4B1C7400.6090208@omnistep.com> <40fcda730912071530k80b4b43o962793f0682f63de@mail.gmail.com> <40fcda730912071531i65eb5171l5b3fbe3064f1b91d@mail.gmail.com> Message-ID: I guess my mysql.dll extension i snot working properly because PHP is not talking to mysql at this time. I taking the latest PHP5.2 and the latest apache2.2 . They should work together. Thanks, Nestor :-) On Mon, Dec 7, 2009 at 3:31 PM, Nasir Zubair wrote: > Just a thought, are your extensions (mysql.dll, etc) working properly? On > windows, they can be a pain to configure. > > In my experience, Apache crashes like the one you described happen because > of misconfigured extensions. > > On Dec 7, 2009 6:12 PM, "N?stor" wrote: > > Yes, I am starting to think that PHP is having problems accessing Mysql. I > installed PHP and Apache but I am still using > my original mysql 5.0. I did not have ths problem before I updated php > and Apache. I probably need to install a Mysql client or something like > that. > I am also a Linux guy but evey once in a while I need to deal with MS > problems. > What is making this hard is that there is no clue of what is happening or > that the error is a mysql error. I could see in the > Event Viewer the following message: > "Faulting application httpd.exe, version 2.2.14.0 faulting module > php5ts.dll, version 5.2.11.11, fault address 0x0000ac6a" > > Now I need to ggole it and see what can be, but I believe that it is a php > not talkign to mysql. > > Thanks, > > Nestor ;-) > > On Mon, Dec 7, 2009 at 1:37 PM, Edward Potter > wrote: > > i'm not a window... > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Mon Dec 7 19:45:29 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Mon, 7 Dec 2009 16:45:29 -0800 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: <4B1D997B.1020603@gmx.net> References: <4B1C7400.6090208@omnistep.com> <40fcda730912071530k80b4b43o962793f0682f63de@mail.gmail.com> <40fcda730912071531i65eb5171l5b3fbe3064f1b91d@mail.gmail.com> <4B1D997B.1020603@gmx.net> Message-ID: I am mor econvinced now that it is somthing to do with PHP talking to MYSQL because I did install one of those packages (wampserver) last Thursday and it was failing also. My PHP files that do not have any calls to the database work but as soon as I use a php file that access myqsl I get that error message. Thanks, Nestor :-) On Mon, Dec 7, 2009 at 4:10 PM, David Krings wrote: > Nasir Zubair wrote: > >> Just a thought, are your extensions (mysql.dll, etc) working properly? On >> windows, they can be a pain to configure. >> >> > Which is why I can only second what someone else mentioned before: download > the package from ApacheFriends and install it. Then make sure that > everything works. Then replace their htdocs folder with yours, then copy in > the MySQL databases without overwriting the system databases followed by the > table update. This approach works well, but has one flaw. I never can manage > to get the MySQL user accounts and rights to copy over correctly, so I just > create the few user accounts I have new. You may want to try backup&restore > instead. Lastly, I uncomment the modules that I need for PHP in the php.ini. > I keep a list of what I need for the projects that I run. One Apache restart > later I am up and running. > > I use ApacheFriends XAMPP in production use for almost ten years and I can > only say two things about it: it always works and it is darn easy to set up. > Sure, I don't learn about the detailed configurations and such, but I am > happy with outsourcing that to Germany. > > David > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Tue Dec 8 17:10:05 2009 From: rotsen at gmail.com (=?ISO-8859-1?B?TulzdG9y?=) Date: Tue, 8 Dec 2009 14:10:05 -0800 Subject: [nycphp-talk] Firefox 3.5.5 not rendering PHP In-Reply-To: References: <4B1C7400.6090208@omnistep.com> <40fcda730912071530k80b4b43o962793f0682f63de@mail.gmail.com> <40fcda730912071531i65eb5171l5b3fbe3064f1b91d@mail.gmail.com> <4B1D997B.1020603@gmx.net> Message-ID: OK Guys, I found how to fix the problem. There was actually nothing wrong. The solution was just to reboot the windows machine. I was reading some message in the internet and they said that they reboot their machine and thinks started to work. I did the same and that did it. that I hate about MS machines..grrr... I am mad also because I forgot that with MS you need to reboot. Thanks for all your help!!! On Mon, Dec 7, 2009 at 4:45 PM, N?stor wrote: > I am mor econvinced now that it is somthing to do with PHP talking to MYSQL > because I did install one of those packages (wampserver) last Thursday and > it was failing also. My PHP files that do not have any calls to the > database > work but as soon as I use a php file that access myqsl I get that error > message. > > Thanks, > > Nestor :-) > > > On Mon, Dec 7, 2009 at 4:10 PM, David Krings wrote: > >> Nasir Zubair wrote: >> >>> Just a thought, are your extensions (mysql.dll, etc) working properly? On >>> windows, they can be a pain to configure. >>> >>> >> Which is why I can only second what someone else mentioned before: >> download the package from ApacheFriends and install it. Then make sure that >> everything works. Then replace their htdocs folder with yours, then copy in >> the MySQL databases without overwriting the system databases followed by the >> table update. This approach works well, but has one flaw. I never can manage >> to get the MySQL user accounts and rights to copy over correctly, so I just >> create the few user accounts I have new. You may want to try backup&restore >> instead. Lastly, I uncomment the modules that I need for PHP in the php.ini. >> I keep a list of what I need for the projects that I run. One Apache restart >> later I am up and running. >> >> I use ApacheFriends XAMPP in production use for almost ten years and I can >> only say two things about it: it always works and it is darn easy to set up. >> Sure, I don't learn about the detailed configurations and such, but I am >> happy with outsourcing that to Germany. >> >> David >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mabukarim at gmail.com Wed Dec 9 03:49:23 2009 From: mabukarim at gmail.com (Mohammad Abu Karim) Date: Wed, 9 Dec 2009 10:49:23 +0200 Subject: [nycphp-talk] UCS2/HexEncoded chracters Message-ID: *Hi nyphp members,* *I am new member in this mailing list, and I am happy to join it. **Any one can help me ? how could I get UCS2/HexEncoded chracters like 'Hello' will return "00480065006C006C006F" This are the HexEncoded values: 0048 = H 0065 = e 006C = l 006C = l 006F = o* *Also in arabic (!????? ????) will return 06450631062d0628064b06270020063906270644064500200021* *How I can get the encoded UCS2 in php?* *Regards* -- --- Mohammad Abdallah -------------- next part -------------- An HTML attachment was scrubbed... URL: From nhart at partsauthority.com Wed Dec 9 12:08:13 2009 From: nhart at partsauthority.com (Nicholas Hart) Date: Wed, 9 Dec 2009 12:08:13 -0500 Subject: [nycphp-talk] play a sound Message-ID: <3719ecad0912090908p305bc0fbnfc495b247dd081cc@mail.gmail.com> I'm trying to play a sound on the browser using javascript play() method. This worked fine on my Firefox browser but I keep getting errors on other Firefox browsers in the office. Anyone know what add-on or version of FF I need to make this work all the time? Thanks. Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: From ioplex at gmail.com Wed Dec 9 14:13:57 2009 From: ioplex at gmail.com (Michael B Allen) Date: Wed, 9 Dec 2009 14:13:57 -0500 Subject: [nycphp-talk] UCS2/HexEncoded chracters In-Reply-To: References: Message-ID: <78c6bd860912091113h74fb72f1l5052cd345b3b0518@mail.gmail.com> Hi Mohammad, Use the iconv function like: $outstr = iconv('UTF-8', 'UCS-2BE', $instr); The iconv function might be an extension but it's been available on every PHP installation I have ever used. You can also test the conversion using the 'iconv' commandline program like: linux$ iconv --from-code=UTF-8 --to-code=UCS-2BE /tmp/infile > /tmp/outfile Of course you'll need to take the necessary precautions to ensure that the input is UTF-8. So if for example the input is coming from an HTML form, you will need to ensure that the content-encoding of the page is UTF-8. Otherwise, if it is something like ISO-8859-1 you will get the wrong result with non-Latin characters such as Arabic. Also if you run the above commandline example in a terminal, it may not have the required font to render the characters. But you can use the 'hexdump' program to dump the outfile to hexadecimal and verify that the conversion worked. Finally, note that Windows uses UTF-16LE and Java uses UCS-2BE for native encodings. Some of these encodings may look similar in fact they are not the same. You may want to double check what encoding you're really targeting. Mike 2009/12/9 Mohammad Abu Karim : > Hi nyphp members, > > I am new member in this mailing list, and I am happy to join it. > > Any one can help me ? how could I get UCS2/HexEncoded chracters > > like 'Hello' will return "00480065006C006C006F" > > This are the HexEncoded values: > > 0048 = H > 0065 = e > 006C = l > 006C = l > 006F = o > > Also in arabic (!????? ????) will return > 06450631062d0628064b06270020063906270644064500200021 > > How I can get the encoded UCS2 in php? > > Regards > > -- > --- > Mohammad Abdallah > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- Michael B Allen Java Active Directory Integration http://www.ioplex.com/ From kkrutoi at gmail.com Wed Dec 9 23:53:44 2009 From: kkrutoi at gmail.com (Konstantin K) Date: Wed, 9 Dec 2009 23:53:44 -0500 Subject: [nycphp-talk] MongoDB and others, convince me. :-) In-Reply-To: <4B192C86.3080900@gmail.com> References: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> <4B192C86.3080900@gmail.com> Message-ID: <7173a2fc0912092053m71d8df2dh26999920d3318d3e@mail.gmail.com> Funny, but some (valid? fair? not sure) points about NoSQL databases: http://highscalability.com/blog/2009/11/25/brian-akers-hilarious-nosql-stand-up-routine.html accompanying slides: http://www.slideshare.net/brianaker/no-sql-talk On Fri, Dec 4, 2009 at 10:36 AM, Peter Becker wrote: > Here here! ?I think that context is everything and the points you made are > spot on.....so why this huge interest in non-relational db's now? ?I'd say > it in 2 words Web 2.0 (well actually 1 word and 1integer). > > Could Facebook, Twitter and any of the others have any idea of what their db > should look like or evolve to? ?I doubt it, and so for these cases where the > industry is not mature the non-relational makes perfect sense. ?But for > mature industries, then organizing the data with clearly defined attributes > and organization will give the biggest bang for the buck to the business > who's inevitably using it (and paying the bills). > It'll be interesting to see as these new industries mature and the next > generations have a better idea of what they'll be/need to do whether there > will be a migration away from the non-relational... > > Anyway, just my 2 cents from a neophyte who knows just enough to be > dangerous. > > Peter > > Gary Mort wrote: >> >> Ok, so since someone has been singing the praises of MongoDB, and others >> have been mentioned, I figured I'd provide a contrarian view and see if you >> can convince me otherwise. >> >> I'm a big fan of relational databases. ?Have been using them since I >> graduated from college in 1993, starting with DB2, followed with MySQL[and >> boy was THAT interesting. ?DB2 was always like 2 years behind all the neat >> features in other relational databases. ?Then I went to MySQL and not only >> did it lack those features, it lacked a lot of what solid, dependable DB2 >> had! ?And it was on purpose! ?They deliberately choose to keep MySQL lean >> and mean and avoid things like foreign keys, stored procedures, and such.] >> >> My experience is that almost any application can be broken up and thought >> of as tables. ?Especially in the business world, people naturally think in >> terms of spreadsheets since the spreadsheet is king there. ?And a >> spreadsheet is nothing but a table. >> >> And by putting everything in well documented[ha ha!] tables with >> consistent column and table naming schemes, even power users can use query >> tools such as Navicat to build their own queries and reports easily. ? So by >> keeping everything in a well understood industry standard format, we lower >> the skill level needed to access and create reports on the underlying data - >> always a good thing since I personally hate it when someone asks me to >> create a report on sales from last year "just like this other one except we >> need to include wholesale prices", ?There is no challenge there, no fun. >> ?Just pure grunt work. >> >> So all this talk of moving away from SQL makes me nervous. ?Will cluefull >> users still be able to envision the data so they can pull reports. ?Heck, >> are there even the user friendly point and click tools for them to do >> so?[Personally I never use the query builder in Navicat and find it tedious, >> but I know plenty of power users who CAN do that]. >> >> To me, it looks like migrating to this new method of storing data will end >> up "locking" the business data up in a format that raises the cost to access >> the data. ?It reminds me of the way Magentoo is designed, with those oh so >> cool tables for storing field values without creating new table fields. >> ?Sure, it may make it easier to expand/change the system, but having to do >> multiple joins to the same dang table to get different pieces of data makes >> the data harder to get to for non programmers! >> >> My feeling on business data is that business data belongs TO the business >> creating it. ?Not to some programmer who is the only one who can access >> it[or worse, to some company that stores it in a proprietary format and >> won't allow the data to be exported!] - so at the moment, I'm not seeing >> that sort of access for data in MongoDB. ? Command line pseodo queries is >> not enough, I want to know the data is easy to get out for a power user - >> not me. >> >> -- >> ---- >> Hudson Valley Sudbury School >> What GPL is for application users >> Our school is for students >> Help your children grow, change, and learn >> Let your child direct, control, amend >> Check out http://www.sudburyschool.org >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From mitch.pirtle at gmail.com Thu Dec 10 10:41:29 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Thu, 10 Dec 2009 10:41:29 -0500 Subject: [nycphp-talk] MongoDB and others, convince me. :-) In-Reply-To: <7173a2fc0912092053m71d8df2dh26999920d3318d3e@mail.gmail.com> References: <4bffc350912040456j1440934aidcfdb8089aee0a05@mail.gmail.com> <4B192C86.3080900@gmail.com> <7173a2fc0912092053m71d8df2dh26999920d3318d3e@mail.gmail.com> Message-ID: <330532b60912100741n770c4193n787c4653abaecd2b@mail.gmail.com> On Wed, Dec 9, 2009 at 11:53 PM, Konstantin K wrote: > Funny, but some (valid? fair? not sure) points about NoSQL databases: > > http://highscalability.com/blog/2009/11/25/brian-akers-hilarious-nosql-stand-up-routine.html > accompanying slides: http://www.slideshare.net/brianaker/no-sql-talk He's trying to be funny, at the expense of being less than 20% accurate. In all fairness the term noSQL is generic enough to no longer be about specific features, as something like Project Voldemort has a totally different featureset and target than MongoDB, which in turn is not trying to solve the exact same problems as CouchDB or hBase. I'd try to avoid sweeping generalizations about noSQL, but I think he was just trying to be funny and not misinform. -- Mitch From lists at zaunere.com Sat Dec 12 14:29:17 2009 From: lists at zaunere.com (Hans Zaunere) Date: Sat, 12 Dec 2009 14:29:17 -0500 Subject: [nycphp-talk] mailing lists In-Reply-To: <02a501ca7b5a$b621ec30$2265c490$@com> References: <4B23DD7C.5080507@gmail.com> <02a501ca7b5a$b621ec30$2265c490$@com> Message-ID: <02b301ca7b61$657aef00$3070cd00$@com> > > What's with all the spam "porn" solicitation email?? > > Hmm, not sure actually - looking into it now. Sorry about that folks - 8 years and nothing like that - although oddly, we've had two similar incidents in as many weeks... and going through mbox files isn't too fun. Mailman might be showing its age. Anyway, oddly, the spam messages themselves never ended up in my inbox for whatever reason. If anyone catches more messages like this, please contact me directly, as sometimes I might miss them. H From patrick.fee at baesystems.com Mon Dec 14 09:42:02 2009 From: patrick.fee at baesystems.com (Fee, Patrick J (US SSA)) Date: Mon, 14 Dec 2009 09:42:02 -0500 Subject: [nycphp-talk] mailing lists In-Reply-To: <02b301ca7b61$657aef00$3070cd00$@com> Message-ID: <7naet7$2jibn1@dmzms99901.na.baesystems.com> For what it's worth, I've not received any of those emails. Either my corporate filters are doing their job, or perhaps some people are getting spam with the list name spoofed to appear like our lists. Keep up the good work Hans. I've had to do some digging through mbox in the past... it is NOT fun, but it is stable as all get out! Have a great week. Patrick J. Fee Manager, Systems Engineering Services BAE Systems Technology Solutions & Services Cel: (240) 401-6820 Fax: (301) 231-2635 Patrick.Fee at BAESystems.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Hans Zaunere Sent: Saturday, December 12, 2009 2:29 PM To: jobs at lists.nyphp.org; 'NYPHP Talk'; joomla at lists.nyphp.org Subject: [nycphp-talk] mailing lists > > What's with all the spam "porn" solicitation email?? > > Hmm, not sure actually - looking into it now. Sorry about that folks - 8 years and nothing like that - although oddly, we've had two similar incidents in as many weeks... and going through mbox files isn't too fun. Mailman might be showing its age. Anyway, oddly, the spam messages themselves never ended up in my inbox for whatever reason. If anyone catches more messages like this, please contact me directly, as sometimes I might miss them. H _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation From ben at projectskyline.com Tue Dec 15 12:36:30 2009 From: ben at projectskyline.com (Ben Sgro) Date: Tue, 15 Dec 2009 12:36:30 -0500 Subject: [nycphp-talk] XCache on windows - Can I see your xcache.ini? Message-ID: <4B27C91E.4030609@projectskyline.com> Hello, I'm trying to setup xcache on window - it is listed in (phpinfo()): This program makes use of the Zend Scripting Language Engine: Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans with XCache v1.2.2, Copyright (c) 2005-2007, by mOo <<---- BUT it *doesn't* have a block entry like everything else. When I try to run: if (extension_loaded('XCache')) - it fails - (Pulled this from the admin.php bundled w/xcache). So, I take a look at anyone's xcache.ini for windows - I think I have it incorrectly configured. Thanks, - Ben From garyamort at gmail.com Wed Dec 16 17:44:52 2009 From: garyamort at gmail.com (Gary Mort) Date: Wed, 16 Dec 2009 17:44:52 -0500 Subject: [nycphp-talk] Google Wave API Message-ID: <4bffc350912161444g1782223dya753787f229ec6b3@mail.gmail.com> Just wondering if anyone here knows if/when Google will be releasing a PHP client library for Google Wave to go with their Java and Python ones? http://code.google.com/apis/wave/guide.html -- ---- Hudson Valley Sudbury School What GPL is for application users Our school is for students Help your children grow, change, and learn Let your child direct, control, amend Check out http://www.sudburyschool.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcampbell1 at gmail.com Thu Dec 17 13:54:17 2009 From: jcampbell1 at gmail.com (John Campbell) Date: Thu, 17 Dec 2009 13:54:17 -0500 Subject: [nycphp-talk] Google Wave API In-Reply-To: <4bffc350912161444g1782223dya753787f229ec6b3@mail.gmail.com> References: <4bffc350912161444g1782223dya753787f229ec6b3@mail.gmail.com> Message-ID: <8f0676b40912171054x6e77b50fn1e0c91b257597e11@mail.gmail.com> Google never releases php anything. They are a C++/Java/Python shop. They have occasionally written some sample php code for tutorial purposes, but they will not write a php library. On Wed, Dec 16, 2009 at 5:44 PM, Gary Mort wrote: > Just wondering if anyone here knows if/when Google will be releasing a PHP > client library for Google Wave to go with their Java and Python ones? > > http://code.google.com/apis/wave/guide.html > > -- > ---- > Hudson Valley Sudbury School > What GPL is for application users > Our school is for students > Help your children grow, change, and learn > Let your child direct, control, amend > Check out http://www.sudburyschool.org > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From anoland at indigente.net Fri Dec 18 12:11:01 2009 From: anoland at indigente.net (Adrian Noland) Date: Fri, 18 Dec 2009 11:11:01 -0600 Subject: [nycphp-talk] XCache on windows - Can I see your xcache.ini? In-Reply-To: <4B27C91E.4030609@projectskyline.com> References: <4B27C91E.4030609@projectskyline.com> Message-ID: <1d8a0e930912180911r10d885e4r850786b529f3f982@mail.gmail.com> Ben, I got it installed in about 30 mins with no problem using the ini that comes with the distro. Don't know what else to try. Adrian On Tue, Dec 15, 2009 at 11:36 AM, Ben Sgro wrote: > Hello, > > I'm trying to setup xcache on window - it is listed in (phpinfo()): > > This program makes use of the Zend Scripting Language Engine: > Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies > with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans > with XCache v1.2.2, Copyright (c) 2005-2007, by mOo <<---- > > BUT it *doesn't* have a block entry like everything else. When I try to > run: > if (extension_loaded('XCache')) - it fails - (Pulled this from the > admin.php bundled w/xcache). > > So, I take a look at anyone's xcache.ini for windows - I think I have it > incorrectly configured. > > Thanks, > > - Ben > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at projectskyline.com Fri Dec 18 12:13:54 2009 From: ben at projectskyline.com (Ben Sgro) Date: Fri, 18 Dec 2009 12:13:54 -0500 Subject: [nycphp-talk] XCache on windows - Can I see your xcache.ini? In-Reply-To: <1d8a0e930912180911r10d885e4r850786b529f3f982@mail.gmail.com> References: <4B27C91E.4030609@projectskyline.com> <1d8a0e930912180911r10d885e4r850786b529f3f982@mail.gmail.com> Message-ID: <4B2BB852.4070204@projectskyline.com> Hello Adrian, Can you provide the specifics of your windows installation and php installation - version, additional extension's etc? Thanks, - Ben Adrian Noland wrote: > Ben, > I got it installed in about 30 mins with no problem using the ini that > comes with the distro. > > Don't know what else to try. > > Adrian > > On Tue, Dec 15, 2009 at 11:36 AM, Ben Sgro > wrote: > > Hello, > > I'm trying to setup xcache on window - it is listed in (phpinfo()): > > This program makes use of the Zend Scripting Language Engine: > Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies > with Xdebug v2.0.3, Copyright (c) 2002-2007, by Derick Rethans > with XCache v1.2.2, Copyright (c) 2005-2007, by mOo <<---- > > BUT it *doesn't* have a block entry like everything else. When I > try to run: > if (extension_loaded('XCache')) - it fails - (Pulled this from the > admin.php bundled w/xcache). > > So, I take a look at anyone's xcache.ini for windows - I think I > have it incorrectly configured. > > Thanks, > > - Ben > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From tomsartain at gmail.com Fri Dec 18 12:22:10 2009 From: tomsartain at gmail.com (Tom Sartain) Date: Fri, 18 Dec 2009 12:22:10 -0500 Subject: [nycphp-talk] XCache on windows - Can I see your xcache.ini? In-Reply-To: <4B2BB852.4070204@projectskyline.com> References: <4B27C91E.4030609@projectskyline.com> <1d8a0e930912180911r10d885e4r850786b529f3f982@mail.gmail.com> <4B2BB852.4070204@projectskyline.com> Message-ID: <20190d950912180922o4fba5cb7s4dbf3650c8d8bc4a@mail.gmail.com> Ben, are you certain that it can find your xcache.ini file? I believe it should be in the phpinfo() up top as "additional ini files parsed" -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at projectskyline.com Fri Dec 18 12:24:06 2009 From: ben at projectskyline.com (Ben Sgro) Date: Fri, 18 Dec 2009 12:24:06 -0500 Subject: [nycphp-talk] XCache on windows - Can I see your xcache.ini? In-Reply-To: <20190d950912180922o4fba5cb7s4dbf3650c8d8bc4a@mail.gmail.com> References: <4B27C91E.4030609@projectskyline.com> <1d8a0e930912180911r10d885e4r850786b529f3f982@mail.gmail.com> <4B2BB852.4070204@projectskyline.com> <20190d950912180922o4fba5cb7s4dbf3650c8d8bc4a@mail.gmail.com> Message-ID: <4B2BBAB6.2070606@projectskyline.com> Hello Tom, Yes, but I will double check - - Ben Tom Sartain wrote: > Ben, are you certain that it can find your xcache.ini file? > I believe it should be in the phpinfo() up top as "additional ini > files parsed" > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From anoland at indigente.net Fri Dec 18 14:59:20 2009 From: anoland at indigente.net (Adrian Noland) Date: Fri, 18 Dec 2009 13:59:20 -0600 Subject: [nycphp-talk] XCache on windows - Can I see your xcache.ini? In-Reply-To: <4B2BB852.4070204@projectskyline.com> References: <4B27C91E.4030609@projectskyline.com> <1d8a0e930912180911r10d885e4r850786b529f3f982@mail.gmail.com> <4B2BB852.4070204@projectskyline.com> Message-ID: <1d8a0e930912181159o761d6386jbade3e53a4e9f3e@mail.gmail.com> Ben, I downloaded the binary from http://xcache.lighttpd.net/ Extracted the extension to the php/ext folder Copied the whole xdebug.ini file to my php.ini Restarted apache I only had two problems. 1. Initially I downloaded the non-thread safe version when I am running thread-safe php module. I recevied an error that told me this. 2. I had to copy the entire xdebug.ini over. I wanted to use just the admin portion to check a successful install but it would never work. Also, there are notes in the top of xdebug.ini that help in finding the location. I used the 3rd option and used the extension_directory option. Are you using IIS or Apache? Adrian On Fri, Dec 18, 2009 at 11:13 AM, Ben Sgro wrote: > Hello Adrian, > > Can you provide the specifics of your windows installation and php > installation - version, additional extension's etc? > > Thanks, > > - Ben > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at projectskyline.com Fri Dec 18 15:24:28 2009 From: ben at projectskyline.com (Ben Sgro) Date: Fri, 18 Dec 2009 15:24:28 -0500 Subject: [nycphp-talk] XCache on windows - Can I see your xcache.ini? In-Reply-To: <1d8a0e930912181159o761d6386jbade3e53a4e9f3e@mail.gmail.com> References: <4B27C91E.4030609@projectskyline.com> <1d8a0e930912180911r10d885e4r850786b529f3f982@mail.gmail.com> <4B2BB852.4070204@projectskyline.com> <1d8a0e930912181159o761d6386jbade3e53a4e9f3e@mail.gmail.com> Message-ID: <4B2BE4FC.7050803@projectskyline.com> Hello Adrian, I'm using Windows w/Apache - I've done everything you've mentioned. I see no errors in the apache logs or php logs. I'm running PHP 5.2.5. Thanks for you help, In the meantime I've setup APC and have been experimenting with that. - Ben Adrian Noland wrote: > Ben, > I downloaded the binary from http://xcache.lighttpd.net/ > Extracted the extension to the php/ext folder > Copied the whole xdebug.ini file to my php.ini > Restarted apache > > I only had two problems. > 1. Initially I downloaded the non-thread safe version when I am > running thread-safe php module. I recevied an error that told me this. > 2. I had to copy the entire xdebug.ini over. I wanted to use just the > admin portion to check a successful install but it would never work. > > Also, there are notes in the top of xdebug.ini that help in finding > the location. I used the 3rd option and used the extension_directory > option. > > Are you using IIS or Apache? > > Adrian > > > On Fri, Dec 18, 2009 at 11:13 AM, Ben Sgro > wrote: > > Hello Adrian, > > Can you provide the specifics of your windows installation and php > installation - version, additional extension's etc? > > Thanks, > > - Ben > > > > ------------------------------------------------------------------------ > > PHP Logo > > > PHP Version 5.2.11 > > > System Windows NT KC-DEVPHP-07 5.1 build 2600 > Build Date Sep 16 2009 19:39:11 > Configure Command cscript /nologo configure.js > "--enable-snapshot-build" "--enable-debug-pack" > "--with-snapshot-template=d:\php-sdk\snap_5_2\vc6\x86\template" > "--with-php-build=d:\php-sdk\snap_5_2\vc6\x86\php_build" > "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" > "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" > Server API Apache 2.0 Handler > Virtual Directory Support enabled > Configuration File (php.ini) Path C:\WINDOWS > Loaded Configuration File C:\Program Files\PHP\php.ini > Scan this dir for additional .ini files (none) > additional .ini files parsed (none) > PHP API 20041225 > PHP Extension 20060613 > Zend Extension 220060519 > Debug Build no > Thread Safety enabled > Zend Memory Manager enabled > IPv6 Support enabled > Registered PHP Streams php, file, data, http, ftp, compress.zlib, > compress.bzip2, https, ftps, zip > Registered Stream Socket Transports tcp, udp, ssl, sslv3, sslv2, tls > Registered Stream Filters convert.iconv.*, string.rot13, > string.toupper, string.tolower, string.strip_tags, convert.*, > consumed, zlib.*, bzip2.* > > > Zend logo This program makes use of the Zend > Scripting Language Engine: > Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies > with the ionCube PHP Loader v3.1.34, Copyright (c) 2002-2009, by ionCube Ltd., and > with Xdebug v2.0.5, Copyright (c) 2002-2008, by Derick Rethans > > > ------------------------------------------------------------------------ > > > PHP Credits > > > ------------------------------------------------------------------------ > > > Configuration > > > PHP Core > > Directive Local Value Master Value > allow_call_time_pass_reference Off Off > allow_url_fopen On On > allow_url_include Off Off > always_populate_raw_post_data Off Off > arg_separator.input & & > arg_separator.output & & > asp_tags Off Off > auto_append_file /no value/ /no value/ > auto_globals_jit On On > auto_prepend_file /no value/ /no value/ > browscap /no value/ /no value/ > default_charset /no value/ /no value/ > default_mimetype text/html text/html > define_syslog_variables Off Off > disable_classes /no value/ /no value/ > disable_functions /no value/ /no value/ > display_errors On On > display_startup_errors On On > doc_root /no value/ /no value/ > docref_ext /no value/ /no value/ > docref_root /no value/ /no value/ > enable_dl On On > error_append_string /no value/ /no value/ > error_log c:\Program Files\PHP\log\error.log > c:\Program Files\PHP\log\error.log > error_prepend_string /no value/ /no value/ > error_reporting 6143 6143 > expose_php On On > extension_dir C:\Program Files\PHP\ext C:\Program Files\PHP\ext > file_uploads On On > highlight.bg #FFFFFF #FFFFFF > highlight.comment #FF8000 #FF8000 > highlight.default #0000BB #0000BB > highlight.html #000000 #000000 > highlight.keyword #007700 #007700 > highlight.string #DD0000 #DD0000 > html_errors On On > ignore_repeated_errors Off Off > ignore_repeated_source Off Off > ignore_user_abort Off Off > implicit_flush Off Off > include_path .;C:\Program Files\PHP\pear .;C:\Program Files\PHP\pear > log_errors On On > log_errors_max_len 1024 1024 > magic_quotes_gpc Off Off > magic_quotes_runtime Off Off > magic_quotes_sybase Off Off > mail.force_extra_parameters /no value/ /no value/ > max_execution_time 30 30 > max_input_nesting_level 64 64 > max_input_time 60 60 > memory_limit 128M 128M > open_basedir /no value/ /no value/ > output_buffering 4096 4096 > output_handler /no value/ /no value/ > post_max_size 8M 8M > precision 14 14 > realpath_cache_size 16K 16K > realpath_cache_ttl 120 120 > register_argc_argv Off Off > register_globals Off Off > register_long_arrays Off Off > report_memleaks On On > report_zend_debug On On > safe_mode Off Off > safe_mode_exec_dir /no value/ /no value/ > safe_mode_gid Off Off > safe_mode_include_dir /no value/ /no value/ > sendmail_from /no value/ /no value/ > sendmail_path /no value/ /no value/ > serialize_precision 100 100 > short_open_tag Off Off > SMTP localhost localhost > smtp_port 25 25 > sql.safe_mode Off Off > track_errors Off Off > unserialize_callback_func /no value/ /no value/ > upload_max_filesize 2M 2M > upload_tmp_dir C:\WINDOWS\Temp C:\WINDOWS\Temp > user_dir /no value/ /no value/ > variables_order GPCS GPCS > xmlrpc_error_number 0 0 > xmlrpc_errors Off Off > y2k_compliance On On > zend.ze1_compatibility_mode Off Off > > > apache2handler > > Apache Version Apache/2.2.14 (Win32) PHP/5.2.11 > Apache API Version 20051115 > Server Administrator webmaster at dummy-host.aph.local > Hostname:Port setup.localhost:0 > Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100 > Timeouts Connection: 300 - Keep-Alive: 5 > Virtual Server Yes > Server Root C:/Program Files/Apache Software Foundation/Apache2.2 > Loaded Modules core mod_win32 mpm_winnt http_core mod_so mod_actions > mod_alias mod_asis mod_auth_basic mod_authn_default mod_authn_file > mod_authz_default mod_authz_groupfile mod_authz_host mod_authz_user > mod_autoindex mod_cgi mod_dir mod_env mod_include mod_isapi > mod_log_config mod_mime mod_mime_magic mod_negotiation mod_rewrite > mod_setenvif mod_php5 > > > Directive Local Value Master Value > engine 1 1 > last_modified 0 0 > xbithack 0 0 > > > Apache Environment > > Variable Value > HTTP_HOST setup.localhost > HTTP_USER_AGENT Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; > rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729) > HTTP_ACCEPT > text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5 > HTTP_ACCEPT_ENCODING gzip,deflate > HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7 > HTTP_KEEP_ALIVE 300 > HTTP_CONNECTION keep-alive > HTTP_COOKIE DokuWiki=u4so62tbq16vm5euj37cdo2p17 > PATH C:\Program > Files\PHP\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program > Files\System Center Operations Manager > 2007\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\ATI > Technologies\ATI.ACE\Core-Static;C:\Program Files\MySQL\MySQL Server > 5.1\bin;C:\Program Files\QuickTime\QTSystem\ > SystemRoot C:\WINDOWS > COMSPEC C:\WINDOWS\system32\cmd.exe > PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1 > WINDIR C:\WINDOWS > SERVER_SIGNATURE
Apache/2.2.14 (Win32) PHP/5.2.11 Server at > setup.localhost Port 80
> SERVER_SOFTWARE Apache/2.2.14 (Win32) PHP/5.2.11 > SERVER_NAME setup.localhost > SERVER_ADDR 10.34.1.207 > SERVER_PORT 80 > REMOTE_ADDR 10.34.1.207 > DOCUMENT_ROOT C:/Documents and Settings/anoland/My > Documents/projects/setup/htdocs > SERVER_ADMIN webmaster at dummy-host.aph.local > SCRIPT_FILENAME C:/Documents and Settings/anoland/My > Documents/projects/setup/htdocs/phpinfo.php > REMOTE_PORT 4409 > GATEWAY_INTERFACE CGI/1.1 > SERVER_PROTOCOL HTTP/1.1 > REQUEST_METHOD GET > QUERY_STRING /no value/ > REQUEST_URI /phpinfo.php > SCRIPT_NAME /phpinfo.php > > > HTTP Headers Information > > HTTP Request Headers > HTTP Request GET /phpinfo.php HTTP/1.1 > Host setup.localhost > User-Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; > rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729) > Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > Accept-Language en-us,en;q=0.5 > Accept-Encoding gzip,deflate > Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 > Keep-Alive 300 > Connection keep-alive > Cookie DokuWiki=u4so62tbq16vm5euj37cdo2p17 > HTTP Response Headers > X-Powered-By PHP/5.2.11 > Keep-Alive timeout=5, max=100 > Connection Keep-Alive > Transfer-Encoding chunked > Content-Type text/html > > > bcmath > > BCMath support enabled > > > bz2 > > BZip2 Support Enabled > Stream Wrapper support compress.bz2:// > Stream Filter support bzip2.decompress, bzip2.compress > BZip2 Version 1.0.2, 30-Dec-2001 > > > calendar > > Calendar support enabled > > > com_dotnet > > COM support enabled > DCOM support disabled > .Net support enabled > > > Directive Local Value Master Value > com.allow_dcom 0 0 > com.autoregister_casesensitive 1 1 > com.autoregister_typelib 0 0 > com.autoregister_verbose 0 0 > com.code_page /no value/ /no value/ > com.typelib_file /no value/ /no value/ > > > ctype > > ctype functions enabled > > > curl > > cURL support enabled > cURL Information libcurl/7.19.6 OpenSSL/0.9.8k zlib/1.2.3 > > > date > > date/time support enabled > "Olson" Timezone Database Version 2009.13 > Timezone Database internal > Default timezone US/Central > > > Directive Local Value Master Value > date.default_latitude 31.7667 31.7667 > date.default_longitude 35.2333 35.2333 > date.sunrise_zenith 90.583333 90.583333 > date.sunset_zenith 90.583333 90.583333 > date.timezone US/Central US/Central > > > dom > > DOM/XML enabled > DOM/XML API Version 20031129 > libxml Version 2.7.3 > HTML Support enabled > XPath Support enabled > XPointer Support enabled > Schema Support enabled > RelaxNG Support enabled > > > fdf > > FDF Support enabled > FdfTk Version 5.0 > > > filter > > Input Validation and Filtering enabled > Revision $Revision: 288083 $ > > > Directive Local Value Master Value > filter.default unsafe_raw unsafe_raw > filter.default_flags /no value/ /no value/ > > > ftp > > FTP support enabled > > > gd > > GD Support enabled > GD Version bundled (2.0.34 compatible) > FreeType Support enabled > FreeType Linkage with freetype > FreeType Version 2.1.9 > T1Lib Support enabled > GIF Read Support enabled > GIF Create Support enabled > JPG Support enabled > PNG Support enabled > WBMP Support enabled > XBM Support enabled > > > gettext > > GetText Support enabled > > > hash > > hash support enabled > Hashing Engines md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 > ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 > tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 > crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 > haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 > haval160,5 haval192,5 haval224,5 haval256,5 > > > iconv > > iconv support enabled > iconv implementation "libiconv" > iconv library version 1.11 > > > Directive Local Value Master Value > iconv.input_encoding ISO-8859-1 ISO-8859-1 > iconv.internal_encoding ISO-8859-1 ISO-8859-1 > iconv.output_encoding ISO-8859-1 ISO-8859-1 > > > imap > > IMAP c-Client Version 2004 > SSL Support enabled > > > json > > json support enabled > json version 1.2.1 > > > ldap > > LDAP Support enabled > RCS Version $Id: ldap.c 287936 2009-09-01 08:42:10Z patrickallaert $ > Total Links 0/unlimited > API Version 2004 > Vendor Name OpenLDAP > Vendor Version 0 > > > libxml > > libXML support active > libXML Version 2.7.3 > libXML streams enabled > > > mbstring > > Multibyte Support enabled > Multibyte string engine libmbfl > Multibyte (japanese) regex support enabled > Multibyte regex (oniguruma) version 4.4.4 > Multibyte regex (oniguruma) backtrack check On > > > mbstring extension makes use of "streamable kanji code filter and > converter", which is distributed under the GNU Lesser General Public > License version 2.1. > > > Directive Local Value Master Value > mbstring.detect_order /no value/ /no value/ > mbstring.encoding_translation Off Off > mbstring.func_overload 0 0 > mbstring.http_input pass pass > mbstring.http_output pass pass > mbstring.internal_encoding /no value/ /no value/ > mbstring.language neutral neutral > mbstring.strict_detection Off Off > mbstring.substitute_character /no value/ /no value/ > > > mcrypt > > mcrypt support enabled > Version 2.5.7 > Api No 20021217 > Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 > loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 > serpent xtea blowfish enigma rc2 tripledes > Supported modes cbc cfb ctr ecb ncfb nofb ofb stream > > > Directive Local Value Master Value > mcrypt.algorithms_dir /no value/ /no value/ > mcrypt.modes_dir /no value/ /no value/ > > > memcache > > memcache support enabled > Active persistent connections 0 > Version 2.2.5 > Revision $Revision: 1.113 $ > > > Directive Local Value Master Value > memcache.allow_failover 1 1 > memcache.chunk_size 8192 8192 > memcache.default_port 11211 11211 > memcache.default_timeout_ms 1000 1000 > memcache.hash_function crc32 crc32 > memcache.hash_strategy standard standard > memcache.max_failover_attempts 20 20 > > > mhash > > MHASH support Enabled > MHASH API Version 20020524 > > > mime_magic > > mime_magic support > > > Directive Local Value Master Value > mime_magic.debug Off Off > mime_magic.magicfile C:\php5\magic.mime C:\php5\magic.mime > > > ming > > Ming SWF output library enabled > Version 0.3beta1 > > > mysql > > MySQL Support enabled > Active Persistent Links 0 > Active Links 0 > Client API version 5.0.51a > > > Directive Local Value Master Value > mysql.allow_persistent On On > mysql.connect_timeout 60 60 > mysql.default_host /no value/ /no value/ > mysql.default_password /no value/ /no value/ > mysql.default_port /no value/ /no value/ > mysql.default_socket /no value/ /no value/ > mysql.default_user /no value/ /no value/ > mysql.max_links Unlimited Unlimited > mysql.max_persistent Unlimited Unlimited > mysql.trace_mode Off Off > > > mysqli > > MysqlI Support enabled > Client API library version 5.0.51a > Client API header version 5.0.51a > MYSQLI_SOCKET /tmp/mysql.sock > > > Directive Local Value Master Value > mysqli.default_host /no value/ /no value/ > mysqli.default_port 3306 3306 > mysqli.default_pw /no value/ /no value/ > mysqli.default_socket /no value/ /no value/ > mysqli.default_user /no value/ /no value/ > mysqli.max_links Unlimited Unlimited > mysqli.reconnect Off Off > > > odbc > > ODBC Support enabled > Active Persistent Links 0 > Active Links 0 > ODBC library Win32 > > > Directive Local Value Master Value > odbc.allow_persistent On On > odbc.check_persistent On On > odbc.default_cursortype Static cursor Static cursor > odbc.default_db /no value/ /no value/ > odbc.default_pw /no value/ /no value/ > odbc.default_user /no value/ /no value/ > odbc.defaultbinmode return as is return as is > odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes > odbc.max_links Unlimited Unlimited > odbc.max_persistent Unlimited Unlimited > > > openssl > > OpenSSL support enabled > OpenSSL Version OpenSSL 0.9.8k 25 Mar 2009 > > > pcre > > PCRE (Perl Compatible Regular Expressions) Support enabled > PCRE Library Version 7.9 2009-04-11 > > > Directive Local Value Master Value > pcre.backtrack_limit 100000 100000 > pcre.recursion_limit 100000 100000 > > > PDO > > PDO support enabled > PDO drivers mysql, sqlite, sqlite2 > > > pdo_mysql > > PDO Driver for MySQL, client library version 5.0.51a > > > pdo_sqlite > > PDO Driver for SQLite 3.x enabled > PECL Module version 1.0.1 $Id: pdo_sqlite.c 272374 2008-12-31 > 11:17:49Z sebastian $ > SQLite Library 3.3.7undefined > > > pspell > > PSpell Support enabled > > > Reflection > > Reflection enabled > Version $Id: php_reflection.c 287991 2009-09-03 14:02:51Z sebastian $ > > > session > > Session Support enabled > Registered save handlers files user sqlite memcache > Registered serializer handlers php php_binary wddx > > > Directive Local Value Master Value > session.auto_start Off Off > session.bug_compat_42 Off 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_httponly Off Off > 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 PHPSESSID PHPSESSID > session.referer_check /no value/ /no value/ > session.save_handler files files > session.save_path /no value/ /no value/ > session.serialize_handler php php > session.use_cookies On On > session.use_only_cookies Off Off > session.use_trans_sid 0 0 > > > shmop > > shmop support enabled > > > SimpleXML > > Simplexml support enabled > Revision $Revision: 272374 $ > Schema support enabled > > > soap > > Soap Client enabled > Soap Server enabled > > > Directive Local Value Master Value > soap.wsdl_cache 1 1 > soap.wsdl_cache_dir /tmp /tmp > soap.wsdl_cache_enabled 1 1 > soap.wsdl_cache_limit 5 5 > soap.wsdl_cache_ttl 86400 86400 > > > sockets > > Sockets Support enabled > > > SPL > > SPL support enabled > Interfaces Countable, OuterIterator, RecursiveIterator, > SeekableIterator, SplObserver, SplSubject > Classes AppendIterator, ArrayIterator, ArrayObject, > BadFunctionCallException, BadMethodCallException, CachingIterator, > DirectoryIterator, DomainException, EmptyIterator, FilterIterator, > InfiniteIterator, InvalidArgumentException, IteratorIterator, > LengthException, LimitIterator, LogicException, NoRewindIterator, > OutOfBoundsException, OutOfRangeException, OverflowException, > ParentIterator, RangeException, RecursiveArrayIterator, > RecursiveCachingIterator, RecursiveDirectoryIterator, > RecursiveFilterIterator, RecursiveIteratorIterator, > RecursiveRegexIterator, RegexIterator, RuntimeException, > SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, > SplTempFileObject, UnderflowException, UnexpectedValueException > > > SQLite > > SQLite support enabled > PECL Module version 2.0-dev $Id: sqlite.c 282740 2009-06-25 00:07:20Z > scottmac $ > SQLite Library 2.8.17 > SQLite Encoding iso8859 > > > Directive Local Value Master Value > sqlite.assoc_case 0 0 > > > standard > > Regex Library Bundled library enabled > Dynamic Library Support enabled > Internal Sendmail Support for Windows enabled > > > Directive Local Value Master Value > assert.active 1 1 > assert.bail 0 0 > assert.callback /no value/ /no value/ > assert.quiet_eval 0 0 > assert.warning 1 1 > auto_detect_line_endings 0 0 > default_socket_timeout 60 60 > safe_mode_allowed_env_vars PHP_ PHP_ > safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH > url_rewriter.tags > a=href,area=href,frame=src,input=src,form=fakeentry > a=href,area=href,frame=src,input=src,form=fakeentry > user_agent /no value/ /no value/ > > > tidy > > Tidy support enabled > libTidy Release 15 August 2007 > Extension Version 2.0 ($Id: tidy.c 272374 2008-12-31 11:17:49Z > sebastian $) > > > Directive Local Value Master Value > tidy.clean_output /no value/ /no value/ > tidy.default_config /no value/ /no value/ > > > tokenizer > > Tokenizer Support enabled > > > wddx > > WDDX Support enabled > WDDX Session Serializer enabled > > > XCache > > XCache Support enabled > Version 1.2.2 > Modules Built cacher coverager > Readonly Protection N/A > Opcode Cache disabled > Variable Cache disabled > Shared Memory Schemes mmap > Coverage Auto Dumper disabled > > > Directive Local Value Master Value > xcache.admin.enable_auth On On > xcache.cacher On On > xcache.coredump_directory /no value/ /no value/ > xcache.count 1 1 > xcache.coveragedump_directory /no value/ /no value/ > xcache.coverager Off Off > xcache.gc_interval 0 0 > xcache.mmap_path /dev/zero /dev/zero > xcache.readonly_protection /no value/ /no value/ > xcache.shm_scheme mmap mmap > xcache.size 0M 0M > xcache.slots 8K 8K > xcache.stat On On > xcache.test /no value/ /no value/ > xcache.ttl 0 0 > xcache.var_count 1 1 > xcache.var_gc_interval 300 300 > xcache.var_maxttl 0 0 > xcache.var_size 0M 0M > xcache.var_slots 8K 8K > xcache.var_ttl 0 0 > > > xdebug > > xdebug support enabled > Version 2.0.5 > > > Supported protocols Revision > DBGp - Common DeBuGger Protocol $Revision: 1.125.2.6 $ > GDB - GNU Debugger protocol $Revision: 1.87 $ > PHP3 - PHP 3 Debugger protocol $Revision: 1.22 $ > > > Directive Local Value Master Value > xdebug.auto_trace Off Off > xdebug.collect_includes On On > xdebug.collect_params 0 0 > xdebug.collect_return Off Off > xdebug.collect_vars Off Off > xdebug.default_enable On On > xdebug.dump.COOKIE /no value/ /no value/ > xdebug.dump.ENV /no value/ /no value/ > xdebug.dump.FILES /no value/ /no value/ > xdebug.dump.GET /no value/ /no value/ > xdebug.dump.POST /no value/ /no value/ > xdebug.dump.REQUEST /no value/ /no value/ > xdebug.dump.SERVER /no value/ /no value/ > xdebug.dump.SESSION /no value/ /no value/ > xdebug.dump_globals On On > xdebug.dump_once On On > xdebug.dump_undefined Off Off > xdebug.extended_info On On > xdebug.idekey ECLIPSE_DBGP ECLIPSE_DBGP > xdebug.manual_url http://www.php.net http://www.php.net > xdebug.max_nesting_level 100 100 > xdebug.profiler_aggregate Off Off > xdebug.profiler_append Off Off > xdebug.profiler_enable Off Off > xdebug.profiler_enable_trigger Off Off > xdebug.profiler_output_dir /tmp /tmp > xdebug.profiler_output_name cachegrind.out.%p cachegrind.out.%p > xdebug.remote_autostart Off Off > xdebug.remote_enable On On > xdebug.remote_handler dbgp dbgp > xdebug.remote_host localhost localhost > xdebug.remote_log /no value/ /no value/ > xdebug.remote_mode req req > xdebug.remote_port 9000 9000 > xdebug.show_exception_trace Off Off > xdebug.show_local_vars Off Off > xdebug.show_mem_delta Off Off > xdebug.trace_format 0 0 > xdebug.trace_options 0 0 > xdebug.trace_output_dir /tmp /tmp > xdebug.trace_output_name trace.%c trace.%c > xdebug.var_display_max_children 128 128 > xdebug.var_display_max_data 512 512 > xdebug.var_display_max_depth 3 3 > > > xml > > XML Support active > XML Namespace Support active > libxml2 Version 2.7.3 > > > xmlreader > > XMLReader enabled > > > xmlrpc > > core library version xmlrpc-epi v. 0.51 > php extension version 0.51 > author Dan Libby > homepage http://xmlrpc-epi.sourceforge.net > open sourced by Epinions.com > > > xmlwriter > > XMLWriter enabled > > > xsl > > XSL enabled > libxslt Version 1.1.23 > libxslt compiled against libxml Version 2.6.32 > EXSLT enabled > libexslt Version 0.8.13 > > > zip > > Zip enabled > Extension Version $Id: php_zip.c 287723 2009-08-26 02:16:41Z guenter $ > Zip version 1.8.11 > Libzip version 0.9.0 > > > zlib > > ZLib Support enabled > Stream Wrapper support compress.zlib:// > Stream Filter support zlib.inflate, zlib.deflate > Compiled Version 1.2.3 > Linked Version 1.2.3 > > > Directive Local Value Master Value > zlib.output_compression Off Off > zlib.output_compression_level -1 -1 > zlib.output_handler /no value/ /no value/ > > > Additional Modules > > Module Name > ionCube Loader > > > Environment > > Variable Value > ALLUSERSPROFILE C:\Documents and Settings\All Users > CLASSPATH .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip > CommonProgramFiles C:\Program Files\Common Files > COMPUTERNAME KC-DEVPHP-07 > ComSpec C:\WINDOWS\system32\cmd.exe > FP_NO_HOST_CHECK NO > NUMBER_OF_PROCESSORS 2 > OS Windows_NT > Path C:\Program > Files\PHP\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program > Files\System Center Operations Manager > 2007\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\ATI > Technologies\ATI.ACE\Core-Static;C:\Program Files\MySQL\MySQL Server > 5.1\bin;C:\Program Files\QuickTime\QTSystem\ > PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1 > PHPRC C:\Program Files\PHP\ > PROCESSOR_ARCHITECTURE x86 > PROCESSOR_IDENTIFIER x86 Family 15 Model 4 Stepping 9, GenuineIntel > PROCESSOR_LEVEL 15 > PROCESSOR_REVISION 0409 > ProgramFiles C:\Program Files > QTJAVA C:\Program Files\Java\jre6\lib\ext\QTJava.zip > SystemDrive C: > SystemRoot C:\WINDOWS > TEMP C:\WINDOWS\TEMP > TMP C:\WINDOWS\TEMP > USERPROFILE C:\Documents and Settings\LocalService > windir C:\WINDOWS > AP_PARENT_PID 2504 > > > PHP Variables > > Variable Value > _REQUEST["DokuWiki"] u4so62tbq16vm5euj37cdo2p17 > _COOKIE["DokuWiki"] u4so62tbq16vm5euj37cdo2p17 > _SERVER["HTTP_HOST"] setup.localhost > _SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows; U; Windows NT 5.1; > en-US; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6 (.NET CLR 3.5.30729) > _SERVER["HTTP_ACCEPT"] > text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 > _SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.5 > _SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate > _SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7 > _SERVER["HTTP_KEEP_ALIVE"] 300 > _SERVER["HTTP_CONNECTION"] keep-alive > _SERVER["HTTP_COOKIE"] DokuWiki=u4so62tbq16vm5euj37cdo2p17 > _SERVER["PATH"] C:\Program > Files\PHP\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program > Files\System Center Operations Manager > 2007\;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\ATI > Technologies\ATI.ACE\Core-Static;C:\Program Files\MySQL\MySQL Server > 5.1\bin;C:\Program Files\QuickTime\QTSystem\ > _SERVER["SystemRoot"] C:\WINDOWS > _SERVER["COMSPEC"] C:\WINDOWS\system32\cmd.exe > _SERVER["PATHEXT"] > .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1 > _SERVER["WINDIR"] C:\WINDOWS > _SERVER["SERVER_SIGNATURE"]
Apache/2.2.14 (Win32) PHP/5.2.11 > Server at setup.localhost Port 80
> _SERVER["SERVER_SOFTWARE"] Apache/2.2.14 (Win32) PHP/5.2.11 > _SERVER["SERVER_NAME"] setup.localhost > _SERVER["SERVER_ADDR"] 10.34.1.207 > _SERVER["SERVER_PORT"] 80 > _SERVER["REMOTE_ADDR"] 10.34.1.207 > _SERVER["DOCUMENT_ROOT"] C:/Documents and Settings/anoland/My > Documents/projects/setup/htdocs > _SERVER["SERVER_ADMIN"] webmaster at dummy-host.aph.local > _SERVER["SCRIPT_FILENAME"] C:/Documents and Settings/anoland/My > Documents/projects/setup/htdocs/phpinfo.php > _SERVER["REMOTE_PORT"] 4409 > _SERVER["GATEWAY_INTERFACE"] CGI/1.1 > _SERVER["SERVER_PROTOCOL"] HTTP/1.1 > _SERVER["REQUEST_METHOD"] GET > _SERVER["QUERY_STRING"] /no value/ > _SERVER["REQUEST_URI"] /phpinfo.php > _SERVER["SCRIPT_NAME"] /phpinfo.php > _SERVER["PHP_SELF"] /phpinfo.php > _SERVER["REQUEST_TIME"] 1261166336 > > > PHP License > > This program is free software; you can redistribute it and/or modify > it under the terms of the PHP License as published by the PHP Group > and included in the distribution in the file: LICENSE > > This program is distributed in the hope that it will be useful, but > WITHOUT ANY WARRANTY; without even the implied warranty of > MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > If you did not receive a copy of the PHP license, or have any > questions about PHP licensing, please contact license at php.net. > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From lists at zaunere.com Tue Dec 22 16:06:28 2009 From: lists at zaunere.com (Hans Zaunere) Date: Tue, 22 Dec 2009 16:06:28 -0500 Subject: [nycphp-talk] How Programming Language Fanboys See Each Other's Language Message-ID: <027d01ca834a$a14124a0$e3c36de0$@com> Just thought this would put a nice tie on the new year :) http://www.bootup.io/img/auximg/developers-as-seen-by.jpg H From alexchan.1976 at gmail.com Tue Dec 22 16:08:23 2009 From: alexchan.1976 at gmail.com (Alex C) Date: Tue, 22 Dec 2009 16:08:23 -0500 Subject: [nycphp-talk] How Programming Language Fanboys See Each Other's Language In-Reply-To: <027d01ca834a$a14124a0$e3c36de0$@com> References: <027d01ca834a$a14124a0$e3c36de0$@com> Message-ID: <8f494f760912221308j41acede1t75beb2d05efa123d@mail.gmail.com> I love that.. On Tue, Dec 22, 2009 at 4:06 PM, Hans Zaunere wrote: > Just thought this would put a nice tie on the new year :) > > http://www.bootup.io/img/auximg/developers-as-seen-by.jpg > > > H > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- alexchan.1976 at gmail.com (347) 688-8491 From chsnyder at gmail.com Tue Dec 22 16:11:40 2009 From: chsnyder at gmail.com (Chris Snyder) Date: Tue, 22 Dec 2009 16:11:40 -0500 Subject: [nycphp-talk] How Programming Language Fanboys See Each Other's Language In-Reply-To: <027d01ca834a$a14124a0$e3c36de0$@com> References: <027d01ca834a$a14124a0$e3c36de0$@com> Message-ID: On Tue, Dec 22, 2009 at 4:06 PM, Hans Zaunere wrote: > Just thought this would put a nice tie on the new year :) > > http://www.bootup.io/img/auximg/developers-as-seen-by.jpg > > Oh crap, I think I should be using Ruby instead. From mitch.pirtle at gmail.com Tue Dec 22 16:33:27 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Tue, 22 Dec 2009 16:33:27 -0500 Subject: [nycphp-talk] How Programming Language Fanboys See Each Other's Language In-Reply-To: <027d01ca834a$a14124a0$e3c36de0$@com> References: <027d01ca834a$a14124a0$e3c36de0$@com> Message-ID: <330532b60912221333t7730bd1agb58c58a780a0aae2@mail.gmail.com> On Tue, Dec 22, 2009 at 4:06 PM, Hans Zaunere wrote: > Just thought this would put a nice tie on the new year :) > > http://www.bootup.io/img/auximg/developers-as-seen-by.jpg Made me snort. Well done. -- Mitch From jbaltz at altzman.com Tue Dec 22 17:06:39 2009 From: jbaltz at altzman.com (Jerry B. Altzman) Date: Tue, 22 Dec 2009 17:06:39 -0500 Subject: [nycphp-talk] How Programming Language Fanboys See Each Other's Language In-Reply-To: <027d01ca834a$a14124a0$e3c36de0$@com> References: <027d01ca834a$a14124a0$e3c36de0$@com> Message-ID: <4B3142EF.3060809@altzman.com> on 12/22/2009 4:06 PM Hans Zaunere said the following: > Just thought this would put a nice tie on the new year :) > http://www.bootup.io/img/auximg/developers-as-seen-by.jpg an extension http://i.imgur.com/hF6mS.jpg written by ... one particular fanboi (not me!) > H //jbaltz -- jerry b. altzman jbaltz at altzman.com www.jbaltz.com thank you for contributing to the heat death of the universe. From yogesh.agashe at gmail.com Tue Dec 22 17:12:18 2009 From: yogesh.agashe at gmail.com (Yogesh Agashe) Date: Tue, 22 Dec 2009 14:12:18 -0800 Subject: [nycphp-talk] How Programming Language Fanboys See Each Other's Language In-Reply-To: <027d01ca834a$a14124a0$e3c36de0$@com> References: <027d01ca834a$a14124a0$e3c36de0$@com> Message-ID: <8833e50b0912221412v2fb38401v3360a0d93f13dada@mail.gmail.com> Loved it. Thanks for sharing. --Yogesh On Tue, Dec 22, 2009 at 1:06 PM, Hans Zaunere wrote: > Just thought this would put a nice tie on the new year :) > > http://www.bootup.io/img/auximg/developers-as-seen-by.jpg > > > H > > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From mitch.pirtle at gmail.com Tue Dec 22 20:22:44 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Tue, 22 Dec 2009 20:22:44 -0500 Subject: [nycphp-talk] How Programming Language Fanboys See Each Other's Language In-Reply-To: <4B3142EF.3060809@altzman.com> References: <027d01ca834a$a14124a0$e3c36de0$@com> <4B3142EF.3060809@altzman.com> Message-ID: <330532b60912221722j18040090m590ca82dc2a439a@mail.gmail.com> On Tue, Dec 22, 2009 at 5:06 PM, Jerry B. Altzman wrote: > on 12/22/2009 4:06 PM Hans Zaunere said the following: >> >> Just thought this would put a nice tie on the new year :) >> http://www.bootup.io/img/auximg/developers-as-seen-by.jpg > > an extension http://i.imgur.com/hF6mS.jpg > > written by ... one particular fanboi (not me!) They got the Haskell column all wrong - or every row except the bottom the image should have been: http://bit.ly/7UWnOu Just sayin'. -- Mitch From jmcgraw1 at gmail.com Tue Dec 22 21:14:15 2009 From: jmcgraw1 at gmail.com (Jake McGraw) Date: Tue, 22 Dec 2009 21:14:15 -0500 Subject: [nycphp-talk] How Programming Language Fanboys See Each Other's Language In-Reply-To: <330532b60912221722j18040090m590ca82dc2a439a@mail.gmail.com> References: <027d01ca834a$a14124a0$e3c36de0$@com> <4B3142EF.3060809@altzman.com> <330532b60912221722j18040090m590ca82dc2a439a@mail.gmail.com> Message-ID: On Tue, Dec 22, 2009 at 8:22 PM, Mitch Pirtle wrote: > On Tue, Dec 22, 2009 at 5:06 PM, Jerry B. Altzman wrote: >> on 12/22/2009 4:06 PM Hans Zaunere said the following: >>> >>> Just thought this would put a nice tie on the new year :) >>> http://www.bootup.io/img/auximg/developers-as-seen-by.jpg My response for C#/.NET developers: http://jakemcgraw.com/imgs/langs.jpg - jake >> >> an extension http://i.imgur.com/hF6mS.jpg >> >> written by ... one particular fanboi (not me!) > > They got the Haskell column all wrong - or every row except the bottom > the image should have been: > > ?http://bit.ly/7UWnOu > > Just sayin'. > > -- Mitch > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From allen at TwoMiceAndAStrawberry.com Tue Dec 22 21:25:16 2009 From: allen at TwoMiceAndAStrawberry.com (Allen Shaw) Date: Tue, 22 Dec 2009 20:25:16 -0600 Subject: [nycphp-talk] How Programming Language Fanboys See Each Other's Language In-Reply-To: References: <027d01ca834a$a14124a0$e3c36de0$@com> <4B3142EF.3060809@altzman.com> <330532b60912221722j18040090m590ca82dc2a439a@mail.gmail.com> Message-ID: <4B317F8C.1050609@TwoMiceAndAStrawberry.com> Jake McGraw wrote: > My response for C#/.NET developers: > > http://jakemcgraw.com/imgs/langs.jpg > Jake, I didn't see that last column at all for a bit -- now /that/ was LOL funny. - A. -- Allen Shaw TwoMiceAndAStrawberry.com "Data Management, Web Applications, and the Meaning of Life" From kkrutoi at gmail.com Thu Dec 24 15:52:49 2009 From: kkrutoi at gmail.com (Konstantin K) Date: Thu, 24 Dec 2009 15:52:49 -0500 Subject: [nycphp-talk] cheapest and best way to server 1TB worth of data per month Message-ID: <7173a2fc0912241252h4fa22ee2nb4ec7774f603e18a@mail.gmail.com> Hey guys, I need some expert advice. Let's say I have about 2MB of static data (images, css, js) and I need to serve about 1TB worth of it per month to users who visit this site. I know that means at least 500,000 page views per month (not considering browsers caching images, etc). What's the cheapest (but still fast) way to serve 1TB worth of static data per month? A) AWS S3 I think this comes out to about $180/month. B) dedicated server With nginx or lighttpd C) shared hosting godaddy? D) ??? Thanks, Konstantin -------------- next part -------------- An HTML attachment was scrubbed... URL: From kkrutoi at gmail.com Thu Dec 24 16:36:48 2009 From: kkrutoi at gmail.com (Konstantin K) Date: Thu, 24 Dec 2009 16:36:48 -0500 Subject: [nycphp-talk] cheapest and best way to server 1TB worth of data per month In-Reply-To: <7173a2fc0912241252h4fa22ee2nb4ec7774f603e18a@mail.gmail.com> References: <7173a2fc0912241252h4fa22ee2nb4ec7774f603e18a@mail.gmail.com> Message-ID: <7173a2fc0912241336g1b01784wd395acf9d134a92c@mail.gmail.com> looks like godaddy has unlimited plan for $15/month! or 1.5TB/month for $7/month any comments on this? On Thu, Dec 24, 2009 at 3:52 PM, Konstantin K wrote: > Hey guys, > > I need some expert advice. > > Let's say I have about 2MB of static data (images, css, js) and I need > to serve about 1TB worth of it per month to users who visit this site. > I know that means at least 500,000 page views per month (not > considering browsers caching images, etc). > > What's the cheapest (but still fast) way to serve 1TB worth of static > data per month? > A) AWS S3 > I think this comes out to about $180/month. > B) dedicated server > With nginx or lighttpd > > C) shared hosting > godaddy? > D) ??? > > Thanks, > Konstantin > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rolan at omnistep.com Thu Dec 24 16:46:27 2009 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 24 Dec 2009 16:46:27 -0500 Subject: [nycphp-talk] cheapest and best way to server 1TB worth of data per month In-Reply-To: <7173a2fc0912241252h4fa22ee2nb4ec7774f603e18a@mail.gmail.com> References: <7173a2fc0912241252h4fa22ee2nb4ec7774f603e18a@mail.gmail.com> Message-ID: <4B33E133.70400@omnistep.com> Konstantin K wrote: > Hey guys, > > I need some expert advice. > > Let's say I have about 2MB of static data (images, css, js) and I need > to serve about 1TB worth of it per month to users who visit this site. > I know that means at least 500,000 page views per month (not > considering browsers caching images, etc). > > What's the cheapest (but still fast) way to serve 1TB worth of static > data per month? > A) AWS S3 > I think this comes out to about $180/month. > B) dedicated server > With nginx or lighttpd > > C) shared hosting > godaddy? > D) ??? > > Thanks, > Konstantin D) Can you post the images to flickr or another free image hosting service and link directly to the images? That would be free and I don't think there's any cheaper unless you get paid. :) ~Rolan From davidalanroth at gmail.com Thu Dec 24 17:12:17 2009 From: davidalanroth at gmail.com (David Roth) Date: Thu, 24 Dec 2009 17:12:17 -0500 Subject: [nycphp-talk] cheapest and best way to server 1TB worth of data per month In-Reply-To: <7173a2fc0912241336g1b01784wd395acf9d134a92c@mail.gmail.com> References: <7173a2fc0912241252h4fa22ee2nb4ec7774f603e18a@mail.gmail.com> <7173a2fc0912241336g1b01784wd395acf9d134a92c@mail.gmail.com> Message-ID: <642abf2e0912241412l2a527234r4654605c8509f250@mail.gmail.com> Considering you are talking about half a million page views a month and you want it to be fast, I wouldn't consider the shared hosting options. I say this from experience of using shared hosting services where performance can take a hit from other heavy users on the same box. I think I'd explore the dedicated server options. Do you expect to have steady traffic on the web site, or spikes? With spikes it might be better to use AWS S3, if it's cost effective and it can ramp up quickly enough to handle the increase in traffic. Hope this helps! David Roth On Thu, Dec 24, 2009 at 4:36 PM, Konstantin K wrote: > looks like godaddy has unlimited plan for $15/month! or 1.5TB/month for > $7/month > > any comments on this? > > > On Thu, Dec 24, 2009 at 3:52 PM, Konstantin K wrote: >> >> Hey guys, >> >> I need some expert advice. >> >> Let's say I have about 2MB of static data (images, css, js) and I need >> to serve about 1TB worth of it per month to users who visit this site. >> ?I know that means at least 500,000 page views per month (not >> considering browsers caching images, etc). >> >> What's the cheapest (but still fast) way to serve 1TB worth of static >> data ?per month? >> A) AWS S3 >> ???? I think this comes out to about $180/month. >> B) dedicated server >> ???? With nginx or lighttpd >> C) shared hosting >> ???? godaddy? >> D) ??? >> >> Thanks, >> Konstantin From edwardpotter at gmail.com Fri Dec 25 16:31:44 2009 From: edwardpotter at gmail.com (Edward Potter) Date: Fri, 25 Dec 2009 16:31:44 -0500 Subject: [nycphp-talk] cheapest and best way to server 1TB worth of data per month In-Reply-To: <7173a2fc0912241336g1b01784wd395acf9d134a92c@mail.gmail.com> References: <7173a2fc0912241252h4fa22ee2nb4ec7774f603e18a@mail.gmail.com> <7173a2fc0912241336g1b01784wd395acf9d134a92c@mail.gmail.com> Message-ID: i think the advantage of S3 is now you have to learn S3. That knowledge could be worth millions to your down the road. Think big! I have seen some cloud/iphone integrated code, just about zero wait times to deliver some heavy graphics manipulations over the network. I was pretty amazed at the speeds. (PS Godaddy will probably be fine) :-) On Thu, Dec 24, 2009 at 4:36 PM, Konstantin K wrote: > looks like godaddy has unlimited plan for $15/month! or 1.5TB/month for > $7/month > > any comments on this? > > > > On Thu, Dec 24, 2009 at 3:52 PM, Konstantin K wrote: > >> Hey guys, >> >> I need some expert advice. >> >> Let's say I have about 2MB of static data (images, css, js) and I need >> to serve about 1TB worth of it per month to users who visit this site. >> I know that means at least 500,000 page views per month (not >> considering browsers caching images, etc). >> >> What's the cheapest (but still fast) way to serve 1TB worth of static >> data per month? >> A) AWS S3 >> I think this comes out to about $180/month. >> B) dedicated server >> With nginx or lighttpd >> >> C) shared hosting >> godaddy? >> D) ??? >> >> Thanks, >> Konstantin >> > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -- IM/iChat: ejpusa Links: http://del.icio.us/ejpusa Follow me: http://www.twitter.com/ejpusa Karma: http://www.coderswithconscience.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kkrutoi at gmail.com Fri Dec 25 18:47:00 2009 From: kkrutoi at gmail.com (Konstantin K) Date: Fri, 25 Dec 2009 18:47:00 -0500 Subject: [nycphp-talk] cheapest and best way to server 1TB worth of data per month In-Reply-To: References: <7173a2fc0912241252h4fa22ee2nb4ec7774f603e18a@mail.gmail.com> <7173a2fc0912241336g1b01784wd395acf9d134a92c@mail.gmail.com> Message-ID: <7173a2fc0912251547pd04e1fyb649fca2c9db87bb@mail.gmail.com> Im seriously considering going with SimpleCDN. For about $40/month = 1TB/month, which isn't too bad and there's no extra server to maintain! I'm not sure what the traffic profile will look like, I expect it to be steady with some spikes if we get some publicity... I have the same fear as David, cuz I've had godaddy "transition" my site to a bigger server without notifying me and resulting in a 7 day downtime because I was using too much resources... Edward, what are you saying? You would go with godaddy? On Fri, Dec 25, 2009 at 4:31 PM, Edward Potter wrote: > i think the advantage of S3 is now you have to learn S3. That knowledge > could be worth millions to your down the road. Think big! I have seen some > cloud/iphone integrated code, just about zero wait times to deliver some > heavy graphics manipulations over the network. > > I was pretty amazed at the speeds. > > > (PS Godaddy will probably be fine) :-) > > > > > > On Thu, Dec 24, 2009 at 4:36 PM, Konstantin K wrote: > >> looks like godaddy has unlimited plan for $15/month! or 1.5TB/month for >> $7/month >> >> any comments on this? >> >> >> >> On Thu, Dec 24, 2009 at 3:52 PM, Konstantin K wrote: >> >>> Hey guys, >>> >>> I need some expert advice. >>> >>> Let's say I have about 2MB of static data (images, css, js) and I need >>> to serve about 1TB worth of it per month to users who visit this site. >>> I know that means at least 500,000 page views per month (not >>> considering browsers caching images, etc). >>> >>> What's the cheapest (but still fast) way to serve 1TB worth of static >>> data per month? >>> A) AWS S3 >>> I think this comes out to about $180/month. >>> B) dedicated server >>> With nginx or lighttpd >>> >>> C) shared hosting >>> godaddy? >>> D) ??? >>> >>> Thanks, >>> Konstantin >>> >> >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > > > -- > IM/iChat: ejpusa > Links: http://del.icio.us/ejpusa > Follow me: http://www.twitter.com/ejpusa > Karma: http://www.coderswithconscience.com > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kkrutoi at gmail.com Fri Dec 25 19:29:26 2009 From: kkrutoi at gmail.com (Konstantin K) Date: Fri, 25 Dec 2009 19:29:26 -0500 Subject: [nycphp-talk] run my own mail server or use a 3rd party service? Message-ID: <7173a2fc0912251629k34ae68fcx6643e842991786b6@mail.gmail.com> Hey guys, Another kinda off-topic question but could be relevant to some people here and I know there are a bunch of really smart people on this list, so why not? My site will need to be able to email their users upon certain actions, like most site: - user registration (for account activation) - change email address - forgot password - alerts These emails are NOT FOR MARKETING PURPOSES. IMPORTANT: All emails that need to be sent out will be stored in various tables in a database from which they will be processed and subsequently removed. I think I have only two real options: 1. Run my own my mail servers, using procmail and swiftmailer php package. 2. Use a third-party service to mail my users. I would prefer #2 since that would mean I wouldn't have to: - run and manage another box. - won't have to really worry about configuration/optimization of mail server. - won't have to worry about my emails landing in SPAM directory (or will I still have that problem?) My question is: what 3rd party services are out there that can do this? Thanks for any advice and Merry Christmas and Happy Holidays! Konstantin -------------- next part -------------- An HTML attachment was scrubbed... URL: From leam at reuel.net Fri Dec 25 21:09:08 2009 From: leam at reuel.net (Leam Hall) Date: Fri, 25 Dec 2009 21:09:08 -0500 Subject: [nycphp-talk] run my own mail server or use a 3rd party service? In-Reply-To: <7173a2fc0912251629k34ae68fcx6643e842991786b6@mail.gmail.com> References: <7173a2fc0912251629k34ae68fcx6643e842991786b6@mail.gmail.com> Message-ID: <4B357044.5060201@reuel.net> A mail server is to deal with programs that can't do mail on their own. Doesn't the PHP mail function or the PEAR::mail deal with sending mail without sendmail? Procmail is to sort through mail you as a user receive. I'm a little confused on whether or not you have a full domain hosted or are you setting up your own server? Sorry, it's been a long day. If you are setting up your server to host your own domain, then you can add the mail receipt in the set up. If you're on a hosted domain do they provide a control panel like CPanel or similar to receive mail? Or can you require that users provide off-domain e-mail addresses? Again, I'm a bit muddled from the day. Leam Konstantin K wrote: > Hey guys, > > Another kinda off-topic question but could be relevant to some people here > and I know there are a bunch of really smart people on this list, so why > not? > > My site will need to be able to email their users upon certain actions, like > most site: > - user registration (for account activation) > - change email address > - forgot password > - alerts > > These emails are NOT FOR MARKETING PURPOSES. > > IMPORTANT: All emails that need to be sent out will be stored in various > tables in a database from which they will be processed and subsequently > removed. > > I think I have only two real options: > > 1. Run my own my mail servers, using procmail and swiftmailer php package. > > 2. Use a third-party service to mail my users. > > I would prefer #2 since that would mean I wouldn't have to: > - run and manage another box. > - won't have to really worry about configuration/optimization of mail > server. > - won't have to worry about my emails landing in SPAM directory (or will I > still have that problem?) > > > My question is: what 3rd party services are out there that can do this? > > > Thanks for any advice and Merry Christmas and Happy Holidays! > > Konstantin > > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From kkrutoi at gmail.com Fri Dec 25 23:01:31 2009 From: kkrutoi at gmail.com (Konstantin K) Date: Fri, 25 Dec 2009 23:01:31 -0500 Subject: [nycphp-talk] run my own mail server or use a 3rd party service? In-Reply-To: <4B357044.5060201@reuel.net> References: <7173a2fc0912251629k34ae68fcx6643e842991786b6@mail.gmail.com> <4B357044.5060201@reuel.net> Message-ID: <7173a2fc0912252001jb24db41gc71710142b3a5eed@mail.gmail.com> Sorry, I meant to say postfix, not procmail. I will be hosting the site on multiple dedicated servers. Again, the emails that need to go out will be stored in various tables in a database and be processed by scripts that will use the PHP Swiftmailer package, which uses the postfix MTA. The emails are all to external domains (like yahoo, gmail, hotmail, etc). Konstantin On Friday, December 25, 2009, Leam Hall wrote: > A mail server is to deal with programs that can't do mail on their own. Doesn't the PHP mail function or the PEAR::mail deal with sending mail without sendmail? Procmail is to sort through mail you as a user receive. > > I'm a little confused on whether or not you have a full domain hosted or are you setting up your own server? Sorry, it's been a long day. > > If you are setting up your server to host your own domain, then you can add the mail receipt in the set up. If you're on a hosted domain do they provide a control panel like CPanel or similar to receive mail? Or can you require that users provide off-domain e-mail addresses? > > Again, I'm a bit muddled from the day. > > Leam > > > Konstantin K wrote: > > Hey guys, > > Another kinda off-topic question but could be relevant to some people here > and I know there are a bunch of really smart people on this list, so why > not? > > My site will need to be able to email their users upon certain actions, like > most site: > - user registration (for account activation) > - change email address > - forgot password > - alerts > > These emails are NOT FOR MARKETING PURPOSES. > > IMPORTANT: All emails that need to be sent out will be stored in various > tables in a database from which they will be processed and subsequently > removed. > > I think I have only two real options: > > 1. Run my own my mail servers, using procmail and swiftmailer php package. > > 2. Use a third-party service to mail my users. > > I would prefer #2 since that would mean I wouldn't have to: > - run and manage another box. > - won't have to really worry about configuration/optimization of mail > server. > - won't have to worry about my emails landing in SPAM directory (or will I > still have that problem?) > > > My question is: what 3rd party services are out there that can do this? > > > Thanks for any advice and Merry Christmas and Happy Holidays! > > Konstantin > > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From matt at atopia.net Fri Dec 25 23:07:19 2009 From: matt at atopia.net (matt at atopia.net) Date: Sat, 26 Dec 2009 04:07:19 +0000 Subject: [nycphp-talk] run my own mail server or use a 3rd party service? In-Reply-To: <7173a2fc0912252001jb24db41gc71710142b3a5eed@mail.gmail.com> References: <7173a2fc0912251629k34ae68fcx6643e842991786b6@mail.gmail.com><4B357044.5060201@reuel.net><7173a2fc0912252001jb24db41gc71710142b3a5eed@mail.gmail.com> Message-ID: <1689627536-1261800435-cardhu_decombobulator_blackberry.rim.net-1137394718-@bda188.bisx.prod.on.blackberry> So what exactly are you asking? Either way you're sending mail. You could relay through another smtp server if you want, but that may only have a few small benefits. -----Original Message----- From: Konstantin K Date: Fri, 25 Dec 2009 23:01:31 To: NYPHP Talk Subject: Re: [nycphp-talk] run my own mail server or use a 3rd party service? Sorry, I meant to say postfix, not procmail. I will be hosting the site on multiple dedicated servers. Again, the emails that need to go out will be stored in various tables in a database and be processed by scripts that will use the PHP Swiftmailer package, which uses the postfix MTA. The emails are all to external domains (like yahoo, gmail, hotmail, etc). Konstantin On Friday, December 25, 2009, Leam Hall wrote: > A mail server is to deal with programs that can't do mail on their own. Doesn't the PHP mail function or the PEAR::mail deal with sending mail without sendmail? Procmail is to sort through mail you as a user receive. > > I'm a little confused on whether or not you have a full domain hosted or are you setting up your own server? Sorry, it's been a long day. > > If you are setting up your server to host your own domain, then you can add the mail receipt in the set up. If you're on a hosted domain do they provide a control panel like CPanel or similar to receive mail? Or can you require that users provide off-domain e-mail addresses? > > Again, I'm a bit muddled from the day. > > Leam > > > Konstantin K wrote: > > Hey guys, > > Another kinda off-topic question but could be relevant to some people here > and I know there are a bunch of really smart people on this list, so why > not? > > My site will need to be able to email their users upon certain actions, like > most site: > - user registration (for account activation) > - change email address > - forgot password > - alerts > > These emails are NOT FOR MARKETING PURPOSES. > > IMPORTANT: All emails that need to be sent out will be stored in various > tables in a database from which they will be processed and subsequently > removed. > > I think I have only two real options: > > 1. Run my own my mail servers, using procmail and swiftmailer php package. > > 2. Use a third-party service to mail my users. > > I would prefer #2 since that would mean I wouldn't have to: > - run and manage another box. > - won't have to really worry about configuration/optimization of mail > server. > - won't have to worry about my emails landing in SPAM directory (or will I > still have that problem?) > > > My question is: what 3rd party services are out there that can do this? > > > Thanks for any advice and Merry Christmas and Happy Holidays! > > Konstantin > > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > _______________________________________________ New York PHP Users Group Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org/Show-Participation From ajai at bitblit.net Fri Dec 25 23:34:24 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Fri, 25 Dec 2009 23:34:24 -0500 (EST) Subject: [nycphp-talk] run my own mail server or use a 3rd party service? In-Reply-To: <4B357044.5060201@reuel.net> Message-ID: On Fri, 25 Dec 2009, Leam Hall wrote: > A mail server is to deal with programs that can't do mail on their own. Not really - simply relying on SMTP from a PHP script is not really a reliable (or efficient) way to send out email. Much better to have a dedicated mail server that can queue the email, handle retries and bounces, etc. Your PHP script should just hand off the email to your mail server. -- Aj. (wearing sys admin hat). From kkrutoi at gmail.com Fri Dec 25 23:50:49 2009 From: kkrutoi at gmail.com (Konstantin K) Date: Fri, 25 Dec 2009 23:50:49 -0500 Subject: [nycphp-talk] run my own mail server or use a 3rd party service? In-Reply-To: References: <4B357044.5060201@reuel.net> Message-ID: <7173a2fc0912252050g11335afdx28a19d7eb5ae5d8e@mail.gmail.com> On Friday, December 25, 2009, Ajai Khattri wrote: > Not really - simply relying on SMTP from a PHP script is not really a > reliable (or efficient) way to send out email. Much better to have a > dedicated mail server that can queue the email, handle retries and > bounces, etc. Your PHP script should just hand off the email to your mail > server. > That's exactly what I'm doing :). But I'm trying to avoid having to setup another box with postifx and all the other stuff on it. Basically I don't want to maintain my own SMTP server. I'd like a 3rd party service which I can just send the emails to and they would send it out on my behalf > -- > Aj. (wearing sys admin hat). > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From leam at reuel.net Sat Dec 26 06:44:31 2009 From: leam at reuel.net (Leam Hall) Date: Sat, 26 Dec 2009 06:44:31 -0500 Subject: [nycphp-talk] run my own mail server or use a 3rd party service? In-Reply-To: <7173a2fc0912252050g11335afdx28a19d7eb5ae5d8e@mail.gmail.com> References: <4B357044.5060201@reuel.net> <7173a2fc0912252050g11335afdx28a19d7eb5ae5d8e@mail.gmail.com> Message-ID: <4B35F71F.4030708@reuel.net> Konstantin K wrote: > On Friday, December 25, 2009, Ajai Khattri wrote: >> Not really - simply relying on SMTP from a PHP script is not really a >> reliable (or efficient) way to send out email. Much better to have a >> dedicated mail server that can queue the email, handle retries and >> bounces, etc. Your PHP script should just hand off the email to your mail >> server. >> > > That's exactly what I'm doing :). But I'm trying to avoid having to > setup another box with postifx and all the other stuff on it. > Basically I don't want to maintain my own SMTP server. I'd like a 3rd > party service which I can just send the emails to and they would send > it out on my behalf Okay, coffee's kicking it and I think I get this a little more. Of course, I could be wrong... Check out DynDNS. I've used them for DNS and mail port altering services when I hosted my own site in-house (literally). Their support was always pretty good. When I get back to doing stuff this will be the first place I look for a solution. http://www.dyndns.com/services/mailhop/outbound.html Leam From garyamort at gmail.com Sat Dec 26 08:41:46 2009 From: garyamort at gmail.com (Gary Mort) Date: Sat, 26 Dec 2009 08:41:46 -0500 Subject: [nycphp-talk] run my own mail server or use a 3rd party service? In-Reply-To: <7173a2fc0912252050g11335afdx28a19d7eb5ae5d8e@mail.gmail.com> References: <4B357044.5060201@reuel.net> <7173a2fc0912252050g11335afdx28a19d7eb5ae5d8e@mail.gmail.com> Message-ID: <4bffc350912260541h24b1390q6e93c0afb2535f35@mail.gmail.com> On Fri, Dec 25, 2009 at 11:50 PM, Konstantin K wrote: > > > That's exactly what I'm doing :). But I'm trying to avoid having to > setup another box with postifx and all the other stuff on it. > Basically I don't want to maintain my own SMTP server. I'd like a 3rd > party service which I can just send the emails to and they would send > it out on my behalf > > What is your expected daily volume and how many distinct sending accounts do you need[as opposed to email addresses]? Is this for a non profit or educational group, a government group, or a business? Depending on your answer, I highly recommend looking into Google Apps, which includes GMAIL branded on your own domain. They handle all the hard stuff. Standard edition is free, Premier edition for business costs $50 a year per account[not email address, but userid/password combo. An account can have multiple aliases] http://www.google.com/apps/intl/en/group/index.html I can't find the page with the sending limits at the moment, but my recollection is that for free accounts, AN email acount cannot send more than 500 messages a day, for a business pay account, 2000 messages a day, non profits and educational groups can get Google Apps premier edition for free which gets API access and more than the free account but less than premier, so maybe 1000 messages? Government groups can get premier at a reduced rate. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Sat Dec 26 10:29:50 2009 From: chsnyder at gmail.com (Chris Snyder) Date: Sat, 26 Dec 2009 10:29:50 -0500 Subject: [nycphp-talk] run my own mail server or use a 3rd party service? In-Reply-To: <7173a2fc0912252001jb24db41gc71710142b3a5eed@mail.gmail.com> References: <7173a2fc0912251629k34ae68fcx6643e842991786b6@mail.gmail.com> <4B357044.5060201@reuel.net> <7173a2fc0912252001jb24db41gc71710142b3a5eed@mail.gmail.com> Message-ID: On Fri, Dec 25, 2009 at 11:01 PM, Konstantin K wrote: > Sorry, I meant to say postfix, not procmail. > > I will be hosting the site on multiple dedicated servers. > > Again, the emails that need to go out will be stored in various tables > in a database and be processed by scripts that will use the PHP > Swiftmailer package, which uses the postfix MTA. > > The emails are all to external domains (like yahoo, gmail, hotmail, etc). > > Konstantin You can safely and easily run Postfix on your existing application servers. It's very efficient, especially since you are only sending mail out, not accepting incoming messages. (Presumably you'll set the Reply-To: address to a working mailbox at your company.) There are two tricks to sending mail on your own: reverse DNS and (increasingly) SPF headers. You can get your upstream ISP to provide reverse DNS for your IP addresses -- the name doesn't have to match the hostname of the server, but it does have to look like a static assignment (so servers don't think you're sending from a home network). You set SPF records in the DNS for your domain name, and they should assert that mail from your domain is allowed to be sent by your servers. Chris Snyder http://chxor.chxo.com/ From gatzby3jr at gmail.com Sat Dec 26 10:44:32 2009 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Sat, 26 Dec 2009 10:44:32 -0500 Subject: [nycphp-talk] cheapest and best way to server 1TB worth of data per month In-Reply-To: <7173a2fc0912251547pd04e1fyb649fca2c9db87bb@mail.gmail.com> References: <7173a2fc0912241252h4fa22ee2nb4ec7774f603e18a@mail.gmail.com> <7173a2fc0912241336g1b01784wd395acf9d134a92c@mail.gmail.com> <7173a2fc0912251547pd04e1fyb649fca2c9db87bb@mail.gmail.com> Message-ID: <29da5d150912260744l3e27bfb0hd5a83260119e19@mail.gmail.com> You may also want to look into using Google App Engine and use that as a CDN by keeping all of your static files on Google's servers. Just a thought. On 12/25/09, Konstantin K wrote: > Im seriously considering going with SimpleCDN. For about $40/month = > 1TB/month, which isn't too bad and there's no extra server to maintain! > I'm not sure what the traffic profile will look like, I expect it to be > steady with some spikes if we get some publicity... > > I have the same fear as David, cuz I've had godaddy "transition" my site to > a bigger server without notifying me and resulting in a 7 day downtime > because I was using too much resources... > > Edward, what are you saying? You would go with godaddy? > > > > > > > On Fri, Dec 25, 2009 at 4:31 PM, Edward Potter > wrote: > >> i think the advantage of S3 is now you have to learn S3. That knowledge >> could be worth millions to your down the road. Think big! I have seen some >> cloud/iphone integrated code, just about zero wait times to deliver some >> heavy graphics manipulations over the network. >> >> I was pretty amazed at the speeds. >> >> >> (PS Godaddy will probably be fine) :-) >> >> >> >> >> >> On Thu, Dec 24, 2009 at 4:36 PM, Konstantin K wrote: >> >>> looks like godaddy has unlimited plan for $15/month! or 1.5TB/month for >>> $7/month >>> >>> any comments on this? >>> >>> >>> >>> On Thu, Dec 24, 2009 at 3:52 PM, Konstantin K wrote: >>> >>>> Hey guys, >>>> >>>> I need some expert advice. >>>> >>>> Let's say I have about 2MB of static data (images, css, js) and I need >>>> to serve about 1TB worth of it per month to users who visit this site. >>>> I know that means at least 500,000 page views per month (not >>>> considering browsers caching images, etc). >>>> >>>> What's the cheapest (but still fast) way to serve 1TB worth of static >>>> data per month? >>>> A) AWS S3 >>>> I think this comes out to about $180/month. >>>> B) dedicated server >>>> With nginx or lighttpd >>>> >>>> C) shared hosting >>>> godaddy? >>>> D) ??? >>>> >>>> Thanks, >>>> Konstantin >>>> >>> >>> >>> _______________________________________________ >>> New York PHP Users Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/Show-Participation >>> >> >> >> >> -- >> IM/iChat: ejpusa >> Links: http://del.icio.us/ejpusa >> Follow me: http://www.twitter.com/ejpusa >> Karma: http://www.coderswithconscience.com >> >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > -- Sent from my mobile device Brian O'Connor From ramons at gmx.net Sat Dec 26 10:48:18 2009 From: ramons at gmx.net (David Krings) Date: Sat, 26 Dec 2009 10:48:18 -0500 Subject: [nycphp-talk] OT: Anyone interested in a server? Message-ID: <4B363042.6080709@gmx.net> Hi! Just a short note, is anyone interested in buying an IBM eServer 325 (2x AMD Opteron 250, 2GB RAM, 120GB IDE)? I'd pass it on for 150$ or best offer, location is Schenectady. Contact me off-list with questions - and sorry for the very off-topic, self-interested post. David From ron at vnetworx.net Sat Dec 26 19:50:55 2009 From: ron at vnetworx.net (Ron Guerin) Date: Sat, 26 Dec 2009 19:50:55 -0500 Subject: [nycphp-talk] How common is bcmath? Message-ID: <4B36AF6F.4040605@vnetworx.net> I'm looking at using some code that uses the bcmath extension. How likely is it that a user is going to have hosting without bcmath in their PHP? - Ron From danielc at analysisandsolutions.com Sat Dec 26 20:27:57 2009 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 26 Dec 2009 20:27:57 -0500 Subject: [nycphp-talk] How common is bcmath? In-Reply-To: <4B36AF6F.4040605@vnetworx.net> References: <4B36AF6F.4040605@vnetworx.net> Message-ID: <20091227012757.GA389@panix.com> Hey Ron: > I'm looking at using some code that uses the bcmath extension. How > likely is it that a user is going to have hosting without bcmath in > their PHP? Crude survey via Google... phpinfo -bcmath = 4 million hits phpinfo +bcmath = 200 k hits --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 ron at vnetworx.net Sat Dec 26 23:39:44 2009 From: ron at vnetworx.net (Ron Guerin) Date: Sat, 26 Dec 2009 23:39:44 -0500 Subject: [nycphp-talk] How common is bcmath? In-Reply-To: <20091227012757.GA389@panix.com> References: <4B36AF6F.4040605@vnetworx.net> <20091227012757.GA389@panix.com> Message-ID: <4B36E510.8020005@vnetworx.net> Daniel Convissor wrote: > Hey Ron: > > >> I'm looking at using some code that uses the bcmath extension. How >> likely is it that a user is going to have hosting without bcmath in >> their PHP? >> > > Crude survey via Google... > > phpinfo -bcmath = 4 million hits > phpinfo +bcmath = 200 k hits > Ouch!! Too bad. I'd taken "written in pure PHP" to mean something a little different from "requires an extension your users are unlikely to have." I guess it's a good thing I looked at the code sooner rather than later. Thanks! - Ron From jcampbell1 at gmail.com Mon Dec 28 00:32:03 2009 From: jcampbell1 at gmail.com (John Campbell) Date: Mon, 28 Dec 2009 00:32:03 -0500 Subject: [nycphp-talk] How common is bcmath? In-Reply-To: <20091227012757.GA389@panix.com> References: <4B36AF6F.4040605@vnetworx.net> <20091227012757.GA389@panix.com> Message-ID: <8f0676b40912272132r311f8043t1ce9ed8d8bae605b@mail.gmail.com> I think you should compare google results vs something that every install has: phpinfo +pcre - 357k phpinfo +bcmath - 207k It looks like more that 50% of installs have it. Not great, but it isn't that rare either. -John Campbell On Sat, Dec 26, 2009 at 8:27 PM, Daniel Convissor wrote: > Hey Ron: > >> I'm looking at using some code that uses the bcmath extension. ?How >> likely is it that a user is going to have hosting without bcmath in >> their PHP? > > Crude survey via Google... > > phpinfo -bcmath = 4 million hits > phpinfo +bcmath = 200 k hits > > --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 Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From kkrutoi at gmail.com Tue Dec 29 03:03:12 2009 From: kkrutoi at gmail.com (Konstantin K) Date: Tue, 29 Dec 2009 03:03:12 -0500 Subject: [nycphp-talk] cheapest and best way to server 1TB worth of data per month In-Reply-To: <29da5d150912260744l3e27bfb0hd5a83260119e19@mail.gmail.com> References: <7173a2fc0912241252h4fa22ee2nb4ec7774f603e18a@mail.gmail.com> <7173a2fc0912241336g1b01784wd395acf9d134a92c@mail.gmail.com> <7173a2fc0912251547pd04e1fyb649fca2c9db87bb@mail.gmail.com> <29da5d150912260744l3e27bfb0hd5a83260119e19@mail.gmail.com> Message-ID: <7173a2fc0912290003i464b54ebk429c4b4162db052e@mail.gmail.com> I looked into using Google Apps Engine: 1. It's pretty fast! 2. The "free quotas" are pretty big, EXCEPT for the outgoing bandwith (only 1GB/day = 30GB/month) 3. It's pretty simple to set it up. 4. It's very hard to automate versioning of static data - with a CDN, it can pull the latest data from the origin server. I will try out simplecdn, and let you guys know how it works when I launch. Thanks for the suggestions. Konstantin On Sat, Dec 26, 2009 at 10:44 AM, Brian O'Connor wrote: > You may also want to look into using Google App Engine and use that as > a CDN by keeping all of your static files on Google's servers. > > Just a thought. > > On 12/25/09, Konstantin K wrote: >> Im seriously considering going with SimpleCDN. ?For about $40/month = >> 1TB/month, which isn't too bad and there's no extra server to maintain! >> I'm not sure what the traffic profile will look like, I expect it to be >> steady with some spikes if we get some publicity... >> >> I have the same fear as David, cuz I've had godaddy "transition" my site to >> a bigger server without notifying me and resulting in a 7 day downtime >> because I was using too much resources... >> >> Edward, what are you saying? ?You would go with godaddy? >> >> >> >> >> >> >> On Fri, Dec 25, 2009 at 4:31 PM, Edward Potter >> wrote: >> >>> i think the advantage of S3 is now you have to learn S3. That knowledge >>> could be worth millions to your down the road. Think big! I have seen some >>> cloud/iphone integrated code, just about zero wait times to deliver some >>> heavy graphics manipulations over the network. >>> >>> ?I was pretty amazed at the speeds. >>> >>> >>> (PS Godaddy will probably be fine) :-) >>> >>> >>> >>> >>> >>> ? On Thu, Dec 24, 2009 at 4:36 PM, Konstantin K wrote: >>> >>>> ? looks like godaddy has unlimited plan for $15/month! or 1.5TB/month for >>>> $7/month >>>> >>>> any comments on this? >>>> >>>> >>>> >>>> On Thu, Dec 24, 2009 at 3:52 PM, Konstantin K wrote: >>>> >>>>> Hey guys, >>>>> >>>>> I need some expert advice. >>>>> >>>>> Let's say I have about 2MB of static data (images, css, js) and I need >>>>> to serve about 1TB worth of it per month to users who visit this site. >>>>> ?I know that means at least 500,000 page views per month (not >>>>> considering browsers caching images, etc). >>>>> >>>>> What's the cheapest (but still fast) way to serve 1TB worth of static >>>>> data ?per month? >>>>> A) AWS S3 >>>>> ? ? ?I think this comes out to about $180/month. >>>>> B) dedicated server >>>>> ? ? ?With nginx or lighttpd >>>>> >>>>> C) shared hosting >>>>> ? ? ?godaddy? >>>>> D) ??? >>>>> >>>>> Thanks, >>>>> Konstantin >>>>> >>>> >>>> >>>> _______________________________________________ >>>> New York PHP Users Group Community Talk Mailing List >>>> http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> http://www.nyphp.org/Show-Participation >>>> >>> >>> >>> >>> -- >>> IM/iChat: ejpusa >>> Links: http://del.icio.us/ejpusa >>> Follow me: http://www.twitter.com/ejpusa >>> Karma: http://www.coderswithconscience.com >>> >>> _______________________________________________ >>> New York PHP Users Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/Show-Participation >>> >> > > -- > Sent from my mobile device > > Brian O'Connor > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From davidalanroth at gmail.com Tue Dec 29 03:53:53 2009 From: davidalanroth at gmail.com (David Roth) Date: Tue, 29 Dec 2009 03:53:53 -0500 Subject: [nycphp-talk] PHP error handling with simplexml_load_file questions. Message-ID: I've been following the example for PHP error handling using simplexml_load_file as show in this example: http://www.ibm.com/developerworks/library/x-simplexml.html To test my PHP code, I put in a bogus URL, which failed and the PHP script caught it allowing me to control it in the program. But when the actual URL's server is down, PHP gives errors about it and aborts the script. The error handling isn't caught by this method. I had a PHP script running for months without a problem and I guess it had just been lucky until recently not to encounter any network problems. The CRON was nice enough to e-mail root errors from the script that it complained about: PHP Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in blahblah.php on line 17 PHP Warning: simplexml_load_file(http://example.com): failed to open stream: Connection timed out in blahblah.php on line 17 PHP Warning: simplexml_load_file(): I/O warning : failed to load external entity "http://example.com" in blahblah.php on line 17 My impression is that the PHP program encountered these errors and simply aborted and didn't give my code a chance to execute. Is the technique in this article wrong? What can be done to make this more robust cause networks won't be up and running all the time. Thanks! David Roth -------------- next part -------------- An HTML attachment was scrubbed... URL: From david at davidmintz.org Tue Dec 29 10:42:56 2009 From: david at davidmintz.org (David Mintz) Date: Tue, 29 Dec 2009 10:42:56 -0500 Subject: [nycphp-talk] oh how good this list is Message-ID: <721f1cc50912290742r223f8189v4a5957f06115e5a5@mail.gmail.com> Allow me to indulge a little frivolity during this slow year-end period. I wish I could count the times this list has helped me, not just by providing answers, but by motivating me to think harder about the question before posting. Twice in the past couple of weeks I have actually been composing the message, preparing to cry out for help, turning back to the problem in order to describe it succintly and accurately and finish ruling out various hypotheses as to why "it doesn't work....," when suddenly -- DING! -- Demand health care for everyone: http://mobilizeforhealthcare.org/ -- David Mintz http://davidmintz.org/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Tue Dec 29 10:45:43 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Tue, 29 Dec 2009 10:45:43 -0500 Subject: [nycphp-talk] oh how good this list is In-Reply-To: <721f1cc50912290742r223f8189v4a5957f06115e5a5@mail.gmail.com> References: <721f1cc50912290742r223f8189v4a5957f06115e5a5@mail.gmail.com> Message-ID: <330532b60912290745if141e67pfac476a1a91b4a97@mail.gmail.com> On Tue, Dec 29, 2009 at 10:42 AM, David Mintz wrote: > Allow me to indulge a little frivolity during this slow year-end period. > > I wish I could count the times this list has helped me, not just by > providing answers, but by motivating me to think? harder about the question > before posting. Twice in the past couple of weeks I have actually been > composing the message, preparing to cry out for help, turning back to the > problem in order to describe it succintly and accurately and finish ruling > out various hypotheses as to why "it doesn't work....," when suddenly -- > DING! Agreed wholeheartedly on that sentiment - oftentimes when I have a question and need a little nudge, a quick search through NYPHP is all I need. There are hundreds of threads that I've starred in GMail as a result. Thanks Hans and Hans, and everyone for a great place to hang out and share. -- Mitch From jcampbell1 at gmail.com Tue Dec 29 10:52:05 2009 From: jcampbell1 at gmail.com (John Campbell) Date: Tue, 29 Dec 2009 10:52:05 -0500 Subject: [nycphp-talk] PHP error handling with simplexml_load_file questions. In-Reply-To: References: Message-ID: <8f0676b40912290752o3b230af5o642521b2acac4685@mail.gmail.com> David, I use curl every time I am accessing a remote resource. I'd fetch the content with curl, and process it as a string. Using php's remote resource is always flaky. It doesn't work on some installs, may break with ssl, doesn't support cookies reliably, can't handle http errors, may or may not follow redirects, etc. simple_xml_load_file() on a remote resource is great for article writers because they don't have to have a bunch of boilerplate curl code in the article, but it is a mistake for a real application. Regards, John Campbell On Tue, Dec 29, 2009 at 3:53 AM, David Roth wrote: > I've been following the example for PHP error handling > using?simplexml_load_file as show in this example: > http://www.ibm.com/developerworks/library/x-simplexml.html > To test my PHP code, I put in a bogus URL, which failed and the PHP script > caught it allowing me to control it in the program. > But when the actual URL's server is down, PHP gives errors about it and > aborts the script. The error handling isn't caught by this method. I had a > PHP script running for months without a problem and I guess it had just been > lucky until recently not to encounter any network problems. > The CRON was nice enough to e-mail root errors from the script that it > complained about: > PHP Warning: ?simplexml_load_file(): php_network_getaddresses: getaddrinfo > failed: Temporary failure in name resolution in blahblah.php on line 17 > PHP Warning: ?simplexml_load_file(http://example.com): failed to open > stream: Connection timed out in blahblah.php on line 17 > PHP Warning: ?simplexml_load_file(): I/O warning : failed to load external > entity "http://example.com" in blahblah.php on line 17 > My impression is that the PHP program encountered these errors and simply > aborted and didn't give my code a chance to execute. > Is the technique in this article wrong? What can be done to make this more > robust cause networks won't be up and running all the time. Thanks! > David Roth > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From chsnyder at gmail.com Tue Dec 29 11:13:37 2009 From: chsnyder at gmail.com (Chris Snyder) Date: Tue, 29 Dec 2009 11:13:37 -0500 Subject: [nycphp-talk] PHP error handling with simplexml_load_file questions. In-Reply-To: <8f0676b40912290752o3b230af5o642521b2acac4685@mail.gmail.com> References: <8f0676b40912290752o3b230af5o642521b2acac4685@mail.gmail.com> Message-ID: On Tue, Dec 29, 2009 at 10:52 AM, John Campbell wrote: > It doesn't work on some installs, may break with ssl, doesn't support > cookies reliably, can't handle http errors, may or may not follow > redirects, etc. simple_xml_load_file() on a > remote resource is great for article writers because they don't have > to have a bunch of boilerplate curl code in the article, but it is a > mistake for a real application. Yeah, second that. I'm not a curl believer so I use PHP streams, but same difference. The reason I use sockets / streams is because you have very fine control over both connection and transmission timeouts. file_get_contents() and friends are perfectly happy to wait around for 30 seconds when connecting to a slow server. From d at ingk.com Tue Dec 29 11:27:54 2009 From: d at ingk.com (Damion Hankejh) Date: Tue, 29 Dec 2009 11:27:54 -0500 Subject: [nycphp-talk] oh how good this list is In-Reply-To: <330532b60912290745if141e67pfac476a1a91b4a97@mail.gmail.com> References: <721f1cc50912290742r223f8189v4a5957f06115e5a5@mail.gmail.com> <330532b60912290745if141e67pfac476a1a91b4a97@mail.gmail.com> Message-ID: +1 I've amassed a rich collection of gmail-labeled "CODE+FAVE" threads from 2009. Season's greetings and cheers to an even better, brighter 2010. --- Damion Hankejh | hankejh.com On Tue, Dec 29, 2009 at 10:45 AM, Mitch Pirtle wrote: > On Tue, Dec 29, 2009 at 10:42 AM, David Mintz > wrote: > > Allow me to indulge a little frivolity during this slow year-end period. > > > > I wish I could count the times this list has helped me, not just by > > providing answers, but by motivating me to think harder about the > question > > before posting. Twice in the past couple of weeks I have actually been > > composing the message, preparing to cry out for help, turning back to the > > problem in order to describe it succintly and accurately and finish > ruling > > out various hypotheses as to why "it doesn't work....," when suddenly -- > > DING! > > Agreed wholeheartedly on that sentiment - oftentimes when I have a > question and need a little nudge, a quick search through NYPHP is all > I need. There are hundreds of threads that I've starred in GMail as a > result. > > Thanks Hans and Hans, and everyone for a great place to hang out and share. > > -- Mitch > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at atopia.net Tue Dec 29 12:28:27 2009 From: matt at atopia.net (Matt Juszczak) Date: Tue, 29 Dec 2009 12:28:27 -0500 (EST) Subject: [nycphp-talk] OT: Standard Data Import Tool? Message-ID: Hi all, I need to write a tool that somehow takes multiple data feeds (some xls files, some csv files, etc.), defines each format, verifies/validates/sanitizes the data, and imports it into standardized MySQL tables. As an example, one feed might look like this: First Name, Last Name, DOB And another like this: Name, DOB And another: DOB, Last Name, First Name, Middle Initial I need to somehow be able to say "For this source, this column needs to be split into two, and this other column is the date of birth column". Once the data is parsed, it would need to be imported into standard MySQL tables: first_name, last_name, birth_date, etc. This is a simple example - the files and tables actually have 20-30 columns each, so using mysqlimport or a simple shell script probably isn't the best option. Are there open source tools out there that do this already? If not, should I just build something? Thanks, -Matt From greg at freephile.com Tue Dec 29 12:45:09 2009 From: greg at freephile.com (Greg Rundlett (freephile)) Date: Tue, 29 Dec 2009 12:45:09 -0500 Subject: [nycphp-talk] OT: Standard Data Import Tool? In-Reply-To: References: Message-ID: <5e2aaca40912290945g1799897apee66950042b4c293@mail.gmail.com> There are several issues all bundled up here. First you have to define the file format(s) that your feeds come in so that you can read them and isolate the data elements correctly. Are they CSV, TSV, XML, custom? At the first (read) step you can do gross validation like validate the source for correct character encoding, record separators, record length etc. You also want to define "layouts" for various feeds. By defining the layout, you can apply a set of processing instructions to transform the received layout into the desired layout. Once you have the data in the desired layout, you can then do finer validation such as per field rules. E.g. last name must /(a-zA-Z'-){2,100}/ Then you can write an import routine that determines the correct layout transformation to apply, reads the source, tranposes it, validates it, stores it in the database, logs the event hth, Greg Rundlett nbpt 978-225-8302 m. 978-764-4424 -skype/aim/irc/twitter freephile http://profiles.aim.com/freephile On Tue, Dec 29, 2009 at 12:28 PM, Matt Juszczak wrote: > Hi all, > > I need to write a tool that somehow takes multiple data feeds (some xls > files, some csv files, etc.), defines each format, > verifies/validates/sanitizes the data, and imports it into standardized > MySQL tables. > > As an example, one feed might look like this: > > First Name, Last Name, DOB > > And another like this: > > Name, DOB > > And another: > > DOB, Last Name, First Name, Middle Initial > > I need to somehow be able to say "For this source, this column needs to be > split into two, and this other column is the date of birth column". ?Once > the data is parsed, it would need to be imported into standard MySQL tables: > > first_name, last_name, birth_date, etc. > > This is a simple example - the files and tables actually have 20-30 columns > each, so using mysqlimport or a simple shell script probably isn't the best > option. > > Are there open source tools out there that do this already? ?If not, should > I just build something? > > Thanks, > > -Matt > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From matt at atopia.net Tue Dec 29 12:46:50 2009 From: matt at atopia.net (Matt Juszczak) Date: Tue, 29 Dec 2009 12:46:50 -0500 (EST) Subject: [nycphp-talk] OT: Standard Data Import Tool? In-Reply-To: <5e2aaca40912290945g1799897apee66950042b4c293@mail.gmail.com> References: <5e2aaca40912290945g1799897apee66950042b4c293@mail.gmail.com> Message-ID: Hi Greg, That's pretty much how we had things mapped out. Basic source validation in the beginning, then a more standard validation later on. I guess my question was - is there any open source project that would help with this work flow, such as handling exceptions in the case of bad data, etc. etc.? -Matt On Tue, 29 Dec 2009, Greg Rundlett (freephile) wrote: > There are several issues all bundled up here. > > First you have to define the file format(s) that your feeds come in so > that you can read them and isolate the data elements correctly. Are > they CSV, TSV, XML, custom? > At the first (read) step you can do gross validation like validate the > source for correct character encoding, record separators, record > length etc. > You also want to define "layouts" for various feeds. By defining the > layout, you can apply a set of processing instructions to transform > the received layout into the desired layout. > Once you have the data in the desired layout, you can then do finer > validation such as per field rules. E.g. last name must > /(a-zA-Z'-){2,100}/ > Then you can write an import routine that determines the correct > layout transformation to apply, reads the source, tranposes it, > validates it, stores it in the database, logs the event > > hth, > > Greg Rundlett > > nbpt 978-225-8302 > m. 978-764-4424 > -skype/aim/irc/twitter freephile > http://profiles.aim.com/freephile > > > > > On Tue, Dec 29, 2009 at 12:28 PM, Matt Juszczak wrote: >> Hi all, >> >> I need to write a tool that somehow takes multiple data feeds (some xls >> files, some csv files, etc.), defines each format, >> verifies/validates/sanitizes the data, and imports it into standardized >> MySQL tables. >> >> As an example, one feed might look like this: >> >> First Name, Last Name, DOB >> >> And another like this: >> >> Name, DOB >> >> And another: >> >> DOB, Last Name, First Name, Middle Initial >> >> I need to somehow be able to say "For this source, this column needs to be >> split into two, and this other column is the date of birth column". ?Once >> the data is parsed, it would need to be imported into standard MySQL tables: >> >> first_name, last_name, birth_date, etc. >> >> This is a simple example - the files and tables actually have 20-30 columns >> each, so using mysqlimport or a simple shell script probably isn't the best >> option. >> >> Are there open source tools out there that do this already? ?If not, should >> I just build something? >> >> Thanks, >> >> -Matt >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From peterbsemail at gmail.com Tue Dec 29 17:30:38 2009 From: peterbsemail at gmail.com (Peter Becker) Date: Tue, 29 Dec 2009 17:30:38 -0500 Subject: [nycphp-talk] Code Reviews Message-ID: <5b20b5900912291430m686c4c1ai36ead3a2cd6eba0d@mail.gmail.com> Looking to get some views (and best practices) on code reviews. I used to work at IBM on their early version of Websphere (as UI designer, not coder) where our group had code reviews on a regular basis. I'm now managing a small dev team working on a new web site using Zend PHP/MySql and am curious to know what current practices are for reviews in this sort of environment. On the one hand it seems like it'd be somewhat redundant since we are a small team and the left hand does know what the right hand is doing, but on the other, I could see it being very useful to ensure that everyone is on the straight and narrow to everyone's benefit (particularly as the team grows). Any good references as a starting point for approaches? Appreciate the direction - -------------- next part -------------- An HTML attachment was scrubbed... URL: From anoland at indigente.net Tue Dec 29 17:49:08 2009 From: anoland at indigente.net (Adrian Noland) Date: Tue, 29 Dec 2009 16:49:08 -0600 Subject: [nycphp-talk] OT: Standard Data Import Tool? In-Reply-To: References: <5e2aaca40912290945g1799897apee66950042b4c293@mail.gmail.com> Message-ID: <1d8a0e930912291449x4ddfaea7ubf3d7d9f2fdcf17@mail.gmail.com> If I understand your problem, then this may help: http://www.devshed.com/c/a/PHP/Introducing-the-Strategy-Pattern/ http://www.fluffycat.com/PHP-Design-Patterns/Strategy/ I would use it something like this: $this->data = new DataStream($source); $bool = new BasicValidate($this->data); $bool = new DataMapper($this->data); $bool = new LayoutBuilder($this->data); if($bool) { $result = MysqlQuery($data); } Adrian On Tue, Dec 29, 2009 at 11:46 AM, Matt Juszczak wrote: > Hi Greg, > > That's pretty much how we had things mapped out. Basic source validation > in the beginning, then a more standard validation later on. I guess my > question was - is there any open source project that would help with this > work flow, such as handling exceptions in the case of bad data, etc. etc.? > > -Matt > > > On Tue, 29 Dec 2009, Greg Rundlett (freephile) wrote: > > There are several issues all bundled up here. >> >> First you have to define the file format(s) that your feeds come in so >> that you can read them and isolate the data elements correctly. Are >> they CSV, TSV, XML, custom? >> At the first (read) step you can do gross validation like validate the >> source for correct character encoding, record separators, record >> length etc. >> You also want to define "layouts" for various feeds. By defining the >> layout, you can apply a set of processing instructions to transform >> the received layout into the desired layout. >> Once you have the data in the desired layout, you can then do finer >> validation such as per field rules. E.g. last name must >> /(a-zA-Z'-){2,100}/ >> Then you can write an import routine that determines the correct >> layout transformation to apply, reads the source, tranposes it, >> validates it, stores it in the database, logs the event >> >> hth, >> >> Greg Rundlett >> >> nbpt 978-225-8302 >> m. 978-764-4424 >> -skype/aim/irc/twitter freephile >> http://profiles.aim.com/freephile >> >> >> >> >> On Tue, Dec 29, 2009 at 12:28 PM, Matt Juszczak wrote: >> >>> Hi all, >>> >>> I need to write a tool that somehow takes multiple data feeds (some xls >>> files, some csv files, etc.), defines each format, >>> verifies/validates/sanitizes the data, and imports it into standardized >>> MySQL tables. >>> >>> As an example, one feed might look like this: >>> >>> First Name, Last Name, DOB >>> >>> And another like this: >>> >>> Name, DOB >>> >>> And another: >>> >>> DOB, Last Name, First Name, Middle Initial >>> >>> I need to somehow be able to say "For this source, this column needs to >>> be >>> split into two, and this other column is the date of birth column". Once >>> the data is parsed, it would need to be imported into standard MySQL >>> tables: >>> >>> first_name, last_name, birth_date, etc. >>> >>> This is a simple example - the files and tables actually have 20-30 >>> columns >>> each, so using mysqlimport or a simple shell script probably isn't the >>> best >>> option. >>> >>> Are there open source tools out there that do this already? If not, >>> should >>> I just build something? >>> >>> Thanks, >>> >>> -Matt >>> _______________________________________________ >>> New York PHP Users Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/Show-Participation >>> >>> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben at projectskyline.com Tue Dec 29 18:00:01 2009 From: ben at projectskyline.com (Ben Sgro) Date: Tue, 29 Dec 2009 18:00:01 -0500 Subject: [nycphp-talk] Code Reviews In-Reply-To: <5b20b5900912291430m686c4c1ai36ead3a2cd6eba0d@mail.gmail.com> References: <5b20b5900912291430m686c4c1ai36ead3a2cd6eba0d@mail.gmail.com> Message-ID: <4B3A89F1.4060909@projectskyline.com> Hello Peter, At my current company we do both peer reviews and group code reviews. The group code reviews seem to have the best impact, as the peer reviews have naturally ceased to happen. Our group code reviews happen bi-monthly and during the time (usually an hour) developers working on different clients within the company will show high level (run the code, interact w/the UI, etc) and also walk through the source code showing all the major components. The audience is typically programmers, but is open to anyone within the company. In the past I've also worked in companies where a senior developer will review junior developers major commits. What defines a "major commit" differs within companies, but this was a great way to make sure the new hires are obeying coding standards, not introducing new bugs, and are using appropriate libraries ("hey, we already solved that, see abc lib..."). I think the reason that our current peer reviews died was because they are time consuming and they were not manager driven, they were peer driven, so people would either be too busy to schedule something with a peer, or just forget. Plus, since management isn't' involved, besides getting a peer to compliment your work, management wouldn't directly hear of your accomplishments via this channel. > "On the one hand it seems like it'd be somewhat redundant since we are a small team and the left hand does know what the right hand is doing," I don't think this is true - even on a small team I find most developers are not that familiar with the work of their teammates. - Ben Peter Becker wrote: > Looking to get some views (and best practices) on code reviews. I > used to work at IBM on their early version of Websphere (as UI > designer, not coder) where our group had code reviews on a regular > basis. I'm now managing a small dev team working on a new web site > using Zend PHP/MySql and am curious to know what current practices are > for reviews in this sort of environment. On the one hand it seems > like it'd be somewhat redundant since we are a small team and the left > hand does know what the right hand is doing, but on the other, I could > see it being very useful to ensure that everyone is on the straight > and narrow to everyone's benefit (particularly as the team grows). > Any good references as a starting point for approaches? Appreciate > the direction - > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From garyamort at gmail.com Tue Dec 29 19:49:33 2009 From: garyamort at gmail.com (Gary Mort) Date: Tue, 29 Dec 2009 19:49:33 -0500 Subject: [nycphp-talk] OT: Standard Data Import Tool? In-Reply-To: References: Message-ID: <4bffc350912291649n2727eac5u1c2b2ff44a789c31@mail.gmail.com> On Tue, Dec 29, 2009 at 12:28 PM, Matt Juszczak wrote: > Hi all, > > I need to write a tool that somehow takes multiple data feeds (some xls > files, some csv files, etc.), defines each format, > verifies/validates/sanitizes the data, and imports it into standardized > MySQL tables. > Consider Yahoo pipes. They already do all this and then will provide you with an export. So push everything through the pipes and export it as JSON and then you don't need to code them all yourself. -------------- next part -------------- An HTML attachment was scrubbed... URL: From garyamort at gmail.com Tue Dec 29 19:53:23 2009 From: garyamort at gmail.com (Gary Mort) Date: Tue, 29 Dec 2009 19:53:23 -0500 Subject: [nycphp-talk] oh how good this list is In-Reply-To: <330532b60912290745if141e67pfac476a1a91b4a97@mail.gmail.com> References: <721f1cc50912290742r223f8189v4a5957f06115e5a5@mail.gmail.com> <330532b60912290745if141e67pfac476a1a91b4a97@mail.gmail.com> Message-ID: <4bffc350912291653n73d62eaxe0c65b0ac0f5b392@mail.gmail.com> On Tue, Dec 29, 2009 at 10:45 AM, Mitch Pirtle wrote: > > > Agreed wholeheartedly on that sentiment - oftentimes when I have a > question and need a little nudge, a quick search through NYPHP is all > I need. There are hundreds of threads that I've starred in GMail as a > result. > Gmail? Wouldn't it be easier and more efficient to just store all that email in a mongodb ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From leam at reuel.net Tue Dec 29 19:59:21 2009 From: leam at reuel.net (Leam Hall) Date: Tue, 29 Dec 2009 19:59:21 -0500 Subject: [nycphp-talk] oh how good this list is In-Reply-To: <4bffc350912291653n73d62eaxe0c65b0ac0f5b392@mail.gmail.com> References: <721f1cc50912290742r223f8189v4a5957f06115e5a5@mail.gmail.com> <330532b60912290745if141e67pfac476a1a91b4a97@mail.gmail.com> <4bffc350912291653n73d62eaxe0c65b0ac0f5b392@mail.gmail.com> Message-ID: <4B3AA5E9.6000402@reuel.net> Gary Mort wrote: > On Tue, Dec 29, 2009 at 10:45 AM, Mitch Pirtle wrote: >> >> Agreed wholeheartedly on that sentiment - oftentimes when I have a >> question and need a little nudge, a quick search through NYPHP is all >> I need. There are hundreds of threads that I've starred in GMail as a >> result. >> > > Gmail? Wouldn't it be easier and more efficient to just store all that > email in a mongodb ? *snicker* From arzala at gmail.com Tue Dec 29 22:05:30 2009 From: arzala at gmail.com (Anirudh Zala) Date: Wed, 30 Dec 2009 08:35:30 +0530 Subject: [nycphp-talk] oh how good this list is In-Reply-To: <4bffc350912291653n73d62eaxe0c65b0ac0f5b392@mail.gmail.com> References: <721f1cc50912290742r223f8189v4a5957f06115e5a5@mail.gmail.com> <330532b60912290745if141e67pfac476a1a91b4a97@mail.gmail.com> <4bffc350912291653n73d62eaxe0c65b0ac0f5b392@mail.gmail.com> Message-ID: <200912300835.30931.arzala@gmail.com> On Wednesday 30 December 2009 06:23:23 Gary Mort wrote: > On Tue, Dec 29, 2009 at 10:45 AM, Mitch Pirtle wrote: > > Agreed wholeheartedly on that sentiment - oftentimes when I have a > > question and need a little nudge, a quick search through NYPHP is all > > I need. There are hundreds of threads that I've starred in GMail as a > > result. > > Gmail? Wouldn't it be easier and more efficient to just store all that > email in a mongodb ? > Hmmm, good idea, we are recently heavily exploring mongoDB for our projects needs, and it sounds very good. Whenever no DBMS fir your needs, always look at MongoDB and you would get something of it. I have almost become fan of it :) Anirudh Zala From kkrutoi at gmail.com Tue Dec 29 23:30:44 2009 From: kkrutoi at gmail.com (Konstantin K) Date: Tue, 29 Dec 2009 23:30:44 -0500 Subject: [nycphp-talk] searching inside php source files Message-ID: <7173a2fc0912292030s7e5d41bdne88cdde313ee0fae@mail.gmail.com> Hi folks, I need to search for and replace a string inside many PHP (source) files I was thinking of using http://pear.php.net/package/File_SearchReplace but it's not maintained anymore. 1. Any suggestions how I should approach this problem? 2. What tools do you recommend? 3. Should I be on the look out or concerned about any gotcha's since this is actual source code, not normal text? Thanks for any ideas! Konstantin From oorza2k5 at gmail.com Tue Dec 29 23:32:49 2009 From: oorza2k5 at gmail.com (Eddie Drapkin) Date: Tue, 29 Dec 2009 23:32:49 -0500 Subject: [nycphp-talk] searching inside php source files In-Reply-To: <7173a2fc0912292030s7e5d41bdne88cdde313ee0fae@mail.gmail.com> References: <7173a2fc0912292030s7e5d41bdne88cdde313ee0fae@mail.gmail.com> Message-ID: <68de37340912292032h11122e01he727b698418cfcdb@mail.gmail.com> On Tue, Dec 29, 2009 at 11:30 PM, Konstantin K wrote: > Hi folks, > > I need to search for and replace a string inside many PHP (source) files > > I was thinking of using http://pear.php.net/package/File_SearchReplace > but it's not maintained anymore. > > 1. Any suggestions how I should approach this problem? > 2. What tools do you recommend? > 3. Should I be on the look out or concerned about any gotcha's since > this is actual source code, not normal text? > > Thanks for any ideas! > Konstantin > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > This is built into Eclipse, as far as I know. Search (menu) -> file -> replace. From kkrutoi at gmail.com Tue Dec 29 23:39:16 2009 From: kkrutoi at gmail.com (Konstantin K) Date: Tue, 29 Dec 2009 23:39:16 -0500 Subject: [nycphp-talk] searching inside php source files In-Reply-To: <68de37340912292032h11122e01he727b698418cfcdb@mail.gmail.com> References: <7173a2fc0912292030s7e5d41bdne88cdde313ee0fae@mail.gmail.com> <68de37340912292032h11122e01he727b698418cfcdb@mail.gmail.com> Message-ID: <7173a2fc0912292039i4f331f85r1ba9c4b6d24c8933@mail.gmail.com> I meant to say programmatically.. :) On Tue, Dec 29, 2009 at 11:32 PM, Eddie Drapkin wrote: > On Tue, Dec 29, 2009 at 11:30 PM, Konstantin K wrote: >> Hi folks, >> >> I need to search for and replace a string inside many PHP (source) files >> >> I was thinking of using http://pear.php.net/package/File_SearchReplace >> but it's not maintained anymore. >> >> 1. Any suggestions how I should approach this problem? >> 2. What tools do you recommend? >> 3. Should I be on the look out or concerned about any gotcha's since >> this is actual source code, not normal text? >> >> Thanks for any ideas! >> Konstantin >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > > This is built into Eclipse, as far as I know. ?Search (menu) -> file -> replace. > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From kkrutoi at gmail.com Wed Dec 30 04:05:43 2009 From: kkrutoi at gmail.com (Konstantin K) Date: Wed, 30 Dec 2009 04:05:43 -0500 Subject: [nycphp-talk] searching inside php source files In-Reply-To: <7173a2fc0912292039i4f331f85r1ba9c4b6d24c8933@mail.gmail.com> References: <7173a2fc0912292030s7e5d41bdne88cdde313ee0fae@mail.gmail.com> <68de37340912292032h11122e01he727b698418cfcdb@mail.gmail.com> <7173a2fc0912292039i4f331f85r1ba9c4b6d24c8933@mail.gmail.com> Message-ID: <7173a2fc0912300105hb26f4ddk30db7c15841d8732@mail.gmail.com> Hey folks, I went with the following and it works nicely: $path_to_file = 'path/to/the/file'; $file_contents = file_get_contents($path_to_file); $file_contents = str_replace("what_to_replace","replace_with",$file_contents); file_put_contents($path_to_file,$file_contents); courtesy of: http://stackoverflow.com/questions/1438563/find-and-replace-in-a-file Konstantin On Tue, Dec 29, 2009 at 11:39 PM, Konstantin K wrote: > I meant to say programmatically.. :) > > On Tue, Dec 29, 2009 at 11:32 PM, Eddie Drapkin wrote: >> On Tue, Dec 29, 2009 at 11:30 PM, Konstantin K wrote: >>> Hi folks, >>> >>> I need to search for and replace a string inside many PHP (source) files >>> >>> I was thinking of using http://pear.php.net/package/File_SearchReplace >>> but it's not maintained anymore. >>> >>> 1. Any suggestions how I should approach this problem? >>> 2. What tools do you recommend? >>> 3. Should I be on the look out or concerned about any gotcha's since >>> this is actual source code, not normal text? >>> >>> Thanks for any ideas! >>> Konstantin >>> _______________________________________________ >>> New York PHP Users Group Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> http://www.nyphp.org/Show-Participation >>> >> >> This is built into Eclipse, as far as I know. ?Search (menu) -> file -> replace. >> _______________________________________________ >> New York PHP Users Group Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> http://www.nyphp.org/Show-Participation >> > From garyamort at gmail.com Wed Dec 30 07:31:47 2009 From: garyamort at gmail.com (Gary Mort) Date: Wed, 30 Dec 2009 07:31:47 -0500 Subject: [nycphp-talk] searching inside php source files In-Reply-To: <7173a2fc0912300105hb26f4ddk30db7c15841d8732@mail.gmail.com> References: <7173a2fc0912292030s7e5d41bdne88cdde313ee0fae@mail.gmail.com> <68de37340912292032h11122e01he727b698418cfcdb@mail.gmail.com> <7173a2fc0912292039i4f331f85r1ba9c4b6d24c8933@mail.gmail.com> <7173a2fc0912300105hb26f4ddk30db7c15841d8732@mail.gmail.com> Message-ID: <4bffc350912300431s64aae9fnc7337a019cdec554@mail.gmail.com> I would suggest in the future, doing a compare of the old and new file contents and make a note when they are different. That way if something goes wrong, you know which files were changed. On Wed, Dec 30, 2009 at 4:05 AM, Konstantin K wrote: > Hey folks, > > I went with the following and it works nicely: > > $path_to_file = 'path/to/the/file'; > $file_contents = file_get_contents($path_to_file); > $file_contents = > str_replace("what_to_replace","replace_with",$file_contents); > file_put_contents($path_to_file,$file_contents); > > courtesy of: > http://stackoverflow.com/questions/1438563/find-and-replace-in-a-file > > Konstantin > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Wed Dec 30 08:18:21 2009 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 30 Dec 2009 08:18:21 -0500 Subject: [nycphp-talk] oh how good this list is In-Reply-To: <200912300835.30931.arzala@gmail.com> References: <721f1cc50912290742r223f8189v4a5957f06115e5a5@mail.gmail.com> <330532b60912290745if141e67pfac476a1a91b4a97@mail.gmail.com> <4bffc350912291653n73d62eaxe0c65b0ac0f5b392@mail.gmail.com> <200912300835.30931.arzala@gmail.com> Message-ID: <330532b60912300518u5224605dmcf19faa2ff1fdb0e@mail.gmail.com> On Tue, Dec 29, 2009 at 10:05 PM, Anirudh Zala wrote: > On Wednesday 30 December 2009 06:23:23 Gary Mort wrote: >> On Tue, Dec 29, 2009 at 10:45 AM, Mitch Pirtle > wrote: >> > Agreed wholeheartedly on that sentiment - oftentimes when I have a >> > question and need a little nudge, a quick search through NYPHP is all >> > I need. There are hundreds of threads that I've starred in GMail as a >> > result. >> >> Gmail? ?Wouldn't it be easier and more efficient to just store all that >> email in a mongodb ? >> > > Hmmm, good idea, we are recently heavily exploring mongoDB for our projects > needs, and it sounds very good. Whenever no DBMS fir your needs, always look at > MongoDB and you would get something of it. > > I have almost become fan of it :) MongoDB. That name sounds familiar to me. -- Mitch., trying to keep a straight face, and failing From ramons at gmx.net Wed Dec 30 09:42:52 2009 From: ramons at gmx.net (David Krings) Date: Wed, 30 Dec 2009 09:42:52 -0500 Subject: [nycphp-talk] Code Reviews In-Reply-To: <5b20b5900912291430m686c4c1ai36ead3a2cd6eba0d@mail.gmail.com> References: <5b20b5900912291430m686c4c1ai36ead3a2cd6eba0d@mail.gmail.com> Message-ID: <4B3B66EC.4010605@gmx.net> On 12/29/2009 5:30 PM, Peter Becker wrote: > Looking to get some views (and best practices) on code reviews. At my current work the devs do code reviews once a mod, project, or milestone is completed. The code review takes place before the peer review (show and tell to QA and TW) and other devs give input on best coding practices, violations of the development style guide, and general quality remarks. A first rough check happens during the tech spec review, but at that point only the approach is validated because no code exists at that time. A lot of the review work can be covered by establishing a well-written, detailed style guide that everyone has to follow without exception. If you don't have a style guide, it may be a good time to create one and phase it in (there will be changes to the guide at the beginning). Adherence to the guide is supposed to make code be understandable to others in the team (or the rest of the world in case of OSS), follow common best practices, and include naming conventions as well as explicit rules on how to craft error messages and design the UI. Creating a style guide is a painful process, but one that is worth the effort especially when the team is likely to grow or has a high fluctuation of members (for whatever good or bad reason). It will also help when you contract out work. That may not be an issue right now, but when it comes up you are at least prepared. Depending on how technical your QA staff is you may want to include them in the code review. While they may not be in a position to point out programming flaws by looking at the code they definitely will get a better understanding of workflow and learn why things are the way they are. QA should take a passive role here, their active role is in the peer review where they can make the developer crash his/her own code in front of an audience. The mod/project/milestone based code review works fine for our developers because it focuses on one set of functionality and isn't all over the place as would be with reviews that take place on a recurring schedule. Also, all developers should properly prepare for code review and not just show up and give some cheap comments. The other devs should have looked at the code before and made notes. That makes the code reviews better and shorter because everyone is on the same page and knows what is going on. That includes knowledge of the functional requirements as well as the technical specs as well. If a dev sees the code to review for the first time during the meeting not much can be expected in regards to feedback. The code review meeting isn't really where the review should take place, but where the results of the individual reviews are discussed and action items are established. If the review went bad, schedule a second one before going into the peer review. At the time of the code review the developer should consider his code to be release ready, that means unit tests are completed and the whole thing works reliably. It is not enough to make sure that it compiles and maybe works for the intended use. QA will find the flaws anyway, so the devs may just fix it now rather than make more work for everyone. If that takes a day or two more I'd consider that time well spent. David From tom at supertom.com Wed Dec 30 11:18:02 2009 From: tom at supertom.com (Tom Melendez) Date: Wed, 30 Dec 2009 08:18:02 -0800 Subject: [nycphp-talk] Code Reviews In-Reply-To: <5b20b5900912291430m686c4c1ai36ead3a2cd6eba0d@mail.gmail.com> References: <5b20b5900912291430m686c4c1ai36ead3a2cd6eba0d@mail.gmail.com> Message-ID: <117286890912300818v2cd929e2n3405ed020b305021@mail.gmail.com> Hi Peter, On Tue, Dec 29, 2009 at 2:30 PM, Peter Becker wrote: > Looking to get some views (and best practices) on code reviews. I used to > work at IBM on their early version of Websphere (as UI designer, not coder) > where our group had code reviews on a regular basis. I'm now managing a > small dev team working on a new web site using Zend PHP/MySql and am curious > to know what current practices are for reviews in this sort of environment. > On the one hand it seems like it'd be somewhat redundant since we are a > small team and the left hand does know what the right hand is doing, but on > the other, I could see it being very useful to ensure that everyone is on > the straight and narrow to everyone's benefit (particularly as the team > grows). Any good references as a starting point for approaches? Appreciate > the direction - > > Let me just start out by saying that I'm not a huge fan of the general "process" of code reviews as I know them: 1. Gathering a bunch of folks into a room to talk about a piece of code is a time-waster IMO - Unless they are specifically working on that portion of the project they are out of context from the get-go 2. You find something wrong, then what? And what if it is not "really" wrong (Jones uses a selection sort but sould have used an insertion sort, and no one told him beforehand). Do we hold up the project until the engs figure out what is best, even though the code "works"? Good luck explaining that to mgmt. And politically, it can make Jones look bad unnecessarily, yet, as the new guy on the team, he might not be familiar with the standards, practices, etc. of your group. I see the typical code-review process as reactive rather than proactive. Your time is better spent investing in a build process that provides code coverage, PMD, checkstyle/codesniffer reporting and of course insisting that developers need to write unit tests. All of this will give you and mgmt a better sense of where the code stands in terms of quality and is all reusable. In addition, daily, automated performance testing will tell you if you're about to release something that won't stand up to your traffic. With that said, I do believe in code reviews for two scenarios: 1. Senior members should review commits of junior members. We do this as a one-on-one mentoring scenario. 2. Something that is broken in production and needs to be fixed right now. When things are broken, people tend to get worked-up. Having someone look over what you're about to check in at that point is a good idea IMO. Thanks, Tom http://www.liphp.org > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > From mmwaldman at nyc.rr.com Wed Dec 30 19:19:49 2009 From: mmwaldman at nyc.rr.com (Michele Waldman) Date: Wed, 30 Dec 2009 19:19:49 -0500 Subject: [nycphp-talk] Http requests failing Message-ID: <8B.0A.01157.22EEB3B4@hrndva-omtalb.mail.rr.com> I wrote a bunch of php using functions like getimagesize and get_headers. Worked fine. Also, sudden the client is calling me saying to code is not working. I look at it it's fine. He's on the West Coast and off course I'm on the East Coast. It seems the http requests are randomly failing for him causing the code to fail. What to do? Michele -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajai at bitblit.net Wed Dec 30 19:31:42 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 30 Dec 2009 19:31:42 -0500 (EST) Subject: [nycphp-talk] Http requests failing In-Reply-To: <8B.0A.01157.22EEB3B4@hrndva-omtalb.mail.rr.com> Message-ID: On Wed, 30 Dec 2009, Michele Waldman wrote: > I wrote a bunch of php using functions like getimagesize and get_headers. > Worked fine. > > Also, sudden the client is calling me saying to code is not working. > > I look at it it's fine. He's on the West Coast and off course I'm on the > East Coast. > > It seems the http requests are randomly failing for him causing the code to > fail. Randomnly failing means what exactly? Any precise error messages or log entries? (and "web site go boom boom" is not a precise error message :-) -- Aj. From leam at reuel.net Wed Dec 30 19:36:20 2009 From: leam at reuel.net (Leam Hall) Date: Wed, 30 Dec 2009 19:36:20 -0500 Subject: [nycphp-talk] Http requests failing In-Reply-To: <8B.0A.01157.22EEB3B4@hrndva-omtalb.mail.rr.com> References: <8B.0A.01157.22EEB3B4@hrndva-omtalb.mail.rr.com> Message-ID: <4B3BF204.2040401@reuel.net> From the sysadmin side of my brain. Check the apache server logs. Use an anonomizer to get a different path. Send me the URL, if that's okay, and I can test it out with my local routing. Check server load. CHeck ping response times. He may be having local network burps or routing issues. Happens even with the big boys. Have him check using a different desktop. Leam Michele Waldman wrote: > I wrote a bunch of php using functions like getimagesize and get_headers. > Worked fine. > > > > Also, sudden the client is calling me saying to code is not working. > > > > I look at it it's fine. He's on the West Coast and off course I'm on the > East Coast. > > > > It seems the http requests are randomly failing for him causing the code to > fail. > > > > What to do? > > > > Michele > > > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From leam at reuel.net Wed Dec 30 19:38:11 2009 From: leam at reuel.net (Leam Hall) Date: Wed, 30 Dec 2009 19:38:11 -0500 Subject: [nycphp-talk] Http requests failing In-Reply-To: References: Message-ID: <4B3BF273.9000806@reuel.net> Ajai Khattri wrote: > (and "web site go boom boom" is not a precise error message :-) Obviously you've not worked with the same folks as I; that's about par for the course... Leam From ka at kacomputerconsulting.com Wed Dec 30 19:45:40 2009 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Wed, 30 Dec 2009 16:45:40 -0800 Subject: [nycphp-talk] Http requests failing Message-ID: <1262220340.5796@coral.he.net> The good part about errors like this is it's an opportunity to start a pool to guess when the call from the client saying "Wow, it just started working again, not sure why!" will come in. Whoever wins buys pizza. Kristina > Ajai Khattri wrote: > > > (and "web site go boom boom" is not a precise error message :-) > > Obviously you've not worked with the same folks as I; that's about par > for the course... > > Leam > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > From mmwaldman at nyc.rr.com Wed Dec 30 20:05:24 2009 From: mmwaldman at nyc.rr.com (Michele Waldman) Date: Wed, 30 Dec 2009 20:05:24 -0500 Subject: [nycphp-talk] Http requests failing In-Reply-To: <4B3BF204.2040401@reuel.net> Message-ID: Thanks, Leam. I've pretty much bowed out of this project. So, dude aka client sends his hosting provider an email. They say it's the programmer's issue. So, he reboots the http server and the issue is gone. He's got major problems with not enough ram, etc, but is doesn't want to deal with the upgrade. The hosting providers backups have been crashing the server. I'm a programmer, not a miracle worker, technically. Michele > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Leam Hall > Sent: Wednesday, December 30, 2009 7:36 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Http requests failing > > From the sysadmin side of my brain. > > Check the apache server logs. > Use an anonomizer to get a different path. > Send me the URL, if that's okay, and I can test it out with my local > routing. > Check server load. > CHeck ping response times. He may be having local network burps or > routing issues. Happens even with the big boys. > Have him check using a different desktop. > > Leam > > > Michele Waldman wrote: > > I wrote a bunch of php using functions like getimagesize and > get_headers. > > Worked fine. > > > > > > > > Also, sudden the client is calling me saying to code is not working. > > > > > > > > I look at it it's fine. He's on the West Coast and off course I'm on > the > > East Coast. > > > > > > > > It seems the http requests are randomly failing for him causing the code > to > > fail. > > > > > > > > What to do? > > > > > > > > Michele > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > New York PHP Users Group Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > http://www.nyphp.org/Show-Participation > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation From tmpvar at gmail.com Wed Dec 30 20:05:48 2009 From: tmpvar at gmail.com (Elijah Insua) Date: Wed, 30 Dec 2009 20:05:48 -0500 Subject: [nycphp-talk] Http requests failing In-Reply-To: <1262220340.5796@coral.he.net> References: <1262220340.5796@coral.he.net> Message-ID: <2b4feca10912301705w70e573d4q87bf7f440d6cd873@mail.gmail.com> > > The good part about errors like this is it's an opportunity to start a > pool to guess when the call from the client saying "Wow, it just started > working again, not sure why!" will come in. > I handle all of my production problems this way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mmwaldman at nyc.rr.com Wed Dec 30 20:09:58 2009 From: mmwaldman at nyc.rr.com (Michele Waldman) Date: Wed, 30 Dec 2009 20:09:58 -0500 Subject: [nycphp-talk] Session timing out Message-ID: <6A.0F.13308.3E9FB3B4@hrndva-omtalb.mail.rr.com> I inherited a project where the login code had already been written. The client asked me to stop the login from timing out the client and login them out. When I looked at the code, I didn't see anything that was calculating time logged in. It seems the system is automatically clearing the session variables. So, I took a look at the php.ini file. I thought the right variable to set would be: session.cache_expire But, that doesn't seem to be it. Does anyone know how to keep the session from clearing? Michele -------------- next part -------------- An HTML attachment was scrubbed... URL: From ka at kacomputerconsulting.com Wed Dec 30 20:19:40 2009 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Wed, 30 Dec 2009 17:19:40 -0800 Subject: [nycphp-talk] Session timing out Message-ID: <1262222380.11127@coral.he.net> > This is a multi-part message in MIME format. > > > I inherited a project where the login code had already been written. > > > > The client asked me to stop the login from timing out the client and login > them out. > > > > When I looked at the code, I didn't see anything that was calculating time > logged in. > > > > It seems the system is automatically clearing the session variables. > > > > So, I took a look at the php.ini file. I thought the right variable to set > would be: > > > > session.cache_expire > > > > But, that doesn't seem to be it. > > > > Does anyone know how to keep the session from clearing? > > > > Michele > > > > > Good reference material that explains session length and how to override defaults: http://www.captain.at/howto-php-sessions.php Kristina From ajai at bitblit.net Wed Dec 30 21:36:16 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 30 Dec 2009 21:36:16 -0500 (EST) Subject: [nycphp-talk] Session timing out In-Reply-To: <1262222380.11127@coral.he.net> Message-ID: On Wed, 30 Dec 2009, Kristina Anderson wrote: > > I inherited a project where the login code had already been written. > > > > The client asked me to stop the login from timing out the client and login > > them out. > > > > When I looked at the code, I didn't see anything that was calculating time > > logged in. > > > > It seems the system is automatically clearing the session variables. > > > > So, I took a look at the php.ini file. I thought the right variable > to set > > would be: > > > > session.cache_expire > > > > But, that doesn't seem to be it. http://www.php.net/manual/en/session.configuration.php -- Aj. From ka at kacomputerconsulting.com Wed Dec 30 21:42:23 2009 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Wed, 30 Dec 2009 18:42:23 -0800 Subject: [nycphp-talk] Session timing out Message-ID: <1262227343.26207@coral.he.net> Aj., Ms. Waldman wrote the below, not me. I posted the link to http://www.captain.at/howto-php-sessions.php in response. but your link is definitely worth a review too. I spend a lot of time at php.net needless to say. Kristina > On Wed, 30 Dec 2009, Kristina Anderson wrote: > > > > I inherited a project where the login code had already been written. > > > > > > The client asked me to stop the login from timing out the client and login > > > them out. > > > > > > When I looked at the code, I didn't see anything that was calculating time > > > logged in. > > > > > > It seems the system is automatically clearing the session variables. > > > > > > So, I took a look at the php.ini file. I thought the right variable > > to set > > > would be: > > > > > > session.cache_expire > > > > > > But, that doesn't seem to be it. > > http://www.php.net/manual/en/session.configuration.php > > > > -- > Aj. > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > From ajai at bitblit.net Wed Dec 30 21:51:19 2009 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 30 Dec 2009 21:51:19 -0500 (EST) Subject: [nycphp-talk] Session timing out In-Reply-To: <1262227343.26207@coral.he.net> Message-ID: On Wed, 30 Dec 2009, Kristina Anderson wrote: > Aj., Ms. Waldman wrote the below, not me. Yeah - of course I realized a few microseconds after I hit send... -- Aj. From ka at kacomputerconsulting.com Wed Dec 30 21:53:15 2009 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Wed, 30 Dec 2009 18:53:15 -0800 Subject: [nycphp-talk] Session timing out Message-ID: <1262227995.28109@coral.he.net> > On Wed, 30 Dec 2009, Kristina Anderson wrote: > > > Aj., Ms. Waldman wrote the below, not me. > > Yeah - of course I realized a few microseconds after I hit send... > > > > -- > Aj. > No worries, we just don't want to confuzzle anyone trying to follow the thread... :) Kristina From ka at kacomputerconsulting.com Wed Dec 30 21:54:42 2009 From: ka at kacomputerconsulting.com (Kristina Anderson) Date: Wed, 30 Dec 2009 18:54:42 -0800 Subject: [nycphp-talk] Session timing out Message-ID: <1262228082.28637@coral.he.net> > On Wed, 30 Dec 2009, Kristina Anderson wrote: > > > Aj., Ms. Waldman wrote the below, not me. > > Yeah - of course I realized a few microseconds after I hit send... > > > > -- > Aj. > No worries, we just don't want to confuzzle anyone trying to follow the thread... :) Kristina From matt at atopia.net Thu Dec 31 12:55:21 2009 From: matt at atopia.net (Matt Juszczak) Date: Thu, 31 Dec 2009 12:55:21 -0500 (EST) Subject: [nycphp-talk] OT: Standard Data Import Tool? In-Reply-To: <1d8a0e930912291449x4ddfaea7ubf3d7d9f2fdcf17@mail.gmail.com> References: <5e2aaca40912290945g1799897apee66950042b4c293@mail.gmail.com> <1d8a0e930912291449x4ddfaea7ubf3d7d9f2fdcf17@mail.gmail.com> Message-ID: Hi Adrian, Thanks for your reply. I'm more looking for software that will help with the flow, not necessarilly information on how to properly design software from scratch. But looks like we may do this from scratch in the end. Thanks! -Matt On Tue, 29 Dec 2009, Adrian Noland wrote: > If I understand your problem, then this may help: > http://www.devshed.com/c/a/PHP/Introducing-the-Strategy-Pattern/ > http://www.fluffycat.com/PHP-Design-Patterns/Strategy/ > > > I would use it something like this: > $this->data = new DataStream($source); > $bool = new BasicValidate($this->data); > $bool = new DataMapper($this->data); > $bool = new LayoutBuilder($this->data); > > if($bool) { > ??? $result = MysqlQuery($data); > } > > Adrian > > On Tue, Dec 29, 2009 at 11:46 AM, Matt Juszczak wrote: > Hi Greg, > > That's pretty much how we had things mapped out. ?Basic source validation in the beginning, then a more > standard validation later on. ?I guess my question was - is there any open source project that would help > with this work flow, such as handling exceptions in the case of bad data, etc. etc.? > > -Matt > > > On Tue, 29 Dec 2009, Greg Rundlett (freephile) wrote: > > There are several issues all bundled up here. > > First you have to define the file format(s) that your feeds come in so > that you can read them and isolate the data elements correctly. ?Are > they CSV, TSV, XML, custom? > At the first (read) step you can do gross validation like validate the > source for correct character encoding, record separators, record > length etc. > You also want to define "layouts" for various feeds. ?By defining the > layout, you can apply a set of processing instructions to transform > the received layout into the desired layout. > Once you have the data in the desired layout, you can then do finer > validation such as per field rules. ?E.g. last name must > /(a-zA-Z'-){2,100}/ > Then you can write an import routine that determines the correct > layout transformation to apply, reads the source, tranposes it, > validates it, stores it in the database, logs the event > > hth, > > Greg Rundlett > > nbpt 978-225-8302 > m. 978-764-4424 > -skype/aim/irc/twitter freephile > http://profiles.aim.com/freephile > > > > > On Tue, Dec 29, 2009 at 12:28 PM, Matt Juszczak wrote: > Hi all, > > I need to write a tool that somehow takes multiple data feeds (some xls > files, some csv files, etc.), defines each format, > verifies/validates/sanitizes the data, and imports it into standardized > MySQL tables. > > As an example, one feed might look like this: > > First Name, Last Name, DOB > > And another like this: > > Name, DOB > > And another: > > DOB, Last Name, First Name, Middle Initial > > I need to somehow be able to say "For this source, this column needs to be > split into two, and this other column is the date of birth column". ?Once > the data is parsed, it would need to be imported into standard MySQL tables: > > first_name, last_name, birth_date, etc. > > This is a simple example - the files and tables actually have 20-30 columns > each, so using mysqlimport or a simple shell script probably isn't the best > option. > > Are there open source tools out there that do this already? ?If not, should > I just build something? > > Thanks, > > -Matt > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > _______________________________________________ > New York PHP Users Group Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org/Show-Participation > > > >