From leam at reuel.net Wed Jun 1 07:10:15 2005 From: leam at reuel.net (leam at reuel.net) Date: Wed, 1 Jun 2005 07:10:15 -0400 Subject: [nycphp-talk] Making an array from a list item? In-Reply-To: <429C9908.7000000@phpwerx.net> References: <20050531164812.GE3104@leitz> <429C9908.7000000@phpwerx.net> Message-ID: <20050601111015.GB2905@leitz> Dan; That took me a couple minutes to transcribe. Probably a little longer to comprehend well enough to use again. ;) Does this sond like a reasonable english translation? Create an array called $output Create a query. Make the query and store the result in $result. Iterate through the rows in $result if there is no variable $output[$row]['skillID'] Create one as an array Add the $row['knackID'] onto the array $output[$row]['skillID'] print it so I can read it. It works! Thanks! I think the coffee has to really start kicking in before I fully get it though... ciao! leam On Tue, May 31, 2005 at 01:04:08PM -0400, Dan Cech wrote: > Try: > > $output = array(); > > $query = 'select skillID,knackID from characters.skill_knacks'; > $result = mysql_query($query,$link_id); > > while($row = mysql_fetch_array($result)) { > if (empty($output[$row['skillID']])) { > $output[$row['skillID']] = array(); > } > $output[$row['skillID']][] = $row['knackID']; > } > > print_r($output); > > Dan > > leam at reuel.net wrote: > >Trying to read code from last year. *sigh* At least it isn't as difficult > >as perl... > > > >Looking through the archives I don't think I've asked this before. If > >there is a better way, and I'd not be surprised, feel free to suggest it. > >;) > > > >My project is a character sheet for a game. Each character has a different > >set of skills, and each skill has a sub-skill called a "knack". A > >character can have a rank of 0-5 in a knack. "0" means they don't have > >that knack. Skills are not ranked; you just have it or not. For example, a > >character might have the Skill "Hunter" and have the knacks "Fishing (2)", > >"Stealth (2)", and "Tracking (1)". A character may or may not have all the > >knacks in a skill. Some knacks are in more than one skill. > > > >Each Skill and Knack has a unique short name like "hntr", "fshng", and > >"stlth". I've been using the short name as array keys. The character sheet > >pulls the list of skills that character has and then looks up what knacks > >are in that skill. It then writes the Skill header, lists each knack and > >the rank the character has in that knack. > >The current problem is that I'm using an included file that manually sets > >the array $htnr to have the knacks "fshg", "stlth", etc. I'd rather, if > >possible, have the array built from a database pull. I'm failing because I > >don't know how to iterate through a list and make the list item an array, > >and then populate the array with the knacks. > > > >Line from the included file: > > > >$hntr = array( "ambsh", "anmltn", "fshg", "sknng", "stlth", "srvl", > >"trkng", "trlsgns", "trps" ); > > > > > >So far the code looks like this: > > > > > >foreach ( $skills As $s ) { > > $a = $s; > > $s = array (); > > $$s[0] = $a; > > echo "

s[0] is $s[0]! "; > > $skill_knack_query = "select knackID from characters.skill_knacks > > where skillID='$a'"; > > $skill_knack_result = mysql_query("$skill_knack_query", $link_id); > > // echo "skill_knack_result is $skill_knack_result \n"; > > while($skill_knack_data = mysql_fetch_array($skill_knack_result)) { > > // echo "hello $skill_knack_data"; > > echo "

hello $skill_knack_data[knackID]"; > > array_push($s , $skill_knack_data["$knackID"] ); > > } > > echo "

s[0] is $s[0] "; > >} > > > >If I comment out the included file and try the above code it gives output > >like this: > > > >s[0] is ! > >hello ambsh hello anmltn hello fshg hello sknng hello stlth hello srvl > >hello trkng hello trlsgns hello trps s[0] is > > > >So the "echo $skill_knack_data[knackID]" line shows the short name is > >being gotten, I've just not gotten it onto the array. If I change the > >bottom "s[0] is $s[0] to higher number it still shows nothing in the array. > > > >It seems easiest to build the array to match the included file, but there > >may be a better, easier way. > > > >Thoughts? Suggestions? Crude comments? > > > >ciao! > > > >leam > > > > > >_______________________________________________ > >New York PHP Talk Mailing List > >AMP Technology > >Supporting Apache, MySQL and PHP > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.nyphp.org > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From lists at zaunere.com Wed Jun 1 11:09:51 2005 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 1 Jun 2005 11:09:51 -0400 Subject: [nycphp-talk] [OT] any interest in a newbie installfest ofWordPress plus in NY or NJ? In-Reply-To: <4297A9E3.3030109@travelersdiary.com> Message-ID: <0MKz5u-1DdUqu2Ajr-0000PZ@mrelay.perfora.net> I'd get involved. Maybe a Mambo installfest too? H > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Josh > McCormack > Sent: Friday, May 27, 2005 7:15 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] [OT] any interest in a newbie installfest ofWordPress plus in NY or > NJ? > > I'm not new to PHP/MySQL, but have not used WordPress, but want to for a > couple of sites. I'd love to get your perspective and guidance, > especially as I want to customize my installs of it. > > Josh > > inforequest wrote: > > > I always apreciated newbie installfests and so I am willing to set one up if there is > interest. > > > > WordPress is a hot blog software, written in PHP/MySQL. It is very flexible, and can be many > things in addition to a standard blog. It is now at a very nice and relatively stable version > 1.5.1.2 9 (as of today?) which I really like. > > > > Most of you out there are probably thinking "what's to install and configure? It's so > simple!" and you are correct. But it's not that easy for those not actively working with all- > things-php, and this is an installfest for those people. > > > > To make it even more interesting, I will suggest that while there are literally THOUSANDS of > themes and templates and plug-ins available (each one promoted as the best thing since Sliced > Images), there are actually not that many that are "ready for prime time" on the latest > WP1.5.x release. So there's value to participating even if you are so 133t you can program PHP > using this kick-ass keyboard http://peripherals.engadget.com/entry/1234000577031787/ > > > > Add to that the WordPress docs are widely dispersed and wiki-based, and there's plenty of > knowledge to share. > > > > Anybody interested? Here's what I figure could happen at least once: > > > > - bring your gear, meet at wifi friendly spot in NY or NJ > > - have an editor, your own hosting account or use a temp one provided by (someone or some > not-for-profit? Or we can NAT my T-mobile account and 0wn a Starbucks) > > - we can intro to SVN to get and keep up with WP, or just grab the DL. I can demonstrate why > you might consider the SVN nightlies... and if you don't use SVN this is an easy way to start > (WP is a wide open SVN repo). > > - there's many places to get themes and templates - I know a few good ones and few dead-ends > > - WP is based on a controller called the WP Loop. Get an intro so you can start hacking it. > > - The WP Codex is a vast knowledge base.. I have a set of bookmarks to start with > > - search engine friendly? Pheh. We can fix that, too, or at least start on the path. > > > > Let me know if you are interested, if you have ideas/preferences, or a place etc. Again I > encourage those who have little experience but want to dig into WP etc cause it's really low > key and low pressure to get started with WP. Of course if there are only uberstus, we could > jump right to in-lining bbpress and MG2, or tying in some single sign-on for a multiblog or > whatever. > > > > > > -=john andrews > > http://www.seo-fun.com (nothing to see, move along...) > > > > > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From mitch.pirtle at gmail.com Wed Jun 1 11:51:30 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 1 Jun 2005 11:51:30 -0400 Subject: [nycphp-talk] [OT] any interest in a newbie installfest ofWordPress plus in NY or NJ? In-Reply-To: <0MKz5u-1DdUqu2Ajr-0000PZ@mrelay.perfora.net> References: <4297A9E3.3030109@travelersdiary.com> <0MKz5u-1DdUqu2Ajr-0000PZ@mrelay.perfora.net> Message-ID: <330532b60506010851705e9a85@mail.gmail.com> On 6/1/05, Hans Zaunere wrote: > > I'd get involved. Maybe a Mambo installfest too? Somebody wanna Mambo? You can count me in ;-) -- Mitch From 1j0lkq002 at sneakemail.com Wed Jun 1 12:15:40 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 01 Jun 2005 12:15:40 -0400 Subject: [nycphp-talk] [OT] any interest in a newbie installfest ofWordPress plus in NY or NJ? In-Reply-To: <330532b60506010851705e9a85@mail.gmail.com> References: <4297A9E3.3030109@travelersdiary.com> <0MKz5u-1DdUqu2Ajr-0000PZ@mrelay.perfora.net> <330532b60506010851705e9a85@mail.gmail.com> Message-ID: <16627-75796@sneakemail.com> Mitch Pirtle mitch.pirtle-at-gmail.com |nyphp dev/internal group use| wrote: >On 6/1/05, Hans Zaunere wrote: > > >>I'd get involved. Maybe a Mambo installfest too? >> >> > >Somebody wanna Mambo? You can count me in ;-) > >-- Mitch >_______________________________________________ > > Great to hear Hans is supportive :-) do we have a space with wifi available or is that a hassle? From lists at zaunere.com Wed Jun 1 12:24:28 2005 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 1 Jun 2005 12:24:28 -0400 Subject: [nycphp-talk] [OT] any interest in a newbie installfest ofWordPressplus in NY or NJ? In-Reply-To: <16627-75796@sneakemail.com> Message-ID: <0MKz5u-1DdW172Owu-0003Od@mrelay.perfora.net> > >>I'd get involved. Maybe a Mambo installfest too? > >> > >> > > > >Somebody wanna Mambo? You can count me in ;-) > > > >-- Mitch > >_______________________________________________ > > > > > Great to hear Hans is supportive :-) do we have a space with wifi > available or is that a hassle? We could - we easily have it for a handful of people. Over 10 or so though, we'd have to look at another space (which would be a bar/rooftop in the LES). Either is doable without much effort. H From corey at bmfenterprises.com Wed Jun 1 17:34:22 2005 From: corey at bmfenterprises.com (Corey Fogarty) Date: Wed, 01 Jun 2005 17:34:22 -0400 Subject: [nycphp-talk] PEAR::SOAP, NuSOAP Message-ID: I am trying to make SOAP work on my Solaris machine which is running PHP 4.3.4. I searched for a simple ?hello world? demo and found some very convoluted stuff out there. Tried a couple with no luck, I am wondering if there is something wrong with PHP or my install of SOAP or the ?hello world? demo. Anyone out there who has done this and can guide me? I would be eternally grateful! Thanks, Corey -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Thu Jun 2 00:15:17 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Thu, 2 Jun 2005 00:15:17 -0400 Subject: [nycphp-talk] Mambo 4.5.2.2 is out! [SECURITY PATCH] Message-ID: <330532b6050601211576f53b90@mail.gmail.com> Hi gang, Apologies for the cross post. There was a security issue found in the included domit-xml xml parsing library in the current version of Mambo, which we have fixed with this release (4.5.2.2). The vulnerability includes information disclosure, including the contents of your configuration.php - so this is an immediate, critical upgrade. You can get the full version or patch at MamboForge: http://mamboforge.net/frs/?group_id=5 -- Mitch Pirtle Mambo Core Developer From dmintz at davidmintz.org Thu Jun 2 10:41:58 2005 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 2 Jun 2005 10:41:58 -0400 (EDT) Subject: [nycphp-talk] PEAR::SOAP, NuSOAP In-Reply-To: References: Message-ID: I don't have it here so I can't quote chapter and verse, but Sklar's book "Essential PHP Tools" has some good examples. You should buy it, but if you don't, it seems the code examples are available online from apress.com If you could upgrade to PHP5 you'd enjoy better SOAP support. (-: HTH --- David Mintz http://davidmintz.org/ On Wed, 1 Jun 2005, Corey Fogarty wrote: > I am trying to make SOAP work on my Solaris machine which is running PHP > 4.3.4. I searched for a simple ?hello world? demo and found some very > convoluted stuff out there. Tried a couple with no luck, I am wondering if > there is something wrong with PHP or my install of SOAP or the ?hello world? > demo. > > Anyone out there who has done this and can guide me? From jeff.knight at gmail.com Thu Jun 2 11:42:25 2005 From: jeff.knight at gmail.com (Jeff Knight) Date: Thu, 2 Jun 2005 11:42:25 -0400 Subject: [nycphp-talk] PEAR::SOAP, NuSOAP In-Reply-To: References: Message-ID: <2ca9ba9105060208426a6d03cc@mail.gmail.com> On 6/2/05, David Mintz wrote: > If you could upgrade to PHP5 you'd enjoy better SOAP support. (-: Much in the same way you'd "enjoy" getting hit by a hammer once an hour rather than once a minute. From odragola at gmail.com Thu Jun 2 12:02:11 2005 From: odragola at gmail.com (Odra Gola) Date: Thu, 2 Jun 2005 12:02:11 -0400 Subject: [nycphp-talk] mysql_unbuffered_query + mysql_pconnect Message-ID: Hello, Two questions: 1. Has anyone experienced any complications using mysql_unbuffered_query with mysql_pconnect? 2. Does mysql_unbuffered_query really lock the table(s) until all result rows are retrieved? Thanks, Odra -------------- next part -------------- An HTML attachment was scrubbed... URL: From enunez at tiaa-cref.org Thu Jun 2 13:27:49 2005 From: enunez at tiaa-cref.org (Nunez, Eddy) Date: Thu, 2 Jun 2005 13:27:49 -0400 Subject: [nycphp-talk] [OT] Consulting work Message-ID: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> Recently someone offered me some consulting work.... they're paying pretty well(so they say) @ ~$35-45 / hr based in manhattan, 20-30 hrs per week, mysql+php+perl; they want you to be on-site at least once a week - Which is why I couldn't accept. Anyone interested, let me know. -Eddy ************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Thu Jun 2 21:00:38 2005 From: shiflett at php.net (Chris Shiflett) Date: Thu, 02 Jun 2005 21:00:38 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> Message-ID: <429FABB6.5010909@php.net> Nunez, Eddy wrote: > Recently someone offered me some consulting work.... > they're paying pretty well(so they say) @ ~$35-45 / hr That's not bad for a full-time job with benefits and job stability, but $45/hour (or less) is not "paying pretty well" for consulting work. Friends don't let friends get screwed. :-) Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From codebowl at gmail.com Thu Jun 2 21:14:57 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 2 Jun 2005 21:14:57 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <429FABB6.5010909@php.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> Message-ID: <8d9a428005060218146462ad1c@mail.gmail.com> no for consulting/freelance no stability you're getting screwed. Here in Vermont i get $50 hour for contracting but then again that's vermont. In NYC i am not sure of the rates but i am sure you could get more than that ;) -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Thu Jun 2 21:45:32 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Thu, 2 Jun 2005 21:45:32 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <8d9a428005060218146462ad1c@mail.gmail.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> Message-ID: <330532b6050602184545404a61@mail.gmail.com> On 6/2/05, Joseph Crawford wrote: > no for consulting/freelance no stability you're getting screwed. Here in > Vermont i get $50 hour for contracting but then again that's vermont. In > NYC i am not sure of the rates but i am sure you could get more than that ;) As a freelancer you gotta get your own equipment, software, communications, etc., and ALSO health insurance, liability insurance, accountant etc. So you most definitely need to make sure your hourly rate makes it possible to fund all the non-salary stuff. NYC PHP programmers should make a minimum of $50/hr, and I get offers up to $120. Short-term projects of real high import are the $120/hr variety, and the longer term projects are typically of the $50-75/hr variety. This is all from my direct experience, which is questionable at best :-) -- Mitch From matt at jiffycomp.com Thu Jun 2 22:27:48 2005 From: matt at jiffycomp.com (Matt Morgan) Date: Thu, 02 Jun 2005 22:27:48 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <330532b6050602184545404a61@mail.gmail.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> Message-ID: <429FC024.5090707@jiffycomp.com> Mitch Pirtle wrote: >On 6/2/05, Joseph Crawford wrote: > > >>no for consulting/freelance no stability you're getting screwed. Here in >>Vermont i get $50 hour for contracting but then again that's vermont. In >>NYC i am not sure of the rates but i am sure you could get more than that ;) >> >> > >As a freelancer you gotta get your own equipment, software, >communications, etc., and ALSO health insurance, liability insurance, >accountant etc. So you most definitely need to make sure your hourly >rate makes it possible to fund all the non-salary stuff. > >NYC PHP programmers should make a minimum of $50/hr, and I get offers >up to $120. > >Short-term projects of real high import are the $120/hr variety, and >the longer term projects are typically of the $50-75/hr variety. > >This is all from my direct experience, which is questionable at best :-) > >-- Mitch >_______________________________________________ > > As a frequent employer of consulting programmers (not so much php, but similar) I agree. I run the IS department at a Museum ... a non-profit. $40 is what we pay consulting IT people and programmers when we beg them to work cheaper because we're poor and they go for it; $60-70 is more typical; and $125 is not unheard of (though we can only pay it in rare, extremely well-funded circumstances and for engagements with strict completion requirements). But they other thing I will say: we /always/ advertise a job for the lowest amount we think we can possibly get, and we /expect/ talented and experienced people to request higher pay. Just because it says $35-45, it doesn't mean that's the best they'll do. --Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Fri Jun 3 09:46:50 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Fri, 3 Jun 2005 09:46:50 -0400 (GMT-04:00) Subject: [nycphp-talk] [OT] Consulting work Message-ID: <30073-43035@sneakemail.com> As a consultant I agree with Mitch 100%. As a hiring manager I have to add that because it is an hourly rate, it will depend a great deal on the level of supervision exercised over your work (which includes the work environment). The more you know the better you can negotiate - so try and go as far into the process as you can without agreeing to a rate, to learn all you can about their situation. If you are a good fit for them, show them that, and ask for a higher rate. It's very much like a poker game, by the way. -----Original Message----- From: "Mitch Pirtle mitch.pirtle-at-gmail.com |nyphp dev/internal group use|" <...> Sent: Jun 2, 2005 9:45 PM To: NYPHP Talk Subject: Re: [nycphp-talk] [OT] Consulting work On 6/2/05, Joseph Crawford wrote: > no for consulting/freelance no stability you're getting screwed. Here in > Vermont i get $50 hour for contracting but then again that's vermont. In > NYC i am not sure of the rates but i am sure you could get more than that ;) As a freelancer you gotta get your own equipment, software, communications, etc., and ALSO health insurance, liability insurance, accountant etc. So you most definitely need to make sure your hourly rate makes it possible to fund all the non-salary stuff. NYC PHP programmers should make a minimum of $50/hr, and I get offers up to $120. Short-term projects of real high import are the $120/hr variety, and the longer term projects are typically of the $50-75/hr variety. This is all from my direct experience, which is questionable at best :-) -- Mitch _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From dmintz at davidmintz.org Fri Jun 3 09:52:10 2005 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 3 Jun 2005 09:52:10 -0400 (EDT) Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <30073-43035@sneakemail.com> References: <30073-43035@sneakemail.com> Message-ID: May I ask real dumb dilettante question? Thanks. How is it that a client can agree to an hourly rate without there being some kind of cap on it? If I say $75/hr and bill for 20 hrs, that's one thing; quite another if I bill for, say, 50. --- David Mintz http://davidmintz.org/ From mitch.pirtle at gmail.com Fri Jun 3 11:01:04 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Fri, 3 Jun 2005 11:01:04 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: References: <30073-43035@sneakemail.com> Message-ID: <330532b605060308016968520@mail.gmail.com> On 6/3/05, David Mintz wrote: > > May I ask real dumb dilettante question? Thanks. How is it that a client > can agree to an hourly rate without there being some kind of cap on it? If > I say $75/hr and bill for 20 hrs, that's one thing; quite another if I > bill for, say, 50. There is the balancing act. If you push too high on the hourly rate, the client will then push you to get the whole thing done in an hour ;-) Ultimately, they will have say $20,000 to get a given project done, and they will pay you the same amount in the end, either take your time with a low rate, or bust your butt for a high one. I avoid T&M (Time & Materials) projects for this very reason - they already know how much they are going to spend, and are only looking to get someone cheep. -- Mitch From mwithington at PLMresearch.com Fri Jun 3 11:17:04 2005 From: mwithington at PLMresearch.com (Mark Withington) Date: Fri, 3 Jun 2005 11:17:04 -0400 Subject: [nycphp-talk] [OT] Consulting work Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358EF2412@network.PLMresearch.com> Adding my two cents (or perhaps non-cents). Nearly all the "big" consulting companies follow this format when proposing consulting work: 1. "Through our vast knowledge we think this project will cost $xxx" (fyi - this rarely occurs); 2. "This is only an estimate, using best practices" (and witchcraft); 3. "We used the following rates/project plan to price this estimate"; 4. "If for some reasons the job take longer (e.g. reality sets in) we will use this rate card for all work going forward"; 5. "We of course will never charge you additional money without another estimate and your approval" (oh, btw when we get to this point you'll be so far into the project you'll have no choice but approve the new estimate) 6. We will meet frequently to ensure that you're aware of when we're going pull this stunt. 7. rinse and repeat. Can you tell that I live up in Boston - home of the "Big Dig" ;-) Enjoy the weekend -------------------------- Mark L. Withington PLMresearch "eBusiness for the Midsize Enterprise" PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 ext. 704 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 http://www.PLMresearch.com Netscape/AOL/MSN IM: PLMresearch mwithington at plmresearch.com Public Key: http://www.plmdev.com/plmr/plmresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmdev.com/plmr/plmresearch.com/calendar.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Mitch Pirtle Sent: Friday, June 03, 2005 11:01 AM To: NYPHP Talk Subject: Re: [nycphp-talk] [OT] Consulting work On 6/3/05, David Mintz wrote: > > May I ask real dumb dilettante question? Thanks. How is it that a client > can agree to an hourly rate without there being some kind of cap on it? If > I say $75/hr and bill for 20 hrs, that's one thing; quite another if I > bill for, say, 50. There is the balancing act. If you push too high on the hourly rate, the client will then push you to get the whole thing done in an hour ;-) Ultimately, they will have say $20,000 to get a given project done, and they will pay you the same amount in the end, either take your time with a low rate, or bust your butt for a high one. I avoid T&M (Time & Materials) projects for this very reason - they already know how much they are going to spend, and are only looking to get someone cheep. -- Mitch _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From enunez at tiaa-cref.org Fri Jun 3 11:38:45 2005 From: enunez at tiaa-cref.org (Nunez, Eddy) Date: Fri, 3 Jun 2005 11:38:45 -0400 Subject: [nycphp-talk] [OT] Consulting work Message-ID: <33DFD788D44E404CB92B90176DEC061A6DAEB6@NYCPDMSXMB06.ad.tiaa-cref.org> I've personally have never done any "real" consulting work.... except maybe in college... where I was paid like ~$15/hr... I was just a student and just learning at the time... so very different situation. I've always been able to work full time w/ benefits. Consultants' needs are a foreign topic to me. However, consultant or not, I would never knowningly let a colleague get "screwed" on pay; like someone else said...the pay is most likely negotiable. Work is work...money is always green, to someone who needs it enough. Or wants some experience bad enough. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Chris Shiflett Sent: Thursday, June 02, 2005 9:01 PM To: NYPHP Talk Subject: Re: [nycphp-talk] [OT] Consulting work Nunez, Eddy wrote: > Recently someone offered me some consulting work.... > they're paying pretty well(so they say) @ ~$35-45 / hr That's not bad for a full-time job with benefits and job stability, but $45/hour (or less) is not "paying pretty well" for consulting work. Friends don't let friends get screwed. :-) Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org ************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ************************************************************** From mitch.pirtle at gmail.com Fri Jun 3 11:54:00 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Fri, 3 Jun 2005 11:54:00 -0400 Subject: [nycphp-talk] [OT] Anybody hosting IRC? Message-ID: <330532b605060308543cd2e6af@mail.gmail.com> Hi gang, Today we (Mambo core developers) learned that our IRC server was going offline for good. It was provided gratis, so we couldn't complain :-) The question has been posed, "What now?" Is there anyone here that would be interested in providing IRC services for the Mambo project? I'd donate the servers myself, but the hosting center forbids IRC :-( -- Mitch From codebowl at gmail.com Fri Jun 3 12:45:21 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 3 Jun 2005 12:45:21 -0400 Subject: [nycphp-talk] [OT] Anybody hosting IRC? In-Reply-To: <330532b605060308543cd2e6af@mail.gmail.com> References: <330532b605060308543cd2e6af@mail.gmail.com> Message-ID: <8d9a428005060309456a97569a@mail.gmail.com> why deal with this? you are an open source project why not just start a channel on irc.freenode.net they are directed at open source. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Fri Jun 3 12:55:24 2005 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 3 Jun 2005 12:55:24 -0400 Subject: [nycphp-talk] [OT] Anybody hosting IRC? In-Reply-To: <330532b605060308543cd2e6af@mail.gmail.com> Message-ID: <0MKz5u-1DeFSA0WoF-0002HD@mrelay.perfora.net> > Today we (Mambo core developers) learned that our IRC server was going > offline for good. It was provided gratis, so we couldn't complain :-) > > The question has been posed, "What now?" Is there anyone here that > would be interested in providing IRC services for the Mambo project? > > I'd donate the servers myself, but the hosting center forbids IRC :-( New York PHP would have the bandwidth/server to do this. However, we'd need someone with experience to set and maintain the IRC server software itself. If this is something to discuss, ping me off list. An alternative, as Joe mentioned, would be freenode - they have a nice network. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From 1j0lkq002 at sneakemail.com Fri Jun 3 14:07:03 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Fri, 03 Jun 2005 14:07:03 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358EF2412@network.PLMresearch.com> References: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358EF2412@network.PLMresearch.com> Message-ID: <19937-91493@sneakemail.com> Mark Withington mwithington-at-PLMresearch.com |nyphp dev/internal group use| wrote: >Can you tell that I live up in Boston - home of the "Big Dig" ;-) > > haha.. that's a temporary honor. It was Denver with their massive baggage handling system for many years ( I still get a kick out of seeing blue screens on their baggage claim monitors -- they is always at least one when I pass thru). I suspect the Big Dig will be dethroned if NYC gets an Olympic opportunity, or perhaps even with the West Side stadium project. From codebowl at gmail.com Fri Jun 3 14:12:01 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 3 Jun 2005 14:12:01 -0400 Subject: [nycphp-talk] [OT] Anybody hosting IRC? In-Reply-To: <0MKz5u-1DeFSA0WoF-0002HD@mrelay.perfora.net> References: <330532b605060308543cd2e6af@mail.gmail.com> <0MKz5u-1DeFSA0WoF-0002HD@mrelay.perfora.net> Message-ID: <8d9a42800506031112d55ee21@mail.gmail.com> i have irc experience, not so much setting up and running but as a Server Admin On 6/3/05, Hans Zaunere wrote: > > > > Today we (Mambo core developers) learned that our IRC server was going > > offline for good. It was provided gratis, so we couldn't complain :-) > > > > The question has been posed, "What now?" Is there anyone here that > > would be interested in providing IRC services for the Mambo project? > > > > I'd donate the servers myself, but the hosting center forbids IRC :-( > > New York PHP would have the bandwidth/server to do this. However, we'd > need someone with experience to set and maintain the IRC server software > itself. If this is something to discuss, ping me off list. > > An alternative, as Joe mentioned, would be freenode - they have a nice > network. > > > --- > Hans Zaunere > President, Founder > > New York PHP > http://www.nyphp.org > > AMP Technology > Supporting Apache, MySQL and PHP > > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From max at neuropunks.org Fri Jun 3 14:47:51 2005 From: max at neuropunks.org (max) Date: Fri, 3 Jun 2005 13:47:51 -0500 Subject: [nycphp-talk] [OT] Anybody hosting IRC? In-Reply-To: <0MKz5u-1DeFSA0WoF-0002HD@mrelay.perfora.net> References: <330532b605060308543cd2e6af@mail.gmail.com> <0MKz5u-1DeFSA0WoF-0002HD@mrelay.perfora.net> Message-ID: <20050603184751.GA68167@neuropunks.org> Me and a couple of friends used to host/admin one of the irc.2600.net servers some time ago, was an obsd machine at exodus. (i used to nick muted on that network, im sure someone still remembers that time..) It was a Hybrid box, we set the thing up, it ran pretty well. I also have a server, at pilosoft, its a 1U netra t1, so I can host it if you want. Ill make you a jail. Or, you can have a couple of machines hosting it, for load and redundancy reasons. Or of course, something like efnet or freenode would be the way to go. It is nice when you are a server admin, not just a channel op tho, dont know about freenode, but i dont think that would be that easy to get at something like efnet On Fri, Jun 03, 2005 at 12:55:24PM -0400, Hans Zaunere wrote: > > > Today we (Mambo core developers) learned that our IRC server was going > > offline for good. It was provided gratis, so we couldn't complain :-) > > > > The question has been posed, "What now?" Is there anyone here that > > would be interested in providing IRC services for the Mambo project? > > > > I'd donate the servers myself, but the hosting center forbids IRC :-( > > New York PHP would have the bandwidth/server to do this. However, we'd need someone with experience to set and maintain the IRC server software itself. If this is something to discuss, ping me off list. > > An alternative, as Joe mentioned, would be freenode - they have a nice network. > > > --- > Hans Zaunere > President, Founder > > New York PHP > http://www.nyphp.org > > AMP Technology > Supporting Apache, MySQL and PHP > > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From lists at neoncowboy.com Fri Jun 3 16:11:18 2005 From: lists at neoncowboy.com (John Corry) Date: Fri, 3 Jun 2005 16:11:18 -0400 Subject: [nycphp-talk] [OT] Anybody hosting IRC? In-Reply-To: <8d9a428005060309456a97569a@mail.gmail.com> Message-ID: <20050603201335.01CBDA863B@virtu.nyphp.org> Ditto that. With irc.freenode.net positioned to give IRC hosting to open source projects...why not use them? I am regular on several channels there and can attest to their reliability. ________________________________ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: Friday, June 03, 2005 12:45 PM To: NYPHP Talk Subject: Re: [nycphp-talk] [OT] Anybody hosting IRC? why deal with this? you are an open source project why not just start a channel on irc.freenode.net they are directed at open source. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com From matt at jiffycomp.com Fri Jun 3 17:49:26 2005 From: matt at jiffycomp.com (Matt Morgan) Date: Fri, 03 Jun 2005 17:49:26 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: References: <30073-43035@sneakemail.com> Message-ID: <42A0D066.9020203@jiffycomp.com> David Mintz wrote: >May I ask real dumb dilettante question? Thanks. How is it that a client >can agree to an hourly rate without there being some kind of cap on it? If >I say $75/hr and bill for 20 hrs, that's one thing; quite another if I >bill for, say, 50. > >--- >David Mintz >http://davidmintz.org/ > In the case of Brooklyn Museum--actually yes, we often agree on an overall price for jobs. But it depends partly on where the funding is coming from. When it's my IT department funding and I know I'm going to be supervising the work directly, I don't mind doing it hourly (especially because then I can often ask the programmer to do additional work that was not part of the original spec, without having to get it approved by people outside the IT department). When the work is being funded by some other budget (kiosk content for a special exhibition, for example) it's always this-much-work for this-amount-of-money. Sometimes I'm hiring programmers not just to do exact work that's perfectly spec'ed out--sometimes I'm hiring programmers to tell ME the best way to do things, and to do it that way. In that case, hourly it is (usually). From mitch.pirtle at gmail.com Fri Jun 3 18:01:05 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Fri, 3 Jun 2005 18:01:05 -0400 Subject: [nycphp-talk] [OT] Anybody hosting IRC? In-Reply-To: <20050603201335.01CBDA863B@virtu.nyphp.org> References: <8d9a428005060309456a97569a@mail.gmail.com> <20050603201335.01CBDA863B@virtu.nyphp.org> Message-ID: <330532b605060315016db8c72f@mail.gmail.com> On 6/3/05, John Corry wrote: > > With irc.freenode.net positioned to give IRC hosting to open source > projects...why not use them? There is already a #mambo on freenode. What we need is a private IRC channel for the core developers, hence the need for a private server. If there was a way to have a private channel (authentication required) on freenode I would be all over it. -- Mitch Pirtle Mambo Core Developer From codebowl at gmail.com Fri Jun 3 18:16:46 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 3 Jun 2005 18:16:46 -0400 Subject: [nycphp-talk] [OT] Anybody hosting IRC? In-Reply-To: <330532b605060315016db8c72f@mail.gmail.com> References: <8d9a428005060309456a97569a@mail.gmail.com> <20050603201335.01CBDA863B@virtu.nyphp.org> <330532b605060315016db8c72f@mail.gmail.com> Message-ID: <8d9a4280050603151650a44866@mail.gmail.com> Mitch, in freenode's poliy anything not directly related to the project needs to use ##mambo, hence if you go there, you get #mambo and the other channel can join you or they will be moved to ##mambo. check ##php since they are NOT related to the actual PHP but a support channel they have to move thier channel. anyhow i think freenode would be a good home since you are an OSS project and they are focused on them. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Fri Jun 3 18:18:45 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 3 Jun 2005 18:18:45 -0400 Subject: [nycphp-talk] [OT] Anybody hosting IRC? In-Reply-To: <8d9a4280050603151650a44866@mail.gmail.com> References: <8d9a428005060309456a97569a@mail.gmail.com> <20050603201335.01CBDA863B@virtu.nyphp.org> <330532b605060315016db8c72f@mail.gmail.com> <8d9a4280050603151650a44866@mail.gmail.com> Message-ID: <8d9a4280050603151826b113ef@mail.gmail.com> Mitch, sorry i missed the actual mention of private channel. All IRCD's offer a way to have a private channel you would just set it secret /mode #channel +sk your-key-here the s makes it hidden from /list results and the k makes it so to join you have to type /join #channel your-channel-key hope this helps :) On 6/3/05, Joseph Crawford wrote: > > Mitch, > > in freenode's poliy anything not directly related to the project needs to > use ##mambo, hence if you go there, you get #mambo and the other channel can > join you or they will be moved to ##mambo. > > check ##php since they are NOT related to the actual PHP but a support > channel they have to move thier channel. > > anyhow i think freenode would be a good home since you are an OSS project > and they are focused on them. > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From corey at bmfenterprises.com Fri Jun 3 21:44:02 2005 From: corey at bmfenterprises.com (Corey Fogarty) Date: Fri, 03 Jun 2005 21:44:02 -0400 Subject: [nycphp-talk] SOAP IS KILLING ME SLOWLY! In-Reply-To: <20050603222102.8A404A87CB@virtu.nyphp.org> Message-ID: I am getting all manor of errors. It must be something I am not doing, or something I am doing and should not be... The last error I got said something about needing to install cURL, so I did that. Now it is still giving me an error when I try to use print_r(); and it only returns Object when I use print(); Please someone help or just plain shoot me! Thanks! Corey https://www.bmfenterprises.com/pearsoap-hello-client.php 'World'); /* Send a request to the server, and store its response in $response: */ $response = $client->call('helloWorld',$params,array('namespace'=> 'urn:helloworld')); /* Print the server-response: */ print $response; ?> https://www.bmfenterprises.com/pearsoap-hello-client2.php 'World'); /* Send a request to the server, and store its response in $response: */ $response = $client->call('helloWorld',$params,array('namespace'=> 'urn:helloworld')); /* Print the server-response: */ print_r($response); ?> dispatch_map['helloWorld'] = array( 'in' => array('inmessage'=>'string'), 'out' => array('outmessage'=>'string') ); } /* Of course, we also need to define all the functions that should be requestable through our server: */ function helloWorld($inmessage) { /* Generate a SOAP error if the argument was not valid: */ if($inmessage == '') { /* The SOAP error is generated by the SOAP_Fault class: */ $fault = new SOAP_Fault('You must supply a valid string!','12345'); return $fault->message(); } else { /* If the argument is okay, we submit out return message: */ return "Hello $inmessage!"; } } } /* Create a new SOAP server using PEAR::SOAP's SOAP_Server class: */ $server = new SOAP_Server(); /* Create an instance of our class: */ $soaphelloserver = new SOAP_Hello_Server(); /* Register this instance to the server class: */ $server->addObjectMap($soaphelloserver,array('namespace'=> 'urn:helloworld')); /* The following line starts the actual service: */ $server->service($HTTP_RAW_POST_DATA); ?> -------------- next part -------------- An HTML attachment was scrubbed... URL: From damovand at yahoo.com Sat Jun 4 08:14:39 2005 From: damovand at yahoo.com (Leila Lappin) Date: Sat, 4 Jun 2005 05:14:39 -0700 (PDT) Subject: [nycphp-talk] Availability of Evening and weekend work Message-ID: <20050604121439.54282.qmail@web30815.mail.mud.yahoo.com> I am involved in an educational program full time every day (8 ? 4). But I also need to work to support myself while continuing in the program. Is there any possibility for PHP work during evening or weekend hours? I am wondering and hoping that someone on this board has some experience or ideas about the possibilities and how to look for them? Thanks in advance for you advice and any input. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From chendry at gmail.com Sat Jun 4 12:57:50 2005 From: chendry at gmail.com (Christopher Hendry) Date: Sat, 4 Jun 2005 12:57:50 -0400 Subject: [nycphp-talk] SOAP IS KILLING ME SLOWLY! In-Reply-To: References: <20050603222102.8A404A87CB@virtu.nyphp.org> Message-ID: <769e4ce050604095754ec7652@mail.gmail.com> Don't know where you're at with this, but I hit your client, and I see you get this error from cURL: "curl_exec error 60 SSL certificate problem, verify that the CA cert is OK" Looks like cURL is trying to verify the authenticity of your cert, which being self signed, may be giving it problems (dunno). Have you tried: curl_setopt( $res, CURLOPT_SSL_VERIFYPEER, 0 ); Which should stop cURL from trying to verify it. Or test it without SSL? C -- "When you do things right, people won't be sure you've done anything at all." From damovand at yahoo.com Sat Jun 4 18:18:03 2005 From: damovand at yahoo.com (Leila Lappin) Date: Sat, 4 Jun 2005 15:18:03 -0700 (PDT) Subject: [nycphp-talk] Code review Message-ID: <20050604221803.56237.qmail@web30801.mail.mud.yahoo.com> Would anyone be interested to review some of my PHP scripts? I don?t know if this is too much to ask, I hope not. I?m trying to make my code according to the best practices and style. I?m reading Zend certification study guide, which is great. But I?m coming from a C++/Java background and old habits are hard to break. I think I could use the advice of a more experienced PHP developer to catch myself. Many thanks in advance for any help and advice given. Leila Lappin __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail From chendry at gmail.com Sat Jun 4 22:35:01 2005 From: chendry at gmail.com (Christopher Hendry) Date: Sat, 4 Jun 2005 19:35:01 -0700 Subject: [nycphp-talk] Code review In-Reply-To: <20050604221803.56237.qmail@web30801.mail.mud.yahoo.com> References: <20050604221803.56237.qmail@web30801.mail.mud.yahoo.com> Message-ID: <769e4ce050604193546308ef1@mail.gmail.com> Is it code you can make publicly available, I'm sure you'll get plenty of feedback if you do :) Otherwise, send me some snippets off list, I'd love to see how a C++/Java programmer is using PHP. Is it PHP5? C -- "When you do things right, people won't be sure you've done anything at all." From damovand at yahoo.com Sun Jun 5 11:34:04 2005 From: damovand at yahoo.com (Leila Lappin) Date: Sun, 5 Jun 2005 08:34:04 -0700 (PDT) Subject: [nycphp-talk] Code review In-Reply-To: <769e4ce050604193546308ef1@mail.gmail.com> Message-ID: <20050605153404.21206.qmail@web30814.mail.mud.yahoo.com> Hi, I don?t know if making my code publicly available would help since my scripts might not be useful to anyone, so they might not get anyone?s attention. I try to make my stuff interesting in terms of coding style. I definitely know what I need to do but having useful tips how to do certain things is something else. I?m sending a few of my scripts (in a zipped file) anything you care to browse through and comment would be great. I?m using PHP4.3.5 so there isn?t much object oriented coding. That?s too bad since I could really do it up with features like protected and private members. Thank you in advance for your time, and in case you?re interested in a comparison between Java and PHP I found this link that you may like http://www.tek271.com/articles/JavaOrPhp.html and find useful. --- Christopher Hendry wrote: > Is it code you can make publicly available, I'm sure > you'll get plenty > of feedback if you do :) > > Otherwise, send me some snippets off list, I'd love > to see how a > C++/Java programmer is using PHP. > > Is it PHP5? > > C > > > -- > > "When you do things right, people won't be sure > you've done anything at all." > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > __________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail -------------- next part -------------- A non-text attachment was scrubbed... Name: sample_code.zip Type: application/zip Size: 9495 bytes Desc: 2947804297-sample_code.zip URL: From mitch.pirtle at gmail.com Sun Jun 5 23:25:45 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sun, 5 Jun 2005 23:25:45 -0400 Subject: [nycphp-talk] Merchant processor options? Message-ID: <330532b605060520254737b55d@mail.gmail.com> Hey gang, Somewhat related is what happens when you want to bring a store online for a small local business. What procesing partner can you recommend? I'm used to doing this for gigantic megacorporations where it doesn't matter and relationships are already created; but this is only useful to the megacorporations... For the SMB market, who can you recommend for payment processing (and I don't mean PayPal!)? -- Mitch Pirtle Mambo Core Developer From preinheimer at gmail.com Sun Jun 5 23:31:51 2005 From: preinheimer at gmail.com (Paul Reinheimer) Date: Sun, 5 Jun 2005 23:31:51 -0400 Subject: [nycphp-talk] Code review In-Reply-To: <20050605153404.21206.qmail@web30814.mail.mud.yahoo.com> References: <769e4ce050604193546308ef1@mail.gmail.com> <20050605153404.21206.qmail@web30814.mail.mud.yahoo.com> Message-ID: <6ec19ec7050605203116b977b2@mail.gmail.com> hrm, I got so caught up arguing with the site you linked that I forgot to look at your code :) Four things that stick out during a quick look 1. In several places you echo out links to the user agent, but encode the ampersand, I don't think you need to do this, since you are using it as a seperator, not a charecter (or such is my understanding). eg. doQueryIndex.inc line 59 href="/anp/auth_man.php?event=doQueryLogin&loginAgent=doQueryLogin&target=doQueryIndex 2. You're using a global array to store data in physiology.php $_REQUEST['issue'] = htmlspecialchars(urldecode($url_array[4])); By storing processed data (in this case by urldecode) in a global variable, you make impossible for another function to determine later on wether or not the processing has occured. What if I passed an issue paramater in either a GET or POST? 3. This looks really dangerous $app = $class . '.inc'; include ($app); If url fopen wrappers are enabled I can include any file I want, from anywhere. If you absolutly need to do something like this, base it on a switch or if structure, if $class == "something" include "something.inc" elseif $class == "somethingelse" include "somethingelse.inc". 4. Your zip structure didn't include any directory structure, it's a good idea to keep your .inc files out of the document root. This way they can't be viewed by end users, or executed unexpectedly. paul On 6/5/05, Leila Lappin wrote: > Hi, > > I don't know if making my code publicly available > would help since my scripts might not be useful to > anyone, so they might not get anyone's attention. I > try to make my stuff interesting in terms of coding > style. I definitely know what I need to do but having > useful tips how to do certain things is something > else. I'm sending a few of my scripts (in a zipped > file) anything you care to browse through and comment > would be great. I'm using PHP4.3.5 so there isn't > much object oriented coding. That's too bad since I > could really do it up with features like protected and > private members. > > Thank you in advance for your time, and in case you're > interested in a comparison between Java and PHP I > found this link that you may like > http://www.tek271.com/articles/JavaOrPhp.html and find > useful. > > > --- Christopher Hendry wrote: > > > Is it code you can make publicly available, I'm sure > > you'll get plenty > > of feedback if you do :) > > > > Otherwise, send me some snippets off list, I'd love > > to see how a > > C++/Java programmer is using PHP. > > > > Is it PHP5? > > > > C > > > > > > -- > > > > "When you do things right, people won't be sure > > you've done anything at all." > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > > > > __________________________________ > Yahoo! Mail Mobile > Take Yahoo! Mail with you! Check email on your mobile phone. > http://mobile.yahoo.com/learn/mail > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > > -- Paul Reinheimer Zend Certified Engineer From dcech at phpwerx.net Mon Jun 6 07:53:54 2005 From: dcech at phpwerx.net (Dan Cech) Date: Mon, 06 Jun 2005 07:53:54 -0400 Subject: [nycphp-talk] Merchant processor options? In-Reply-To: <330532b605060520254737b55d@mail.gmail.com> References: <330532b605060520254737b55d@mail.gmail.com> Message-ID: <42A43952.2050800@phpwerx.net> Too easy, http://www.merchantplus.com/ Dan Mitch Pirtle wrote: > Hey gang, > > Somewhat related is what happens when you want to bring a store online > for a small local business. What procesing partner can you recommend? > > I'm used to doing this for gigantic megacorporations where it doesn't > matter and relationships are already created; but this is only useful > to the megacorporations... > > For the SMB market, who can you recommend for payment processing (and > I don't mean PayPal!)? > > -- > Mitch Pirtle > Mambo Core Developer From lists at zaunere.com Mon Jun 6 08:22:19 2005 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 6 Jun 2005 08:22:19 -0400 Subject: [nycphp-talk] Merchant processor options? In-Reply-To: <42A43952.2050800@phpwerx.net> Message-ID: <0MKz5u-1DfGca08aX-0002qd@mrelay.perfora.net> Ditto - Zac and company is good stuff. H > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Dan Cech > Sent: Monday, June 06, 2005 7:54 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Merchant processor options? > > Too easy, > > http://www.merchantplus.com/ > > Dan > > Mitch Pirtle wrote: > > Hey gang, > > > > Somewhat related is what happens when you want to bring a store online > > for a small local business. What procesing partner can you recommend? > > > > I'm used to doing this for gigantic megacorporations where it doesn't > > matter and relationships are already created; but this is only useful > > to the megacorporations... > > > > For the SMB market, who can you recommend for payment processing (and > > I don't mean PayPal!)? > > > > -- > > Mitch Pirtle > > Mambo Core Developer > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From damovand at yahoo.com Mon Jun 6 09:45:57 2005 From: damovand at yahoo.com (Leila Lappin) Date: Mon, 6 Jun 2005 06:45:57 -0700 (PDT) Subject: [nycphp-talk] Code review In-Reply-To: <6ec19ec7050605203116b977b2@mail.gmail.com> Message-ID: <20050606134557.4666.qmail@web30803.mail.mud.yahoo.com> Hi, Thank you for your review. Interesting to know in how many ways a code can fail. I?m going to find a better way to handle the points you mentioned. Thanks again for your time and help. --- Paul Reinheimer wrote: > hrm, I got so caught up arguing with the site you > linked > that I forgot to look at your code :) > > Four things that stick out during a quick look > > 1. In several places you echo out links to the user > agent, but encode the > ampersand, I don't think you need to do this, since > you are using it as > a seperator, not a charecter (or such is my > understanding). > eg. > doQueryIndex.inc > line 59 > href="/anp/auth_man.php?event=doQueryLogin&loginAgent=doQueryLogin&target=doQueryIndex > > 2. You're using a global array to store data in > physiology.php > $_REQUEST['issue'] = > htmlspecialchars(urldecode($url_array[4])); > > By storing processed data (in this case by > urldecode) in a global > variable, you make impossible for another function > to determine > later on wether or not the processing has occured. > What if I passed > an issue paramater in either a GET or POST? > > 3. This looks really dangerous > $app = $class . '.inc'; > include ($app); > If url fopen wrappers are enabled I can include any > file I want, from anywhere. > If you absolutly need to do something like this, > base it on a switch or if > structure, > if $class == "something" include "something.inc" > elseif > $class == "somethingelse" include > "somethingelse.inc". > > 4. Your zip structure didn't include any directory > structure, it's a > good idea to keep your .inc files out of the > document root. This way > they can't be viewed by end users, or executed > unexpectedly. > > > > paul > > > > On 6/5/05, Leila Lappin wrote: > > Hi, > > > > I don't know if making my code publicly available > > would help since my scripts might not be useful to > > anyone, so they might not get anyone's attention. > I > > try to make my stuff interesting in terms of > coding > > style. I definitely know what I need to do but > having > > useful tips how to do certain things is something > > else. I'm sending a few of my scripts (in a > zipped > > file) anything you care to browse through and > comment > > would be great. I'm using PHP4.3.5 so there > isn't > > much object oriented coding. That's too bad since > I > > could really do it up with features like protected > and > > private members. > > > > Thank you in advance for your time, and in case > you're > > interested in a comparison between Java and PHP I > > found this link that you may like > > http://www.tek271.com/articles/JavaOrPhp.html and > find > > useful. > > > > > > --- Christopher Hendry wrote: > > > > > Is it code you can make publicly available, I'm > sure > > > you'll get plenty > > > of feedback if you do :) > > > > > > Otherwise, send me some snippets off list, I'd > love > > > to see how a > > > C++/Java programmer is using PHP. > > > > > > Is it PHP5? > > > > > > C > > > > > > > > > -- > > > > > > "When you do things right, people won't be sure > > > you've done anything at all." > > > _______________________________________________ > > > New York PHP Talk Mailing List > > > AMP Technology > > > Supporting Apache, MySQL and PHP > > > http://lists.nyphp.org/mailman/listinfo/talk > > > http://www.nyphp.org > > > > > > > > > > > __________________________________ > > Yahoo! Mail Mobile > > Take Yahoo! Mail with you! Check email on your > mobile phone. > > http://mobile.yahoo.com/learn/mail > > > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > > > > > > > -- > Paul Reinheimer > Zend Certified Engineer > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > __________________________________ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail From damovand at yahoo.com Mon Jun 6 10:09:30 2005 From: damovand at yahoo.com (Leila Lappin) Date: Mon, 6 Jun 2005 07:09:30 -0700 (PDT) Subject: [nycphp-talk] Merchant processor options? In-Reply-To: <330532b605060520254737b55d@mail.gmail.com> Message-ID: <20050606140930.54234.qmail@web30809.mail.mud.yahoo.com> Just a point of curiosity why not PayPal? Is there something wrong with them? --- Mitch Pirtle wrote: > Hey gang, > > Somewhat related is what happens when you want to > bring a store online > for a small local business. What procesing partner > can you recommend? > > I'm used to doing this for gigantic megacorporations > where it doesn't > matter and relationships are already created; but > this is only useful > to the megacorporations... > > For the SMB market, who can you recommend for > payment processing (and > I don't mean PayPal!)? > > -- > Mitch Pirtle > Mambo Core Developer > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > __________________________________ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/ From chsnyder at gmail.com Mon Jun 6 10:17:35 2005 From: chsnyder at gmail.com (csnyder) Date: Mon, 6 Jun 2005 10:17:35 -0400 Subject: [nycphp-talk] Code review In-Reply-To: <6ec19ec7050605203116b977b2@mail.gmail.com> References: <769e4ce050604193546308ef1@mail.gmail.com> <20050605153404.21206.qmail@web30814.mail.mud.yahoo.com> <6ec19ec7050605203116b977b2@mail.gmail.com> Message-ID: On 6/5/05, Paul Reinheimer wrote: > 1. In several places you echo out links to the user agent, but encode the > ampersand, I don't think you need to do this, since you are using it as > a seperator, not a charecter (or such is my understanding). > href="/anp/auth_man.php?event=doQueryLogin&loginAgent=[...]" Using & as a separator in output URLs is required if the output is XHTML, because an ampersand by itself is not an allowed entity. So the above snippet is fine. -- Chris Snyder http://chxo.com/ From preinheimer at gmail.com Mon Jun 6 10:41:09 2005 From: preinheimer at gmail.com (Paul Reinheimer) Date: Mon, 6 Jun 2005 10:41:09 -0400 Subject: [nycphp-talk] Code review In-Reply-To: References: <769e4ce050604193546308ef1@mail.gmail.com> <20050605153404.21206.qmail@web30814.mail.mud.yahoo.com> <6ec19ec7050605203116b977b2@mail.gmail.com> Message-ID: <6ec19ec705060607416f38493b@mail.gmail.com> I stand corrected, thanks! An entity reference was found in the document, but there is no reference by that name defined. Often this is caused by misspelling the reference name, unencoded ampersands, or by leaving off the trailing semicolon (;). The most common cause of this error is unencoded ampersands in URLs as described by the WDG in "Ampersands in URLs". Entity references start with an ampersand (&) and end with a semicolon (;). If you want to use a literal ampersand in your document you must encode it as "&" (even inside URLs!). Be careful to end entity references with a semicolon or your entity reference may get interpreted in connection with the following text. Also keep in mind that named entity references are case-sensitive; &Aelig; and æ are different characters. Note that in most documents, errors related to entity references will trigger up to 5 separate messages from the Validator. Usually these will all disappear when the original problem is fixed. paul On 6/6/05, csnyder wrote: > On 6/5/05, Paul Reinheimer wrote: > > > 1. In several places you echo out links to the user agent, but encode the > > ampersand, I don't think you need to do this, since you are using it as > > a seperator, not a charecter (or such is my understanding). > > > href="/anp/auth_man.php?event=doQueryLogin&loginAgent=[...]" > > Using & as a separator in output URLs is required if the output is > XHTML, because an ampersand by itself is not an allowed entity. So the > above snippet is fine. > > -- > Chris Snyder > http://chxo.com/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Paul Reinheimer Zend Certified Engineer From damovand at yahoo.com Mon Jun 6 10:55:34 2005 From: damovand at yahoo.com (Leila Lappin) Date: Mon, 6 Jun 2005 07:55:34 -0700 (PDT) Subject: [nycphp-talk] any good mambo (adding component) documentation? Message-ID: <20050606145534.75869.qmail@web30806.mail.mud.yahoo.com> Does anyone know of any good documentation about how to add a component to mambo? A few months ago I looked at a number of online resources for good documentation on how to add a component to mambo and found nothing either comprehensive or complete. I am now reading an article on different CMS and it brings me back to my original questions about mambo. Here?s the article if anyone is interested http://www.billkatz.com/node/12 Leila __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From mitch.pirtle at gmail.com Mon Jun 6 12:54:42 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 6 Jun 2005 12:54:42 -0400 Subject: [nycphp-talk] Merchant processor options? In-Reply-To: <20050606140930.54234.qmail@web30809.mail.mud.yahoo.com> References: <330532b605060520254737b55d@mail.gmail.com> <20050606140930.54234.qmail@web30809.mail.mud.yahoo.com> Message-ID: <330532b605060609546a8febc3@mail.gmail.com> On 6/6/05, Leila Lappin wrote: > Just a point of curiosity why not PayPal? Is there > something wrong with them? Too many horror stories, too much frustration for non-PayPal clients to get started, and too much difficulty dealing with PayPal in general. If you want to sell something online, PayPal only represents a small percentage of the market - as everyone has a debit/credit card nowadays, but few use PayPal. I think being technical skews our perspectives - when you talk to a non-geek, it becomes painfully clear that PayPal is only ancillary, and not a major provider. -- Mitch From list at harveyk.com Mon Jun 6 13:00:29 2005 From: list at harveyk.com (harvey) Date: Mon, 06 Jun 2005 13:00:29 -0400 Subject: [nycphp-talk] Merchant processor options? In-Reply-To: <330532b605060609546a8febc3@mail.gmail.com> References: <330532b605060520254737b55d@mail.gmail.com> <20050606140930.54234.qmail@web30809.mail.mud.yahoo.com> <330532b605060609546a8febc3@mail.gmail.com> Message-ID: <6.1.0.6.2.20050606125809.03931b70@mail.harveyk.com> You can use Paypal as a processor for credit card transactions The purchaser does not need a Paypal account Millions and millions of people are familiar with it through eBay I think the main issue for the developer is ease of customization At 12:54 PM 6/6/2005, Mitch Pirtle wrote: >On 6/6/05, Leila Lappin wrote: > > Just a point of curiosity why not PayPal? Is there > > something wrong with them? > >Too many horror stories, too much frustration for non-PayPal clients >to get started, and too much difficulty dealing with PayPal in >general. > >If you want to sell something online, PayPal only represents a small >percentage of the market - as everyone has a debit/credit card >nowadays, but few use PayPal. > >I think being technical skews our perspectives - when you talk to a >non-geek, it becomes painfully clear that PayPal is only ancillary, >and not a major provider. > >-- Mitch >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org From max at neuropunks.org Mon Jun 6 13:01:03 2005 From: max at neuropunks.org (max) Date: Mon, 6 Jun 2005 12:01:03 -0500 Subject: [nycphp-talk] Merchant processor options? In-Reply-To: <330532b605060609546a8febc3@mail.gmail.com> References: <330532b605060520254737b55d@mail.gmail.com> <20050606140930.54234.qmail@web30809.mail.mud.yahoo.com> <330532b605060609546a8febc3@mail.gmail.com> Message-ID: <20050606170103.GA67705@neuropunks.org> One good one in my experience was netbilling.com Another thing to consider, is that may be Yahoo store is a better option. At some point we set that up for a customer, because there was a deadline, and there was no need for a ridiculous ammount of custom code - yahoo will process your payments, as well as host your inventory and give you a shopping cart and tools for management - great if you want to setup someone with a do once and forget option. You will still make plenty of hours doing support, trust me : ) On Mon, Jun 06, 2005 at 12:54:42PM -0400, Mitch Pirtle wrote: > On 6/6/05, Leila Lappin wrote: > > Just a point of curiosity why not PayPal? Is there > > something wrong with them? > > Too many horror stories, too much frustration for non-PayPal clients > to get started, and too much difficulty dealing with PayPal in > general. > > If you want to sell something online, PayPal only represents a small > percentage of the market - as everyone has a debit/credit card > nowadays, but few use PayPal. > > I think being technical skews our perspectives - when you talk to a > non-geek, it becomes painfully clear that PayPal is only ancillary, > and not a major provider. > > -- Mitch > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From preinheimer at gmail.com Mon Jun 6 13:01:45 2005 From: preinheimer at gmail.com (Paul Reinheimer) Date: Mon, 6 Jun 2005 13:01:45 -0400 Subject: [nycphp-talk] Merchant processor options? In-Reply-To: <330532b605060609546a8febc3@mail.gmail.com> References: <330532b605060520254737b55d@mail.gmail.com> <20050606140930.54234.qmail@web30809.mail.mud.yahoo.com> <330532b605060609546a8febc3@mail.gmail.com> Message-ID: <6ec19ec705060610013e873383@mail.gmail.com> Horror Stories: http://www.paypalsucks.com/ Much of my displeasure with PayPal dissolved away when they switched to stop requiring an account to send payment. These days you can send a payment via paypal just by using your credit card, no lasting account. paul On 6/6/05, Mitch Pirtle wrote: > On 6/6/05, Leila Lappin wrote: > > Just a point of curiosity why not PayPal? Is there > > something wrong with them? > > Too many horror stories, too much frustration for non-PayPal clients > to get started, and too much difficulty dealing with PayPal in > general. > > If you want to sell something online, PayPal only represents a small > percentage of the market - as everyone has a debit/credit card > nowadays, but few use PayPal. > > I think being technical skews our perspectives - when you talk to a > non-geek, it becomes painfully clear that PayPal is only ancillary, > and not a major provider. > > -- Mitch > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Paul Reinheimer Zend Certified Engineer From mitch.pirtle at gmail.com Mon Jun 6 13:06:26 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 6 Jun 2005 13:06:26 -0400 Subject: [nycphp-talk] any good mambo (adding component) documentation? In-Reply-To: <20050606145534.75869.qmail@web30806.mail.mud.yahoo.com> References: <20050606145534.75869.qmail@web30806.mail.mud.yahoo.com> Message-ID: <330532b605060610067078eef0@mail.gmail.com> Hey Leila, Andrew Eddie (fearless development leader for Mambo) has written a two-part series on creating components for Mambo, you can see them here: http://help.mamboserver.com/index.php?option=com_content&task=category§ionid=11&id=135&Itemid=64 Running out the door, but will most definitely be reading the Drupal/Mambo comparison when I get back - thanks for the link! -- Mitch Pirtle Mambo Core Developer On 6/6/05, Leila Lappin wrote: > Does anyone know of any good documentation about how > to add a component to mambo? A few months ago I > looked at a number of online resources for good > documentation on how to add a component to mambo and > found nothing either comprehensive or complete. > > I am now reading an article on different CMS and it > brings me back to my original questions about mambo. > Here's the article if anyone is interested > http://www.billkatz.com/node/12 > > Leila > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From damovand at yahoo.com Mon Jun 6 14:40:51 2005 From: damovand at yahoo.com (Leila Lappin) Date: Mon, 6 Jun 2005 11:40:51 -0700 (PDT) Subject: [thanks]Re: [nycphp-talk] any good mambo (adding component) documentation? In-Reply-To: <330532b605060610067078eef0@mail.gmail.com> Message-ID: <20050606184051.70488.qmail@web30805.mail.mud.yahoo.com> and you're welcome, glad you found the link interesting . --- Mitch Pirtle wrote: > Hey Leila, > > Andrew Eddie (fearless development leader for Mambo) > has written a > two-part series on creating components for Mambo, > you can see them > here: > > http://help.mamboserver.com/index.php?option=com_content&task=category§ionid=11&id=135&Itemid=64 > > Running out the door, but will most definitely be > reading the > Drupal/Mambo comparison when I get back - thanks for > the link! > > -- > Mitch Pirtle > Mambo Core Developer > > On 6/6/05, Leila Lappin wrote: > > Does anyone know of any good documentation about > how > > to add a component to mambo? A few months ago I > > looked at a number of online resources for good > > documentation on how to add a component to mambo > and > > found nothing either comprehensive or complete. > > > > I am now reading an article on different CMS and > it > > brings me back to my original questions about > mambo. > > Here's the article if anyone is interested > > http://www.billkatz.com/node/12 > > > > Leila > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > __________________________________ Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. http://info.mail.yahoo.com/mail_250 From damovand at yahoo.com Wed Jun 8 08:11:23 2005 From: damovand at yahoo.com (Leila Lappin) Date: Wed, 8 Jun 2005 05:11:23 -0700 (PDT) Subject: [nycphp-talk] is everyone on vacation? Message-ID: <20050608121123.72378.qmail@web30809.mail.mud.yahoo.com> I'm just curious why I haven't seen anything since Monday. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From damovand at yahoo.com Wed Jun 8 08:25:23 2005 From: damovand at yahoo.com (Leila Lappin) Date: Wed, 8 Jun 2005 05:25:23 -0700 (PDT) Subject: [nycphp-talk] is everyone on vacation? In-Reply-To: <20050608121123.72378.qmail@web30809.mail.mud.yahoo.com> Message-ID: <20050608122523.88535.qmail@web30801.mail.mud.yahoo.com> I got my own message, so everybody must be busy at work and that's the reason for the lull. That's good to know. --- Leila Lappin wrote: > I'm just curious why I haven't seen anything since > Monday. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > __________________________________ Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html From krook at us.ibm.com Wed Jun 8 09:29:54 2005 From: krook at us.ibm.com (Daniel Krook) Date: Wed, 8 Jun 2005 09:29:54 -0400 Subject: [nycphp-talk] PHP5 reimplementation of Struts (ZNF) Message-ID: Since we do seem to have a lull on the list... :) This project was brought to my attention this morning. Seems interesting, though I haven't had time to dig into it yet. They're looking for testers and developers. The have a very comprehensive developer's guide in PDF at: http://znf.zeronotice.com/docs/znf-0.7.0.pdf "[ZeroNotice] have developed an open source PHP5 reimplementation of Struts. This is not the first attempt to rewrite the Struts implementation, or part of it, in PHP, but after spending a lot of time studying existing open source frameworks, like Phrame, PHPMVC, Struts4PHP, Seagull and Vida we decided to reimplement a brand new framework from scratch for many reasons. First of all, all the mentioned frameworks, except Vida, are written in PHP4 and we believe that its object engine (Zend Engine 1) is too limited for developing enterprise level web application. At the same time the code we analyzed is written without a rigorous approach (coding standards, compliance to W3C standards, output of notice/warnings, lack of documentation/examples). Last but not least frameworks claiming to be a porting of Struts have made no code optimization during the porting from J2EE to PHP. We're searching for comments, feedback, bug signaling and best of all new developers. Any kind of contribution will be appreciated! ZNF is free software released under GNU/LGPL license, the official ZNF home page is at http://znf.zeronotice.com/." Daniel Krook, Advisory IT Specialist Application Development, Production Services - Tools, ibm.com Personal: http://info.krook.org/ BluePages: http://bluepages.redirect.webahead.ibm.com/ BlogPages: http://blogpages.redirect.webahead.ibm.com/ From jeff.knight at gmail.com Wed Jun 8 10:45:10 2005 From: jeff.knight at gmail.com (Jeff Knight) Date: Wed, 8 Jun 2005 10:45:10 -0400 Subject: [nycphp-talk] is everyone on vacation? In-Reply-To: <20050608122523.88535.qmail@web30801.mail.mud.yahoo.com> References: <20050608121123.72378.qmail@web30809.mail.mud.yahoo.com> <20050608122523.88535.qmail@web30801.mail.mud.yahoo.com> Message-ID: <2ca9ba9105060807451c467e66@mail.gmail.com> I know a lot of people are busy and/or out of town, but none of it has to do with fun. Many of the usual suspects, in fact, will not be on hand for tonight's salute to php's 10th at the Remote Lounge. On 6/8/05, Leila Lappin wrote: > I got my own message, so everybody must be busy at > work and that's the reason for the lull. That's good > to know. > > --- Leila Lappin wrote: > > > I'm just curious why I haven't seen anything since > > Monday. > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > > protection around > > http://mail.yahoo.com > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > > > > > __________________________________ > Discover Yahoo! > Stay in touch with email, IM, photo sharing and more. Check it out! > http://discover.yahoo.com/stayintouch.html > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From mitch.pirtle at gmail.com Wed Jun 8 11:54:30 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 8 Jun 2005 11:54:30 -0400 Subject: [nycphp-talk] is everyone on vacation? In-Reply-To: <2ca9ba9105060807451c467e66@mail.gmail.com> References: <20050608121123.72378.qmail@web30809.mail.mud.yahoo.com> <20050608122523.88535.qmail@web30801.mail.mud.yahoo.com> <2ca9ba9105060807451c467e66@mail.gmail.com> Message-ID: <330532b60506080854a9ba019@mail.gmail.com> On 6/8/05, Jeff Knight wrote: > I know a lot of people are busy and/or out of town, but none of it has > to do with fun. Many of the usual suspects, in fact, will not be on > hand for tonight's salute to php's 10th at the Remote Lounge. You can add me to the list of workload casualties, as I have been burning the midnight oil on the upcoming Mambo 4.5.3 release and a pile of articles/writing, and consequently getting behind on my project work and domestic duties, which just makes the days go even longer! Would love to be there tonight, and am truly disappointed that I am not able to make it. Everyone please have an extra beer for me to make up for my absence ;-) -- Mitch Pirtle Mambo Core Developer From jaimeb82 at yahoo.com Wed Jun 8 12:32:06 2005 From: jaimeb82 at yahoo.com (jaime bermudez) Date: Wed, 8 Jun 2005 09:32:06 -0700 (PDT) Subject: [nycphp-talk] How to run a script? Message-ID: <20050608163206.72226.qmail@web51301.mail.yahoo.com> I have been running the following command >mysql -h host -u bookorama -D books -p < bookorama.sql so I don't have to type over and over my sql scripts . The command doesn't work for me and I don't know how to do it even when this should be a simple task. I am doing this: mysql> mysql -h jbe -u root -D jaime -p < jaime.sql; I get the following error: ERROR 1064 (42000) __________________________________ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/ From preinheimer at gmail.com Wed Jun 8 12:57:56 2005 From: preinheimer at gmail.com (Paul Reinheimer) Date: Wed, 8 Jun 2005 12:57:56 -0400 Subject: [nycphp-talk] is everyone on vacation? In-Reply-To: <330532b60506080854a9ba019@mail.gmail.com> References: <20050608121123.72378.qmail@web30809.mail.mud.yahoo.com> <20050608122523.88535.qmail@web30801.mail.mud.yahoo.com> <2ca9ba9105060807451c467e66@mail.gmail.com> <330532b60506080854a9ba019@mail.gmail.com> Message-ID: <6ec19ec705060809571124b7df@mail.gmail.com> My editor doesn't beleive in vacation, only deadlines :) paul On 6/8/05, Mitch Pirtle wrote: > On 6/8/05, Jeff Knight wrote: > > I know a lot of people are busy and/or out of town, but none of it has > > to do with fun. Many of the usual suspects, in fact, will not be on > > hand for tonight's salute to php's 10th at the Remote Lounge. > > You can add me to the list of workload casualties, as I have been > burning the midnight oil on the upcoming Mambo 4.5.3 release and a > pile of articles/writing, and consequently getting behind on my > project work and domestic duties, which just makes the days go even > longer! > > Would love to be there tonight, and am truly disappointed that I am > not able to make it. Everyone please have an extra beer for me to make > up for my absence ;-) > > -- > Mitch Pirtle > Mambo Core Developer > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Paul Reinheimer Zend Certified Engineer From andrew at plexpod.com Wed Jun 8 13:06:00 2005 From: andrew at plexpod.com (Andrew Yochum) Date: Wed, 8 Jun 2005 13:06:00 -0400 Subject: [nycphp-talk] How to run a script? In-Reply-To: <20050608163206.72226.qmail@web51301.mail.yahoo.com> References: <20050608163206.72226.qmail@web51301.mail.yahoo.com> Message-ID: <20050608170559.GI8012@zoidberg.digitalpulp.com> On Wed, Jun 08, 2005 at 09:32:06AM -0700, jaime bermudez wrote: > I have been running the following command > > >mysql -h host -u bookorama -D books -p < > bookorama.sql > > > so I don't have to type over and over my sql scripts . > The command doesn't work for me and I don't know how > to do it even when this should be a simple task. > > I am doing this: > > mysql> mysql -h jbe -u root -D jaime -p < jaime.sql; > I get the following error: > > ERROR 1064 (42000) You're almost there. Run the same command at your shell prompt instead of the mysql prompt. In other words, don't login to the mysql command line client first. HTH, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From dmintz at davidmintz.org Wed Jun 8 14:10:47 2005 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 8 Jun 2005 14:10:47 -0400 (EDT) Subject: [nycphp-talk] How to run a script? In-Reply-To: <20050608170559.GI8012@zoidberg.digitalpulp.com> References: <20050608163206.72226.qmail@web51301.mail.yahoo.com> <20050608170559.GI8012@zoidberg.digitalpulp.com> Message-ID: On Wed, 8 Jun 2005, Andrew Yochum wrote: > > > On Wed, Jun 08, 2005 at 09:32:06AM -0700, jaime bermudez wrote: > > I am doing this: > > > > mysql> mysql -h jbe -u root -D jaime -p < jaime.sql; > > I get the following error: > > > > ERROR 1064 (42000) > > You're almost there. Run the same command at your shell prompt instead > of the mysql prompt. In other words, don't login to the mysql command > line client first. Or, if you want to run jaime.sql once you are already sitting at the mysql prompt: mysql> \. /path/to/jaime.sql I just noticed while doing a little fact-checking that apparently the source file has to be in the same directory or a descendant directory of the directory you were in when you launched mysql; you can't go back up the tree. True? --- David Mintz http://davidmintz.org/ From nyphp at enobrev.com Wed Jun 8 23:38:01 2005 From: nyphp at enobrev.com (Mark Armendariz) Date: Wed, 8 Jun 2005 20:38:01 -0700 Subject: [nycphp-talk] Pitching PHP to a Java House Message-ID: <20050609034228.34E50A862D@virtu.nyphp.org> Anyone here ever pitch PHP to a Java house? I have a fairly large client who's interest may be waning due to their current Java setup. They are listening, but not necessarily intently. I've been doing my reading, but my time is very short. I'm finding a lot about scalability, but for the most part, the articles are short and the discussions are generally my-language-can-kick-your-language's-ass-cuz-I-said-so, and you're-all-children-use-C-or-perl. I need to get off the playground and actually prove to this client that php is a viable option. Current site is running Struts, using customs Java for model and controller and JSP for the view F5 Labs Big IP load balancer 8 Machines running Apache 2 in worker MPM mode (which I've read that PHP doesn't quite love) Resin 2.1 Oracle 9i db A good friend mentioned that he usually argues that the development time is preferable with PHP. Anyone here have resources to share or a good general direction to walk in with this argument? Thanks! Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From krook at us.ibm.com Thu Jun 9 00:10:42 2005 From: krook at us.ibm.com (Daniel Krook) Date: Thu, 9 Jun 2005 00:10:42 -0400 Subject: [nycphp-talk] Pitching PHP to a Java House In-Reply-To: <20050609034228.34E50A862D@virtu.nyphp.org> Message-ID: > Anyone here ever pitch PHP to a Java house? > > I have a fairly large client who?s interest may be waning > due to their current Java setup. They are listening, but > not necessarily intently. I?ve been doing my reading, but > my time is very short. I?m finding a lot about > scalability, but for the most part, the articles are short > and the discussions are generally my-language-can-kick- > your-language?s-ass-cuz-I-said-so, and you?re-all- > children-use-C-or-perl. I need to get off the playground > and actually prove to this client that php is a viable option. > > Current site is running Struts, using customs Java for > model and controller and JSP for the view > F5 Labs Big IP load balancer > 8 Machines running Apache 2 in worker MPM mode (which I?ve > read that PHP doesn?t quite love) > Resin 2.1 > Oracle 9i db > > A good friend mentioned that he usually argues that the > development time is preferable with PHP. Anyone here have > resources to share or a good general direction to walk in > with this argument? Mark, You could take the following three-pronged approach to a situation like this; after you've honestly evaluated the client's needs and decided that PHP would suit them better than Java. * Establish PHP's corporate credibility Point out that IBM has partnered with Zend Technologies to provide support for PHP. Better yet, plan to attend and let them know about NYPHP's upcoming June meeting with members of the IBM Software Group: http://nyphp.org/ You might also have them take a look at SourceLabs: http://sourcelabs.com/ * Show how PHP's features are enterprise ready Pick some case studies from Zend about PHP's application in the enterprise: http://www.zend.com/company/customers.php * Show examples of a migration path To keep their J2EE developers comfortable, show them that their existing Java knowledge translates nicely to PHP5. They might be interested in reading about the ZNF (PHP5 reimplementation of Struts) which I found out about today: http://znf.zeronotice.com/ or phpPatterns from Harry Fuecks: http://www.sitepoint.com/articlelist/210 Of course, they can even choose to run PHP and J2EE side by side to take advantage of each platforms relative advantage. :) http://ibm.com/developerworks/websphere/techjournal/0505_krook/0505_krook.html Daniel Krook, Advisory IT Specialist Application Development, Production Services - Tools, ibm.com Personal: http://info.krook.org/ BluePages: http://bluepages.redirect.webahead.ibm.com/ BlogPages: http://blogpages.redirect.webahead.ibm.com/ From tgales at tgaconnect.com Thu Jun 9 04:26:48 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Thu, 09 Jun 2005 04:26:48 -0400 Subject: [nycphp-talk] Pitching PHP to a Java House In-Reply-To: <20050609034228.34E50A862D@virtu.nyphp.org> References: <20050609034228.34E50A862D@virtu.nyphp.org> Message-ID: <42A7FD48.9030202@tgaconnect.com> Mark Armendariz writes: > Anyone here ever pitch PHP to a Java house? >... Anyone here have resources to share or a good > general direction to walk in with this argument? You may find this to be of interest: http://troutgirl.com/blog/index.php?/archives/22_Friendster_goes_PHP.html Also this blog by Peter Yared: http://peteryared.blogspot.com/2003/09/next-language.html Peter Yared is the founder of ActiveGrid which has developed something called the 'Grid Application Server', which uses LAMP to create horizontally scalable 'transaction grids'. It might be worthwhile to take a look at the ActiveGrid approach, particularly the 'old thinking' vs. 'new thinking' at: http://www.activegrid.com/technology/index.php -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From tom at supertom.com Thu Jun 9 07:11:18 2005 From: tom at supertom.com (Tom) Date: Thu, 09 Jun 2005 07:11:18 -0400 Subject: [nycphp-talk] Pitching PHP to a Java House In-Reply-To: <20050609034228.34E50A862D@virtu.nyphp.org> Message-ID: <0IHT00EQHCUQPA@mta9.srv.hcvlny.cv.net> Hi Mark, In addition to the good points made by others, you may also want to mention Oracle's involvement/investment in PHP, especially since your client is using Oracle themselves. http://www.oracle.com/technology/tech/php/index.html Tom http://www.liphp.org _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Mark Armendariz Sent: Wednesday, June 08, 2005 11:38 PM To: 'NYPHP Talk' Subject: [nycphp-talk] Pitching PHP to a Java House Anyone here ever pitch PHP to a Java house? I have a fairly large client who's interest may be waning due to their current Java setup. They are listening, but not necessarily intently. I've been doing my reading, but my time is very short. I'm finding a lot about scalability, but for the most part, the articles are short and the discussions are generally my-language-can-kick-your-language's-ass-cuz-I-said-so, and you're-all-children-use-C-or-perl. I need to get off the playground and actually prove to this client that php is a viable option. Current site is running Struts, using customs Java for model and controller and JSP for the view F5 Labs Big IP load balancer 8 Machines running Apache 2 in worker MPM mode (which I've read that PHP doesn't quite love) Resin 2.1 Oracle 9i db A good friend mentioned that he usually argues that the development time is preferable with PHP. Anyone here have resources to share or a good general direction to walk in with this argument? Thanks! Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From smanes at magpie.com Thu Jun 9 07:27:16 2005 From: smanes at magpie.com (Steve Manes) Date: Thu, 09 Jun 2005 07:27:16 -0400 Subject: [nycphp-talk] Pitching PHP to a Java House In-Reply-To: <20050609034228.34E50A862D@virtu.nyphp.org> References: <20050609034228.34E50A862D@virtu.nyphp.org> Message-ID: <42A82794.8050800@magpie.com> Mark Armendariz wrote: > A good friend mentioned that he usually argues that the development time > is preferable with PHP. Anyone here have resources to share or a good > general direction to walk in with this argument? A company for whom I consult was considering porting their existing ASP software from PHP/Perl to Java. Their reason had mostly to do with their new tech director and the fact that he only knew Java. Most of my arguments fell on deaf ears. The one that finally caused the bosses to put the kibosh on the Java porting project was my reminder of how the software is hacked almost daily to add new chrome and doodads for specific ASP clients without affecting the others. PHP (and Perl) are simply better suited to this sort of ad hoc surgery than Java. It also helped when I told them that their PHP/PostgreSQL production servers had been up for 480 days without a reboot (they were also considering porting to an MS architecture). From gisolfi at us.ibm.com Thu Jun 9 07:26:06 2005 From: gisolfi at us.ibm.com (Dan Gisolfi) Date: Thu, 9 Jun 2005 07:26:06 -0400 Subject: Fw: [nycphp-talk] Pitching PHP to a Java House Message-ID: Mark: I concur with Krook's three prong approach and would like to elaborate on the third point -- Coexistence. I would suggest that you do not want to challenge the J2EE skill base and mindset of this client. Instead you want to show them that PHP can be used as a productivity enhancement to the front-end of their web application development. Focus on segmenting their project into Web/UI (client-side) and backend business process (server-side) architectures. Then site examples about how PHP is a more productive than Java for developing web application. Avoid comparisons about Java and PHP. The bottom line is that both are adequate languages, especially with PHP5 moving to OO. Focus on productivity as this correlates to time which == $$. To make this argument clear you want to stress that integration between a struts based PHP framework and a J2EE backend is feasible. Dan Gisolfi talk-bounces at lists.nyphp.org wrote on 06/09/2005 12:10:42 AM: > > Anyone here ever pitch PHP to a Java house? > > > > I have a fairly large client who?s interest may be waning > > due to their current Java setup. They are listening, but > > not necessarily intently. I?ve been doing my reading, but > > my time is very short. I?m finding a lot about > > scalability, but for the most part, the articles are short > > and the discussions are generally my-language-can-kick- > > your-language?s-ass-cuz-I-said-so, and you?re-all- > > children-use-C-or-perl. I need to get off the playground > > and actually prove to this client that php is a viable option. > > > > Current site is running Struts, using customs Java for > > model and controller and JSP for the view > > F5 Labs Big IP load balancer > > 8 Machines running Apache 2 in worker MPM mode (which I?ve > > read that PHP doesn?t quite love) > > Resin 2.1 > > Oracle 9i db > > > > A good friend mentioned that he usually argues that the > > development time is preferable with PHP. Anyone here have > > resources to share or a good general direction to walk in > > with this argument? > > > Mark, > > You could take the following three-pronged approach to a situation like > this; after you've honestly evaluated the client's needs and decided that > PHP would suit them better than Java. > > * Establish PHP's corporate credibility > Point out that IBM has partnered with Zend Technologies to provide support > for PHP. Better yet, plan to attend and let them know about NYPHP's > upcoming June meeting with members of the IBM Software Group: > http://nyphp.org/ > You might also have them take a look at SourceLabs: http://sourcelabs.com/ > > * Show how PHP's features are enterprise ready > Pick some case studies from Zend about PHP's application in the > enterprise: http://www.zend.com/company/customers.php > > * Show examples of a migration path > To keep their J2EE developers comfortable, show them that their existing > Java knowledge translates nicely to PHP5. They might be interested in > reading about the ZNF (PHP5 reimplementation of Struts) which I found out > about today: http://znf.zeronotice.com/ or phpPatterns from Harry Fuecks: > http://www.sitepoint.com/articlelist/210 > Of course, they can even choose to run PHP and J2EE side by side to take > advantage of each platforms relative advantage. :) > http://ibm.com/developerworks/websphere/techjournal/0505_krook/0505_krook.html > > > > > > Daniel Krook, Advisory IT Specialist > Application Development, Production Services - Tools, ibm.com > > Personal: http://info.krook.org/ > BluePages: http://bluepages.redirect.webahead.ibm.com/ > BlogPages: http://blogpages.redirect.webahead.ibm.com/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From damovand at yahoo.com Thu Jun 9 08:10:48 2005 From: damovand at yahoo.com (Leila Lappin) Date: Thu, 9 Jun 2005 05:10:48 -0700 (PDT) Subject: [nycphp-talk] Pitching PHP to a Java House In-Reply-To: <42A82794.8050800@magpie.com> Message-ID: <20050609121048.79978.qmail@web30807.mail.mud.yahoo.com> One word of caution, Warning the following is a rant, read with caution or don?t read if you don?t want to be bothered, With success comes migration of jobs elsewhere and more than 100million hungry programmers poised and ready to take the jobs away. Sorry for the trumpet of doom and despair but it?s happened before. Since I already spilled the beans, let me elaborate a little more. The only reason PHP remains a good source of employment in New York is because the big boys (mid to large size corporations) don?t take it seriously. Once they start doing so, next thing you know they?re importing cheap programmers to do the work and whatnot. Let the Java people remain in their Java houses and think their big giant cow of a language is the best thing that ever happened to the IT community. With PHP5 becoming the standard installation in all shops, we all know that Java loses its lead as a better object oriented language and the only thing it has to boast. But let?s keep this a sweet secret. Sorry for the rant, I hope I haven?t ruined your morning. --- Steve Manes wrote: > Mark Armendariz wrote: > > A good friend mentioned that he usually argues > that the development time > > is preferable with PHP. Anyone here have resources > to share or a good > > general direction to walk in with this argument? > > A company for whom I consult was considering porting > their existing ASP > software from PHP/Perl to Java. Their reason had > mostly to do with > their new tech director and the fact that he only > knew Java. > > Most of my arguments fell on deaf ears. The one > that finally caused the > bosses to put the kibosh on the Java porting project > was my reminder of > how the software is hacked almost daily to add new > chrome and doodads > for specific ASP clients without affecting the > others. PHP (and Perl) > are simply better suited to this sort of ad hoc > surgery than Java. > > It also helped when I told them that their > PHP/PostgreSQL production > servers had been up for 480 days without a reboot > (they were also > considering porting to an MS architecture). > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > __________________________________ Discover Yahoo! Use Yahoo! to plan a weekend, have fun online and more. Check it out! http://discover.yahoo.com/ From edwardpotter at gmail.com Thu Jun 9 08:27:19 2005 From: edwardpotter at gmail.com (edward potter) Date: Thu, 9 Jun 2005 08:27:19 -0400 Subject: [nycphp-talk] Pitching PHP to a Java House In-Reply-To: <20050609121048.79978.qmail@web30807.mail.mud.yahoo.com> References: <42A82794.8050800@magpie.com> <20050609121048.79978.qmail@web30807.mail.mud.yahoo.com> Message-ID: What has happened at a few shops I worked with, use php to "model" the project, then move it over to Java. What happens? No one moves it "over" to Java, it just works as is. And everyone just moves on. -ed :-) On 6/9/05, Leila Lappin wrote: > One word of caution, > Warning the following is a rant, read with caution or > don't read if you don't want to be bothered, > > > With success comes migration of jobs elsewhere and > more than 100million hungry programmers poised and > ready to take the jobs away. Sorry for the trumpet of > doom and despair but it's happened before. > > Since I already spilled the beans, let me elaborate a > little more. The only reason PHP remains a good > source of employment in New York is because the big > boys (mid to large size corporations) don't take it > seriously. Once they start doing so, next thing you > know they're importing cheap programmers to do the > work and whatnot. Let the Java people remain in their > Java houses and think their big giant cow of a > language is the best thing that ever happened to the > IT community. > > With PHP5 becoming the standard installation in all > shops, we all know that Java loses its lead as a > better object oriented language and the only thing it > has to boast. But let's keep this a sweet secret. > > Sorry for the rant, I hope I haven't ruined your > morning. > > --- Steve Manes wrote: > > > Mark Armendariz wrote: > > > A good friend mentioned that he usually argues > > that the development time > > > is preferable with PHP. Anyone here have resources > > to share or a good > > > general direction to walk in with this argument? > > > > A company for whom I consult was considering porting > > their existing ASP > > software from PHP/Perl to Java. Their reason had > > mostly to do with > > their new tech director and the fact that he only > > knew Java. > > > > Most of my arguments fell on deaf ears. The one > > that finally caused the > > bosses to put the kibosh on the Java porting project > > was my reminder of > > how the software is hacked almost daily to add new > > chrome and doodads > > for specific ASP clients without affecting the > > others. PHP (and Perl) > > are simply better suited to this sort of ad hoc > > surgery than Java. > > > > It also helped when I told them that their > > PHP/PostgreSQL production > > servers had been up for 480 days without a reboot > > (they were also > > considering porting to an MS architecture). > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > > > > > __________________________________ > Discover Yahoo! > Use Yahoo! to plan a weekend, have fun online and more. Check it out! > http://discover.yahoo.com/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From ps at pswebcode.com Thu Jun 9 09:15:42 2005 From: ps at pswebcode.com (Peter Sawczynec) Date: Thu, 9 Jun 2005 09:15:42 -0400 Subject: [nycphp-talk] Pitching PHP to a Java House In-Reply-To: <20050609034228.34E50A862D@virtu.nyphp.org> Message-ID: <000901c56cf5$59f73e10$6400a8c0@yourx1adg12jme> I think one of the answer avenues here is that for raw competitive purposes, the single developer/small shop should deliver PHP and JAVA and be able to handle the maximum diversity of the client's needs. >From my experiences in corporate environments with competing technologies setting in, the most successful shop/developer/IT manager in the mix has a handle on the broadest array of technologies at play and manages and delivers the thoroughbred mix. The corp will/must go where it needs and the emps typically need to ratchet to match. I feel independent work works out best when one really focuses gangbusters on what one does best and delivers it in spades and fast. When the client really doesn't want your stuff, you leave your portfolio/card and you must nail the next client that wants your stuff now. I think PHP would benefit most from making/delivering compatibility extensions/strategies that embrace (I mean, just swallow up) what JAVA puts out. And then PHP moves on, shoulder to shoulder with JAVA taking all it can give and sucking up more marketplace nonetheless. So that in theory the discussion becomes more how do we get our JAVA to maximize its integration with PHP which is just obviously such an incredible monster everywhere product. Of course, I have not yet jumped on the continuing JAVA up tick myself. But I think if I add a new technology to my personal portfolio (and I want to keep my technologies very portable and very web related), JAVA would be next. Warmest regards, Peter Sawczynec Technology Director PSWebcode ps at pswebcode.com 718.543.3240 -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Mark Armendariz Sent: Wednesday, June 08, 2005 11:38 PM To: 'NYPHP Talk' Subject: [nycphp-talk] Pitching PHP to a Java House Anyone here ever pitch PHP to a Java house? I have a fairly large client who's interest may be waning due to their current Java setup. They are listening, but not necessarily intently. I've been doing my reading, but my time is very short. I'm finding a lot about scalability, but for the most part, the articles are short and the discussions are generally my-language-can-kick-your-language's-ass-cuz-I-said-so, and you're-all-children-use-C-or-perl. I need to get off the playground and actually prove to this client that php is a viable option. Current site is running Struts, using customs Java for model and controller and JSP for the view F5 Labs Big IP load balancer 8 Machines running Apache 2 in worker MPM mode (which I've read that PHP doesn't quite love) Resin 2.1 Oracle 9i db A good friend mentioned that he usually argues that the development time is preferable with PHP. Anyone here have resources to share or a good general direction to walk in with this argument? Thanks! Mark -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at enobrev.com Thu Jun 9 11:58:31 2005 From: nyphp at enobrev.com (Mark Armendariz) Date: Thu, 9 Jun 2005 08:58:31 -0700 Subject: [nycphp-talk] Pitching PHP to a Java House In-Reply-To: <000901c56cf5$59f73e10$6400a8c0@yourx1adg12jme> Message-ID: <20050609160254.E9A26A87AA@virtu.nyphp.org> You guys never cease to impress me. And in such a short time as well. I began writing a summary of the pros and cons of php and whatnot, but it felt so loaded and bs. In the end I pointed out that the languages are comparable as far as the web is concerned and have their preferred uses and environments. I'd emphasized the "Time-to-market" and bottom line and gave examples of large companies switching to PHP. You guys gave me a great palette to work with. Thanks so much! Mark Armendariz From nestorflorez at earthlink.net Thu Jun 9 12:18:00 2005 From: nestorflorez at earthlink.net (Nestor Florez) Date: Thu, 9 Jun 2005 09:18:00 -0700 (GMT-07:00) Subject: [nycphp-talk] Pitching PHP to a Java House Message-ID: <18193800.1118333880508.JavaMail.root@wamui-chisos.atl.sa.earthlink.net> PHP is one of Oracle 10g prefer sons :-) Plenty of Oracle/PHP info on otn.oracle.com Nestor :-) -----Original Message----- From: Mark Armendariz Sent: Jun 8, 2005 8:38 PM To: 'NYPHP Talk' Subject: [nycphp-talk] Pitching PHP to a Java House Anyone here ever pitch PHP to a Java house? I have a fairly large client who's interest may be waning due to their current Java setup. They are listening, but not necessarily intently. I've been doing my reading, but my time is very short. I'm finding a lot about scalability, but for the most part, the articles are short and the discussions are generally my-language-can-kick-your-language's-ass-cuz-I-said-so, and you're-all-children-use-C-or-perl. I need to get off the playground and actually prove to this client that php is a viable option. Current site is running Struts, using customs Java for model and controller and JSP for the view F5 Labs Big IP load balancer 8 Machines running Apache 2 in worker MPM mode (which I've read that PHP doesn't quite love) Resin 2.1 Oracle 9i db A good friend mentioned that he usually argues that the development time is preferable with PHP. Anyone here have resources to share or a good general direction to walk in with this argument? Thanks! Mark From shiflett at php.net Thu Jun 9 12:52:52 2005 From: shiflett at php.net (Chris Shiflett) Date: Thu, 09 Jun 2005 12:52:52 -0400 Subject: [nycphp-talk] Pitching PHP to a Java House In-Reply-To: <20050609160254.E9A26A87AA@virtu.nyphp.org> References: <20050609160254.E9A26A87AA@virtu.nyphp.org> Message-ID: <42A873E4.7010509@php.net> Another thing that I didn't see mentioned is that there isn't much Java at the very top (nor Microsoft for that matter). Look at the big boys: Yahoo, Google, Amazon, TicketMaster, etc. They all use different languages and platforms, but there is some common DNA in their solutions. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From leam at reuel.net Thu Jun 9 13:05:00 2005 From: leam at reuel.net (leam at reuel.net) Date: Thu, 9 Jun 2005 13:05:00 -0400 Subject: [nycphp-talk] Including CSS? Message-ID: <20050609170459.GF2944@leitz.reuel.net> The first way I saw to reference a CSS file was to have it in the section, like this: But since i'm using include() on some files outside the docroot, is there a way to include the css file? Or does to have to be in the header? ciao! leam From codebowl at gmail.com Thu Jun 9 13:11:13 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 9 Jun 2005 13:11:13 -0400 Subject: [nycphp-talk] Including CSS? In-Reply-To: <20050609170459.GF2944@leitz.reuel.net> References: <20050609170459.GF2944@leitz.reuel.net> Message-ID: <8d9a42800506091011163ac970@mail.gmail.com> i believe the CSS has to remain in the header for it to be recognised but i am not a css guru either ;) i know yoiu can embed css using the However, this will mean that the css data has to be sent on each and every request. By using the link syntax the styles fie will only be fetched periodically assuming the client is using caching, and can also be cached by proxy servers, which will increase the performance of the site/application. Dan leam at reuel.net wrote: > The first way I saw to reference a CSS file was to have it in the section, like this: > > > > But since i'm using include() on some files outside the docroot, is there a way to include the css file? Or does to have to be in the header? > > ciao! > > leam From rahmin at insite-out.com Thu Jun 9 13:55:19 2005 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Thu, 9 Jun 2005 13:55:19 -0400 Subject: [nycphp-talk] Including CSS? Message-ID: <200506091755.j59HtJZW004686@webmail3.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From ps at pswebcode.com Thu Jun 9 14:21:36 2005 From: ps at pswebcode.com (Peter Sawczynec) Date: Thu, 9 Jun 2005 14:21:36 -0400 Subject: [nycphp-talk] Including CSS? In-Reply-To: <20050609170459.GF2944@leitz.reuel.net> Message-ID: <002e01c56d20$156d68c0$6400a8c0@yourx1adg12jme> .css and .js files can typically be included anywhere in the HTML doc and the info will get pulled in. It is not pretty but it works. But for clarity, in a hypothetical file such as base.php with content of: If the hypothetical content of head.inc.php is similar to: '; $style2=''; ($switchvar==33)? $stylechoice = $style1 : $stylechoice = $style2; echo << $switchvar Page $stylechoice END; $newbodyvar = $switchvar++; ?> Then it doesn't matter at all where the file called head.inc.php is physically located because the .css file won't get included until PHP has composited the page and sent it down to the browser as raw HTML and the browser will grab the .css include according to your true web site dir structure. Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of leam at reuel.net Sent: Thursday, June 09, 2005 1:05 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] Including CSS? The first way I saw to reference a CSS file was to have it in the section, like this: But since i'm using include() on some files outside the docroot, is there a way to include the css file? Or does to have to be in the header? ciao! leam _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From shiflett at php.net Thu Jun 9 14:37:32 2005 From: shiflett at php.net (Chris Shiflett) Date: Thu, 09 Jun 2005 14:37:32 -0400 Subject: [nycphp-talk] Including CSS? In-Reply-To: <20050609170459.GF2944@leitz.reuel.net> References: <20050609170459.GF2944@leitz.reuel.net> Message-ID: <42A88C6C.7050705@php.net> leam at reuel.net wrote: > The first way I saw to reference a CSS file was to have it in the > section, like this: > > href="http://albasystemadmin.org/alba.css"> > > But since i'm using include() on some files outside the docroot, > is there a way to include the css file? Or does to have to be in > the header? Is your stylesheet within document root? If it is, the first method that you mention is best. This lets the browser handle fetching the stylesheet, so it can cache it and issue conditional GETs for subsequent requests. This cuts down on your bandwidth consumption. As per your specific question, just remember that PHP only cares about PHP code - CSS, JavaScript, and HTML are all things you output with PHP (or place outside of PHP blocks). This stuff is up to you. Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From lists at zaunere.com Thu Jun 9 17:33:36 2005 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 9 Jun 2005 17:33:36 -0400 Subject: [nycphp-talk] Pitching PHP to a Java House In-Reply-To: <42A873E4.7010509@php.net> Message-ID: <0MKz1m-1DgUet1V6J-0000oL@mrelay.perfora.net> > Another thing that I didn't see mentioned is that there isn't much Java > at the very top (nor Microsoft for that matter). Look at the big boys: > Yahoo, Google, Amazon, TicketMaster, etc. They all use different > languages and platforms, but there is some common DNA in their solutions. To be far, internet giants can't be compared with other industries. For example, the "enterprise" market, such as automotive, financial, and manufacturing, have a completely different take on technology than these internet behemoths. The internet pillars are technical institutions, and have technically savvy people by the dozens. The classic enterprise, however, have a very different view, and thus rely on the sealed-and-delivered solutions like Java. But with backing from the blue-chips like IBM, PHP can integrate deep within these environments, thus reducing the do-it-yourself nature of open source, and providing the total solution non-technical enterprises expect. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From nasir81 at gmail.com Thu Jun 9 20:24:07 2005 From: nasir81 at gmail.com (Nasir Zubair) Date: Thu, 9 Jun 2005 20:24:07 -0400 Subject: [nycphp-talk] Google Code of Summer Message-ID: <40fcda73050609172457b179e8@mail.gmail.com> Hi guys, I just received an email regarding Google Code of Summer (links below) program. However, it came through LispNYC. I was wondering if NYPHP or Zend are participating in this program? I do see Mambo on the list. http://code.google.com/summfaq.html http://code.google.com/summerofcode.html -- Nasir Zubair http://www.nasir.us/ From nasir81 at gmail.com Thu Jun 9 20:24:50 2005 From: nasir81 at gmail.com (Nasir Zubair) Date: Thu, 9 Jun 2005 20:24:50 -0400 Subject: [nycphp-talk] Re: Google Code of Summer In-Reply-To: <40fcda73050609172457b179e8@mail.gmail.com> References: <40fcda73050609172457b179e8@mail.gmail.com> Message-ID: <40fcda7305060917247518b63d@mail.gmail.com> Doh, it should be Summer of Code :-) On 6/9/05, Nasir Zubair wrote: > Hi guys, > > I just received an email regarding Google Code of Summer (links below) > program. However, it came through LispNYC. > > I was wondering if NYPHP or Zend are participating in this program? I > do see Mambo on the list. > > http://code.google.com/summfaq.html > http://code.google.com/summerofcode.html > > > -- > Nasir Zubair > http://www.nasir.us/ > -- Nasir Zubair http://www.nasir.us/ From adam at trachtenberg.com Thu Jun 9 21:26:08 2005 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 9 Jun 2005 21:26:08 -0400 (EDT) Subject: [nycphp-talk] Google Code of Summer In-Reply-To: <40fcda73050609172457b179e8@mail.gmail.com> References: <40fcda73050609172457b179e8@mail.gmail.com> Message-ID: On Thu, 9 Jun 2005, Nasir Zubair wrote: > I just received an email regarding Google Code of Summer (links below) > program. However, it came through LispNYC. > > I was wondering if NYPHP or Zend are participating in this program? I > do see Mambo on the list. Google got full and didn't have room for PHP or Zend. -adam -- adam at trachtenberg.com | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From mitch.pirtle at gmail.com Thu Jun 9 21:44:25 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Thu, 9 Jun 2005 21:44:25 -0400 Subject: [nycphp-talk] Google Code of Summer In-Reply-To: References: <40fcda73050609172457b179e8@mail.gmail.com> Message-ID: <330532b6050609184471e5081f@mail.gmail.com> On 6/9/05, Adam Maccabee Trachtenberg wrote: > On Thu, 9 Jun 2005, Nasir Zubair wrote: > > > I was wondering if NYPHP or Zend are participating in this program? I > > do see Mambo on the list. > > Google got full and didn't have room for PHP or Zend. We jumped on the chance immediately, and barely made it. Looks like this was a very popular idea, but tragic that PHP/Zend don't get to participate. OTOH there are several notable PHP projects that are participating, which IMHO give a good show of the PHP community in general, as well as the technology's importance in the open source universe :-) -- Mitch From shiflett at php.net Thu Jun 9 21:46:57 2005 From: shiflett at php.net (Chris Shiflett) Date: Thu, 09 Jun 2005 21:46:57 -0400 Subject: [nycphp-talk] Pitching PHP to a Java House In-Reply-To: <0MKz1m-1DgUet1V6J-0000oL@mrelay.perfora.net> References: <0MKz1m-1DgUet1V6J-0000oL@mrelay.perfora.net> Message-ID: <42A8F111.204@php.net> Hans Zaunere wrote: > To be fair, internet giants can't be compared with other industries. I completely agree, but this was part of my point. If I raced cars for a living, and I was in the market for a car to drive around town, I might be looking at something like this: http://www3.porsche.com/english/usa/carreragt/ If I was an average Joe, I might be more interested in this: http://www.fordvehicles.com/cars/focus/ The latter is clearly more practical. With open source software, there is no price barrier to deter anyone. So, we can all drive around with Porsche Carrera GTs, even though very few of us can properly appreciate such a machine. However, this doesn't justify the argument that Porsches wreck too often, so it's better to stick with Ford. Then again, maybe my analogies are too far-fetched. :-) Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From leam at reuel.net Thu Jun 9 23:05:36 2005 From: leam at reuel.net (leam at reuel.net) Date: Thu, 9 Jun 2005 23:05:36 -0400 Subject: [nycphp-talk] Including CSS? In-Reply-To: <42A88022.4080309@phpwerx.net> References: <20050609170459.GF2944@leitz.reuel.net> <42A88022.4080309@phpwerx.net> Message-ID: <20050610030536.GA2902@leitz.reuel.net> I think this is the kicker--though I'd rather have the .css file not in the docroot I think the performance is a more desireable choice. Well, mostly. I'm just starting to use CSS and I'd rather figure it out now when there are only a couple requests per page instead of later. Thanks! leam On Thu, Jun 09, 2005 at 01:45:06PM -0400, Dan Cech wrote: > If you wish you can include a css file by putting something like > > > > However, this will mean that the css data has to be sent on each and > every request. By using the link syntax the styles fie will only be > fetched periodically assuming the client is using caching, and can also > be cached by proxy servers, which will increase the performance of the > site/application. > > Dan > > leam at reuel.net wrote: > >The first way I saw to reference a CSS file was to have it in the > >section, like this: > > > > >href="http://albasystemadmin.org/alba.css"> > > > >But since i'm using include() on some files outside the docroot, is there > >a way to include the css file? Or does to have to be in the header? > > > >ciao! > > > >leam From damovand at yahoo.com Fri Jun 10 00:04:06 2005 From: damovand at yahoo.com (Leila Lappin) Date: Thu, 9 Jun 2005 21:04:06 -0700 (PDT) Subject: [nycphp-talk] Pitching PHP to a Java House (Part II) Message-ID: <20050610040406.27209.qmail@web30810.mail.mud.yahoo.com> Java is not an easy language to work with. If anyone has the time and the interest you can validate this for yourself. Java has a lot of features that can bring a shop to a halt. For example garbage collection is supposed to be one of those magical features of Java, except there is caveat. The garbage collection system reclaims a memory if and when the memory is released. When is the memory released? That?s where you have to watch out for traps and pitfalls, just because you?re done with an object and it?s apparently out of scope does not mean that it?s released. I saw this happen at a Java shop I used work at, every day at 12 noon the server went down! It took a few days of intense debugging by the most senior level developer to figure out the problem. Just take a quick look at this one post from a popular Java forum, http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=24&t=027721 . There seems to be confusion over whether Java passes by value or reference, and that is supposed to be one of the most basic and fundamental rules of the language, one of the features that made Java oh soo soo.. much better than C++. Except it seems with all the exceptions nobody is really sure when the rule applies and when it doesn?t. But Java was developed by Sun Corporation, so it has the seal of approval of the big corporation bosses. It didn?t hurt that Sun was in the news for years over fighting with the big bad Microsoft to keep Java pure and open (yawn). Plus, the CEOs and CTOs of corporations that choose Java don?t have to worry about the cost and time of development they already solved that problem. __________________________________ Discover Yahoo! Stay in touch with email, IM, photo sharing and more. Check it out! http://discover.yahoo.com/stayintouch.html From lists at zaunere.com Fri Jun 10 03:30:21 2005 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 10 Jun 2005 03:30:21 -0400 Subject: [nycphp-talk] Google Code of Summer In-Reply-To: Message-ID: <0MKyxe-1DgdyA0br2-0002zt@mrelay.perfora.net> > > I just received an email regarding Google Code of Summer (links below) > > program. However, it came through LispNYC. > > > > I was wondering if NYPHP or Zend are participating in this program? I > > do see Mambo on the list. > > Google got full and didn't have room for PHP or Zend. That's ok - I wasn't looking forward to selling my soul to google anyway. H From photographyworks at netscape.net Fri Jun 10 09:05:03 2005 From: photographyworks at netscape.net (Serge Chabert) Date: Fri, 10 Jun 2005 09:05:03 -0400 Subject: [nycphp-talk] Problems After Install Of Xammp. Help Please Message-ID: <63306637.0162CC8C.4D4F7EAF@netscape.net> i installed xampp on my computer and when i go to http://localhost. it seems to work however, how do i set up the configuration file so that i can have access to the pages of my websites tests. this is when i type http://localhost/mywebsite that it shows the file list instead of showing the index.htm page. before i installed Xammp, the document root was var/www/html (where all my websites folder were located) but since i i installed Xammp, the document root seemed to have become, somehow, /opt/lampp/htdocs/. if i leave my websites folder in var/www/html and i type http://localhost/something, it says not present on the server. when i move the website folder in /opt/lampp/htdocs/ and i type http://localhost/something, then it display the directory contents of the folder without launching the index.htm file to display the page. Furthrermore, i was able to enter in phpmyadmin, but when i want to create a new database, it tells me : #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 any idea what is wrong ? i tried to add privileges, but it is the same thing after that. Is there any tutorial that explain how to setup the configuration files : /opt/lampp/etc/httpd.conf The Apache configuration file. /opt/lampp/etc/my.cnf The MySQL configuration file. /opt/lampp/etc/php.ini The PHP configuration file. /opt/lampp/etc/proftpd.conf The ProFTPD configuration file. (since 0.9.5) /opt/lampp/phpmyadmin/config.inc.php The phpMyAdmin configuration file Help please !!!!!! MY configuration : Linux Mandriva 2005 XAMPP Linux 1.4.13 (Apache 2.0.53, MySQL 4.1.11, PHP 5.0.4 & 4.3.11 & PEAR + SQLite 2.8.9/2.8.14 + multibyte (mbstring) support, Perl 5.8.6, ProFTPD 1.2.10, phpMyAdmin 2.6.1-pl3, OpenSSL 0.9.7d, GD 2.0.1, Freetype2 2.1.7, libjpeg 6b, libpng 1.2.7, gdbm 1.8.0, zlib 1.1.4, expat 1.2, Sablotron 1.0, libxml 2.4.26, Ming 0.2a, Webalizer 2.01, pdf class 009e, ncurses 5.8, mod_perl 2.0.0-RC4, FreeTDS 0.62.4, gettext 0.11.5, IMAP C-Client 2002b, OpenLDAP (client) 2.2.13, mcrypt 2.5.7, mhash 0.8.18, eAccelerator 0.9.2a, cURL 7.13.1, libxslt 1.1.8, phpSQLiteAdmin 0.2, libapreq 2.04-dev) MD5 checsum: 65643bf5cac992f455b89d06ba8ee267 __________________________________________________________________ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp From chsnyder at gmail.com Fri Jun 10 10:01:42 2005 From: chsnyder at gmail.com (csnyder) Date: Fri, 10 Jun 2005 10:01:42 -0400 Subject: [nycphp-talk] Problems After Install Of Xammp. Help Please In-Reply-To: <63306637.0162CC8C.4D4F7EAF@netscape.net> References: <63306637.0162CC8C.4D4F7EAF@netscape.net> Message-ID: On 6/10/05, Serge Chabert wrote: > this is when i type http://localhost/mywebsite that it shows the file list instead of showing the index.htm page. In /opt/lampp/etc/httpd.conf you need to change the DirectoryIndex directive so that it looks for index.htm as well as index.html > > before i installed Xammp, the document root was var/www/html (where all my websites folder were located) but since i i installed Xammp, the document root seemed to have become, somehow, /opt/lampp/htdocs/. Check the DocumentRoot setting in opt/lampp/etc/httpd.conf -- Xammp does not use your system httpd.conf, it uses its own. So yes, none of your previous settings apply now. From patrick.fee at baesystems.com Fri Jun 10 10:41:39 2005 From: patrick.fee at baesystems.com (Fee, Patrick J (US SSA)) Date: Fri, 10 Jun 2005 10:41:39 -0400 Subject: [nycphp-talk] Problems After Install Of Xammp. Help Please Message-ID: <728813C3358BF04CB3A3DA2341D44A710285D443@e2k11.na.baesystems.com> You have 2 issues here. Once is changing the default directory for Apache. The second is the default page within that directory (e.g.: default.html or index.php or index.html). First, the default directory issue. XAMPP is set up to install in its own directory structure. According to the literature this is to make it easy if you wish to remove it: "If you decide that XAMPP isn't needed any more just delete the XAMPP directory and it's completely removed from your system." -http://www.apachefriends.org/en/xampp.html To change that you need to change the default directory in your Apache config file. (Although the default location is usually " var/www/html", so xampp must have changed it...) That can usually be found in the following directory structure: apache/conf/httpd.conf To change the default directory (e.g.:DocumentRoot from "/opt/lampp/htdocs/" to "var/www/html" Add the following: # Changing default None to All in next line, to enable .htaccess AllowOverride All Allow From All Options ExecCGI SetHandler cgi-script Second is the default FILE issue: However, you may change these default settings if you edit the /etc/httpd/conf/httpd.conf file in this section: # # DirectoryIndex: Name of the file or files to use as a pre-written HTML # directory index. Separate multiple entries with spaces. # DirectoryIndex index.html index.htm index.shtml index.php ... Obviously there may be differences in different versions of Apache, and I haven't really delved into XAMMP yet. But I hope this helps a bit. pjf Patrick J. Fee IT Software Analysis Solutions Group Manager 13900 Connecticut Avenue Silver Spring, MD 20906-2919 Tel: (202) 231-1418 Cel: (240) 401-6820 Patrick.Fee at BAESystems.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Serge Chabert Sent: Friday, June 10, 2005 9:05 AM To: talk at lists.nyphp.org Subject: [nycphp-talk] Problems After Install Of Xammp. Help Please i installed xampp on my computer and when i go to http://localhost. it seems to work however, how do i set up the configuration file so that i can have access to the pages of my websites tests. this is when i type http://localhost/mywebsite that it shows the file list instead of showing the index.htm page. before i installed Xammp, the document root was var/www/html (where all my websites folder were located) but since i i installed Xammp, the document root seemed to have become, somehow, /opt/lampp/htdocs/. if i leave my websites folder in var/www/html and i type http://localhost/something, it says not present on the server. when i move the website folder in /opt/lampp/htdocs/ and i type http://localhost/something, then it display the directory contents of the folder without launching the index.htm file to display the page. Furthrermore, i was able to enter in phpmyadmin, but when i want to create a new database, it tells me : #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 any idea what is wrong ? i tried to add privileges, but it is the same thing after that. Is there any tutorial that explain how to setup the configuration files : /opt/lampp/etc/httpd.conf The Apache configuration file. /opt/lampp/etc/my.cnf The MySQL configuration file. /opt/lampp/etc/php.ini The PHP configuration file. /opt/lampp/etc/proftpd.conf The ProFTPD configuration file. (since 0.9.5) /opt/lampp/phpmyadmin/config.inc.php The phpMyAdmin configuration file Help please !!!!!! MY configuration : Linux Mandriva 2005 XAMPP Linux 1.4.13 (Apache 2.0.53, MySQL 4.1.11, PHP 5.0.4 & 4.3.11 & PEAR + SQLite 2.8.9/2.8.14 + multibyte (mbstring) support, Perl 5.8.6, ProFTPD 1.2.10, phpMyAdmin 2.6.1-pl3, OpenSSL 0.9.7d, GD 2.0.1, Freetype2 2.1.7, libjpeg 6b, libpng 1.2.7, gdbm 1.8.0, zlib 1.1.4, expat 1.2, Sablotron 1.0, libxml 2.4.26, Ming 0.2a, Webalizer 2.01, pdf class 009e, ncurses 5.8, mod_perl 2.0.0-RC4, FreeTDS 0.62.4, gettext 0.11.5, IMAP C-Client 2002b, OpenLDAP (client) 2.2.13, mcrypt 2.5.7, mhash 0.8.18, eAccelerator 0.9.2a, cURL 7.13.1, libxslt 1.1.8, phpSQLiteAdmin 0.2, libapreq 2.04-dev) MD5 checsum: 65643bf5cac992f455b89d06ba8ee267 __________________________________________________________________ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From patrick.fee at baesystems.com Fri Jun 10 10:51:37 2005 From: patrick.fee at baesystems.com (Fee, Patrick J (US SSA)) Date: Fri, 10 Jun 2005 10:51:37 -0400 Subject: [nycphp-talk] Problems After Install Of Xammp. Help Please Message-ID: <728813C3358BF04CB3A3DA2341D44A710285D44A@e2k11.na.baesystems.com> Thanks, I did not know that Xammp sets up it's own httpd.conf. But that make sense, considering the ability to remove it by simply deleting the directory structure. DO you like using Xammp? Patrick J. Fee IT Software Analysis Solutions Group Manager 13900 Connecticut Avenue Silver Spring, MD 20906-2919 Tel: (202) 231-1418 Cel: (240) 401-6820 Patrick.Fee at BAESystems.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of csnyder Sent: Friday, June 10, 2005 10:02 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Problems After Install Of Xammp. Help Please On 6/10/05, Serge Chabert wrote: > this is when i type http://localhost/mywebsite that it shows the file list instead of showing the index.htm page. In /opt/lampp/etc/httpd.conf you need to change the DirectoryIndex directive so that it looks for index.htm as well as index.html > > before i installed Xammp, the document root was var/www/html (where all my websites folder were located) but since i i installed Xammp, the document root seemed to have become, somehow, /opt/lampp/htdocs/. Check the DocumentRoot setting in opt/lampp/etc/httpd.conf -- Xammp does not use your system httpd.conf, it uses its own. So yes, none of your previous settings apply now. _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From lists at neoncowboy.com Fri Jun 10 14:59:09 2005 From: lists at neoncowboy.com (John Corry) Date: Fri, 10 Jun 2005 14:59:09 -0400 Subject: [nycphp-talk] Geocoder and PHP Message-ID: <20050610190139.B0D9BA86DE@virtu.nyphp.org> Attn: cross posted to ATLPHP I am working on a project that will require running about 3500 street addresses through a geocoder application to return lat/long pairs. My first idea was to use cURL to post the address to the http://geocoder.us/ site...once for each address, parsing the returned result to get lat/long and store those with the address record in my db. I haven't tried it yet because a quiet but persistent voice is whispering to me that looping through 3500 records and opening a cURL session to another website to screen-scrape the results is somehow not a good idea...for my server or theirs. I don't know enough about all of the issues to be able to articulate why (perhaps you want to enlighten me)...just that it seems like a bad idea. Does anyone know a better way? I can't pay for a commercial service for this but if there's a faster, more efficient means of usign the free services available I'd appreciate hearing about it. Thanks, John Corry From edwardpotter at gmail.com Fri Jun 10 15:07:16 2005 From: edwardpotter at gmail.com (edward potter) Date: Fri, 10 Jun 2005 15:07:16 -0400 Subject: [nycphp-talk] Geocoder and PHP In-Reply-To: <20050610190139.B0D9BA86DE@virtu.nyphp.org> References: <20050610190139.B0D9BA86DE@virtu.nyphp.org> Message-ID: I think these days, 3500 hits is a drop in the bucket. Maybe if u did a few million someone would call the boss, but for 3500, I doubt it. -ed On 6/10/05, John Corry wrote: > Attn: cross posted to ATLPHP > > I am working on a project that will require running about 3500 street > addresses through a geocoder application to return lat/long pairs. > > My first idea was to use cURL to post the address to the http://geocoder.us/ > site...once for each address, parsing the returned result to get lat/long > and store those with the address record in my db. > > I haven't tried it yet because a quiet but persistent voice is whispering to > me that looping through 3500 records and opening a cURL session to another > website to screen-scrape the results is somehow not a good idea...for my > server or theirs. I don't know enough about all of the issues to be able to > articulate why (perhaps you want to enlighten me)...just that it seems like > a bad idea. > > Does anyone know a better way? I can't pay for a commercial service for this > but if there's a faster, more efficient means of usign the free services > available I'd appreciate hearing about it. > > Thanks, > John Corry > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From edwardpotter at gmail.com Fri Jun 10 15:09:13 2005 From: edwardpotter at gmail.com (edward potter) Date: Fri, 10 Jun 2005 15:09:13 -0400 Subject: [nycphp-talk] Geocoder and PHP In-Reply-To: <20050610190139.B0D9BA86DE@virtu.nyphp.org> References: <20050610190139.B0D9BA86DE@virtu.nyphp.org> Message-ID: O, wait, take that back! They do have a plan, 20,000 lookups for $50. On 6/10/05, John Corry wrote: > Attn: cross posted to ATLPHP > > I am working on a project that will require running about 3500 street > addresses through a geocoder application to return lat/long pairs. > > My first idea was to use cURL to post the address to the http://geocoder.us/ > site...once for each address, parsing the returned result to get lat/long > and store those with the address record in my db. > > I haven't tried it yet because a quiet but persistent voice is whispering to > me that looping through 3500 records and opening a cURL session to another > website to screen-scrape the results is somehow not a good idea...for my > server or theirs. I don't know enough about all of the issues to be able to > articulate why (perhaps you want to enlighten me)...just that it seems like > a bad idea. > > Does anyone know a better way? I can't pay for a commercial service for this > but if there's a faster, more efficient means of usign the free services > available I'd appreciate hearing about it. > > Thanks, > John Corry > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From dcech at phpwerx.net Fri Jun 10 15:16:52 2005 From: dcech at phpwerx.net (Dan Cech) Date: Fri, 10 Jun 2005 15:16:52 -0400 Subject: [nycphp-talk] Geocoder and PHP In-Reply-To: <20050610190139.B0D9BA86DE@virtu.nyphp.org> References: <20050610190139.B0D9BA86DE@virtu.nyphp.org> Message-ID: <42A9E724.8050105@phpwerx.net> Apparently their web service is based on this cpan module. http://search.cpan.org/~sderle/Geo-Coder-US/ You should be able to cook up a perl frontend script you can call to do the lookups pretty easily. Dan John Corry wrote: > Attn: cross posted to ATLPHP > > I am working on a project that will require running about 3500 street > addresses through a geocoder application to return lat/long pairs. > > My first idea was to use cURL to post the address to the http://geocoder.us/ > site...once for each address, parsing the returned result to get lat/long > and store those with the address record in my db. > > I haven't tried it yet because a quiet but persistent voice is whispering to > me that looping through 3500 records and opening a cURL session to another > website to screen-scrape the results is somehow not a good idea...for my > server or theirs. I don't know enough about all of the issues to be able to > articulate why (perhaps you want to enlighten me)...just that it seems like > a bad idea. > > Does anyone know a better way? I can't pay for a commercial service for this > but if there's a faster, more efficient means of usign the free services > available I'd appreciate hearing about it. > > Thanks, > John Corry > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From rolan at omnistep.com Fri Jun 10 15:37:36 2005 From: rolan at omnistep.com (Rolan Yang) Date: Fri, 10 Jun 2005 15:37:36 -0400 Subject: [nycphp-talk] Geocoder and PHP In-Reply-To: <20050610190139.B0D9BA86DE@virtu.nyphp.org> References: <20050610190139.B0D9BA86DE@virtu.nyphp.org> Message-ID: <42A9EC00.3070403@omnistep.com> Heh, for 3500, I would just go ahead and scrape it. Once I wrote an app which, when given a street address, would fetch and scrape zip+4 results from the usps.gov website. It worked without a hitch until google and yahoo linked it from their front page.. around noon, the app stopped working.. and so did the entire usps.gov website. A minute later my client was on the phone informing me that the postmaster general called and was going to shut them down for DOS'ing the servers. ~Rolan John Corry wrote: >Attn: cross posted to ATLPHP > >I am working on a project that will require running about 3500 street >addresses through a geocoder application to return lat/long pairs. > >My first idea was to use cURL to post the address to the http://geocoder.us/ >site...once for each address, parsing the returned result to get lat/long >and store those with the address record in my db. > > > From lists at neoncowboy.com Fri Jun 10 15:47:46 2005 From: lists at neoncowboy.com (John Corry) Date: Fri, 10 Jun 2005 15:47:46 -0400 Subject: [nycphp-talk] Geocoder and PHP In-Reply-To: <42A9EC00.3070403@omnistep.com> Message-ID: <20050610195019.8150AA86DE@virtu.nyphp.org> > around noon, the app stopped working.. > and so did the entire usps.gov website. A minute later my > client was on the phone informing me that the postmaster > general called and was going to shut them down for DOS'ing > the servers. Lol From danielc at analysisandsolutions.com Fri Jun 10 19:05:38 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Fri, 10 Jun 2005 19:05:38 -0400 Subject: [nycphp-talk] php in SecurityFocus Newsletter #302 Message-ID: <20050610230538.GA15965@panix.com> SecurityFocus Newsletter #302 APPLICATIONS USING PHP ---------------------- Shop-Script CategoryID SQL Injection Vulnerability http://www.securityfocus.com/bid/13633 Shop-Script ProductID SQL Injection Vulnerability http://www.securityfocus.com/bid/13635 PostNuke Blocks Module Directory Traversal Vulnerability http://www.securityfocus.com/bid/13636 WoltLab Burning Board Verify_email Function SQL Injection Vu... http://www.securityfocus.com/bid/13643 NPDS THOLD Parameter SQL Injection Vulnerability http://www.securityfocus.com/bid/13649 JGS-Portal Multiple Cross-Site Scripting and SQL Injection V... http://www.securityfocus.com/bid/13650 Wordpress WP-Trackback.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/13655 SafeHTML Quotes Handling Security Bypass Vulnerability http://www.securityfocus.com/bid/13659 Wordpress Post.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/13663 Wordpress Edit.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/13664 Help Center Live Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/13666 Help Center Live Administrator Command Execution Vulnerability http://www.securityfocus.com/bid/13667 S9Y Serendipity Multiple Unspecified Remote Vulnerabilities http://www.securityfocus.com/bid/13669 PROMS Multiple Unspecified HTML Injection Vulnerabilities http://www.securityfocus.com/bid/13673 PROMS Project Members Unauthorized Access Vulnerability http://www.securityfocus.com/bid/13674 Core CMS Unspecified Security Vulnerability http://www.securityfocus.com/bid/13675 PHP Advanced Transfer Manager Arbitrary File Include Vulnerability http://www.securityfocus.com/bid/13691 EJ3 TOPo Multiple Index.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/13700 EJ3 TOPo Comments Multiple HTML Injection Vulnerabilities http://www.securityfocus.com/bid/13701 RELATED STUFF ------------- MySQL mysql_install_db Insecure Temporary File Creation Vulnerability http://www.securityfocus.com/bid/13660 MySQL versions prior to 4.0.12 and MySQL 5.x releases 5.0.4 and prior versions are reported to be affected. -- 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 kenrbnsn at rbnsn.com Fri Jun 10 19:18:27 2005 From: kenrbnsn at rbnsn.com (Ken Robinson) Date: Fri, 10 Jun 2005 19:18:27 -0400 Subject: [nycphp-talk] Geocoder and PHP In-Reply-To: <20050610190139.B0D9BA86DE@virtu.nyphp.org> References: <20050610190139.B0D9BA86DE@virtu.nyphp.org> Message-ID: <6.2.3.0.2.20050610190505.024a31c8@mail.rbnsn.com> At 02:59 PM 6/10/2005, John Corry wrote: >I am working on a project that will require running about 3500 street >addresses through a geocoder application to return lat/long pairs. > >My first idea was to use cURL to post the address to the http://geocoder.us/ >site...once for each address, parsing the returned result to get lat/long >and store those with the address record in my db. This request intrigued me, since I've been looking at creating an interface to Google maps via PHP and I needed to get lat/long points for the addresses currently in my database. My first attempt was to use a query to Google Maps, capture the output and use preg_replace on the returned XML string to extract the lat/long pair. Looking at http://geocoder.us/ I saw that one use SOAP, XML-RPC, and REST-ful RDF clients to get the information. I chose to use the RDF method, since it returns the shortest string. I then used the miniXML package to turn the returned XML string into an associative array. Here's the code I used: fromString($tmp); $tmpa = $xmlDoc->toArray(); return(array($tmpa['rdf:RDF']['geo:Point']['geo:lat'],$tmpa['rdf:RDF']['geo:Point']['geo:long'])); } ?> I wrote and debugged this in less than an hour. Ken Robinson kenrbnsn at rbnsn.com PS ... I'm looking for freelance/contract/permanent PHP work From stephen at musgrave.org Sat Jun 11 19:49:09 2005 From: stephen at musgrave.org (Stephen Musgrave) Date: Sat, 11 Jun 2005 19:49:09 -0400 Subject: [nycphp-talk] Taproot Message-ID: For those looking to use your skills for volunteer endeavors, take a look at Taproot Foundation, a non-profit that awards services grants that are fulfilled by professionals. I've recently heard that they are running low on technical volunteers. http://www.taprootfoundation.org/ Taproot has more of a marketing agency model than a technology model. I've been on two projects with them, and it hardly gets more complex than HTML, CSS and mailto form. This might not seem to exciting for some of you, but the whole process of going through a well-defined project provides complementary insights (training). Thanks, Stephen ??????????????????????????????? email: stephen at musgrave.org web: http://stephen.musgrave.org/career office: 917.721.3378 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 867 bytes Desc: not available URL: From codebowl at gmail.com Sun Jun 12 13:39:03 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Sun, 12 Jun 2005 13:39:03 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others Message-ID: <8d9a42800506121039159d070e@mail.gmail.com> are these legit books? or is this guy selling these things illegally? http://www.shopping.rodneysaleh.com/ -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From rolan at omnistep.com Sun Jun 12 14:01:20 2005 From: rolan at omnistep.com (Rolan Yang) Date: Sun, 12 Jun 2005 14:01:20 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <8d9a42800506121039159d070e@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> Message-ID: <42AC7870.5010107@omnistep.com> hrm.. Registrant: rodney saleh jerusalem jerusalem, il 98700 IL Registrar: NAMESDIRECT Domain Name: RODNEYSALEH.COM Created on: 08-MAR-05 Expires on: 08-MAR-06 Last Updated on: 08-MAR-05 Administrative, Technical Contact: saleh, rodney rodney25 at hotmail.com jerusalem jerusalem, il 98700 IL 972547578190 Joseph Crawford wrote: > are these legit books? or is this guy selling these things illegally? > > http://www.shopping.rodneysaleh.com/ > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > >------------------------------------------------------------------------ > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > From nasir81 at gmail.com Sun Jun 12 14:04:42 2005 From: nasir81 at gmail.com (Nasir Zubair) Date: Sun, 12 Jun 2005 14:04:42 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <8d9a42800506121039159d070e@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> Message-ID: <40fcda730506121104552a1681@mail.gmail.com> As far as I know, Electronic versions of O'reilly books are only available through their Safari service for online reading (or chpater based downloads). So, I don't think those are legit. Can't say about the others. On 6/12/05, Joseph Crawford wrote: > are these legit books? or is this guy selling these things illegally? > > http://www.shopping.rodneysaleh.com/ > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > -- Nasir Zubair http://www.nasir.us/ From leam at reuel.net Sun Jun 12 14:23:23 2005 From: leam at reuel.net (leam at reuel.net) Date: Sun, 12 Jun 2005 14:23:23 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <40fcda730506121104552a1681@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <40fcda730506121104552a1681@mail.gmail.com> Message-ID: <20050612182323.GA2905@leitz.reuel.net> Joseph, you might want to contact O'Reilly then, as you are the discoverer. ciao! leam On Sun, Jun 12, 2005 at 02:04:42PM -0400, Nasir Zubair wrote: > As far as I know, Electronic versions of O'reilly books are only > available through their Safari service for online reading (or chpater > based downloads). So, I don't think those are legit. Can't say about > the others. > > > On 6/12/05, Joseph Crawford wrote: > > are these legit books? or is this guy selling these things illegally? > > > > http://www.shopping.rodneysaleh.com/ > > > > -- > > Joseph Crawford Jr. > > Codebowl Solutions > > codebowl at gmail.com From adam at trachtenberg.com Sun Jun 12 17:07:16 2005 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Sun, 12 Jun 2005 17:07:16 -0400 (EDT) Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <20050612182323.GA2905@leitz.reuel.net> References: <8d9a42800506121039159d070e@mail.gmail.com> <40fcda730506121104552a1681@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> Message-ID: I will forward this to them. -adam On Sun, 12 Jun 2005 leam at reuel.net wrote: > Joseph, you might want to contact O'Reilly then, as you are the discoverer. > > ciao! > > leam > > On Sun, Jun 12, 2005 at 02:04:42PM -0400, Nasir Zubair wrote: > > As far as I know, Electronic versions of O'reilly books are only > > available through their Safari service for online reading (or chpater > > based downloads). So, I don't think those are legit. Can't say about > > the others. > > > > > > On 6/12/05, Joseph Crawford wrote: > > > are these legit books? or is this guy selling these things illegally? > > > > > > http://www.shopping.rodneysaleh.com/ > > > > > > -- > > > Joseph Crawford Jr. > > > Codebowl Solutions > > > codebowl at gmail.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- adam at trachtenberg.com | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From codebowl at gmail.com Sun Jun 12 18:43:43 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Sun, 12 Jun 2005 18:43:43 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: References: <8d9a42800506121039159d070e@mail.gmail.com> <40fcda730506121104552a1681@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> Message-ID: <8d9a428005061215433fdf3cba@mail.gmail.com> thanks adam ;) this guy was selling on ebay that's how i found the site. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at natserv.com Sun Jun 12 18:46:02 2005 From: lists at natserv.com (Francisco Reyes) Date: Sun, 12 Jun 2005 18:46:02 -0400 (EDT) Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <330532b605060308016968520@mail.gmail.com> References: <30073-43035@sneakemail.com> <330532b605060308016968520@mail.gmail.com> Message-ID: <20050612183357.J55840@zoraida.natserv.net> On Fri, 3 Jun 2005, Mitch Pirtle wrote: > There is the balancing act. If you push too high on the hourly rate, > the client will then push you to get the whole thing done in an hour The way I see it, it's all about risk. Hourly rate. The customer takes all the risk. Fixed rate. The consultant takes all the risk. I have not found much middle ground. There are different strategies to try and reduce risk, but who carries the risk, on my experience, doesn't change easily. From fields at hedge.net Sun Jun 12 19:31:37 2005 From: fields at hedge.net (Adam Fields) Date: Sun, 12 Jun 2005 19:31:37 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <20050612183357.J55840@zoraida.natserv.net> References: <30073-43035@sneakemail.com> <330532b605060308016968520@mail.gmail.com> <20050612183357.J55840@zoraida.natserv.net> Message-ID: <20050612233136.GA24031@lola.aquick.org> On Sun, Jun 12, 2005 at 06:46:02PM -0400, Francisco Reyes wrote: > The way I see it, it's all about risk. On this, I agree, but I think your black and whites below are too black and white. > Hourly rate. The customer takes all the risk. That depends. Do you have accurate specs and reasonable estimates? In my experience, the upfront work done to make hourly contracts work makes for better projects with higher customer satisfaction at the end. It also results in happier consultants, who don't feel like they're getting nickel-and-dimed all the time. If you don't trust your consultant to do the work as efficiently as possible, don't hire that person. > Fixed rate. The consultant takes all the risk. Depends. Again, in my experience, fixed rate bids are often heavily padded, because the consultant assumes they're going to get screwed. I work almost exclusively hourly, and if I finish something early, I always bill less than the estimate. Yes, this has happened a few times, and when it does, it's actually cheaper for the client. Either way, I get paid for work I actually do. -- - Adam ** I can fix your database problems: http://www.everylastounce.com/mysql.html ** Blog............... [ http://www.aquick.org/blog ] Links.............. [ http://del.icio.us/fields ] Photos............. [ http://www.aquick.org/photoblog ] Experience......... [ http://www.adamfields.com/resume.html ] Product Reviews: .. [ http://www.buyadam.com/blog ] From 1j0lkq002 at sneakemail.com Sun Jun 12 20:00:55 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Sun, 12 Jun 2005 20:00:55 -0400 (GMT-04:00) Subject: [nycphp-talk] [OT] Consulting work Message-ID: <31627-63945@sneakemail.com> Sensible discussion. I disagree about the risk part. If the consultant takes on too much risk, such as might happen with a loosely-defined, fixed-price project, it is risky for the client. In that case, who took on the risk? It costs money to make careful, detailed specs. That effort has to be covered somewhere -- is it a product of a prior loss (client's last project failed, but now they know what they want) or is it fruit of the consultant's expertise and experience (in which case her rate should be commensurate, no?). There is no free lunch. Also detailed, careful specs preclude much of the creative/techno-creative input a consultant can have. If bound to a spec, then sure -- it goes well, but many consultants want to contribute creative solutions and not just code to specs. Bottom line is satisfy the client, no? If the client knows what she wants, then do the work for hire. If the client doesn't, then help her define it, for hire, or perhaps choose to limit your scope of involvement until the project is well-defined. Just be sure not to choose to do a project that is not defined, or define a project for free (perhaps expecting to get the build). That way you either work on well-defined projects, or work on defining projects. As a hirer/manager I prefer to pay hourly rate for technical services, commensurate with knowledge, skills, and experience. Then I apply frequent checks of work against desired product, which requires me to project manage in light of project goals and objectives (blasphemy!). It permits market rates for services, with the good guys able to charge higher rates -- which is fine, because I also don't buy large blocks of time. I bear the risk, because it is my project, and the consultant bears the risk of reputation and uncertain employment -- as usual. Most of the problems I see are between naive clients who don't manage and don't hire a manager, and consultants who took on ill-defined work or work that looked like a loser, hoping to convert it somehow or perhaps bail if it got too bad (or something better came along). Caveat emptor. Nothing new here, move along...nothing to see. -=john andrews -----Original Message----- From: "Adam Fields fields-at-hedge.net |nyphp dev/internal group use|" <...> Sent: Jun 12, 2005 7:31 PM To: NYPHP Talk Subject: Re: [nycphp-talk] [OT] Consulting work On Sun, Jun 12, 2005 at 06:46:02PM -0400, Francisco Reyes wrote: > The way I see it, it's all about risk. On this, I agree, but I think your black and whites below are too black and white. > Hourly rate. The customer takes all the risk. That depends. Do you have accurate specs and reasonable estimates? In my experience, the upfront work done to make hourly contracts work makes for better projects with higher customer satisfaction at the end. It also results in happier consultants, who don't feel like they're getting nickel-and-dimed all the time. If you don't trust your consultant to do the work as efficiently as possible, don't hire that person. > Fixed rate. The consultant takes all the risk. Depends. Again, in my experience, fixed rate bids are often heavily padded, because the consultant assumes they're going to get screwed. I work almost exclusively hourly, and if I finish something early, I always bill less than the estimate. Yes, this has happened a few times, and when it does, it's actually cheaper for the client. Either way, I get paid for work I actually do. -- - Adam ** I can fix your database problems: http://www.everylastounce.com/mysql.html ** Blog............... [ http://www.aquick.org/blog ] Links.............. [ http://del.icio.us/fields ] Photos............. [ http://www.aquick.org/photoblog ] Experience......... [ http://www.adamfields.com/resume.html ] Product Reviews: .. [ http://www.buyadam.com/blog ] _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From mitch.pirtle at gmail.com Sun Jun 12 20:09:34 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Sun, 12 Jun 2005 20:09:34 -0400 Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <20050612183231.O55840@zoraida.natserv.net> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> Message-ID: <330532b605061217097f7ce18d@mail.gmail.com> On 6/12/05, Francisco Reyes wrote: > On Thu, 2 Jun 2005, Mitch Pirtle wrote: > > > NYC PHP programmers should make a minimum of $50/hr, and I get offers > > up to $120. > > May I ask where? > I am an independant and having a hard time finding more clients.. If you > even have work to sub-contract that would be great too. :-) Then at least I could outsource myself to someone local (rimshot) In all honesty, I think the toughest part in this city is developing the contacts. Once that is done, your talent and work ethic will take care of the rest, and give back what you put into it. A funny sidenote - in the Mambo universe there is a horrible slant regarding talent on the template making side, where anyone and everyone is promoting themselves as 'Mambo template specialists'. Even when they suck. What blows me away is that there are still floods of people in panic mode because they cannot get a template put together in time, or need someone to setup a Mambo and import their (usually static) content. So if you know anything about PHP, HTML and Mambo, you should be doing just fine ;-) Take on the $300 template gigs, and eventually you will establish a reputation. If that is a good reputation, then you should not have to look for work anymore, and people will find you looking for Mambo help, which of course ups your rate. You will NOT however find the $150/hr stuff as a Mambo template guy. Those gigs are almost exclusively with the financial research firms and so on, and it is very hard work that (occasionally at least) is not worth it. I would rather spit out Mambo-based products. -- Mitch, holding his right pinkie up to the corner of his mouth From lists at natserv.com Sun Jun 12 20:18:14 2005 From: lists at natserv.com (Francisco Reyes) Date: Sun, 12 Jun 2005 20:18:14 -0400 (EDT) Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <20050612233136.GA24031@lola.aquick.org> References: <30073-43035@sneakemail.com> <330532b605060308016968520@mail.gmail.com> <20050612183357.J55840@zoraida.natserv.net> <20050612233136.GA24031@lola.aquick.org> Message-ID: <20050612200537.T56446@zoraida.natserv.net> On Sun, 12 Jun 2005, Adam Fields wrote: > On Sun, Jun 12, 2005 at 06:46:02PM -0400, Francisco Reyes wrote: >> The way I see it, it's all about risk. > > On this, I agree, but I think your black and whites below are too > black and white. That's just my view. :) >> Hourly rate. The customer takes all the risk. > > That depends. Do you have accurate specs and reasonable estimates? In > my experience, the upfront work done to make hourly contracts work > makes for better projects with higher customer satisfaction at the > end. It also results in happier consultants, who don't feel like > they're getting nickel-and-dimed all the time. They are countless things that can go wrong.. even with good specs. For instance my impression is that you describe a near perfect scenario which rarely happens. * The people who gave the specs to the consultant may be a fraction of the user population. * People that interface with the consultants may not be available making the consultant having to do more work than planned. * The people that gave the specs may have forgotten a key few points because they only occurr rarely, but yet are major showstoppers. > If you don't trust your consultant to do the work as efficiently as > possible, don't hire that person. Even if you trust the person the risk for hourly work is still 100% on the customer.. What do you think the customer will do if the project is late, but the consultants, that they trust, keep saying it's coming along ok? They will likely continue.. or if this system/implementation is critical for the business? The customer basically may have no choice but to take the hit. >> Fixed rate. The consultant takes all the risk. > > Depends. Again, in my experience, fixed rate bids are often heavily > padded, because the consultant assumes they're going to get screwed. I don't pad excesively my bids, because then the customer may just decline and go with someone that will low ball the bid to just ask for more later.. > I work almost exclusively hourly, and if I finish something early, I > always bill less than the estimate. I wish I had contracts where the work was as much as expected. :-) The people I have done systems for are non technical or not the primary users that will have to do the system. The end result.. I rarely ever get the full picture until the project is on the way. Although I tend to do primarily fixed price work I am learning on how to mitigate the risk.. but still think that there is no mid point (and again that's just my very biased view). The 2 main things I am doing to reduce risk are having a detailed list of what the project will entail AND to specify what is expected from the customer. My last two projects have gone less than perfect not because I didnt' get the "right specs", but because the people that gave me the specs didn't know the entire picture.. so the "right specs" I got where not the specs needed by the users.. The other problem I have had is users not giving enough feedback or giving feedback on a timely manner. I hope to improve my contracts to increase price if there is a problem with user feedback or the specs given by the contact I worked with. > Yes, this has happened a few > times, and when it does, it's actually cheaper for the client. I think each person needs to do what they are most confortable with. I guess if I was better marketting I would convince my customers to pay hourly.. but find it easier to close the deal going fixed... :-( From lists at natserv.com Sun Jun 12 20:31:13 2005 From: lists at natserv.com (Francisco Reyes) Date: Sun, 12 Jun 2005 20:31:13 -0400 (EDT) Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <330532b605061217097f7ce18d@mail.gmail.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEB3@NYCPDMSXMB06.ad.tiaa-cref.org> <429FABB6.5010909@php.net> <8d9a428005060218146462ad1c@mail.gmail.com> <330532b6050602184545404a61@mail.gmail.com> <20050612183231.O55840@zoraida.natserv.net> <330532b605061217097f7ce18d@mail.gmail.com> Message-ID: <20050612202853.R56446@zoraida.natserv.net> On Sun, 12 Jun 2005, Mitch Pirtle wrote: > You will NOT however find the $150/hr stuff as a Mambo template guy. > Those gigs are almost exclusively with the financial research firms :-( I rather work for $50/hour than to work with financial firms... although I am doing work for one right now.. The pressure and stress from working with financial firms is more than long living human beings can take.. I think working for financial firms is a slow form of suicide.. but maybe I have just worked/dealt with the wrong financial firms. :-) From lists at natserv.com Sun Jun 12 21:37:24 2005 From: lists at natserv.com (Francisco Reyes) Date: Sun, 12 Jun 2005 21:37:24 -0400 (EDT) Subject: [nycphp-talk] [OT] Consulting work In-Reply-To: <20050612201912.B56446@zoraida.natserv.net> References: <31627-63945@sneakemail.com> <20050612201912.B56446@zoraida.natserv.net> Message-ID: <20050612213624.I56820@zoraida.natserv.net> On Sun, 12 Jun 2005, inforequest wrote: > I disagree about the risk part. If the consultant takes on too much risk, > such as > might happen with a loosely-defined, fixed-price project, it is risky for > the client. In that case, who took on the risk? I need to better qualify my statement.. I was refering to risk related to money paid to the consultant(s).. ie whether the consultant can loose money or the company can loose the money paid for the work.. or overpay for the work... There IS risk on all projects for the client outside of just the cost of the project. Business disruption, loosing customers because the system malfunctions, etc.. > It costs money to make careful, detailed specs. That's something I am doing more of.. Ask for a fee for a detailed analysis. I explain to the client that whether I do the project or someone else this analysis will be helpfull. > Also detailed, careful specs preclude much of the creative/techno-creative > input a consultant > can have. If bound to a spec, then sure -- it goes well, but many > consultants want to contribute creative solutions and not just code to > specs. My personal biggest problem has been getting to talk to the right people at the client side. You may be delegated to work with a small set of people or just and individual and that person may not understand completely what needs to be done. > Bottom line is satisfy the client, no? Absolutely. > If the client knows what she wants, then do the work for hire. If the > client doesn't, then help her define it, for hire, or perhaps choose > to limit your scope of involvement until the project is well-defined. Exactly. > As a hirer/manager I prefer to pay hourly rate for technical services, > commensurate with knowledge, skills, and experience. Not always possible if there is a budget for a project. They simply have to get the best person they can within the budget. From preinheimer at gmail.com Mon Jun 13 10:16:47 2005 From: preinheimer at gmail.com (Paul Reinheimer) Date: Mon, 13 Jun 2005 10:16:47 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <8d9a428005061215433fdf3cba@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <40fcda730506121104552a1681@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> <8d9a428005061215433fdf3cba@mail.gmail.com> Message-ID: <6ec19ec705061307164b60f6b1@mail.gmail.com> I have notified the Wrox/Wiley team as well. paul On 6/12/05, Joseph Crawford wrote: > thanks adam ;) > > this guy was selling on ebay that's how i found the site. > > -- > > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > -- Paul Reinheimer Zend Certified Engineer From codebowl at gmail.com Mon Jun 13 10:43:46 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 13 Jun 2005 10:43:46 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <6ec19ec705061307164b60f6b1@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <40fcda730506121104552a1681@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> <8d9a428005061215433fdf3cba@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> Message-ID: <8d9a428005061307432606ad2b@mail.gmail.com> i will see if i can find his ebay name again and alert ebay as well -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Mon Jun 13 10:44:27 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 13 Jun 2005 10:44:27 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <8d9a428005061307432606ad2b@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <40fcda730506121104552a1681@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> <8d9a428005061215433fdf3cba@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> Message-ID: <8d9a42800506130744fcd6883@mail.gmail.com> http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&category=378&item=4555830306&rd=1&ssPageName=WDVW there it is ;) -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Mon Jun 13 10:51:46 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 13 Jun 2005 10:51:46 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <8d9a42800506130744fcd6883@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <40fcda730506121104552a1681@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> <8d9a428005061215433fdf3cba@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> Message-ID: <8d9a4280050613075173b02db0@mail.gmail.com> i thought something was fishy about these auctions and this site because usually you cannot just buy an ebook like that, if you can someone should direct me where to legally buy them ;) -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From preinheimer at gmail.com Mon Jun 13 10:58:12 2005 From: preinheimer at gmail.com (Paul Reinheimer) Date: Mon, 13 Jun 2005 10:58:12 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <8d9a4280050613075173b02db0@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <40fcda730506121104552a1681@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> <8d9a428005061215433fdf3cba@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> Message-ID: <6ec19ec70506130758b62b60a@mail.gmail.com> http://safari.oreilly.com/ O'Reilly only obviously. Wiley offers some of their imprints as e-books http://ca.wiley.com/WileyCDA/Section/index.html paul On 6/13/05, Joseph Crawford wrote: > i thought something was fishy about these auctions and this site because > usually you cannot just buy an ebook like that, if you can someone should > direct me where to legally buy them ;) > > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > -- Paul Reinheimer Zend Certified Engineer From codebowl at gmail.com Mon Jun 13 11:01:38 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 13 Jun 2005 11:01:38 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <8d9a4280050613075173b02db0@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <40fcda730506121104552a1681@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> <8d9a428005061215433fdf3cba@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> Message-ID: <8d9a428005061308017055774b@mail.gmail.com> ebay has been alerted. On 6/13/05, Joseph Crawford wrote: > > i thought something was fishy about these auctions and this site because > usually you cannot just buy an ebook like that, if you can someone should > direct me where to legally buy them ;) > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfeldmann at gmail.com Mon Jun 13 11:02:28 2005 From: cfeldmann at gmail.com (chris feldmann) Date: Mon, 13 Jun 2005 11:02:28 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <6ec19ec70506130758b62b60a@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <40fcda730506121104552a1681@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> <8d9a428005061215433fdf3cba@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> <6ec19ec70506130758b62b60a@mail.gmail.com> Message-ID: <7e2c731f05061308026638dd3a@mail.gmail.com> See also: http://books.allofthem.com/ They're free, but of, um, questionable provenance. On 6/13/05, Paul Reinheimer wrote: > > http://safari.oreilly.com/ > > O'Reilly only obviously. > > Wiley offers some of their imprints as e-books > > http://ca.wiley.com/WileyCDA/Section/index.html > > > paul > > > On 6/13/05, Joseph Crawford wrote: > > i thought something was fishy about these auctions and this site because > > usually you cannot just buy an ebook like that, if you can someone > should > > direct me where to legally buy them ;) > > > > > > -- > > Joseph Crawford Jr. > > Codebowl Solutions > > codebowl at gmail.com > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > > > > > -- > Paul Reinheimer > Zend Certified Engineer > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Mon Jun 13 11:04:55 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 13 Jun 2005 11:04:55 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <8d9a428005061308017055774b@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <40fcda730506121104552a1681@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> <8d9a428005061215433fdf3cba@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> <8d9a428005061308017055774b@mail.gmail.com> Message-ID: <8d9a4280050613080474d78be3@mail.gmail.com> i thought safari wasnt really an ebook site since you cannot download the entire book (only chapters) in PDF or CHM format, you have to view them online... and it's not only oreilly ;) it's actually Safari which several people use, not only publishers ;) safari.oreilly.com safari.informit.com safari.java.com safari.bvdep.com safaribooksonline.com sorry had to be a smart alec and just list all the sites google found LOL so anywhere to "legally" purchase PDF or CHM ebooks or are they all illegal? On 6/13/05, Joseph Crawford wrote: > > ebay has been alerted. > > On 6/13/05, Joseph Crawford wrote: > > > > i thought something was fishy about these auctions and this site because > > usually you cannot just buy an ebook like that, if you can someone should > > direct me where to legally buy them ;) > > > > -- > > Joseph Crawford Jr. > > Codebowl Solutions > > codebowl at gmail.com > > > > > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Mon Jun 13 11:08:15 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 13 Jun 2005 11:08:15 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <8d9a4280050613080474d78be3@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> <8d9a428005061215433fdf3cba@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> <8d9a428005061308017055774b@mail.gmail.com> <8d9a4280050613080474d78be3@mail.gmail.com> Message-ID: <8d9a428005061308082737b56@mail.gmail.com> yea i dont think they are legitimate books lol probably not supposed to be free ;) -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Mon Jun 13 11:09:50 2005 From: shiflett at php.net (Chris Shiflett) Date: Mon, 13 Jun 2005 16:09:50 +0100 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <6ec19ec70506130758b62b60a@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <40fcda730506121104552a1681@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> <8d9a428005061215433fdf3cba@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> <6ec19ec70506130758b62b60a@mail.gmail.com> Message-ID: <42ADA1BE.5010401@php.net> Paul Reinheimer wrote: > http://safari.oreilly.com/ > > O'Reilly only obviously. Safari consists of more than O'Reilly. Here are some others (about half of the publishers who participate): Peachpit New Riders Addison Wesley Prentice Hall Que Sams O'Reilly just happens to have better marketing and branding than any other publisher (by far). As a result, many people think Safari is owned and operated by O'Reilly. Many of the other publishers have their own URLs: http://safari.samspublishing.com/ http://safari.informit.com/ Anyway, this concludes the useless trivia of the day. :-) Chris From jeff.loiselle at gmail.com Mon Jun 13 11:24:54 2005 From: jeff.loiselle at gmail.com (Jeff Loiselle) Date: Mon, 13 Jun 2005 11:24:54 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <42ADA1BE.5010401@php.net> References: <8d9a42800506121039159d070e@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> <8d9a428005061215433fdf3cba@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> <6ec19ec70506130758b62b60a@mail.gmail.com> <42ADA1BE.5010401@php.net> Message-ID: <4b1887110506130824767a276d@mail.gmail.com> Chris, Safari *is* owned an operated by O'Reilly. ;-) Inquire within. On 6/13/05, Chris Shiflett wrote: > Paul Reinheimer wrote: > > http://safari.oreilly.com/ > > > > O'Reilly only obviously. > > Safari consists of more than O'Reilly. Here are some others (about half > of the publishers who participate): > > Peachpit > New Riders > Addison Wesley > Prentice Hall > Que > Sams > > O'Reilly just happens to have better marketing and branding than any > other publisher (by far). As a result, many people think Safari is owned > and operated by O'Reilly. > > Many of the other publishers have their own URLs: > > http://safari.samspublishing.com/ > http://safari.informit.com/ > > Anyway, this concludes the useless trivia of the day. :-) > > Chris > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- --- Jeff Loiselle Web Developer, Musician, and Observer http://jeff.loiselles.com From shiflett at php.net Mon Jun 13 12:14:14 2005 From: shiflett at php.net (Chris Shiflett) Date: Mon, 13 Jun 2005 17:14:14 +0100 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <4b1887110506130824767a276d@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <20050612182323.GA2905@leitz.reuel.net> <8d9a428005061215433fdf3cba@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> <6ec19ec70506130758b62b60a@mail.gmail.com> <42ADA1BE.5010401@php.net> <4b1887110506130824767a276d@mail.gmail.com> Message-ID: <42ADB0D6.1040108@php.net> Jeff Loiselle wrote: > Safari *is* owned an operated by O'Reilly. http://safari.oreilly.com/?mode=About Chris From codebowl at gmail.com Mon Jun 13 12:23:13 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 13 Jun 2005 12:23:13 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <42ADB0D6.1040108@php.net> References: <8d9a42800506121039159d070e@mail.gmail.com> <8d9a428005061215433fdf3cba@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> <6ec19ec70506130758b62b60a@mail.gmail.com> <42ADA1BE.5010401@php.net> <4b1887110506130824767a276d@mail.gmail.com> <42ADB0D6.1040108@php.net> Message-ID: <8d9a42800506130923549d1ae2@mail.gmail.com> Safari is not worth it if you want the downloadable chapters. David Sklar's Learning PHP 5 book would cost you $32 to download all the chapters from safari, search amazon you can get it for $19.77 http://www.amazon.com/exec/obidos/tg/detail/-/0596005601/qid%3D1118679711/sr%3D11-1/ref%3Dsr%5F11%5F1/103-0500534-0839844?v=glance -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From preinheimer at gmail.com Mon Jun 13 12:28:18 2005 From: preinheimer at gmail.com (Paul Reinheimer) Date: Mon, 13 Jun 2005 12:28:18 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <42ADB0D6.1040108@php.net> References: <8d9a42800506121039159d070e@mail.gmail.com> <8d9a428005061215433fdf3cba@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> <6ec19ec70506130758b62b60a@mail.gmail.com> <42ADA1BE.5010401@php.net> <4b1887110506130824767a276d@mail.gmail.com> <42ADB0D6.1040108@php.net> Message-ID: <6ec19ec705061309287abb7059@mail.gmail.com> I've been interested in this job with Safari for a while, http://www.oreillynet.com/pub/j/31 I'm considering applying once I graduate. Those who know my employment history may see some irony in the selection, but it sounds like a neat job. That posting is also one of the reasons I though safari was a wholly owned subsidry of O'Reilly/ paul On 6/13/05, Chris Shiflett wrote: > Jeff Loiselle wrote: > > Safari *is* owned an operated by O'Reilly. > > http://safari.oreilly.com/?mode=About > > Chris > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Paul Reinheimer Zend Certified Engineer From codebowl at gmail.com Mon Jun 13 14:26:28 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 13 Jun 2005 14:26:28 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <6ec19ec705061309287abb7059@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <6ec19ec705061307164b60f6b1@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> <6ec19ec70506130758b62b60a@mail.gmail.com> <42ADA1BE.5010401@php.net> <4b1887110506130824767a276d@mail.gmail.com> <42ADB0D6.1040108@php.net> <6ec19ec705061309287abb7059@mail.gmail.com> Message-ID: <8d9a428005061311262afd7d28@mail.gmail.com> bleh i would like to find a job that would just get me free books ;) -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Mon Jun 13 14:35:05 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 13 Jun 2005 14:35:05 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <8d9a428005061311262afd7d28@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> <6ec19ec70506130758b62b60a@mail.gmail.com> <42ADA1BE.5010401@php.net> <4b1887110506130824767a276d@mail.gmail.com> <42ADB0D6.1040108@php.net> <6ec19ec705061309287abb7059@mail.gmail.com> <8d9a428005061311262afd7d28@mail.gmail.com> Message-ID: <8d9a42800506131135634757ea@mail.gmail.com> LOL after a bit of whois research i can find out that the Name servers that the books.allofthem.com is queldor.net, nothing is at that page, so i am assuming he registered it to use just for a Name Server, however if you just trail the name servers etc.. you finally get down to a name ;) I'm sure this may not be the end of the line but more digging could probably turn up more lol domain: queldor.net status: lock owner: Michael Toth email: joker at queldor.com address: 1467 Main Rd city: Granville state: MA postal-code: 01034 country: US phone: 413-572-0950 admin-c: joker at queldor.com#0 tech-c: joker at queldor.com#0 billing-c: joker at queldor.com#0 nserver: ns.queldor.net 66.103.13.8 nserver: ns.spam-sucks.com 24.218.93.8 nserver: ns.lilpenguins.com 24.218.20.108 created: 2003-07-06 21:57:59 UTC modified: 2005-05-17 00:50:12 UTC expires: 2006-07-06 17:57:46 UTC source: joker.com live whois service query-time: 0.178091 db-updated: 2005-06-13 18:32:31 Registry Status: REGISTRAR-LOCK -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From adam at trachtenberg.com Mon Jun 13 14:44:13 2005 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 13 Jun 2005 14:44:13 -0400 (EDT) Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: <8d9a42800506131135634757ea@mail.gmail.com> References: <8d9a42800506121039159d070e@mail.gmail.com> <8d9a428005061307432606ad2b@mail.gmail.com> <8d9a42800506130744fcd6883@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> <6ec19ec70506130758b62b60a@mail.gmail.com> <42ADA1BE.5010401@php.net> <4b1887110506130824767a276d@mail.gmail.com> <42ADB0D6.1040108@php.net> <6ec19ec705061309287abb7059@mail.gmail.com> <8d9a428005061311262afd7d28@mail.gmail.com> <8d9a42800506131135634757ea@mail.gmail.com> Message-ID: O'Reilly has told me that their lawyers are on the case. -adam On Mon, 13 Jun 2005, Joseph Crawford wrote: > LOL after a bit of whois research i can find out that the Name servers that > the books.allofthem.com is > queldor.net, > nothing is at that page, so i am assuming he registered it to use just for a > Name Server, however if you just trail the name servers etc.. you finally > get down to a name ;) I'm sure this may not be the end of the line but more > digging could probably turn up more lol > > domain: queldor.net > status: lock > owner: Michael Toth > email: joker at queldor.com > address: 1467 Main Rd > city: Granville > state: MA > postal-code: 01034 > country: US > phone: 413-572-0950 > admin-c: joker at queldor.com#0 > tech-c: joker at queldor.com#0 > billing-c: joker at queldor.com#0 > nserver: ns.queldor.net 66.103.13.8 > nserver: ns.spam-sucks.com > 24.218.93.8 > nserver: ns.lilpenguins.com > 24.218.20.108 > created: 2003-07-06 21:57:59 UTC > modified: 2005-05-17 00:50:12 UTC > expires: 2006-07-06 17:57:46 UTC > source: joker.com live whois service > query-time: 0.178091 > db-updated: 2005-06-13 18:32:31 > > Registry Status: REGISTRAR-LOCK > > -- adam at trachtenberg.com | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! -------------- next part -------------- _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From cfeldmann at gmail.com Mon Jun 13 15:27:51 2005 From: cfeldmann at gmail.com (chris feldmann) Date: Mon, 13 Jun 2005 15:27:51 -0400 Subject: [nycphp-talk] NYPHP Courses Message-ID: <7e2c731f0506131227513ff03d@mail.gmail.com> The NYPHP pages seem to point me here with any questions on the courses, so if anyone can help I'd appreciate it. Essentially I'm trying to figure out which course I should take, leaning towards the two-day "programmers track" as opposed to leaping right into one of the intensive 2-hour RAMP courses ( e.g. the February course on OOP in PHP). To this point, totally self-taught (with the help of some of the authors who frequent this very list), I've used php mainly as "glue" to automate, say, photo galleries and for mail forms and the like. I've written a few sites that included database abstraction layers to interact with small MySQL databases - I'm pretty comfortable with SQL, but I am having trouble getting a useful grasp on Classes and object-oriented php in general (I wasn't a CS major). I would say my comfortable vocabulary of built-in functions is rudimentary - I always need a reference open. On the other hand, I run my own linux webserver and have been using linux as my desktop for almost a decade and until gmail made it painfully obsolete, my main (web) email client was a php app I wrote. My worry is that the two-day course is going to be too basic, though, like "Now we're going to write our first F-U-N-C-T-I-O-N." Can anyone give me a sense of the level of the course? I don't have a generous employer to pay my tuition; it will be coming out of my own pocket, so I want to make sure I'm not taking the wrong course. I do feel that I've kind of run into a wall in my auto-didactical regimen and could be well served by merely _talking_ with other people who use these tools. Lately I've set my php books aside in frustration, distracting myself by writing greasemonkey scripts. If it's a useful bit of info, web programming/designing is not my day job (yet), though I do make some money doing it. Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Mon Jun 13 15:32:47 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 13 Jun 2005 15:32:47 -0400 Subject: [nycphp-talk] [OT] Attn David Sklar and others In-Reply-To: References: <8d9a42800506121039159d070e@mail.gmail.com> <8d9a4280050613075173b02db0@mail.gmail.com> <6ec19ec70506130758b62b60a@mail.gmail.com> <42ADA1BE.5010401@php.net> <4b1887110506130824767a276d@mail.gmail.com> <42ADB0D6.1040108@php.net> <6ec19ec705061309287abb7059@mail.gmail.com> <8d9a428005061311262afd7d28@mail.gmail.com> <8d9a42800506131135634757ea@mail.gmail.com> Message-ID: <8d9a428005061312321db8af74@mail.gmail.com> good deal ;) On 6/13/05, Adam Maccabee Trachtenberg wrote: > > O'Reilly has told me that their lawyers are on the case. > > -adam > > On Mon, 13 Jun 2005, Joseph Crawford wrote: > > > LOL after a bit of whois research i can find out that the Name servers > that > > the books.allofthem.com < > http://books.allofthem.com> is > > queldor.net , > > nothing is at that page, so i am assuming he registered it to use just > for a > > Name Server, however if you just trail the name servers etc.. you > finally > > get down to a name ;) I'm sure this may not be the end of the line but > more > > digging could probably turn up more lol > > > > domain: queldor.net > > status: lock > > owner: Michael Toth > > email: joker at queldor.com > > address: 1467 Main Rd > > city: Granville > > state: MA > > postal-code: 01034 > > country: US > > phone: 413-572-0950 > > admin-c: joker at queldor.com#0 > > tech-c: joker at queldor.com#0 > > billing-c: joker at queldor.com#0 > > nserver: ns.queldor.net > 66.103.13.8 > > nserver: ns.spam-sucks.com < > http://ns.spam-sucks.com> > > 24.218.93.8 > > nserver: ns.lilpenguins.com < > http://ns.lilpenguins.com> > > 24.218.20.108 > > created: 2003-07-06 21:57:59 UTC > > modified: 2005-05-17 00:50:12 UTC > > expires: 2006-07-06 17:57:46 UTC > > source: joker.com live whois > service > > query-time: 0.178091 > > db-updated: 2005-06-13 18:32:31 > > > > Registry Status: REGISTRAR-LOCK > > > > > > -- > adam at trachtenberg.com | http://www.trachtenberg.com > author of o'reilly's "upgrading to php 5" and "php cookbook" > avoid the holiday rush, buy your copies today! > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Mon Jun 13 15:44:36 2005 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 13 Jun 2005 15:44:36 -0400 Subject: [nycphp-talk] NYPHP Courses In-Reply-To: <7e2c731f0506131227513ff03d@mail.gmail.com> Message-ID: <0MKz5u-1DhurM0odV-0007EZ@mrelay.perfora.net> Hi Chris, Those who have taken the course are welcome to give feedback, but for specific questions we have a form: http://www.nyphp.org/content/training/training_info.php since we'd prefer not to clutter already busy lists. Thanks, --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of chris feldmann Sent: Monday, June 13, 2005 3:28 PM To: NYPHP Talk Subject: [nycphp-talk] NYPHP Courses The NYPHP pages seem to point me here with any questions on the courses, so if anyone can help I'd appreciate it. Essentially I'm trying to figure out which course I should take, leaning towards the two-day "programmers track" as opposed to leaping right into one of the intensive 2-hour RAMP courses (e.g. the February course on OOP in PHP). To this point, totally self-taught (with the help of some of the authors who frequent this very list), I've used php mainly as "glue" to automate, say, photo galleries and for mail forms and the like. I've written a few sites that included database abstraction layers to interact with small MySQL databases - I'm pretty comfortable with SQL, but I am having trouble getting a useful grasp on Classes and object-oriented php in general (I wasn't a CS major). I would say my comfortable vocabulary of built-in functions is rudimentary - I always need a reference open. On the other hand, I run my own linux webserver and have been using linux as my desktop for almost a decade and until gmail made it painfully obsolete, my main (web) email client was a php app I wrote. My worry is that the two-day course is going to be too basic, though, like "Now we're going to write our first F-U-N-C-T-I-O-N." Can anyone give me a sense of the level of the course? I don't have a generous employer to pay my tuition; it will be coming out of my own pocket, so I want to make sure I'm not taking the wrong course. I do feel that I've kind of run into a wall in my auto-didactical regimen and could be well served by merely _talking_ with other people who use these tools. Lately I've set my php books aside in frustration, distracting myself by writing greasemonkey scripts. If it's a useful bit of info, web programming/designing is not my day job (yet), though I do make some money doing it. Thanks, Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfeldmann at gmail.com Mon Jun 13 16:09:48 2005 From: cfeldmann at gmail.com (chris feldmann) Date: Mon, 13 Jun 2005 16:09:48 -0400 Subject: [nycphp-talk] NYPHP Courses In-Reply-To: <0MKz5u-1DhurM0odV-0007EZ@mrelay.perfora.net> References: <7e2c731f0506131227513ff03d@mail.gmail.com> <0MKz5u-1DhurM0odV-0007EZ@mrelay.perfora.net> Message-ID: <7e2c731f050613130944ff4271@mail.gmail.com> On 6/13/05, Hans Zaunere wrote: > > Hi Chris, > > Those who have taken the course are welcome to give feedback, but for > specific questions we have a form: > > http://www.nyphp.org/content/training/training_info.php > > since we'd prefer not to clutter already busy lists. > > Thanks, > > --- > > Hans Zaunere > > President, Founder > > New York PHP > Thanks, Hanz. I was reluctant to post such a question here, but wasn't fortunate enough to be able to find the page you posted. And also rather hoped to find input from people who had taken (or taught) any of the courses. I'll submit my question to the form. Chris http://www.nyphp.org > > AMP Technology > > Supporting Apache, MySQL and PHP > > ------------------------------ > > *From:* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > *On Behalf Of *chris feldmann > *Sent:* Monday, June 13, 2005 3:28 PM > *To:* NYPHP Talk > *Subject:* [nycphp-talk] NYPHP Courses > > The NYPHP pages seem to point me here with any questions on the courses, > so if anyone can help I'd appreciate it. Essentially I'm trying to figure > out which course I should take, leaning towards the two-day "programmers > track" as opposed to leaping right into one of the intensive 2-hour RAMP > courses (e.g. the February course on OOP in PHP). > > To this point, totally self-taught (with the help of some of the authors > who frequent this very list), I've used php mainly as "glue" to automate, > say, photo galleries and for mail forms and the like. I've written a few > sites that included database abstraction layers to interact with small MySQL > databases - I'm pretty comfortable with SQL, but I am having trouble getting > a useful grasp on Classes and object-oriented php in general (I wasn't a CS > major). I would say my comfortable vocabulary of built-in functions is > rudimentary - I always need a reference open. On the other hand, I run my > own linux webserver and have been using linux as my desktop for almost a > decade and until gmail made it painfully obsolete, my main (web) email > client was a php app I wrote. > > My worry is that the two-day course is going to be too basic, though, like > "Now we're going to write our first F-U-N-C-T-I-O-N." Can anyone give me a > sense of the level of the course? I don't have a generous employer to pay my > tuition; it will be coming out of my own pocket, so I want to make sure I'm > not taking the wrong course. I do feel that I've kind of run into a wall in > my auto-didactical regimen and could be well served by merely _talking_ with > other people who use these tools. Lately I've set my php books aside in > frustration, distracting myself by writing greasemonkey scripts. If it's a > useful bit of info, web programming/designing is not my day job (yet), > though I do make some money doing it. > > Thanks, > Chris > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Tue Jun 14 09:44:55 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 14 Jun 2005 09:44:55 -0400 Subject: [nycphp-talk] Cheap Book Source Message-ID: <8d9a4280050614064477fad309@mail.gmail.com> Anyone here have a good source for affordable books? i need to get some books to stay on top of the game and catch up on some topics other than php but dont want to spend a fortune either. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From acas at sapo.pt Tue Jun 14 09:46:40 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Tue, 14 Jun 2005 14:46:40 +0100 Subject: [nycphp-talk] Cheap Book Source In-Reply-To: <8d9a4280050614064477fad309@mail.gmail.com> Message-ID: <20050614134649.7D2D3A8798@virtu.nyphp.org> Hello. Have you tried to look at Amazon's 2nd hand books? Sometimes prices are good. Cheers, -- Alberto dos Santos email: acas at sapo.pt skype: fatflash Salvaguarda: Este email e seus anexos est?o protegidos de v?rus e programas maliciosos. Se notar algo de anormal por favor informe-me. Obrigado. Disclaimer: This email and it?s attachements are protected from v?rus and malicious software. If you notice something unusual please report. Thanks. _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: ter?a-feira, 14 de Junho de 2005 14:45 To: NYPHP Talk Subject: [nycphp-talk] Cheap Book Source Anyone here have a good source for affordable books? i need to get some books to stay on top of the game and catch up on some topics other than php but dont want to spend a fortune either. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Tue Jun 14 09:48:50 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 14 Jun 2005 09:48:50 -0400 Subject: [nycphp-talk] Cheap Book Source In-Reply-To: <20050614134649.7D2D3A8798@virtu.nyphp.org> References: <8d9a4280050614064477fad309@mail.gmail.com> <20050614134649.7D2D3A8798@virtu.nyphp.org> Message-ID: <8d9a42800506140648780c2b1f@mail.gmail.com> darn sorry i didnt mark this [OT] i sure meant to. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From leam at reuel.net Tue Jun 14 09:51:41 2005 From: leam at reuel.net (leam at reuel.net) Date: Tue, 14 Jun 2005 09:51:41 -0400 Subject: [nycphp-talk] Cheap Book Source In-Reply-To: <8d9a42800506140648780c2b1f@mail.gmail.com> References: <8d9a4280050614064477fad309@mail.gmail.com> <20050614134649.7D2D3A8798@virtu.nyphp.org> <8d9a42800506140648780c2b1f@mail.gmail.com> Message-ID: <20050614135141.GF2905@leitz.reuel.net> What sort of books are you looking for? ciao! leam On Tue, Jun 14, 2005 at 09:48:50AM -0400, Joseph Crawford wrote: > darn sorry i didnt mark this [OT] i sure meant to. > From j at nybg.org Tue Jun 14 10:06:44 2005 From: j at nybg.org (Freeman, Joshua) Date: Tue, 14 Jun 2005 10:06:44 -0400 Subject: [nycphp-talk] Cheap Book Source Message-ID: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org> http://www.bookpool.com/ Joshua S. Freeman Director, Information Technology, NYBG v: 718 817 8937 m: 347 392 2560 jfreeman at nybg dot org -----Original Message----- From: talk-bounces at lists.nyphp.org on behalf of Joseph Crawford Sent: Tue 6/14/2005 9:44 AM To: NYPHP Talk Subject: [nycphp-talk] Cheap Book Source Anyone here have a good source for affordable books? i need to get some books to stay on top of the game and catch up on some topics other than php but dont want to spend a fortune either. -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2611 bytes Desc: not available URL: From codebowl at gmail.com Tue Jun 14 10:14:56 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 14 Jun 2005 10:14:56 -0400 Subject: [nycphp-talk] Cheap Book Source In-Reply-To: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org> References: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org> Message-ID: <8d9a428005061407146a9ed3f2@mail.gmail.com> leam, i appreciate that, that is however one that i have it's 3rd ed i have and didnt find that book too useful... -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Tue Jun 14 10:16:25 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 14 Jun 2005 10:16:25 -0400 Subject: [nycphp-talk] Cheap Book Source In-Reply-To: <8d9a428005061407146a9ed3f2@mail.gmail.com> References: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org> <8d9a428005061407146a9ed3f2@mail.gmail.com> Message-ID: <8d9a428005061407167d75a35@mail.gmail.com> when it comes to JS it's not the syntax i cannot grasp it's the cross browser stuff, the browser methods etc.. JS syntax is cake ;) -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaron at aarond.com Tue Jun 14 10:35:45 2005 From: aaron at aarond.com (aaron at aarond.com) Date: Tue, 14 Jun 2005 10:35:45 -0400 Subject: [nycphp-talk] Freelance sites In-Reply-To: <8d9a428005061407146a9ed3f2@mail.gmail.com> References: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org> <8d9a428005061407146a9ed3f2@mail.gmail.com> Message-ID: <42AEEB41.1000709@aarond.com> Can anyone recommend a web freelance site that is worth while? Something like guru.com I guess. I've also been seeing a lot of php related jobs on these sites. thanks, Aaron From codebowl at gmail.com Tue Jun 14 10:43:24 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 14 Jun 2005 10:43:24 -0400 Subject: [nycphp-talk] Freelance sites In-Reply-To: <42AEEB41.1000709@aarond.com> References: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org> <8d9a428005061407146a9ed3f2@mail.gmail.com> <42AEEB41.1000709@aarond.com> Message-ID: <8d9a42800506140743169b6dca@mail.gmail.com> i believe these sites are useless ;) I was a member at guru for a while and gave it up because i didnt ever get any jobs that could be worth the time invested. rentacoder.com is horrible, they are all poeple from india bleh.... -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaron at aarond.com Tue Jun 14 10:42:36 2005 From: aaron at aarond.com (aaron at aarond.com) Date: Tue, 14 Jun 2005 10:42:36 -0400 Subject: [nycphp-talk] Freelance sites In-Reply-To: <8d9a42800506140743169b6dca@mail.gmail.com> References: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org> <8d9a428005061407146a9ed3f2@mail.gmail.com> <42AEEB41.1000709@aarond.com> <8d9a42800506140743169b6dca@mail.gmail.com> Message-ID: <42AEECDC.90009@aarond.com> Thanks, I figured my only hope was looking for jobs where people wanted someone local. Found a few, but haven't heard back from any. Worth a shot eh? Joseph Crawford wrote: > i believe these sites are useless ;) I was a member at guru for a while > and gave it up because i didnt ever get any jobs that could be worth the > time invested. rentacoder.com is horrible, they > are all poeple from india bleh.... > > -- > Joseph Crawford Jr. > Codebowl Solutions > codebowl at gmail.com > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From leam at reuel.net Tue Jun 14 10:51:25 2005 From: leam at reuel.net (leam at reuel.net) Date: Tue, 14 Jun 2005 10:51:25 -0400 Subject: [nycphp-talk] Freelance sites In-Reply-To: <42AEECDC.90009@aarond.com> References: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org> <8d9a428005061407146a9ed3f2@mail.gmail.com> <42AEEB41.1000709@aarond.com> <8d9a42800506140743169b6dca@mail.gmail.com> <42AEECDC.90009@aarond.com> Message-ID: <20050614145125.GM2905@leitz.reuel.net> Where are you, what do you do? What's your portfolio? ciao! leam On Tue, Jun 14, 2005 at 10:42:36AM -0400, aaron at aarond.com wrote: > Thanks, I figured my only hope was looking for jobs where people wanted > someone local. Found a few, but haven't heard back from any. > > Worth a shot eh? > > > > Joseph Crawford wrote: > > >i believe these sites are useless ;) I was a member at guru for a while > >and gave it up because i didnt ever get any jobs that could be worth the > >time invested. rentacoder.com is horrible, they > >are all poeple from india bleh.... > > From hans at cyberxdesigns.com Tue Jun 14 11:12:16 2005 From: hans at cyberxdesigns.com (Hans Kaspersetz) Date: Tue, 14 Jun 2005 11:12:16 -0400 Subject: [nycphp-talk] PHP in the News. Message-ID: <42AEF3D0.1030801@cyberxdesigns.com> Hi guys, ZDnet.com has an article about PHP and Active Grid today. As you might remember Active Grid presented to us a couple of months ago. http://news.zdnet.com/2100-3513_22-5744767.html?tag=zdfd.newsfeed -- Hans C. Kaspersetz Cyber X Designs http://www.cyberxdesigns.com From spedeens at gmail.com Tue Jun 14 12:16:13 2005 From: spedeens at gmail.com (Denis Ramirez) Date: Tue, 14 Jun 2005 12:16:13 -0400 Subject: [nycphp-talk] Freelance sites References: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org><8d9a428005061407146a9ed3f2@mail.gmail.com><42AEEB41.1000709@aarond.com><8d9a42800506140743169b6dca@mail.gmail.com><42AEECDC.90009@aarond.com> <20050614145125.GM2905@leitz.reuel.net> Message-ID: <010001c570fc$62ad6f10$0554c644@HODESK> look this site.. http://newyork.craigslist.org/art/ Sorry I don't write english very well, but i want to know people in NY, i'm from Cuba, if somebody speak spanish or somebody want to communicate with me please contact, i need frineds in NY... Denis. PD: I can read english.. thanks ----- Original Message ----- From: To: "NYPHP Talk" Sent: Tuesday, June 14, 2005 10:51 AM Subject: Re: [nycphp-talk] Freelance sites > Where are you, what do you do? What's your portfolio? > > ciao! > > leam > > On Tue, Jun 14, 2005 at 10:42:36AM -0400, aaron at aarond.com wrote: >> Thanks, I figured my only hope was looking for jobs where people wanted >> someone local. Found a few, but haven't heard back from any. >> >> Worth a shot eh? >> >> >> >> Joseph Crawford wrote: >> >> >i believe these sites are useless ;) I was a member at guru for a while >> >and gave it up because i didnt ever get any jobs that could be worth the >> >time invested. rentacoder.com is horrible, they >> >are all poeple from india bleh.... >> > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From lists at natserv.com Tue Jun 14 12:36:59 2005 From: lists at natserv.com (Francisco Reyes) Date: Tue, 14 Jun 2005 12:36:59 -0400 (EDT) Subject: [nycphp-talk] Freelance sites In-Reply-To: <010001c570fc$62ad6f10$0554c644@HODESK> References: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org><8d9a428005061407146a9ed3f2@mail.gmail.com><42AEEB41.1000709@aarond.com><8d9a42800506140743169b6dca@mail.gmail.com><42AEECDC.90009@aarond.com> <20050614145125.GM2905@leitz.reuel.net> <010001c570fc$62ad6f10$0554c644@HODESK> Message-ID: <20050614123351.V76127@zoraida.natserv.net> On Tue, 14 Jun 2005, Denis Ramirez wrote: > look this site.. > http://newyork.craigslist.org/art/ I think you could look at the top level http://newyork.craigslist.org and then check the different categories. Also I sometimes check other sities and check by using the "telecommute" flag. Many of the jobs are not telecommute, but some are. > Sorry I don't write english very well, but i want to know people in NY, i'm > from Cuba, if somebody speak spanish or somebody want to communicate with me > please contact, i need frineds in NY... Yo, Yo, Yo. :-) I live in NYC. I speak/read/write spanish. From lists at natserv.com Tue Jun 14 12:41:49 2005 From: lists at natserv.com (Francisco Reyes) Date: Tue, 14 Jun 2005 12:41:49 -0400 (EDT) Subject: [nycphp-talk] Freelance sites In-Reply-To: <42AEEB41.1000709@aarond.com> References: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org> <8d9a428005061407146a9ed3f2@mail.gmail.com> <42AEEB41.1000709@aarond.com> Message-ID: <20050614123831.U76127@zoraida.natserv.net> On Tue, 14 Jun 2005, aaron at aarond.com wrote: > Can anyone recommend a web freelance site that is worth while? Something like > guru.com I guess. Other than the craigslist site, mentioned on another email, I have not foudn any other good site. Most "General" sites have too many people overseas that can underbid you by a long shot.. no way to compete with those rates while living in the US. From mlynch at icbf.com Tue Jun 14 12:50:44 2005 From: mlynch at icbf.com (Michael Lynch) Date: Tue, 14 Jun 2005 17:50:44 +0100 Subject: [nycphp-talk] RE: Sending OCI array through XML_RPC Message-ID: <11B62D16D13187468EEF6726E13214641EBBAF@icbf-server1.icbf.com> Hi All Could anyone adivise on the best way to send the results of an OCI query through XML_RPC ? I have a server side function that queries an Oracle database and sends the results back via XML_RPC. I can get it to work fine for single row result set by just binding out variables but I'm finding mult-row result sets more difficult. I'm using oci_fetch_array to put the results of my SQL query into an array. I then want to encapusulate this and send it as normal. Below is my latest attempt. $idbConn = oci_new_connect(DB_USER, DB_PSWD, DB_NAME); $call = "SELECT col1, col2, col3 FROM mytable"; $Statement = @OCIParse($idbConn, $call); @OCIExecute($Statement, OCI_DEFAULT); while($data_array=oci_fetch_array($Statement, OCI_BOTH)) { foreach ($data_array as $key => $value) { $arData = new XML_RPC_Value(array( new XML_RPC_Value(array($key => new XML_RPC_Value($value)), "struct"))); } } $strucData = new XML_RPC_Value($arData,'struct'); return new XML_RPC_Response($strucData); All I get on debug is ---GOT--- HTTP/1.1 200 OK Date: Tue, 14 Jun 2005 16:23:01 GMT Server: Apache/1.3.33 (Unix) PHP/5.0.2 X-Powered-By: PHP/5.0.2 Content-Length: 302 Connection: close Content-Type: text/xml me mytype ---END--- ---EVALING---[119 chars]--- new XML_RPC_Value(array('me' => new XML_RPC_Value("", 'string'),'mytype' => new XML_RPC_Value("", 'string')), 'struct'); ---END--- Thanks Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Tue Jun 14 13:30:15 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 14 Jun 2005 13:30:15 -0400 Subject: [nycphp-talk] RE: Sending OCI array through XML_RPC In-Reply-To: <11B62D16D13187468EEF6726E13214641EBBAF@icbf-server1.icbf.com> References: <11B62D16D13187468EEF6726E13214641EBBAF@icbf-server1.icbf.com> Message-ID: <20050614173015.GA29025@panix.com> On Tue, Jun 14, 2005 at 05:50:44PM +0100, Michael Lynch wrote: > > I can get it to work fine for single row result set by just binding out > variables but I'm finding mult-row result sets more difficult. Make a multi-dimensional array. The main array contains an element for each row in the result, then each of those elements contains a sub array of the data contained in that row. --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 egewirtz at suscom.net Tue Jun 14 15:40:24 2005 From: egewirtz at suscom.net (Eric Gewirtz) Date: Tue, 14 Jun 2005 15:40:24 -0400 Subject: [nycphp-talk] Timing out in php batch Message-ID: <01a601c57118$e923f9d0$6501a8c0@Libby> We are having a time out issue running in php batch mode. It was my understanding based on the php manual that the max_execution_time parameter in php.ini is overridden by batch and set to unlimited, yet our application is getting the following error. Fatal error: Maximum execution time of 30 seconds exceeded in /home/abc/def_html/xxxxxxx/p2/prod/prodscript.php on line 315
The process is a database OLTP oriented application so we are 'selecting' from a MySQL DB and we are you using mysqlimport to load tables as well as insert / update / and delete processing using PEAR DB. The process usually runs for about 45 minutes but when the machine has other processing going on it could take up to 2 hours and occasionally it times out :-( In this particular case the code was reading a 400,000 plus record flat ascii file to get a record count (I know we could have used 'wc -l' but we are trying to do everything in php so we are platform and OS independent). While this was going on another process was applying about 4.5 million transactions to database tables. We have been running this code for almost a year and we do get this error when we run a lot of scripts on the server at the same time. This time the error message identified a specific line of code that caused the time out but this is not consistent - it times out within other areas of the code too. Our hosted server is dedicated to us - it is a dual processor (2ghz) - 2 gig memory The following is the output of 'uname -a' from the server ---> Linux xxxxxxx.xxxxxxx.com 2.4.30 #2 SMP Thu May 19 12:34:10 CDT 2005 i686 i686 i386 GNU/Linux We are running php version 4.3.10 Any help would be appreciated - thanks Eric Gewirtz SolutionOne Phone - 845-729-7800 Fax - 845-279-5502 egewirtz at rcn.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcech at phpwerx.net Tue Jun 14 15:57:12 2005 From: dcech at phpwerx.net (Dan Cech) Date: Tue, 14 Jun 2005 15:57:12 -0400 Subject: [nycphp-talk] Timing out in php batch In-Reply-To: <01a601c57118$e923f9d0$6501a8c0@Libby> References: <01a601c57118$e923f9d0$6501a8c0@Libby> Message-ID: <42AF3698.3050706@phpwerx.net> Eric, Try using http://php.net/set_time_limit at the top of the script to increase/remove the time limit. Dan Eric Gewirtz wrote: > We are having a time out issue running in php batch mode. It was my > understanding based on the php manual that the max_execution_time > parameter in php.ini is overridden by batch and set to unlimited, yet > our application is getting the following error. > > Fatal error: Maximum execution time of 30 seconds exceeded in > /home/abc/def_html/xxxxxxx/p2/prod/prodscript.php on line > 315
From mitch.pirtle at gmail.com Tue Jun 14 17:42:56 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Tue, 14 Jun 2005 17:42:56 -0400 Subject: [nycphp-talk] Cheap Book Source In-Reply-To: <8d9a428005061407167d75a35@mail.gmail.com> References: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org> <8d9a428005061407146a9ed3f2@mail.gmail.com> <8d9a428005061407167d75a35@mail.gmail.com> Message-ID: <330532b605061414426f053e33@mail.gmail.com> On 6/14/05, Joseph Crawford wrote: > when it comes to JS it's not the syntax i cannot grasp it's the cross > browser stuff, the browser methods etc.. JS syntax is cake ;) Well I have an extra copy of Sitepoint's new AJAX book, and will be bringing it to this month's NYPHP meet... -- Mitch, happy to be getting extra copies of books for NYPHP From codebowl at gmail.com Tue Jun 14 17:46:43 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 14 Jun 2005 17:46:43 -0400 Subject: [nycphp-talk] Cheap Book Source In-Reply-To: <330532b605061414426f053e33@mail.gmail.com> References: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org> <8d9a428005061407146a9ed3f2@mail.gmail.com> <8d9a428005061407167d75a35@mail.gmail.com> <330532b605061414426f053e33@mail.gmail.com> Message-ID: <8d9a428005061414465b47b0e4@mail.gmail.com> lol i wish i could be there ;) i live in VT so it's not easy for me to get to a meeting, i will make it to one eventually though ;) -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Tue Jun 14 17:50:22 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Tue, 14 Jun 2005 17:50:22 -0400 Subject: [nycphp-talk] Freelance sites In-Reply-To: <010001c570fc$62ad6f10$0554c644@HODESK> References: <319FD9EAB7A43E43895ACA5AA1F81E0502910292@xmail.nybg.org> <8d9a428005061407146a9ed3f2@mail.gmail.com> <42AEEB41.1000709@aarond.com> <8d9a42800506140743169b6dca@mail.gmail.com> <42AEECDC.90009@aarond.com> <20050614145125.GM2905@leitz.reuel.net> <010001c570fc$62ad6f10$0554c644@HODESK> Message-ID: <330532b605061414503f2fe71f@mail.gmail.com> On 6/14/05, Denis Ramirez wrote: > > Sorry I don't write english very well, but i want to know people in NY, i'm > from Cuba, if somebody speak spanish or somebody want to communicate with me > please contact, i need frineds in NY... I used to be fluent, but forgot all my Spanish when I learned Swiss-German. But put enough Guinness in me and I can even give you Brasilian Portoguese ;-) -- Mitch From acas at sapo.pt Tue Jun 14 18:53:04 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Tue, 14 Jun 2005 23:53:04 +0100 Subject: [nycphp-talk] Freelance sites In-Reply-To: <330532b605061414503f2fe71f@mail.gmail.com> Message-ID: <20050614225301.09846A862D@virtu.nyphp.org> Hola Denis, Soy Portugu?s, pero hablo espa?ol. Si quieres poner una question tecnica, pues hacelo en espa?ol que te lo traduzco para Ingl?s. Hasta. -- Alberto dos Santos email: acas at sapo.pt web: otrebla.no.sapo.pt skype: fatflash msn: fatflash at hotmail.com Salvaguarda: Este email est? protegido de v?rus e programas maliciosos -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Mitch Pirtle Sent: ter?a-feira, 14 de Junho de 2005 22:50 To: NYPHP Talk Subject: Re: [nycphp-talk] Freelance sites On 6/14/05, Denis Ramirez wrote: > > Sorry I don't write english very well, but i want to know people in NY, i'm > from Cuba, if somebody speak spanish or somebody want to communicate with me > please contact, i need frineds in NY... I used to be fluent, but forgot all my Spanish when I learned Swiss-German. But put enough Guinness in me and I can even give you Brasilian Portoguese ;-) -- Mitch _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From jay_nyphp at fastmail.fm Tue Jun 14 20:35:03 2005 From: jay_nyphp at fastmail.fm (Jayesh Sheth) Date: Tue, 14 Jun 2005 20:35:03 -0400 Subject: [nycphp-talk] structured programming in practice Message-ID: <1118795703.23685.236380936@webmail.messagingengine.com> Hello NYPHP members, I thought I would ask your opinions on using structured programming ( see http://en.wikipedia.org/wiki/Structured_programming and http://discuss.fogcreek.com/joelonsoftware/default.asp?cmd=show&ixPost=31001 ) principles. More specifically, what are your opinions on single points of entry and exit for functions? For example, consider the following three code snippets: What if you are stuck using PHP 4, and you have to use any of the following error handling methods instead of exceptions, which one would you choose? If so, why? Thanks in advance for reading through these snippets! ---- Snippet 1 function make_beverage($bev_type, &$bev) { if($bev_type == 'coffee') { $aw = add_cwater($bev); if ( ! $aw) { return false; } $bc = brew_coffee($bev); if (!$bc) { return false; } return true; } else if ($bev_type == 'tea') { $aw = add_twater($bev) { if (! $aw) { return false; } } $atb = add_tea_bag($bev); if ( ! $atb ) { return false; } return true; } } ----- Snippet function make_beverage($bev_type, &$bev) { if($bev_type == 'coffee' || $bev_type == 'tea') { if($bev_type == 'coffee') { $aw = add_cwater($bev); if ($aw) { $bc = brew_coffee($bev); if ($bc) { $return = true; } else { $return = false; } } else { $return = false; } } else { $aw = add_twater($bev) if ($aw) { $atb = add_tea_bag($bev); if ( $atb ) { $return = true; } else { $return = false; } } else { $return = false; } } return $return; } } ---- Both Snippet 1 and Snippet 2 introduce an interesting problem. $bev is passed in by reference, and so the functions that make_beverage() call also act on $bev, which is defined outside of make_beverage(), before make_beverage() is called. So, if you want to know what exactly failed, what would you do? Would you use return codes? For example: ---- Snippet 3 function make_beverage($bev_type, &$bev) { if($bev_type == 'coffee') { $aw = add_cwater($bev); if ( ! $aw) { return -1; } $bc = brew_coffee($bev); if (!$bc) { return -2; } return 1; } else if ($bev_type == 'tea') { $aw = add_twater($bev) { if (! $aw) { return -3; } } $atb = add_tea_bag($bev); if ( ! $atb ) { return -4; } return 1; } } ---- Or would you do something like: ---- Snippet 4 function make_beverage($bev_type, &$bev, &$errs) { if($bev_type == 'coffee' || $bev_type == 'tea') { if($bev_type == 'coffee') { $aw = add_cwater($bev); if ($aw) { $bc = brew_coffee($bev); if ($bc) { $return = true; } else { $errs[] = 'bc'; $return = false; } } else { $errs[] = 'aw'; $return = false; } } else { $aw = add_twater($bev) if ($aw) { $atb = add_tea_bag($bev); if ( $atb ) { $return = true; } else { $errs[] = 'atb'; $return = false; } } else { $errs[] = 'aw'; $return = false; } } return $return; } } ---- Best regards, - Jay From danielc at analysisandsolutions.com Wed Jun 15 09:17:57 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 15 Jun 2005 09:17:57 -0400 Subject: [nycphp-talk] structured programming in practice In-Reply-To: <1118795703.23685.236380936@webmail.messagingengine.com> References: <1118795703.23685.236380936@webmail.messagingengine.com> Message-ID: <20050615131757.GA25931@panix.com> Jay: Man, your coding style gives me a headache. Way too much nesting, let alone inconsistent widths of nesting. Then putting braces below each if statement makes the code take up loads of extra vertical space, so it's hard to see as much logic on a page. That aside, the notion of having one exit point per function doesn't carry much weight in my mind. If one reaches the end of execution, it seems clearest to me to actually say you've reached that point by leaving the function. Otherwise, you're left wondering what else happens down in the rest of the function and have to go hunting, only to find out, oh, it's done. What a waste. Something I noticed in your examples is you're not handling the situation if $bev_type isn't coffee or tea. I'd likely use a switch with a default case here. You're assigning the returns of add_twater() and add_tea_bag() to variables, but the values are only used for evaluation in an if statement. It's more efficient to just do: if (!add_tea_bag($bev)) { return false; } Now, as far as how to handle reporting of errors, that's really situation specific. Here's how I'd write your function: function make_beverage_dan($bev_type, &$bev) { switch ($bev_type) { case 'coffee': if (add_cwater($bev) && brew_coffee($bev)) { return true; } return false; case 'tea': if (add_cwater($bev) && add_tea_bag($bev)) { return true; } return false; default: return false; } } I notice you're passing in $bev by reference. If that's solely to get the value out of the method, I tend to prefer returning the values. --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 codebowl at gmail.com Wed Jun 15 09:23:56 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 15 Jun 2005 09:23:56 -0400 Subject: [nycphp-talk] structured programming in practice In-Reply-To: <20050615131757.GA25931@panix.com> References: <1118795703.23685.236380936@webmail.messagingengine.com> <20050615131757.GA25931@panix.com> Message-ID: <8d9a42800506150623784852d1@mail.gmail.com> Dan, I completely agree with what you said :) I just got done reading this and was going to reply but umm why duplicate... -- Joseph Crawford Jr. Codebowl Solutions codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Wed Jun 15 09:38:20 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 15 Jun 2005 09:38:20 -0400 Subject: [nycphp-talk] structured programming in practice In-Reply-To: <8d9a42800506150623784852d1@mail.gmail.com> References: <1118795703.23685.236380936@webmail.messagingengine.com> <20050615131757.GA25931@panix.com> <8d9a42800506150623784852d1@mail.gmail.com> Message-ID: <330532b605061506382a5ce771@mail.gmail.com> On 6/15/05, Joseph Crawford wrote: > Dan, > > I completely agree with what you said :) > I just got done reading this and was going to reply but umm why > duplicate... But that is not the purpose of this thread - remember, this is an intellectual exercise in Structured Programming - of course we all would most likely put this in a switch statement, but then that violates the concepts behind Stuctured Programming in the first place! Yes the code is ugly, it reminds me of really bad COBOL, but it satisfies the requirements of the exercise. Raj, you are a better man than I, because I simply cannot do it. ;-) -- Mitch From chsnyder at gmail.com Wed Jun 15 09:42:52 2005 From: chsnyder at gmail.com (csnyder) Date: Wed, 15 Jun 2005 09:42:52 -0400 Subject: [nycphp-talk] structured programming in practice In-Reply-To: <1118795703.23685.236380936@webmail.messagingengine.com> References: <1118795703.23685.236380936@webmail.messagingengine.com> Message-ID: On 6/14/05, Jayesh Sheth wrote: > I thought I would ask your opinions on using structured programming > More specifically, what are your opinions on single points > of entry and exit for functions? I like the consistency of it, but I prefer code that is easy to read. As long as the exits are well-marked, I say return wherever it makes sense. I typically bail out of functions or methods at the top if the arguments don't validate, rather than create a big nested block. As for figuring out why a function returned early... well, that's why PHP needed exceptions, isn't it? Otherwise, I'm partial to using a console to track those things... $log = array(); function console( $message ) { global $log; $log[] = $message; } function make_beverage( &$bev ) { $aw = add_cwater( $bev ); if ( ! $aw) { console( 'make_beverage: Unable to add water.' ); return FALSE; } // ... return TRUE; } //... // display console messages - developers only! print '

'.implode( "\n", $log ).'
'; From danielc at analysisandsolutions.com Wed Jun 15 09:52:20 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Wed, 15 Jun 2005 09:52:20 -0400 Subject: [nycphp-talk] structured programming in practice In-Reply-To: <330532b605061506382a5ce771@mail.gmail.com> References: <1118795703.23685.236380936@webmail.messagingengine.com> <20050615131757.GA25931@panix.com> <8d9a42800506150623784852d1@mail.gmail.com> <330532b605061506382a5ce771@mail.gmail.com> Message-ID: <20050615135220.GA8873@panix.com> Sir Mitch: On Wed, Jun 15, 2005 at 09:38:20AM -0400, Mitch Pirtle wrote: > But that is not the purpose of this thread - remember, this is an > intellectual exercise in Structured Programming - of course we all > would most likely put this in a switch statement, but then that > violates the concepts behind Stuctured Programming in the first place! But Jay's examples all had multiple exit points, so he wasn't using SP to begin with. --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 Cbielanski at inta.org Wed Jun 15 10:05:40 2005 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 15 Jun 2005 10:05:40 -0400 Subject: [nycphp-talk] structured programming in practice Message-ID: <328AA5243F20DA4DABDC022745BF3A073EE6FC@INTAMAIL2k3.ny.inta.org> I agree with Dan, and I wanted to inject a little experience here. I spent a few years doing Delphi programming and it got me into a habit of declaring and using $result in most of my functions. Now, whereas I use multiple-exit logic like most folks here, a $result variable does (IMHO) lend itself to the SP method of single-exit. Perhaps this is a suitable "hybrid" approach, if that's the correct term? My example modified from Dan's: (I went with my habit for case syntax function make_beverage_cb($bev_type, &$bev) { $result = false; switch ($bev_type) { case ('coffee'): { if (add_cwater($bev) && brew_coffee($bev)) { $result = true; } break; } case ('tea'): { if (add_cwater($bev) && add_tea_bag($bev)) { $result = true; } break; } default: { $result = false; break; } } return $result; } Thanks, Chris Bielanski Web Programmer, International Trademark Association, 655 Third Avenue, 10th Floor New York, NY 10017-5617 USA +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence Dan Said: > That aside, the notion of having one exit point per function > doesn't carry much weight in my mind. If one reaches the end > of execution, it seems clearest to me to actually say you've > reached that point by leaving the function. Otherwise, > you're left wondering what else happens down in the rest of > the function and have to go hunting, only to find out, oh, > it's done. What a waste. > > Something I noticed in your examples is you're not handling > the situation if $bev_type isn't coffee or tea. I'd likely > use a switch with a default case here. > > You're assigning the returns of add_twater() and > add_tea_bag() to variables, but the values are only used for > evaluation in an if statement. > It's more efficient to just do: > > if (!add_tea_bag($bev)) { > return false; > } > > Now, as far as how to handle reporting of errors, that's > really situation specific. > > Here's how I'd write your function: > > function make_beverage_dan($bev_type, &$bev) { > switch ($bev_type) { > case 'coffee': > if (add_cwater($bev) && brew_coffee($bev)) { > return true; > } > return false; > > case 'tea': > if (add_cwater($bev) && add_tea_bag($bev)) { > return true; > } > return false; > > default: > return false; > } > } > > I notice you're passing in $bev by reference. If that's > solely to get the value out of the method, I tend to prefer > returning the values. > > --Dan > > -- > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > data intensive web and database programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: > 718-854-0409 _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From jay_nyphp at fastmail.fm Wed Jun 15 10:14:00 2005 From: jay_nyphp at fastmail.fm (Jayesh Sheth) Date: Wed, 15 Jun 2005 10:14:00 -0400 Subject: [nycphp-talk] structured programming in practice Message-ID: <1118844840.13847.236425960@webmail.messagingengine.com> Hello guys, thanks a lot for your valuable feedback! Sorry for the irregularly spaced code Dan - I first began typing in a textarea then in JEdit. Mangling was unintentional :-) I often like returning when I need to do, but some believe exactly in the opposite ... - Jay From corey at bmfenterprises.com Wed Jun 15 11:20:30 2005 From: corey at bmfenterprises.com (Corey Fogarty) Date: Wed, 15 Jun 2005 11:20:30 -0400 Subject: [nycphp-talk] PEAR::SOAP PHP and SOAP Message-ID: We are looking for some help cleaning up an install of PEAR::SOAP or some kind of PHP SOAP client/server for our Apache 1.3.29, PHP 4.3.4, Solaris 2.6 environment. I have tried many things with no luck and am looking for someone who has done this before. We have some budget and are willing to pay for the services. If there is anyone out there who has done this, or knows someone who has done this. Please contact me ASAP. Thank you, Corey Corey Fogarty BMF Enterprises www.bmfenterprises.com 908.995.4711 -------------- next part -------------- An HTML attachment was scrubbed... URL: From krook at us.ibm.com Wed Jun 15 11:06:42 2005 From: krook at us.ibm.com (Daniel Krook) Date: Wed, 15 Jun 2005 11:06:42 -0400 Subject: [nycphp-talk] PHP book recommendations by role Message-ID: Following on the earlier book access discussions... What are the most valuable hard copy book resources that you would recommend today if you needed to populate a shelf with, say three, of the best for the following "typical" NYPHPers? * The freelancer with intermediate skill in procedural PHP 4 and MySQL 4.0 who is looking to strengthen his/her existing technology skillset and to smoothly transition to PHP 5 OOP and the mysqli interface. * The traditional C/C++ programmer beginning to develop web applications (and possibly begin work with relational databases). * The veteran PHP 4/5 programmer looking to advance his/her understanding of UML, OOP, patterns & methodologies. * The second-year university computer science student looking to develop a web application foundation (HTTP, SQL, HTML). * The mid-career interface designer with strong XHTML, JavaScript, CSS and a dab of ASP/JSP scripting? * The J2EE programmer who is migrating midsize Java applications to PHP, assuming the database is to remain DB2/Oracle etc. Daniel Krook, Advisory IT Specialist Application Development, Production Services - Tools, ibm.com Personal: http://info.krook.org/ BluePages: http://bluepages.redirect.webahead.ibm.com/ BlogPages: http://blogpages.redirect.webahead.ibm.com/ From james at surgam.net Wed Jun 15 11:17:28 2005 From: james at surgam.net (james at surgam.net) Date: Wed, 15 Jun 2005 11:17:28 -0400 (EDT) Subject: [nycphp-talk] structured programming in practice In-Reply-To: Message from "Chris Bielanski" of "Wed, 15 Jun 2005 10:05:40 EDT." <328AA5243F20DA4DABDC022745BF3A073EE6FC@INTAMAIL2k3.ny.inta.org> Message-ID: <20050615151728.1CBC8BE3C@mail.surgam.net> "Chris Bielanski" says: ... > My example modified from Dan's: (I went with my habit for case > syntax My modification to compact things a bit: function make_beverage_cb($bev_type, &$bev) { switch ($bev_type) { case ('coffee'): $result = (add_cwater($bev) && brew_coffee($bev)); break; case ('tea'): $result = (add_twater($bev) && add_tea_bag($bev)); break; default: $result = false; break; } return $result; } If you want to stick errors in an array as the original question asked, you can also do something like this (code off the top of my head -- NOT TESTED): function make_beverage_cb($bev_type, &$bev) { $err = array(); // Could be passed in instead switch ($bev_type) { case ('coffee'): $result = ((add_cwater($bev) || (($err[] = 'aw') && false)) && (brew_coffee($bev) || (($err[] = 'bc') && false))); break; case ('tea'): $result = ((add_twater($bev) || (($err[] = 'ac') && false)) && (add_tea_bag($bev) || (($err[] = 'at') && false))); break; default: $err[] = 'bad bev'; $result = false; break; } handle_errs($err); // or this can be done after returning return $result; } $err could also be an array that's passed in and handled later. From agfische at email.smith.edu Wed Jun 15 11:31:22 2005 From: agfische at email.smith.edu (Aaron Fischer) Date: Wed, 15 Jun 2005 11:31:22 -0400 Subject: [nycphp-talk] PEAR::SOAP PHP and SOAP In-Reply-To: References: Message-ID: <5a268633e29a93efd9bf6df35ce885fb@email.smith.edu> This should be posted on the jobs list, not the talk list. http://www.nyphp.org/content/mailinglist/mlist.php On Jun 15, 2005, at 11:20 AM, Corey Fogarty wrote: > We are looking for some help cleaning up an install of PEAR::SOAP or > some kind of PHP SOAP client/server for our Apache 1.3.29, PHP 4.3.4, > Solaris 2.6 environment. > > I have tried many things with no luck and am looking for someone who > has done this before. We have some budget and are willing to pay for > the services. If there is anyone out there who has done this, or knows > someone who has done this. Please contact me ASAP. > > Thank you, > > Corey -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 816 bytes Desc: not available URL: From shiflett at php.net Wed Jun 15 10:32:48 2005 From: shiflett at php.net (Chris Shiflett) Date: Wed, 15 Jun 2005 15:32:48 +0100 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: References: Message-ID: <42B03C10.6060407@php.net> Daniel Krook wrote: > * The freelancer with intermediate skill in procedural PHP 4 and MySQL 4.0 > who is looking to strengthen his/her existing technology skillset and to > smoothly transition to PHP 5 OOP and the mysqli interface. Upgrading to PHP 5 > * The veteran PHP 4/5 programmer looking to advance his/her understanding > of UML, OOP, patterns & methodologies. Advanced PHP Programming > * The mid-career interface designer with strong XHTML, JavaScript, CSS and > a dab of ASP/JSP scripting? Learning PHP 5 Those are my picks - I don't have good suggestions for all of the categories. :-) Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From mitch.pirtle at gmail.com Wed Jun 15 11:40:35 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 15 Jun 2005 11:40:35 -0400 Subject: [nycphp-talk] PEAR::SOAP PHP and SOAP In-Reply-To: <5a268633e29a93efd9bf6df35ce885fb@email.smith.edu> References: <5a268633e29a93efd9bf6df35ce885fb@email.smith.edu> Message-ID: <330532b6050615084032773f02@mail.gmail.com> Forget the job, I want to know what everyone else is using for SOAP services! hehe There are several routes to take, and I'd like opinions and feedback from folks that have implemented SOAP. What libraries are recommended, and where are the gotchas? -- Mitch From maggie.cassidy at avaion.com Wed Jun 15 12:39:46 2005 From: maggie.cassidy at avaion.com (Maggie Cassidy) Date: Wed, 15 Jun 2005 12:39:46 -0400 Subject: [nycphp-talk] Timing out in php batch In-Reply-To: <42AF3698.3050706@phpwerx.net> Message-ID: <20050615163951.LTSJ1954.imta06a2.registeredsite.com@maggie> Isn't the set_time_limit/setting the max_execution_time irrelevant in batch mode/command line script? -Maggie -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Dan Cech Sent: Tuesday, June 14, 2005 3:57 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Timing out in php batch Eric, Try using http://php.net/set_time_limit at the top of the script to increase/remove the time limit. Dan Eric Gewirtz wrote: > We are having a time out issue running in php batch mode. It was my > understanding based on the php manual that the max_execution_time > parameter in php.ini is overridden by batch and set to unlimited, yet > our application is getting the following error. > > Fatal error: Maximum execution time of 30 seconds exceeded in > /home/abc/def_html/xxxxxxx/p2/prod/prodscript.php on line > 315
_______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.7.1 - Release Date: 6/13/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.7.3/15 - Release Date: 6/14/2005 From dcech at phpwerx.net Wed Jun 15 12:48:16 2005 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 15 Jun 2005 12:48:16 -0400 Subject: [nycphp-talk] Timing out in php batch In-Reply-To: <20050615163951.LTSJ1954.imta06a2.registeredsite.com@maggie> References: <20050615163951.LTSJ1954.imta06a2.registeredsite.com@maggie> Message-ID: <42B05BD0.2040802@phpwerx.net> Maggie Cassidy wrote: > Isn't the set_time_limit/setting the max_execution_time irrelevant in batch > mode/command line script? According to the manual page I referenced earlier, the max_execution_time setting does not take into account time spent waiting for 'system calls using system(), stream operations, database queries, etc.'. As far as I am aware the timeout will still be in effect for the script itself, regardless of whether it is run from the command line, cgi or apache module. Dan From adam at trachtenberg.com Wed Jun 15 13:43:05 2005 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Wed, 15 Jun 2005 13:43:05 -0400 (EDT) Subject: [nycphp-talk] PEAR::SOAP PHP and SOAP In-Reply-To: References: Message-ID: On Wed, 15 Jun 2005, Corey Fogarty wrote: > We are looking for some help cleaning up an install of PEAR::SOAP or some > kind of PHP SOAP client/server for our Apache 1.3.29, PHP 4.3.4, Solaris 2.6 > environment. Corey -- Please see Chuck's message on the PEAR list. The latest PEAR::SOAP is much improved, and you should try it out. -adam -- adam at trachtenberg.com | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! -------------- next part -------------- _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From egewirtz at suscom.net Wed Jun 15 14:24:17 2005 From: egewirtz at suscom.net (Eric Gewirtz) Date: Wed, 15 Jun 2005 14:24:17 -0400 Subject: [nycphp-talk] Timing out in php batch In-Reply-To: <42B05BD0.2040802@phpwerx.net> Message-ID: <002801c571d7$74a67320$6501a8c0@Libby> Hi Dan - Can you point me to what you were reading? Also, since we are running in batch we are running php (cli) -bash-2.05b$ php -v PHP 4.3.10 (cli) (built: Feb 3 2005 23:39:53) When run in batch, the following returns "0" as documented to be unlimited execution time Yet, we are still timing out only when the machine is bogged down - when run standalone the process always finishes in about 50 minutes of run time. Here is what I see in the manual - There are certain php.ini directives which are overridden by the CLI SAPI because they do not make sense in shell environments: Table 43-1. Overridden php.ini directives Directive CLI SAPI default value Comment html_errors FALSE It can be quite hard to read the error message in your shell when it's cluttered with all those meaningless HTML tags, therefore this directive defaults to FALSE. implicit_flush TRUE It is desired that any output coming from print(), echo() and friends is immediately written to the output and not cached in any buffer. You still can use output buffering if you want to defer or manipulate standard output. max_execution_time 0 (unlimited) Due to endless possibilities of using PHP in shell environments, the maximum execution time has been set to unlimited. Whereas applications written for the web are often executed very quickly, shell application tend to have a much longer execution time. register_argc_argv TRUE Because this setting is TRUE you will always have access to argc (number of arguments passed to the application) and argv (array of the actual arguments) in the CLI SAPI. As of PHP 4.3.0, the PHP variables $argc and $argv are registered and filled in with the appropriate values when using the CLI SAPI. Prior to this version, the creation of these variables behaved as they do in CGI and MODULE versions which requires the PHP directive register_globals to be on. Regardless of version or register_globals setting, you can always go through either $_SERVER or $HTTP_SERVER_VARS. Example: $_SERVER['argv'] Note: These directives cannot be initialized with another value from the configuration file php.ini or a custom one (if specified). This is a limitation because those default values are applied after all configuration files have been parsed. However, their value can be changed during runtime (which does not make sense for all of those directives, e.g. register_argc_argv). Eric Gewirtz SolutionOne Phone - 845-729-7800 Fax - 845-279-5502 egewirtz at rcn.com >-----Original Message----- >From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On >Behalf Of Dan Cech >Sent: Wednesday, June 15, 2005 11:48 AM >To: NYPHP Talk >Subject: Re: [nycphp-talk] Timing out in php batch > >Maggie Cassidy wrote: >> Isn't the set_time_limit/setting the max_execution_time irrelevant in >batch >> mode/command line script? > >According to the manual page I referenced earlier, the >max_execution_time setting does not take into account time spent waiting >for 'system calls using system(), stream operations, database queries, >etc.'. As far as I am aware the timeout will still be in effect for the >script itself, regardless of whether it is run from the command line, >cgi or apache module. > >Dan >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org From dcech at phpwerx.net Wed Jun 15 15:26:45 2005 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 15 Jun 2005 15:26:45 -0400 Subject: [nycphp-talk] Timing out in php batch In-Reply-To: <002801c571d7$74a67320$6501a8c0@Libby> References: <002801c571d7$74a67320$6501a8c0@Libby> Message-ID: <42B080F5.8020203@phpwerx.net> Eric Gewirtz wrote: > Hi Dan - > > Can you point me to what you were reading? I was reading http://php.net/set_time_limit, based on the error message you are receiving. It does appear that the time limit should not be enforced for cli scripts, so I guess you need to track down where the error message is coming from. Does the main script call out to any other scripts or web pages running php which could be timing out? Dan From egewirtz at suscom.net Wed Jun 15 20:42:19 2005 From: egewirtz at suscom.net (Eric Gewirtz) Date: Wed, 15 Jun 2005 20:42:19 -0400 Subject: [nycphp-talk] Timing out in php batch In-Reply-To: <42B080F5.8020203@phpwerx.net> Message-ID: <003a01c5720c$446aef80$6501a8c0@Libby> See below >-----Original Message----- >From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On >Behalf Of Dan Cech >Sent: Wednesday, June 15, 2005 2:27 PM >To: NYPHP Talk >Subject: Re: [nycphp-talk] Timing out in php batch > >Eric Gewirtz wrote: >> Hi Dan - >> >> Can you point me to what you were reading? > >I was reading http://php.net/set_time_limit, based on the error message >you are receiving. > >It does appear that the time limit should not be enforced for cli >scripts, so I guess you need to track down where the error message is >coming from. > >Does the main script call out to any other scripts or web pages running >php which could be timing out? [Eric Gewirtz] Not that I am aware of but it certainly does appear that this is happening - the entire script is written in php. The script is called from a shell script but that's it. The script is kind of like JCL - it's running other php scripts, executing sql statements against mySQL and invoking mySQL msqlimport - I'm thinking that maybe the sever conection to MySQL is timing out > >Dan >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org From adam at trachtenberg.com Thu Jun 16 00:40:34 2005 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Thu, 16 Jun 2005 00:40:34 -0400 (EDT) Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: References: Message-ID: On Wed, 15 Jun 2005, Daniel Krook wrote: > * The veteran PHP 4/5 programmer looking to advance his/her > understanding of UML, OOP, patterns & methodologies. Head First Design Patterns. The examples are in Java, but there's pretty much no difference between that and PHP in this context. http://www.amazon.com/exec/obidos/tg/detail/-/0596007124 This is an excellent book. -adam -- adam at trachtenberg.com | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From mitch.pirtle at gmail.com Thu Jun 16 09:16:02 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Thu, 16 Jun 2005 09:16:02 -0400 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: References: Message-ID: <330532b60506160616434390f4@mail.gmail.com> On 6/16/05, Adam Maccabee Trachtenberg wrote: > On Wed, 15 Jun 2005, Daniel Krook wrote: > > > * The veteran PHP 4/5 programmer looking to advance his/her > > understanding of UML, OOP, patterns & methodologies. > > Head First Design Patterns. The examples are in Java, but there's > pretty much no difference between that and PHP in this context. The PHP Anthology Series by Harry Fuecks (Sitepoint) is my fave PHP book(s), it is readable even away from the computer. Nice coverage and introduction to OO and patterns, too. Gets my highest recommendation. -- Mitch From danielc at analysisandsolutions.com Thu Jun 16 09:23:25 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 16 Jun 2005 09:23:25 -0400 Subject: [nycphp-talk] Timing out in php batch In-Reply-To: <003a01c5720c$446aef80$6501a8c0@Libby> References: <42B080F5.8020203@phpwerx.net> <003a01c5720c$446aef80$6501a8c0@Libby> Message-ID: <20050616132325.GA6488@panix.com> Hey Eric: On Wed, Jun 15, 2005 at 08:42:19PM -0400, Eric Gewirtz wrote: > and invoking mySQL msqlimport - I'm thinking that maybe the sever > conection to MySQL is timing out The error message you saw was definitely from PHP's max execution time. Are you sure you're running the script against the CLI build? You may be hitting the CGI build. I saw you tested this with php -v, but put in an echo php_sapi_name() . "\n"; exit; at the top of your prodscript.php and see what it says. Make sure you invoke this test of prodscript.php the same exact way you did when the timeout errors came up. Out of curiosity, when you got the timeout error, how were you invoking prodscript.php? Sometimes, different means of invocation result in a different version of PHP being used. Regardless, throwing in a call to set_time_limit(0) at the top of the script should solve the problem. --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 pete at slingo.com Thu Jun 16 09:47:11 2005 From: pete at slingo.com (Pete Czech - Slingo, Inc.) Date: Thu, 16 Jun 2005 09:47:11 -0400 Subject: [nycphp-talk] Need Urgent Assistance! Message-ID: <20050616134710.6FA98A8798@virtu.nyphp.org> Hello! We had a turnover here and need immediate assistance from a system administrator familiar with BSD/Linux, Load balancing, DNS, and other aspects of system administration. If someone is able to fill in our gaps or even looking for full time work, get back to me immediately (like, this morning). We'd especially appreciate your ability to get to our Englewood Cliffs, NJ office. Cheers, Pete Czech Director of Technology Slingo, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From egewirtz at suscom.net Thu Jun 16 09:55:21 2005 From: egewirtz at suscom.net (Eric Gewirtz) Date: Thu, 16 Jun 2005 09:55:21 -0400 Subject: [nycphp-talk] Timing out in php batch In-Reply-To: <20050616132325.GA6488@panix.com> Message-ID: <002d01c5727b$0c66ba50$6501a8c0@Libby> Dan, Thanks for the info, we will try your suggestions and see what we get - Regarding, the questions as to how we are invoking prodscript.php, we are executing a shell script via cron on a nightly basis. The contents of the shell script looks like this; ################################### #!/bin/sh #Load Daily #Modified for Unix #Modified by: Maggie Cassidy #Last Modified: 12/18/2004 ################################### php /home/xxxxxx/public_html/ffffff/p2/prod/prodscript.php arg1 arg2 arg3 arg4 > /home/xxxxxx/batch/yyyyyyy/p2/prod/logs/ProdScriptLoad.log Eric Gewirtz SolutionOne Phone - 845-729-7800 Fax - 845-279-5502 egewirtz at rcn.com >-----Original Message----- >From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On >Behalf Of Daniel Convissor >Sent: Thursday, June 16, 2005 8:23 AM >To: NYPHP Talk >Subject: Re: [nycphp-talk] Timing out in php batch > >Hey Eric: > >On Wed, Jun 15, 2005 at 08:42:19PM -0400, Eric Gewirtz wrote: > >> and invoking mySQL msqlimport - I'm thinking that maybe the sever >> conection to MySQL is timing out > >The error message you saw was definitely from PHP's max execution time. >Are you sure you're running the script against the CLI build? You may be >hitting the CGI build. I saw you tested this with php -v, but put in an > > echo php_sapi_name() . "\n"; > exit; > >at the top of your prodscript.php and see what it says. Make sure you >invoke this test of prodscript.php the same exact way you did when the >timeout errors came up. Out of curiosity, when you got the timeout error, >how were you invoking prodscript.php? Sometimes, different means of >invocation result in a different version of PHP being used. > >Regardless, throwing in a call to set_time_limit(0) at the top of the >script should solve the problem. > >--Dan > >-- > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > data intensive web and database programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org From egewirtz at suscom.net Thu Jun 16 10:05:07 2005 From: egewirtz at suscom.net (Eric Gewirtz) Date: Thu, 16 Jun 2005 10:05:07 -0400 Subject: [nycphp-talk] Timing out in php batch In-Reply-To: <20050616132325.GA6488@panix.com> Message-ID: <002e01c5727c$66efcd30$6501a8c0@Libby> Sorry for the second post - should have waited for the results and sent everything all at once - We put 'echo php_sapi_name() . "\n";' at the top of the prodscript.php script and it returned 'cli' We will put the set_time_limit(0) in and see if this helps - unfortunately the time out issues occurs randomly and of course when we try to force it to happen by intentionally running a lot of processes at one time, it does not fail :-( Thanks again Eric Gewirtz SolutionOne Phone - 845-729-7800 Fax - 845-279-5502 egewirtz at rcn.com >-----Original Message----- >From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On >Behalf Of Daniel Convissor >Sent: Thursday, June 16, 2005 8:23 AM >To: NYPHP Talk >Subject: Re: [nycphp-talk] Timing out in php batch > >Hey Eric: > >On Wed, Jun 15, 2005 at 08:42:19PM -0400, Eric Gewirtz wrote: > >> and invoking mySQL msqlimport - I'm thinking that maybe the sever >> conection to MySQL is timing out > >The error message you saw was definitely from PHP's max execution time. >Are you sure you're running the script against the CLI build? You may be >hitting the CGI build. I saw you tested this with php -v, but put in an > > echo php_sapi_name() . "\n"; > exit; > >at the top of your prodscript.php and see what it says. Make sure you >invoke this test of prodscript.php the same exact way you did when the >timeout errors came up. Out of curiosity, when you got the timeout error, >how were you invoking prodscript.php? Sometimes, different means of >invocation result in a different version of PHP being used. > >Regardless, throwing in a call to set_time_limit(0) at the top of the >script should solve the problem. > >--Dan > >-- > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > data intensive web and database programming > http://www.AnalysisAndSolutions.com/ > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org From dyun at blue-iceberg.com Thu Jun 16 10:08:08 2005 From: dyun at blue-iceberg.com (David Yun) Date: Thu, 16 Jun 2005 10:08:08 -0400 Subject: [nycphp-talk] [JOB] PHP Freelance Job (1 month on site) In-Reply-To: <428D4513.7070509@mikebrittain.com> Message-ID: Blue Iceberg is looking for a PHP/MySQL web application developer to work on site with us on a 1 month project. The project is freelance but hopefully will lead to a longer term relationship. If you are interested, please send your resum? and rate to ntjob at blue-iceberg.com Thanks. ............................................................... David Yun, Production Manager Blue Iceberg LLC Interactive Strategy | Website Development | Business Solutions http://www.blue-iceberg.com Tel: 212.337.9920 Fax: 253.295.9296 From lists at zaunere.com Thu Jun 16 10:28:22 2005 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 16 Jun 2005 10:28:22 -0400 Subject: [nycphp-talk] Job Postings on Talk Message-ID: <0MKyxe-1DivM02k0d-0003EI@mrelay.perfora.net> Folks, Please be sure that all job related postings occur on the NYPHP-Jobs list. http://lists.nyphp.org/mailman/listinfo/jobs Thanks all, --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From drydell at att.net Thu Jun 16 10:49:09 2005 From: drydell at att.net (drydell at att.net) Date: Thu, 16 Jun 2005 14:49:09 +0000 Subject: [nycphp-talk] Timing out in php batch Message-ID: <061620051449.3773.42B1916500014EC400000EBD216037622304040A0B979D0B@att.net> I've gotten some strange results invoking scripts from bash shells on some hosts, but wrapping the request with env always seems to fix it: env -i /path/to/php -q -f /path/to/script.php args > log -------------- Original message ---------------------- From: "Eric Gewirtz" > Dan, > > Thanks for the info, we will try your suggestions and see what we get - > > Regarding, the questions as to how we are invoking prodscript.php, we > are executing a shell script via cron on a nightly basis. The contents > of the shell script looks like this; > > ################################### > #!/bin/sh > #Load Daily > #Modified for Unix > #Modified by: Maggie Cassidy > #Last Modified: 12/18/2004 > ################################### > > php /home/xxxxxx/public_html/ffffff/p2/prod/prodscript.php arg1 arg2 > arg3 arg4 > /home/xxxxxx/batch/yyyyyyy/p2/prod/logs/ProdScriptLoad.log > > > > Eric Gewirtz > SolutionOne > Phone - 845-729-7800 > Fax - 845-279-5502 > egewirtz at rcn.com > > > >-----Original Message----- > >From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On > >Behalf Of Daniel Convissor > >Sent: Thursday, June 16, 2005 8:23 AM > >To: NYPHP Talk > >Subject: Re: [nycphp-talk] Timing out in php batch > > > >Hey Eric: > > > >On Wed, Jun 15, 2005 at 08:42:19PM -0400, Eric Gewirtz wrote: > > > >> and invoking mySQL msqlimport - I'm thinking that maybe the sever > >> conection to MySQL is timing out > > > >The error message you saw was definitely from PHP's max execution time. > >Are you sure you're running the script against the CLI build? You may > be > >hitting the CGI build. I saw you tested this with php -v, but put in > an > > > > echo php_sapi_name() . "\n"; > > exit; > > > >at the top of your prodscript.php and see what it says. Make sure you > >invoke this test of prodscript.php the same exact way you did when the > >timeout errors came up. Out of curiosity, when you got the timeout > error, > >how were you invoking prodscript.php? Sometimes, different means of > >invocation result in a different version of PHP being used. > > > >Regardless, throwing in a call to set_time_limit(0) at the top of the > >script should solve the problem. > > > >--Dan > > > >-- > > T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y > > data intensive web and database programming > > http://www.AnalysisAndSolutions.com/ > > 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 > >_______________________________________________ > >New York PHP Talk Mailing List > >AMP Technology > >Supporting Apache, MySQL and PHP > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From corey at bmfenterprises.com Thu Jun 16 11:18:12 2005 From: corey at bmfenterprises.com (Corey Fogarty) Date: Thu, 16 Jun 2005 11:18:12 -0400 Subject: [nycphp-talk] PEAR::SOAP Google API Example Message-ID: This is the error we are getting when trying to get Geoff Peters Google API example to work... https://www.bmfenterprises.com/apiexample.php after you type something in the Search Query box and hit Submit. The code to the example is highlighted at the bottom of the page if that helps. > An error #SOAP-ENV:Client occurred! > Error: /search/beta2No Deserializer found to deserialize a > 'urn:GoogleSearch:ns4:key' using encoding style > 'http://schemas.xmlsoap.org/soap/encoding/'. > Attempt 0 failed. I am not sure if I have all the classes required or if my path is correct https://www.bmfenterprises.com/whatclasses.php is a get_declared_classes(). Below is a #pear config-show and a #pear list, not sure if any of this helps... I wish I knew at least what to show folks in order for them to get a grasp on my situation... bash-2.02# pear config-show Configuration: ============== PEAR executables directory bin_dir /usr/local/bin PEAR documentation directory doc_dir /usr/local/lib/php/doc PHP extension directory ext_dir /usr/local/lib/php/extensions/no-de bug-non-zts-20020429 PEAR directory php_dir /usr/local/lib/php PEAR Installer cache directory cache_dir /tmp/pear/cache PEAR data directory data_dir /usr/local/lib/php/data PHP CLI/CGI binary php_bin /usr/local/bin/php PEAR test directory test_dir /usr/local/lib/php/test Cache TimeToLive cache_ttl 3600 Preferred Package State preferred_state beta Unix file mask umask 22 Debug Log Level verbose 1 HTTP Proxy Server Address http_proxy PEAR server master_server pear.php.net PEAR password (for password maintainers) Signature Handling Program sig_bin /usr/local/bin/gpg Signature Key Directory sig_keydir /usr/local/etc/pearkeys Signature Key Id sig_keyid Package Signature Type sig_type gpg PEAR username (for username maintainers) bash-2.02# pear list Installed packages: =================== Package Version State Archive_Tar 1.1 stable Console_Getopt 1.0 stable DB 1.5.0RC2 stable HTTP 1.2.1 stable HTTP_Request 1.2.4 stable Mail 1.1.1 stable Mail_Mime 1.3.0 stable Net_DIME 0.3 beta Net_SMTP 1.2.3 stable Net_Socket 1.0.6 stable Net_URL 1.0.14 stable PEAR 1.3b3 beta SOAP 0.9.1 beta XML_Parser 1.0.1 stable XML_RPC 1.0.4 stable XML_Wddx 1.0.1 stable -------------- next part -------------- An HTML attachment was scrubbed... URL: From ray at lances.net Thu Jun 16 15:28:28 2005 From: ray at lances.net (Ray Lance) Date: Thu, 16 Jun 2005 15:28:28 -0400 Subject: [work] [nycphp-talk] Need Urgent Assistance! References: <20050616134710.6FA98A8798@virtu.nyphp.org> Message-ID: <040001c572a9$9da31f80$0600000a@rayl> I'm sure I could help you -- see my http://lances.net/resume.htm. Let me know, Best Regards, Ray Lance http://websaddress.com 212 255-3932 ----- Original Message ----- From: Pete Czech - Slingo, Inc. To: talk at lists.nyphp.org Cc: jobs at lists.nyphp.org Sent: Thursday, June 16, 2005 9:47 AM Subject: [work] [nycphp-talk] Need Urgent Assistance! Hello! We had a turnover here and need immediate assistance from a system administrator familiar with BSD/Linux, Load balancing, DNS, and other aspects of system administration. If someone is able to fill in our gaps or even looking for full time work, get back to me immediately (like, this morning). We'd especially appreciate your ability to get to our Englewood Cliffs, NJ office. Cheers, Pete Czech Director of Technology Slingo, Inc. ------------------------------------------------------------------------------ _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From luckysugarone at yahoo.com Fri Jun 17 01:26:10 2005 From: luckysugarone at yahoo.com (Denise Ohakpo) Date: Thu, 16 Jun 2005 22:26:10 -0700 (PDT) Subject: [nycphp-talk] Timing out in php batch In-Reply-To: <20050615163951.LTSJ1954.imta06a2.registeredsite.com@maggie> Message-ID: <20050617052610.95862.qmail@web90209.mail.scd.yahoo.com> Please do not send me any more emails. Thankyou Maggie Cassidy wrote: Isn't the set_time_limit/setting the max_execution_time irrelevant in batch mode/command line script? -Maggie -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Dan Cech Sent: Tuesday, June 14, 2005 3:57 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Timing out in php batch Eric, Try using http://php.net/set_time_limit at the top of the script to increase/remove the time limit. Dan Eric Gewirtz wrote: > We are having a time out issue running in php batch mode. It was my > understanding based on the php manual that the max_execution_time > parameter in php.ini is overridden by batch and set to unlimited, yet > our application is getting the following error. > > Fatal error: Maximum execution time of 30 seconds exceeded in > /home/abc/def_html/xxxxxxx/p2/prod/prodscript.php on line > 315 _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.7.1 - Release Date: 6/13/2005 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.7.3/15 - Release Date: 6/14/2005 _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From tgales at tgaconnect.com Fri Jun 17 08:44:45 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 17 Jun 2005 08:44:45 -0400 Subject: [nycphp-talk] Article about object overloading in PHP 5 Message-ID: <200506170844.45784.tgales@tgaconnect.com> I saw an article by Martin Jansen called 'Object Overloading in PHP 5' at: http://www.onlamp.com/pub/a/php/2005/06/16/overloading.html Thought it might be of some interest to readers of this list. -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From jeff.loiselle at gmail.com Fri Jun 17 11:01:10 2005 From: jeff.loiselle at gmail.com (Jeff Loiselle) Date: Fri, 17 Jun 2005 11:01:10 -0400 Subject: [nycphp-talk] [OT] OSCON 2005 Message-ID: <4b18871105061708011a7ba39d@mail.gmail.com> I just realized that O'Reilly gives user group discounts to OSCON. I was just wondering if NYPHP has been registered with them. ;-) Otherwise I might have to morph into a federal employee or full time student... --- Jeff Loiselle Web Developer, Musician, and Observer http://jeff.loiselles.com From krook at us.ibm.com Fri Jun 17 12:23:20 2005 From: krook at us.ibm.com (Daniel Krook) Date: Fri, 17 Jun 2005 12:23:20 -0400 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: Message-ID: > Following on the earlier book access discussions... > > What are the most valuable hard copy book resources that you would > recommend today if you needed to populate a shelf with, > say three, of the > best for the following "typical" NYPHPers? [...snip...] Adam, Chris & Mitch, Thanks for your suggestions, I'm surprised you didn't mention your own books in your individual replies, though I can attest to their usefulness for you :) Any recommendations from other folks? Particularly for this audience: > * The J2EE programmer who is migrating midsize Java > applications to PHP, > assuming the database is to remain DB2/Oracle etc. Daniel Krook, Advisory IT Specialist Application Development, Production Services - Tools, ibm.com Personal: http://info.krook.org/ BluePages: http://bluepages.redirect.webahead.ibm.com/ BlogPages: http://blogpages.redirect.webahead.ibm.com/ From codebowl at gmail.com Fri Jun 17 12:31:04 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 17 Jun 2005 12:31:04 -0400 Subject: [nycphp-talk] [ OT ] - Screen Recording Message-ID: <8d9a428005061709316b3e01d2@mail.gmail.com> Hey Guys, if you have ever seen any training video's where people have recorded thier screens such as thier actions then packed it to work with quicktime or something like that, anyone here know how this is done? I am sure they use more than just one application to do this but i am not sure what they use to capture thier screens like they do. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Fri Jun 17 12:34:05 2005 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 17 Jun 2005 12:34:05 -0400 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: Message-ID: <0MKyxe-1DjJnD3eTg-0007AD@mrelay.perfora.net> > Any recommendations from other folks? Particularly for this audience: > > > * The J2EE programmer who is migrating midsize Java > > applications to PHP, > > assuming the database is to remain DB2/Oracle etc. I think this is largely uncharted territory. In light of PHP 5, some Java folks would be willing to migrate, but that's only fairly recent. For those on the list with a Java background, this would probably be a good book to write, since I haven't seen anything like it. I do know of some cases where these types of migrations have happened, but it's largely experience that's already in house - frankly, good Java developers can pick up PHP 5 pretty quickly. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From yury at heavenspa.com Fri Jun 17 12:34:51 2005 From: yury at heavenspa.com (Yury :: heavenspa web services) Date: Fri, 17 Jun 2005 12:34:51 -0400 Subject: [nycphp-talk] [ OT ] - Screen Recording In-Reply-To: <8d9a428005061709316b3e01d2@mail.gmail.com> Message-ID: There are some flash applications that do this. http://www.swftools.com/tools-details.php?tool=1582389363 regards yury Capture (formerly Flashcast) is the premiere desktop screen capture tool. Capture will record all on-screen activity and compile as a Flash Movie (SWF), complete with mouse movements and clicks! Using Capture is simple. You can create a new project with ease and choose to screen-capture at fullscreen, custom size, or even select a specific application! Customize recording options and begin creating your screen captures and training material within seconds - All mouse movements and onscreen events are captured automatically! Key features: ? Capture clicks, mouse movement, windows, applications and more! ? Export to Macromedia Flash Format (SWF)! ? Add information layers of any shape, size and color! ? Add narration, music and SFX to your Capture? Movies! ? Export to 256 Colors, true 24bit Color or even Mono! ? Integrated with Zinc v2 for expandability! ? Convert your Microsoft PowerPoint Files to Flash Movies! ? Export to SWF, HTML or even JPEG Image Sequence! -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]On Behalf Of Joseph Crawford Sent: Friday, June 17, 2005 11:31 AM To: NYPHP Talk Subject: [nycphp-talk] [ OT ] - Screen Recording Hey Guys, if you have ever seen any training video's where people have recorded thier screens such as thier actions then packed it to work with quicktime or something like that, anyone here know how this is done? I am sure they use more than just one application to do this but i am not sure what they use to capture thier screens like they do. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Fri Jun 17 12:38:48 2005 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 17 Jun 2005 12:38:48 -0400 Subject: [nycphp-talk] [OT] OSCON 2005 In-Reply-To: <4b18871105061708011a7ba39d@mail.gmail.com> Message-ID: <0MKyxe-1DjJrm2IzL-0007Au@mrelay.perfora.net> > I just realized that O'Reilly gives user group discounts to OSCON. I > was just wondering if NYPHP has been registered with them. ;-) > Otherwise I might have to morph into a federal employee or full time > student... Yeah, we're registered with them, although I'm trying to remember who the point person is on that. If someone remembers, please let yourself be heard :) H From codebowl at gmail.com Fri Jun 17 12:40:31 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 17 Jun 2005 12:40:31 -0400 Subject: [nycphp-talk] [ OT ] - Screen Recording In-Reply-To: References: <8d9a428005061709316b3e01d2@mail.gmail.com> Message-ID: <8d9a428005061709401b495732@mail.gmail.com> actually what i was looking for was something that would capture to say AVI and then allow me to convert it over to DivX or DVD versions. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Fri Jun 17 12:40:54 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 17 Jun 2005 12:40:54 -0400 Subject: [nycphp-talk] [ OT ] - Screen Recording In-Reply-To: <8d9a428005061709401b495732@mail.gmail.com> References: <8d9a428005061709316b3e01d2@mail.gmail.com> <8d9a428005061709401b495732@mail.gmail.com> Message-ID: <8d9a428005061709402aafc7d@mail.gmail.com> AVI was just a sample could be anything Mpg etc.. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From aaron at aarond.com Fri Jun 17 12:39:59 2005 From: aaron at aarond.com (aaron) Date: Fri, 17 Jun 2005 12:39:59 -0400 Subject: [nycphp-talk] [ OT ] - Screen Recording In-Reply-To: <8d9a428005061709316b3e01d2@mail.gmail.com> References: <8d9a428005061709316b3e01d2@mail.gmail.com> Message-ID: <42B2FCDF.8000107@aarond.com> Try http://www.wisdom-soft.com/products/autoscreenrecorder.htm A co-worker said the trial is fine. Joseph Crawford wrote: > Hey Guys, > > if you have ever seen any training video's where people have recorded > thier screens such as thier actions then packed it to work with > quicktime or something like that, anyone here know how this is done? I > am sure they use more than just one application to do this but i am > not sure what they use to capture thier screens like they do. > > > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com > >------------------------------------------------------------------------ > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Fri Jun 17 12:44:19 2005 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 17 Jun 2005 12:44:19 -0400 Subject: [nycphp-talk] Google Search and Ranking Patents Message-ID: <0MKyxe-1DjJx711Sx-0007TQ@mrelay.perfora.net> Google's Recent Patent: http://tinyurl.com/cvmq5 http://www.buzzle.com/editorials/6-10-2005-71368.asp --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From jeff.loiselle at gmail.com Fri Jun 17 12:56:46 2005 From: jeff.loiselle at gmail.com (Jeff Loiselle) Date: Fri, 17 Jun 2005 12:56:46 -0400 Subject: [nycphp-talk] [OT] OSCON 2005 In-Reply-To: <0MKyxe-1DjJrm2IzL-0007Au@mrelay.perfora.net> References: <4b18871105061708011a7ba39d@mail.gmail.com> <0MKyxe-1DjJrm2IzL-0007Au@mrelay.perfora.net> Message-ID: <4b188711050617095626a4b225@mail.gmail.com> What's the discount rate? On 6/17/05, Hans Zaunere wrote: > > > I just realized that O'Reilly gives user group discounts to OSCON. I > > was just wondering if NYPHP has been registered with them. ;-) > > Otherwise I might have to morph into a federal employee or full time > > student... > > Yeah, we're registered with them, although I'm trying to remember who the point person is on that. If someone remembers, please let yourself be heard :) > > H > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- --- Jeff Loiselle Web Developer, Musician, and Observer http://jeff.loiselles.com From jeff.knight at gmail.com Fri Jun 17 13:29:18 2005 From: jeff.knight at gmail.com (Jeff Knight) Date: Fri, 17 Jun 2005 13:29:18 -0400 Subject: [nycphp-talk] [OT] OSCON 2005 In-Reply-To: <4b188711050617095626a4b225@mail.gmail.com> References: <4b18871105061708011a7ba39d@mail.gmail.com> <0MKyxe-1DjJrm2IzL-0007Au@mrelay.perfora.net> <4b188711050617095626a4b225@mail.gmail.com> Message-ID: <2ca9ba91050617102919333862@mail.gmail.com> search the list... they haven't changed their discount code in years... On 6/17/05, Jeff Loiselle wrote: > What's the discount rate? > > On 6/17/05, Hans Zaunere wrote: > > > > > I just realized that O'Reilly gives user group discounts to OSCON. I > > > was just wondering if NYPHP has been registered with them. ;-) > > > Otherwise I might have to morph into a federal employee or full time > > > student... > > > > Yeah, we're registered with them, although I'm trying to remember who the point person is on that. If someone remembers, please let yourself be heard :) > > > > H > > > > > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > > > -- > --- > Jeff Loiselle > Web Developer, Musician, and Observer > http://jeff.loiselles.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From damovand at yahoo.com Fri Jun 17 15:20:36 2005 From: damovand at yahoo.com (Leila Lappin) Date: Fri, 17 Jun 2005 12:20:36 -0700 (PDT) Subject: [nycphp-talk] [ OT ] - Screen Recording In-Reply-To: <8d9a428005061709316b3e01d2@mail.gmail.com> Message-ID: <20050617192036.18231.qmail@web30802.mail.mud.yahoo.com> Flash MX professional provides some components for doing just that. If you check out this link you may find what you?re looking for, this is a tutorial titled ?Flash MX 2004 Professional video? posted on ultrashock.com, but you need to ActionScript 2 and generally Flash development environment and components. http://forums.ultrashock.com/ff.htm?http://forums.ultrashock.com/forums/index.php?s= --- Joseph Crawford wrote: > Hey Guys, > > if you have ever seen any training video's where > people have recorded thier > screens such as thier actions then packed it to work > with quicktime or > something like that, anyone here know how this is > done? I am sure they use > more than just one application to do this but i am > not sure what they use to > capture thier screens like they do. > > > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com From luckysugarone at yahoo.com Fri Jun 17 16:28:26 2005 From: luckysugarone at yahoo.com (Denise Ohakpo) Date: Fri, 17 Jun 2005 13:28:26 -0700 (PDT) Subject: [nycphp-talk] [ OT ] - Screen Recording In-Reply-To: <20050617192036.18231.qmail@web30802.mail.mud.yahoo.com> Message-ID: <20050617202826.4924.qmail@web90204.mail.scd.yahoo.com> PLEASE DON'T SEND ANYMORE EMAIL TO ME i DON'T KNOW HOW TO PUT IT ANY PLAINER. Leila Lappin wrote:Flash MX professional provides some components for doing just that. If you check out this link you may find what you?re looking for, this is a tutorial titled ?Flash MX 2004 Professional video? posted on ultrashock.com, but you need to ActionScript 2 and generally Flash development environment and components. http://forums.ultrashock.com/ff.htm?http://forums.ultrashock.com/forums/index.php?s= --- Joseph Crawford wrote: > Hey Guys, > > if you have ever seen any training video's where > people have recorded thier > screens such as thier actions then packed it to work > with quicktime or > something like that, anyone here know how this is > done? I am sure they use > more than just one application to do this but i am > not sure what they use to > capture thier screens like they do. > > > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Fri Jun 17 16:36:26 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 17 Jun 2005 16:36:26 -0400 Subject: [nycphp-talk] [ OT ] - Screen Recording In-Reply-To: <20050617202826.4924.qmail@web90204.mail.scd.yahoo.com> References: <20050617192036.18231.qmail@web30802.mail.mud.yahoo.com> <20050617202826.4924.qmail@web90204.mail.scd.yahoo.com> Message-ID: <8d9a428005061713366e3cee1a@mail.gmail.com> Denise, rather than getting hostile towards people why dont you visit www.nyphp.organd unsubscribe yourself from the list(s) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at matt-roberts.net Sat Jun 18 16:27:47 2005 From: matt at matt-roberts.net (Matt Roberts) Date: Sat, 18 Jun 2005 16:27:47 -0400 Subject: [nycphp-talk] RE: Screen recording In-Reply-To: <20050618160004.64A60A87E9@virtu.nyphp.org> Message-ID: <200506182027.j5IKRhuC026379@ns15.webhostsg.com> Two good screen recording applications: Camtasia: mutliple output options, including flash, quicktime and windows media. Also has "full frame" capture (true video card output capture, full motion video): http://www.techsmith.com/products/studio/default.asp Quaron Viewlet Builder: only flash output, only "keyframe" images, but works really well and is less expensive (slightly) than camtasia. http://www.qarbon.com/ I have used both extensively. Viewlet builder output is very lean and fast, but authoring can be kind of frustrating. Camtasia is good but does not optimize movie size like Viewlet can. -Matt Roberts From kigathi at gmail.com Sat Jun 18 23:35:37 2005 From: kigathi at gmail.com (Eric K.) Date: Sat, 18 Jun 2005 23:35:37 -0400 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: References: Message-ID: > * The traditional C/C++ programmer beginning to develop web applications > (and possibly begin work with relational databases). > > * The second-year university computer science student looking to develop a > web application foundation (HTTP, SQL, HTML). > > * The mid-career interface designer with strong XHTML, JavaScript, CSS and > a dab of ASP/JSP scripting? I'm surprised no one mentioned it, but I think Chris' HTTP Developer's Handbook is great for everyone but especialy for these three groups of developers. It really fills in a lot of gaps about the 'why' of PHP/HTTP development that a lot of 'how-to' books leave out and that a lot of us only find out after years of web dev. From john at coolmacgames.com Mon Jun 20 10:37:27 2005 From: john at coolmacgames.com (John Nunez) Date: Mon, 20 Jun 2005 10:37:27 -0400 Subject: [nycphp-talk] One Login for multiple sites Message-ID: We have a database where we store articles for a web site. We have begun a project to allow another site's users to access our articles. I thought that best and easiest method would be to have the user click on a link to our database site and that link passes and encrypted string that contains the user's information. Once our script receives the string it is de-crypted with a key and a session is started. The problem I get is that the blowfish encryption is giving a different result than the one that is used on the ASP.NET server. Plus the encrypted text contains many unprintable characters. How can I accomplish this so I can pass a value via a URL and it's compatible between different implementations of the encryption method. Thanks, John From chsnyder at gmail.com Mon Jun 20 10:41:24 2005 From: chsnyder at gmail.com (csnyder) Date: Mon, 20 Jun 2005 10:41:24 -0400 Subject: [nycphp-talk] One Login for multiple sites In-Reply-To: References: Message-ID: On 6/20/05, John Nunez wrote: > The problem I get is that the blowfish encryption is > giving a different result than the one that is used on the ASP.NET > server. How are you performing the encryption? > Plus the encrypted text contains many unprintable > characters. Use base64_encode() to translate the binary into printable ascii. This increases the length of the string by about 30%. It will still need to be urlencoded as well, but will be much shorter than urlencoding the binary string. From john at coolmacgames.com Mon Jun 20 10:53:38 2005 From: john at coolmacgames.com (John Nunez) Date: Mon, 20 Jun 2005 10:53:38 -0400 Subject: [nycphp-talk] One Login for multiple sites In-Reply-To: References: Message-ID: I am using PEAR:Crypt:Blowfish to encrypt the string. I will test the base64 encoding to see if that is the error. What is MIME64? The reason I ask is that the ASP COM object has the option to encode into MIME64. Thanks, John Nunez On Jun 20, 2005, at 10:41 AM, csnyder wrote: > On 6/20/05, John Nunez wrote: > >> The problem I get is that the blowfish encryption is >> giving a different result than the one that is used on the ASP.NET >> server. >> > > How are you performing the encryption? > > >> Plus the encrypted text contains many unprintable >> characters. >> > > Use base64_encode() to translate the binary into printable ascii. This > increases the length of the string by about 30%. It will still need to > be urlencoded as well, but will be much shorter than urlencoding the > binary string. > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From codebowl at gmail.com Mon Jun 20 18:22:12 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 20 Jun 2005 18:22:12 -0400 Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book Message-ID: <8d9a428005062015221e08a5a8@mail.gmail.com> Hey everyone, what's the best book on the market for a beginner looking to learn regex to use with PHP ??? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From adam at trachtenberg.com Mon Jun 20 18:27:01 2005 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Mon, 20 Jun 2005 18:27:01 -0400 (EDT) Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book In-Reply-To: <8d9a428005062015221e08a5a8@mail.gmail.com> References: <8d9a428005062015221e08a5a8@mail.gmail.com> Message-ID: On Mon, 20 Jun 2005, Joseph Crawford wrote: > what's the best book on the market for a beginner looking to learn regex to > use with PHP ??? "Mastering regular expressions" by Jeffrey Fridel is the best book on the subject that I know of, but it may be a little too advanced depending on your CS background. -adam -- adam at trachtenberg.com | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! -------------- next part -------------- _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From nyphp at enobrev.com Mon Jun 20 18:30:59 2005 From: nyphp at enobrev.com (Mark Armendariz) Date: Mon, 20 Jun 2005 15:30:59 -0700 Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book In-Reply-To: <8d9a428005062015221e08a5a8@mail.gmail.com> Message-ID: <20050620223058.178D7A8658@virtu.nyphp.org> I found Mastering Regular Expressions by Jeffrey E. F. Friedl (http://www.oreilly.com/catalog/regex/index.html) to be an incredible resource. I haven't looked at it in some time (it's in NY and I haven't been for a couple months), so I'm not sure how good it is for beginners, but I do remember learning quite a bit from it and referring to it often. Mark _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: Monday, June 20, 2005 3:22 PM To: NYPHP Talk Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book Hey everyone, what's the best book on the market for a beginner looking to learn regex to use with PHP ??? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -- No virus found in this incoming message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.7.8/22 - Release Date: 6/17/2005 -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Mon Jun 20 19:30:24 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 20 Jun 2005 19:30:24 -0400 Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book In-Reply-To: <20050620223058.178D7A8658@virtu.nyphp.org> References: <8d9a428005062015221e08a5a8@mail.gmail.com> <20050620223058.178D7A8658@virtu.nyphp.org> Message-ID: <8d9a4280050620163022133e9a@mail.gmail.com> what do you mean CS background? what's CS? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Consult at CovenantEDesign.com Mon Jun 20 19:36:11 2005 From: Consult at CovenantEDesign.com (Edward) Date: Mon, 20 Jun 2005 19:36:11 -0400 Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book References: <8d9a428005062015221e08a5a8@mail.gmail.com><20050620223058.178D7A8658@virtu.nyphp.org> <8d9a4280050620163022133e9a@mail.gmail.com> Message-ID: <004901c575f0$d7ea8940$12896e41@ced> LOL Yeah that book may be beyond you. I recommend: http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=523 http://www.bookpool.com/sm/0764547186 Then you can get on into Fridel's work. -Edward Prevost- Applications Specialist Albany Medical College ----- Original Message ----- From: Joseph Crawford To: NYPHP Talk Sent: Monday, June 20, 2005 7:30 PM Subject: Re: [nycphp-talk] [ OT ] - Best Beginners Regex Book what do you mean CS background? what's CS? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com ------------------------------------------------------------------------------ _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Mon Jun 20 19:37:15 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 20 Jun 2005 19:37:15 -0400 Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book In-Reply-To: <004901c575f0$d7ea8940$12896e41@ced> References: <8d9a428005062015221e08a5a8@mail.gmail.com> <20050620223058.178D7A8658@virtu.nyphp.org> <8d9a4280050620163022133e9a@mail.gmail.com> <004901c575f0$d7ea8940$12896e41@ced> Message-ID: <8d9a428005062016376f4d8c98@mail.gmail.com> Javascript? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From j at nybg.org Mon Jun 20 20:01:19 2005 From: j at nybg.org (Freeman, Joshua) Date: Mon, 20 Jun 2005 20:01:19 -0400 Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book Message-ID: <319FD9EAB7A43E43895ACA5AA1F81E05029102EB@xmail.nybg.org> CS == Computer science Joshua S. Freeman Director, Information Technology, NYBG v: 718 817 8937 m: 347 392 2560 jfreeman at nybg dot org -----Original Message----- From: talk-bounces at lists.nyphp.org on behalf of Joseph Crawford Sent: Mon 6/20/2005 7:30 PM To: NYPHP Talk Subject: Re: [nycphp-talk] [ OT ] - Best Beginners Regex Book what do you mean CS background? what's CS? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 2624 bytes Desc: not available URL: From codebowl at gmail.com Mon Jun 20 22:05:20 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 20 Jun 2005 22:05:20 -0400 Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book In-Reply-To: <319FD9EAB7A43E43895ACA5AA1F81E05029102EB@xmail.nybg.org> References: <319FD9EAB7A43E43895ACA5AA1F81E05029102EB@xmail.nybg.org> Message-ID: <8d9a428005062019053fe96754@mail.gmail.com> i wish i had CS experience you think i can afford college lol i wish ;) someone here sponsor me for CS and iw ill get straight A's ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From corey at bmfenterprises.com Mon Jun 20 23:08:28 2005 From: corey at bmfenterprises.com (Corey Fogarty) Date: Mon, 20 Jun 2005 23:08:28 -0400 Subject: [nycphp-talk] PEAR::SOAP to .NET empty strings Message-ID: We progressed a little and ran into a new problem... Wondered if anyone has ever experienced an issue where the soapclient $params array was sending empty strings. https://www.bmfenterprises.com/buildurl.php is the soapclient to http://www.optimalblue.com/enginews/utility.asmx?WSDL according to the folks over at Optimal Blue, I am getting to the service, calling the correct function, sending the correct variable names, but the Username and Password fields are coming over as empty strings according to their logs... With great appreciation! Corey -------------- next part -------------- An HTML attachment was scrubbed... URL: From dwclifton at gmail.com Mon Jun 20 23:14:49 2005 From: dwclifton at gmail.com (Douglas Clifton) Date: Mon, 20 Jun 2005 23:14:49 -0400 Subject: [nycphp-talk] Re: [ OT ] - Best Beginners Regex Book In-Reply-To: <20050621020528.21E3AA87CF@virtu.nyphp.org> References: <20050621020528.21E3AA87CF@virtu.nyphp.org> Message-ID: <7d6cdcb050620201423765411@mail.gmail.com> > From: Joseph Crawford > To: NYPHP Talk > Date: Mon, 20 Jun 2005 18:22:12 -0400 > Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book > Hey everyone, > > what's the best book on the market for a beginner looking to learn regex to > use with PHP ??? Since the Perl regular expression library functions are really the preferred method of using them in PHP, and because Larry, Tom and Jon do such an outstanding job of explaining even complex topics, I would recommend chapter 5 of Programming Perl, 3rd edition: Pattern Matching You can get a 14 day trial subscription to: http://safari.oreilly.com/ and access the book online if you don't feel like purchasing the entire thing. CS = Computer Science Doug -- Douglas Clifton dwclifton at gmail.com http://loadaveragezero.com/ http://loadaveragezero.com/drx/rss/recent From jay_nyphp at fastmail.fm Mon Jun 20 23:20:07 2005 From: jay_nyphp at fastmail.fm (Jayesh Sheth) Date: Mon, 20 Jun 2005 23:20:07 -0400 Subject: [nycphp-talk] How HTTP connection life relates to PHP script life Message-ID: <1119324008.13527.236803548@webmail.messagingengine.com> Hello all, I am sorry if this message went through twice. The first time I stupidly posted it from the wrong email address (that was not subscribed to this list). I have a rather interesting and multi-faceted question, but since it's nearing my bed-time, I will try to type a few coherent lines before I doze off at the keyboard. Here's the deal: Suppose you have a PHP application, which is running in the traditional PHP way: 1) A user visits http://localhost/mailings/send_newsletter.php 2) The user selects a list, pastes in a letter, and pressed 'Submit' 3) The browser open an HTTP connection, and Apache processes the request. 4) Apache passes the script to the PHP 4 module (not to a PHP 4 CGI binary) 5) PHP looks up all the addresses in a MySQL table for the chosen list, loops through them, sends an email to each person on the list. After each message is sent, a confirmation message is echoed. Now for the questions: a) If a the user hits the stop button or navigates to another page, will Apache realize that the HTTP connection has been closed and thus terminate the script? If not, will it keep running, and if so for how long? b) I know this is not the best way to do it. What are your opinions on the following method: the PHP script should invoke a command line (CLI) script that runs as a separate process through the PHP CLI binary. That process writes how many emails it has sent to a MySQL table or to a file. The user's page simply META-refreshes, polls the MySQL table or log, and says 'x messages sent, y to go'. c) Are there any things that I am missing here? Thanks in advance. Best regards, - Jay From matt at jobsforge.com Mon Jun 20 23:32:27 2005 From: matt at jobsforge.com (Matthew Terenzio) Date: Mon, 20 Jun 2005 23:32:27 -0400 Subject: [nycphp-talk] urls to links function Message-ID: <5ee773b34d7f6524ec55042c11bbb767@jobsforge.com> Anyone have a handy script around to convert all urls and emails to links (if they aren't already) in a body of text. Thanks, Matt From 1j0lkq002 at sneakemail.com Mon Jun 20 23:34:22 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 20 Jun 2005 23:34:22 -0400 Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book In-Reply-To: <8d9a428005062015221e08a5a8@mail.gmail.com> References: <8d9a428005062015221e08a5a8@mail.gmail.com> Message-ID: <5573-33613@sneakemail.com> Joseph Crawford codebowl-at-gmail.com |nyphp dev/internal group use| wrote: > Hey everyone, > > what's the best book on the market for a beginner looking to learn > regex to use with PHP ??? I agree that "Mastering" is the definitive resource, but it is written by someone who is really a serious regex optimizer. Whenever I need to know why my own regular expressions that seems to work well actually sucks, I can count on that book to highlight it for me. It is really quite hard to imagine all of the special cases that are missed by regular expressions. For a PHP programmer wanting to learn regex, I would suggest first challenging every apparent need for regex. Plenty of times the regex solution is sub-optimal compared to a PHP native solution, and with so many native functions available in PHP these days there is less and less need for loading the regex engine. Sure there are plenty of times regex is the right solution -- but shouldn't a good php programmer know PHP well enough to do make that call only when necessary? There are arguments in favor of a standardized notation for "regular sets" (i.e. regex) and of course it is handy to utilize one knowledge base for pattern matching with grep and vim/ex and perl as well as PHP, but if it is pattern search/match functionality that is needed in PHP code I think mastery of the PHP natives will get you over most hurdles. Maybe you'll have more readable code with fewer missed cases, and less dependence on the regex engine. -=john andrews From mitch.pirtle at gmail.com Tue Jun 21 00:09:05 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Tue, 21 Jun 2005 00:09:05 -0400 Subject: [nycphp-talk] urls to links function In-Reply-To: <5ee773b34d7f6524ec55042c11bbb767@jobsforge.com> References: <5ee773b34d7f6524ec55042c11bbb767@jobsforge.com> Message-ID: <330532b6050620210918fe8050@mail.gmail.com> In the Mambo world I use a mambot called MosTextile: http://www.jamboworks.com/content/view/18/40/ ...which parses plain text and creates HTML output. The mambot is really a simple wrapper for Textile, which is where the real functionality resides. http://textism.com/tools/textile/ I will never use the WYSIWYG demon again!!! Not sure if this fits your needs or is overkill, but you may find it interesting nevertheless ;-) -- Mitch On 6/20/05, Matthew Terenzio wrote: > > Anyone have a handy script around to convert all urls and emails to > links (if they aren't already) in a body of text. > > Thanks, > > Matt > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From mitch.pirtle at gmail.com Tue Jun 21 00:12:49 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Tue, 21 Jun 2005 00:12:49 -0400 Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book In-Reply-To: <5573-33613@sneakemail.com> References: <8d9a428005062015221e08a5a8@mail.gmail.com> <5573-33613@sneakemail.com> Message-ID: <330532b6050620211225bc481b@mail.gmail.com> On 6/20/05, inforequest <1j0lkq002 at sneakemail.com> wrote: > > For a PHP programmer wanting to learn regex, I would suggest first > challenging every apparent need for regex. Plenty of times the regex > solution is sub-optimal compared to a PHP native solution, and with so > many native functions available in PHP these days there is less and less > need for loading the regex engine. Sure there are plenty of times regex > is the right solution -- but shouldn't a good php programmer know PHP > well enough to do make that call only when necessary? I'll second that one. The "Mastering" book is the biggest and mostest-detailedest resource, but you should approach regex as a sort of last resort. I often spend countless hours perfecting regex, only to have a comrade humiliate me in irc by mentioning the native PHP function that does the exact same thing. -- Mitch From arzala at gmail.com Tue Jun 21 00:49:44 2005 From: arzala at gmail.com (Anirudh Zala (Gmail)) Date: Tue, 21 Jun 2005 10:19:44 +0530 Subject: [nycphp-talk] How HTTP connection life relates to PHP script life References: <1119324008.13527.236803548@webmail.messagingengine.com> Message-ID: <012401c5761c$a7b8b8b0$0164a8c0@aum1> Hi J, A: Once you hit submit button in any page, request is immediately sent to Server and then Php script is executed even if you hit stop button and navigate through other pages or do other stuffs, and since you are not on that page you will not get any response sent back that script to your once it's task is finished. B: You are right sending any kind of mails more than few hundred is never a good practice to follow, because it is almost a back end task to be performed by any script hence keeping page open or increasing server time out until script sends all mails is not good option at all. So CLI script is best option since it has not any timeout that happens while running script through Apache and it lasts as long as you wish to perform background tasks. What you want to do is proper option according to my knowledge, another similar option is to divide this functionality in 2 parts: 1: determining how many mails are to be sent based upon selection criteria submitted by admin and determines how many mails are to be sent and display that number to user who is running this script (please note mails will not be sent at this moment) instantly and store that Sql criteria or part of script in DB. 2: and next day at early morning or at same day at midnight invoke another script by cron etc. which executes stored Sql criteria and actually sends emails. Thanks Anirudh Zala ----- Original Message ----- From: "Jayesh Sheth" To: Sent: Tuesday, June 21, 2005 8:50 AM Subject: [nycphp-talk] How HTTP connection life relates to PHP script life > Hello all, > > I am sorry if this message went through twice. The first time I stupidly > posted it from the wrong email address (that was not subscribed to this > list). > > I have a rather interesting and multi-faceted question, but since it's > nearing my bed-time, I will try to type a few coherent lines before I > doze off at the keyboard. > > Here's the deal: > Suppose you have a PHP application, which is running in the traditional > PHP way: > 1) A user visits http://localhost/mailings/send_newsletter.php > 2) The user selects a list, pastes in a letter, and pressed 'Submit' > 3) The browser open an HTTP connection, and Apache processes the > request. > 4) Apache passes the script to the PHP 4 module (not to a PHP 4 CGI > binary) > 5) PHP looks up all the addresses in a MySQL table for the chosen list, > loops through them, sends an email to each person on the list. After > each message is sent, a confirmation message is echoed. > > Now for the questions: > a) If a the user hits the stop button or navigates to another page, will > Apache realize that the HTTP connection has been closed and thus > terminate the script? If not, will it keep running, and if so for how > long? > b) I know this is not the best way to do it. What are your opinions on > the following method: the PHP script should invoke a command line (CLI) > script that runs as a separate process through the PHP CLI binary. That > process writes how many emails it has sent to a MySQL table or to a > file. The user's page simply META-refreshes, polls the MySQL table or > log, and says 'x messages sent, y to go'. > c) Are there any things that I am missing here? > > Thanks in advance. > > Best regards, > > - Jay > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From nyphp at n0p.net Tue Jun 21 09:04:03 2005 From: nyphp at n0p.net (Flavio daCosta) Date: Tue, 21 Jun 2005 09:04:03 -0400 Subject: [nycphp-talk] How HTTP connection life relates to PHP script life In-Reply-To: <1119324008.13527.236803548@webmail.messagingengine.com> References: <1119324008.13527.236803548@webmail.messagingengine.com> Message-ID: <42B81043.3080502@n0p.net> On 06/20/2005 11:20 PM, Jayesh Sheth wrote: > Now for the questions: > a) If a the user hits the stop button or navigates to another page, will > Apache realize that the HTTP connection has been closed and thus > terminate the script? If not, will it keep running, and if so for how > long? There is actually a php function to set this behavior: > b) I know this is not the best way to do it. What are your opinions on > the following method: the PHP script should invoke a command line (CLI) > script that runs as a separate process through the PHP CLI binary. That > process writes how many emails it has sent to a MySQL table or to a > file. The user's page simply META-refreshes, polls the MySQL table or > log, and says 'x messages sent, y to go'. Yes, I would agree with that idea. Due to the nature of the web, I always strive to return control to the user as quickly as possible, less _hourglass_ time. I like to do just as you are saying by decoupling the time consuming process. Over time I have used many techniques, invoking command in background, Cron jobs monitoring a DB queue table, even a locally running daemon for executing specific tasks once triggered. Also depending on the desired end user waiting activity, I have implemented a few different behaviors: - Message area embedded into the framework of the site, viewable while they click through other pages. (e.g. area saying 13 of 200 done.) - Reporting/Updates page where they can see the progress, and possibly be emailed when complete. - And recently, for short tasks, I have been returning the user to a wait page and then utilizing AJAX to update the users in realtime, very slick. YMMV Flavio From jay_nyphp at fastmail.fm Tue Jun 21 09:29:33 2005 From: jay_nyphp at fastmail.fm (Jayesh Sheth) Date: Tue, 21 Jun 2005 09:29:33 -0400 Subject: [nycphp-talk] How HTTP connection life relates to PHP script life Message-ID: <1119360573.30169.236834328@webmail.messagingengine.com> I should apologize once again to Hans Z for sending my reply from the wrong email add. Please delete the earlier reply form the non-sub'ed email address. Hello Anirudh and Flavio, thanks for your detailed and well-thought-out replies. I can say without exaggeration that the NYPHP talk list is one of the best technical resources for programmers in existence. I also thought of third, somewhat resouce-heavy option: Let the user have an AJAX application, whereby the browser downloads a list of addresses, and posts them (along with a message body) one by one to a another script without refreshing the page. That script sends one email at a time. This way the browser can stop and start email dispatches at any time. I am not so sure how well this will work out in practice though. Any thoughts? Best regards, - Jay From danielc at analysisandsolutions.com Tue Jun 21 12:06:02 2005 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 21 Jun 2005 12:06:02 -0400 Subject: [nycphp-talk] One Login for multiple sites In-Reply-To: References: Message-ID: <20050621160602.GA11183@panix.com> On Mon, Jun 20, 2005 at 10:37:27AM -0400, John Nunez wrote: > We have a database where we store articles for a web site. We have > begun a project to allow another site's users to access our articles. > I thought that best and easiest method would be to have the user > click on a link to our database site and that link passes and > encrypted string that contains the user's information. THE easiset solution for you is to grant the remote site read privileges on the database and let them sort out how to authenticate the users and display the information. Anyway, if you do want to pass encrypted information in the URI, here's how I do it: /** * encrypt a string using mcrypt, base64 and urlencode * * @link http://php.net/ref.mcrypt * @link http://ftp.emini.dk/pub/php/win32/mcrypt/ * @link http://mcrypt.sourceforge.net/ */ function encrypt_string($string) { return urlencode( base64_encode( mcrypt_encrypt( MCRYPT_BLOWFISH, 'Your Passphrase Goes Here', $string, MCRYPT_MODE_ECB, mcrypt_create_iv( mcrypt_get_iv_size( MCRYPT_BLOWFISH, MCRYPT_MODE_ECB ), MCRYPT_RAND ) ) ) ); } /** * decrypt a string using urldecode, base64 and mcrypt * * @link http://php.net/ref.mcrypt * @link http://ftp.emini.dk/pub/php/win32/mcrypt/ * @link http://mcrypt.sourceforge.net/ */ function decrypt_string($string) { return rtrim( mcrypt_decrypt( MCRYPT_BLOWFISH, 'Your Passphrase Goes Here', base64_decode(urldecode($string)), MCRYPT_MODE_ECB, mcrypt_create_iv( mcrypt_get_iv_size( MCRYPT_BLOWFISH, MCRYPT_MODE_ECB ), MCRYPT_RAND ) ) ); } --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 cfeldmann at gmail.com Tue Jun 21 13:48:07 2005 From: cfeldmann at gmail.com (chris feldmann) Date: Tue, 21 Jun 2005 13:48:07 -0400 Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book In-Reply-To: <330532b6050620211225bc481b@mail.gmail.com> References: <8d9a428005062015221e08a5a8@mail.gmail.com> <5573-33613@sneakemail.com> <330532b6050620211225bc481b@mail.gmail.com> Message-ID: <7e2c731f050621104862b7d8a3@mail.gmail.com> Hey, Joseph, You might find this little windows app useful: http://weitz.de/regex-coach/ It's an interactive regex parser that highlights the target dynamically as you construct your regex. It can be help illustrate the effects of each added operator. Also, here's a website with a rather nice overview, even if it is all an extended advertisement: http://regular-expressions.info/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From acas at sapo.pt Tue Jun 21 14:37:27 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Tue, 21 Jun 2005 19:37:27 +0100 Subject: [nycphp-talk] [ OT ] - Best Beginners Regex Book In-Reply-To: <7e2c731f050621104862b7d8a3@mail.gmail.com> Message-ID: <20050621183737.BC39BA85F3@virtu.nyphp.org> I didn't need no book, I used Regex Buddy : http://www.regexbuddy.com/ It helps you to visualy build your expressions and returns language specific (!) code... Hope you like it as much as I did. -- Alberto dos Santos email: acas at sapo.pt skype: fatflash Salvaguarda: Este email e seus anexos est?o protegidos de v?rus e programas maliciosos. Se notar algo de anormal por favor informe-me. Obrigado. Disclaimer: This email and it?s attachements are protected from v?rus and malicious software. If you notice something unusual please report. Thanks. _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of chris feldmann Sent: ter?a-feira, 21 de Junho de 2005 18:48 To: NYPHP Talk Subject: Re: [nycphp-talk] [ OT ] - Best Beginners Regex Book Hey, Joseph, You might find this little windows app useful: http://weitz.de/regex-coach/ It's an interactive regex parser that highlights the target dynamically as you construct your regex. It can be help illustrate the effects of each added operator. Also, here's a website with a rather nice overview, even if it is all an extended advertisement: http://regular-expressions.info/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmintz at davidmintz.org Tue Jun 21 15:58:58 2005 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 21 Jun 2005 15:58:58 -0400 (EDT) Subject: [nycphp-talk] urls to links function In-Reply-To: <5ee773b34d7f6524ec55042c11bbb767@jobsforge.com> References: <5ee773b34d7f6524ec55042c11bbb767@jobsforge.com> Message-ID: On Mon, 20 Jun 2005, Matthew Terenzio wrote: > > Anyone have a handy script around to convert all urls and emails to > links (if they aren't already) in a body of text. This is a quick & dirty example I slapped together for the PHP class I teach at SCPS/NYU. It's far from bulletproof, but... HTH http://davidmintz.org/php_course/examples/3/27.php --- David Mintz http://davidmintz.org/ From list at harveyk.com Tue Jun 21 16:23:46 2005 From: list at harveyk.com (harvey) Date: Tue, 21 Jun 2005 16:23:46 -0400 Subject: [nycphp-talk] Mysql Selects In-Reply-To: References: <5ee773b34d7f6524ec55042c11bbb767@jobsforge.com> Message-ID: <6.1.0.6.2.20050621160320.039f7258@mail.harveyk.com> Hello, I've got code that queries the 'zipcode' tables in a database and finds the zips that are within X miles of Y zip code. Works fine. get_zips_in_range($zipcode,$distance); if (empty($zips)) { echo "Error: " . $z->last_error; } else { foreach ($zips as $key => $value) { echo "$key is $value miles from $zipcode.
"; }; } ?> Now I want to query the 'organization' tables and return all the orgs that have one of the zips found above. But I'm not sure how to go about it. Something like the following (which I know is incorrect)? SELECT * FROM organizations WHERE org_zip IN ($zips) Thanks in advance for your help...I'm sure it's some very basic concept I'm missing. Harvey From acas at sapo.pt Tue Jun 21 16:38:09 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Tue, 21 Jun 2005 21:38:09 +0100 Subject: [nycphp-talk] Mysql Selects In-Reply-To: <6.1.0.6.2.20050621160320.039f7258@mail.harveyk.com> Message-ID: <20050621203813.EEB4EA85F3@virtu.nyphp.org> Almost there, the correct sintax is as follows: $query = "SELECT * FROM `organizations` WHERE `org_zip` = '$zips'"; Bye. -- Alberto dos Santos -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of harvey Sent: ter?a-feira, 21 de Junho de 2005 21:24 To: NYPHP Talk Subject: [nycphp-talk] Mysql Selects Hello, I've got code that queries the 'zipcode' tables in a database and finds the zips that are within X miles of Y zip code. Works fine. get_zips_in_range($zipcode,$distance); if (empty($zips)) { echo "Error: " . $z->last_error; } else { foreach ($zips as $key => $value) { echo "$key is $value miles from $zipcode.
"; }; } ?> Now I want to query the 'organization' tables and return all the orgs that have one of the zips found above. But I'm not sure how to go about it. Something like the following (which I know is incorrect)? SELECT * FROM organizations WHERE org_zip IN ($zips) Thanks in advance for your help...I'm sure it's some very basic concept I'm missing. Harvey _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From Cbielanski at inta.org Tue Jun 21 16:39:12 2005 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 21 Jun 2005 16:39:12 -0400 Subject: [nycphp-talk] Mysql Selects Message-ID: <328AA5243F20DA4DABDC022745BF3A074274D6@INTAMAIL2k3.ny.inta.org> AFAIK, in MySQL <=4.x you'll have to do a code-aggregation: [PHP] $result = array(); foreach ($zips as $key=>$val) { $result[] = $val; $rs = mysql_query("SELECT * FROM organizations WHERE org_zip = $val"); if(@mysql_hum_rows($rs) != 0) while($row = mysql_fetch_array($rs, MYSQL_ASSOC)) { $result[$val][] = $row; } } var_dump($result); [/PHP] In MySQL 5, you could do an IN SELECT or similar aggregation. Thanks, Chris Bielanski Web Programmer, International Trademark Association, 655 Third Avenue, 10th Floor New York, NY 10017-5617 USA +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: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of harvey > Sent: Tuesday, June 21, 2005 4:24 PM > To: NYPHP Talk > Subject: [nycphp-talk] Mysql Selects > > Hello, > > I've got code that queries the 'zipcode' tables in a database > and finds the zips that are within X miles of Y zip code. Works fine. > > $z = new zipcode_class; > $zips = $z->get_zips_in_range($zipcode,$distance); > if (empty($zips)) > { echo "Error: " . $z->last_error; } > else { foreach ($zips as $key => $value) { echo > "$key is $value miles from > $zipcode.
"; }; } ?> > > Now I want to query the 'organization' tables and return all > the orgs that have one of the zips found above. But I'm not > sure how to go about it. > Something like the following (which I know is incorrect)? > > SELECT * FROM organizations WHERE org_zip IN ($zips) > > Thanks in advance for your help...I'm sure it's some very > basic concept I'm missing. > > Harvey > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From drydell at att.net Tue Jun 21 16:48:13 2005 From: drydell at att.net (drydell at att.net) Date: Tue, 21 Jun 2005 20:48:13 +0000 Subject: [nycphp-talk] Mysql Selects Message-ID: <062120052048.4488.42B87D0B000EFBE200001188216028106004040A0B979D0B@att.net> IN is a standard construct in every DB engine I can think of... IN expects a comma delimited list: SELECT cols FROM table WHERE zip in (11111, 22222, 33333) with PHP, you can do something like: $zips = array(11111, 22222, 33333); $rs = mysql_query('SELECT cols FROM table WHERE zip in ('.join(',', $zips).')'); -------------- Original message from "Chris Bielanski" : -------------- > AFAIK, in MySQL <=4.x you'll have to do a code-aggregation: > [PHP] > $result = array(); > foreach ($zips as $key=>$val) { > $result[] = $val; > $rs = mysql_query("SELECT * FROM organizations WHERE org_zip = $val"); > if(@mysql_hum_rows($rs) != 0) > while($row = mysql_fetch_array($rs, MYSQL_ASSOC)) { > $result[$val][] = $row; > } > } > > var_dump($result); > [/PHP] > > In MySQL 5, you could do an IN SELECT or similar aggregation. > > Thanks, > Chris Bielanski > Web Programmer, > International Trademark Association, > 655 Third Avenue, 10th Floor > New York, NY 10017-5617 USA > +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: talk-bounces at lists.nyphp.org > > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of harvey > > Sent: Tuesday, June 21, 2005 4:24 PM > > To: NYPHP Talk > > Subject: [nycphp-talk] Mysql Selects > > > > Hello, > > > > I've got code that queries the 'zipcode' tables in a database > > and finds the zips that are within X miles of Y zip code. Works fine. > > > > > > $z = new zipcode_class; > > $zips = $z->get_zips_in_range($zipcode,$distance); > > if (empty($zips)) > > { echo "Error: " . $z->last_error; } > > else { foreach ($zips as $key => $value) { echo > > "$key is $value miles from > > $zipcode. "; }; } ?> > > > > Now I want to query the 'organization' tables and return all > > the orgs that have one of the zips found above. But I'm not > > sure how to go about it. > > Something like the following (which I know is incorrect)? > > > > SELECT * FROM organizations WHERE org_zip IN ($zips) > > > > Thanks in advance for your help...I'm sure it's some very > > basic concept I'm missing. > > > > Harvey > > > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From Cbielanski at inta.org Tue Jun 21 16:55:11 2005 From: Cbielanski at inta.org (Chris Bielanski) Date: Tue, 21 Jun 2005 16:55:11 -0400 Subject: [nycphp-talk] Mysql Selects Message-ID: <328AA5243F20DA4DABDC022745BF3A074274E4@INTAMAIL2k3.ny.inta.org> That's bloody brilliant, I'm embarrassed! :) Thanks, Chris Bielanski Web Programmer, International Trademark Association, 655 Third Avenue, 10th Floor New York, NY 10017-5617 USA +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence ________________________________ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of drydell at att.net Sent: Tuesday, June 21, 2005 4:48 PM To: NYPHP Talk Subject: RE: [nycphp-talk] Mysql Selects IN is a standard construct in every DB engine I can think of... IN expects a comma delimited list: SELECT cols FROM table WHERE zip in (11111, 22222, 33333) with PHP, you can do something like: $zips = array(11111, 22222, 33333); $rs = mysql_query('SELECT cols FROM table WHERE zip in ('.join(',', $zips).')'); -------------- Original message from "Chris Bielanski" : -------------- > AFAIK, in MySQL <=4.x you'll have to do a code-aggregation: > [PHP] > $result = array(); > foreach ($zips as $key=>$val) { > $result[] = $val; > $rs = mysql_query("SELECT * FROM organizations WHERE org_zip = $val"); > if(@mysql_hum_rows($rs) != 0) > while($row = mysql_fetch_array($rs, MYSQL_ASSOC)) { > $result[$val][] = $row; > } > } > > var_dump($result); > [/PHP] > > In MySQL 5, you could do an IN SELECT or similar aggregation. > > Thanks, > Chris Bielanski > Web Programmer, > International Trademark Association, > 655 Third Avenue, 10th Floor > New York, NY 10017-5617 USA > +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: talk-bounces at lists.nyphp.org > > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of harvey > > Sent: Tuesday, June 21, 2005 4:24 PM > > To: NYPHP Talk > > Subject: [nycphp-talk] Mysql Selects > > > > Hello, > > > > I've got code that queries the 'zipcode' tables in a database > > and finds the zips that are within X miles of Y zip code. Works fine. > > > > > > $z = new zipcode_class; > > $zips = $z->get_zips_in_range($zipcode,$distance); > > if (empty($zips)) > > { echo "Error: " . $z->last_error; } > > else { foreach ($zips as $key => $value) { echo > > "$key is $value miles from > > $zipcode. "; }; } ?> > > > > Now I want to query the 'organization' tables and return all > > the orgs that have one of the zips found above. But I'm not > > sure how to go about it. > > Something like the following (which I know is incorrect)? > > > > SELECT * FROM organizations WHERE org_zip IN ($zips) > > > > Thanks in advance for your help...I'm sure it's some very > > basic concept I'm missing. > > > > Harvey > > > > _______________________________________________ > > New York PHP Talk Maili ng List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From fields at hedge.net Tue Jun 21 17:06:04 2005 From: fields at hedge.net (Adam Fields) Date: Tue, 21 Jun 2005 17:06:04 -0400 Subject: [nycphp-talk] Mysql Selects In-Reply-To: <062120052048.4488.42B87D0B000EFBE200001188216028106004040A0B979D0B@att.net> References: <062120052048.4488.42B87D0B000EFBE200001188216028106004040A0B979D0B@att.net> Message-ID: <20050621210604.GB4347@lola.aquick.org> On Tue, Jun 21, 2005 at 08:48:13PM +0000, drydell at att.net wrote: > IN is a standard construct in every DB engine I can think of... IN expects a comma delimited list: > > SELECT cols FROM table WHERE zip in (11111, 22222, 33333) > > > with PHP, you can do something like: > > $zips = array(11111, 22222, 33333); > $rs = mysql_query('SELECT cols FROM table WHERE zip in ('.join(',', $zips).')'); When building sql queries dynamically, I find it very useful to store the query in a variable first: $sql = 'SELECT cols FROM table WHERE zip in ('.join(',', $zips).')'; $rs = mysql_query($sql); If you have problems with the query, you can easily print it. This also helps when you ultimately decide you want a database wrapper and you're replacing mysql_query with something else - you can just do a global search and replace for "mysql_query($sql)". :) -- - Adam ** I can fix your database problems: http://www.everylastounce.com/mysql.html ** Blog............... [ http://www.aquick.org/blog ] Links.............. [ http://del.icio.us/fields ] Photos............. [ http://www.aquick.org/photoblog ] Experience......... [ http://www.adamfields.com/resume.html ] Product Reviews: .. [ http://www.buyadam.com/blog ] From drydell at att.net Tue Jun 21 17:15:55 2005 From: drydell at att.net (drydell at att.net) Date: Tue, 21 Jun 2005 21:15:55 +0000 Subject: [nycphp-talk] Mysql Selects Message-ID: <062120052115.1170.42B8838A000BB44C00000492216028106004040A0B979D0B@att.net> I do the same... but since I'm a lazy typist, I just cut and pasted from the prior code snippet :) Actually, I usually include debug options to display/log SQL statements and email DB errors to myself, which are built in to my DB wrapper classes - I never use native engine-specific PHP functions. > > When building sql queries dynamically, I find it very useful to store > the query in a variable first: > > If you have problems with the query, you can easily print it. > > This also helps when you ultimately decide you want a database wrapper > and you're replacing mysql_query with something else - you can just do > a global search and replace for "mysql_query($sql)". :) > > > -- > - Adam > > ** I can fix your database problems: http://www.everylastounce.com/mysql.html ** > > Blog............... [ http://www.aquick.org/blog ] > Links.............. [ http://del.icio.us/fields ] > Photos............. [ http://www.aquick.org/photoblog ] > Experience......... [ http://www.adamfields.com/resume.html ] > Product Reviews: .. [ http://www.buyadam.com/blog ] > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From list at harveyk.com Tue Jun 21 17:33:05 2005 From: list at harveyk.com (harvey) Date: Tue, 21 Jun 2005 17:33:05 -0400 Subject: [nycphp-talk] Mysql Selects In-Reply-To: <062120052048.4488.42B87D0B000EFBE200001188216028106004040A 0B979D0B@att.net> References: <062120052048.4488.42B87D0B000EFBE200001188216028106004040A0B979D0B@att.net> Message-ID: <6.1.0.6.2.20050621172720.03a09460@mail.harveyk.com> That worked. I just added $zippers[]=$key to the foreach loop and then used a tweak of your SELECT. $query_zipsss = "SELECT * FROM organizations WHERE org_zip IN (". join(",",$zippers) . ")"; Thanks very much! At 04:48 PM 6/21/2005, drydell at att.net wrote: >IN is a standard construct in every DB engine I can think of... IN expects >a comma delimited list: > >SELECT cols FROM table WHERE zip in (11111, 22222, 33333) > >with PHP, you can do something like: > >$zips = array(11111, 22222, 33333); > >$rs = mysql_query('SELECT cols FROM table WHERE zip in ('.join(',', >$zips).')'); > >-------------- Original message from "Chris Bielanski" >: -------------- > > > AFAIK, in MySQL <=4.x you'll have to do a code-aggregation: > > [PHP] > > $result = array(); > > foreach ($zips as $key=>$val) { > > $result[] = $val; > > $rs = mysql_query("SELECT * FROM organizations WHERE org_zip = $val"); > > if(@mysql_hum_rows($rs) != 0) > > while($row = mysql_fetch_array($rs, MYSQL_ASSOC)) { > > $result[$val][] = $row; > > } > > } > > > > var_dump($result); > > [/PHP] > > > > In MySQL 5, you could do an IN SELECT or similar aggregation. > > > > Thanks, > > Chris Bielanski > > Web Programmer, > > International Trademark Association, > > 655 Third Avenue, 10th Floor > > New York, NY 10017-5617 USA > > +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: talk-bounces at lists.nyphp.org > > > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of harvey > > > Sent: Tuesday, June 21, 2005 4:24 PM > > > To: NYPHP Talk > > > Subject: [nycphp-talk] Mysql Selects > > > > > > Hello, > > > > > > I've got code that queries the 'zipcode' tables in a database > > > and finds the zips that are within X miles of Y zip code. Works fine. > > > > > > > > $z = new zipcode_class; > > > $zips = $z->get_zips_in_range($zipcode,$distance); > > > if (empty($zips)) > > > { echo "Error: " . $z->last_error; } > > > else { foreach ($zips as $key => $value) { echo > > > "$key is $value miles from > > > $zipcode. >"; }; } ?> > > > > > > Now I want to query the 'organization' tables and return all > > > the orgs that have one of the zips found above. But I'm not > > > sure how to go about it. > > > Something like the following (which I know is incorrect)? > > > > > > SELECT * FROM organizations WHERE org_zip IN ($zips) > > > > > > Thanks in advance for your help...I'm sure it's some very > > > basic concept I'm missing. > > > > > > Harvey > > > > > > _______________________________________________ > > > New York PHP Talk Maili ng List > > > AMP Technology > > > Supporting Apache, MySQL and PHP > > > http://lists.nyphp.org/mailman/listinfo/talk > > > http://www.nyphp.org > > > > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From krook at us.ibm.com Tue Jun 21 18:58:48 2005 From: krook at us.ibm.com (Daniel Krook) Date: Tue, 21 Jun 2005 18:58:48 -0400 Subject: [nycphp-talk] IBM @ NYPHP, June 28th Message-ID: Hey folks, With just a week to go, this month's meeting is rapidly approaching and it promises to be a great one. Don't forget to get your RSVP in if you haven't yet done so. Agenda: http://www.nyphp.org/ RSVP: http://www.nyphp.org/rsvp.php Since there will be a lot of information presented and because we have a large virtual membership which can't always make it into Manhattan, I thought it would be helpful to survey the list in advance to see what questions or topics people would like to hear about most, even if they can't attend.... Essentially to help IBM match their presentation to what interests the varied group of developers that is NYPHP and to help get the most out of the time. For example, * After taking a look at the agenda, is there something technical you'd like to see covered in more detail? * Is there any particular aspect of the Zend/IBM partnership that you'd like to hear more about? Don't limit it to questions; what suggestions would you give? E.g., * What parts of PHP could benefit most from IBM's involvement? * What would you like to see IBM do or say to put your clients who are wary about PHP (or AMP) at ease with the technology? And, as usual, please get the word out about the meeting on your personal sites, blogs, etc. : ) Thanks in advance and see you next Tuesday, -Dan Daniel Krook, Advisory IT Specialist Application Development, Production Services - Tools, ibm.com Personal: http://info.krook.org/ BluePages: http://bluepages.redirect.webahead.ibm.com/ BlogPages: http://blogpages.redirect.webahead.ibm.com/ From prusak at gmail.com Tue Jun 21 23:24:53 2005 From: prusak at gmail.com (Ophir Prusak) Date: Tue, 21 Jun 2005 23:24:53 -0400 Subject: [nycphp-talk] Mysql Selects In-Reply-To: <6.1.0.6.2.20050621160320.039f7258@mail.harveyk.com> References: <5ee773b34d7f6524ec55042c11bbb767@jobsforge.com> <6.1.0.6.2.20050621160320.039f7258@mail.harveyk.com> Message-ID: not sure why I'm answering this, but this seems you're doing something in PHP you could/should be doing in the database. the " IN (zip1, zip2, etc)" solution aint that bad, but what you really should be doing is using one query with a join or a subselect. for the join crowd, something like this: select org.* from org, zips where org.zip = zips.zip and i usually just use a rough zip code distance check using a square box. ophir On 6/21/05, harvey wrote: > Hello, > > I've got code that queries the 'zipcode' tables in a database and finds the > zips that are within X miles of Y zip code. Works fine. > > $z = new zipcode_class; > $zips = $z->get_zips_in_range($zipcode,$distance); > if (empty($zips)) > { echo "Error: " . $z->last_error; } > else { foreach ($zips as $key => $value) { echo "$key is > $value miles from $zipcode.
"; }; } > ?> > > Now I want to query the 'organization' tables and return all the orgs that > have one of the zips found above. But I'm not sure how to go about it. > Something like the following (which I know is incorrect)? > > SELECT * FROM organizations WHERE org_zip IN ($zips) > > Thanks in advance for your help...I'm sure it's some very basic concept I'm > missing. > > Harvey > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From prusak at gmail.com Tue Jun 21 23:48:11 2005 From: prusak at gmail.com (Ophir Prusak) Date: Tue, 21 Jun 2005 23:48:11 -0400 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: References: Message-ID: I was debating almost the exact same question about a year ago. I wasn't looking at such a diverse group of "php-ers" and was mostly looking at people who don't have a university degree in computer science. My conclusion was that none of the books I would recommend have the word PHP in them. For %99 of all web developers, I think a good SQL (not mysql) book is mandatory. I can't really say which one, but make sure it covers all aspects of database theory and design as well as advanced queries. One of the books would probably be a general comp sci books, depending on what knowledge the person lacked. The third would be about software engineering or software development in general. While many people are fine at actual coding, the process of creating the software is lacking. I'm sorry that I'm not recommending any specific books. email me if u want to discus this more. ophir On 6/15/05, Daniel Krook wrote: > Following on the earlier book access discussions... > > What are the most valuable hard copy book resources that you would > recommend today if you needed to populate a shelf with, say three, of the > best for the following "typical" NYPHPers? > > > * The freelancer with intermediate skill in procedural PHP 4 and MySQL 4.0 > who is looking to strengthen his/her existing technology skillset and to > smoothly transition to PHP 5 OOP and the mysqli interface. > > * The traditional C/C++ programmer beginning to develop web applications > (and possibly begin work with relational databases). > > * The veteran PHP 4/5 programmer looking to advance his/her understanding > of UML, OOP, patterns & methodologies. > > * The second-year university computer science student looking to develop a > web application foundation (HTTP, SQL, HTML). > > * The mid-career interface designer with strong XHTML, JavaScript, CSS and > a dab of ASP/JSP scripting? > > * The J2EE programmer who is migrating midsize Java applications to PHP, > assuming the database is to remain DB2/Oracle etc. > > > > > > Daniel Krook, Advisory IT Specialist > Application Development, Production Services - Tools, ibm.com > > Personal: http://info.krook.org/ > BluePages: http://bluepages.redirect.webahead.ibm.com/ > BlogPages: http://blogpages.redirect.webahead.ibm.com/ > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From acas at sapo.pt Wed Jun 22 04:12:48 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Wed, 22 Jun 2005 09:12:48 +0100 Subject: [nycphp-talk] Still Mysql Selects In-Reply-To: Message-ID: <20050622081250.BCE54A85E9@virtu.nyphp.org> Ok, I surrender, you guys are top! I'm asking for help. I have been strugling to have a clean cross reference check code in PHP using a MySQL database. I have a table called "CATALOG_READING" with two entries, one is the ID (CR_ID) and the other a value. Then I have 16 tables each with 4 rows that have a value from CR_ID, in order to use the values from the CATALOG_READING table in different situations. What I need to check is which values from CR_ID are NOT USED in any of the other tables, so I can identify and remove it. Before you ask, CR_ID has 3900 entries and the other tables have 4*700 entries (AVG), so I can't do it by hand... :p Thanks in advance, -- Alberto dos Santos email: acas at sapo.pt skype: fatflash Salvaguarda: Este email est? protegido de v?rus e programas maliciosos -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Ophir Prusak Sent: quarta-feira, 22 de Junho de 2005 4:25 To: NYPHP Talk Subject: Re: [nycphp-talk] Mysql Selects not sure why I'm answering this, but this seems you're doing something in PHP you could/should be doing in the database. the " IN (zip1, zip2, etc)" solution aint that bad, but what you really should be doing is using one query with a join or a subselect. for the join crowd, something like this: select org.* from org, zips where org.zip = zips.zip and i usually just use a rough zip code distance check using a square box. ophir On 6/21/05, harvey wrote: > Hello, > > I've got code that queries the 'zipcode' tables in a database and finds the > zips that are within X miles of Y zip code. Works fine. > > $z = new zipcode_class; > $zips = $z->get_zips_in_range($zipcode,$distance); > if (empty($zips)) > { echo "Error: " . $z->last_error; } > else { foreach ($zips as $key => $value) { echo "$key is > $value miles from $zipcode.
"; }; } > ?> > > Now I want to query the 'organization' tables and return all the orgs that > have one of the zips found above. But I'm not sure how to go about it. > Something like the following (which I know is incorrect)? > > SELECT * FROM organizations WHERE org_zip IN ($zips) > > Thanks in advance for your help...I'm sure it's some very basic concept I'm > missing. > > Harvey > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From dcech at phpwerx.net Wed Jun 22 07:42:06 2005 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 22 Jun 2005 07:42:06 -0400 Subject: [nycphp-talk] Still Mysql Selects In-Reply-To: <20050622081250.BCE54A85E9@virtu.nyphp.org> References: <20050622081250.BCE54A85E9@virtu.nyphp.org> Message-ID: <42B94E8E.7090907@phpwerx.net> Alberto dos Santos wrote: > I have a table called "CATALOG_READING" with two entries, one is the ID > (CR_ID) and the other a value. > Then I have 16 tables each with 4 rows that have a value from CR_ID, in > order to use the values from the CATALOG_READING table in different > situations. > > What I need to check is which values from CR_ID are NOT USED in any of the > other tables, so I can identify and remove it. SELECT c.cr_id FROM catalog_reading AS c LEFT JOIN table_x AS x ON x.cr_id=c.cr_id LEFT JOIN table_y AS y ON y.cr_id=c.cr_id LEFT JOIN table_z AS z ON z.cr_id=c.cr_id ... WHERE x.cr_id IS NULL AND y.cr_id IS NULL AND z.cr_id IS NULL ... Give something like that a shot. Dan From codebowl at gmail.com Wed Jun 22 08:21:31 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 22 Jun 2005 08:21:31 -0400 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: References: Message-ID: <8d9a428005062205217e2fa424@mail.gmail.com> Ophir, could you recommend any books that are directed towards software engineering or software development? As you said most people are fine with coding but dont have the necessary knowledge in this area. That is me :). I have gone through book after book and taken the zend course so PHP is not new to me but when i try to get into a large project i find myself lost in the planning stages. I know how it should work and can make it work but i am sure it's not going to be coded the proper way. I have no CS background.. are there any books i could pickup to get some of this knowledge as well? I am looking to forward my knowledge in PHP but other aspects as well. I know the easiest answer is to go to college but the largest obstacle wirh that is time and money. :( -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tgales at tgaconnect.com Wed Jun 22 08:46:17 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Wed, 22 Jun 2005 08:46:17 -0400 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: <8d9a428005062205217e2fa424@mail.gmail.com> References: <8d9a428005062205217e2fa424@mail.gmail.com> Message-ID: <42B95D99.8070504@tgaconnect.com> Joseph Crawford writes: ... > I have no CS background.. . ... > I know the easiest answer is to go to college but the largest obstacle > wirh that is time and money. :( > try: http://ocw.mit.edu/OcwWeb/Civil-and-Environmental-Engineering/ 1-00Introduction-to-Computers-and-Engineering-Problem-SolvingFall2002/ CourseHome/index.htm or something else from http://ocw.mit.edu/index.html -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From codebowl at gmail.com Wed Jun 22 08:52:04 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 22 Jun 2005 08:52:04 -0400 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: <42B95D99.8070504@tgaconnect.com> References: <8d9a428005062205217e2fa424@mail.gmail.com> <42B95D99.8070504@tgaconnect.com> Message-ID: <8d9a428005062205524a1013ba@mail.gmail.com> this is nice but i am not sure how i would afford to take a course like this... ;( -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From acas at sapo.pt Wed Jun 22 08:56:15 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Wed, 22 Jun 2005 13:56:15 +0100 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: <8d9a428005062205524a1013ba@mail.gmail.com> Message-ID: <20050622125619.A7C95A85E9@virtu.nyphp.org> Joseph: MIT OCW is free... you get all the goodies, but not the degree. -- Alberto dos Santos email: acas at sapo.pt skype: fatflash Salvaguarda: Este email e seus anexos est?o protegidos de v?rus e programas maliciosos. Se notar algo de anormal por favor informe-me. Obrigado. Disclaimer: This email and it?s attachements are protected from v?rus and malicious software. If you notice something unusual please report. Thanks. _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: quarta-feira, 22 de Junho de 2005 13:52 To: NYPHP Talk Subject: Re: [nycphp-talk] PHP book recommendations by role this is nice but i am not sure how i would afford to take a course like this... ;( -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Wed Jun 22 08:58:06 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 22 Jun 2005 08:58:06 -0400 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: <20050622125619.A7C95A85E9@virtu.nyphp.org> References: <8d9a428005062205524a1013ba@mail.gmail.com> <20050622125619.A7C95A85E9@virtu.nyphp.org> Message-ID: <8d9a42800506220558155697fb@mail.gmail.com> i will have to do more digging then all i saw were the tutorial outlines but not really everything to learn ;( I did see the exams and quiz. i'll dig a bit more ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrick at ramsden.com Wed Jun 22 09:53:27 2005 From: patrick at ramsden.com (Patrick Ramsden) Date: Wed, 22 Jun 2005 08:53:27 -0500 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: <8d9a428005062205217e2fa424@mail.gmail.com> Message-ID: <3u3f9p$1fvk56@smtp04.mrf.mail.rcn.net> Joseph- if you're interested in the practice of software development, two classics that have been highly recommended to me are: - code complete - mythical man month i also would also suggest kent beck's eXtreme Programming (XP) book, as XP practices, especially test-driven development, have been very helpful for me. _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: Wednesday, June 22, 2005 7:22 AM To: NYPHP Talk Subject: Re: [nycphp-talk] PHP book recommendations by role Ophir, could you recommend any books that are directed towards software engineering or software development? As you said most people are fine with coding but dont have the necessary knowledge in this area. That is me :). I have gone through book after book and taken the zend course so PHP is not new to me but when i try to get into a large project i find myself lost in the planning stages. I know how it should work and can make it work but i am sure it's not going to be coded the proper way. I have no CS background.. are there any books i could pickup to get some of this knowledge as well? I am looking to forward my knowledge in PHP but other aspects as well. I know the easiest answer is to go to college but the largest obstacle wirh that is time and money. :( -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From acas at sapo.pt Wed Jun 22 09:57:05 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Wed, 22 Jun 2005 14:57:05 +0100 Subject: [nycphp-talk] Still Mysql Selects In-Reply-To: <42B94E8E.7090907@phpwerx.net> Message-ID: <20050622135708.03CCBA85E9@virtu.nyphp.org> Dan. Thanks for your tip, but it doesn't seem to work. If i use your code, it returns me all of catalog_reading contents, meaning I do not have any null values on my tested table. On the other hand, if I say NOT NULL, it returns all the lines of catalog_reading that are present on the tested table. It's nice, but not at all what I need ;) Any other thoughts? Cheers -- Alberto dos Santos email: acas at sapo.pt web: otrebla.no.sapo.pt skype: fatflash msn: fatflash at hotmail.com Salvaguarda: Este email est? protegido de v?rus e programas maliciosos -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Dan Cech Sent: quarta-feira, 22 de Junho de 2005 12:42 To: NYPHP Talk Subject: Re: [nycphp-talk] Still Mysql Selects Alberto dos Santos wrote: > I have a table called "CATALOG_READING" with two entries, one is the ID > (CR_ID) and the other a value. > Then I have 16 tables each with 4 rows that have a value from CR_ID, in > order to use the values from the CATALOG_READING table in different > situations. > > What I need to check is which values from CR_ID are NOT USED in any of the > other tables, so I can identify and remove it. SELECT c.cr_id FROM catalog_reading AS c LEFT JOIN table_x AS x ON x.cr_id=c.cr_id LEFT JOIN table_y AS y ON y.cr_id=c.cr_id LEFT JOIN table_z AS z ON z.cr_id=c.cr_id ... WHERE x.cr_id IS NULL AND y.cr_id IS NULL AND z.cr_id IS NULL ... Give something like that a shot. Dan _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From dcech at phpwerx.net Wed Jun 22 10:17:48 2005 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 22 Jun 2005 10:17:48 -0400 Subject: [nycphp-talk] Still Mysql Selects In-Reply-To: <20050622135708.03CCBA85E9@virtu.nyphp.org> References: <20050622135708.03CCBA85E9@virtu.nyphp.org> Message-ID: <42B9730C.9070208@phpwerx.net> Alberto dos Santos wrote: > Dan. Thanks for your tip, but it doesn't seem to work. > If i use your code, it returns me all of catalog_reading contents, meaning I > do not have any null values on my tested table. Alberto, If you paste the exact SQL code you are executing we should be able to figure out where it is going wrong. Dan From lists at zaunere.com Wed Jun 22 11:37:26 2005 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 22 Jun 2005 11:37:26 -0400 Subject: [nycphp-talk] IBM @ NYPHP, June 28th In-Reply-To: Message-ID: <0MKz5u-1Dl7I70wdo-0000AA@mrelay.perfora.net> > With just a week to go, this month's meeting is rapidly approaching and it > promises to be a great one. Don't forget to get your RSVP in if you > haven't yet done so. > > Agenda: http://www.nyphp.org/ > RSVP: http://www.nyphp.org/rsvp.php > > Since there will be a lot of information presented and because we have a > large virtual membership which can't always make it into Manhattan, I > thought it would be helpful to survey the list in advance to see what > questions or topics people would like to hear about most, even if they > can't attend.... Essentially to help IBM match their presentation to what > interests the varied group of developers that is NYPHP and to help get the > most out of the time. > > For example, > * After taking a look at the agenda, is there something technical you'd > like to see covered in more detail? Perhaps some details on the inner workings (if different) of the IBM PHP, and what it means in terms of versions, available extensions, etc. > * Is there any particular aspect of the Zend/IBM partnership that you'd > like to hear more about? I'd be interested in PHP support on big iron. And, similarly to the above, what new extensions/functionality will the partnership produce? > Don't limit it to questions; what suggestions would you give? E.g., > * What parts of PHP could benefit most from IBM's involvement? Perhaps further/completed Java integration and OO bug fixes, enhancements, etc. > * What would you like to see IBM do or say to put your clients who are > wary about PHP (or AMP) at ease with the technology? > > And, as usual, please get the word out about the meeting on your personal > sites, blogs, etc. : ) Very exciting meeting folks. Be sure to RSVP now, since the space is nearly full already, and give Dan et al some feedback. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From jay_nyphp at fastmail.fm Wed Jun 22 11:43:16 2005 From: jay_nyphp at fastmail.fm (Jayesh Sheth) Date: Wed, 22 Jun 2005 11:43:16 -0400 Subject: [nycphp-talk] compiled PHP 5.1 seg faults - gdb bt interpretation Message-ID: <1119454996.31384.236932380@webmail.messagingengine.com> Hello all, I downloaded PHP 5.1 beta and tried to compile it with: './configure' '--prefix=/home/jay/php5_1' '--disable-cgi' '--enable-cli' '--with-xml' '--with-libxml-dir=/home/jay/php/lib' '--with-config-file-path=/home/jay/etc/php5' '--without-pear' '--enable-debug' PHP 5.1 (unlike PHP 5.0) seems to need libxml2. It compiles okay, but when I do ./php --version it seg faults. Here is the GDB output. I was hoping someone had insight into what is causing it. Thanks in advance, - Jay jay at jay:~/php5_1/bin$ gdb /home/jay/php5_1/bin/php GNU gdb 6.3-debian Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) run Starting program: /home/jay/php5_1/bin/php [Thread debugging using libthread_db enabled] [New Thread 1076826240 (LWP 3654)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1076826240 (LWP 3654)] 0x0825f7d1 in _zend_is_inconsistent (ht=0xa4, file=0x8338ee0 "/home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_hash.c", line=815) at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_hash.c:53 53 if (ht->inconsistent==HT_OK) { (gdb) bt #0 0x0825f7d1 in _zend_is_inconsistent (ht=0xa4, file=0x8338ee0 "/home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_hash.c", line=815) at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_hash.c:53 #1 0x08261b57 in zend_hash_merge_ex (target=0x83ba45c, source=0xa4, pCopyConstructor=0x8256647 , size=4, pMergeSource=0x8244756 , pParam=0x0) at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_hash.c:815 #2 0x08244805 in zend_do_implement_interface (ce=0x83ba3b8, iface=0x0) at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_compile.c:2149 #3 0x0825d51e in zend_class_implements (class_entry=0x83ba3b8, num_interfaces=-1) at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_API.c:1665 #4 0x0812567b in zm_startup_sqlite (type=1, module_number=4) at /home/jay/php-5.1.0b1/php-5.1.0b1/ext/sqlite/sqlite.c:1028 #5 0x0825c233 in zend_register_module_ex (module=0x83b7730) at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_API.c:1246 #6 0x0825c2ad in zend_startup_module (module=0x835f760) at /home/jay/php-5.1.0b1/php-5.1.0b1/Zend/zend_API.c:1265 #7 0x0820f067 in php_startup_extensions (ptr=0x836edcc, count=15) at /home/jay/php-5.1.0b1/php-5.1.0b1/main/main.c:1298 #8 0x082dee7a in php_startup_internal_extensions () at main/internal_functions_cli.c:71 #9 0x0820f6fe in php_module_startup (sf=0x836ed20, additional_modules=0x0, ---Type to continue, or q to quit--- num_additional_modules=0) at /home/jay/php-5.1.0b1/php-5.1.0b1/main/main.c:1483 #10 0x082dda7b in main (argc=1, argv=0xbffff914) at /home/jay/php-5.1.0b1/php-5.1.0b1/sapi/cli/php_cli.c:653 (gdb) From damovand at yahoo.com Wed Jun 22 11:56:01 2005 From: damovand at yahoo.com (Leila Lappin) Date: Wed, 22 Jun 2005 08:56:01 -0700 (PDT) Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: <8d9a428005062205217e2fa424@mail.gmail.com> Message-ID: <20050622155601.38335.qmail@web30802.mail.mud.yahoo.com> --- Joseph Crawford wrote: > Ophir, > > could you recommend any books that are directed > towards software engineering > or software development? As you said most people are > fine with coding but > dont have the necessary knowledge in this area. That > is me :). > > I have gone through book after book and taken the > zend course so PHP is not > new to me but when i try to get into a large project > i find myself lost in > the planning stages. I know how it should work and > can make it work but i am > sure it's not going to be coded the proper way. > > I have no CS background.. are there any books i > could pickup to get some of > this knowledge as well? I am looking to forward my > knowledge in PHP but > other aspects as well. > > I know the easiest answer is to go to college but > the largest obstacle wirh > that is time and money. :( > > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org Hello, I want to share with you what I have learned through my actual work experience, I hope you?ll find it useful. Planning a large system should start out by a process, referred to as (1) requirement gathering and (2) specification writing. Before you write even a single piece of code you should decide what you want the system do and how, thoroughly and in detail. You?ll know you?ve done this part right when you can describe the system in detail and complete with all the user interfaces, again before you start coding. When you?re writing up your specification, based on the requirements, your technical choices should address not only providing for the requirements of the system today but also some future extendibility. For example should you require the users login to the system? How should you validate the information and what should be done if the validation goes through or does not go through. If you have a set of information or options that are valid today would they always remain the same or would you like them to change sometime in the future? The process is almost intuitive once you develop the right mindset. I hope this helped. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From damovand at yahoo.com Wed Jun 22 11:56:23 2005 From: damovand at yahoo.com (Leila Lappin) Date: Wed, 22 Jun 2005 08:56:23 -0700 (PDT) Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: <8d9a428005062205217e2fa424@mail.gmail.com> Message-ID: <20050622155623.38481.qmail@web30802.mail.mud.yahoo.com> --- Joseph Crawford wrote: > Ophir, > > could you recommend any books that are directed > towards software engineering > or software development? As you said most people are > fine with coding but > dont have the necessary knowledge in this area. That > is me :). > > I have gone through book after book and taken the > zend course so PHP is not > new to me but when i try to get into a large project > i find myself lost in > the planning stages. I know how it should work and > can make it work but i am > sure it's not going to be coded the proper way. > > I have no CS background.. are there any books i > could pickup to get some of > this knowledge as well? I am looking to forward my > knowledge in PHP but > other aspects as well. > > I know the easiest answer is to go to college but > the largest obstacle wirh > that is time and money. :( > > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org Hello, I want to share with you what I have learned through my actual work experience, I hope you?ll find it useful. Planning a large system should start out by a process, referred to as (1) requirement gathering and (2) specification writing. Before you write even a single piece of code you should decide what you want the system do and how, thoroughly and in detail. You?ll know you?ve done this part right when you can describe the system in detail and complete with all the user interfaces, again before you start coding. When you?re writing up your specification, based on the requirements, your technical choices should address not only providing for the requirements of the system today but also some future extendibility. For example should you require the users login to the system? How should you validate the information and what should be done if the validation goes through or does not go through. If you have a set of information or options that are valid today would they always remain the same or would you like them to change sometime in the future? The process is almost intuitive once you develop the right mindset. I hope this helped. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From acas at sapo.pt Wed Jun 22 12:10:50 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Wed, 22 Jun 2005 17:10:50 +0100 Subject: [nycphp-talk] Still Mysql Selects SOLVED! In-Reply-To: <42B9730C.9070208@phpwerx.net> Message-ID: <20050622161052.5F280A85E9@virtu.nyphp.org> Dan: Although it didn't work, it drove me into reading mysql manual with another focus, and alas, I fount it! I will explain the problem and the solution, because it may just help somebody else. This is in a .org site, non-profit, and it relates to bible readings. "catalog_reading" is the complete bible references repository for the site, no matter what language or liturgic calendar, all the references are entered and read from there. Then we have country-specific liturgical calendars, like calendar_liturgic_am for american english ;), and our problem was to know which of the 3900+ entries on the references table was not used by any of the daily readings on any country. My solution was found on the manual in the UNION sintax pages, and it goes like this: require_once("../common/php_functions.inc"); // please notice I use my libraries $trans = array('am','ar','bbn','de','default','fr','it','maa','maa_orig','nl','pl','p t','sp','tra','trf'); if (!sql_server_connect()) {echo "Connection error
";} else {echo "Connected
";} if (!sql_choose_db()) {echo "Db not selected}";} else {echo "Db selected
";} $CR_query = "SELECT * FROM catalog_reading WHERE NOT EXISTS ("; for ($count = 0 ; $count <= 14 ; $count++) { $CR_query .= "SELECT CL_FR_CRID,CL_PS_CRID,CL_SR_CRID,CL_GSP_CRID FROM calendar_liturgic_".$trans[$count]." WHERE "; $CR_query .= "calendar_liturgic_".$trans[$count].".CL_FR_CRID=catalog_reading.CR_ID OR "; $CR_query .= "calendar_liturgic_".$trans[$count].".CL_PS_CRID=catalog_reading.CR_ID OR "; $CR_query .= "calendar_liturgic_".$trans[$count].".CL_SR_CRID=catalog_reading.CR_ID OR "; $CR_query .= "calendar_liturgic_".$trans[$count].".CL_GSP_CRID=catalog_reading.CR_ID UNION "; } $CR_query = substr($CR_query,0,-7); $CR_query .= ")"; $CR_query_result = sql_do_query($CR_query); $CR_count = sql_count_lines($CR_query_result); echo "lines = ".$CR_count."
"; while ($CR_line = sql_do_array($CR_query_result)) { echo "CR_ID: ".$CR_line['CR_ID']." CR_READING: ".$CR_line['CR_READING']."
"; } Thank you, Dan and the other, for the inspiration. -- Alberto dos Santos email: acas at sapo.pt skype: fatflash From andrew at plexpod.com Wed Jun 22 15:16:16 2005 From: andrew at plexpod.com (Andrew Yochum) Date: Wed, 22 Jun 2005 15:16:16 -0400 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: <3u3f9p$1fvk56@smtp04.mrf.mail.rcn.net> References: <8d9a428005062205217e2fa424@mail.gmail.com> <3u3f9p$1fvk56@smtp04.mrf.mail.rcn.net> Message-ID: <20050622191611.GA6270@zoidberg.digitalpulp.com> On Wed, Jun 22, 2005 at 08:53:27AM -0500, Patrick Ramsden wrote: > if you're interested in the practice of software development, two classics > that have been highly recommended to me are: > - code complete > - mythical man month I would second both of those suggestions. Here are a few others I'm fond of off the top of my head: - The Pragmatic Programmer - Coder to Developer - Joel On Software (his book & blog) I also just picked up Professional Software Development by the same author as Code Complete & Rapid Dev, but haven't read it yet, but have heard good things about it. Learning other languages is also a good idea. You'll find new approaches to problems, learn other development environments and practices that you'll pack into your toolbox and use throughout your development career. The Pragmatic Programmer will teach you all about that. HTH, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From jay_nyphp at fastmail.fm Wed Jun 22 16:11:06 2005 From: jay_nyphp at fastmail.fm (Jayesh Sheth) Date: Wed, 22 Jun 2005 16:11:06 -0400 Subject: [nycphp-talk] PHP book recommendations by role Message-ID: <1119471066.25751.236953321@webmail.messagingengine.com> Hi all, I recently bought Code Complete by Steve McConnell, and found it to be immensely useful so far. Amazon has it: http://tinyurl.com/byvds Joel On Software's articles are really good too. So these two suggestions were excellent, and I second them. For those who want to know more about PHP 5 and OOP, I would recommend PHP 5 Object, Patterns and Practice (Apress). As for a general SQL book, I would recommend The Programmer's Guide to SQL by Apress too. Best regards, - Jay From jay_nyphp at fastmail.fm Wed Jun 22 16:23:22 2005 From: jay_nyphp at fastmail.fm (Jayesh Sheth) Date: Wed, 22 Jun 2005 16:23:22 -0400 Subject: [nycphp-talk] What does PHP use to find programs that are exec'ed? Message-ID: <1119471802.26652.236953746@webmail.messagingengine.com> Hello all, I was wondering what the PHP 4 module of Apache uses to find programs when using the exec() function. I am trying to use a script invoked through the Apache PHP 4 module to exec() the CLI version of PHP. For example http://localhost/test.php has: I compiled PHP 4.3.x as an Apache module, but also seems to have installed the CLI version in: /usr/local/bin/php The above exec call from does work. However, I compiled PHP 5 with: '--disable-cgi' '--enable-cli' and copied the PHP 5 binary to /usr/bin . When I change http://localhost/test.php to be: no it does not work (no output is produced). The phpinfo() function for the PHP 4 Apache module (through which exec() requests are being passed) has the following info for Apache's environment variables: PATH /bin:/usr/bin:/usr/local/bin When as root I do: echo $PATH I get: /sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin Apache's user and group are both www-data. So my question is: what do I need to do to let the PHP 4 Apache module find a program so it can exec() it? Thanks in advance. Best regards, - Jay From patrick at ramsden.com Wed Jun 22 16:54:31 2005 From: patrick at ramsden.com (Patrick Ramsden) Date: Wed, 22 Jun 2005 15:54:31 -0500 Subject: [nycphp-talk] PHP book recommendations by role In-Reply-To: <20050622155601.38335.qmail@web30802.mail.mud.yahoo.com> Message-ID: <3u3f9p$1g5c9g@smtp04.mrf.mail.rcn.net> > I want to share with you what I have learned through > my actual work experience, I hope you'll find it > useful. Planning a large system should start out by a > process, referred to as (1) requirement gathering and > (2) specification writing. > > Before you write even a single piece of code you > should decide what you want the system do and how, > thoroughly and in detail. You'll know you've done > this part right when you can describe the system in > detail and complete with all the user interfaces, > again before you start coding. When you're writing up > your specification, based on the requirements, your > technical choices should address not only providing > for the requirements of the system today but also some > future extendibility. For example should you require > the users login to the system? How should you > validate the information and what should be done if > the validation goes through or does not go through. > If you have a set of information or options that are > valid today would they always remain the same or would > you like them to change sometime in the future? > > The process is almost intuitive once you develop the > right mindset. I hope this helped. Great thoughts. My two cents: I agree wholeheartedly that it's important to elicit business requirements for what you're developing and to consider expected/potential changes that could be required in the future when architecting a system. I'd suggest being careful of too much "big design up front" (i.e., spending a lot of time on architecture, especially of things that aren't immediately required). Usually the best approach is to try to iterate as much as possible -- i.e., flesh out some requirements from the "customers" (usually the business folks), develop and test the functionality that's most important to them (not the nice-to-haves) in a short timeframe (e.g., 1-4 weeks), and then give it to them so they can use it and refine their requirements (which usually leads to the software providing more value for the business). Extreme Programming, one of the agile development philosophies, stresses trying to do the simplest thing possible when developing a feature. Usually the cost of refactoring something that could be architected better is less than the cost of developing features that aren't valued or used... -Pat From corey at domanistudios.com Wed Jun 22 17:58:43 2005 From: corey at domanistudios.com (corey szopinski) Date: Wed, 22 Jun 2005 17:58:43 -0400 Subject: [nycphp-talk] Callback function in a class Message-ID: I have a need to use a callback function from uasort within a class, and I?m having a hard time figuring out how to pass the name of the custom sort method in as the second parameter (it?s a string... not a reference). For example, here the basic code structure: class StoreLocator{ function searchByZip($zip){ [ some code that builds a store array ] $stores[0]['name'] = "store1"; $stores[0]['distance'] = "3.4"; $stores[0]['name'] = "store2"; $stores[0]['distance'] = "5.6"; uasort($stores, 'sortDistance'); return $stores; } function sortDistance($a,$b){ if($a['distance'] == $b['distance']) return 0; return ($a['distance'] > $b['distance']) ? 1 : -1; } } So, in the code uasort($stores, 'sortDistance'); doesn't work, I've also tried: $sortDistance &= $this->sortDistance(); uasort($stores, 'sortDistance'); This technique is able to find the method sortDistance, but isn't able to pass in the ($a, $b) arrays to sort. The last thing I've tried is $sortDistance &= $this->sortDistance($a, $b); uasort($stores, 'sortDistance'); Which also doesn't work. Any ideas? - Corey From codebowl at gmail.com Wed Jun 22 18:08:46 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 22 Jun 2005 18:08:46 -0400 Subject: [nycphp-talk] Callback function in a class In-Reply-To: References: Message-ID: <8d9a428005062215081308daed@mail.gmail.com> maybe it doesnt work because you have this $stores[0]['name'] = "store1"; $stores[0]['distance'] = "3.4"; $stores[0]['name'] = "store2"; $stores[0]['distance'] = "5.6"; so when you actually pass in the $stores array it only has one element $stores[0].... -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Wed Jun 22 18:16:00 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 22 Jun 2005 18:16:00 -0400 Subject: [nycphp-talk] Callback function in a class In-Reply-To: <8d9a428005062215081308daed@mail.gmail.com> References: <8d9a428005062215081308daed@mail.gmail.com> Message-ID: <8d9a428005062215166a18cd79@mail.gmail.com> have you tried uasort($stores, $this->sortDistance); or maybe uasort($stores, self::sortDistance); -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Consult at CovenantEDesign.com Wed Jun 22 18:19:33 2005 From: Consult at CovenantEDesign.com (Edward) Date: Wed, 22 Jun 2005 18:19:33 -0400 Subject: [nycphp-talk] Callback function in a class References: <8d9a428005062215081308daed@mail.gmail.com> Message-ID: <008701c57778$78a928e0$12896e41@ced> Yeah, I was thinking the same thing.... [0][name] and then [0][name] is going to be naming and then renaming.... but i didn't know if he had just banged this out for demonstrative purposes $stores[0]['name'] = "store1"; $stores[0]['distance'] = "3.4"; $stores[1]['name'] = "store2"; $stores[1]['distance'] = "5.6"; etc... ----- Original Message ----- From: Joseph Crawford To: NYPHP Talk Sent: Wednesday, June 22, 2005 6:08 PM Subject: Re: [nycphp-talk] Callback function in a class maybe it doesnt work because you have this $stores[0]['name'] = "store1"; $stores[0]['distance'] = "3.4"; $stores[0]['name'] = "store2"; $stores[0]['distance'] = "5.6"; so when you actually pass in the $stores array it only has one element $stores[0].... -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com ------------------------------------------------------------------------------ _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Wed Jun 22 18:44:37 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 22 Jun 2005 18:44:37 -0400 Subject: [nycphp-talk] Callback function in a class In-Reply-To: <008701c57778$78a928e0$12896e41@ced> References: <8d9a428005062215081308daed@mail.gmail.com> <008701c57778$78a928e0$12896e41@ced> Message-ID: <8d9a42800506221544680c31d@mail.gmail.com> yea as i did a second reply i thought maybe that was just demo purposes ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From shiflett at php.net Wed Jun 22 18:52:01 2005 From: shiflett at php.net (Chris Shiflett) Date: Wed, 22 Jun 2005 18:52:01 -0400 Subject: [nycphp-talk] Mysql Selects In-Reply-To: <6.1.0.6.2.20050621172720.03a09460@mail.harveyk.com> References: <062120052048.4488.42B87D0B000EFBE200001188216028106004040A0B979D0B@att.net> <6.1.0.6.2.20050621172720.03a09460@mail.harveyk.com> Message-ID: <42B9EB91.6090705@php.net> Out of curiosity, why does everyone seem to use join() instead of implode()? I've seen it used three times in this thread alone, but maybe it's just a copy and paste thing. :-) Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/ From drydell at att.net Wed Jun 22 18:56:12 2005 From: drydell at att.net (drydell at att.net) Date: Wed, 22 Jun 2005 22:56:12 +0000 Subject: [nycphp-talk] Mysql Selects Message-ID: <062220052256.1709.42B9EC8B000E1AA7000006AD216038311604040A0B979D0B@att.net> less typing? as a matter of fact, join() is just an alias of implode()... -------------- Original message ---------------------- From: Chris Shiflett > Out of curiosity, why does everyone seem to use join() instead of > implode()? I've seen it used three times in this thread alone, but maybe > it's just a copy and paste thing. :-) > > Chris > > -- > Chris Shiflett > Brain Bulb, The PHP Consultancy > http://brainbulb.com/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org From dcech at phpwerx.net Wed Jun 22 19:07:34 2005 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 22 Jun 2005 19:07:34 -0400 Subject: [nycphp-talk] Callback function in a class In-Reply-To: References: Message-ID: <42B9EF36.5010608@phpwerx.net> corey szopinski wrote: > I have a need to use a callback function from uasort within a class, and I?m > having a hard time figuring out how to pass the name of the custom sort > method in as the second parameter (it?s a string... not a reference). > snip > > So, in the code > > uasort($stores, 'sortDistance'); > > doesn't work You need: uasort($stores,array(&$this,'sortDistance')); You can read more about the syntax for callbacks here: http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback Dan From codebowl at gmail.com Wed Jun 22 19:52:47 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 22 Jun 2005 19:52:47 -0400 Subject: [nycphp-talk] [ OT ] - How many publishers to notify here eh Message-ID: <8d9a4280050622165214e3cb00@mail.gmail.com> http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&category=3522&item=5211397976&rd=1 i have reported to Ebay ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at plexpod.com Wed Jun 22 20:32:19 2005 From: andrew at plexpod.com (Andrew Yochum) Date: Wed, 22 Jun 2005 20:32:19 -0400 Subject: Join vs. Implode (was Re: [nycphp-talk] Mysql Selects) In-Reply-To: <42B9EB91.6090705@php.net> References: <062120052048.4488.42B87D0B000EFBE200001188216028106004040A0B979D0B@att.net> <6.1.0.6.2.20050621172720.03a09460@mail.harveyk.com> <42B9EB91.6090705@php.net> Message-ID: <6F54E394-5C3B-494B-84C1-ACAC4586F341@plexpod.com> On Jun 22, 2005, at 6:52 PM, Chris Shiflett wrote: > Out of curiosity, why does everyone seem to use join() instead of > implode()? I've seen it used three times in this thread alone, but > maybe it's just a copy and paste thing. :-) Maybe we've stumbled on the ex/closet-Perl hacker NYPHP contingent? I know I fit into that category and use join instead of implode. It's hard to break a 10 year habit. :-) -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From chsnyder at gmail.com Wed Jun 22 21:51:38 2005 From: chsnyder at gmail.com (csnyder) Date: Wed, 22 Jun 2005 21:51:38 -0400 Subject: Join vs. Implode (was Re: [nycphp-talk] Mysql Selects) In-Reply-To: <6F54E394-5C3B-494B-84C1-ACAC4586F341@plexpod.com> References: <062120052048.4488.42B87D0B000EFBE200001188216028106004040A0B979D0B@att.net> <6.1.0.6.2.20050621172720.03a09460@mail.harveyk.com> <42B9EB91.6090705@php.net> <6F54E394-5C3B-494B-84C1-ACAC4586F341@plexpod.com> Message-ID: On 6/22/05, Andrew Yochum wrote: > I know I fit into that category and use join instead of implode. > It's hard to break a 10 year habit. :-) But implode sounds so much cooler! As someone with no perl experience, I'm happy to use implode() as the perfect compliment to explode(). There's no unjoin(), is there? From nestorflorez at earthlink.net Wed Jun 22 23:42:19 2005 From: nestorflorez at earthlink.net (Nestor Florez) Date: Wed, 22 Jun 2005 20:42:19 -0700 (GMT-07:00) Subject: Join vs. Implode (was Re: [nycphp-talk] Mysql Selects) Message-ID: <30203117.1119498139775.JavaMail.root@wamui-polski.atl.sa.earthlink.net> Is there a split()? -----Original Message----- From: csnyder Sent: Jun 22, 2005 6:51 PM To: NYPHP Talk Subject: Re: Join vs. Implode (was Re: [nycphp-talk] Mysql Selects) On 6/22/05, Andrew Yochum wrote: > I know I fit into that category and use join instead of implode. > It's hard to break a 10 year habit. :-) But implode sounds so much cooler! As someone with no perl experience, I'm happy to use implode() as the perfect compliment to explode(). There's no unjoin(), is there? _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From lists at natserv.com Thu Jun 23 01:15:01 2005 From: lists at natserv.com (Francisco Reyes) Date: Thu, 23 Jun 2005 01:15:01 -0400 (EDT) Subject: [nycphp-talk] What does PHP use to find programs that are exec'ed? In-Reply-To: <1119471802.26652.236953746@webmail.messagingengine.com> References: <1119471802.26652.236953746@webmail.messagingengine.com> Message-ID: <20050623011431.I64587@zoraida.natserv.net> On Wed, 22 Jun 2005, Jayesh Sheth wrote: > So my question is: > what do I need to do to let the PHP 4 Apache module find a program so it > can exec() it? Why not simply specify the fullpath to the program... /usr/local/bin/my_program From jay_nyphp at fastmail.fm Thu Jun 23 09:34:39 2005 From: jay_nyphp at fastmail.fm (Jayesh Sheth) Date: Thu, 23 Jun 2005 09:34:39 -0400 Subject: [nycphp-talk] What does PHP use to find programs that are exec'ed? Message-ID: <1119533679.31216.237006069@webmail.messagingengine.com> Hello Francisco, Thanks for your help. I did try using the full path, but it did not work. It's really weird. I thought it was a permissions or ownership issue, but the other PHP binary which did work had 'root' as its user and 'staff' as their group, and both had permissions of -rwxr-xr-x . For example: jay:/usr/bin# ls -l /usr/bin/php5_0 /usr/local/bin/php -rwxr-xr-x 1 root staff 17327872 2005-06-22 15:52 /usr/bin/php5_0 -rwxr-xr-x 1 root staff 8492541 2005-05-24 16:38 /usr/local/bin/php The code I used to run the exec with the full path was: >From the shell (bash), if I do /usr/bin/php5_0 --help it outputs stuff. I am running Debian Linux - I am not sure if a Debian quirk is at work here (but somehow I doubt it). Shouldn't exec() be able to run any executable on the system with a full path, or are there some other requirements for that executable? Maybe I am doing something dumb here, or just missing something. Thanks, - Jay From corey at domanistudios.com Thu Jun 23 10:13:44 2005 From: corey at domanistudios.com (corey szopinski) Date: Thu, 23 Jun 2005 10:13:44 -0400 Subject: [nycphp-talk] Callback function in a class In-Reply-To: <42B9EF36.5010608@phpwerx.net> Message-ID: Brilliant! That was it. Thanks a million. -c On 6/22/05 7:07 PM, "Dan Cech" wrote: > You need: > > uasort($stores,array(&$this,'sortDistance')); > > You can read more about the syntax for callbacks here: > > http://www.php.net/manual/en/language.pseudo-types.php#language.types.callback > > Dan > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org Corey Szopinski Director of Technology DOMANI STUDIOS corey at domanistudios.com 55 Washington St. Suite 822 Brooklyn, NY 11201 718-797-4470 x116 -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at natserv.com Thu Jun 23 10:42:49 2005 From: lists at natserv.com (Francisco Reyes) Date: Thu, 23 Jun 2005 10:42:49 -0400 (EDT) Subject: [nycphp-talk] What does PHP use to find programs that are exec'ed? In-Reply-To: <1119533679.31216.237006069@webmail.messagingengine.com> References: <1119533679.31216.237006069@webmail.messagingengine.com> Message-ID: <20050623104023.D72042@zoraida.natserv.net> On Thu, 23 Jun 2005, Jayesh Sheth wrote: > $output = ''; > $exec = ''; > exec('/usr/bin/php5_0 --help', $output, $exec); > if ($exec) > { > echo 'Yes'; > } > else > { > echo 'No'; Have you tried running something else? Trying to run PHP from within PHP may be a problem in and of itself.. At least something to consider. From ken at secdat.com Thu Jun 23 10:48:28 2005 From: ken at secdat.com (Kenneth Downs) Date: Thu, 23 Jun 2005 10:48:28 -0400 (EDT) Subject: [nycphp-talk] What does PHP use to find programs that are exec'ed? In-Reply-To: <20050623104023.D72042@zoraida.natserv.net> References: <1119533679.31216.237006069@webmail.messagingengine.com> <20050623104023.D72042@zoraida.natserv.net> Message-ID: <35178.38.117.147.25.1119538108.squirrel@38.117.147.25> PMFJI, but I myself had no end of troubles with exec() and ended up using backtick, something like: $command = 'php batch_program.php'; `$command`; For some reason exec() just never worked, and backtick did, so I did not investigate further. > On Thu, 23 Jun 2005, Jayesh Sheth wrote: > >> > $output = ''; >> $exec = ''; >> exec('/usr/bin/php5_0 --help', $output, $exec); >> if ($exec) >> { >> echo 'Yes'; >> } >> else >> { >> echo 'No'; > > Have you tried running something else? > Trying to run PHP from within PHP may be a problem in and of itself.. At > least something to consider. > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Kenneth Downs Secure Data Software 631-379-0010 ken at secdat.com PO Box 708 East Setauket, NY 11733 From jay_nyphp at fastmail.fm Thu Jun 23 10:54:55 2005 From: jay_nyphp at fastmail.fm (Jayesh Sheth) Date: Thu, 23 Jun 2005 10:54:55 -0400 Subject: [nycphp-talk] What does PHP use to find programs that are exec'ed? Message-ID: <1119538495.6301.237013015@webmail.messagingengine.com> Hello all, I think I figured out why it was not working. I had compiled libxml2 to my home directory, and built the PHP binary against it. Even thought it was installed to /usr/local/php5_0 and worked from the bash shell, somehow when it was exec'ed by Apache, it did not work. When I rebuilt it without libxml and only against system libraries, it worked. I guess I made a mistake building it against a library compiled to my home dir. Best regards, - Jay From andrew at plexpod.com Thu Jun 23 11:27:00 2005 From: andrew at plexpod.com (Andrew Yochum) Date: Thu, 23 Jun 2005 11:27:00 -0400 Subject: [nycphp-talk] What does PHP use to find programs that are exec'ed? In-Reply-To: <1119533679.31216.237006069@webmail.messagingengine.com> References: <1119533679.31216.237006069@webmail.messagingengine.com> Message-ID: <20050623152654.GE7639@zoidberg.digitalpulp.com> On Thu, Jun 23, 2005 at 09:34:39AM -0400, Jayesh Sheth wrote: > Shouldn't exec() be able to run any executable on the system with a full > path, or are there some other requirements for that executable? You should check out the various safe mode features. They can restrict such things and are possibly getting in your way: http://us4.php.net/features.safe-mode Specifically you might check out open_basedir as it is not dependent on whether safe mode is on or off IIRC. HTH, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From codebowl at gmail.com Thu Jun 23 19:36:51 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 23 Jun 2005 19:36:51 -0400 Subject: [nycphp-talk] [ OT ] - .NET or Java Message-ID: <8d9a4280050623163679a5f67a@mail.gmail.com> Guys, I am looking at learning another language and i am not sure whether to learn .NET or JAVA. My compay mostly deals with web development and i know java and .net both offer web capabilites. I am also wanting to learn to write actual applications. Which would you suggest, which books would you suggest and.... Why? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Thu Jun 23 19:57:32 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: 23 Jun 2005 19:57:32 -0400 Subject: [nycphp-talk] [ OT ] - .NET or Java Message-ID: <20904-50887@sneakemail.com> Ruby on rails. -----Original Message----- From: Joseph Crawford codebowl-at-gmail.com |nyphp dev/internal group use| Date: 6/23/05 7:37 pm To: NYPHP Talk Subj: [nycphp-talk] [ OT ] - .NET or Java Guys, I am looking at learning another language and i am not sure whether to learn .NET or JAVA. My compay mostly deals with web development and i know java and .net both offer web capabilites. I am also wanting to learn to write actual applications. Which would you suggest, which books would you suggest and.... Why? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com From nestorflorez at earthlink.net Thu Jun 23 20:01:43 2005 From: nestorflorez at earthlink.net (Nestor Florez) Date: Thu, 23 Jun 2005 20:01:43 -0400 (EDT) Subject: [nycphp-talk] [ OT ] - .NET or Java Message-ID: <24804776.1119571303703.JavaMail.root@wamui-mouette.atl.sa.earthlink.net> Joe, I learned java and I forgot most of it, because the lack of use. I tried to get a job in Java but never landed one because I needed Java working experience...catch 22 But I like a book by Dietel and Dietel <--for applications and Applets for web programming get a book on j2ee or on JSP Nestor :-) -----Original Message----- From: Joseph Crawford Sent: Jun 23, 2005 7:36 PM To: NYPHP Talk Subject: [nycphp-talk] [ OT ] - .NET or Java Guys, I am looking at learning another language and i am not sure whether to learn .NET or JAVA. My compay mostly deals with web development and i know java and .net both offer web capabilites. I am also wanting to learn to write actual applications. Which would you suggest, which books would you suggest and.... Why? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com From krook at us.ibm.com Thu Jun 23 21:39:36 2005 From: krook at us.ibm.com (Daniel Krook) Date: Thu, 23 Jun 2005 21:39:36 -0400 Subject: [nycphp-talk] [ OT ] - .NET or Java In-Reply-To: <8d9a4280050623163679a5f67a@mail.gmail.com> Message-ID: > I am looking at learning another language and i am not > sure whether to learn .NET or JAVA. My compay mostly > deals with web development and i know java and .net both > offer web capabilites. I am also wanting to learn to > write actual applications. Which would you suggest, which > books would you suggest and.... Why? I recommend "Head First Servlets & JSP" for learning Java web technologies. It's technically a study guide for the Sun Certified Web Component Developer exam but it's excellent even if you're not after the cert. http://www.oreilly.com/catalog/headservletsjsp/ http://www.wickedlysmart.com/HeadFirst/HeadFirstServlets/HeadFirstJavaServlets.html It made it to number 3 on Amazon's 2004 "Top 10 Editors' Picks: Computers & Internet" list. http://www.amazon.com/exec/obidos/tg/feature/-/546857/103-6321149-6696605 HTH, -Dan Daniel Krook, Advisory IT Specialist Application Development, Production Services - Tools, ibm.com Personal: http://info.krook.org/ BluePages: http://bluepages.redirect.webahead.ibm.com/ BlogPages: http://blogpages.redirect.webahead.ibm.com/ From dmintz at davidmintz.org Thu Jun 23 21:44:18 2005 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 23 Jun 2005 21:44:18 -0400 (EDT) Subject: [nycphp-talk] Callback function in a class In-Reply-To: References: Message-ID: On Thu, 23 Jun 2005, corey szopinski wrote: > Brilliant! That was it. > > On 6/22/05 7:07 PM, "Dan Cech" wrote: > > > You need: > > > > uasort($stores,array(&$this,'sortDistance')); > > And if the callback method happens to be static, whether declared static in PHP 5, or sort of de facto static in PHP 4: uasort($stores,array(__CLASS__,'sortDistance')); --- David Mintz http://davidmintz.org/ From edwardpotter at gmail.com Thu Jun 23 23:35:54 2005 From: edwardpotter at gmail.com (edward potter) Date: Thu, 23 Jun 2005 23:35:54 -0400 Subject: [nycphp-talk] [ OT ] - .NET or Java In-Reply-To: <8d9a4280050623163679a5f67a@mail.gmail.com> References: <8d9a4280050623163679a5f67a@mail.gmail.com> Message-ID: I think Java is probably a lot more fun the .NET. Python & Ruby are the new kids on the block. Google will turn up lots of info to get you started. Check out the books at B&N, and then get them for a fraction of the price on Amazon used books. Subscribe to an RSS feed of the del.icio.us tag for the languages(s) you want to master. Read those links, that reading will keep you on top of it all. And have fun! -ed On 6/23/05, Joseph Crawford wrote: > Guys, > > I am looking at learning another language and i am not sure whether to > learn .NET or JAVA. My compay mostly deals with web development and i know > java and .net both offer web capabilites. I am also wanting to learn to > write actual applications. Which would you suggest, which books would you > suggest and.... Why? > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > From patrick at ramsden.com Fri Jun 24 00:15:48 2005 From: patrick at ramsden.com (Patrick Ramsden) Date: Thu, 23 Jun 2005 23:15:48 -0500 Subject: [nycphp-talk] [ OT ] - .NET or Java In-Reply-To: <8d9a4280050623163679a5f67a@mail.gmail.com> Message-ID: <3u3f9p$1go75e@smtp04.mrf.mail.rcn.net> would suggest java. main reason for chosing it over .NET is that there's a LOT of helpful info out there on the net and open source projects/libraries out there that you can utilize or learn from. and you can get everything you need for free (e.g., eclipse is a very helpful IDE) -pat _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: Thursday, June 23, 2005 6:37 PM To: NYPHP Talk Subject: [nycphp-talk] [ OT ] - .NET or Java Guys, I am looking at learning another language and i am not sure whether to learn .NET or JAVA. My compay mostly deals with web development and i know java and .net both offer web capabilites. I am also wanting to learn to write actual applications. Which would you suggest, which books would you suggest and.... Why? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sajith.ml at gmail.com Fri Jun 24 04:40:29 2005 From: sajith.ml at gmail.com (Sajith A) Date: Fri, 24 Jun 2005 14:10:29 +0530 Subject: [nycphp-talk] [ OT ] - .NET or Java In-Reply-To: <8d9a4280050623163679a5f67a@mail.gmail.com> References: <8d9a4280050623163679a5f67a@mail.gmail.com> Message-ID: > I am looking at learning another language and i am not sure whether to > learn .NET or JAVA. My compay mostly deals with web development and i know > java and .net both offer web capabilites. I am also wanting to learn to > write actual applications. Which would you suggest, which books would you > suggest and.... Why? I'm coming from a php and java background and would prefer dotnet to j2ee. Reasons being... Development time is less for dotnet. Visual studio MSDN C# is not bad when compared to java And yes.. i know this might be read by people who don't like MS policies and platform dependencies etc ...these are my humble opinions and i'm sure many of my friends might disagree.. It also seems like Ruby-on-rails is also good. It provides a sound framework [where php is deficient] and ease of development like php--- but don't know how enterprises are responding to it Regards Sajith A From steve.rieger at tbwachiat.com Fri Jun 24 13:34:48 2005 From: steve.rieger at tbwachiat.com (Steve Rieger) Date: Fri, 24 Jun 2005 13:34:48 -0400 Subject: [nycphp-talk] make error need some help Message-ID: <42BC4438.90602@tbwachiat.com> /usr/local/src/php-4.3.11/ext/mysql/libmysql/my_tempnam.c:115: warning: warning: tempnam() possibly used unsafely; consider using mkstemp() ext/pdf/pdf.lo(.text+0x55e): In function `zif_pdf_open': /usr/local/src/php-4.3.11/ext/pdf/pdf.c:472: undefined reference to `PDF_open_fp' *** Error code 1 any pointers i do have mysql client installed Steve Rieger (212) 804-1131 (Work) (646) 335-8915 (Cell) chozrim (aim) From chsnyder at gmail.com Fri Jun 24 14:22:44 2005 From: chsnyder at gmail.com (csnyder) Date: Fri, 24 Jun 2005 14:22:44 -0400 Subject: [nycphp-talk] make error need some help In-Reply-To: <42BC4438.90602@tbwachiat.com> References: <42BC4438.90602@tbwachiat.com> Message-ID: On 6/24/05, Steve Rieger wrote: > /usr/local/src/php-4.3.11/ext/mysql/libmysql/my_tempnam.c:115: warning: > warning: tempnam() possibly used unsafely; consider using mkstemp() > ext/pdf/pdf.lo(.text+0x55e): In function `zif_pdf_open': > /usr/local/src/php-4.3.11/ext/pdf/pdf.c:472: undefined reference to > `PDF_open_fp' > *** Error code 1 > > > > any pointers > > i do have mysql client installed > The MySQL error is just a warning. The real problem seems to be in the PDF extension... there's a big note on http://www.php.net/pdf about how this needs to be installed through PEAR in 4.3.9 ... not sure what or why, but maybe that's the first place to look? From codebowl at gmail.com Fri Jun 24 17:36:59 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 24 Jun 2005 17:36:59 -0400 Subject: [nycphp-talk] [ OT ] - Upcoming PHP Guru Message-ID: <8d9a428005062414364971915@mail.gmail.com> I thought i would share this ;) http://pg.photos.yahoo.com/ph/codebowl/detail?.dir=/47a6&.dnm=c9d1.jpg&.src=ph -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank_wong2 at informationideas.com Fri Jun 24 17:42:56 2005 From: frank_wong2 at informationideas.com (Frank Wong) Date: Fri, 24 Jun 2005 17:42:56 -0400 Subject: [nycphp-talk] Data encryption on ISP server Message-ID: <42BC7E60.8090001@informationideas.com> I have an encryption strategy question and was wondering if anyone can help. There is data that I'm storing on an ISPs server that I would like to encrypt. This data can be access through the hosted website via 128bit SSL that is username and password protected. Therefore, the data and the password to access the data are all encrypted using a pass-phrase and AES through php. However, my concern is that where and how do I store this all important pass-phrase since it is the key that opens all doors. My ISP does not allow the webserver process to access any directory outside of the www root directory so my pass-phrase needs to be either stored within www root (plus sub directories) or in the database. If either of those places are considers secure, I would not need to use encryption in the first place. My logic must be flawed as I'm certainly not the first to deal with encrypting sensitive information. Where am I not thinking correctly other than behind my desk? Thanks to all in advance. __________________ Frank From lists at zaunere.com Fri Jun 24 17:44:09 2005 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 24 Jun 2005 17:44:09 -0400 Subject: [nycphp-talk] [ OT ] - Upcoming PHP Guru In-Reply-To: <8d9a428005062414364971915@mail.gmail.com> Message-ID: <0MKyxe-1Dlvy61edQ-0001k1@mrelay.perfora.net> > I thought i would share this ;) > http://pg.photos.yahoo.com/ph/codebowl/detail?.dir=/47a6&.dnm=c9d1.jpg&.src=ph Teach him well! Congrats... H From lists at zaunere.com Fri Jun 24 17:47:06 2005 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 24 Jun 2005 17:47:06 -0400 Subject: [nycphp-talk] Getting fragment - after the hashmark Message-ID: <0MKyxe-1Dlw0x0Aac-0001p4@mrelay.perfora.net> This seems like a silly question, and something that would be common. When managing URLs during PHP runtime, how do you get the fragment part that comes after the hashmark? http://us4.php.net/manual/en/function.parse-url.php Says it will return an array containing the fragment part, but the function also requires you to pass in the URL. Yet, I can't find a way to get the URL that includes the fragment, so it's a chicken-before-the-egg problem. I'm probably forgetting the function or variable that does exactly what I want, but I just can't place it. Thanks, H From lists at zaunere.com Fri Jun 24 17:49:21 2005 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 24 Jun 2005 17:49:21 -0400 Subject: [nycphp-talk] Data encryption on ISP server In-Reply-To: <42BC7E60.8090001@informationideas.com> Message-ID: <0MKyxe-1Dlw3730FB-00025D@mrelay.perfora.net> > I have an encryption strategy question and was wondering if anyone can > help. > > There is data that I'm storing on an ISPs server that I would like to > encrypt. This data can be access through the hosted website via 128bit > SSL that is username and password protected. Therefore, the data and > the password to access the data are all encrypted using a pass-phrase > and AES through php. However, my concern is that where and how do I > store this all important pass-phrase since it is the key that opens all > doors. My ISP does not allow the webserver process to access any > directory outside of the www root directory so my pass-phrase needs to > be either stored within www root (plus sub directories) or in the > database. If either of those places are considers secure, I would not > need to use encryption in the first place. > > My logic must be flawed as I'm certainly not the first to deal with > encrypting sensitive information. Where am I not thinking correctly > other than behind my desk? Thanks to all in advance. I can't figure out any better logic that's realistic either. Storing the pass phrase is always the conundrum of encryption. For very secure stuff, you'd get much higher security and flexibility with a dedicated server, if possible. H From mitch.pirtle at gmail.com Fri Jun 24 20:55:44 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Fri, 24 Jun 2005 20:55:44 -0400 Subject: [nycphp-talk] [ OT ] - Upcoming PHP Guru In-Reply-To: <8d9a428005062414364971915@mail.gmail.com> References: <8d9a428005062414364971915@mail.gmail.com> Message-ID: <330532b6050624175532842e6c@mail.gmail.com> On 6/24/05, Joseph Crawford wrote: > I thought i would share this ;) > http://pg.photos.yahoo.com/ph/codebowl/detail?.dir=/47a6&.dnm=c9d1.jpg&.src=ph I dunno Joe, He's got that serious, thoughtful look that you usually find on a python guy's face. ;-) -- Mitch, pretty sure his boy will be a defensive lineman From mitch.pirtle at gmail.com Fri Jun 24 21:00:24 2005 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Fri, 24 Jun 2005 21:00:24 -0400 Subject: [nycphp-talk] Data encryption on ISP server In-Reply-To: <42BC7E60.8090001@informationideas.com> References: <42BC7E60.8090001@informationideas.com> Message-ID: <330532b6050624180014f06ae2@mail.gmail.com> I'd hope that you could at least use htaccess to restrict access to certain files or filetypes, which would be another layer. OTOH, if someone has a shell on that server, then the game is already over and all your additional efforts might accomplish is buy a little time. On the internet, you will ALWAYS be a target. So take a little effort to make sure you are not an attractive one :-) -- Mitch From nyphp at n0p.net Fri Jun 24 21:35:33 2005 From: nyphp at n0p.net (Flavio daCosta) Date: Fri, 24 Jun 2005 21:35:33 -0400 Subject: [nycphp-talk] Data encryption on ISP server In-Reply-To: <42BC7E60.8090001@informationideas.com> References: <42BC7E60.8090001@informationideas.com> Message-ID: <42BCB4E5.9020207@n0p.net> On 06/24/2005 05:42 PM, Frank Wong wrote: --clip-- > However, my concern is that where and how do I > store this all important pass-phrase since it is the key that opens all > doors. Although the suggestion of dedicated hosting sounds better; here is a possible solution: Multifactor encryption. You could perhaps encrypt this _all important passphrase_ with the users password. Then the process would be: User supplies password, this password is then used to decrypt the master passphrase, then the decrypted master passphrase is then used to decrypt the data in the db. If you have multiple users, you could keep the user identification and their version (passphrase encrypted by user password) in an un-encrypted data store. If they need to change their password, you could decrypt the passphrase with their old password; encrypt passphrase with new password and stash back in data store. A few caveats: 1) Not as secure as dedicated hosting. 2) If the master passphrase must be changed, all users must update their passwords. 3) New user setup would be a manual process to get the initial (unencrypted) passphrase encrypted with their password. *****ok, so I shot this off the top of my head so take it with a grain of salt and a word of caution! If there are flaws, I am sure one of the sharp people on this list will point them out. ;) YMMV Flavio From patrick at ramsden.com Fri Jun 24 21:56:43 2005 From: patrick at ramsden.com (Patrick Ramsden) Date: Fri, 24 Jun 2005 20:56:43 -0500 Subject: [nycphp-talk] Data encryption on ISP server In-Reply-To: <42BC7E60.8090001@informationideas.com> Message-ID: <3u3f9p$1h47rb@smtp04.mrf.mail.rcn.net> Frank- Not sure if it's possible with your ISP, but one option that I've seen used in the past is requiring both server and client certificates. If I recally correctly, it was mostly handled through Apache and OpenSSL, although it's been a while... -Pat > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Frank Wong > Sent: Friday, June 24, 2005 4:43 PM > To: NYPHP Talk > Subject: [nycphp-talk] Data encryption on ISP server > > I have an encryption strategy question and was wondering if > anyone can > help. > > There is data that I'm storing on an ISPs server that I would like to > encrypt. This data can be access through the hosted website > via 128bit > SSL that is username and password protected. Therefore, the data and > the password to access the data are all encrypted using a pass-phrase > and AES through php. However, my concern is that where and how do I > store this all important pass-phrase since it is the key that > opens all > doors. My ISP does not allow the webserver process to access any > directory outside of the www root directory so my pass-phrase > needs to > be either stored within www root (plus sub directories) or in the > database. If either of those places are considers secure, I > would not > need to use encryption in the first place. > > My logic must be flawed as I'm certainly not the first to deal with > encrypting sensitive information. Where am I not thinking correctly > other than behind my desk? Thanks to all in advance. > > > __________________ > Frank > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > From nyphp at n0p.net Fri Jun 24 22:44:50 2005 From: nyphp at n0p.net (Flavio daCosta) Date: Fri, 24 Jun 2005 22:44:50 -0400 Subject: [nycphp-talk] Getting fragment - after the hashmark In-Reply-To: <0MKyxe-1Dlw0x0Aac-0001p4@mrelay.perfora.net> References: <0MKyxe-1Dlw0x0Aac-0001p4@mrelay.perfora.net> Message-ID: <42BCC522.6010201@n0p.net> Interestingly enough, It must be parsed at the browser (client side). When I type a url in which contains a hash anchor and then run tcpdump in the background, it appears that it is never sent to the server... Browser Request: http://n0p.net/?blah=test#anchor tcpdump: GET /?blah=test HTTP/1.1 Host: n0p.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050524 Firefox/1.0 (Ubuntu package 1.0.2 MFSA2005-44) ... Learn something new everyday! :) Flavio From lists at zaunere.com Sat Jun 25 02:21:35 2005 From: lists at zaunere.com (Hans Zaunere) Date: Sat, 25 Jun 2005 02:21:35 -0400 Subject: [nycphp-talk] Getting fragment - after the hashmark Message-ID: <0MKyxe-1Dm42q2Zyx-0006q5@mrelay.perfora.net> This seems like a silly question, and something that would be common. When managing URLs during PHP runtime, how do you get the fragment part that comes after the hashmark? http://us4.php.net/manual/en/function.parse-url.php Says it will return an array containing the fragment part, but the function also requires you to pass in the URL. Yet, I can't find a way to get the URL that includes the fragment, so it's a chicken-before-the-egg problem. I'm probably forgetting the function or variable that does exactly what I want, but I just can't place it. Thanks, H From acas at sapo.pt Sat Jun 25 05:10:15 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Sat, 25 Jun 2005 10:10:15 +0100 Subject: [nycphp-talk] Getting fragment - after the hashmark In-Reply-To: <0MKyxe-1Dlw0x0Aac-0001p4@mrelay.perfora.net> Message-ID: <20050625091037.5A6CFA862F@virtu.nyphp.org> Hy Hans. Have you tryed to explode the url, it works for me with this little function, which i changed for you ;) function hashContent ($urlToBlow) { $explodedUrl = explode("#", $urlToBlow); // this works because there is only one # per url $reversedArray = array_reverse($explodedUrl); // because the part you want will be at the end return $reversedArray[0]; // ask only the end... } Hope this works for you. -- Alberto dos Santos email: acas at sapo.pt skype: fatflash Salvaguarda: Este email est? protegido de v?rus e programas maliciosos -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Hans Zaunere Sent: sexta-feira, 24 de Junho de 2005 22:47 To: 'NYPHP Talk' Subject: [nycphp-talk] Getting fragment - after the hashmark This seems like a silly question, and something that would be common. When managing URLs during PHP runtime, how do you get the fragment part that comes after the hashmark? http://us4.php.net/manual/en/function.parse-url.php Says it will return an array containing the fragment part, but the function also requires you to pass in the URL. Yet, I can't find a way to get the URL that includes the fragment, so it's a chicken-before-the-egg problem. I'm probably forgetting the function or variable that does exactly what I want, but I just can't place it. Thanks, H _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From acas at sapo.pt Sat Jun 25 05:16:18 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Sat, 25 Jun 2005 10:16:18 +0100 Subject: [nycphp-talk] Getting fragment - after the hashmark [Sorry] In-Reply-To: <0MKyxe-1Dm42q2Zyx-0006q5@mrelay.perfora.net> Message-ID: <20050625091627.108A1A87BF@virtu.nyphp.org> Sorry Hans, and list... I misunderstood the question and shot my answer. I'm still asleep (though is sat 10am). I will look deeper. tks -- Alberto dos Santos email: acas at sapo.pt web: otrebla.no.sapo.pt skype: fatflash msn: fatflash at hotmail.com Salvaguarda: Este email est? protegido de v?rus e programas maliciosos -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Hans Zaunere Sent: s?bado, 25 de Junho de 2005 7:22 To: 'NYPHP Talk' Subject: [nycphp-talk] Getting fragment - after the hashmark This seems like a silly question, and something that would be common. When managing URLs during PHP runtime, how do you get the fragment part that comes after the hashmark? http://us4.php.net/manual/en/function.parse-url.php Says it will return an array containing the fragment part, but the function also requires you to pass in the URL. Yet, I can't find a way to get the URL that includes the fragment, so it's a chicken-before-the-egg problem. I'm probably forgetting the function or variable that does exactly what I want, but I just can't place it. Thanks, H _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From acas at sapo.pt Sat Jun 25 06:12:07 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Sat, 25 Jun 2005 11:12:07 +0100 Subject: [nycphp-talk] Getting fragment - after the hashmark[redeem] In-Reply-To: <0MKyxe-1Dm42q2Zyx-0006q5@mrelay.perfora.net> Message-ID: <20050625101211.CEF91A862F@virtu.nyphp.org> Hans, Javascript has "location.hash" which return the portion after # of the url. I just don't know how to capture that to php, anybody canhelp here? Bye -- Alberto dos Santos email: acas at sapo.pt web: otrebla.no.sapo.pt skype: fatflash msn: fatflash at hotmail.com Salvaguarda: Este email est? protegido de v?rus e programas maliciosos -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Hans Zaunere Sent: s?bado, 25 de Junho de 2005 7:22 To: 'NYPHP Talk' Subject: [nycphp-talk] Getting fragment - after the hashmark This seems like a silly question, and something that would be common. When managing URLs during PHP runtime, how do you get the fragment part that comes after the hashmark? http://us4.php.net/manual/en/function.parse-url.php Says it will return an array containing the fragment part, but the function also requires you to pass in the URL. Yet, I can't find a way to get the URL that includes the fragment, so it's a chicken-before-the-egg problem. I'm probably forgetting the function or variable that does exactly what I want, but I just can't place it. Thanks, H _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From tom at supertom.com Sat Jun 25 09:18:02 2005 From: tom at supertom.com (Tom Melendez) Date: Sat, 25 Jun 2005 09:18:02 -0400 Subject: [nycphp-talk] Getting fragment - after the hashmark In-Reply-To: <0MKyxe-1Dm42q2Zyx-0006q5@mrelay.perfora.net> References: <0MKyxe-1Dm42q2Zyx-0006q5@mrelay.perfora.net> Message-ID: <42BD598A.9000302@supertom.com> I tried this myself, with no luck. I passed ?foo=bar#tomfrag to a file with a phpinfo call, and the fragment never appears. Weird. Tom http://www.liphp.org Hans Zaunere wrote: >This seems like a silly question, and something that would be common. > >When managing URLs during PHP runtime, how do you get the fragment part that comes after the hashmark? > >http://us4.php.net/manual/en/function.parse-url.php > >Says it will return an array containing the fragment part, but the function also requires you to pass in the URL. Yet, I can't find a way to get the URL that includes the fragment, so it's a chicken-before-the-egg problem. > >I'm probably forgetting the function or variable that does exactly what I want, but I just can't place it. > >Thanks, > >H > > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > > From adam at trachtenberg.com Sat Jun 25 10:04:08 2005 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Sat, 25 Jun 2005 10:04:08 -0400 (EDT) Subject: [nycphp-talk] Getting fragment - after the hashmark In-Reply-To: <42BD598A.9000302@supertom.com> References: <0MKyxe-1Dm42q2Zyx-0006q5@mrelay.perfora.net> <42BD598A.9000302@supertom.com> Message-ID: On Sat, 25 Jun 2005, Tom Melendez wrote: > I tried this myself, with no luck. > > I passed ?foo=bar#tomfrag to a file with a phpinfo call, and the > fragment never appears. Weird. http://www.w3.org/TR/webarch/#media-type-fragid Interpretation of the fragment identifier is performed solely by the agent that dereferences a URI; the fragment identifier is not passed to other systems during the process of retrieval. This means that some intermediaries in Web architecture (such as proxies) have no interaction with fragment identifiers and that redirection (in HTTP [RFC2616], for example) does not account for fragments. -adam -- adam at trachtenberg.com | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From chsnyder at gmail.com Sat Jun 25 10:53:53 2005 From: chsnyder at gmail.com (csnyder) Date: Sat, 25 Jun 2005 10:53:53 -0400 Subject: [nycphp-talk] Data encryption on ISP server In-Reply-To: <42BC7E60.8090001@informationideas.com> References: <42BC7E60.8090001@informationideas.com> Message-ID: On 6/24/05, Frank Wong wrote: > my concern is that where and how do I > store this all important pass-phrase since it is the key that opens all > doors. As other people have already pointed out, dedicated hosting is the way to go if you have data you need to keep secret. The exception to this is if you have data that only needs to be decrypted by you (or the staff of your organization), such as credit card numbers. In that case, you can encrypt the incoming data using an RSA public key. It can then only be decrypted with the matching private key, which you would store locally. You could download and decrypt the data (or upload the private key temporarily and decrypt on the server) whenever you need to access it. But this couldn't be automated, and your users would not be able to access the data. No matter what scheme you use to encrypt, if the decryption key is available on the server, and an attacker can read your application's code, then they have access to the data. Both these conditions are, in theory, true on any shared server. Chris Snyder http://chxo.com/ From chsnyder at gmail.com Sat Jun 25 11:06:06 2005 From: chsnyder at gmail.com (csnyder) Date: Sat, 25 Jun 2005 11:06:06 -0400 Subject: [nycphp-talk] Data encryption on ISP server In-Reply-To: <42BCB4E5.9020207@n0p.net> References: <42BC7E60.8090001@informationideas.com> <42BCB4E5.9020207@n0p.net> Message-ID: On 6/24/05, Flavio daCosta wrote: > You could perhaps encrypt this _all important passphrase_ with the users > password. Then the process would be: User supplies password, this > password is then used to decrypt the master passphrase, then the > decrypted master passphrase is then used to decrypt the data in the db. I like this idea in theory, and it might be an excellent solution for medium-security data. But let's play with it. If the passkey for decrypting the data is itself encrypted using the user's password, and the user's password is not stored on the server (only an md5 or sha1 hash is kept for verification), then this is safe -- provided a realitvely strong password is used. > 3) New user setup would be a manual process to get the initial > (unencrypted) passphrase encrypted with their password. But that's a good thing. If just anyone could come along a register as a new user, then an attacker with shell access could just register and then use his password to decrypt the passphrase, game over. So for a limited userbase with known-strong passwords, this could indeed be a workable solution. There's every possibility that we're overlooking something, though. -- Chris Snyder http://chxo.com/ From chsnyder at gmail.com Sat Jun 25 11:10:49 2005 From: chsnyder at gmail.com (csnyder) Date: Sat, 25 Jun 2005 11:10:49 -0400 Subject: [nycphp-talk] Getting fragment - after the hashmark In-Reply-To: <42BCC522.6010201@n0p.net> References: <0MKyxe-1Dlw0x0Aac-0001p4@mrelay.perfora.net> <42BCC522.6010201@n0p.net> Message-ID: On 6/24/05, Flavio daCosta wrote: > Interestingly enough, It must be parsed at the browser (client side). > When I type a url in which contains a hash anchor and then run tcpdump > in the background, it appears that it is never sent to the server... This is true. You don't get to know the anchor identifier server-side, sorry. Maybe you could use a javascript hack? From nyphp at n0p.net Sat Jun 25 11:43:02 2005 From: nyphp at n0p.net (Flavio daCosta) Date: Sat, 25 Jun 2005 11:43:02 -0400 Subject: [nycphp-talk] Data encryption on ISP server In-Reply-To: References: <42BC7E60.8090001@informationideas.com> <42BCB4E5.9020207@n0p.net> Message-ID: <42BD7B86.3040307@n0p.net> > On 6/24/05, Flavio daCosta wrote: >3) New user setup would be a manual process to get the initial >(unencrypted) passphrase encrypted with their password. On 06/25/2005 11:06 AM, csnyder wrote: > But that's a good thing. If just anyone could come along a register as > a new user, then an attacker with shell access could just register and > then use his password to decrypt the passphrase, game over. I guess you are right, it's not really a caveat (more like a feature ;). It also wouldn't need to be as manual as I first thought. The person with the Authorization to create accounts would be able to encrypt the new users first password during setup seeing as they all ready have the un-encrypted db passphrase (from their password.) Flavio From dmintz at davidmintz.org Sat Jun 25 13:42:27 2005 From: dmintz at davidmintz.org (David Mintz) Date: Sat, 25 Jun 2005 13:42:27 -0400 (EDT) Subject: [nycphp-talk] Data encryption on ISP server In-Reply-To: References: <42BC7E60.8090001@informationideas.com> <42BCB4E5.9020207@n0p.net> Message-ID: I sometimes use a sort of poor man's shared server security: php-cgiwrap, and set permissions as restrictively as possible. Obviously you don't get to run PHP as an Apache module, but -- unless I am mistaken -- your scripts and data files should be no less secure than your shell account itself. --- David Mintz http://davidmintz.org/ From lists at zaunere.com Sat Jun 25 14:14:32 2005 From: lists at zaunere.com (Hans Zaunere) Date: Sat, 25 Jun 2005 14:14:32 -0400 Subject: [nycphp-talk] Getting fragment - after the hashmark In-Reply-To: Message-ID: <0MKz1m-1DmFAn01x9-0004cX@mrelay.perfora.net> > > I tried this myself, with no luck. > > > > I passed ?foo=bar#tomfrag to a file with a phpinfo call, and the > > fragment never appears. Weird. > > http://www.w3.org/TR/webarch/#media-type-fragid > > Interpretation of the fragment identifier is performed solely by the > agent that dereferences a URI; the fragment identifier is not passed > to other systems during the process of retrieval. This means that some > intermediaries in Web architecture (such as proxies) have no > interaction with fragment identifiers and that redirection (in HTTP > [RFC2616], for example) does not account for fragments. Well heck - that covers it. So, when rewriting URLs - for paging for example - there's no way to keep the fragment. I suppose, if it really mattered so much, someone could write a JS snippet that would call ahead to the web server, which would track via the user's session, but that's a lot of work just for a fragment. H From codebowl at gmail.com Sat Jun 25 16:00:16 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Sat, 25 Jun 2005 16:00:16 -0400 Subject: [nycphp-talk] PHPBeans Message-ID: <8d9a428005062513002a9b0802@mail.gmail.com> Has anyone here heard of PHP Beans? I am a bit curious as to why someone would want to store thier PHP Objects on a server other than thier web server. http://www.phpbeans.com/index/news-app/story.3 http://www.phpbeans.com/index/news-app/story.4 I see how it works the question is why? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at jobsforge.com Sat Jun 25 16:58:16 2005 From: matt at jobsforge.com (Matthew Terenzio) Date: Sat, 25 Jun 2005 16:58:16 -0400 Subject: [nycphp-talk] PHPBeans I think Message-ID: All of sudden my mail client won't reply with only selected text. Then I accidentally deleted the original post. I can't blame some people for hating computers. . . anyway. . .PHPBeans. . . Presumably, if you have a need for a distributed system, you want some scalable, reliable way to access remote information. For instance, you need to get information from the accounting departments system before you approve this customer's transaction. if it were a third party vendor, most likely they would expose this remote call as a web service(using SOAP etc), or maybe since Java has a lot of clout they might only support Enterprise Java Beans. But I guess if you are doing it internally, you might say "I love PHP so much, I'm going to make this distributed transaction an end to end PHP deal." With Enterprise Java Beans, you presumably get to write beans that run inside the EJB container and all you have to worry about is implementing the basics and the container will handle security, reliability and a mess of other things, so the developer doesn't have to worry about it. Also, with EJB, you theoretically should be able to write a bean that works in any EJB compliant container, meaning you could move from vendor to vendor. I can't say whether PHPBeans is successfully modeling this type of system, but it looks to be what they are after. Matt Terenzio From codebowl at gmail.com Sat Jun 25 17:20:49 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Sat, 25 Jun 2005 17:20:49 -0400 Subject: [nycphp-talk] PHPBeans I think In-Reply-To: References: Message-ID: <8d9a428005062514206c37c3b6@mail.gmail.com> Matt, thanks for this explanation. So Java and PHP beans are just another way to get data from a 3rd party remote server such as a web service etc.. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From patrick.fee at baesystems.com Mon Jun 27 12:27:33 2005 From: patrick.fee at baesystems.com (Fee, Patrick J (US SSA)) Date: Mon, 27 Jun 2005 12:27:33 -0400 Subject: [nycphp-talk] (OT) Job Posting..... Visual Basic and/or .Net Person needed.....Washington DC area Message-ID: <728813C3358BF04CB3A3DA2341D44A710296C201@e2k11.na.baesystems.com> Hey gang, It's been a while since I posted as I'm settling in to my new position as Group Manager of one of the IT Groups here BAE Systems in the Performance Based Solutions (PBS) area. I'm currently faced with a problem that is NOT directly code-related, but someone out there may be able to help me none-the-less. You folk are one of the places I've always turned to help solve my technical issues... so you were the first place I thought to bounce this current dilemma off of. I currently on the hook to find a Visual Basic Programmer with .NET experience for one of our contracts. I'm looking for a Visual Basic person who is familiar with all facets of the software lifecycle and could come up to speed quickly on a project that I am helping to staff. The need is immediate. You can find out some more information here: http://careers.na.baesystems.com/cgi-bin/prjps/req_ViewJobs.cfm?id=2&rn= 211515&start=1&searchtype=A Or call me at either of the numbers below. I need to find someone immediately, as this project is currently understaffed. If you don't feel you are the right one for this position, please let me know if you are aware of anyone else who might have the necessary qualifications. Thank you. You may now return to your regularly scheduled NYPHP programming issues...... Patrick J. Fee IT Software Analysis Solutions Group Manager 13900 Connecticut Avenue Silver Spring, MD 20906-2919 Tel: (301) 231-1418 Cel: (240) 401-6820 Patrick.Fee at BAESystems.com From lists at zaunere.com Mon Jun 27 22:54:29 2005 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 27 Jun 2005 22:54:29 -0400 Subject: [nycphp-talk] (OT) Job Posting..... Visual Basic and/or .Net Personneeded.....Washington DC area In-Reply-To: <728813C3358BF04CB3A3DA2341D44A710296C201@e2k11.na.baesystems.com> Message-ID: <0MKz1m-1Dn6F41xIa-000097@mrelay.perfora.net> > Thank you. You may now return to your regularly scheduled NYPHP > programming issues...... That's nice... New York PHP "Regularly Scheduled Programming" H From codebowl at gmail.com Tue Jun 28 06:11:46 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 28 Jun 2005 06:11:46 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) Message-ID: <8d9a4280050628031140d2ef92@mail.gmail.com> anyone know where i should report these? I am on the first chapter and found 2 errors already ;) maybe they should be fixed for a 2nd edition. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Tue Jun 28 07:11:53 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Tue, 28 Jun 2005 07:11:53 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <8d9a4280050628031140d2ef92@mail.gmail.com> References: <8d9a4280050628031140d2ef92@mail.gmail.com> Message-ID: <30507-75275@sneakemail.com> Joseph Crawford codebowl-at-gmail.com |nyphp dev/internal group use| wrote: > anyone know where i should report these? I am on the first chapter and > found 2 errors already ;) maybe they should be fixed for a 2nd edition. > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com Why not post 'em here? From codebowl at gmail.com Tue Jun 28 07:20:56 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 28 Jun 2005 07:20:56 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <30507-75275@sneakemail.com> References: <8d9a4280050628031140d2ef92@mail.gmail.com> <30507-75275@sneakemail.com> Message-ID: <8d9a42800506280420700fa21f@mail.gmail.com> page 7 says php supports 3 different sets of tags then lists the 4 sets , <% %>, , page 10 paragraph 1 but it could also contain arbitrary binary data, such as the contents of a JPEG image OF a MIDI file (i think the OF should be OR) those are the first 2 i saw but then again i was just skimming too. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tgales at tgaconnect.com Tue Jun 28 07:27:15 2005 From: tgales at tgaconnect.com (Tim Gales) Date: Tue, 28 Jun 2005 07:27:15 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <30507-75275@sneakemail.com> References: <8d9a4280050628031140d2ef92@mail.gmail.com> <30507-75275@sneakemail.com> Message-ID: <42C13413.8060604@tgaconnect.com> inforequest wrote: > Joseph Crawford codebowl-at-gmail.com |nyphp dev/internal group use| wrote: > >> anyone know where i should report these? I am on the first chapter and >> found 2 errors already ;) maybe they should be fixed for a 2nd edition. >> >> -- >> Joseph Crawford Jr. >> Codebowl Solutions, Inc. >> 1-802-671-2021 >> codebowl at gmail.com > > > Why not post 'em here? > _______________________________________________ You might want to contact the publisher and ask how to submit errata. -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From reto at nerdbude.de Tue Jun 28 09:38:19 2005 From: reto at nerdbude.de (Reto M. Kiefer) Date: Tue, 28 Jun 2005 15:38:19 +0200 Subject: [nycphp-talk] Request from Germany Message-ID: <42C152CB.8040309@nerdbude.de> Dear all, I'm not sure if I'm at the right place to ask, but one of my PHP UG Colleagues -- Aaron Wormus .. here in Frankfurt (Germany) suggested to me that your group is using a 64bit machine and maybe encountered the same problem as I have. If I'm completely wrong - I say sorry - but I would appreciate a hint to whom to write... The problem: I try on a 64bit SuSE 9.3 to compile PHP5 --with-oci8-instant-client support. Oracle doesn't provide 64bit version of the instant client. Therefor the compilation fails because of incompatibilities even after some modifications in the oracle files (see php.net/oic.8 annotations). My idea was to compile php as 32bit binarie by providing export CC='gcc -m32' to the build process. But with these parameter the other extsenions (the one based on libxml2 for example) doesn't work any more. I work for 4 days on this issue and I'm quite frustrated. BTW the compilation with the Oracle Client from a Database install doen't work either with 64bit even if I'm using the 64bit Version of Oracle 9 (i.e. --with-oci8). I'm thankful for every hint and suggestion. All the best from Germany Reto M. Kiefer From frank_wong2 at informationideas.com Tue Jun 28 09:51:19 2005 From: frank_wong2 at informationideas.com (Frank Wong) Date: Tue, 28 Jun 2005 09:51:19 -0400 Subject: [nycphp-talk] Data encryption on ISP server In-Reply-To: <42BC7E60.8090001@informationideas.com> References: <42BC7E60.8090001@informationideas.com> Message-ID: <42C155D7.5030607@informationideas.com> Thanks to all for your input on this topic. I guess the consensus is to use a dedicated server to properly secure the data. One thing that I'm not clear about is specifically how does a dedicated server provide more security? My first instinct is that I can write a compiled object such as a DLL to handle the encryption/decryption. Then I could have the pass-phrase broken up into multiple pieces stored in different locations (maybe files outside of the web tree and databases) where only the DLL has the instructions to reconstruct the pass-phrase. The pass-phrase would also include something that is unique to the server like the MAC ADDRESS so if everything is installed on another computer without recompiling the DLL, the encryption/decryption would fail. This would allow the following scenarios of security. 1) Compromised database - data is encrypted 2) Compromised file system and database - no code with decryption info in files and data is encrypted 3) Compromised file system (including DLL) and database - cannot read compiled DLL, no code with decryption info in files, and data is encrypted Is this kind of what you have in mind while stating that dedicated servers can be secure enough for sensitive data? Thanks. _________________ Frank From lists at zaunere.com Tue Jun 28 10:12:35 2005 From: lists at zaunere.com (Hans Zaunere) Date: Tue, 28 Jun 2005 10:12:35 -0400 Subject: [nycphp-talk] Request from Germany In-Reply-To: <42C152CB.8040309@nerdbude.de> Message-ID: <0MKz1m-1DnGpI1Lmb-0001oq@mrelay.perfora.net> Guten tag, > I'm not sure if I'm at the right place to ask, but one of my PHP UG > Colleagues -- Aaron Wormus .. here in Frankfurt (Germany) suggested to > me that your group is using a 64bit machine and maybe encountered the > same problem as I have. > > If I'm completely wrong - I say sorry - but I would appreciate a hint to > whom to write... You're right on... > The problem: > I try on a 64bit SuSE 9.3 to compile PHP5 --with-oci8-instant-client > support. Oracle doesn't provide 64bit version of the instant client. > > Therefor the compilation fails because of incompatibilities even after > some modifications in the oracle files (see php.net/oic.8 annotations). > My idea was to compile php as 32bit binarie by providing > > export CC='gcc -m32' > > to the build process. But with these parameter the other extsenions (the > one based on libxml2 for example) doesn't work any more. > > I work for 4 days on this issue and I'm quite frustrated. > > BTW the compilation with the Oracle Client from a Database install > doen't work either with 64bit even if I'm using the 64bit Version of > Oracle 9 (i.e. --with-oci8). Well, this is a tough problem. The original 64bit problem I had was trying to get PHP to compile on a box (either Fedora or SuSE) that had *only* 64 bit libs (/usr/lib64 and /lib64). PHP 5's ./configure had /lib and /usr/lib hardwired. The only solution is to use PHP 5.1 (right now, beta 2). Which version are you using? Mixing 32bit and 64bit libraries is asking for trouble. Try version 5.1 of PHP with the 64bit Oracle libs. When compiling, you need to supply --with-libdir=lib64 And an important gotcha: if you have both 32bit and 64bit libraries installed on a system, PHP will default to using the 32 bit libs (/lib and /usr/lib), resulting in what's basically a 32bit build. You need to use the new --with-libdir to force a 64bit build. And, this all of course assumes a 32/64 hybrid system (like Opteron) and not something like Itanium. > I'm thankful for every hint and suggestion. No problem. > All the best from Germany And the best from NY. --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From krook at us.ibm.com Tue Jun 28 10:28:06 2005 From: krook at us.ibm.com (Daniel Krook) Date: Tue, 28 Jun 2005 10:28:06 -0400 Subject: [nycphp-talk] Request from Germany In-Reply-To: <42C152CB.8040309@nerdbude.de> Message-ID: > The problem: > I try on a 64bit SuSE 9.3 to compile PHP5 --with-oci8- > instant-client > support. Oracle doesn't provide 64bit version of the instant client. Reto, I assume you mean the x86_64 version of SuSE? > I work for 4 days on this issue and I'm quite frustrated. Since you've been working for a while on this, why don't you test running the 32-bit version of SuSE on this system as a fallback? I ran into similar problems on an Intel Xeon EM64T system (x86_64) trying to get PHP working with some IBM libraries and that was how I eventually got it to work. My original problem was here: http://lists.nyphp.org/pipermail/talk/2005-February/014037.html Daniel Krook, Advisory IT Specialist Application Development, Production Services - Tools, ibm.com Personal: http://info.krook.org/ BluePages: http://bluepages.redirect.webahead.ibm.com/ BlogPages: http://blogpages.redirect.webahead.ibm.com/ From reto at nerdbude.de Tue Jun 28 10:48:42 2005 From: reto at nerdbude.de (Reto M. Kiefer) Date: Tue, 28 Jun 2005 16:48:42 +0200 Subject: [nycphp-talk] Request from Germany In-Reply-To: <0MKz1m-1DnGpI1Lmb-0001oq@mrelay.perfora.net> References: <0MKz1m-1DnGpI1Lmb-0001oq@mrelay.perfora.net> Message-ID: <42C1634A.3060309@nerdbude.de> Hello Hans, > Well, this is a tough problem. The original 64bit problem I had was > trying to get PHP to compile on a box (either Fedora or SuSE) that > had *only* 64 bit libs (/usr/lib64 and /lib64). PHP 5's ./configure > had /lib and /usr/lib hardwired. The only solution is to use PHP 5.1 > (right now, beta 2). Which version are you using? I tried with 5.0.4 and the latest snap from yesterday. > Mixing 32bit and 64bit libraries is asking for trouble. Try version > 5.1 of PHP with the 64bit Oracle libs. When compiling, you need to > supply --with-libdir=lib64 Doosn't work too... > And an important gotcha: if you have both 32bit and 64bit libraries > installed on a system, PHP will default to using the 32 bit libs > (/lib and /usr/lib), resulting in what's basically a 32bit build. > You need to use the new --with-libdir to force a 64bit build. That was new to me -- thanks. > And, this all of course assumes a 32/64 hybrid system (like Opteron) > and not something like Itanium. It is a dual XEON.. And SuSE installs a BiArch (43nit/64bit). When compiling against Oracle Instant Client (32bit) it results in a linker problem (I think it is one): /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /opt/instantclient10_1//libclntsh.so when searching for -lclntsh /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lclntsh collect2: ld returned 1 exit status make: *** [sapi/cgi/php] Error 1 But I have no clue about such things. Maybe someone else knows about such things... I found a workaround but I'm unhappy with it. I'll post in my next answer to Daniel Krook because it fits theamtical... Bye for now and thanks again for your support Reto From reto at nerdbude.de Tue Jun 28 11:00:42 2005 From: reto at nerdbude.de (Reto M. Kiefer) Date: Tue, 28 Jun 2005 17:00:42 +0200 Subject: [nycphp-talk] Request from Germany In-Reply-To: References: Message-ID: <42C1661A.5000304@nerdbude.de> Hello Daniel, > Reto, I assume you mean the x86_64 version of SuSE? Yes you're right... > Since you've been working for a while on this, why don't you test running > the 32-bit version of SuSE on this system as a fallback? I ran into Silly question, but how can I force a 32bit installation during setup on 64bit machine? I tested a 32bit Suse 9.3 in VMWare on my development machine and php5 compilation --with-oracle-instant-client worked like a charm. ONly little hassle but everything is documented. > similar problems on an Intel Xeon EM64T system (x86_64) trying to get PHP > working with some IBM libraries and that was how I eventually got it to > work. As mentioned in my last answer to Hans I found a workaround but I'm not happy with it... And I will try to replace it as soon as poosible provided that I get the intended soultion to compile... Or I have to wait until Oracle releases the instant client for Linux x86_64. I installed XAMPP from Apachefriends instead of all the SuSE things and the oci8-Extension works with the oracle client installation. It is a cheap trick but for now I can't help myself in another way... Thanks again for your help. Bye Reto PS: Would someone mind if I would stay on your mailing-list. I'm far awy from NY (and I do not know if I could attend to your meeting any time) but I enjoyed the helpful and qualified answers much and I'm confident I can return something... From jeffu at rutgers.edu Tue Jun 28 11:02:14 2005 From: jeffu at rutgers.edu (Jeffrey Uthaichai) Date: Tue, 28 Jun 2005 11:02:14 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <20050628144901.97146A877A@virtu.nyphp.org> Message-ID: <20050628150217.7F36D44435@annwn2.rutgers.edu> In case you did not know, there is errata available for this book. It is rather lengthy and your two points are not in it. It is a pdf available at this page: http://www.samspublishing.com/title/0672327090# Jeff Uthaichai Rutgers, The State University of New Jersey Web Programmer, University Relations 96 Davidson Rd, Piscataway, NJ 08854 (732) 445-3710 x6213 jeffu at rutgers.edu ----Original Message----- Message: 6 Date: Tue, 28 Jun 2005 07:27:15 -0400 From: Tim Gales Subject: Re: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) To: NYPHP Talk Message-ID: <42C13413.8060604 at tgaconnect.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed inforequest wrote: > Joseph Crawford codebowl-at-gmail.com |nyphp dev/internal group use| wrote: > >> anyone know where i should report these? I am on the first chapter >> and found 2 errors already ;) maybe they should be fixed for a 2nd edition. >> >> -- >> Joseph Crawford Jr. >> Codebowl Solutions, Inc. >> 1-802-671-2021 >> codebowl at gmail.com > > > Why not post 'em here? > _______________________________________________ You might want to contact the publisher and ask how to submit errata. -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From krook at us.ibm.com Tue Jun 28 11:06:29 2005 From: krook at us.ibm.com (Daniel Krook) Date: Tue, 28 Jun 2005 11:06:29 -0400 Subject: [nycphp-talk] Request from Germany In-Reply-To: <42C1661A.5000304@nerdbude.de> Message-ID: > Silly question, but how can I force a 32bit installation > during setup on > 64bit machine? Use the 32bit installation CDs/ISOs. It will ask you at the beginning of the installation if you really want to do it, but will proceed normally after that. > PS: Would someone mind if I would stay on your mailing- > list. I'm far awy > from NY (and I do not know if I could attend to your > meeting any time) > but I enjoyed the helpful and qualified answers much and > I'm confident I > can return something... Not at all. Welcome to the list. Many of our subscribers are timezones away from NYC. :) Daniel Krook, Advisory IT Specialist Application Development, Production Services - Tools, ibm.com Personal: http://info.krook.org/ BluePages: http://bluepages.redirect.webahead.ibm.com/ BlogPages: http://blogpages.redirect.webahead.ibm.com/ From codebowl at gmail.com Tue Jun 28 11:12:55 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 28 Jun 2005 11:12:55 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <20050628150217.7F36D44435@annwn2.rutgers.edu> References: <20050628144901.97146A877A@virtu.nyphp.org> <20050628150217.7F36D44435@annwn2.rutgers.edu> Message-ID: <8d9a4280050628081277e41aba@mail.gmail.com> looking at the errata, i thought there was something wrong with thier --$a but then i thought maybe it was just the font they used didnt space them enough ;) anyone know how i go about submitting these corrections? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Tue Jun 28 11:16:51 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 28 Jun 2005 11:16:51 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <8d9a4280050628081277e41aba@mail.gmail.com> References: <20050628144901.97146A877A@virtu.nyphp.org> <20050628150217.7F36D44435@annwn2.rutgers.edu> <8d9a4280050628081277e41aba@mail.gmail.com> Message-ID: <8d9a4280050628081625eb0923@mail.gmail.com> wow for a study guide there are a lot of errors lol ima guess they didnt have the best proofreaders ( if any at all :) ) no disrespect to any whom did proofread :) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at jiffycomp.com Tue Jun 28 11:25:20 2005 From: matt at jiffycomp.com (Matt Morgan) Date: Tue, 28 Jun 2005 11:25:20 -0400 Subject: [nycphp-talk] Request from Germany In-Reply-To: <42C1634A.3060309@nerdbude.de> References: <0MKz1m-1DnGpI1Lmb-0001oq@mrelay.perfora.net> <42C1634A.3060309@nerdbude.de> Message-ID: <42C16BE0.3080106@jiffycomp.com> Reto M. Kiefer wrote: > Hello Hans, > >> Well, this is a tough problem. The original 64bit problem I had was >> trying to get PHP to compile on a box (either Fedora or SuSE) that >> had *only* 64 bit libs (/usr/lib64 and /lib64). PHP 5's ./configure >> had /lib and /usr/lib hardwired. The only solution is to use PHP 5.1 >> (right now, beta 2). Which version are you using? > > > I tried with 5.0.4 and the latest snap from yesterday. > >> Mixing 32bit and 64bit libraries is asking for trouble. Try version >> 5.1 of PHP with the 64bit Oracle libs. When compiling, you need to >> supply --with-libdir=lib64 > > > Doosn't work too... > >> And an important gotcha: if you have both 32bit and 64bit libraries >> installed on a system, PHP will default to using the 32 bit libs >> (/lib and /usr/lib), resulting in what's basically a 32bit build. >> You need to use the new --with-libdir to force a 64bit build. > > > That was new to me -- thanks. > >> And, this all of course assumes a 32/64 hybrid system (like Opteron) >> and not something like Itanium. > > > It is a dual XEON.. And SuSE installs a BiArch (43nit/64bit). I'm way in over my head with most of this thread, but ... a XEON (dual or not) is a 32-bit machine. I thought. Could this be right? [remainder of thread snipped] --Matt From acas at sapo.pt Tue Jun 28 11:48:14 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Tue, 28 Jun 2005 16:48:14 +0100 Subject: [nycphp-talk] Request from Germany In-Reply-To: <42C16BE0.3080106@jiffycomp.com> Message-ID: <20050628154820.5698BA85FE@virtu.nyphp.org> Matt, at first I thought you were right, until I saw this: http://www.intel.com/products/processor/xeon/index.htm Bye. -- Alberto dos Santos email: acas at sapo.pt web: otrebla.no.sapo.pt skype: fatflash msn: fatflash at hotmail.com Salvaguarda: Este email est? protegido de v?rus e programas maliciosos -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Matt Morgan Sent: ter?a-feira, 28 de Junho de 2005 16:25 To: NYPHP Talk Subject: Re: [nycphp-talk] Request from Germany Reto M. Kiefer wrote: > Hello Hans, > >> Well, this is a tough problem. The original 64bit problem I had was >> trying to get PHP to compile on a box (either Fedora or SuSE) that >> had *only* 64 bit libs (/usr/lib64 and /lib64). PHP 5's ./configure >> had /lib and /usr/lib hardwired. The only solution is to use PHP 5.1 >> (right now, beta 2). Which version are you using? > > > I tried with 5.0.4 and the latest snap from yesterday. > >> Mixing 32bit and 64bit libraries is asking for trouble. Try version >> 5.1 of PHP with the 64bit Oracle libs. When compiling, you need to >> supply --with-libdir=lib64 > > > Doosn't work too... > >> And an important gotcha: if you have both 32bit and 64bit libraries >> installed on a system, PHP will default to using the 32 bit libs >> (/lib and /usr/lib), resulting in what's basically a 32bit build. >> You need to use the new --with-libdir to force a 64bit build. > > > That was new to me -- thanks. > >> And, this all of course assumes a 32/64 hybrid system (like Opteron) >> and not something like Itanium. > > > It is a dual XEON.. And SuSE installs a BiArch (43nit/64bit). I'm way in over my head with most of this thread, but ... a XEON (dual or not) is a 32-bit machine. I thought. Could this be right? [remainder of thread snipped] --Matt _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From reto at nerdbude.de Tue Jun 28 11:54:20 2005 From: reto at nerdbude.de (Reto M. Kiefer) Date: Tue, 28 Jun 2005 17:54:20 +0200 Subject: [nycphp-talk] Request from Germany In-Reply-To: <42C16BE0.3080106@jiffycomp.com> References: <0MKz1m-1DnGpI1Lmb-0001oq@mrelay.perfora.net> <42C1634A.3060309@nerdbude.de> <42C16BE0.3080106@jiffycomp.com> Message-ID: <42C172AC.2050505@nerdbude.de> Hi Matt, > I'm way in over my head with most of this thread, but ... a XEON (dual > or not) is a 32-bit machine. I thought. Could this be right? I'm pretty sure it is 64bit as the specs are telling so. And Suse installs a biarch version of Linux (x86_32/x86_64). CU Reto From nyphp at n0p.net Tue Jun 28 12:05:07 2005 From: nyphp at n0p.net (Flavio daCosta) Date: Tue, 28 Jun 2005 12:05:07 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <8d9a4280050628081625eb0923@mail.gmail.com> References: <20050628144901.97146A877A@virtu.nyphp.org> <20050628150217.7F36D44435@annwn2.rutgers.edu> <8d9a4280050628081277e41aba@mail.gmail.com> <8d9a4280050628081625eb0923@mail.gmail.com> Message-ID: <42C17533.50601@n0p.net> On 06/28/2005 11:16 AM, Joseph Crawford wrote: > wow for a study guide there are a lot of errors lol ima guess they didnt > have the best proofreaders ( if any at all :) ) no disrespect to any > whom did proofread :) Heh, not only that, but for an official study guide, I felt it was a bit off the mark in places (it shouldn't be your only study guide.) Defiantly review the PHP manual (). Although there were questions on the exam that weren't covered in either of these places... Flavio Zend Certified Engineer (2004-09-15 ZEND001342) From codebowl at gmail.com Tue Jun 28 12:12:15 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 28 Jun 2005 12:12:15 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <42C17533.50601@n0p.net> References: <20050628144901.97146A877A@virtu.nyphp.org> <20050628150217.7F36D44435@annwn2.rutgers.edu> <8d9a4280050628081277e41aba@mail.gmail.com> <8d9a4280050628081625eb0923@mail.gmail.com> <42C17533.50601@n0p.net> Message-ID: <8d9a4280050628091270230709@mail.gmail.com> wow the guide said everything needed for the exam was covered in the study guide ;) my guess is this is not true lol -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Tue Jun 28 13:10:46 2005 From: chsnyder at gmail.com (csnyder) Date: Tue, 28 Jun 2005 13:10:46 -0400 Subject: [nycphp-talk] Data encryption on ISP server In-Reply-To: <42C155D7.5030607@informationideas.com> References: <42BC7E60.8090001@informationideas.com> <42C155D7.5030607@informationideas.com> Message-ID: The reason we tend to think that dedicated servers are safer is that at the system level, any decryption key or suid program that can be run by the webserver on a shared box can be run by anybody else who can script that webserver. If "nobody" can run it, I can run it. We all know that isn't the end of the story, and that you can build fences that keep users on shared hosts from getting into each others' business. A properly configured shared host at an ISP is likely to be more secure than a Linux box managed by a part-time sysadmin. But removing other users from the picture reduces the risk, and the number of hoops you have to go through to protect things. I mean, write and compile a binary so it can be suid? It's a lot easier to just run a script as root. -- Chris Snyder http://chxo.com/ From phil at bearingasset.com Tue Jun 28 15:02:53 2005 From: phil at bearingasset.com (Phil Duffy) Date: Tue, 28 Jun 2005 15:02:53 -0400 Subject: [nycphp-talk] Parse Error: Unexpected "; ", expected T_FUNCTION in Line 247 In-Reply-To: Message-ID: <20050628190302.5A715A863B@virtu.nyphp.org> Greetings to the List, I thought I recognized the above error message until I saw that Line 247 was simply the trailing tag to . There was no ";" on that line, and a review of neighboring code did not reveal anything out of order. Has anybody seen this type of behavior before? My appreciation in advance. Phil From codebowl at gmail.com Tue Jun 28 15:11:01 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 28 Jun 2005 15:11:01 -0400 Subject: [nycphp-talk] Parse Error: Unexpected "; ", expected T_FUNCTION in Line 247 In-Reply-To: <20050628190302.5A715A863B@virtu.nyphp.org> References: <20050628190302.5A715A863B@virtu.nyphp.org> Message-ID: <8d9a4280050628121118fd3bc2@mail.gmail.com> show your code ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nestorflorez at earthlink.net Tue Jun 28 15:19:06 2005 From: nestorflorez at earthlink.net (Nestor Florez) Date: Tue, 28 Jun 2005 12:19:06 -0700 (GMT-07:00) Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) Message-ID: <27725968.1119986346061.JavaMail.root@wamui-mouette.atl.sa.earthlink.net> OK Joe, you passed the first test on you certification :-) -----Original Message----- From: inforequest <1j0lkq002 at sneakemail.com> Sent: Jun 28, 2005 4:11 AM To: talk at lists.nyphp.org Subject: Re: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) Joseph Crawford codebowl-at-gmail.com |nyphp dev/internal group use| wrote: > anyone know where i should report these? I am on the first chapter and > found 2 errors already ;) maybe they should be fixed for a 2nd edition. > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com Why not post 'em here? _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From codebowl at gmail.com Tue Jun 28 15:32:01 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 28 Jun 2005 15:32:01 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <27725968.1119986346061.JavaMail.root@wamui-mouette.atl.sa.earthlink.net> References: <27725968.1119986346061.JavaMail.root@wamui-mouette.atl.sa.earthlink.net> Message-ID: <8d9a428005062812322906aa22@mail.gmail.com> lol now that's funny ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From acas at sapo.pt Tue Jun 28 15:35:04 2005 From: acas at sapo.pt (Alberto dos Santos) Date: Tue, 28 Jun 2005 20:35:04 +0100 Subject: [nycphp-talk] Parse Error: Unexpected "; ", expected T_FUNCTION in Line 247 In-Reply-To: <20050628190302.5A715A863B@virtu.nyphp.org> Message-ID: If your command line is like this . you've got your error, if not show us the code -- Alberto dos Santos email: acas at sapo.pt skype: fatflash Este email e seus anexos est?o protegidos de v?rus e programas maliciosos. Se notar algo de anormal por favor informe-me. Obrigado. This email and it?s attachments are protected from virus and malicious software. If you notice something unusual please report. Thanks. Este email y sus anexos est?n protegidos contra virus y software mal?volo. Si usted nota algo inusual por favor divulgar. Gracias. Ces email et c'est des attachements sont prot?g?s contre le virus et le logiciel malveillant. Si vous notez quelque chose de peu commun svp pour rapporter. Merci. Questi email ? su collegamenti sono protetti dal virus e dal software cattivo. Se notate qualche cosa di insolito prego segnalare. Grazie. > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phil Duffy > Sent: Tuesday, June 28, 2005 8:03 PM > To: 'NYPHP Talk' > Subject: [nycphp-talk] Parse Error: Unexpected ";", expected > T_FUNCTION in Line 247 > > Greetings to the List, > > I thought I recognized the above error message until I saw > that Line 247 was > simply the trailing tag to . There was no ";" > on that line, > and a review of neighboring code did not reveal anything out of order. > > Has anybody seen this type of behavior before? > > My appreciation in advance. > > Phil > > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff.knight at gmail.com Tue Jun 28 15:44:03 2005 From: jeff.knight at gmail.com (Jeff Knight) Date: Tue, 28 Jun 2005 15:44:03 -0400 Subject: [nycphp-talk] Parse Error: Unexpected "; ", expected T_FUNCTION in Line 247 In-Reply-To: References: <20050628190302.5A715A863B@virtu.nyphp.org> Message-ID: <2ca9ba91050628124413bc3012@mail.gmail.com> The missing ";" is from further up in the code. It doesn't complain about it until the closing ?> because it isn't sure until then that you aren't going to provide it. On 6/28/05, Alberto dos Santos wrote: > If your command line is like this . you've got your error, > if not show us the code > > > > > > > -- > > Alberto dos Santos > > email: acas at sapo.pt > skype: fatflash > > Este email e seus anexos est?o protegidos de v?rus e programas maliciosos. > Se notar algo de anormal por favor informe-me. Obrigado. > This email and it's attachments are protected from virus and malicious > software. If you notice something unusual please report. Thanks. > Este email y sus anexos est?n protegidos contra virus y software mal?volo. > Si usted nota algo inusual por favor divulgar. Gracias. > Ces email et c'est des attachements sont prot?g?s contre le virus et le > logiciel malveillant. Si vous notez quelque chose de peu commun svp pour > rapporter. Merci. > Questi email ? su collegamenti sono protetti dal virus e dal software > cattivo. Se notate qualche cosa di insolito prego segnalare. Grazie. > > > > > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org > > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phil > Duffy > > Sent: Tuesday, June 28, 2005 8:03 PM > > To: 'NYPHP Talk' > > Subject: [nycphp-talk] Parse Error: Unexpected ";", expected > > T_FUNCTION in Line 247 > > > > > Greetings to the List, > > > > I thought I recognized the above error message until I saw > > that Line 247 was > > simply the trailing tag to . There was no ";" > > on that line, > > and a review of neighboring code did not reveal anything out of order. > > > > Has anybody seen this type of behavior before? > > > > My appreciation in advance. > > > > Phil > > > > > > > > _______________________________________________ > > New York PHP Talk Mailing List > > AMP Technology > > Supporting Apache, MySQL and PHP > > http://lists.nyphp.org/mailman/listinfo/talk > > http://www.nyphp.org > > > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > From damovand at yahoo.com Tue Jun 28 15:51:40 2005 From: damovand at yahoo.com (Leila Lappin) Date: Tue, 28 Jun 2005 12:51:40 -0700 (PDT) Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <8d9a42800506280420700fa21f@mail.gmail.com> Message-ID: <20050628195140.29111.qmail@web30812.mail.mud.yahoo.com> --- Joseph Crawford wrote: > page 7 > says php supports 3 different sets of tags then > lists the 4 sets , > <% %>, , > > page 10 paragraph 1 > but it could also contain arbitrary binary data, > such as the contents of a > JPEG image OF a MIDI file > (i think the OF should be OR) > > those are the first 2 i saw but then again i was > just skimming too. > > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org So could someone please clarify what is true? Does PHP support <% %> and . I tried <% %> and it didn't work. So I just figured that there was an error in that paragraph and left at that. ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com From frank_wong2 at informationideas.com Tue Jun 28 15:55:00 2005 From: frank_wong2 at informationideas.com (Frank Wong) Date: Tue, 28 Jun 2005 15:55:00 -0400 Subject: [nycphp-talk] Data encryption on ISP server In-Reply-To: References: <42BC7E60.8090001@informationideas.com> <42C155D7.5030607@informationideas.com> Message-ID: <42C1AB14.90509@informationideas.com> csnyder wrote: >The reason we tend to think that dedicated servers are safer is that >at the system level, any decryption key or suid program that can be >run by the webserver on a shared box can be run by anybody else who >can script that webserver. If "nobody" can run it, I can run it. > >We all know that isn't the end of the story, and that you can build >fences that keep users on shared hosts from getting into each others' >business. A properly configured shared host at an ISP is likely to be >more secure than a Linux box managed by a part-time sysadmin. > >But removing other users from the picture reduces the risk, and the >number of hoops you have to go through to protect things. I mean, >write and compile a binary so it can be suid? It's a lot easier to >just run a script as root. > > > > Thanks again for the insight. That makes sense to me now. It is easier to secure data on a dedicated server and not that a shared server can never be as secure as a dedicated server. Now is time to convince the client to splurge on a dedicated server. _________ Frank From codebowl at gmail.com Tue Jun 28 15:55:58 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 28 Jun 2005 15:55:58 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <20050628195140.29111.qmail@web30812.mail.mud.yahoo.com> References: <8d9a42800506280420700fa21f@mail.gmail.com> <20050628195140.29111.qmail@web30812.mail.mud.yahoo.com> Message-ID: <8d9a428005062812555fef5012@mail.gmail.com> PHP does infact support them both, it doesnt support the ASP style tags by default you have to enable them in the php.ini <% %> -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at supertom.com Tue Jun 28 15:56:24 2005 From: tom at supertom.com (Tom Melendez) Date: Tue, 28 Jun 2005 15:56:24 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <20050628195140.29111.qmail@web30812.mail.mud.yahoo.com> References: <20050628195140.29111.qmail@web30812.mail.mud.yahoo.com> Message-ID: <42C1AB68.4080607@supertom.com> Hi Leila, You probably need to enable asp_tags in php.ini! Tom http://www.liphp.org Leila Lappin wrote: >--- Joseph Crawford wrote: > > > >>page 7 >>says php supports 3 different sets of tags then >>lists the 4 sets , >><% %>, , >> >>page 10 paragraph 1 >>but it could also contain arbitrary binary data, >>such as the contents of a >>JPEG image OF a MIDI file >>(i think the OF should be OR) >> >>those are the first 2 i saw but then again i was >>just skimming too. >> >> >>-- >>Joseph Crawford Jr. >>Codebowl Solutions, Inc. >>1-802-671-2021 >>codebowl at gmail.com >> >> >>>_______________________________________________ >>> >>> >>New York PHP Talk Mailing List >>AMP Technology >>Supporting Apache, MySQL and PHP >>http://lists.nyphp.org/mailman/listinfo/talk >>http://www.nyphp.org >> >> > >So could someone please clarify what is true? Does >PHP support <% %> and . I tried <% %> and it didn't work. So I >just figured that there was an error in that paragraph >and left at that. > > > >____________________________________________________ >Yahoo! Sports >Rekindle the Rivalries. Sign up for Fantasy Football >http://football.fantasysports.yahoo.com >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > > > From krook at us.ibm.com Tue Jun 28 15:57:40 2005 From: krook at us.ibm.com (Daniel Krook) Date: Tue, 28 Jun 2005 15:57:40 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <20050628195140.29111.qmail@web30812.mail.mud.yahoo.com> Message-ID: > So could someone please clarify what is true? Does > PHP support <% %> and . I tried <% %> and it didn't work. So I > just figured that there was an error in that paragraph > and left at that. Look for: asp_tags = Off Daniel Krook, Advisory IT Specialist Application Development, Production Services - Tools, ibm.com Personal: http://info.krook.org/ BluePages: http://bluepages.redirect.webahead.ibm.com/ BlogPages: http://blogpages.redirect.webahead.ibm.com/ From nyphp at n0p.net Tue Jun 28 16:02:38 2005 From: nyphp at n0p.net (Flavio daCosta) Date: Tue, 28 Jun 2005 16:02:38 -0400 Subject: [nycphp-talk] Parse Error: Unexpected "; ", expected T_FUNCTION in Line 247 In-Reply-To: <20050628190302.5A715A863B@virtu.nyphp.org> References: <20050628190302.5A715A863B@virtu.nyphp.org> Message-ID: <42C1ACDE.9070701@n0p.net> Sounds like there is an extra ';' where it isn't supposed to be. It can be re-produced with the following code: Flavio From nestorflorez at earthlink.net Tue Jun 28 16:03:42 2005 From: nestorflorez at earthlink.net (Nestor Florez) Date: Tue, 28 Jun 2005 13:03:42 -0700 (GMT-07:00) Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) Message-ID: <1597594.1119989022752.JavaMail.root@wamui-mouette.atl.sa.earthlink.net> Php supports but with apache you can change it to accept <% %> or some other way :-) -----Original Message----- From: Leila Lappin Sent: Jun 28, 2005 12:51 PM To: NYPHP Talk Subject: Re: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) --- Joseph Crawford wrote: > page 7 > says php supports 3 different sets of tags then > lists the 4 sets , > <% %>, , > > page 10 paragraph 1 > but it could also contain arbitrary binary data, > such as the contents of a > JPEG image OF a MIDI file > (i think the OF should be OR) > > those are the first 2 i saw but then again i was > just skimming too. > > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org So could someone please clarify what is true? Does PHP support <% %> and . I tried <% %> and it didn't work. So I just figured that there was an error in that paragraph and left at that. ____________________________________________________ Yahoo! Sports Rekindle the Rivalries. Sign up for Fantasy Football http://football.fantasysports.yahoo.com _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From nestorflorez at earthlink.net Tue Jun 28 16:04:55 2005 From: nestorflorez at earthlink.net (Nestor Florez) Date: Tue, 28 Jun 2005 13:04:55 -0700 (GMT-07:00) Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) Message-ID: <19412268.1119989095746.JavaMail.root@wamui-mouette.atl.sa.earthlink.net> Aha, that is it, knew therewas some way to do this :-) -----Original Message----- From: Joseph Crawford Sent: Jun 28, 2005 12:55 PM To: NYPHP Talk Subject: Re: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) PHP does infact support them both, it doesnt support the ASP style tags by default you have to enable them in the php.ini <% %> -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com From codebowl at gmail.com Tue Jun 28 16:05:22 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 28 Jun 2005 16:05:22 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <1597594.1119989022752.JavaMail.root@wamui-mouette.atl.sa.earthlink.net> References: <1597594.1119989022752.JavaMail.root@wamui-mouette.atl.sa.earthlink.net> Message-ID: <8d9a428005062813053ced56b7@mail.gmail.com> Nestor, PHP supports all 4 ways i showed above, nothing you need to do to PHP, except the asp tags you have to enable in the php.ini file -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From damovand at yahoo.com Tue Jun 28 16:09:41 2005 From: damovand at yahoo.com (Leila Lappin) Date: Tue, 28 Jun 2005 13:09:41 -0700 (PDT) Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <42C1AB68.4080607@supertom.com> Message-ID: <20050628200941.5305.qmail@web30808.mail.mud.yahoo.com> --- Tom Melendez wrote: > Hi Leila, > > You probably need to enable asp_tags in php.ini! > > Tom > > http://www.liphp.org > > Leila Lappin wrote: > > >--- Joseph Crawford wrote: > > > > > > > >>page 7 > >>says php supports 3 different sets of tags then > >>lists the 4 sets , > >><% %>, , > >> > >>page 10 paragraph 1 > >>but it could also contain arbitrary binary data, > >>such as the contents of a > >>JPEG image OF a MIDI file > >>(i think the OF should be OR) > >> > >>those are the first 2 i saw but then again i was > >>just skimming too. > >> > >> > >>-- > >>Joseph Crawford Jr. > >>Codebowl Solutions, Inc. > >>1-802-671-2021 > >>codebowl at gmail.com > >> > >> > >>>_______________________________________________ > >>> > >>> > >>New York PHP Talk Mailing List > >>AMP Technology > >>Supporting Apache, MySQL and PHP > >>http://lists.nyphp.org/mailman/listinfo/talk > >>http://www.nyphp.org > >> > >> > > > >So could someone please clarify what is true? Does > >PHP support <% %> and . I tried <% %> and it didn't work. So > I > >just figured that there was an error in that > paragraph > >and left at that. > > > > > > > >____________________________________________________ > > >Yahoo! Sports > >Rekindle the Rivalries. Sign up for Fantasy > Football > >http://football.fantasysports.yahoo.com > >_______________________________________________ > >New York PHP Talk Mailing List > >AMP Technology > >Supporting Apache, MySQL and PHP > >http://lists.nyphp.org/mailman/listinfo/talk > >http://www.nyphp.org > > > > > > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > But is it good practice? I think I remember reading somewhere that developers should stay away from ASP like tags. Personally I don't think I will be using that tag but it is good to know it's a valid tag. I'm really grateful to be getting so much good information from the members of this list. To continue on a related note, I have used which is similar to a JSP tag and found it to be very useful. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From codebowl at gmail.com Tue Jun 28 16:13:35 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 28 Jun 2005 16:13:35 -0400 Subject: [nycphp-talk] [ OT ] Zend Certification Book (Typos & Errors) In-Reply-To: <20050628200941.5305.qmail@web30808.mail.mud.yahoo.com> References: <42C1AB68.4080607@supertom.com> <20050628200941.5305.qmail@web30808.mail.mud.yahoo.com> Message-ID: <8d9a428005062813137ee4d2a0@mail.gmail.com> yea the certification guide said to stay away from that tag if you are going to use mixed technologies but i dont see why the ASP engine would execute a PHP file... I suppose if you accidentally named it .asp you would have problems. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Tue Jun 28 16:16:30 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 28 Jun 2005 16:16:30 -0400 Subject: [nycphp-talk] Bitwise Operators Message-ID: <8d9a42800506281316533f5af6@mail.gmail.com> Can anyone here point me in a good direction for a tutorial or something about these? I dont understand bits at all. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcech at phpwerx.net Tue Jun 28 16:37:30 2005 From: dcech at phpwerx.net (Dan Cech) Date: Tue, 28 Jun 2005 16:37:30 -0400 Subject: [nycphp-talk] Bitwise Operators In-Reply-To: <8d9a42800506281316533f5af6@mail.gmail.com> References: <8d9a42800506281316533f5af6@mail.gmail.com> Message-ID: <42C1B50A.2080501@phpwerx.net> Joseph Crawford wrote: > Can anyone here point me in a good direction for a tutorial or something > about these? I dont understand bits at all. Bitwise operators are easy, and if you use *nix you use them all the time in the form of file permissions. Basically any integer can be represented in binary form: 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 etc. Bitwise operators simply operate on the binary representation of a number, one bit at a time, eg: 1 & 3 = 1 0001 & 0011 = 0001 3 | 6 = 7 0011 | 0110 = 0111 Dan From gatzby3jr at gmail.com Tue Jun 28 16:53:42 2005 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Tue, 28 Jun 2005 16:53:42 -0400 Subject: [nycphp-talk] Parse Error: Unexpected "; ", expected T_FUNCTION in Line 247 In-Reply-To: <42C1ACDE.9070701@n0p.net> References: <20050628190302.5A715A863B@virtu.nyphp.org> <42C1ACDE.9070701@n0p.net> Message-ID: <29da5d150506281353c2c1be4@mail.gmail.com> I usually get that error when there is an extra ';' in my code. I find that error extremely unhelpful, and threw me off greatly when I was first starting. I understand why they do it (as previously mentioned), however I feel they should reconsider the message if possible. -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Tue Jun 28 17:21:27 2005 From: 1j0lkq002 at sneakemail.com (inforequest) Date: 28 Jun 2005 17:21:27 -0400 Subject: [nycphp-talk] [ OT ] pre meeting - killing time Message-ID: <12035-04443@sneakemail.com> anybody else waiting around before the meeting tonight? I'm tempted to pop into McAnne's b&g on 58 west of Madison and enjoy a pre-meeting draught....it's only 5pm.... -john andrews From codebowl at gmail.com Tue Jun 28 17:24:32 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 28 Jun 2005 17:24:32 -0400 Subject: [nycphp-talk] Bitwise Operators In-Reply-To: <42C1B50A.2080501@phpwerx.net> References: <8d9a42800506281316533f5af6@mail.gmail.com> <42C1B50A.2080501@phpwerx.net> Message-ID: <8d9a4280050628142443a16e84@mail.gmail.com> ahh dan is a binary head ;) yea i understand how they work i guess what i dont understand is how the programmer is supposed to know how to convert a decimal to binary and do the shift math in thier head to program fast at all :) basically i need to know how to make an integer into binary. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcech at phpwerx.net Tue Jun 28 17:37:04 2005 From: dcech at phpwerx.net (Dan Cech) Date: Tue, 28 Jun 2005 17:37:04 -0400 Subject: [nycphp-talk] Bitwise Operators In-Reply-To: <8d9a4280050628142443a16e84@mail.gmail.com> References: <8d9a42800506281316533f5af6@mail.gmail.com> <42C1B50A.2080501@phpwerx.net> <8d9a4280050628142443a16e84@mail.gmail.com> Message-ID: <42C1C300.3010309@phpwerx.net> Joseph Crawford wrote: > ahh dan is a binary head ;) > > yea i understand how they work i guess what i dont understand is how the > programmer is supposed to know how to convert a decimal to binary and do the > shift math in thier head to program fast at all :) > > basically i need to know how to make an integer into binary. Too easy: http://www.goshen.edu/compsci/mis200/decbinary.htm Dan From dmintz at davidmintz.org Tue Jun 28 22:41:53 2005 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 28 Jun 2005 22:41:53 -0400 (EDT) Subject: [nycphp-talk] Bitwise Operators In-Reply-To: <42C1C300.3010309@phpwerx.net> References: <8d9a42800506281316533f5af6@mail.gmail.com> <42C1B50A.2080501@phpwerx.net> <8d9a4280050628142443a16e84@mail.gmail.com> <42C1C300.3010309@phpwerx.net> Message-ID: On Tue, 28 Jun 2005, Dan Cech wrote: > Joseph Crawford wrote: > > ahh dan is a binary head ;) > > > > yea i understand how they work i guess what i dont understand is how the > > programmer is supposed to know how to convert a decimal to binary and do the > > shift math in thier head to program fast at all :) > > > > basically i need to know how to make an integer into binary. > > Too easy: > > http://www.goshen.edu/compsci/mis200/decbinary.htm > If you don't want to do it all yourself by hand as a learning exercise (or whatever), you might like http://us3.php.net/manual/en/function.decbin.php Incidentally, I welcomed Joe's first comment in this thread -- essentially, "I don't know from bits" -- because neither do I, really. (-: It seems you can program PHP for years without (knowingly) shifting any bits. --- David Mintz http://davidmintz.org/ From phil at bearingasset.com Tue Jun 28 22:58:07 2005 From: phil at bearingasset.com (Phil Duffy) Date: Tue, 28 Jun 2005 22:58:07 -0400 Subject: [nycphp-talk] Parse Error: Unexpected "; ", expected T_FUNCTION in Line 247 In-Reply-To: <8d9a4280050628121118fd3bc2@mail.gmail.com> Message-ID: <20050629025824.7D106A85FE@virtu.nyphp.org> My thanks to the following who responded to my call for help: Flavio - I tested your code and reproduced the same error message. Brian - The extra ";" is the prime suspect, but two visual reviews have not surfaced the problem. Jeff - I suspect you are right about the missing (or extra) ";" further up the code. That makes sense. Joseph - The suspects have been narrowed with the help of Flavio, Brian and Jeff, but the problem is still unresolved. What is the best way to send the code - attachment or paste into e-mail? Phil _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: Tuesday, June 28, 2005 2:11 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 show your code ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cfeldmann at gmail.com Wed Jun 29 00:30:13 2005 From: cfeldmann at gmail.com (chris feldmann) Date: Wed, 29 Jun 2005 00:30:13 -0400 Subject: [nycphp-talk] [ OT ] pre meeting - killing time In-Reply-To: <12035-04443@sneakemail.com> References: <12035-04443@sneakemail.com> Message-ID: <7e2c731f0506282130738044f6@mail.gmail.com> Hmm, I guess not. Lively meeting, no? But even in light of the take-home moment ("Now you know what we know. So what?") I though it was interesting to see that IBM used the same methodology I used last time I looked for a CMS (troll boards, google search) and made the same decision, mambo. I thought I was just wallowing in my own ignorance. Turns out I'm top corporate caliber! On 28 Jun 2005 17:21:27 -0400, inforequest <1j0lkq002 at sneakemail.com> wrote: > > > anybody else waiting around before the meeting tonight? I'm tempted to pop > into McAnne's b&g on 58 west of Madison and enjoy a pre-meeting > draught....it's only 5pm.... > > -john andrews > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gatzby3jr at gmail.com Wed Jun 29 00:59:58 2005 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Wed, 29 Jun 2005 00:59:58 -0400 Subject: [nycphp-talk] Parse Error: Unexpected "; ", expected T_FUNCTION in Line 247 In-Reply-To: <20050629025824.7D106A85FE@virtu.nyphp.org> References: <8d9a4280050628121118fd3bc2@mail.gmail.com> <20050629025824.7D106A85FE@virtu.nyphp.org> Message-ID: <29da5d15050628215919cf4f9c@mail.gmail.com> The way I usually find it is through Zend, but I'm assuming you're not using Zend, or another editor with the red underlining on errors. My only suggestion would be to do a search for a ';;' (two semi-colors), or try out Zend :D Good luck. On 6/28/05, Phil Duffy wrote: > > My thanks to the following who responded to my call for help: > > Flavio ? I tested your code and reproduced the same error message. > > Brian ? The extra ";" is the prime suspect, but two visual reviews have > not surfaced the problem. > > Jeff ? I suspect you are right about the missing (or extra) ";" further > up the code. That makes sense. > > Joseph ? The suspects have been narrowed with the help of Flavio, Brian > and Jeff, but the problem is still unresolved. What is the best way to send > the code ? attachment or paste into e-mail? > > Phil > > ------------------------------ > > *From:* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > *On Behalf Of *Joseph Crawford > *Sent:* Tuesday, June 28, 2005 2:11 PM > *To:* NYPHP Talk > *Subject:* Re: [nycphp-talk] Parse Error: Unexpected ";", expected > T_FUNCTION in Line 247 > > show your code ;) > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From sajith.ml at gmail.com Wed Jun 29 01:59:14 2005 From: sajith.ml at gmail.com (Sajith A) Date: Wed, 29 Jun 2005 11:29:14 +0530 Subject: [nycphp-talk] Coding standards Message-ID: Could some one please suggest to me a good coding standard for php 4/5 and mysql. I tried to gogole.. but was getting different formats... Thanks and Regards Sajith A From krook at us.ibm.com Wed Jun 29 02:18:55 2005 From: krook at us.ibm.com (Daniel Krook) Date: Wed, 29 Jun 2005 02:18:55 -0400 Subject: [nycphp-talk] Bitwise Operators In-Reply-To: Message-ID: > Incidentally, I welcomed Joe's first comment in this thread -- > essentially, "I don't know from bits" -- because neither > do I, really. (-: > It seems you can program PHP for years without (knowingly) > shifting any > bits. Agreed, the only time I ever encountered a need for understanding bits and bitwise operators was the Sun Java Programmer 1.4 exam (and they're apparently no longer included on the 5.0/1.5 exam). I had a good grasp of them for the time I was studying, but before and since I've rarely used them. Like Joe, I wasn't a computer science major so I never had to learn them from an academic point of view either. I seem to recall that this article came in handy for getting a grasp on binary, and from there the bitwise operators: "Learning Binary and Hexadecimal" http://codeproject.com/tips/binhex.asp So, to pose a new question on the value of learning about bitwise operators, what would you use them for in a standard web application? ACL determination? What else? Daniel Krook, Advisory IT Specialist Application Development, Production Services - Tools, ibm.com Personal: http://info.krook.org/ BluePages: http://bluepages.redirect.webahead.ibm.com/ BlogPages: http://blogpages.redirect.webahead.ibm.com/ From enunez at tiaa-cref.org Wed Jun 29 08:26:52 2005 From: enunez at tiaa-cref.org (Nunez, Eddy) Date: Wed, 29 Jun 2005 08:26:52 -0400 Subject: [nycphp-talk] [OT] Airports and laptops Message-ID: <33DFD788D44E404CB92B90176DEC061A6DAEF2@NYCPDMSXMB06.ad.tiaa-cref.org> Any of you guys know if putting your precious laptop through airport's security screening process is hazardous to it's health? -Eddy ************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ************************************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From brent at landover.com Wed Jun 29 08:40:08 2005 From: brent at landover.com (Brent Baisley) Date: Wed, 29 Jun 2005 08:40:08 -0400 Subject: [nycphp-talk] [OT] Airports and laptops In-Reply-To: <33DFD788D44E404CB92B90176DEC061A6DAEF2@NYCPDMSXMB06.ad.tiaa-cref.org> References: <33DFD788D44E404CB92B90176DEC061A6DAEF2@NYCPDMSXMB06.ad.tiaa-cref.org> Message-ID: <85740e5c237d587588cfd0bc424cbf3a@landover.com> I've done it accidentally twice, although that was a while ago with much older laptops. No harm done, but newer laptops do have tighter tolerances. I do remember reading an article a long, long time ago regarding floppies going through x-ray. No harm the first 3-4 times, but the more the floppies went through the more they degraded. So I wouldn't make a habit of it. Oh wait, I thought you were talking about x-ray. The stories I've heard about airport security screening it is most definitely hazardous. Like the FBI agent who was allowed to take his gun, but not his nail file. On Jun 29, 2005, at 8:26 AM, Nunez, Eddy wrote: > > > Any of you guys know if putting your precious laptop through airport's > security > screening process is hazardous to it's health? > > -Eddy > > > ************************************************************** > This message, including any attachments, contains confidential > information intended for a specific individual and purpose, and is > protected by law. If you are not the intended recipient, please > contact sender immediately by reply e-mail and destroy all copies. You > are hereby notified that any disclosure, copying, or distribution of > this message, or the taking of any action based on it, is strictly > prohibited. > TIAA-CREF > ************************************************************** > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org -- Brent Baisley Systems Architect Landover Associates, Inc. Search & Advisory Services for Advanced Technology Environments p: 212.759.6400/800.759.0577 From nyphp at n0p.net Wed Jun 29 08:44:27 2005 From: nyphp at n0p.net (Flavio daCosta) Date: Wed, 29 Jun 2005 08:44:27 -0400 Subject: [nycphp-talk] Bitwise Operators In-Reply-To: References: Message-ID: <42C297AB.1020500@n0p.net> On 06/29/2005 02:18 AM, Daniel Krook wrote: > So, to pose a new question on the value of learning about bitwise > operators, what would you use them for in a standard web application? ACL > determination? What else? I utilize bit functions for flag handling and simple ACL in the same fashion as the built error reporting for example: define( 'D_VIEW_FORTUNE', ( 1 << 0 ) ); // 00000001 define( 'D_VIEW_LAST_LOGIN', ( 1 << 1 ) ); // 00000010 define( 'D_VIEW_LOGIN_COUNT', ( 1 << 2 ) ); // 00000100 ... // Normally dynamically set for each user $display_view = D_VIEW_FORTUNE | D_VIEW_LOGIN_COUNT; // 00000101 ... if( $display_view & D_VIEW_FORTUNE ) { // display fortune } ... I will also use them as an efficient way to detect every other row ;) $i = 0; while( ... ) { if( ++$i&1 ) // Row is odd; } Flavio From phil at bearingasset.com Wed Jun 29 09:01:31 2005 From: phil at bearingasset.com (Phil Duffy) Date: Wed, 29 Jun 2005 09:01:31 -0400 Subject: [nycphp-talk] Parse Error: Unexpected "; ", expected T_FUNCTION in Line 247 In-Reply-To: <29da5d15050628215919cf4f9c@mail.gmail.com> Message-ID: <20050629130144.B6037A86C1@virtu.nyphp.org> Brian, I did a Find Next on ";;" and found nothing, then a Find Next on ";" and likewise found nothing suspicious. I am using Macromedia's Dreamweaver editor, which offers PHP editing with syntax coloring, but it did not complain when I introduced the ";;" error. I sense that this editor was not designed for PHP but simply offers PHP editing as an add-on. I'll investigate Zend. Thanks for the tip. Phil _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Brian O'Connor Sent: Wednesday, June 29, 2005 12:00 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 The way I usually find it is through Zend, but I'm assuming you're not using Zend, or another editor with the red underlining on errors. My only suggestion would be to do a search for a ';;' (two semi-colors), or try out Zend :D Good luck. On 6/28/05, Phil Duffy wrote: My thanks to the following who responded to my call for help: Flavio - I tested your code and reproduced the same error message. Brian - The extra ";" is the prime suspect, but two visual reviews have not surfaced the problem. Jeff - I suspect you are right about the missing (or extra) ";" further up the code. That makes sense. Joseph - The suspects have been narrowed with the help of Flavio, Brian and Jeff, but the problem is still unresolved. What is the best way to send the code - attachment or paste into e-mail? Phil _____ From: talk-bounces at lists.nyphp.org [mailto: talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: Tuesday, June 28, 2005 2:11 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 show your code ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott at crisscott.com Wed Jun 29 09:02:02 2005 From: scott at crisscott.com (Scott Mattocks) Date: Wed, 29 Jun 2005 09:02:02 -0400 Subject: [nycphp-talk] Coding standards In-Reply-To: References: Message-ID: <42C29BCA.9070106@crisscott.com> Sajith A wrote: > Could some one please suggest to me a good coding standard for php 4/5 > and mysql. I tried to gogole.. but was getting different formats... > For PHP, I suggest the PEAR standard. http://pear.php.net/manual/en/standards.php I don't know any standards for MySQL. -- Scott Mattocks scott at crisscott.com http://www.crisscott.com http://pear.php.net/user/scottmattocks From dmintz at davidmintz.org Wed Jun 29 09:21:05 2005 From: dmintz at davidmintz.org (David Mintz) Date: Wed, 29 Jun 2005 09:21:05 -0400 (EDT) Subject: [nycphp-talk] Bitwise Operators In-Reply-To: References: Message-ID: On Wed, 29 Jun 2005, Daniel Krook wrote: > > Incidentally, I welcomed Joe's first comment in this thread -- > > essentially, "I don't know from bits" -- because neither > > do I, really. (-: > > It seems you can program PHP for years without (knowingly) > > shifting any bits. > > Agreed, the only time I ever encountered a need for understanding bits and > bitwise operators was the Sun Java Programmer 1.4 exam (and they're > apparently no longer included on the 5.0/1.5 exam). Same here. I sweated over bits in preparation for that very exam. There was just one itty-bitty question (sorry), and it was easy. I wonder how many Qs there are about them on the PHP exam. --- David Mintz http://davidmintz.org/ From codebowl at gmail.com Wed Jun 29 09:27:15 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 29 Jun 2005 09:27:15 -0400 Subject: [nycphp-talk] Bitwise Operators In-Reply-To: References: Message-ID: <8d9a4280050629062775fc58e5@mail.gmail.com> not sure but in the first chapter of the test book it asks about << so i know i had to learn bits at that point lol. The only thing i have seen binary used for is in this tutorial http://www.litfuel.net/tutorials/bitwise.htm if you scroll to the bottom he shows a user permission example -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Wed Jun 29 09:36:27 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 29 Jun 2005 09:36:27 -0400 Subject: [nycphp-talk] Parse Error: Unexpected "; ", expected T_FUNCTION in Line 247 In-Reply-To: <20050629130144.B6037A86C1@virtu.nyphp.org> References: <29da5d15050628215919cf4f9c@mail.gmail.com> <20050629130144.B6037A86C1@virtu.nyphp.org> Message-ID: <8d9a428005062906368b7c8c5@mail.gmail.com> Phil, post your code either in the actual email message or use something like pastebin.org and post the url here. On 6/29/05, Phil Duffy wrote: > > Brian, > > I did a Find Next on ";;" and found nothing, then a Find Next on ";" and > likewise found nothing suspicious. I am using Macromedia's Dreamweaver > editor, which offers PHP editing with syntax coloring, but it did not > complain when I introduced the ";;" error. I sense that this editor was not > designed for PHP but simply offers PHP editing as an add-on. I'll > investigate Zend. Thanks for the tip. > > Phil > > ------------------------------ > > *From:* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > *On Behalf Of *Brian O'Connor > *Sent:* Wednesday, June 29, 2005 12:00 AM > *To:* NYPHP Talk > *Subject:* Re: [nycphp-talk] Parse Error: Unexpected ";", expected > T_FUNCTION in Line 247 > > The way I usually find it is through Zend, but I'm assuming you're not > using Zend, or another editor with the red underlining on errors. My only > suggestion would be to do a search for a ';;' (two semi-colors), or try out > Zend :D > > Good luck. > > On 6/28/05, *Phil Duffy* wrote: > > My thanks to the following who responded to my call for help: > > Flavio ? I tested your code and reproduced the same error message. > > Brian ? The extra ";" is the prime suspect, but two visual reviews have > not surfaced the problem. > > Jeff ? I suspect you are right about the missing (or extra) ";" further > up the code. That makes sense. > > Joseph ? The suspects have been narrowed with the help of Flavio, Brian > and Jeff, but the problem is still unresolved. What is the best way to send > the code ? attachment or paste into e-mail? > > Phil > > ------------------------------ > > *From:* talk-bounces at lists.nyphp.org [mailto: talk-bounces at lists.nyphp.org] > *On Behalf Of *Joseph Crawford > *Sent:* Tuesday, June 28, 2005 2:11 PM > *To:* NYPHP Talk > *Subject:* Re: [nycphp-talk] Parse Error: Unexpected ";", expected > T_FUNCTION in Line 247 > > show your code ;) > > -- > Joseph Crawford Jr. > Codebowl Solutions, Inc. > 1-802-671-2021 > codebowl at gmail.com > > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > > > > -- > Brian O'Connor > > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From wkamm at att.com Wed Jun 29 09:44:30 2005 From: wkamm at att.com (Kamm, William R (Bill), ALABS) Date: Wed, 29 Jun 2005 08:44:30 -0500 Subject: [nycphp-talk] Parse Error: Unexpected "; ", expected T_FUNCTION in Line 247 Message-ID: Phil, I use Dreamweaver as well for php. For certain syntax errors that it catches, it displays the closing php tag (?>) in a lighter color to tell you something is missing or added. Maybe a missing or extra parenthesis or bracket, or a missing or extra semi colon. If the file is not too large, just paste it into an email, and I will take a look. Bill -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Phil Duffy Sent: Wednesday, June 29, 2005 9:02 AM To: 'NYPHP Talk' Subject: RE: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 Brian, I did a Find Next on ";;" and found nothing, then a Find Next on ";" and likewise found nothing suspicious. I am using Macromedia's Dreamweaver editor, which offers PHP editing with syntax coloring, but it did not complain when I introduced the ";;" error. I sense that this editor was not designed for PHP but simply offers PHP editing as an add-on. I'll investigate Zend. Thanks for the tip. Phil _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Brian O'Connor Sent: Wednesday, June 29, 2005 12:00 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 The way I usually find it is through Zend, but I'm assuming you're not using Zend, or another editor with the red underlining on errors. My only suggestion would be to do a search for a ';;' (two semi-colors), or try out Zend :D Good luck. On 6/28/05, Phil Duffy wrote: My thanks to the following who responded to my call for help: Flavio - I tested your code and reproduced the same error message. Brian - The extra ";" is the prime suspect, but two visual reviews have not surfaced the problem. Jeff - I suspect you are right about the missing (or extra) ";" further up the code. That makes sense. Joseph - The suspects have been narrowed with the help of Flavio, Brian and Jeff, but the problem is still unresolved. What is the best way to send the code - attachment or paste into e-mail? Phil _____ From: talk-bounces at lists.nyphp.org [mailto: talk-bounces at lists.nyphp.org ] On Behalf Of Joseph Crawford Sent: Tuesday, June 28, 2005 2:11 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Parse Error: Unexpected ";", expected T_FUNCTION in Line 247 show your code ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From wkamm at att.com Wed Jun 29 10:04:57 2005 From: wkamm at att.com (Kamm, William R (Bill), ALABS) Date: Wed, 29 Jun 2005 09:04:57 -0500 Subject: [nycphp-talk] Bitwise Operators Message-ID: Years ago (back in the '80s), hardware was expensive. Memory and disk storage were at a premium. When we wrote programs, we kept efficiency in mind. Using bits to set/clear flags, we could get 8 flags using only one byte of storage. Today it seems ridiculous to do things like that, when a boolean variable will do, but at that time computers were slow and expensive. I don't see as much value to bit operations today as I did in the past. Bill -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Flavio daCosta Sent: Wednesday, June 29, 2005 8:44 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Bitwise Operators On 06/29/2005 02:18 AM, Daniel Krook wrote: > So, to pose a new question on the value of learning about bitwise > operators, what would you use them for in a standard web application? ACL > determination? What else? I utilize bit functions for flag handling and simple ACL in the same fashion as the built error reporting for example: define( 'D_VIEW_FORTUNE', ( 1 << 0 ) ); // 00000001 define( 'D_VIEW_LAST_LOGIN', ( 1 << 1 ) ); // 00000010 define( 'D_VIEW_LOGIN_COUNT', ( 1 << 2 ) ); // 00000100 ... // Normally dynamically set for each user $display_view = D_VIEW_FORTUNE | D_VIEW_LOGIN_COUNT; // 00000101 ... if( $display_view & D_VIEW_FORTUNE ) { // display fortune } ... I will also use them as an efficient way to detect every other row ;) $i = 0; while( ... ) { if( ++$i&1 ) // Row is odd; } Flavio _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From jay_nyphp at fastmail.fm Wed Jun 29 10:08:54 2005 From: jay_nyphp at fastmail.fm (Jayesh Sheth) Date: Wed, 29 Jun 2005 10:08:54 -0400 Subject: [nycphp-talk] Seagull Framework Message-ID: <1120054134.31939.237409876@webmail.messagingengine.com> Hi all, In light of last night's presentation by the IBM folks on PHP frameworks, CMS'es and application integration, I thought I would mention Seagull. I tried out its latest version, and I was very, very impressed. Even though it's billed as a framework, it comes out-of-the-box with an awesome installer, sample data, and sample applications. It builds on a lot of PEAR libraries, by extending and improving them. In many ways, it is like a very, very well-written, easily-extensible version of PHP-Nuke. http://seagull.phpkitchen.com/?ref=phpkitchen It is distinctly PHPish in flavor, without trying to be port of a Java framework such as struts. But it really seems to work, and in the brief moments I spent looking at the code, it seems well thought out, and well written. I have not looked at it that deeply yet, but so far I am impressed. I think this is the first PHP framework that I would actually use, and actively recommend to others. It does not re-invent the wheel - instead it builds on work others have done, and well. Let me know what you all think. - Jay From codebowl at gmail.com Wed Jun 29 10:14:28 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 29 Jun 2005 10:14:28 -0400 Subject: [nycphp-talk] Seagull Framework In-Reply-To: <1120054134.31939.237409876@webmail.messagingengine.com> References: <1120054134.31939.237409876@webmail.messagingengine.com> Message-ID: <8d9a4280050629071456842c4a@mail.gmail.com> i am very impressed with the Sitellite Framework, they use it in the Sitellite CMS but.. I have found the coding to be amazing IMO :) http://www.sitellite.org/ -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nyphp at n0p.net Wed Jun 29 10:57:36 2005 From: nyphp at n0p.net (Flavio daCosta) Date: Wed, 29 Jun 2005 10:57:36 -0400 Subject: [nycphp-talk] Bitwise Operators In-Reply-To: References: Message-ID: <42C2B6E0.8050302@n0p.net> On 06/29/2005 10:04 AM, Kamm, William R (Bill), ALABS wrote: > I don't see as much value to bit operations today as I > did in the past. Although I do agree that you can do everything without using bit operations, and a few bitwise operators here and there are not going to make your code ultra fast. I still see value in using them. Clean Code: In the example I demonstrated, I find it actually keeps the code simple, clean, and easy to read. For example, If I was to track those flag values as booleans, I would want to aggregate them all in another data structure such as an array or object. With this comes more code and complexity. Speed: Php is parsed at runtime (aside from code accelerators/caching). Even if you have a fast processor(s), there still is alot that happens every time a php script is requested. If you can replace arrays of options with a few bitwise operators, it may not be much, but it's gotta do something. ;) Just my opinion. Flavio From mikeh at dtev.com Wed Jun 29 11:35:20 2005 From: mikeh at dtev.com (mike hjorleifsson) Date: Wed, 29 Jun 2005 11:35:20 -0400 Subject: [nycphp-talk] [OT] Airports and laptops In-Reply-To: <33DFD788D44E404CB92B90176DEC061A6DAEF2@NYCPDMSXMB06.ad.tiaa-cref.org> References: <33DFD788D44E404CB92B90176DEC061A6DAEF2@NYCPDMSXMB06.ad.tiaa-cref.org> Message-ID: <42C2BFB8.8000009@dtev.com> not at all... Nunez, Eddy wrote: > > Any of you guys know if putting your precious laptop through airport's > security > screening process is hazardous to it's health? > > -Eddy > > | > > ************************************************************** > This message, including any attachments, contains confidential > information intended for a specific individual and purpose, and is > protected by law. If you are not the intended recipient, please > contact sender immediately by reply e-mail and destroy all copies. You > are hereby notified that any disclosure, copying, or distribution of > this message, or the taking of any action based on it, is strictly > prohibited. > TIAA-CREF > ************************************************************** > | > >------------------------------------------------------------------------ > >_______________________________________________ >New York PHP Talk Mailing List >AMP Technology >Supporting Apache, MySQL and PHP >http://lists.nyphp.org/mailman/listinfo/talk >http://www.nyphp.org > -- ======================= Mike Hjorleifsson 1110 South Ave Staten Island, NY 10314 Direct Ph: 718-889-0687 Fx: 718-247-1673 Online Store: http://www.elementcomputer.com PLEASE NOTE: This e-mail message may contain confidential and privileged material for the sole use of the intended recipient(s). If you are not the intended recipient you are hereby notified that you have received this document in error and that any review, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this communication in error,please contact me immediately by e-mail or by telephone at (888) 858-4ION and delete the original message and any copies. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rolan at omnistep.com Wed Jun 29 11:28:01 2005 From: rolan at omnistep.com (Rolan Yang) Date: Wed, 29 Jun 2005 11:28:01 -0400 Subject: [nycphp-talk] Seagull Framework In-Reply-To: <8d9a4280050629071456842c4a@mail.gmail.com> References: <1120054134.31939.237409876@webmail.messagingengine.com> <8d9a4280050629071456842c4a@mail.gmail.com> Message-ID: <42C2BE01.9040108@omnistep.com> These framework packages all look so tasty. Wish I didn't have to invest a significant amount of time to determine wether they are any good or not. It would be nice if there were a site where someone could go to read up on reviews and view comparison charts for these things. ~Rolan From sailer at bnl.gov Wed Jun 29 11:45:25 2005 From: sailer at bnl.gov (Tim Sailer) Date: Wed, 29 Jun 2005 11:45:25 -0400 Subject: [nycphp-talk] [OT] Airports and laptops In-Reply-To: <42C2BFB8.8000009@dtev.com> References: <33DFD788D44E404CB92B90176DEC061A6DAEF2@NYCPDMSXMB06.ad.tiaa-cref.org> <42C2BFB8.8000009@dtev.com> Message-ID: <20050629154525.GA21045@bnl.gov> On Wed, Jun 29, 2005 at 11:35:20AM -0400, mike hjorleifsson wrote: > not at all... > > Nunez, Eddy wrote: > > > > >Any of you guys know if putting your precious laptop through airport's > >security > >screening process is hazardous to it's health? Er, maybe. A common trick to obtain a new laptop is for 2 people to get on line, one go through with no problem, and one 'forget' to remove change, etc from their pockets. You put your laptop on the belt, it goes through, and you are stuck behind the guy ringing the bell. By time you get through, your laptop is missing. *Hang ON* to your laptop until you walk through the portal. Tim PS: Sorry, I'm paid to be paranoid, and I see this kind of stuff all the time... -- Tim Sailer Information and Special Technologies Program Office of Counterintelligence Brookhaven National Laboratory (631) 344-3001 From codebowl at gmail.com Wed Jun 29 11:48:07 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 29 Jun 2005 11:48:07 -0400 Subject: [nycphp-talk] [OT] Airports and laptops In-Reply-To: <20050629154525.GA21045@bnl.gov> References: <33DFD788D44E404CB92B90176DEC061A6DAEF2@NYCPDMSXMB06.ad.tiaa-cref.org> <42C2BFB8.8000009@dtev.com> <20050629154525.GA21045@bnl.gov> Message-ID: <8d9a428005062908485d122e1e@mail.gmail.com> funny how that would work ;( and i cannot believe the airport would let it happen since they have to replace the laptop. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Wed Jun 29 12:13:23 2005 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 29 Jun 2005 12:13:23 -0400 Subject: [nycphp-talk] Bitwise Operators In-Reply-To: Message-ID: <0MKyxe-1DnfBl05A6-0000ul@mrelay.perfora.net> > Years ago (back in the '80s), hardware was expensive. Memory and disk > storage were at a premium. When we wrote programs, we kept efficiency > in mind. Using bits to set/clear flags, we could get 8 flags using only > one byte of storage. Today it seems ridiculous to do things like that, > when a boolean variable will do, but at that time computers were slow > and expensive. I don't see as much value to bit operations today as I > did in the past. I used to be a big fan of masks and bits. But you're absolutely right that they've lost a lot of use. One of the few places they're still seen regularly is in IP addresses and netmasks. That said, of course, if this was New York Embedded Systems or New York Assembler, instead of New York PHP, we'd probably have a different viewpoint. I do still use them at times in PHP, especially for flags. For instance, they can be real handy - and REAL fast - for storing multiple values in a single column. define('USER_ATTRIB_SU', 1024); define('USER_ATTRIB_BAN', 2048); mysql_query("INSERT INTO UserTable (UserID,Attributes) VALUES ('500','".USER_ATTRIB_SU."')",$MYDB); mysql_query("UPDATE UserTable SET Attributes = Attributes | '".USER_ATTRIB_BAN."' WHERE UserID='500'",$MYDB); /*** Now get all users that are super users ***/ mysql_query("SELECT UserID FROM UserTable WHERE Attributes & '".USER_ATTRIB_SU."' = '".USER_ATTRIB_SU."'",$MYDB); http://www.vipan.com/htdocs/bitwisehelp.html http://dev.mysql.com/doc/mysql/en/bit-functions.html There's an elegance to using them that is nice, instead of StudelyCaps and Verbose Tags --- Hans Zaunere President, Founder New York PHP http://www.nyphp.org AMP Technology Supporting Apache, MySQL and PHP From Cbielanski at inta.org Wed Jun 29 12:53:02 2005 From: Cbielanski at inta.org (Chris Bielanski) Date: Wed, 29 Jun 2005 12:53:02 -0400 Subject: [nycphp-talk] [OT] Airports and laptops Message-ID: <328AA5243F20DA4DABDC022745BF3A0746E61E@INTAMAIL2k3.ny.inta.org> You're assuming that the airport would actually believe you saying "That was my laptop!" Furthermore assuming it wasn't a TSA goon that pinched it to begin with. Thanks, Chris Bielanski Web Programmer, International Trademark Association, 655 Third Avenue, 10th Floor New York, NY 10017-5617 USA +1 (212) 642-1745, f: +1 (212) 768-7796 mailto:cbielanski at inta.org, www.inta.org INTA -- 125 Years of Excellence ________________________________ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: Wednesday, June 29, 2005 11:48 AM To: NYPHP Talk Subject: Re: [nycphp-talk] [OT] Airports and laptops funny how that would work ;( and i cannot believe the airport would let it happen since they have to replace the laptop. -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From phil at bearingasset.com Wed Jun 29 13:02:33 2005 From: phil at bearingasset.com (Phil Duffy) Date: Wed, 29 Jun 2005 13:02:33 -0400 Subject: [nycphp-talk] Seagull Framework In-Reply-To: <42C2BE01.9040108@omnistep.com> Message-ID: <20050629170236.38A53A863E@virtu.nyphp.org> Rolan, I am getting close to determining if my investment in Seagull was worthwhile. I can tell you that the community associated with a framework is a very important part of the decision, and I am thoroughly impressed with the Seagull community. Phil -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Rolan Yang Sent: Wednesday, June 29, 2005 10:28 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Seagull Framework These framework packages all look so tasty. Wish I didn't have to invest a significant amount of time to determine wether they are any good or not. It would be nice if there were a site where someone could go to read up on reviews and view comparison charts for these things. ~Rolan _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From papillion at gmail.com Wed Jun 29 14:42:54 2005 From: papillion at gmail.com (Anthony Papillion) Date: Wed, 29 Jun 2005 13:42:54 -0500 Subject: [nycphp-talk] Question about frameworks Message-ID: <5458518f05062911426d817674@mail.gmail.com> Hello Everyone, In light of today's discussions about frameworks I think now is a good time for me to ask a question that's prevented me from using frameworks in the past and doing everything the "straight PHP" way: It seems that all of the frameworks I've run across are somehow tied to CMS's. In my mind, and perhaps wrongly, this limits their usefulness to creating CMS software. What about people who are creating other type of software? And does it also mean that one has to install a complete CMS just to have acess to the API's? This seems like a lot of overkill to me. Perhaps, and probably, I am wrong. I am very eager to work with a framework since they really seem to eliminate a lot of work. Can anyone tae a little time to shed some light on these issues for me? Thanks! -- Anthony M. Papillion Quality Technical Services and Support Phone: (918) 926-0139 Email: papillion at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kigathi at gmail.com Wed Jun 29 16:53:03 2005 From: kigathi at gmail.com (Eric K.) Date: Wed, 29 Jun 2005 16:53:03 -0400 Subject: [nycphp-talk] Question about frameworks In-Reply-To: <5458518f05062911426d817674@mail.gmail.com> References: <5458518f05062911426d817674@mail.gmail.com> Message-ID: I think the tie in is simply because, at the end of the day, when you are done designing coding and testing (the part that the framework is most useful for), most php applications will need to spit out html/images/etc (content) which warrants the need for an html/images/etc (content) management system of some kind... I'd say install/try out the framework and ignore as much of the CMS as you need to, to get your app done. The benefits of reusing the framework code and the inherent coding methods will be an improvement from coding the straight PHP way. On 6/29/05, Anthony Papillion wrote: > Hello Everyone, > > In light of today's discussions about frameworks I think now is a good time > for me to ask a question that's prevented me from using frameworks in the > past and doing everything the "straight PHP" way: > > It seems that all of the frameworks I've run across are somehow tied to > CMS's. In my mind, and perhaps wrongly, this limits their usefulness to > creating CMS software. What about people who are creating other type of > software? And does it also mean that one has to install a complete CMS just > to have acess to the API's? This seems like a lot of overkill to me. > > Perhaps, and probably, I am wrong. I am very eager to work with a framework > since they really seem to eliminate a lot of work. Can anyone tae a little > time to shed some light on these issues for me? > > Thanks! > > -- > Anthony M. Papillion > Quality Technical Services and Support > Phone: (918) 926-0139 > Email: papillion at gmail.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > From jsiegel1 at optonline.net Thu Jun 30 17:09:23 2005 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 30 Jun 2005 17:09:23 -0400 Subject: [nycphp-talk] Code from Mars? Message-ID: <0IIX00CI81E7SDB0@mta3.srv.hcvlny.cv.net> Has anyone ever seen code like this? require_once "\103\157\156n\145ct\151\157n\056p\150\160"; $this->l1eq=$l1eh["\144\145\163c\162\151\160t\151\157\156"]; If yes...how was it created? Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Thu Jun 30 17:16:36 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 30 Jun 2005 17:16:36 -0400 Subject: [nycphp-talk] Code from Mars? In-Reply-To: <0IIX00CI81E7SDB0@mta3.srv.hcvlny.cv.net> References: <0IIX00CI81E7SDB0@mta3.srv.hcvlny.cv.net> Message-ID: <8d9a4280050630141642ca9dac@mail.gmail.com> is that obfuscated somehow? ioncube? zend encoder? -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From wfan at VillageVoice.com Thu Jun 30 18:12:52 2005 From: wfan at VillageVoice.com (Fan, Wellington) Date: Thu, 30 Jun 2005 18:12:52 -0400 Subject: [nycphp-talk] Code from Mars? Message-ID: <4D2FAD9B00577645932AD7ED5FECA245325125@mail> > php -r 'echo "\103\157\156n\145ct\151\157n\056p\150\160";' > Connnection.php > php -r 'echo "\144\145\163c\162\151\160t\151\157\156";' > description That's the octal way of writing these characters. See http://www.php.net/manual/en/language.types.string.php > -----Original Message----- > From: Jeff Siegel [mailto:jsiegel1 at optonline.net] > Sent: Thursday, June 30, 2005 5:09 PM > To: NYPHP Talk > Subject: [nycphp-talk] Code from Mars? > > > Has anyone ever seen code like this? > > require_once "\103\157\156n\145ct\151\157n\056p\150\160"; > $this->l1eq=$l1eh["\144\145\163c\162\151\160t\151\157\156"]; > > If yes...how was it created? > > Jeff > From matt at atopia.net Thu Jun 30 19:06:34 2005 From: matt at atopia.net (Matt Juszczak) Date: Thu, 30 Jun 2005 19:06:34 -0400 (EDT) Subject: [nycphp-talk] Pitching PHP to a Java House In-Reply-To: <20050609121048.79978.qmail@web30807.mail.mud.yahoo.com> References: <20050609121048.79978.qmail@web30807.mail.mud.yahoo.com> Message-ID: <20050630190611.H68649@neptune.atopia.net> As a side note, where I can get some more info on OOP in PHP5? :) Is there a nice book or tutorial for people who already know PHP but not much OOP? On Thu, 9 Jun 2005, Leila Lappin wrote: > One word of caution, > Warning the following is a rant, read with caution or > don?t read if you don?t want to be bothered, > > > With success comes migration of jobs elsewhere and > more than 100million hungry programmers poised and > ready to take the jobs away. Sorry for the trumpet of > doom and despair but it?s happened before. > > Since I already spilled the beans, let me elaborate a > little more. The only reason PHP remains a good > source of employment in New York is because the big > boys (mid to large size corporations) don?t take it > seriously. Once they start doing so, next thing you > know they?re importing cheap programmers to do the > work and whatnot. Let the Java people remain in their > Java houses and think their big giant cow of a > language is the best thing that ever happened to the > IT community. > > With PHP5 becoming the standard installation in all > shops, we all know that Java loses its lead as a > better object oriented language and the only thing it > has to boast. But let?s keep this a sweet secret. > > Sorry for the rant, I hope I haven?t ruined your > morning. > > --- Steve Manes wrote: > >> Mark Armendariz wrote: >>> A good friend mentioned that he usually argues >> that the development time >>> is preferable with PHP. Anyone here have resources >> to share or a good >>> general direction to walk in with this argument? >> >> A company for whom I consult was considering porting >> their existing ASP >> software from PHP/Perl to Java. Their reason had >> mostly to do with >> their new tech director and the fact that he only >> knew Java. >> >> Most of my arguments fell on deaf ears. The one >> that finally caused the >> bosses to put the kibosh on the Java porting project >> was my reminder of >> how the software is hacked almost daily to add new >> chrome and doodads >> for specific ASP clients without affecting the >> others. PHP (and Perl) >> are simply better suited to this sort of ad hoc >> surgery than Java. >> >> It also helped when I told them that their >> PHP/PostgreSQL production >> servers had been up for 480 days without a reboot >> (they were also >> considering porting to an MS architecture). >> _______________________________________________ >> New York PHP Talk Mailing List >> AMP Technology >> Supporting Apache, MySQL and PHP >> http://lists.nyphp.org/mailman/listinfo/talk >> http://www.nyphp.org >> > > > > > __________________________________ > Discover Yahoo! > Use Yahoo! to plan a weekend, have fun online and more. Check it out! > http://discover.yahoo.com/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > > > !DSPAM:42a831e7137742314917211! > From matt at atopia.net Thu Jun 30 20:18:54 2005 From: matt at atopia.net (Matt Juszczak) Date: Thu, 30 Jun 2005 20:18:54 -0400 (EDT) Subject: [nycphp-talk] Geocoder and PHP In-Reply-To: <20050610190139.B0D9BA86DE@virtu.nyphp.org> References: <20050610190139.B0D9BA86DE@virtu.nyphp.org> Message-ID: <20050630201743.Y69972@neptune.atopia.net> On Fri, 10 Jun 2005, John Corry wrote: > Attn: cross posted to ATLPHP > > I am working on a project that will require running about 3500 street > addresses through a geocoder application to return lat/long pairs. > > My first idea was to use cURL to post the address to the http://geocoder.us/ > site...once for each address, parsing the returned result to get lat/long > and store those with the address record in my db. > > I haven't tried it yet because a quiet but persistent voice is whispering to > me that looping through 3500 records and opening a cURL session to another > website to screen-scrape the results is somehow not a good idea...for my > server or theirs. I don't know enough about all of the issues to be able to > articulate why (perhaps you want to enlighten me)...just that it seems like > a bad idea. > > Does anyone know a better way? I can't pay for a commercial service for this > but if there's a faster, more efficient means of usign the free services > available I'd appreciate hearing about it. > > Thanks, > John Corry I actually use geocoder.us commercially ... the service is nice. We have a deal currently. For people looking to host their own DB, the census data is publically available.... if you can mingle your own DB, then you can do an unlimited amount of queries. Just my two cents. The people over at geocoder are very nice though. What exactly is your purpose? From jsiegel1 at optonline.net Thu Jun 30 20:41:18 2005 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 30 Jun 2005 20:41:18 -0400 Subject: [nycphp-talk] Code from Mars? In-Reply-To: <4D2FAD9B00577645932AD7ED5FECA245325125@mail> Message-ID: <0IIX003GAB6WNT00@mta10.srv.hcvlny.cv.net> Very good. Hadn't thunked of that. Of course the question is...why would someone bother to sprinkle this throughout their code. For example: function O1en($l1eh ) { $this->O1ds=$l1eh["t\171\160e"]; $this->O1dh= (int) $l1eh["i\144"]; $this->l1dt= (int) $l1eh["\143\151d"]; $this->l1ey= (double) $l1eh["\167e\151g\150t"]; } Jeff -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Fan, Wellington Sent: Thursday, June 30, 2005 5:13 PM To: 'NYPHP Talk' Subject: RE: [nycphp-talk] Code from Mars? > php -r 'echo "\103\157\156n\145ct\151\157n\056p\150\160";' > Connnection.php > php -r 'echo "\144\145\163c\162\151\160t\151\157\156";' > description That's the octal way of writing these characters. See http://www.php.net/manual/en/language.types.string.php > -----Original Message----- > From: Jeff Siegel [mailto:jsiegel1 at optonline.net] > Sent: Thursday, June 30, 2005 5:09 PM > To: NYPHP Talk > Subject: [nycphp-talk] Code from Mars? > > > Has anyone ever seen code like this? > > require_once "\103\157\156n\145ct\151\157n\056p\150\160"; > $this->l1eq=$l1eh["\144\145\163c\162\151\160t\151\157\156"]; > > If yes...how was it created? > > Jeff > _______________________________________________ New York PHP Talk Mailing List AMP Technology Supporting Apache, MySQL and PHP http://lists.nyphp.org/mailman/listinfo/talk http://www.nyphp.org From codebowl at gmail.com Thu Jun 30 21:32:04 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 30 Jun 2005 21:32:04 -0400 Subject: [nycphp-talk] Code from Mars? In-Reply-To: <0IIX003GAB6WNT00@mta10.srv.hcvlny.cv.net> References: <4D2FAD9B00577645932AD7ED5FECA245325125@mail> <0IIX003GAB6WNT00@mta10.srv.hcvlny.cv.net> Message-ID: <8d9a428005063018325b7bdea7@mail.gmail.com> maybe to keep the uneducated from stealing thier code ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jsiegel1 at optonline.net Thu Jun 30 21:48:06 2005 From: jsiegel1 at optonline.net (Jeff Siegel) Date: Thu, 30 Jun 2005 21:48:06 -0400 Subject: [nycphp-talk] Code from Mars? In-Reply-To: <8d9a428005063018325b7bdea7@mail.gmail.com> Message-ID: <0IIX002WWECGN610@mta5.srv.hcvlny.cv.net> I kinda suspect the same thing. Jeff ________________________________ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Joseph Crawford Sent: Thursday, June 30, 2005 8:32 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Code from Mars? maybe to keep the uneducated from stealing thier code ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com From codebowl at gmail.com Thu Jun 30 21:50:03 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 30 Jun 2005 21:50:03 -0400 Subject: [nycphp-talk] Code from Mars? In-Reply-To: <0IIX002WWECGN610@mta5.srv.hcvlny.cv.net> References: <8d9a428005063018325b7bdea7@mail.gmail.com> <0IIX002WWECGN610@mta5.srv.hcvlny.cv.net> Message-ID: <8d9a42800506301850326d9c82@mail.gmail.com> and probably too poor to afford zend encoder ;) -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmintz at davidmintz.org Thu Jun 30 22:15:42 2005 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 30 Jun 2005 22:15:42 -0400 (EDT) Subject: [nycphp-talk] Code from Mars? In-Reply-To: <8d9a42800506301850326d9c82@mail.gmail.com> References: <8d9a428005063018325b7bdea7@mail.gmail.com> <0IIX002WWECGN610@mta5.srv.hcvlny.cv.net> <8d9a42800506301850326d9c82@mail.gmail.com> Message-ID: On Thu, 30 Jun 2005, Joseph Crawford wrote: > and probably too poor to afford zend encoder ;) > So how many minutes do you suppose would it take to write a poor-man's-code-obfuscator-deobfuscator? --- David Mintz http://davidmintz.org/ From codebowl at gmail.com Thu Jun 30 22:40:01 2005 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 30 Jun 2005 22:40:01 -0400 Subject: [nycphp-talk] Code from Mars? In-Reply-To: References: <8d9a428005063018325b7bdea7@mail.gmail.com> <0IIX002WWECGN610@mta5.srv.hcvlny.cv.net> <8d9a42800506301850326d9c82@mail.gmail.com> Message-ID: <8d9a42800506301940ca91776@mail.gmail.com> no idea as i dont even understand what they did to thier code ;) On 6/30/05, David Mintz wrote: > > On Thu, 30 Jun 2005, Joseph Crawford wrote: > > > and probably too poor to afford zend encoder ;) > > > > So how many minutes do you suppose would it take to write a > poor-man's-code-obfuscator-deobfuscator? > > --- > David Mintz > http://davidmintz.org/ > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > -- Joseph Crawford Jr. Codebowl Solutions, Inc. 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: