From jwind at gmx.de Mon Jan 1 06:18:02 2007 From: jwind at gmx.de (=?UTF-8?Q?J=C3=BCrgen_Wind?=) Date: Mon, 1 Jan 2007 03:18:02 -0800 (PST) Subject: [nycphp-talk] Re: PHP_SELF problems In-Reply-To: References: <45913339.30800@qualityadvantages.com> <459177A1.3040305@php.net> <8d9a42800612261411n20af36eat3c5246ff51eb0b7b@mail.gmail.com> <200612261751.33246.jellicle@gmail.com> <45953E8C.4040703@phpwerx.net> Message-ID: <8112979.post@talk.nabble.com> >I have not really followed this discussion, but when i see something like this: >"$_SERVER['SCRIPT_NAME'] will contain the full _filesystem_ path, >which is not what we're after." > >Can you just do a 1 line regex and pull out what you need? And you are all set. > >:-) ed no need for regex here, a simple basename($_SERVER['SCRIPT_NAME']) will do Happy New Year! -- View this message in context: http://www.nabble.com/Holiday-Greetings-to-Everyone...-tf2882582.html#a8112979 Sent from the NYPHP-Talk mailing list archive at Nabble.com. From jwind at gmx.de Mon Jan 1 06:26:07 2007 From: jwind at gmx.de (=?UTF-8?Q?J=C3=BCrgen_Wind?=) Date: Mon, 1 Jan 2007 03:26:07 -0800 (PST) Subject: [nycphp-talk] Re: PHP_SELF problems In-Reply-To: <4598688F.2030607@qualityadvantages.com> References: <45913339.30800@qualityadvantages.com> <459177A1.3040305@php.net> <8d9a42800612261411n20af36eat3c5246ff51eb0b7b@mail.gmail.com> <200612261751.33246.jellicle@gmail.com> <45953E8C.4040703@phpwerx.net> <20061229184144.GA27704@panix.com> <4598688F.2030607@qualityadvantages.com> Message-ID: <8113012.post@talk.nabble.com> mikesz at qualityadvantages.com wrote: > > Daniel Convissor wrote: > >>On Fri, Dec 29, 2006 at 11:13:00AM -0500, Dan Cech wrote: >> >> >>>I'm not 100% sure what the solution to this problem is. Right now the >>>only thing I can think of is to try and figure out the common part of >>>PHP_SELF and SCRIPT_NAME, so as to drop both the extra filesystem info >>>and any url garbage, but that seems pretty fragile to me. >>> >>> >> >>I always use the __FILE__ constant. Can't be touched by user input. The >>basename() and dirname() are handy to use along with it. >> >>--Dan >> >> >> > Hey Dan, > > thanks for the tip. I have an app I work on that has about a hundred of > these: > >
> > so using your technique it would change to : > > > > is this what you mean? > > I wholeheartedly agree that in this and most other form applications, > you don't need to expose this variable to user input and would (and > will) happily replace all of them in my application for better security. > > Thanks in advanced, mikesz > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > but beware: if basename(__FILE__) is used in an include file you'll get the name of that include file. what you may want is probably the name of the running script: basename($_SERVER['SCRIPT_NAME']) -- View this message in context: http://www.nabble.com/Holiday-Greetings-to-Everyone...-tf2882582.html#a8113012 Sent from the NYPHP-Talk mailing list archive at Nabble.com. From dcech at phpwerx.net Mon Jan 1 10:38:31 2007 From: dcech at phpwerx.net (Dan Cech) Date: Mon, 01 Jan 2007 10:38:31 -0500 Subject: [nycphp-talk] Re: PHP_SELF problems In-Reply-To: <8112979.post@talk.nabble.com> References: <45913339.30800@qualityadvantages.com> <459177A1.3040305@php.net> <8d9a42800612261411n20af36eat3c5246ff51eb0b7b@mail.gmail.com> <200612261751.33246.jellicle@gmail.com> <45953E8C.4040703@phpwerx.net> <8112979.post@talk.nabble.com> Message-ID: <45992AF7.60102@phpwerx.net> J?rgen Wind wrote: >> I have not really followed this discussion, but when i see something like > this: >> "$_SERVER['SCRIPT_NAME'] will contain the full _filesystem_ path, >> which is not what we're after." >> >> Can you just do a 1 line regex and pull out what you need? And you are all > set. >> :-) ed > > no need for regex here, a simple basename($_SERVER['SCRIPT_NAME']) will do > Happy New Year! As I outlined earlier in this thread, this will _not_ work if php is running as a cgi, you'll get 'php4-cgi' instead of 'myfilename.php' unless you have cgi.fix_pathinfo set to 1 (default is 0). Your previous comment regarding the fact that __FILE__ will give the name of the file it is placed in rather than the requested file is perfectly valid and worth keeping in mind. I'm starting to wonder whether the construct might be a simple secure way of getting around the requirement of having something in the action field. That doesn't help with the problem of correctly and securely generating the root-relative URL of a script however. Dan From jwind at gmx.de Mon Jan 1 11:35:42 2007 From: jwind at gmx.de (=?UTF-8?Q?J=C3=BCrgen_Wind?=) Date: Mon, 1 Jan 2007 08:35:42 -0800 (PST) Subject: [nycphp-talk] Re: PHP_SELF problems In-Reply-To: <45992AF7.60102@phpwerx.net> References: <45913339.30800@qualityadvantages.com> <459177A1.3040305@php.net> <8d9a42800612261411n20af36eat3c5246ff51eb0b7b@mail.gmail.com> <200612261751.33246.jellicle@gmail.com> <45953E8C.4040703@phpwerx.net> <8112979.post@talk.nabble.com> <45992AF7.60102@phpwerx.net> Message-ID: <8114735.post@talk.nabble.com> Dan Cech wrote: > > > As I outlined earlier in this thread, this will _not_ work if php is > running as a cgi, you'll get 'php4-cgi' instead of 'myfilename.php' > unless you have cgi.fix_pathinfo set to 1 (default is 0). > > Your previous comment regarding the fact that __FILE__ will give the > name of the file it is placed in rather than the requested file is > perfectly valid and worth keeping in mind. > > I'm starting to wonder whether the construct > > > > might be a simple secure way of getting around the requirement of having > something in the action field. That doesn't help with the problem of > correctly and securely generating the root-relative URL of a script > however. > > Dan > > sorry for not remembering that earlier post of yours. i never had problems with forms without any "action" field at all, although someone stated that it was "undefined" - at least it is better than $PHP_SELF ;) -- View this message in context: http://www.nabble.com/Holiday-Greetings-to-Everyone...-tf2882582.html#a8114735 Sent from the NYPHP-Talk mailing list archive at Nabble.com. From jwind at gmx.de Mon Jan 1 11:56:18 2007 From: jwind at gmx.de (=?UTF-8?Q?J=C3=BCrgen_Wind?=) Date: Mon, 1 Jan 2007 08:56:18 -0800 (PST) Subject: [nycphp-talk] Re: PHP_SELF problems In-Reply-To: <45992AF7.60102@phpwerx.net> References: <45913339.30800@qualityadvantages.com> <459177A1.3040305@php.net> <8d9a42800612261411n20af36eat3c5246ff51eb0b7b@mail.gmail.com> <200612261751.33246.jellicle@gmail.com> <45953E8C.4040703@phpwerx.net> <8112979.post@talk.nabble.com> <45992AF7.60102@phpwerx.net> Message-ID: <8114887.post@talk.nabble.com> Dan Cech wrote: > > As I outlined earlier in this thread, this will _not_ work if php is > running as a cgi, you'll get 'php4-cgi' instead of 'myfilename.php' > unless you have cgi.fix_pathinfo set to 1 (default is 0). > > Your previous comment regarding the fact that __FILE__ will give the > name of the file it is placed in rather than the requested file is > perfectly valid and worth keeping in mind. > ---8<--- > Dan > i wonder what basename($_SERVER['PHP_SELF']) does on a CGI system, from php running as module i get the filename only (w/o path and QUERY_STRING) -- View this message in context: http://www.nabble.com/Holiday-Greetings-to-Everyone...-tf2882582.html#a8114887 Sent from the NYPHP-Talk mailing list archive at Nabble.com. From lists at zaunere.com Mon Jan 1 12:40:08 2007 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 1 Jan 2007 12:40:08 -0500 Subject: [nycphp-talk] Re: PHP_SELF problems In-Reply-To: <45992AF7.60102@phpwerx.net> Message-ID: <00b901c72dcb$e1ba1c30$6d0aa8c0@MobileZ> Dan Cech wrote on Monday, January 01, 2007 10:39 AM: > J?rgen Wind wrote: > > > I have not really followed this discussion, but when i see > > > something like this: "$_SERVER['SCRIPT_NAME'] will contain the > > > full _filesystem_ path, > > > which is not what we're after." > > > > > > Can you just do a 1 line regex and pull out what you need? And > > > you are all set. :-) ed > > > > no need for regex here, a simple basename($_SERVER['SCRIPT_NAME']) > > will do Happy New Year! This is akin to what I do. > As I outlined earlier in this thread, this will _not_ work if php is > running as a cgi, you'll get 'php4-cgi' instead of 'myfilename.php' > unless you have cgi.fix_pathinfo set to 1 (default is 0). I think there's two important sides to this discussion. In the larger more complex applications, it's vital that paths/URLs be dynamically generated and understood. Like most complex applications, there are some environmental constraints - one of which is a properly configured PHP running as an Apache DSO. Thus I use a combination of SCRIPT_NAME and other URL/filesystem variables to determine how to write out and read in URLS/paths/etc. For simpler application, you're likely running in an environment that isn't always known, or that can change - ie, shared hosting with a prepackaged CMS system of some sort. In such cases, maybe it is possible to always use hardwired filenames, etc.. I know that's what I did for my first application :) In a similar context, there's and always exciting flame war on NYLUG regarding PHP security: http://www.nylug.org/pipermail/nylug-talk/2006-December/thread.html And search for PHP Security. They're also looking to deploy Joomla for their next release of www.nylug.org Happy New Year everyone - to a good 2007! --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com From ken at secdat.com Tue Jan 2 16:39:03 2007 From: ken at secdat.com (Kenneth Downs) Date: Tue, 02 Jan 2007 16:39:03 -0500 Subject: [nycphp-talk] Need HTML expert for quick job Message-ID: <459AD0F7.5080307@secdat.com> Hi folks, I have a graphic design that I am very happy with. As I am more of a database guy, I need an HTML guru who can convert it into something compatible with both Firefox and IE. The job is simple, if you look at my current site: www.secdat.com, it basically works except I need the height of the table to stretch to 100%, even if the content does not go down that far. Of course it would scroll if it does go over. I'm happy to pay for a re-coding of the HTML to make it clean and perfect if somebody out there knows what to do. -------------- next part -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From rolan at omnistep.com Tue Jan 2 16:58:36 2007 From: rolan at omnistep.com (Rolan Yang) Date: Tue, 02 Jan 2007 16:58:36 -0500 Subject: [nycphp-talk] Need HTML expert for quick job In-Reply-To: <459AD0F7.5080307@secdat.com> References: <459AD0F7.5080307@secdat.com> Message-ID: <459AD58C.9000807@omnistep.com> replace line #2 with
~Rolan Kenneth Downs wrote: > Hi folks, > > I have a graphic design that I am very happy with. As I am more of a > database guy, I need an HTML guru who can convert it into something > compatible with both Firefox and IE. > > The job is simple, if you look at my current site: www.secdat.com, it > basically works except I need the height of the table to stretch to > 100%, even if the content does not go down that far. Of course it > would scroll if it does go over. > > I'm happy to pay for a re-coding of the HTML to make it clean and > perfect if somebody out there knows what to do. > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From dorgan at optonline.net Tue Jan 2 17:07:49 2007 From: dorgan at optonline.net (Donald J Organ IV) Date: Tue, 02 Jan 2007 17:07:49 -0500 Subject: [nycphp-talk] Need HTML expert for quick job In-Reply-To: <459AD58C.9000807@omnistep.com> References: <459AD0F7.5080307@secdat.com> <459AD58C.9000807@omnistep.com> Message-ID: <459AD7B5.1060904@optonline.net> as well as replacing line #24 height: 118px; in your CSS file with: height: 75px; Rolan Yang wrote: > replace line #2 >
> with >
> > ~Rolan > Kenneth Downs wrote: >> Hi folks, >> >> I have a graphic design that I am very happy with. As I am more of a >> database guy, I need an HTML guru who can convert it into something >> compatible with both Firefox and IE. >> >> The job is simple, if you look at my current site: www.secdat.com, it >> basically works except I need the height of the table to stretch to >> 100%, even if the content does not go down that far. Of course it >> would scroll if it does go over. >> >> I'm happy to pay for a re-coding of the HTML to make it clean and >> perfect if somebody out there knows what to do. >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > From ken at secdat.com Tue Jan 2 17:29:57 2007 From: ken at secdat.com (Kenneth Downs) Date: Tue, 02 Jan 2007 17:29:57 -0500 Subject: [nycphp-talk] Need HTML expert for quick job In-Reply-To: <459AD58C.9000807@omnistep.com> References: <459AD0F7.5080307@secdat.com> <459AD58C.9000807@omnistep.com> Message-ID: <459ADCE5.8050505@secdat.com> Rolan Yang wrote: > replace line #2 >
> with >
This does not work on IE 6. The top TD element ends up measuring about 135px, leaving a blank band. > > ~Rolan > Kenneth Downs wrote: >> Hi folks, >> >> I have a graphic design that I am very happy with. As I am more of a >> database guy, I need an HTML guru who can convert it into something >> compatible with both Firefox and IE. >> >> The job is simple, if you look at my current site: www.secdat.com, it >> basically works except I need the height of the table to stretch to >> 100%, even if the content does not go down that far. Of course it >> would scroll if it does go over. >> >> I'm happy to pay for a re-coding of the HTML to make it clean and >> perfect if somebody out there knows what to do. >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php -------------- next part -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From dorgan at optonline.net Tue Jan 2 17:44:14 2007 From: dorgan at optonline.net (Donald J Organ IV) Date: Tue, 02 Jan 2007 17:44:14 -0500 Subject: [nycphp-talk] Need HTML expert for quick job In-Reply-To: <459ADCE5.8050505@secdat.com> References: <459AD0F7.5080307@secdat.com> <459AD58C.9000807@omnistep.com> <459ADCE5.8050505@secdat.com> Message-ID: <459AE03E.4010903@optonline.net> follow that as well as my fix, and you'll be good as gold :) Kenneth Downs wrote: > Rolan Yang wrote: >> replace line #2 >>
>> with >>
> > This does not work on IE 6. The top TD element ends up measuring > about 135px, leaving a blank band. > >> >> ~Rolan >> Kenneth Downs wrote: >>> Hi folks, >>> >>> I have a graphic design that I am very happy with. As I am more of >>> a database guy, I need an HTML guru who can convert it into >>> something compatible with both Firefox and IE. >>> >>> The job is simple, if you look at my current site: www.secdat.com, >>> it basically works except I need the height of the table to stretch >>> to 100%, even if the content does not go down that far. Of course >>> it would scroll if it does go over. >>> >>> I'm happy to pay for a re-coding of the HTML to make it clean and >>> perfect if somebody out there knows what to do. >>> _______________________________________________ >>> New York PHP Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> NYPHPCon 2006 Presentations Online >>> http://www.nyphpcon.com >>> >>> Show Your Participation in New York PHP >>> http://www.nyphp.org/show_participation.php >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.432 / Virus Database: 268.16.2/613 - Release Date: 1/1/2007 2:50 PM > From ken at secdat.com Tue Jan 2 20:05:53 2007 From: ken at secdat.com (Kenneth Downs) Date: Tue, 02 Jan 2007 20:05:53 -0500 Subject: [nycphp-talk] Need HTML expert for quick job In-Reply-To: <459AE03E.4010903@optonline.net> References: <459AD0F7.5080307@secdat.com> <459AD58C.9000807@omnistep.com> <459ADCE5.8050505@secdat.com> <459AE03E.4010903@optonline.net> Message-ID: <459B0171.700@secdat.com> Donald J Organ IV wrote: > follow that as well as my fix, and you'll be good as gold :) Hmm, I tried setting the height of the top row to 83 px (through trial-and-error) and that worked in IE, but then the top banner was clipped in firefox. > > > Kenneth Downs wrote: >> Rolan Yang wrote: >>> replace line #2 >>>
>>> with >>>
>> height="100%"> >> >> This does not work on IE 6. The top TD element ends up measuring >> about 135px, leaving a blank band. >> >>> >>> ~Rolan >>> Kenneth Downs wrote: >>>> Hi folks, >>>> >>>> I have a graphic design that I am very happy with. As I am more of >>>> a database guy, I need an HTML guru who can convert it into >>>> something compatible with both Firefox and IE. >>>> >>>> The job is simple, if you look at my current site: www.secdat.com, >>>> it basically works except I need the height of the table to stretch >>>> to 100%, even if the content does not go down that far. Of course >>>> it would scroll if it does go over. >>>> >>>> I'm happy to pay for a re-coding of the HTML to make it clean and >>>> perfect if somebody out there knows what to do. >>>> _______________________________________________ >>>> New York PHP Community Talk Mailing List >>>> http://lists.nyphp.org/mailman/listinfo/talk >>>> >>>> NYPHPCon 2006 Presentations Online >>>> http://www.nyphpcon.com >>>> >>>> Show Your Participation in New York PHP >>>> http://www.nyphp.org/show_participation.php >>> _______________________________________________ >>> New York PHP Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> NYPHPCon 2006 Presentations Online >>> http://www.nyphpcon.com >>> >>> Show Your Participation in New York PHP >>> http://www.nyphp.org/show_participation.php >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php >> >> ------------------------------------------------------------------------ >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.432 / Virus Database: 268.16.2/613 - Release Date: >> 1/1/2007 2:50 PM >> > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php -------------- next part -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From skyline at publicmine.com Tue Jan 2 21:56:26 2007 From: skyline at publicmine.com (Ben Sgro (sk)) Date: Tue, 2 Jan 2007 21:56:26 -0500 Subject: [nycphp-talk] PHP Based Ecommerce solutions Message-ID: <032101c72ee2$c477f170$6401a8c0@gamebox> Hello all and happy new year! I'm looking to construct an ecommerce store and since I prefer working with php/mySQL are there any packages that you all have had experiance with and can recommend? Also something, that if need be, I can get under the hood off (php/mysql related)? Thanks again! - Ben From nyphp at dynamicink.com Wed Jan 3 11:05:06 2007 From: nyphp at dynamicink.com (Dynamic Ink) Date: Wed, 3 Jan 2007 08:05:06 -0800 Subject: [nycphp-talk] PHP Based Ecommerce solutions References: <032101c72ee2$c477f170$6401a8c0@gamebox> Message-ID: <002a01c72f50$f25d2bf0$0401a8c0@e6300> Check out the Ultimate Shopping Cart in August & September 2004 PHP Architect magazine. ----- Original Message ----- From: "Ben Sgro (sk)" To: "NYPHP Talk" Sent: Tuesday, January 02, 2007 6:56 PM Subject: [nycphp-talk] PHP Based Ecommerce solutions > Hello all and happy new year! > > I'm looking to construct an ecommerce store and since I prefer working > with php/mySQL > are there any packages that you all have had experiance with and can > recommend? > > Also something, that if need be, I can get under the hood off (php/mysql > related)? > > Thanks again! > > - Ben > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > From brandywhine2007 at yahoo.com Wed Jan 3 17:49:17 2007 From: brandywhine2007 at yahoo.com (Brandy Whine) Date: Wed, 3 Jan 2007 14:49:17 -0800 (PST) Subject: [nycphp-talk] multi-part form without refresh - point me to a working solution? Message-ID: <304803.76627.qm@web59101.mail.re1.yahoo.com> Hi everyone. You have all helped me as a lurker for almost a year, but now my PHP has advanced a bit and I need to ask a specific question if that's ok. I don't know AJAX but I think I need it now. I have a multipart form to build. I need some parts to appear conditional on the data entered in prior parts. Right now, it's very specific: offer a text box. It will grow from here I am sure, but for now it's just "if text box is filled, offer part B if not, offer part C". Since I want to "save" the content of the text field that was entered, no matter what they do with the following (optional) form parts, do I need an ajax solution? And if so, can someone point me to working code I can start with as a noob on this topic, so I can learn as I use it? Thanks again for all the help. You guys rock. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From xdarkshadow98x at gmail.com Wed Jan 3 18:10:13 2007 From: xdarkshadow98x at gmail.com (Nazmul Hassan) Date: Wed, 3 Jan 2007 18:10:13 -0500 Subject: [nycphp-talk] multi-part form without refresh - point me to a working solution? In-Reply-To: <304803.76627.qm@web59101.mail.re1.yahoo.com> References: <304803.76627.qm@web59101.mail.re1.yahoo.com> Message-ID: well, to save it, you will have to use Ajax, to save the content even if it wasn't added. your saying, if text box A isn't filled, then text box B should be filled, and if neither are filled in then text box C must be filled in, then some sort of error will come? and also, this is working, on through the users browser, or through the server after the form values are put in. if it is through the users browser, then it shud be AJAX On 1/3/07, Brandy Whine wrote: > > Hi everyone. You have all helped me as a lurker for almost a year, but now > my PHP has advanced a bit and I need to ask a specific question if that's > ok. I don't know AJAX but I think I need it now. > > I have a multipart form to build. I need some parts to appear conditional > on the data entered in prior parts. Right now, it's very specific: > > offer a text box. It will grow from here I am sure, but for now it's just > "if text box is filled, offer part B if not, offer part C". > > Since I want to "save" the content of the text field that was entered, no > matter what they do with the following (optional) form parts, do I need an > ajax solution? And if so, can someone point me to working code I can start > with as a noob on this topic, so I can learn as I use it? > > Thanks again for all the help. You guys rock. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > -- (?`?._.?[ ' Nazmul Hassan ' ]?._.???) -------------- next part -------------- An HTML attachment was scrubbed... URL: From paul at devonianfarm.com Wed Jan 3 18:23:41 2007 From: paul at devonianfarm.com (Paul Houle) Date: Wed, 03 Jan 2007 18:23:41 -0500 Subject: [nycphp-talk] multi-part form without refresh - point me to a working solution? In-Reply-To: <304803.76627.qm@web59101.mail.re1.yahoo.com> References: <304803.76627.qm@web59101.mail.re1.yahoo.com> Message-ID: <459C3AFD.20205@devonianfarm.com> Brandy Whine wrote: > Hi everyone. You have all helped me as a lurker for almost a year, but > now my PHP has advanced a bit and I need to ask a specific question if > that's ok. I don't know AJAX but I think I need it now. > You can certainly do this with Javascript; actual AJAX, involving a call to a server, may or may not be necessary. It's easy to change the "display" attribute of a
element in Javascript to show or hide the element: http://support.internetconnection.net/CODE_LIBRARY/Javascript_Show_Hide.shtml The idea is that you put
elements containing all the form elements that could ever be displayed on the page: use onChange handlers on controlling form form elements to "morph" the form, say, somebody chooses an option from a dropdown. Libraries like prototype, scriptaculous, moo and such smooth over differences between broswers, make this kind of code more maintainable, and can also give you really cool effects (parts of the form can slide or fade in.) AJAX can enter if you'd like to pull information in from the web in the process of updating the form. For instance, a user might a state from a list of US states, and then the page uses AJAX to populate a list of counties from that state. You can accomplish the same thing, in this case, by including a big array with lots of states and counties in the page -- it saves bandwidth to send just the counties that are needed. --- It's old-school, but you can get accomplish the same aims without Javascript. The idea here is to make a "wizard" interface that has more than one form... Let's call them form1, form2, and form3: form1: asks some really basic questions that help determine what to display on form2 form2: asks more questions to determine what's on form3 form3: collects the last information and "submits" the form for real. You can pass answers from form1 into form2 by using hidden form variables... Make your life easy and write a function like function hide_variable($name,$value) { print "\n"; } I still think that most people find this kind of interface to be the easiest to use, when it's designed right. From brandywhine2007 at yahoo.com Wed Jan 3 18:23:03 2007 From: brandywhine2007 at yahoo.com (Brandy Whine) Date: Wed, 3 Jan 2007 15:23:03 -0800 (PST) Subject: [nycphp-talk] multi-part form without refresh - point me to a working solution? In-Reply-To: Message-ID: <287754.83826.qm@web59109.mail.re1.yahoo.com> Nazmul Hassan wrote: well, to save it, you will have to use Ajax, to save the content even if it wasn't added. your saying, if text box A isn't filled, then text box B should be filled, and if neither are filled in then text box C must be filled in, then some sort of error will come? and also, this is working, on through the users browser, or through the server after the form values are put in. if it is through the users browser, then it shud be AJAX yes, it seems that inorder to save the info I need to asynchronously send it back to the server even if the browsers js is show/hiding different parts of the form. Otherwise if someone filled in part but didnt "submit" I wouldn't get data. is that right? I'm not much for js programming. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From hans at cyberxdesigns.com Wed Jan 3 21:53:45 2007 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Wed, 03 Jan 2007 21:53:45 -0500 Subject: [nycphp-talk] Hola! Message-ID: <459C6C39.4020703@cyberxdesigns.com> Hola mi amigos! I am back. Hans K From 1j0lkq002 at sneakemail.com Wed Jan 3 22:04:40 2007 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 03 Jan 2007 19:04:40 -0800 Subject: [nycphp-talk] Hola! In-Reply-To: <459C6C39.4020703@cyberxdesigns.com> References: <459C6C39.4020703@cyberxdesigns.com> Message-ID: <29681-77229@sneakemail.com> Hans C. Kaspersetz hans-at-cyberxdesigns.com |nyphp dev/internal group use| wrote: > Hola mi amigos! I am back. > > Hans K Elvis is in the building. From hans at cyberxdesigns.com Wed Jan 3 22:08:04 2007 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Wed, 03 Jan 2007 22:08:04 -0500 Subject: [nycphp-talk] Hola! In-Reply-To: <29681-77229@sneakemail.com> References: <459C6C39.4020703@cyberxdesigns.com> <29681-77229@sneakemail.com> Message-ID: <459C6F94.9000308@cyberxdesigns.com> I thought you were giving all this up boss? inforequest wrote: > Hans C. Kaspersetz hans-at-cyberxdesigns.com |nyphp dev/internal group > use| wrote: > >> Hola mi amigos! I am back. >> >> Hans K From tedd at sperling.com Thu Jan 4 00:56:09 2007 From: tedd at sperling.com (tedd) Date: Thu, 4 Jan 2007 00:56:09 -0500 Subject: [nycphp-talk] Hola! In-Reply-To: <459C6C39.4020703@cyberxdesigns.com> References: <459C6C39.4020703@cyberxdesigns.com> Message-ID: At 9:53 PM -0500 1/3/07, Hans C. Kaspersetz wrote: >Hola mi amigos! I am back. > Reminds me of Happy Feet. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From ken at secdat.com Thu Jan 4 09:12:42 2007 From: ken at secdat.com (Kenneth Downs) Date: Thu, 04 Jan 2007 09:12:42 -0500 Subject: [nycphp-talk] And the HTML guru is.... Message-ID: <459D0B5A.5080006@secdat.com> Hi folks, A helpful HTML guru has given me the solution to my height-dont-work problem in IE 6. The guru is.... (drumroll) Tom Melendez of LIPHP fame. He pointed out that changing the document type declaration to "quirks" mode makes IE work, instantly fixing the problem. For completeness, here is a simplified snipeet that illustrates the fixed situation:
a
hello
b
-------------- next part -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From lk613m at yahoo.com Thu Jan 4 10:16:34 2007 From: lk613m at yahoo.com (LK) Date: Thu, 4 Jan 2007 07:16:34 -0800 (PST) Subject: [nycphp-talk] And the HTML guru is.... Message-ID: <20070104151634.56984.qmail@web53303.mail.yahoo.com> In this snippet I don't see where the document type is declared as "quirks" mode. What am I missing? ----- Original Message ---- From: Kenneth Downs To: NYPHP Talk Sent: Thursday, January 4, 2007 9:12:42 AM Subject: [nycphp-talk] And the HTML guru is.... Hi folks, A helpful HTML guru has given me the solution to my height-dont-work problem in IE 6. The guru is.... (drumroll) Tom Melendez of LIPHP fame. He pointed out that changing the document type declaration to "quirks" mode makes IE work, instantly fixing the problem. For completeness, here is a simplified snipeet that illustrates the fixed situation:
a
hello
b
begin:vcard fn:Kenneth Downs n:Downs;Kenneth adr;dom:;;347 Main Street;East Setauket;NY;11733 email;internet:ken at secdat.com tel;work:631-689-7200 tel;fax:631-689-0527 tel;cell:631-379-0010 x-mozilla-html:FALSE url:http://www.secdat.com version:2.1 end:vcard _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From randalrust at gmail.com Thu Jan 4 10:24:45 2007 From: randalrust at gmail.com (Randal Rust) Date: Thu, 4 Jan 2007 10:24:45 -0500 Subject: [nycphp-talk] And the HTML guru is.... In-Reply-To: <20070104151634.56984.qmail@web53303.mail.yahoo.com> References: <20070104151634.56984.qmail@web53303.mail.yahoo.com> Message-ID: On 1/4/07, LK wrote: > In this snippet I don't see where the document type is declared as "quirks" > mode. What am I missing? Quirks mode is triggered primarily by providing an incomplete DOCTYPE to the browser. http://en.wikipedia.org/wiki/Quirks_mode This complete DOCTYPE for this... > ...is.... -- Randal Rust R.Squared Communications www.r2communications.com From ken at secdat.com Thu Jan 4 10:27:10 2007 From: ken at secdat.com (Kenneth Downs) Date: Thu, 04 Jan 2007 10:27:10 -0500 Subject: [nycphp-talk] And the HTML guru is.... In-Reply-To: <20070104151634.56984.qmail@web53303.mail.yahoo.com> References: <20070104151634.56984.qmail@web53303.mail.yahoo.com> Message-ID: <459D1CCE.7010500@secdat.com> Googling "quirks mode ie doctype" brought this up as first link: http://hsivonen.iki.fi/doctype/ LK wrote: > In this snippet I don't see where the document type is declared as > "quirks" mode. What am I missing? > > ----- Original Message ---- > From: Kenneth Downs > To: NYPHP Talk > Sent: Thursday, January 4, 2007 9:12:42 AM > Subject: [nycphp-talk] And the HTML guru is.... > > Hi folks, > > A helpful HTML guru has given me the solution to my height-dont-work > problem in IE 6. > > The guru is.... (drumroll) Tom Melendez of LIPHP fame. He pointed out > that changing the document type declaration to "quirks" mode makes IE > work, instantly fixing the problem. > > For completeness, here is a simplified snipeet that illustrates the > fixed situation: > > > > > > > >
> style="width: 500px; height: 100%;"> > > > >
a
hello
b
>
> > begin:vcard > fn:Kenneth Downs > n:Downs;Kenneth > adr;dom:;;347 Main Street;East Setauket;NY;11733 > email;internet:ken at secdat.com > tel;work:631-689-7200 > tel;fax:631-689-0527 > tel;cell:631-379-0010 > x-mozilla-html:FALSE > url:http://www.secdat.com > version:2.1 > end:vcard > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From willie at pdfsystems.com Thu Jan 4 11:27:37 2007 From: willie at pdfsystems.com (willie klein) Date: Thu, 4 Jan 2007 11:27:37 -0500 Subject: [nycphp-talk] mysqli prepared statements Message-ID: Hi All; I just started using prepared statements. So far I have been very impressed by how much of a performance enhancement there is when using them. I have a query that isn't working now though and I'm not sure how to troubleshoot it. I used to just echo out the query and I could see where the problem was. I keep getting an empty result set from a query I know should have data in it. Is there a way to see the prepared query as the server sees it? I keep echoing out mysqli_error($dbi) but there is nothing in it. Relevant Code: $statement2 = $dbi->prepare("select date, date_format(date ,' %b %d %y') as dta from 1TrackUser where loginID = ? ORDER BY date");// if (mysqli_error($dbi)) { echo "ERROR: ".mysqli_error($dbi)."
"; } echo "ShowroomLoginID = $ShowroomloginID
"; // something valid is here $statement2->bind_param("s",$ShowroomloginID); $statement2->execute(); $statement2->bind_result($date,$dta); $TotalLogin = $statement2->num_rows ; // always 0 when I run query manually it works. Thanks Willie -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Thu Jan 4 11:30:55 2007 From: chsnyder at gmail.com (csnyder) Date: Thu, 4 Jan 2007 11:30:55 -0500 Subject: [nycphp-talk] Hola! In-Reply-To: References: <459C6C39.4020703@cyberxdesigns.com> Message-ID: On 1/4/07, tedd wrote: > At 9:53 PM -0500 1/3/07, Hans C. Kaspersetz wrote: > >Hola mi amigos! I am back. > > > > Reminds me of Happy Feet. > > tedd Reminded me of Borat, actually. -- Chris Snyder http://chxo.com/ From chsnyder at gmail.com Thu Jan 4 11:39:08 2007 From: chsnyder at gmail.com (csnyder) Date: Thu, 4 Jan 2007 11:39:08 -0500 Subject: [nycphp-talk] Passing array elements as... strings? Message-ID: Let's say you've got an object, with a property that contains an array with several values: $foo->bar = array( 0=>'quiz', 1=>'quuz', 2=>'quux' ); You want to get the value of $foo->bar[1], but all you have is the string "bar[1]" to work with (because it's a key in a submitted form), as $key = "bar[1]"; The classic, and deeply abhorrent, way to do this is: eval( "\$value = \$foo->$key;" ); I thought that $value = $foo->{$key} might work, but it doesn't. Does anyone have a pattern to solve this? -- Chris Snyder http://chxo.com/ From danielc at analysisandsolutions.com Thu Jan 4 12:04:42 2007 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 4 Jan 2007 12:04:42 -0500 Subject: [nycphp-talk] Passing array elements as... strings? In-Reply-To: References: Message-ID: <20070104170441.GA24334@panix.com> On Thu, Jan 04, 2007 at 11:39:08AM -0500, csnyder wrote: > > I thought that $value = $foo->{$key} might work, but it doesn't. Perhaps you can split the submission into two parts? $bar = array( 0=>'quiz', 1=>'quuz', 2=>'quux' ); $var = 'bar'; $key = 1; echo ${$var}[$key]; --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 nate at cakephp.org Thu Jan 4 12:15:33 2007 From: nate at cakephp.org (Nate Abele) Date: Thu, 4 Jan 2007 12:15:33 -0500 Subject: [nycphp-talk] Re: Passing array elements as... strings? In-Reply-To: <20070104163501.674EA10A806D@cakephp.org> References: <20070104163501.674EA10A806D@cakephp.org> Message-ID: Two solutions that come to mind are to (a) parse out the var name and the index from the string, or (b) submit the var name and the index as two separate POST vars. Any reason either of those wouldn't work? - Nate > Date: Thu, 4 Jan 2007 11:39:08 -0500 > From: csnyder > Subject: [nycphp-talk] Passing array elements as... strings? > To: "NYPHP Talk" > Message-ID: > > Content-Type: text/plain; charset=UTF-8; format=flowed > > Let's say you've got an object, with a property that contains an array > with several values: > > $foo->bar = array( 0=>'quiz', 1=>'quuz', 2=>'quux' ); > > You want to get the value of $foo->bar[1], but all you have is the > string "bar[1]" to work with (because it's a key in a submitted form), > as $key = "bar[1]"; > > The classic, and deeply abhorrent, way to do this is: > eval( "\$value = \$foo->$key;" ); > > I thought that $value = $foo->{$key} might work, but it doesn't. > > Does anyone have a pattern to solve this? > > -- > Chris Snyder > http://chxo.com/ From cliff at pinestream.com Thu Jan 4 12:20:42 2007 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 4 Jan 2007 12:20:42 -0500 Subject: [nycphp-talk] HTML/CSS div hide/show form problem Message-ID: <003101c73024$a98107b0$12a8a8c0@HirschLaptop> Ok, so this isn't PHP, but it's what drives us PHP programmers' crazy right - "quirks" mode, browser incompatibilities, etc. It's maddening. I asked my Boston PHP buddies if they can figure this one out. Let's see who can provide an answer first: Yankees or Red Sox: ------ I have a form that can be toggled to be visible or hidden using the following statement: The form is initially set to be hidden. A simple JavaScript function toggles the div display property to nothing/block or none. Problem: Without this code, the cursor appears normally in the input elements With this code, the cursor disappears in the input elements. It's awfully annoying to type text in an input element without the visual cue of a cursor. This occurs in FireFox, but not IE. Does anyone know why the cursor is disappearing? I'm guessing that the input element cursor attribute picks up the none property (as in cascading) when hidden, but does not revert back to visible when the div display element is changed back to '' or block. Any ideas regarding a solution? Cliff -------------- next part -------------- An HTML attachment was scrubbed... URL: From support at dailytechnology.net Thu Jan 4 12:22:51 2007 From: support at dailytechnology.net (Brian Dailey) Date: Thu, 04 Jan 2007 12:22:51 -0500 Subject: [nycphp-talk] CakePHP and HTTP Auth Message-ID: <459D37EB.9030400@dailytechnology.net> Have any of you cake-users on the list tried to password protect a single cake subdir (in my case, a plugin)? I got this working at one point, but I can't figure out how I did it. I'm currently attempting to pull in the Security->requireLogin() param, but it's just redirecting to somewhere else and not asking for authentication at all. All I'm looking for is a simple password protect - the kind you'd use with a .htaccess file normally. By the way, this is my biggest complaint with Cake. Documentation. Relying on the "shotgun documentation", leaving little bits and pieces here and there (wiki, google groups, irc) is killing me. The more time I spend trying to figure out how do to something that should be relatively simple, the less beneficial it is for me to use Cake. It's a great system, but man, the documentation is horrendous. Thanks, - Brian From ken at secdat.com Thu Jan 4 12:44:19 2007 From: ken at secdat.com (Kenneth Downs) Date: Thu, 04 Jan 2007 12:44:19 -0500 Subject: [nycphp-talk] HTML/CSS div hide/show form problem In-Reply-To: <003101c73024$a98107b0$12a8a8c0@HirschLaptop> References: <003101c73024$a98107b0$12a8a8c0@HirschLaptop> Message-ID: <459D3CF3.8030806@secdat.com> Cliff, Can you simply set the focus of a control when the display is turned off or on? Cliff Hirsch wrote: > > Ok, so this isn't PHP, but it's what drives us PHP programmers' crazy > right -- "quirks" mode, browser incompatibilities, etc. It's maddening... > > > > I asked my Boston PHP buddies if they can figure this one out. Let's > see who can provide an answer first: Yankees or Red Sox: > > ------ > > I have a form that can be toggled to be visible or hidden using the > following statement: > > > > > > > > The form is initially set to be hidden. A simple JavaScript function > toggles the div display property to nothing/block or none. > > > > Problem: > > Without this code, the cursor appears normally in the input elements > > With this code, the cursor disappears in the input elements. It's > awfully annoying to type text in an input element without the visual > cue of a cursor. > > > > This occurs in FireFox, but not IE. > > > > Does anyone know why the cursor is disappearing? I'm guessing that the > input element cursor attribute picks up the none property (as in > cascading) when hidden, but does not revert back to visible when the > div display element is changed back to '' or block. > > > > Any ideas regarding a solution? > > > > Cliff > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From nate at cakephp.org Thu Jan 4 13:14:20 2007 From: nate at cakephp.org (Nate Abele) Date: Thu, 4 Jan 2007 13:14:20 -0500 Subject: [nycphp-talk] Re: CakePHP and HTTP Auth In-Reply-To: <20070104174014.F1C8510A806D@cakephp.org> References: <20070104174014.F1C8510A806D@cakephp.org> Message-ID: <81E15C39-C631-4E0B-8A94-2F80E0BEBFDC@cakephp.org> class PluginAppController extends AppController { var $components = array("Security"); function beforeFilter() { $this->Security->requireLogin(array('users' => array( 'admin' => 'admin', 'guest' => 'guest' ))); parent::beforeFilter(); } } You know, I get so sick of people ranting about Open Source projects as if the authors somehow owe them something. We are three people, three and a half on a good day. Some of us have social lives, and all of us have bills to pay. Documentation is often a sore spot for OS projects, and ours certainly isn't perfect, but it is far better than it was, and far, far better than many other projects out there. Also, at this point it's pretty unfair to characterize our documentation as so scattershot. If you bothered to look, you'd notice that the wiki has been shut down, and we've created a new community documentation system as http://bakery.cakephp.org/ which is filling out quite nicely. Furthermore, and this one goes out to anyone else not paying attention, SecurityComponent::requireLogin() is part of CakePHP 1.2, which is currently in development status, and thus neither feature- complete nor fully debugged. That particular method is undocumented due largely to the fact that *it's not done yet*. Finally, it's true, we are keenly aware that our documentation could use a little more work, but that's part of why we're an Open Source project. If you dig into a specific Cake feature, find there's no documentation, and learn to use it anyway, here's a novel idea: HELP US. John Anderson heads up the documentation team (of one), and can be reached at psychic at cakephp d0t org. Oh, and this has to be a first. I don't think I've ever actually heard anyone complain about the fact that we have an IRC channel offering live support, which one of the core developers of the framework is almost always on. Thanks, - Nate Core Developer, CakePHP > Date: Thu, 04 Jan 2007 12:22:51 -0500 > From: Brian Dailey > Subject: [nycphp-talk] CakePHP and HTTP Auth > To: NYPHP Talk > Message-ID: <459D37EB.9030400 at dailytechnology.net> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Have any of you cake-users on the list tried to password protect a > single cake subdir (in my case, a plugin)? I got this working at one > point, but I can't figure out how I did it. I'm currently > attempting to > pull in the Security->requireLogin() param, but it's just > redirecting to > somewhere else and not asking for authentication at all. > > All I'm looking for is a simple password protect - the kind you'd use > with a .htaccess file normally. > > > By the way, this is my biggest complaint with Cake. Documentation. > Relying on the "shotgun documentation", leaving little bits and pieces > here and there (wiki, google groups, irc) is killing me. The more > time I > spend trying to figure out how do to something that should be > relatively > simple, the less beneficial it is for me to use Cake. It's a great > system, but man, the documentation is horrendous. > > > Thanks, > - Brian From rotsen at gmail.com Thu Jan 4 13:16:31 2007 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 4 Jan 2007 10:16:31 -0800 Subject: [nycphp-talk] Accessing a file in another web server Message-ID: People, I am trying to determine if a file exist in a another web server and if it does exist then I will display the link of the file. I tried is_readable() and stat() and they both say that the file does not exist, but the file does exist. What function should I use to check for existance of a file on a different web server??? Thanks, N?stor :-) -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Thu Jan 4 13:27:05 2007 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Thu, 04 Jan 2007 10:27:05 -0800 Subject: [nycphp-talk] Re: CakePHP and HTTP Auth In-Reply-To: <81E15C39-C631-4E0B-8A94-2F80E0BEBFDC@cakephp.org> References: <20070104174014.F1C8510A806D@cakephp.org> <81E15C39-C631-4E0B-8A94-2F80E0BEBFDC@cakephp.org> Message-ID: <8378-41228@sneakemail.com> Nate Abele nate-at-cakephp.org |nyphp dev/internal group use| wrote: > > You know, I get so sick of people ranting about Open Source projects > as if the authors somehow owe them something. We are three people, > three and a half on a good day. Wow, thanks for the reminder, Nate. I don't mean to speak for the guy who criticized the Cake docs, but with something as good as Cake, I would never have assumed it was 3 people. I would have imagined a team of contributors from around the world, etc. I'm pretty sure that when a PHP learner writes to a PHP talk list about Cake, he's not cognitive about the community being a benevolent handful of people (might have something to do with the branding of Open Source a few years ago... it was all about many eyes on code, frequent contributions from many people, etc). Anyway nice work 1) contributing an answer inside of 1 hour and 8 minutes and 2) reminding everybody of just how fragile this great PHP world is. Everybody can ask themselves: when's the last time you contributed to an open source effort (such as docs) and isn't it time to contribute some more? -=john andrews -- ------------------------------------------------------------- Your web server traffic log file is the most important source of web business information available. Do you know where your logs are right now? Do you know who else has access to your log files? When they were last archived? Where those archives are? --John Andrews Competitive Webmaster and SEO Blogging at http://www.johnon.com From jface at mercenarylabs.com Thu Jan 4 13:34:19 2007 From: jface at mercenarylabs.com (Jonathan Face) Date: Thu, 04 Jan 2007 13:34:19 -0500 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: References: Message-ID: <459D48AB.9020709@mercenarylabs.com> I haven't had a reason to experiment with this before, but you might try out: file_exists($url); N?stor wrote: > People, > > I am trying to determine if a file exist in a another web server > and if it does exist then I will display the link of the file. > > I tried is_readable() and stat() and they both say that the file does not > exist, but the file does exist. > > What function should I use to check for existance of a file > on a different web server??? > > Thanks, > > N?stor :-) > >------------------------------------------------------------------------ > >_______________________________________________ >New York PHP Community Talk Mailing List >http://lists.nyphp.org/mailman/listinfo/talk > >NYPHPCon 2006 Presentations Online >http://www.nyphpcon.com > >Show Your Participation in New York PHP >http://www.nyphp.org/show_participation.php > From edwardpotter at gmail.com Thu Jan 4 13:39:36 2007 From: edwardpotter at gmail.com (edward potter) Date: Thu, 4 Jan 2007 13:39:36 -0500 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: References: Message-ID: well . . . I assume you can 100% of the time see this file in your browser -- so it must exist. It's pretty easy to confuse web paths with file paths too. I would start looking at that. url? :-) ed On 1/4/07, N?stor wrote: > People, > > I am trying to determine if a file exist in a another web server > and if it does exist then I will display the link of the file. > > I tried is_readable() and stat() and they both say that the file does not > exist, but the file does exist. > > What function should I use to check for existance of a file > on a different web server??? > > Thanks, > > N?stor :-) > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > -- the Blog: http://www.utopiaparkway.com the Karma: http://www.coderswithconscience.com the Projects: http://flickr.com/photos/86842405 at N00/ the Store: http://astore.amazon.com/httpwwwutopic-20 From dirn at dirnonline.com Thu Jan 4 13:39:54 2007 From: dirn at dirnonline.com (Andy Dirnberger) Date: Thu, 4 Jan 2007 13:39:54 -0500 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: <459D48AB.9020709@mercenarylabs.com> Message-ID: <005901c7302f$ba4c30a0$b365a8c0@andyabs> There are a few url_exists functions in the manual: http://us3.php.net/file_exists -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jonathan Face Sent: Thursday, January 04, 2007 1:34 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Accessing a file in another web server I haven't had a reason to experiment with this before, but you might try out: file_exists($url); N?stor wrote: > People, > > I am trying to determine if a file exist in a another web server > and if it does exist then I will display the link of the file. > > I tried is_readable() and stat() and they both say that the file does not > exist, but the file does exist. > > What function should I use to check for existance of a file > on a different web server??? > > Thanks, > > N?stor :-) > >------------------------------------------------------------------------ > >_______________________________________________ >New York PHP Community Talk Mailing List >http://lists.nyphp.org/mailman/listinfo/talk > >NYPHPCon 2006 Presentations Online >http://www.nyphpcon.com > >Show Your Participation in New York PHP >http://www.nyphp.org/show_participation.php > _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From support at dailytechnology.net Thu Jan 4 13:39:54 2007 From: support at dailytechnology.net (Brian Dailey) Date: Thu, 04 Jan 2007 13:39:54 -0500 Subject: [nycphp-talk] Re: CakePHP and Documentation In-Reply-To: <81E15C39-C631-4E0B-8A94-2F80E0BEBFDC@cakephp.org> References: <20070104174014.F1C8510A806D@cakephp.org> <81E15C39-C631-4E0B-8A94-2F80E0BEBFDC@cakephp.org> Message-ID: <459D49FA.1040206@dailytechnology.net> I'll reply to the HTTP auth question in a separate thread... I'm aware of the Bakery, but thus far I've been unable to use it to find effectual answers to questions I've had about the project. I realize you don't "owe" anyone anything, and I apologize that I perhaps implied that. I realize you're busy fellows and your life doesn't revolve around Cake. (Additionally, I'm not complaining about IRC... I'm just saying that some sort of documentation should be the *first* place I should find help - IRC should be *last*. You'd probably agree with that yourself.) That said, I've been using Cake for about a year now, I think, and it's by far the best php framework I've employed. Period. So kudos to you and the other two-and-a-half guys. :P My complaint was perhaps mistaken as a whine, but it's really just me venting frustration. I'm not blaming you, or any other participant in the Cake team. "Finally, it's true, we are keenly aware that our documentation could use a little more work..." Great, then we agree. :) In the future, I will attempt to be more aware of areas that I may be able to contribute to the project. - Brian Nate Abele wrote: > class PluginAppController extends AppController { > > var $components = array("Security"); > > function beforeFilter() { > $this->Security->requireLogin(array('users' => array( > 'admin' => 'admin', > 'guest' => 'guest' > ))); > parent::beforeFilter(); > } > } > > > You know, I get so sick of people ranting about Open Source projects as > if the authors somehow owe them something. We are three people, three > and a half on a good day. Some of us have social lives, and all of us > have bills to pay. Documentation is often a sore spot for OS projects, > and ours certainly isn't perfect, but it is far better than it was, and > far, far better than many other projects out there. > > Also, at this point it's pretty unfair to characterize our documentation > as so scattershot. If you bothered to look, you'd notice that the wiki > has been shut down, and we've created a new community documentation > system as http://bakery.cakephp.org/ which is filling out quite nicely. > > Furthermore, and this one goes out to anyone else not paying attention, > SecurityComponent::requireLogin() is part of CakePHP 1.2, which is > currently in development status, and thus neither feature-complete nor > fully debugged. That particular method is undocumented due largely to > the fact that *it's not done yet*. > > Finally, it's true, we are keenly aware that our documentation could use > a little more work, but that's part of why we're an Open Source > project. If you dig into a specific Cake feature, find there's no > documentation, and learn to use it anyway, here's a novel idea: HELP > US. John Anderson heads up the documentation team (of one), and can be > reached at psychic at cakephp d0t org. > > Oh, and this has to be a first. I don't think I've ever actually heard > anyone complain about the fact that we have an IRC channel offering live > support, which one of the core developers of the framework is almost > always on. > > > Thanks, > - Nate > Core Developer, CakePHP > >> Date: Thu, 04 Jan 2007 12:22:51 -0500 >> From: Brian Dailey >> Subject: [nycphp-talk] CakePHP and HTTP Auth >> To: NYPHP Talk >> Message-ID: <459D37EB.9030400 at dailytechnology.net> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> Have any of you cake-users on the list tried to password protect a >> single cake subdir (in my case, a plugin)? I got this working at one >> point, but I can't figure out how I did it. I'm currently attempting to >> pull in the Security->requireLogin() param, but it's just redirecting to >> somewhere else and not asking for authentication at all. >> >> All I'm looking for is a simple password protect - the kind you'd use >> with a .htaccess file normally. >> >> >> By the way, this is my biggest complaint with Cake. Documentation. >> Relying on the "shotgun documentation", leaving little bits and pieces >> here and there (wiki, google groups, irc) is killing me. The more time I >> spend trying to figure out how do to something that should be relatively >> simple, the less beneficial it is for me to use Cake. It's a great >> system, but man, the documentation is horrendous. >> >> >> Thanks, >> - Brian > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > From tom at supertom.com Thu Jan 4 14:00:30 2007 From: tom at supertom.com (Tom Melendez) Date: Thu, 4 Jan 2007 14:00:30 -0500 Subject: [nycphp-talk] Re: Passing array elements as... strings? In-Reply-To: References: <20070104163501.674EA10A806D@cakephp.org> Message-ID: <117286890701041100p2e6d517fj13edefbbabce8433@mail.gmail.com> On 1/4/07, Nate Abele wrote: > Two solutions that come to mind are to (a) parse out the var name and > the index from the string, or (b) submit the var name and the index > as two separate POST vars. Any reason either of those wouldn't work? That's what I came up with too. $key = "bar[1]"; preg_match("/(.*)\[(\d)\]/",$key,$m); $name=$m[1]; $index=$m[2]; $myarray=$foo->$name; print $myarray[$index]; Very interested in other solutions. If bar comes in as an array (like $_POST[bar][1]) you could probably use array_keys to suck out keys, although I haven't tried it. Tom http://www.liphp.org From rotsen at gmail.com Thu Jan 4 14:00:43 2007 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 4 Jan 2007 11:00:43 -0800 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: <005901c7302f$ba4c30a0$b365a8c0@andyabs> References: <459D48AB.9020709@mercenarylabs.com> <005901c7302f$ba4c30a0$b365a8c0@andyabs> Message-ID: I have tried all of those and they return false weather the file is exist and is readable or not I have tried file_exists() stat() is_readable() Wow, I never thought that this would be a problem..... Thanks, N?stor :-) On 1/4/07, Andy Dirnberger wrote: > > There are a few url_exists functions in the manual: > http://us3.php.net/file_exists > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On > Behalf Of Jonathan Face > Sent: Thursday, January 04, 2007 1:34 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Accessing a file in another web server > > I haven't had a reason to experiment with this before, but you might try > out: > file_exists($url); > > N?stor wrote: > > > People, > > > > I am trying to determine if a file exist in a another web server > > and if it does exist then I will display the link of the file. > > > > I tried is_readable() and stat() and they both say that the file does > not > > exist, but the file does exist. > > > > What function should I use to check for existance of a file > > on a different web server??? > > > > Thanks, > > > > N?stor :-) > > > >------------------------------------------------------------------------ > > > >_______________________________________________ > >New York PHP Community Talk Mailing List > >http://lists.nyphp.org/mailman/listinfo/talk > > > >NYPHPCon 2006 Presentations Online > >http://www.nyphpcon.com > > > >Show Your Participation in New York PHP > >http://www.nyphp.org/show_participation.php > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tom at supertom.com Thu Jan 4 14:06:55 2007 From: tom at supertom.com (Tom Melendez) Date: Thu, 4 Jan 2007 14:06:55 -0500 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: References: <459D48AB.9020709@mercenarylabs.com> <005901c7302f$ba4c30a0$b365a8c0@andyabs> Message-ID: <117286890701041106l3ef5980fidc72072aa23aaff1@mail.gmail.com> Hi N?stor, What happens if you do a basic fopen on the file (assuming that allow_open_url is set to On in php.ini)? Tom http://www.liphp.org On 1/4/07, N?stor wrote: > I have tried all of those and they return false weather the file is exist > and is readable or not > I have tried file_exists() > stat() > is_readable() > > Wow, I never thought that this would be a problem..... > > Thanks, > > N?stor :-) > > On 1/4/07, Andy Dirnberger wrote: > > There are a few url_exists functions in the manual: > > http://us3.php.net/file_exists > > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On > > Behalf Of Jonathan Face > > Sent: Thursday, January 04, 2007 1:34 PM > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] Accessing a file in another web server > > > > I haven't had a reason to experiment with this before, but you might try > > out: > > file_exists($url); > > > > N?stor wrote: > > > > > People, > > > > > > I am trying to determine if a file exist in a another web server > > > and if it does exist then I will display the link of the file. > > > > > > I tried is_readable() and stat() and they both say that the file does > not > > > exist, but the file does exist. > > > > > > What function should I use to check for existance of a file > > > on a different web server??? > > > > > > Thanks, > > > > > > N?stor :-) > > > > > > >------------------------------------------------------------------------ > > > > > >_______________________________________________ > > >New York PHP Community Talk Mailing List > > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > >NYPHPCon 2006 Presentations Online > > > http://www.nyphpcon.com > > > > > >Show Your Participation in New York PHP > > >http://www.nyphp.org/show_participation.php > > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > From edwardpotter at gmail.com Thu Jan 4 14:16:06 2007 From: edwardpotter at gmail.com (edward potter) Date: Thu, 4 Jan 2007 14:16:06 -0500 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: References: <459D48AB.9020709@mercenarylabs.com> <005901c7302f$ba4c30a0$b365a8c0@andyabs> Message-ID: What's the url? On 1/4/07, N?stor wrote: > I have tried all of those and they return false weather the file is exist > and is readable or not > I have tried file_exists() > stat() > is_readable() > > Wow, I never thought that this would be a problem..... > > Thanks, > > N?stor :-) > > On 1/4/07, Andy Dirnberger wrote: > > There are a few url_exists functions in the manual: > > http://us3.php.net/file_exists > > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On > > Behalf Of Jonathan Face > > Sent: Thursday, January 04, 2007 1:34 PM > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] Accessing a file in another web server > > > > I haven't had a reason to experiment with this before, but you might try > > out: > > file_exists($url); > > > > N?stor wrote: > > > > > People, > > > > > > I am trying to determine if a file exist in a another web server > > > and if it does exist then I will display the link of the file. > > > > > > I tried is_readable() and stat() and they both say that the file does > not > > > exist, but the file does exist. > > > > > > What function should I use to check for existance of a file > > > on a different web server??? > > > > > > Thanks, > > > > > > N?stor :-) > > > > > > >------------------------------------------------------------------------ > > > > > >_______________________________________________ > > >New York PHP Community Talk Mailing List > > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > >NYPHPCon 2006 Presentations Online > > > http://www.nyphpcon.com > > > > > >Show Your Participation in New York PHP > > >http://www.nyphp.org/show_participation.php > > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > -- the Blog: http://www.utopiaparkway.com the Karma: http://www.coderswithconscience.com the Projects: http://flickr.com/photos/86842405 at N00/ the Store: http://astore.amazon.com/httpwwwutopic-20 From rotsen at gmail.com Thu Jan 4 14:18:54 2007 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 4 Jan 2007 11:18:54 -0800 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: <117286890701041106l3ef5980fidc72072aa23aaff1@mail.gmail.com> References: <459D48AB.9020709@mercenarylabs.com> <005901c7302f$ba4c30a0$b365a8c0@andyabs> <117286890701041106l3ef5980fidc72072aa23aaff1@mail.gmail.com> Message-ID: Tom, I had just tried this and it works but it makes the entire web page very slow to render. See the page that I am dealing with needs to do this check in several places. One thing is that you need to use the fopen() with an '@' to suppress warnings when the file does not exist. The fopen() fixes my problem but it is slow rendering. I will try to find another solution. Thanks, n?stor :-) On 1/4/07, Tom Melendez wrote: > > Hi N?stor, > > What happens if you do a basic fopen on the file (assuming that > allow_open_url is set to On in php.ini)? > > Tom > http://www.liphp.org > > > On 1/4/07, N?stor wrote: > > I have tried all of those and they return false weather the file is > exist > > and is readable or not > > I have tried file_exists() > > stat() > > is_readable() > > > > Wow, I never thought that this would be a problem..... > > > > Thanks, > > > > N?stor :-) > > > > On 1/4/07, Andy Dirnberger wrote: > > > There are a few url_exists functions in the manual: > > > http://us3.php.net/file_exists > > > > > > -----Original Message----- > > > From: talk-bounces at lists.nyphp.org [mailto: > talk-bounces at lists.nyphp.org] > > On > > > Behalf Of Jonathan Face > > > Sent: Thursday, January 04, 2007 1:34 PM > > > To: NYPHP Talk > > > Subject: Re: [nycphp-talk] Accessing a file in another web server > > > > > > I haven't had a reason to experiment with this before, but you might > try > > > out: > > > file_exists($url); > > > > > > N?stor wrote: > > > > > > > People, > > > > > > > > I am trying to determine if a file exist in a another web server > > > > and if it does exist then I will display the link of the file. > > > > > > > > I tried is_readable() and stat() and they both say that the file > does > > not > > > > exist, but the file does exist. > > > > > > > > What function should I use to check for existance of a file > > > > on a different web server??? > > > > > > > > Thanks, > > > > > > > > N?stor :-) > > > > > > > > > > >------------------------------------------------------------------------ > > > > > > > >_______________________________________________ > > > >New York PHP Community Talk Mailing List > > > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > >NYPHPCon 2006 Presentations Online > > > > http://www.nyphpcon.com > > > > > > > >Show Your Participation in New York PHP > > > >http://www.nyphp.org/show_participation.php > > > > > > > > > > _______________________________________________ > > > New York PHP Community Talk Mailing List > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > NYPHPCon 2006 Presentations Online > > > http://www.nyphpcon.com > > > > > > Show Your Participation in New York PHP > > > http://www.nyphp.org/show_participation.php > > > > > > _______________________________________________ > > > New York PHP Community Talk Mailing List > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > NYPHPCon 2006 Presentations Online > > > http://www.nyphpcon.com > > > > > > Show Your Participation in New York PHP > > > http://www.nyphp.org/show_participation.php > > > > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Thu Jan 4 14:21:17 2007 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 4 Jan 2007 11:21:17 -0800 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: References: <459D48AB.9020709@mercenarylabs.com> <005901c7302f$ba4c30a0$b365a8c0@andyabs> <117286890701041106l3ef5980fidc72072aa23aaff1@mail.gmail.com> Message-ID: It is an internal intranet page and I am accessing word(.doc) or pdf files that are open when I type the url on the address bar on my browser. :-) On 1/4/07, N?stor wrote: > > Tom, > > I had just tried this and it works but it makes the entire web page very > slow to render. > See the page that I am dealing with needs to do this check in several > places. > > One thing is that you need to use the fopen() with an '@' to suppress > warnings when > the file does not exist. > > The fopen() fixes my problem but it is slow rendering. I will try to find > another solution. > > Thanks, > > n?stor :-) > > On 1/4/07, Tom Melendez wrote: > > > > Hi N?stor, > > > > What happens if you do a basic fopen on the file (assuming that > > allow_open_url is set to On in php.ini)? > > > > Tom > > http://www.liphp.org > > > > > > On 1/4/07, N?stor < rotsen at gmail.com> wrote: > > > I have tried all of those and they return false weather the file is > > exist > > > and is readable or not > > > I have tried file_exists() > > > stat() > > > is_readable() > > > > > > Wow, I never thought that this would be a problem..... > > > > > > Thanks, > > > > > > N?stor :-) > > > > > > On 1/4/07, Andy Dirnberger < dirn at dirnonline.com> wrote: > > > > There are a few url_exists functions in the manual: > > > > http://us3.php.net/file_exists > > > > > > > > -----Original Message----- > > > > From: talk-bounces at lists.nyphp.org [mailto: > > talk-bounces at lists.nyphp.org] > > > On > > > > Behalf Of Jonathan Face > > > > Sent: Thursday, January 04, 2007 1:34 PM > > > > To: NYPHP Talk > > > > Subject: Re: [nycphp-talk] Accessing a file in another web server > > > > > > > > I haven't had a reason to experiment with this before, but you might > > try > > > > out: > > > > file_exists($url); > > > > > > > > N?stor wrote: > > > > > > > > > People, > > > > > > > > > > I am trying to determine if a file exist in a another web server > > > > > and if it does exist then I will display the link of the file. > > > > > > > > > > I tried is_readable() and stat() and they both say that the file > > does > > > not > > > > > exist, but the file does exist. > > > > > > > > > > What function should I use to check for existance of a file > > > > > on a different web server??? > > > > > > > > > > Thanks, > > > > > > > > > > N?stor :-) > > > > > > > > > > > > > > >------------------------------------------------------------------------ > > > > > > > > > >_______________________________________________ > > > > >New York PHP Community Talk Mailing List > > > > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > >NYPHPCon 2006 Presentations Online > > > > > http://www.nyphpcon.com > > > > > > > > > >Show Your Participation in New York PHP > > > > >http://www.nyphp.org/show_participation.php > > > > > > > > > > > > > _______________________________________________ > > > > New York PHP Community Talk Mailing List > > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > NYPHPCon 2006 Presentations Online > > > > http://www.nyphpcon.com > > > > > > > > Show Your Participation in New York PHP > > > > http://www.nyphp.org/show_participation.php > > > > > > > > _______________________________________________ > > > > New York PHP Community Talk Mailing List > > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > NYPHPCon 2006 Presentations Online > > > > http://www.nyphpcon.com > > > > > > > > Show Your Participation in New York PHP > > > > http://www.nyphp.org/show_participation.php > > > > > > > > > > > > > _______________________________________________ > > > New York PHP Community Talk Mailing List > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > NYPHPCon 2006 Presentations Online > > > http://www.nyphpcon.com > > > > > > Show Your Participation in New York PHP > > > http://www.nyphp.org/show_participation.php > > > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From enolists at gmail.com Thu Jan 4 14:23:04 2007 From: enolists at gmail.com (Mark Armendariz) Date: Thu, 4 Jan 2007 14:23:04 -0500 Subject: [nycphp-talk] sendmail and php mail Message-ID: Happy 2007, everyone. I know this isn't directly a php, issue, but I was hoping someone here might have some experience with such a thing. My client has their site on one server and their their email server at another hosting company. I'm trying to send mail from a php script (using the mail function) on the site. I know sendmail is working correctly, as I can send email to my own domain as well as to any other I've tried. This only applies to sending email internally. Sendmail has a recipient check. Basically, it talks to the recipient's server and checks that the user exists before trying to send the message. Unfortunately, since the hosting server has the same domain name as the mail server. ** Here's the php: $aHeaders = array(); $aHeaders[] = 'From: ' . EMAIL_DONATIONS; $aHeaders[] = 'X-Mailer: PHP v' . phpversion(); $sSubject = 'New Donation Submitted'; $sMessage = 'A new donation has been submitted through the site.'; mail(EMAIL_DONATIONS, $sSubject, $sMessage, implode("\n", $aHeaders), '-v'); ** Here's the verbose output of sendmail (with my domain in place of the client's) TheRecipient at enobrev.com... Connecting to localhost.localdomain. via relay... 220 ss07.shared.server-system.net ESMTP Sendmail 8.12.11.20060308/8.12.11; Thu, 4 Jan 2007 11:09:10 -0800 >>> EHLO laco.org 250-ss07.shared.server-system.net Hello localhost.localdomain [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 15000000 250-DSN 250-ETRN 250-AUTH LOGIN PLAIN 250-STARTTLS 250-DELIVERBY 250 HELP >>> STARTTLS 220 2.0.0 Ready to start TLS >>> EHLO enobrev.com 250-ss07.shared.server-system.net Hello localhost.localdomain [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 15000000 250-DSN 250-ETRN 250-AUTH LOGIN PLAIN 250-DELIVERBY 250 HELP >>> MAIL From: SIZE=300 AUTH=enobrev at enobrev.com 250 2.1.0 ... Sender ok >>> RCPT To: >>> DATA 550 5.1.1 ... User unknown 503 5.0.0 Need RCPT (recipient) >>> RSET 250 2.0.0 Reset state dead.letter... Saved message in dead.letter Closing connection to localhost.localdomain. >>> QUIT 221 2.0.0 ss07.shared.server-system.net closing connection Now, I know for a fact the recipient's email exists on my client's mail server (which is an exchange server). The only thing I can figure is that it's checking the local host for the recipient and not finding it, and hence never sending the email. Anybody ever run into this before? Is there a switch i can use with php's mail function or sendmail to get around this? Thanks!! Mark Armendariz -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Thu Jan 4 14:24:47 2007 From: chsnyder at gmail.com (csnyder) Date: Thu, 4 Jan 2007 14:24:47 -0500 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: References: <459D48AB.9020709@mercenarylabs.com> <005901c7302f$ba4c30a0$b365a8c0@andyabs> <117286890701041106l3ef5980fidc72072aa23aaff1@mail.gmail.com> Message-ID: On 1/4/07, N?stor wrote: > Tom, > > I had just tried this and it works but it makes the entire web page very > slow to render. > See the page that I am dealing with needs to do this check in several > places. > > One thing is that you need to use the fopen() with an '@' to suppress > warnings when > the file does not exist. The page will render particularly slowly if the other webserver goes down, as each fopen() call will take around 30 seconds to time out. You're right to look for another solution. If the URLs don't change very often, you could write a quick cron script to check for them every now and then, and update a local file or database. If they _do_ change a lot, then you will need to write (or find) checking routines that make HTTP HEAD requests via fsockopen(). Not only is HEAD more efficient then GET, but fsockopen() can be set to have very short timeouts in case the server is unreachable or not answering quickly. -- Chris Snyder http://chxo.com/ From dirn at dirnonline.com Thu Jan 4 14:26:52 2007 From: dirn at dirnonline.com (Andy Dirnberger) Date: Thu, 4 Jan 2007 14:26:52 -0500 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: Message-ID: <006f01c73036$4a8f6ff0$b365a8c0@andyabs> If the server is on a local network, are you able to access the files through the network? Something like file_exists (?\\sharename\path\to\file?) _____ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of N?stor Sent: Thursday, January 04, 2007 2:21 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Accessing a file in another web server It is an internal intranet page and I am accessing word(.doc) or pdf files that are open when I type the url on the address bar on my browser. :-) On 1/4/07, N?stor wrote: Tom, I had just tried this and it works but it makes the entire web page very slow to render. See the page that I am dealing with needs to do this check in several places. One thing is that you need to use the fopen() with an '@' to suppress warnings when the file does not exist. The fopen() fixes my problem but it is slow rendering. I will try to find another solution. Thanks, n?stor :-) On 1/4/07, Tom Melendez wrote: Hi N?stor, What happens if you do a basic fopen on the file (assuming that allow_open_url is set to On in php.ini)? Tom http://www.liphp.org On 1/4/07, N?stor < rotsen at gmail.com> wrote: > I have tried all of those and they return false weather the file is exist > and is readable or not > I have tried file_exists() > stat() > is_readable() > > Wow, I never thought that this would be a problem..... > > Thanks, > > N?stor :-) > > On 1/4/07, Andy Dirnberger < dirn at dirnonline.com > wrote: > > There are a few url_exists functions in the manual: > > http://us3.php.net/file_exists > > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org [mailto: talk-bounces at lists.nyphp.org] > On > > Behalf Of Jonathan Face > > Sent: Thursday, January 04, 2007 1:34 PM > > To: NYPHP Talk > > Subject: Re: [nycphp-talk] Accessing a file in another web server > > > > I haven't had a reason to experiment with this before, but you might try > > out: > > file_exists($url); > > > > N?stor wrote: > > > > > People, > > > > > > I am trying to determine if a file exist in a another web server > > > and if it does exist then I will display the link of the file. > > > > > > I tried is_readable() and stat() and they both say that the file does > not > > > exist, but the file does exist. > > > > > > What function should I use to check for existance of a file > > > on a different web server??? > > > > > > Thanks, > > > > > > N?stor :-) > > > > > > >------------------------------------------------------------------------ > > > > > >_______________________________________________ > > >New York PHP Community Talk Mailing List > > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > >NYPHPCon 2006 Presentations Online > > > http://www.nyphpcon.com > > > > > >Show Your Participation in New York PHP > > > http://www.nyphp.org/show_participation.php > > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Thu Jan 4 14:34:10 2007 From: chsnyder at gmail.com (csnyder) Date: Thu, 4 Jan 2007 14:34:10 -0500 Subject: [nycphp-talk] sendmail and php mail In-Reply-To: References: Message-ID: On 1/4/07, Mark Armendariz wrote: > Now, I know for a fact the recipient's email exists on my client's mail > server (which is an exchange server). The only thing I can figure is that > it's checking the local host for the recipient and not finding it, and hence > never sending the email. There might be an MX record missing or incorrect, and/or sendmail on the php server is misconfigured into thinking that it's supposed to be the end-recipient of mail for the domain. When you say you can send mail from the server, you're using the mail command? Have you looked to see what mail command PHP is configured to use? You never know, maybe there is more than one on the box... -- Chris Snyder http://chxo.com/ From rotsen at gmail.com Thu Jan 4 14:43:44 2007 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 4 Jan 2007 11:43:44 -0800 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: <006f01c73036$4a8f6ff0$b365a8c0@andyabs> References: <006f01c73036$4a8f6ff0$b365a8c0@andyabs> Message-ID: file_exists() still returns false when using the local network name Thanks, N?stor :-) On 1/4/07, Andy Dirnberger wrote: > > If the server is on a local network, are you able to access the files > through the network? Something like file_exists > ("\\sharename\path\to\file") > > > ------------------------------ > > *From:* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > *On Behalf Of *N?stor > *Sent:* Thursday, January 04, 2007 2:21 PM > *To:* NYPHP Talk > *Subject:* Re: [nycphp-talk] Accessing a file in another web server > > > > It is an internal intranet page and I am accessing word(.doc) or pdf files > that are open when I type the url on the address bar on my browser. > > :-) > > On 1/4/07, *N?stor* wrote: > > Tom, > > I had just tried this and it works but it makes the entire web page very > slow to render. > See the page that I am dealing with needs to do this check in several > places. > > One thing is that you need to use the fopen() with an '@' to suppress > warnings when > the file does not exist. > > The fopen() fixes my problem but it is slow rendering. I will try to find > another solution. > > Thanks, > > n?stor :-) > > > > On 1/4/07, *Tom Melendez* wrote: > > Hi N?stor, > > What happens if you do a basic fopen on the file (assuming that > allow_open_url is set to On in php.ini)? > > Tom > http://www.liphp.org > > > On 1/4/07, N?stor < rotsen at gmail.com> wrote: > > I have tried all of those and they return false weather the file is > exist > > and is readable or not > > I have tried file_exists() > > stat() > > is_readable() > > > > Wow, I never thought that this would be a problem..... > > > > Thanks, > > > > N?stor :-) > > > > On 1/4/07, Andy Dirnberger < dirn at dirnonline.com> wrote: > > > There are a few url_exists functions in the manual: > > > http://us3.php.net/file_exists > > > > > > -----Original Message----- > > > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org > ] > > On > > > Behalf Of Jonathan Face > > > Sent: Thursday, January 04, 2007 1:34 PM > > > To: NYPHP Talk > > > Subject: Re: [nycphp-talk] Accessing a file in another web server > > > > > > I haven't had a reason to experiment with this before, but you might > try > > > out: > > > file_exists($url); > > > > > > N?stor wrote: > > > > > > > People, > > > > > > > > I am trying to determine if a file exist in a another web server > > > > and if it does exist then I will display the link of the file. > > > > > > > > I tried is_readable() and stat() and they both say that the file > does > > not > > > > exist, but the file does exist. > > > > > > > > What function should I use to check for existance of a file > > > > on a different web server??? > > > > > > > > Thanks, > > > > > > > > N?stor :-) > > > > > > > > > > >------------------------------------------------------------------------ > > > > > > > >_______________________________________________ > > > >New York PHP Community Talk Mailing List > > > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > >NYPHPCon 2006 Presentations Online > > > > http://www.nyphpcon.com > > > > > > > >Show Your Participation in New York PHP > > > > http://www.nyphp.org/show_participation.php > > > > > > > > > > _______________________________________________ > > > New York PHP Community Talk Mailing List > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > NYPHPCon 2006 Presentations Online > > > http://www.nyphpcon.com > > > > > > Show Your Participation in New York PHP > > > http://www.nyphp.org/show_participation.php > > > > > > _______________________________________________ > > > New York PHP Community Talk Mailing List > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > NYPHPCon 2006 Presentations Online > > > http://www.nyphpcon.com > > > > > > Show Your Participation in New York PHP > > > http://www.nyphp.org/show_participation.php > > > > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From enolists at gmail.com Thu Jan 4 15:11:24 2007 From: enolists at gmail.com (Mark Armendariz) Date: Thu, 4 Jan 2007 15:11:24 -0500 Subject: [nycphp-talk] Re: Passing array elements as... strings? In-Reply-To: <117286890701041100p2e6d517fj13edefbbabce8433@mail.gmail.com> References: <20070104163501.674EA10A806D@cakephp.org> <117286890701041100p2e6d517fj13edefbbabce8433@mail.gmail.com> Message-ID: decided to play with this a bit. first time i've ever found myself using variable variables. dunno if it helps at all, but here's what i came up with (4.4.1, but should apply anywhere). it seems you can't access the array values directly, but copying it works. You could also use var vars for object properties instead if you wanted to go that route. It seems to me this could be nested as deeply as necessary as well. bar = array( 0=>'quiz', 1=>'quuz', 2=>'quux' ); // loop through our posted vars foreach(array_keys($_POST) as $sObject) { // if we've posted an object, open'r up if (is_object($$sObject)) { dbg($$sObject, $sObject); foreach($_POST[$sObject] as $sProperty => $mValue) { // print out the property - boo, which is an array dbg($$sObject->$sProperty, $sObject . '->' . $sProperty); // try showing the array's value dbg($$sObject->$sProperty[$mValue], 'Direct Access - throws error'); // now copy the array and then show it $theArray = $$sObject->$sProperty; dbg($theArray[$mValue], 'Copied Array - should work'); } } } ?> bar as $mValue => $sDisplay) { ?>
and my debug function: ' . print_r($mVar, 1) . ''; } ?> On 1/4/07, Tom Melendez wrote: > > On 1/4/07, Nate Abele wrote: > > Two solutions that come to mind are to (a) parse out the var name and > > the index from the string, or (b) submit the var name and the index > > as two separate POST vars. Any reason either of those wouldn't work? > > That's what I came up with too. > $key = "bar[1]"; > preg_match("/(.*)\[(\d)\]/",$key,$m); > $name=$m[1]; > $index=$m[2]; > $myarray=$foo->$name; > print $myarray[$index]; > > Very interested in other solutions. If bar comes in as an array (like > $_POST[bar][1]) you could probably use array_keys to suck out keys, > although I haven't tried it. > > Tom > http://www.liphp.org > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From enolists at gmail.com Thu Jan 4 15:17:20 2007 From: enolists at gmail.com (Mark Armendariz) Date: Thu, 4 Jan 2007 15:17:20 -0500 Subject: [nycphp-talk] Re: Passing array elements as... strings? In-Reply-To: References: <20070104163501.674EA10A806D@cakephp.org> <117286890701041100p2e6d517fj13edefbbabce8433@mail.gmail.com> Message-ID: oh, and here's my output after choosing 'quux' (with the error truncated - also added note by *'s) Post Array: Array ( [foo] => Array ( [bar] => 2 ) ) foo: foo Object ( [bar] => Array ( [0] => quiz [1] => quuz [2] => quux ) ) foo->bar: Array ( [0] => quiz [1] => quuz [2] => quux ) Notice: Undefined property: r on line 18 ***** foo->bar[2] == 'Array' so foo->bar[2] == 'r'? *** Direct Access - throws error: Copied Array - should work: quux On 1/4/07, Mark Armendariz wrote: > > decided to play with this a bit. first time i've ever found myself using > variable variables. dunno if it helps at all, but here's what i came up > with (4.4.1, but should apply anywhere). it seems you can't access the > array values directly, but copying it works. You could also use var vars > for object properties instead if you wanted to go that route. It seems to > me this could be nested as deeply as necessary as well. > > include_once 'base/function.debug.php'; > dbg($_POST, 'Post Array'); > > class foo { > function foo() {} > } > > $foo = new foo; > $foo->bar = array( 0=>'quiz', 1=>'quuz', 2=>'quux' ); > > // loop through our posted vars > foreach(array_keys($_POST) as $sObject) { > // if we've posted an object, open'r up > if (is_object($$sObject)) { > dbg($$sObject, $sObject); > > foreach($_POST[$sObject] as $sProperty => $mValue) { > // print out the property - boo, which is an array > dbg($$sObject->$sProperty, $sObject . '->' . $sProperty); > > // try showing the array's value > dbg($$sObject->$sProperty[$mValue], 'Direct Access - > throws error'); > > // now copy the array and then show it > $theArray = $$sObject->$sProperty; > dbg($theArray[$mValue], 'Copied Array - should work'); > } > } > } > ?> > >
> bar as $mValue => $sDisplay) { ?> >
> > >
> > > > and my debug function: > > function dbg($mVar, $sTitle = '') { > $sReturn = ''; > > if (strlen($sTitle)) { > $sReturn .= $sTitle .= ': '; > } > > $sReturn .= '
' . print_r($mVar, 1) . '
'; > } > ?> > > > On 1/4/07, Tom Melendez wrote: > > > > On 1/4/07, Nate Abele wrote: > > > Two solutions that come to mind are to (a) parse out the var name and > > > the index from the string, or (b) submit the var name and the index > > > as two separate POST vars. Any reason either of those wouldn't work? > > > > That's what I came up with too. > > $key = "bar[1]"; > > preg_match("/(.*)\[(\d)\]/",$key,$m); > > $name=$m[1]; > > $index=$m[2]; > > $myarray=$foo->$name; > > print $myarray[$index]; > > > > Very interested in other solutions. If bar comes in as an array (like > > $_POST[bar][1]) you could probably use array_keys to suck out keys, > > although I haven't tried it. > > > > Tom > > http://www.liphp.org > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cliff at pinestream.com Thu Jan 4 15:25:43 2007 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 4 Jan 2007 15:25:43 -0500 Subject: [nycphp-talk] HTML/CSS div hide/show form problem In-Reply-To: <459D3CF3.8030806@secdat.com> Message-ID: <004701c7303e$82a81e70$12a8a8c0@HirschLaptop> Figured this one out, so I'll pass it along. Apparently it is a well documented FireFox bug. Input elements can lose the cursor when inside a div that is set to display:none, among other conditions. When the div is set to be visible again, the cursor is simply gone - way annoying. The workaround I used, which appears to work so far, is to set the focus to some input element outside the div before setting the div display property to none. This appears to "carry" the cursor to the focused element. Then, when I expand the div again, I set the focus to an input element inside the div. Cliff -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Kenneth Downs Sent: Thursday, January 04, 2007 12:44 PM To: NYPHP Talk Subject: Re: [nycphp-talk] HTML/CSS div hide/show form problem Cliff, Can you simply set the focus of a control when the display is turned off or on? Cliff Hirsch wrote: Ok, so this isn't PHP, but it's what drives us PHP programmers' crazy right - "quirks" mode, browser incompatibilities, etc. It's maddening. I asked my Boston PHP buddies if they can figure this one out. Let's see who can provide an answer first: Yankees or Red Sox: ------ I have a form that can be toggled to be visible or hidden using the following statement: The form is initially set to be hidden. A simple JavaScript function toggles the div display property to nothing/block or none. Problem: Without this code, the cursor appears normally in the input elements With this code, the cursor disappears in the input elements. It's awfully annoying to type text in an input element without the visual cue of a cursor. This occurs in FireFox, but not IE. Does anyone know why the cursor is disappearing? I'm guessing that the input element cursor attribute picks up the none property (as in cascading) when hidden, but does not revert back to visible when the div display element is changed back to '' or block. Any ideas regarding a solution? Cliff _____ _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From enolists at gmail.com Thu Jan 4 15:26:38 2007 From: enolists at gmail.com (Mark Armendariz) Date: Thu, 4 Jan 2007 15:26:38 -0500 Subject: [nycphp-talk] sendmail and php mail In-Reply-To: References: Message-ID: I'm about to ask the host to look into the MX records. I'm convinced the hosting server is checking the local mail server for the recipient. Yes, I'm using the mail command, and it looks to me (via ini) that it's using the local sendmail. On 1/4/07, csnyder wrote: > > On 1/4/07, Mark Armendariz wrote: > > > Now, I know for a fact the recipient's email exists on my client's mail > > server (which is an exchange server). The only thing I can figure is > that > > it's checking the local host for the recipient and not finding it, and > hence > > never sending the email. > > There might be an MX record missing or incorrect, and/or sendmail on > the php server is misconfigured into thinking that it's supposed to be > the end-recipient of mail for the domain. > > When you say you can send mail from the server, you're using the mail > command? Have you looked to see what mail command PHP is configured to > use? You never know, maybe there is more than one on the box... > > -- > Chris Snyder > http://chxo.com/ > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From enolists at gmail.com Thu Jan 4 15:48:06 2007 From: enolists at gmail.com (Mark Armendariz) Date: Thu, 4 Jan 2007 15:48:06 -0500 Subject: [nycphp-talk] Re: Passing array elements as... strings? In-Reply-To: References: <20070104163501.674EA10A806D@cakephp.org> <117286890701041100p2e6d517fj13edefbbabce8433@mail.gmail.com> Message-ID: sorry, skipped a line in the dbg function: > > and my debug function: > > function dbg($mVar, $sTitle = '') { > $sReturn = ''; > > if (strlen($sTitle)) { > $sReturn .= $sTitle .= ': '; > } > > $sReturn .= '
' . print_r($mVar, 1) . '
'; echo $sReturn; // <--------- This line } > ?> -------------- next part -------------- An HTML attachment was scrubbed... URL: From support at dailytechnology.net Thu Jan 4 15:53:59 2007 From: support at dailytechnology.net (Brian Dailey) Date: Thu, 04 Jan 2007 15:53:59 -0500 Subject: [nycphp-talk] HTML/CSS div hide/show form problem In-Reply-To: <004701c7303e$82a81e70$12a8a8c0@HirschLaptop> References: <004701c7303e$82a81e70$12a8a8c0@HirschLaptop> Message-ID: <459D6967.1060909@dailytechnology.net> The inverse of this (which I've run into a few times) is that if you start out with the layer as "block" and then set it to "none", when the user is tabbing down, the cursor will go to these "invisible" fields. Annoying as heck, it is. - Brian Cliff Hirsch wrote: > Figured this one out, so I?ll pass it along. Apparently it is a well > documented FireFox bug. Input elements can lose the cursor when inside a > div that is set to display:none, among other conditions. When the div is > set to be visible again, the cursor is simply gone ? way annoying. > > > > The workaround I used, which appears to work so far, is to set the focus > to some input element outside the div before setting the div display > property to none. This appears to ?carry? the cursor to the focused > element. Then, when I expand the div again, I set the focus to an input > element inside the div. > > > > Cliff > > > > -----Original Message----- > *From:* talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] *On Behalf Of *Kenneth Downs > *Sent:* Thursday, January 04, 2007 12:44 PM > *To:* NYPHP Talk > *Subject:* Re: [nycphp-talk] HTML/CSS div hide/show form problem > > > > Cliff, > > Can you simply set the focus of a control when the display is turned off > or on? > > > > Cliff Hirsch wrote: > > Ok, so this isn?t PHP, but it?s what drives us PHP programmers? crazy > right ? ?quirks? mode, browser incompatibilities, etc. It?s maddening? > > > > I asked my Boston PHP buddies if they can figure this one out. Let?s see > who can provide an answer first: Yankees or Red Sox: > > ------ > > I have a form that can be toggled to be visible or hidden using the > following statement: > > > > > > > > The form is initially set to be hidden. A simple JavaScript function > toggles the div display property to nothing/block or none. > > > > Problem: > > Without this code, the cursor appears normally in the input elements > > With this code, the cursor disappears in the input elements. It?s > awfully annoying to type text in an input element without the visual cue > of a cursor. > > > > This occurs in FireFox, but not IE. > > > > Does anyone know why the cursor is disappearing? I?m guessing that the > input element cursor attribute picks up the none property (as in > cascading) when hidden, but does not revert back to visible when the div > display element is changed back to ?? or block. > > > > Any ideas regarding a solution? > > > > Cliff > > > > > > ------------------------------------------------------------------------ > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From xdarkshadow98x at gmail.com Thu Jan 4 16:19:44 2007 From: xdarkshadow98x at gmail.com (Nazmul Hassan) Date: Thu, 4 Jan 2007 16:19:44 -0500 Subject: [nycphp-talk] Hi Message-ID: Hello, well, im new here. Well, I just wanted to know a little more about NYPHP i guess. im only 14; just a question, how old are you? I do know PHP tho, and i have coded stuff in the past, one project i worked on the vacation http://www.nhassan.sveit.com/dual_database/dd.zip its very amature, but yeh. -- (?`?._.?[ ' Nazmul Hassan ' ]?._.???) -------------- next part -------------- An HTML attachment was scrubbed... URL: From willie at pdfsystems.com Thu Jan 4 16:38:46 2007 From: willie at pdfsystems.com (William Klein) Date: Thu, 4 Jan 2007 16:38:46 -0500 Subject: [nycphp-talk] mysqli prepared statements In-Reply-To: Message-ID: Well I figured this out but I can't explain why it works. This statement is in a while loop, which is why I was using prepared statements to begin with. I have another prepared statement which should only have 1 record in the result, I'm searching on a unique primary key. However when I do a $statement1->fetch() the second statement doesn't work. When I put the first result into a while loop While($statement1->fetch()){ Echo"showroom is $showroom
"; } The second statement executes fine. Now would anyone know why this would be? ________________________________________ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of willie klein Sent: Thursday, January 04, 2007 11:28 AM To: talk at lists.nyphp.org Subject: [nycphp-talk] mysqli prepared statements Hi All; I just started using prepared statements.? So far I have been very impressed by how much of a performance enhancement there is when using them.? I have a query that isn?t working now though and I?m not sure how to troubleshoot it.? I used to just echo out the query and I could see where the problem was.? I keep getting an empty result set from a query I know should have data in it.? Is there a way to see the prepared query as the server sees it?? I keep echoing out mysqli_error($dbi) but there is nothing in it.? Relevant Code: $statement2 = $dbi->prepare("select? date, date_format(date ,' %b %d %y') as dta from 1TrackUser where loginID = ? ORDER BY date");// if (mysqli_error($dbi)) { ????? ??? echo "ERROR: ".mysqli_error($dbi)."
"; } echo "ShowroomLoginID = $ShowroomloginID
"; // something valid is here $statement2->bind_param("s",$ShowroomloginID);??????? $statement2->execute(); $statement2->bind_result($date,$dta); $TotalLogin = $statement2->num_rows ; // always 0 when I run query manually it works. Thanks Willie??????????? From rotsen at gmail.com Thu Jan 4 18:13:47 2007 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 4 Jan 2007 15:13:47 -0800 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: References: <006f01c73036$4a8f6ff0$b365a8c0@andyabs> Message-ID: OK guys, Just in case you are interested, I found a faster solution than fopen() -------------------------------------------------------------------------------------------------- ----------------------------------------------------------------- Thanks, N?stor :-) On 1/4/07, N?stor wrote: > > file_exists() still returns false when using the local network name > > Thanks, > > N?stor :-) > > On 1/4/07, Andy Dirnberger < dirn at dirnonline.com> wrote: > > > > If the server is on a local network, are you able to access the files > > through the network? Something like file_exists > > ("\\sharename\path\to\file") > > > > > > ------------------------------ > > > > *From:* talk-bounces at lists.nyphp.org [mailto: > > talk-bounces at lists.nyphp.org] *On Behalf Of *N?stor > > *Sent:* Thursday, January 04, 2007 2:21 PM > > *To:* NYPHP Talk > > *Subject:* Re: [nycphp-talk] Accessing a file in another web server > > > > > > > > It is an internal intranet page and I am accessing word(.doc) or pdf > > files that are open when I type the url on the address bar on my browser. > > > > :-) > > > > On 1/4/07, *N?stor* wrote: > > > > Tom, > > > > I had just tried this and it works but it makes the entire web page very > > slow to render. > > See the page that I am dealing with needs to do this check in several > > places. > > > > One thing is that you need to use the fopen() with an '@' to suppress > > warnings when > > the file does not exist. > > > > The fopen() fixes my problem but it is slow rendering. I will try to > > find another solution. > > > > Thanks, > > > > n?stor :-) > > > > > > > > On 1/4/07, *Tom Melendez* wrote: > > > > Hi N?stor, > > > > What happens if you do a basic fopen on the file (assuming that > > allow_open_url is set to On in php.ini)? > > > > Tom > > http://www.liphp.org > > > > > > On 1/4/07, N?stor < rotsen at gmail.com> wrote: > > > I have tried all of those and they return false weather the file is > > exist > > > and is readable or not > > > I have tried file_exists() > > > stat() > > > is_readable() > > > > > > Wow, I never thought that this would be a problem..... > > > > > > Thanks, > > > > > > N?stor :-) > > > > > > On 1/4/07, Andy Dirnberger < dirn at dirnonline.com> wrote: > > > > There are a few url_exists functions in the manual: > > > > http://us3.php.net/file_exists > > > > > > > > -----Original Message----- > > > > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org > > ] > > > On > > > > Behalf Of Jonathan Face > > > > Sent: Thursday, January 04, 2007 1:34 PM > > > > To: NYPHP Talk > > > > Subject: Re: [nycphp-talk] Accessing a file in another web server > > > > > > > > I haven't had a reason to experiment with this before, but you might > > try > > > > out: > > > > file_exists($url); > > > > > > > > N?stor wrote: > > > > > > > > > People, > > > > > > > > > > I am trying to determine if a file exist in a another web server > > > > > and if it does exist then I will display the link of the file. > > > > > > > > > > I tried is_readable() and stat() and they both say that the file > > does > > > not > > > > > exist, but the file does exist. > > > > > > > > > > What function should I use to check for existance of a file > > > > > on a different web server??? > > > > > > > > > > Thanks, > > > > > > > > > > N?stor :-) > > > > > > > > > > > > > > >------------------------------------------------------------------------ > > > > > > > > > >_______________________________________________ > > > > >New York PHP Community Talk Mailing List > > > > >http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > > >NYPHPCon 2006 Presentations Online > > > > > http://www.nyphpcon.com > > > > > > > > > >Show Your Participation in New York PHP > > > > > http://www.nyphp.org/show_participation.php > > > > > > > > > > > > > _______________________________________________ > > > > New York PHP Community Talk Mailing List > > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > NYPHPCon 2006 Presentations Online > > > > http://www.nyphpcon.com > > > > > > > > Show Your Participation in New York PHP > > > > http://www.nyphp.org/show_participation.php > > > > > > > > _______________________________________________ > > > > New York PHP Community Talk Mailing List > > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > > > NYPHPCon 2006 Presentations Online > > > > http://www.nyphpcon.com > > > > > > > > Show Your Participation in New York PHP > > > > http://www.nyphp.org/show_participation.php > > > > > > > > > > > > > _______________________________________________ > > > New York PHP Community Talk Mailing List > > > http://lists.nyphp.org/mailman/listinfo/talk > > > > > > NYPHPCon 2006 Presentations Online > > > http://www.nyphpcon.com > > > > > > Show Your Participation in New York PHP > > > http://www.nyphp.org/show_participation.php > > > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > > > > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Thu Jan 4 18:20:06 2007 From: chsnyder at gmail.com (csnyder) Date: Thu, 4 Jan 2007 18:20:06 -0500 Subject: [nycphp-talk] HTML/CSS div hide/show form problem In-Reply-To: <459D6967.1060909@dailytechnology.net> References: <004701c7303e$82a81e70$12a8a8c0@HirschLaptop> <459D6967.1060909@dailytechnology.net> Message-ID: On 1/4/07, Brian Dailey wrote: > The inverse of this (which I've run into a few times) is that if you > start out with the layer as "block" and then set it to "none", when the > user is tabbing down, the cursor will go to these "invisible" fields. > > Annoying as heck, it is. > > - Brian Does that happen if you disable them as well? Seems like best practice if you're hiding form fields is to disable them too, so that they don't get submitted along with everything else. -- Chris Snyder http://chxo.com/ From rolan at omnistep.com Thu Jan 4 19:11:43 2007 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 04 Jan 2007 19:11:43 -0500 Subject: [nycphp-talk] sendmail and php mail In-Reply-To: References: Message-ID: <459D97BF.3050205@omnistep.com> From what I gather, your web server's sendmail is intercepting the the email instead of routing it to the correct mail server because it has the same domain name as the recipient address? You need to manually create a rule in the sendmail to override that so it routes all email addressed to "@yourdomain.com" over to the correct external mail server. See the sendmail section of http://www.mail-abuse.com/an_rteoutgoing.html for an idea. It's been a long time since I hacked sendmail. ~Rolan Mark Armendariz wrote: > Happy 2007, everyone. > > I know this isn't directly a php, issue, but I was hoping someone here > might have some experience with such a thing. > > My client has their site on one server and their their email server at > another hosting company. I'm trying to send mail from a php script > (using the mail function) on the site. > > I know sendmail is working correctly, as I can send email to my own > domain as well as to any other I've tried. This only applies to > sending email internally. > > Sendmail has a recipient check. Basically, it talks to the > recipient's server and checks that the user exists before trying to > send the message. Unfortunately, since the hosting server has the > same domain name as the mail server. > > ** Here's the php: > > $aHeaders = array(); > $aHeaders[] = 'From: ' . EMAIL_DONATIONS; > $aHeaders[] = 'X-Mailer: PHP v' . phpversion(); > > $sSubject = 'New Donation Submitted'; > $sMessage = 'A new donation has been submitted through the site.'; > mail(EMAIL_DONATIONS, $sSubject, $sMessage, implode("\n", $aHeaders), > '-v'); > > > > ** Here's the verbose output of sendmail (with my domain in place of > the client's) > TheRecipient at enobrev.com... Connecting to localhost.localdomain. via relay... > 220 ss07.shared.server-system.net ESMTP Sendmail 8.12.11.20060308/8.12.11; Thu, 4 Jan 2007 11:09:10 -0800 > > >>> EHLO laco.org > 250-ss07.shared.server-system.net Hello localhost.localdomain [127.0.0.1 > ], pleased to meet you > 250-ENHANCEDSTATUSCODES > 250-PIPELINING > 250-8BITMIME > 250-SIZE 15000000 > 250-DSN > 250-ETRN > 250-AUTH LOGIN PLAIN > 250-STARTTLS > 250-DELIVERBY > 250 HELP > >>> STARTTLS > > 220 2.0.0 Ready to start TLS > >>> EHLO enobrev.com > 250-ss07.shared.server-system.net Hello localhost.localdomain [ > 127.0.0.1 ], pleased to meet you > 250-ENHANCEDSTATUSCODES > 250-PIPELINING > 250-8BITMIME > 250-SIZE 15000000 > 250-DSN > 250-ETRN > 250-AUTH LOGIN PLAIN > 250-DELIVERBY > 250 HELP > >>> MAIL From:< > enobrev at enobrev.com > SIZE=300 AUTH=enobrev at enobrev.com > 250 2.1.0 < > enobrev at enobrev.com >... Sender ok > >>> RCPT To:> > >>> DATA > > 550 5.1.1 >... User unknown > 503 5.0.0 Need RCPT (recipient) > >>> RSET > 250 2.0.0 Reset state > dead.letter.. > . Saved message in dead.letter > Closing connection to localhost.localdomain. > >>> QUIT > 221 2.0.0 ss07.shared.server-system.net closing connection > > > Now, I know for a fact the recipient's email exists on my client's > mail server (which is an exchange server). The only thing I can > figure is that it's checking the local host for the recipient and not > finding it, and hence never sending the email. > > Anybody ever run into this before? Is there a switch i can use with > php's mail function or sendmail to get around this? > > Thanks!! > > Mark Armendariz > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From hart at saturn.med.nyu.edu Thu Jan 4 19:36:01 2007 From: hart at saturn.med.nyu.edu (Joshua Hart) Date: Thu, 04 Jan 2007 19:36:01 -0500 Subject: [nycphp-talk] sendmail and php mail In-Reply-To: <459D97BF.3050205@omnistep.com> Message-ID: Or it is something more fundamental; PHP might not be able to forking a process for sendmail. I saw that on my own system (sometimes email would be sent and sometimes not, without a whole lot of rhyme or reason). Instead wrote a local send_mail function which uses a SMTP connection to a mail server, and now all email goes out reliably. :) Joshua On 1/4/07 7:11 PM, "Rolan Yang" wrote: > From what I gather, your web server's sendmail is intercepting the the > email instead of routing it to the correct mail server because it has > the same domain name as the recipient address? You need to manually > create a rule in the sendmail to override that so it routes all email > addressed to "@yourdomain.com" over to the correct external mail server. > See the sendmail section of > http://www.mail-abuse.com/an_rteoutgoing.html for an idea. It's been a > long time since I hacked sendmail. > > ~Rolan > > > > > Mark Armendariz wrote: >> Happy 2007, everyone. >> >> I know this isn't directly a php, issue, but I was hoping someone here >> might have some experience with such a thing. >> >> My client has their site on one server and their their email server at >> another hosting company. I'm trying to send mail from a php script >> (using the mail function) on the site. >> >> I know sendmail is working correctly, as I can send email to my own >> domain as well as to any other I've tried. This only applies to >> sending email internally. >> >> Sendmail has a recipient check. Basically, it talks to the >> recipient's server and checks that the user exists before trying to >> send the message. Unfortunately, since the hosting server has the >> same domain name as the mail server. >> >> ** Here's the php: >> >> $aHeaders = array(); >> $aHeaders[] = 'From: ' . EMAIL_DONATIONS; >> $aHeaders[] = 'X-Mailer: PHP v' . phpversion(); >> >> $sSubject = 'New Donation Submitted'; >> $sMessage = 'A new donation has been submitted through the site.'; >> mail(EMAIL_DONATIONS, $sSubject, $sMessage, implode("\n", $aHeaders), >> '-v'); >> >> >> >> ** Here's the verbose output of sendmail (with my domain in place of >> the client's) >> TheRecipient at enobrev.com... Connecting to localhost.localdomain. via relay... >> 220 ss07.shared.server-system.net >> ESMTP Sendmail 8.12.11.20060308/8.12.11; Thu, 4 Jan 2007 11:09:10 -0800 >> >>>>> EHLO laco.org >> 250-ss07.shared.server-system.net >> Hello localhost.localdomain [127.0.0.1 >> ], pleased to meet you >> 250-ENHANCEDSTATUSCODES >> 250-PIPELINING >> 250-8BITMIME >> 250-SIZE 15000000 >> 250-DSN >> 250-ETRN >> 250-AUTH LOGIN PLAIN >> 250-STARTTLS >> 250-DELIVERBY >> 250 HELP >>>>> STARTTLS >> >> 220 2.0.0 Ready to start TLS >>>>> EHLO enobrev.com >> 250-ss07.shared.server-system.net >> Hello localhost.localdomain [ >> 127.0.0.1 ], pleased to meet you >> 250-ENHANCEDSTATUSCODES >> 250-PIPELINING >> 250-8BITMIME >> 250-SIZE 15000000 >> 250-DSN >> 250-ETRN >> 250-AUTH LOGIN PLAIN >> 250-DELIVERBY >> 250 HELP >>>>> MAIL From:< >> enobrev at enobrev.com > SIZE=300 >> AUTH=enobrev at enobrev.com >> 250 2.1.0 < >> enobrev at enobrev.com >... Sender ok >>>>> RCPT To:> >>>>> DATA >> >> 550 5.1.1 >... User unknown >> 503 5.0.0 Need RCPT (recipient) >>>>> RSET >> 250 2.0.0 Reset state >> dead.letter.. >> . Saved message in dead.letter >> Closing connection to localhost.localdomain. >>>>> QUIT >> 221 2.0.0 ss07.shared.server-system.net >> closing connection >> >> >> Now, I know for a fact the recipient's email exists on my client's >> mail server (which is an exchange server). The only thing I can >> figure is that it's checking the local host for the recipient and not >> finding it, and hence never sending the email. >> >> Anybody ever run into this before? Is there a switch i can use with >> php's mail function or sendmail to get around this? >> >> Thanks!! >> >> Mark Armendariz >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From dcech at phpwerx.net Thu Jan 4 20:01:27 2007 From: dcech at phpwerx.net (Dan Cech) Date: Thu, 04 Jan 2007 20:01:27 -0500 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: References: <006f01c73036$4a8f6ff0$b365a8c0@andyabs> Message-ID: <459DA367.2000209@phpwerx.net> N?stor wrote: > OK guys, > > Just in case you are interested, I found a faster solution than fopen() > > -------------------------------------------------------------------------------------------------- I've corrected some things for you: From danielc at analysisandsolutions.com Thu Jan 4 20:09:08 2007 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 4 Jan 2007 20:09:08 -0500 Subject: [nycphp-talk] mysqli prepared statements In-Reply-To: <20070104213912.D44CDCA9B8@mail2.panix.com> References: <20070104213912.D44CDCA9B8@mail2.panix.com> Message-ID: <20070105010908.GA29094@panix.com> On Thu, Jan 04, 2007 at 04:38:46PM -0500, William Klein wrote: > This statement is in a while loop, which is why I was using prepared > statements to begin with. You're preparing the statement before the loop, then only binding/executing on each loop, right? In your reply I see there's a "?" after "select": > $statement2 = $dbi->prepare("select? date, > date_format(date ,' %b %d %y') as > dta from 1TrackUser where loginID = ? ORDER BY date"); Perhaps there's some messed up stuff in your query? Also, the code you posted is a mess. It looks like you wrote it in the email rather than copied it from a real test script. To really debug an issue, especially if you're trying to get help debugging it, you need to boil down the issue to a few lines of code in an isolated test script that anyone can run. --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 rotsen at gmail.com Thu Jan 4 20:24:28 2007 From: rotsen at gmail.com (=?ISO-8859-1?Q?N=E9stor?=) Date: Thu, 4 Jan 2007 17:24:28 -0800 Subject: [nycphp-talk] Accessing a file in another web server In-Reply-To: <459DA367.2000209@phpwerx.net> References: <006f01c73036$4a8f6ff0$b365a8c0@andyabs> <459DA367.2000209@phpwerx.net> Message-ID: OK Dan, I added your suggested changes. Thanks, N?stor :-) On 1/4/07, Dan Cech wrote: > > N?stor wrote: > > OK guys, > > > > Just in case you are interested, I found a faster solution than fopen() > > > > > -------------------------------------------------------------------------------------------------- > > I've corrected some things for you: > > function url_exists($strURL) { > $resURL = curl_init(); > curl_setopt($resURL, CURLOPT_URL, $strURL); > // return the result instead of echoing it > curl_setopt($resURL, CURLOPT_RETURNTRANSFER, 1); > // time out after 5 seconds of no response > curl_setopt($resURL, CURLOPT_TIMEOUT, 5); > > $result = curl_exec ($resURL); > if ($result === false) { > curl_close($resURL); > return false; > } > > $intReturnCode = curl_getinfo($resURL, CURLINFO_HTTP_CODE); > curl_close ($resURL); > > if ($intReturnCode != 200 && $intReturnCode != 302 && $intReturnCode != > 304) { > return false; > } > > return true; > } > > //Usage Example : > If(url_exists("http://www.weberdev.com/addexample.php3")) { > Echo"URL Exists"; > }Else{ > Echo"URL doesnot exist"; > } > ?> > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From willie at pdfsystems.com Thu Jan 4 20:36:21 2007 From: willie at pdfsystems.com (William Klein) Date: Thu, 4 Jan 2007 20:36:21 -0500 Subject: [nycphp-talk] mysqli prepared statements In-Reply-To: <20070105010908.GA29094@panix.com> Message-ID: Sorry about the messed up code I cut and pasted it from the script. Seems the format got changed after I sent it, lines got stuck together, not sure why. I didn't paste it that way. But yes I was preparing the statements before the loop. Regardless I have two questions. Is there a way of seeing the last query when running a prepared statement? I guess the problem is that mysqli_info doesn't give information about select statements Why would a result set with one element in it need to be in a while loop to allow the next statement to execute? Thanks for you attention and I'll figure out the pasting problem. Trying to avoid HTML email. > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Daniel Convissor > Sent: Thursday, January 04, 2007 8:09 PM > To: NYPHP Talk > Subject: [php] Re: [nycphp-talk] mysqli prepared statements > > On Thu, Jan 04, 2007 at 04:38:46PM -0500, William Klein wrote: > > > This statement is in a while loop, which is why I was using prepared > > statements to begin with. > > You're preparing the statement before the loop, then only > binding/executing on each loop, right? > > > In your reply I see there's a "?" after "select": > > > $statement2 = $dbi->prepare("select? date, > > date_format(date ,' %b %d %y') as > > dta from 1TrackUser where loginID = ? ORDER BY date"); > > Perhaps there's some messed up stuff in your query? > > Also, the code you posted is a mess. It looks like you wrote it in the > email rather than copied it from a real test script. > > To really debug an issue, especially if you're trying to get help > debugging it, you need to boil down the issue to a few lines of code in an > isolated test script that anyone can run. > > --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 Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From greg.rundlett at gmail.com Thu Jan 4 21:46:15 2007 From: greg.rundlett at gmail.com (Greg Rundlett) Date: Thu, 4 Jan 2007 21:46:15 -0500 Subject: [nycphp-talk] And the HTML guru is.... In-Reply-To: <459D0B5A.5080006@secdat.com> References: <459D0B5A.5080006@secdat.com> Message-ID: <5e2aaca40701041846o64f6cc5di86de39eba5343337@mail.gmail.com> On 1/4/07, Kenneth Downs wrote: > Hi folks, > > A helpful HTML guru has given me the solution to my height-dont-work > problem in IE 6. > > The guru is.... (drumroll) Tom Melendez of LIPHP fame. He pointed out > that changing the document type declaration to "quirks" mode makes IE > work, instantly fixing the problem. > > For completeness, here is a simplified snipeet that illustrates the > fixed situation: > > > > > > > >
> style="width: 500px; height: 100%;"> > > > >
a
hello
b
>
> > > > I don't mean to be picky, but if you post a 'solution' then it ought to be or attempt to be syntactically correct. The simple snippet above gets lazy about quoting attributes, ending semi-colons and the type attribute is even missing from the
a
hello
b
hth, Greg -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? From arzala at gmail.com Thu Jan 4 23:12:44 2007 From: arzala at gmail.com (Anirudh Zala) Date: Fri, 5 Jan 2007 09:42:44 +0530 Subject: [nycphp-talk] Hi In-Reply-To: References: Message-ID: <200701050942.44536.arzala@gmail.com> On Friday 05 January 2007 02:49, Nazmul Hassan wrote: > Hello, well, im new here. > > Well, I just wanted to know a little more about NYPHP i guess. im only 14; > just a question, how old are you? > > I do know PHP tho, and i have coded stuff in the past, one project i worked > on the vacation http://www.nhassan.sveit.com/dual_database/dd.zip > > its very amature, but yeh. Hi Nazmul Welcome to NYPHP group. Hope you will enjoy being member of this group. I am 27 years old. Perhaps you are the youngest member of this group :) Anirudh Zala (Building standards) From codebowl at gmail.com Thu Jan 4 23:23:42 2007 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 4 Jan 2007 23:23:42 -0500 Subject: [nycphp-talk] Hi In-Reply-To: <200701050942.44536.arzala@gmail.com> References: <200701050942.44536.arzala@gmail.com> Message-ID: <8d9a42800701042023j2e4b8986q613a771a0f2e569d@mail.gmail.com> Hello and welcome, i would bet he is the youngest :) I am 26 ;) On 1/4/07, Anirudh Zala wrote: > On Friday 05 January 2007 02:49, Nazmul Hassan wrote: > > Hello, well, im new here. > > > > Well, I just wanted to know a little more about NYPHP i guess. im only 14; > > just a question, how old are you? > > > > I do know PHP tho, and i have coded stuff in the past, one project i worked > > on the vacation http://www.nhassan.sveit.com/dual_database/dd.zip > > > > its very amature, but yeh. > > Hi Nazmul > > Welcome to NYPHP group. Hope you will enjoy being member of this group. I am > 27 years old. Perhaps you are the youngest member of this group :) > > Anirudh Zala > (Building standards) > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ Blog: http://www.josephcrawford.com/ 1-802-671-2021 codebowl at gmail.com From jonbaer at jonbaer.com Fri Jan 5 00:13:36 2007 From: jonbaer at jonbaer.com (Jon Baer) Date: Fri, 5 Jan 2007 00:13:36 -0500 Subject: [nycphp-talk] CakePHP and HTTP Auth In-Reply-To: <459D37EB.9030400@dailytechnology.net> References: <459D37EB.9030400@dailytechnology.net> Message-ID: <3DA8EFED-C3AF-4EE9-A9E5-DFA1C4AF719E@jonbaer.com> I think this depends on what you are comparing it to, Ive heard the same discussion come up @ least twice before in comparison to Rails and its worth pointing out that the Ruby language in and of itself comes with both a) documentation tool (rdoc) and b) unit testing framework already. IMHO, What is really needed is an O'Reilly CakePHP In A Nutshell book for 1.2. - Jon On Jan 4, 2007, at 12:22 PM, Brian Dailey wrote: > > By the way, this is my biggest complaint with Cake. Documentation. > Relying on the "shotgun documentation", leaving little bits and > pieces here and there (wiki, google groups, irc) is killing me. The > more time I spend trying to figure out how do to something that > should be relatively simple, the less beneficial it is for me to > use Cake. It's a great system, but man, the documentation is > horrendous. > > > Thanks, > - Brian > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From lists at zaunere.com Fri Jan 5 08:58:28 2007 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 5 Jan 2007 08:58:28 -0500 Subject: [nycphp-talk] FW: PHP statistics for december 2006 Message-ID: <011d01c730d1$93c41db0$650aa8c0@MobileZ> Hi, Some interesting statistics and information from Damien of PHP.net. Looks like a strong 2007 ahead of us. --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com Damien Seguy wrote on Wednesday, January 03, 2007 12:39 PM: > Hi Hans, > > PHP adoption statistics for December 2006 are released. > > * PHP 5 reached 13% of user base. > * PHP 5 is chosen for 40% of new PHP installations > * PHP 5.1 already declining, leaving room to PHP 5.2 > * PHP 4.4.4 : still on top of the world, most popular and most > chosen version > > This month, some new figures are avaiable : > * PHP version that won or lost the largest share this month > * PHP adoption by IP (instead of domains) > > As usual, lots of details : PHP versions, Apache, country details, > etc. > > PHP stats evolution for December 2006 > > http://www.nexen.net/chiffres_cles/phpversion/php_stats_evolution_for_decemb er_2006.php > PHP statistics for December 2006 > http://www.nexen.net/chiffres_cles/phpversion/php_statistics_for_december_20 06.php > > Bonne lecture! > Damien Seguy From mikesz at qualityadvantages.com Sat Jan 6 23:08:41 2007 From: mikesz at qualityadvantages.com (mikesz at qualityadvantages.com) Date: Sun, 07 Jan 2007 12:08:41 +0800 Subject: [nycphp-talk] CAKE Ain't Soup! Message-ID: <45A07249.70100@qualityadvantages.com> In defense of Brian Daley's rant about CAKE and contrary to Nate Abele's illness, I believe Brian's point are well founded and justified completely. As a complete CAKE novice, I knew/know nothing about Cake except the misinformation that is contained on their home page, i.e *"No Configuration* - Set-up the database and watch the magic begin". So I decided to check it out to see for myself what all the hype was about so after wading through a miriad of "give us money" I finally was able to download the package and attempted to install it on my local Apache Webserver. Give that the installation instruction are clear as mud, I attempted to install it like any other PHP Application but when I attempted to run it, I get a "Your database configuration file is not present." and a screenful of junk that tells me nothing about how to install the product, except an instruction that says, "run the install" but never says what that is. Installation instructions, never mind documentation, are suppose to be specific, precise and correct. Cake is none of the above. Cake may be cake but it is certainly not soup! Cake may be indeed a great leap forward but if you can not install it "out of the box" no one will ever know. I, personally, don't "shop around" for information that isn't where it is "suppose" to be. That means that Cake only had one shot to impress me, they did, negatively! All the whining on the planet won't fix an installation process that is fatally flawed. regards, mikesz From hans at cyberxdesigns.com Sat Jan 6 23:17:57 2007 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Sat, 06 Jan 2007 23:17:57 -0500 Subject: [nycphp-talk] ism tables. Message-ID: <45A07475.7090208@cyberxdesigns.com> I have to recover some data out of old ism mysql tables and I don't have a version of MySQL which can access those tables. I also can't seem to find out how to convert those old tables to myi table format. Does anyone know a tool or have access to the windows binary install of 3.23 or 4.0 MySQL? The typical: ALTER TABLE phpbb_users TYPE = MYISAM *MySQL said: *Documentation | #1030 - Got error 1 from storage engine Gives me no results. Any suggestions would be appreciated. Hans | From hans at cyberxdesigns.com Sun Jan 7 00:12:53 2007 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Sun, 07 Jan 2007 00:12:53 -0500 Subject: [nycphp-talk] Test Message-ID: <45A08155.90100@cyberxdesigns.com> Sorry for the test but it doesn't look my emails are getting through. From cliff at pinestream.com Sun Jan 7 17:11:02 2007 From: cliff at pinestream.com (Cliff Hirsch) Date: Sun, 7 Jan 2007 17:11:02 -0500 Subject: [nycphp-talk] Seeking image graph software suggestions Message-ID: <000001c732a8$b81f6bf0$12a8a8c0@HirschLaptop> I currently use PHP's image functions and the GD library to create bar charts. Now I want to move on to line and x-y charts. My time is probably better spent elsewhere than reinventing the wheel again. Does anyone have suggestions for good graphing software? Some possibilities I'm exploring: JpGraph Jpowered ChartDirector PEAR Image_Graph I don't need anything fancy, but would rather not spend the time figuring out how to squeeze an arbitrary number of data points into a few hundred pixels. Happy New Year, Cliff Hirsch _______________________________ Pinestream Communications, Inc. Publisher of Semiconductor Times & Telecom Trends 52 Pine Street, Weston, MA 02493 USA Tel: 781.647.8800, Fax: 781.647.8825 http://www.pinestream.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Sun Jan 7 18:10:58 2007 From: lists at zaunere.com (Hans Zaunere) Date: Sun, 7 Jan 2007 18:10:58 -0500 Subject: [nycphp-talk] Test Message Message-ID: <001a01c732b1$178830b0$650aa8c0@MobileZ> Just checking that the list is working. Had a couple of reports that messages weren't getting through. H From lists at zaunere.com Sun Jan 7 18:18:06 2007 From: lists at zaunere.com (Hans Zaunere) Date: Sun, 7 Jan 2007 18:18:06 -0500 Subject: [nycphp-talk] Test Message In-Reply-To: <001a01c732b1$178830b0$650aa8c0@MobileZ> Message-ID: <002101c732b2$168e4ae0$650aa8c0@MobileZ> Hans Zaunere wrote on Sunday, January 07, 2007 6:11 PM: > Just checking that the list is working. Had a couple of reports that > messages weren't getting through. And apparently the queue was stuck - should be good now. H From jonbaer at jonbaer.com Sun Jan 7 22:45:09 2007 From: jonbaer at jonbaer.com (Jon Baer) Date: Sun, 7 Jan 2007 22:45:09 -0500 Subject: [nycphp-talk] ism tables. In-Reply-To: <45A07475.7090208@cyberxdesigns.com> References: <45A07475.7090208@cyberxdesigns.com> Message-ID: <9BE9F39C-B48D-48A6-9803-429DFB2EA744@jonbaer.com> Try the Windows GUI toolset from MySQL and use the Migration toolkit application. I think that tool was made for those situations. http://dev.mysql.com/downloads/gui-tools/5.0.html - Jon On Jan 6, 2007, at 11:17 PM, Hans C. Kaspersetz wrote: > I have to recover some data out of old ism mysql tables and I don't > have a version of MySQL which can access those tables. I also > can't seem to find out how to convert those old tables to myi table > format. Does anyone know a tool or have access to the windows > binary install of 3.23 or 4.0 MySQL? > > The typical: > ALTER TABLE phpbb_users TYPE = MYISAM > > *MySQL said: *Documentation error-returns.html> > > | #1030 - Got error 1 from storage engine > > Gives me no results. Any suggestions would be appreciated. > > Hans > | > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From hans at cyberxdesigns.com Sun Jan 7 23:15:06 2007 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Sun, 07 Jan 2007 23:15:06 -0500 Subject: [nycphp-talk] ism tables. In-Reply-To: <9BE9F39C-B48D-48A6-9803-429DFB2EA744@jonbaer.com> References: <45A07475.7090208@cyberxdesigns.com> <9BE9F39C-B48D-48A6-9803-429DFB2EA744@jonbaer.com> Message-ID: <45A1C54A.4090707@cyberxdesigns.com> Already tried. You need to have two functioning database servers to use it. It will not read the ism files directly.. If I had a functioning (3.23 or 4.0) data base server that could read the ism tables, I would just mysqldump the data out of them. And read the dump file into 5.0. If I am mistaken on this belief, please correct me. When I ran the migration tool it kept asking for a source database server. I am still seeking resolution to this problem. If someone has a zip of 3.23 or 4.0 MySQL server, I would appreciate getting access to that file? Hans Jon Baer wrote: > Try the Windows GUI toolset from MySQL and use the Migration toolkit > application. I think that tool was made for those situations. > > http://dev.mysql.com/downloads/gui-tools/5.0.html > > - Jon > > On Jan 6, 2007, at 11:17 PM, Hans C. Kaspersetz wrote: > >> I have to recover some data out of old ism mysql tables and I don't >> have a version of MySQL which can access those tables. I also can't >> seem to find out how to convert those old tables to myi table >> format. Does anyone know a tool or have access to the windows binary >> install of 3.23 or 4.0 MySQL? >> >> The typical: >> ALTER TABLE phpbb_users TYPE = MYISAM >> >> *MySQL said: *Documentation >> >> >> | #1030 - Got error 1 from storage engine >> >> Gives me no results. Any suggestions would be appreciated. >> >> Hans >> | From hans at cyberxdesigns.com Sun Jan 7 23:21:35 2007 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Sun, 07 Jan 2007 23:21:35 -0500 Subject: [nycphp-talk] ism tables. In-Reply-To: <45A1C54A.4090707@cyberxdesigns.com> References: <45A07475.7090208@cyberxdesigns.com> <9BE9F39C-B48D-48A6-9803-429DFB2EA744@jonbaer.com> <45A1C54A.4090707@cyberxdesigns.com> Message-ID: <45A1C6CF.8010603@cyberxdesigns.com> Let me be more specific, I am looking for the installer files for Windows for either MySQL Server 3.23 or MySQL Sever 4.0.x. Hans Hans C. Kaspersetz wrote: > Already tried. You need to have two functioning database servers to > use it. It will not read the ism files directly.. If I had a > functioning (3.23 or 4.0) data base server that could read the ism > tables, I would just mysqldump the data out of them. And read the > dump file into 5.0. > > If I am mistaken on this belief, please correct me. When I ran the > migration tool it kept asking for a source database server. I am > still seeking resolution to this problem. > > If someone has a zip of 3.23 or 4.0 MySQL server, I would appreciate > getting access to that file? > > Hans > > Jon Baer wrote: >> Try the Windows GUI toolset from MySQL and use the Migration toolkit >> application. I think that tool was made for those situations. >> >> http://dev.mysql.com/downloads/gui-tools/5.0.html >> >> - Jon >> >> On Jan 6, 2007, at 11:17 PM, Hans C. Kaspersetz wrote: >> >>> I have to recover some data out of old ism mysql tables and I don't >>> have a version of MySQL which can access those tables. I also can't >>> seem to find out how to convert those old tables to myi table >>> format. Does anyone know a tool or have access to the windows >>> binary install of 3.23 or 4.0 MySQL? >>> >>> The typical: >>> ALTER TABLE phpbb_users TYPE = MYISAM >>> >>> *MySQL said: *Documentation >>> >>> >>> | #1030 - Got error 1 from storage engine >>> >>> Gives me no results. Any suggestions would be appreciated. >>> >>> Hans >>> | From nate at cakephp.org Sun Jan 7 23:33:38 2007 From: nate at cakephp.org (Nate Abele) Date: Sun, 7 Jan 2007 23:33:38 -0500 Subject: [nycphp-talk] CAKE Ain't Soup! In-Reply-To: <20070108041015.8D9D310A806D@cakephp.org> References: <20070108041015.8D9D310A806D@cakephp.org> Message-ID: Some get a kick from cocaine. I'm sure that if I took even one sniff, it would bore me terrifically, too. Yet, I get a kick out of you. > Date: Sun, 07 Jan 2007 12:08:41 +0800 > From: "mikesz at qualityadvantages.com" > Subject: [nycphp-talk] CAKE Ain't Soup! > To: talk at lists.nyphp.org > Message-ID: <45A07249.70100 at qualityadvantages.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > In defense of Brian Daley's rant about CAKE and contrary to Nate > Abele's illness, > I believe Brian's point are well founded and justified completely. > > As a complete CAKE novice, I knew/know nothing about Cake except > the misinformation that > is contained on their home page, i.e *"No Configuration* - Set-up > the database and watch the magic begin". > So I decided to check it out to see for myself what all the hype > was about so > after wading through a miriad of "give us money" I finally was able > to download the > package and attempted to install it on my local Apache Webserver. > Give that the installation > instruction are clear as mud, I attempted to install it like any > other PHP Application > but when I attempted to run it, I get a "Your database > configuration file is not present." > and a screenful of junk that tells me nothing about how to install > the product, except an instruction > that says, "run the install" but never says what that is. > Installation instructions, never mind documentation, > are suppose to be specific, precise and correct. Cake is none of > the above. > > Cake may be cake but it is certainly not soup! > > Cake may be indeed a great leap forward but if you can not install > it "out of the box" no one will ever know. > I, personally, don't "shop around" for information that isn't where > it is "suppose" to be. That means that > Cake only had one shot to impress me, they did, negatively! All the > whining on the planet won't fix > an installation process that is fatally flawed. > > regards, mikesz -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikesz at qualityadvantages.com Sun Jan 7 23:56:02 2007 From: mikesz at qualityadvantages.com (mikesz at qualityadvantages.com) Date: Mon, 08 Jan 2007 12:56:02 +0800 Subject: [nycphp-talk] ism tables. In-Reply-To: <45A1C54A.4090707@cyberxdesigns.com> References: <45A07475.7090208@cyberxdesigns.com> <9BE9F39C-B48D-48A6-9803-429DFB2EA744@jonbaer.com> <45A1C54A.4090707@cyberxdesigns.com> Message-ID: <45A1CEE2.7000602@qualityadvantages.com> Hans C. Kaspersetz wrote: > Already tried. You need to have two functioning database servers to > use it. It will not read the ism files directly.. If I had a > functioning (3.23 or 4.0) data base server that could read the ism > tables, I would just mysqldump the data out of them. And read the > dump file into 5.0. > > If I am mistaken on this belief, please correct me. When I ran the > migration tool it kept asking for a source database server. I am > still seeking resolution to this problem. > > If someone has a zip of 3.23 or 4.0 MySQL server, I would appreciate > getting access to that file? > > Hans > > Jon Baer wrote: > >> Try the Windows GUI toolset from MySQL and use the Migration toolkit >> application. I think that tool was made for those situations. >> >> http://dev.mysql.com/downloads/gui-tools/5.0.html >> >> - Jon >> >> On Jan 6, 2007, at 11:17 PM, Hans C. Kaspersetz wrote: >> >>> I have to recover some data out of old ism mysql tables and I don't >>> have a version of MySQL which can access those tables. I also can't >>> seem to find out how to convert those old tables to myi table >>> format. Does anyone know a tool or have access to the windows >>> binary install of 3.23 or 4.0 MySQL? >>> >>> The typical: >>> ALTER TABLE phpbb_users TYPE = MYISAM >>> >>> *MySQL said: *Documentation >>> >>> >>> | #1030 - Got error 1 from storage engine >>> >>> Gives me no results. Any suggestions would be appreciated. >>> >>> Hans >>> | >> > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > __________ NOD32 1960 (20070106) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > > > http://mysql.speedbone.de/downloads/mysql/4.0.html hope this helps, mikesz From jonbaer at jonbaer.com Mon Jan 8 00:37:58 2007 From: jonbaer at jonbaer.com (Jon Baer) Date: Mon, 8 Jan 2007 00:37:58 -0500 Subject: [nycphp-talk] ism tables. In-Reply-To: <45A1C6CF.8010603@cyberxdesigns.com> References: <45A07475.7090208@cyberxdesigns.com> <9BE9F39C-B48D-48A6-9803-429DFB2EA744@jonbaer.com> <45A1C54A.4090707@cyberxdesigns.com> <45A1C6CF.8010603@cyberxdesigns.com> Message-ID: <9251B575-20B6-422E-8DC9-5FC82D910540@jonbaer.com> Actually after reading your original email all you need to do is a bulk search/replace and change ... >> ALTER TABLE phpbb_users TYPE = MYISAM to >> ALTER TABLE phpbb_users ENGINE = MYISAM And you are good to go. - Jon On Jan 7, 2007, at 11:21 PM, Hans C. Kaspersetz wrote: > Let me be more specific, I am looking for the installer files for > Windows for either MySQL Server 3.23 or MySQL Sever 4.0.x. > > Hans > > Hans C. Kaspersetz wrote: >> Already tried. You need to have two functioning database servers >> to use it. It will not read the ism files directly.. If I had a >> functioning (3.23 or 4.0) data base server that could read the ism >> tables, I would just mysqldump the data out of them. And read the >> dump file into 5.0. >> >> If I am mistaken on this belief, please correct me. When I ran >> the migration tool it kept asking for a source database server. I >> am still seeking resolution to this problem. >> >> If someone has a zip of 3.23 or 4.0 MySQL server, I would >> appreciate getting access to that file? >> >> Hans >> >> Jon Baer wrote: >>> Try the Windows GUI toolset from MySQL and use the Migration >>> toolkit application. I think that tool was made for those >>> situations. >>> >>> http://dev.mysql.com/downloads/gui-tools/5.0.html >>> >>> - Jon >>> >>> On Jan 6, 2007, at 11:17 PM, Hans C. Kaspersetz wrote: >>> >>>> I have to recover some data out of old ism mysql tables and I >>>> don't have a version of MySQL which can access those tables. I >>>> also can't seem to find out how to convert those old tables to >>>> myi table format. Does anyone know a tool or have access to the >>>> windows binary install of 3.23 or 4.0 MySQL? >>>> >>>> The typical: >>>> ALTER TABLE phpbb_users TYPE = MYISAM >>>> >>>> *MySQL said: *Documentation >>> en/error-returns.html> >>>> >>>> | #1030 - Got error 1 from storage engine >>>> >>>> Gives me no results. Any suggestions would be appreciated. >>>> >>>> Hans >>>> | > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From marcin.szkudlarek at gmail.com Mon Jan 8 07:12:53 2007 From: marcin.szkudlarek at gmail.com (Marcin Szkudlarek) Date: Mon, 8 Jan 2007 12:12:53 +0000 Subject: [nycphp-talk] CAKE Ain't Soup! In-Reply-To: References: <20070108041015.8D9D310A806D@cakephp.org> Message-ID: I think that for every framework you need some time to learn it. After that time you're able to get the benefits of using it. I spent few days learning cake (no problems with installation). Usually when I didn't understand how particular part works I just looked into the code.. it's the way I recommend for people struggling with Cake. What I mean in general is that you'll appreciate the benefits of using Cake after you'll learn at least at the basic level. Regards, Marcin On 08/01/07, Nate Abele wrote: > > > Some get a kick from cocaine. I'm sure that if I took even one sniff, it > would bore me terrifically, too. > Yet, I get a kick out of you. > > > Date: Sun, 07 Jan 2007 12:08:41 +0800 > From: "mikesz at qualityadvantages.com" > Subject: [nycphp-talk] CAKE Ain't Soup! > To: talk at lists.nyphp.org > Message-ID: <45A07249.70100 at qualityadvantages.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > In defense of Brian Daley's rant about CAKE and contrary to Nate Abele's > illness, > I believe Brian's point are well founded and justified completely. > > As a complete CAKE novice, I knew/know nothing about Cake except the > misinformation that > is contained on their home page, i.e *"No Configuration* - Set-up the > database and watch the magic begin". > So I decided to check it out to see for myself what all the hype was about > so > after wading through a miriad of "give us money" I finally was able to > download the > package and attempted to install it on my local Apache Webserver. Give that > the installation > instruction are clear as mud, I attempted to install it like any other PHP > Application > but when I attempted to run it, I get a "Your database configuration file > is not present." > and a screenful of junk that tells me nothing about how to install the > product, except an instruction > that says, "run the install" but never says what that is. Installation > instructions, never mind documentation, > are suppose to be specific, precise and correct. Cake is none of the above. > > Cake may be cake but it is certainly not soup! > > Cake may be indeed a great leap forward but if you can not install it "out > of the box" no one will ever know. > I, personally, don't "shop around" for information that isn't where it is > "suppose" to be. That means that > Cake only had one shot to impress me, they did, negatively! All the whining > on the planet won't fix > an installation process that is fatally flawed. > > regards, mikesz > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > From r.mariotti at fdcx.net Mon Jan 8 07:54:19 2007 From: r.mariotti at fdcx.net (R. Mariotti) Date: Mon, 08 Jan 2007 07:54:19 -0500 Subject: [nycphp-talk] re: Graph creation software for PHP Message-ID: <45A23EFB.4010700@fdcx.net> > Message: 4 > Date: Sun, 7 Jan 2007 17:11:02 -0500 > From: "Cliff Hirsch" > Subject: [nycphp-talk] Seeking image graph software suggestions > To: > Message-ID: <000001c732a8$b81f6bf0$12a8a8c0 at HirschLaptop> > Content-Type: text/plain; charset="us-ascii" > > I currently use PHP's image functions and the GD library to create bar > charts. Now I want to move on to line and x-y charts. My time is > probably better spent elsewhere than reinventing the wheel again. > > Does anyone have suggestions for good graphing software? Some > possibilities I'm exploring: > > JpGraph > Jpowered > ChartDirector > PEAR Image_Graph > > I don't need anything fancy, but would rather not spend the time > figuring out how to squeeze an arbitrary number of data points into a > few hundred pixels. > > Happy New Year, > Cliff Hirsch > _______________________________ > Pinestream Communications, Inc. > Publisher of Semiconductor Times & Telecom Trends > 52 Pine Street, Weston, MA 02493 USA > Tel: 781.647.8800, Fax: 781.647.8825 > http://www.pinestream.com Cliff; I've used ChartDirector in multiple projects and it has always delivered very well. It's reasonably quick; the charts are reasonably well resolved; they're completely configurable; the support is reasonable and the cost is pretty cheap compared to "re-inventing the wheel". That's just my $0.02 worth.. YMMV bobmct From adlermedrado at gmail.com Mon Jan 8 08:13:10 2007 From: adlermedrado at gmail.com (Adler Medrado) Date: Mon, 8 Jan 2007 10:13:10 -0300 Subject: [nycphp-talk] re: Graph creation software for PHP In-Reply-To: <45A23EFB.4010700@fdcx.net> References: <45A23EFB.4010700@fdcx.net> Message-ID: Hi Cliff, i think you can use the Graph component included in ez components package. good luck. -- adler medrado Nesher Technologies Bras?lia, DF, Brasil. http://www.neshertech.net http://adler.neshertech.net 2007/1/8, R. Mariotti : > > > Message: 4 > > Date: Sun, 7 Jan 2007 17:11:02 -0500 > > From: "Cliff Hirsch" > > Subject: [nycphp-talk] Seeking image graph software suggestions > > To: > > Message-ID: <000001c732a8$b81f6bf0$12a8a8c0 at HirschLaptop> > > Content-Type: text/plain; charset="us-ascii" > > > > I currently use PHP's image functions and the GD library to create bar > > charts. Now I want to move on to line and x-y charts. My time is > > probably better spent elsewhere than reinventing the wheel again. > > > > Does anyone have suggestions for good graphing software? Some > > possibilities I'm exploring: > > > > JpGraph > > Jpowered > > ChartDirector > > PEAR Image_Graph > > > > I don't need anything fancy, but would rather not spend the time > > figuring out how to squeeze an arbitrary number of data points into a > > few hundred pixels. > > > > Happy New Year, > > Cliff Hirsch > > _______________________________ > > Pinestream Communications, Inc. > > Publisher of Semiconductor Times & Telecom Trends > > 52 Pine Street, Weston, MA 02493 USA > > Tel: 781.647.8800, Fax: 781.647.8825 > > http://www.pinestream.com > > Cliff; > > I've used ChartDirector in multiple projects and it has always delivered > very well. It's reasonably quick; the charts are reasonably well > resolved; they're completely configurable; the support is reasonable and > the cost is pretty cheap compared to "re-inventing the wheel". > > That's just my $0.02 worth.. YMMV > > bobmct > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -------------- next part -------------- An HTML attachment was scrubbed... URL: From urb at e-government.com Mon Jan 8 08:33:45 2007 From: urb at e-government.com (Urb LeJeune) Date: Mon, 08 Jan 2007 08:33:45 -0500 Subject: [nycphp-talk] ism tables. In-Reply-To: <45A1C6CF.8010603@cyberxdesigns.com> References: <45A07475.7090208@cyberxdesigns.com> <9BE9F39C-B48D-48A6-9803-429DFB2EA744@jonbaer.com> <45A1C54A.4090707@cyberxdesigns.com> <45A1C6CF.8010603@cyberxdesigns.com> Message-ID: <7.0.1.0.0.20070108083152.04a35940@e-government.com> >Let me be more specific, I am looking for the installer files for >Windows for either MySQL Server 3.23 or MySQL Sever 4.0.x. I have MySQL version 3.23.27 for Windows installed and running. I don't think If you give me the file names you need I'll zip them up and send them to you. Urb From jonbaer at jonbaer.com Mon Jan 8 08:46:05 2007 From: jonbaer at jonbaer.com (Jon Baer) Date: Mon, 8 Jan 2007 08:46:05 -0500 Subject: [nycphp-talk] CAKE Ain't Soup! In-Reply-To: References: <20070108041015.8D9D310A806D@cakephp.org> Message-ID: <4B3350DE-5F82-434C-ABEB-3F347A37906D@jonbaer.com> I think that people coming from procedural PHP tend to have a harder time getting into MVC styled programming. Especially if a complete framework is the very next thing they look @ without OO programing. If you have gone from Java to JSP to Struts to PHP and onto Cake (and probably @ least checking out what that Ruby on Rails thing is about) you tend to appreciate it more. I agree you need to set aside @ least a good day for each part of MVC to understand what you are getting into, but when something breaks or you have to debug it won't take long to find. Nearly every rant I've seen is mainly due to complete disagreement with the conventions used or is just a complete bikeshed issue :-) - Jon On Jan 8, 2007, at 7:12 AM, Marcin Szkudlarek wrote: > I think that for every framework you need some time to learn it. After > that time you're able to get the benefits of using it. I spent few > days learning cake (no problems with installation). Usually when I > didn't understand how particular part works I just looked into the > code.. it's the way I recommend for people struggling with Cake. What > I mean in general is that you'll appreciate the benefits of using Cake > after you'll learn at least at the basic level. > > Regards, > > Marcin > > > On 08/01/07, Nate Abele wrote: >> >> >> Some get a kick from cocaine. I'm sure that if I took even one >> sniff, it >> would bore me terrifically, too. >> Yet, I get a kick out of you. >> >> >> Date: Sun, 07 Jan 2007 12:08:41 +0800 >> From: "mikesz at qualityadvantages.com" >> Subject: [nycphp-talk] CAKE Ain't Soup! >> To: talk at lists.nyphp.org >> Message-ID: <45A07249.70100 at qualityadvantages.com> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> In defense of Brian Daley's rant about CAKE and contrary to Nate >> Abele's >> illness, >> I believe Brian's point are well founded and justified completely. >> >> As a complete CAKE novice, I knew/know nothing about Cake except the >> misinformation that >> is contained on their home page, i.e *"No Configuration* - Set-up the >> database and watch the magic begin". >> So I decided to check it out to see for myself what all the hype >> was about >> so >> after wading through a miriad of "give us money" I finally was >> able to >> download the >> package and attempted to install it on my local Apache Webserver. >> Give that >> the installation >> instruction are clear as mud, I attempted to install it like any >> other PHP >> Application >> but when I attempted to run it, I get a "Your database >> configuration file >> is not present." >> and a screenful of junk that tells me nothing about how to install >> the >> product, except an instruction >> that says, "run the install" but never says what that is. >> Installation >> instructions, never mind documentation, >> are suppose to be specific, precise and correct. Cake is none of >> the above. >> >> Cake may be cake but it is certainly not soup! >> >> Cake may be indeed a great leap forward but if you can not install >> it "out >> of the box" no one will ever know. >> I, personally, don't "shop around" for information that isn't >> where it is >> "suppose" to be. That means that >> Cake only had one shot to impress me, they did, negatively! All >> the whining >> on the planet won't fix >> an installation process that is fatally flawed. >> >> regards, mikesz >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php >> >> > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From jonbaer at jonbaer.com Mon Jan 8 08:53:47 2007 From: jonbaer at jonbaer.com (Jon Baer) Date: Mon, 8 Jan 2007 08:53:47 -0500 Subject: [nycphp-talk] re: Graph creation software for PHP In-Reply-To: <45A23EFB.4010700@fdcx.net> References: <45A23EFB.4010700@fdcx.net> Message-ID: <273BA39F-2CAE-44D7-B31D-B1E4070C48E7@jonbaer.com> I must say that someone else on this list recommend this package a while back + it is a gem ... http://www.maani.us/charts/index.php Well worth a look. - Jon On Jan 8, 2007, at 7:54 AM, R. Mariotti wrote: > > Message: 4 > > Date: Sun, 7 Jan 2007 17:11:02 -0500 > > From: "Cliff Hirsch" > > Subject: [nycphp-talk] Seeking image graph software suggestions > > To: > > Message-ID: <000001c732a8$b81f6bf0$12a8a8c0 at HirschLaptop> > > Content-Type: text/plain; charset="us-ascii" > > > > I currently use PHP's image functions and the GD library to > create bar > > charts. Now I want to move on to line and x-y charts. My time is > > probably better spent elsewhere than reinventing the wheel again. > > > > Does anyone have suggestions for good graphing software? Some > > possibilities I'm exploring: > > > > JpGraph > > Jpowered > > ChartDirector > > PEAR Image_Graph > > > > I don't need anything fancy, but would rather not spend the time > > figuring out how to squeeze an arbitrary number of data points > into a > > few hundred pixels. > > > > Happy New Year, > > Cliff Hirsch > > _______________________________ > > Pinestream Communications, Inc. > > Publisher of Semiconductor Times & Telecom Trends > > 52 Pine Street, Weston, MA 02493 USA > > Tel: 781.647.8800, Fax: 781.647.8825 > > http://www.pinestream.com > > Cliff; > > I've used ChartDirector in multiple projects and it has always > delivered very well. It's reasonably quick; the charts are > reasonably well resolved; they're completely configurable; the > support is reasonable and the cost is pretty cheap compared to "re- > inventing the wheel". > > That's just my $0.02 worth.. YMMV > > bobmct > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From support at dailytechnology.net Mon Jan 8 09:00:54 2007 From: support at dailytechnology.net (Brian Dailey) Date: Mon, 08 Jan 2007 09:00:54 -0500 Subject: [nycphp-talk] CAKE Ain't Soup! In-Reply-To: <4B3350DE-5F82-434C-ABEB-3F347A37906D@jonbaer.com> References: <20070108041015.8D9D310A806D@cakephp.org> <4B3350DE-5F82-434C-ABEB-3F347A37906D@jonbaer.com> Message-ID: <45A24E96.6010805@dailytechnology.net> I just wanted to hop in and say I couldn't agree more. Cake may have some documentation issues, but it was still easier to set up than Rails, Symphony, or any of the other frameworks I've experimented with in the past. I'll continue to use it for as long as it makes my job easier and faster. Jon Baer wrote: > I think that people coming from procedural PHP tend to have a harder > time getting into MVC styled programming. Especially if a complete > framework is the very next thing they look @ without OO programing. If > you have gone from Java to JSP to Struts to PHP and onto Cake (and > probably @ least checking out what that Ruby on Rails thing is about) > you tend to appreciate it more. I agree you need to set aside @ least a > good day for each part of MVC to understand what you are getting into, > but when something breaks or you have to debug it won't take long to > find. Nearly every rant I've seen is mainly due to complete > disagreement with the conventions used or is just a complete bikeshed > issue :-) > > - Jon > > On Jan 8, 2007, at 7:12 AM, Marcin Szkudlarek wrote: > >> I think that for every framework you need some time to learn it. After >> that time you're able to get the benefits of using it. I spent few >> days learning cake (no problems with installation). Usually when I >> didn't understand how particular part works I just looked into the >> code.. it's the way I recommend for people struggling with Cake. What >> I mean in general is that you'll appreciate the benefits of using Cake >> after you'll learn at least at the basic level. >> >> Regards, >> >> Marcin >> >> >> On 08/01/07, Nate Abele wrote: >>> >>> >>> Some get a kick from cocaine. I'm sure that if I took even one >>> sniff, it >>> would bore me terrifically, too. >>> Yet, I get a kick out of you. >>> >>> >>> Date: Sun, 07 Jan 2007 12:08:41 +0800 >>> From: "mikesz at qualityadvantages.com" >>> Subject: [nycphp-talk] CAKE Ain't Soup! >>> To: talk at lists.nyphp.org >>> Message-ID: <45A07249.70100 at qualityadvantages.com> >>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >>> >>> In defense of Brian Daley's rant about CAKE and contrary to Nate Abele's >>> illness, >>> I believe Brian's point are well founded and justified completely. >>> >>> As a complete CAKE novice, I knew/know nothing about Cake except the >>> misinformation that >>> is contained on their home page, i.e *"No Configuration* - Set-up the >>> database and watch the magic begin". >>> So I decided to check it out to see for myself what all the hype was >>> about >>> so >>> after wading through a miriad of "give us money" I finally was able to >>> download the >>> package and attempted to install it on my local Apache Webserver. >>> Give that >>> the installation >>> instruction are clear as mud, I attempted to install it like any >>> other PHP >>> Application >>> but when I attempted to run it, I get a "Your database configuration >>> file >>> is not present." >>> and a screenful of junk that tells me nothing about how to install the >>> product, except an instruction >>> that says, "run the install" but never says what that is. Installation >>> instructions, never mind documentation, >>> are suppose to be specific, precise and correct. Cake is none of the >>> above. >>> >>> Cake may be cake but it is certainly not soup! >>> >>> Cake may be indeed a great leap forward but if you can not install it >>> "out >>> of the box" no one will ever know. >>> I, personally, don't "shop around" for information that isn't where >>> it is >>> "suppose" to be. That means that >>> Cake only had one shot to impress me, they did, negatively! All the >>> whining >>> on the planet won't fix >>> an installation process that is fatally flawed. >>> >>> regards, mikesz >>> >>> _______________________________________________ >>> New York PHP Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> NYPHPCon 2006 Presentations Online >>> http://www.nyphpcon.com >>> >>> Show Your Participation in New York PHP >>> http://www.nyphp.org/show_participation.php >>> >>> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > From mikeh at dtev.com Mon Jan 8 09:47:33 2007 From: mikeh at dtev.com (Michele Hjorleifsson) Date: Mon, 8 Jan 2007 09:47:33 -0500 Subject: [nycphp-talk] CAKE Ain't Soup! In-Reply-To: <45A24E96.6010805@dailytechnology.net> References: <20070108041015.8D9D310A806D@cakephp.org> <4B3350DE-5F82-434C-ABEB-3F347A37906D@jonbaer.com> <45A24E96.6010805@dailytechnology.net> Message-ID: Why not hold a beginners cake presentation or webinar as a topic since there seems to be some interest ? From jonbaer at jonbaer.com Mon Jan 8 10:46:55 2007 From: jonbaer at jonbaer.com (Jon Baer) Date: Mon, 8 Jan 2007 10:46:55 -0500 Subject: [nycphp-talk] CAKE Ain't Soup! In-Reply-To: References: <20070108041015.8D9D310A806D@cakephp.org> <4B3350DE-5F82-434C-ABEB-3F347A37906D@jonbaer.com> <45A24E96.6010805@dailytechnology.net> Message-ID: There already was one a few months back by Nate ... http://www.nyphp.org/content/presentations/CakeNYPHPPresentation.pdf It would be nice to get either a 1.2 update or maybe a local user group specific to CakePHP? The thing is that most people have to explain what they would like to see being done ... (it would be nice to see locals fill up their screencast library w/ specialized topics) http://cakephp.org/screencasts - Jon On Jan 8, 2007, at 9:47 AM, Michele Hjorleifsson wrote: > Why not hold a beginners cake presentation or webinar as a topic > since there seems to be some interest ? > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From support at dailytechnology.net Mon Jan 8 11:31:32 2007 From: support at dailytechnology.net (Brian Dailey) Date: Mon, 08 Jan 2007 11:31:32 -0500 Subject: [nycphp-talk] strtotime() Bug? Message-ID: <45A271E4.30003@dailytechnology.net> Have you guys ran into this? I'm using strtotime('first monday january 2007'), but I'm getting erroneous dates when the first day of that week occurs on the first of the month. Examples: date('Y-m-d', strtotime('second monday january 2007')); date('Y-m-d', strtotime('second tuesday february 2007')); Output Expected: 2007-01-08 2007-02-08 Actual Output: 2007-01-15 2007-02-15 The bug is in the PHP bug tracker here: http://bugs.php.net/40003 But, alas, the bug has been marked as "bogus", although the problem is apparently unresolved. Is there a workaround for this, or am I doing something wrong? Thanks guys! - Brian From jay_nyphp2 at fastmail.fm Mon Jan 8 12:24:37 2007 From: jay_nyphp2 at fastmail.fm (Jay Sheth) Date: Mon, 08 Jan 2007 12:24:37 -0500 Subject: [nycphp-talk] PHP 4 Constructor Weirdness Message-ID: <1168277077.8731.283699379@webmail.messagingengine.com> Hi NYPHPers, Here's a question: What would you expect to be outputted below (using PHP 4)? id = $id; } } class abc extends xyz{ function def($id){ parent::xyz($id); } } $test = new abc(43); echo $test->id; ?> If you answered 'nothing', you're wrong. It outputs '43'. I'm wondering how PHP find that def() is the constructor when instantiating the abc class? Ordinarily, it should have the same name as the class. I think the 'parent::xyz' call is somehow matched to the 'extends xyz' declaration, and the constructor is found. Is this a bug or a feature? Regards, - Jay From scott at crisscott.com Mon Jan 8 12:35:09 2007 From: scott at crisscott.com (Scott Mattocks) Date: Mon, 08 Jan 2007 12:35:09 -0500 Subject: [nycphp-talk] PHP 4 Constructor Weirdness In-Reply-To: <1168277077.8731.283699379@webmail.messagingengine.com> References: <1168277077.8731.283699379@webmail.messagingengine.com> Message-ID: <45A280CD.6070606@crisscott.com> Jay Sheth wrote: > Hi NYPHPers, > > Here's a question: > What would you expect to be outputted below (using PHP 4)? > > class xyz{ > function xyz($id){ > $this->id = $id; > } > } > > class abc extends xyz{ > function def($id){ > parent::xyz($id); > } > } > > $test = new abc(43); > echo $test->id; > ?> > > If you answered 'nothing', you're wrong. It outputs '43'. I'm wondering > how PHP find that def() is the constructor when instantiating the abc > class? > It doesn't call def() at all. If you don't provide a constructor for a class, PHP calls the parent class's constructor. In this case xyz(). If class xyz didn't have a constructor, then you should expect nothing to be returned. Try putting an echo into def() to verify what is and is not being called. Scott Mattocks From shiflett at php.net Mon Jan 8 13:03:15 2007 From: shiflett at php.net (Chris Shiflett) Date: Mon, 08 Jan 2007 13:03:15 -0500 Subject: [nycphp-talk] PHP 4 Constructor Weirdness In-Reply-To: <1168277077.8731.283699379@webmail.messagingengine.com> References: <1168277077.8731.283699379@webmail.messagingengine.com> Message-ID: <45A28763.8000000@php.net> Jay Sheth wrote: > What would you expect to be outputted below (using PHP 4)? > > class xyz{ > function xyz($id){ > $this->id = $id; > } > } > > class abc extends xyz{ > function def($id){ > parent::xyz($id); > } > } > > $test = new abc(43); > echo $test->id; > ?> > > If you answered 'nothing', you're wrong. It outputs '43'. I'm > wondering how PHP find that def() is the constructor when > instantiating the abc class? False assumptions form the basis of many programming errors. I'd suggest that you first verify your assumptions. Are you sure the def() method being called? If it is, that's insane, but I bet it's not. :-) Here's a hint. You're extending a class that has a constructor. You don't provide a constructor in the definition of the child class... Hope that helps. Chris -- Chris Shiflett http://shiflett.org/ From jay_nyphp2 at fastmail.fm Mon Jan 8 13:27:01 2007 From: jay_nyphp2 at fastmail.fm (Jay Sheth) Date: Mon, 08 Jan 2007 13:27:01 -0500 Subject: [nycphp-talk] PHP 4 Constructor Weirdness Message-ID: <1168280821.18375.283711703@webmail.messagingengine.com> Hi Chris and Scott, thanks for the quick replies. You're both right. I should've tested it with an echo inside of def(). I'd simplified this as a test case from a larger problem I'd seen, and *assumed* I'd found the right answer. So much for making untested assumptions, as Chris said ;-) Regards, - Jay Chris wrote: >False assumptions form the basis of many programming errors. I'd suggest >that you first verify your assumptions. Are you sure the def() method >being called? If it is, that's insane, but I bet it's not. :-) From cliff at pinestream.com Mon Jan 8 13:35:13 2007 From: cliff at pinestream.com (Cliff Hirsch) Date: Mon, 8 Jan 2007 13:35:13 -0500 Subject: [nycphp-talk] PHP 4 Constructor Weirdness In-Reply-To: <1168280821.18375.283711703@webmail.messagingengine.com> Message-ID: <000c01c73353$bc18ea00$12a8a8c0@HirschLaptop> echos -- blech single-step through your code using a debugger -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jay Sheth Sent: Monday, January 08, 2007 1:27 PM To: NYPHP Talk Subject: [nycphp-talk] PHP 4 Constructor Weirdness Hi Chris and Scott, thanks for the quick replies. You're both right. I should've tested it with an echo inside of def(). I'd simplified this as a test case from a larger problem I'd seen, and *assumed* I'd found the right answer. So much for making untested assumptions, as Chris said ;-) Regards, - Jay Chris wrote: >False assumptions form the basis of many programming errors. I'd suggest >that you first verify your assumptions. Are you sure the def() method >being called? If it is, that's insane, but I bet it's not. :-) _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From xdarkshadow98x at gmail.com Mon Jan 8 15:20:55 2007 From: xdarkshadow98x at gmail.com (Nazmul Hassan) Date: Mon, 8 Jan 2007 15:20:55 -0500 Subject: [nycphp-talk] re: Graph creation software for PHP In-Reply-To: <273BA39F-2CAE-44D7-B31D-B1E4070C48E7@jonbaer.com> References: <45A23EFB.4010700@fdcx.net> <273BA39F-2CAE-44D7-B31D-B1E4070C48E7@jonbaer.com> Message-ID: http://www.maani.us/charts/index.php - > that looks pretty cool On 1/8/07, Jon Baer wrote: > > I must say that someone else on this list recommend this package a > while back + it is a gem ... > > http://www.maani.us/charts/index.php > > Well worth a look. > > - Jon > > On Jan 8, 2007, at 7:54 AM, R. Mariotti wrote: > > > > Message: 4 > > > Date: Sun, 7 Jan 2007 17:11:02 -0500 > > > From: "Cliff Hirsch" > > > Subject: [nycphp-talk] Seeking image graph software suggestions > > > To: > > > Message-ID: <000001c732a8$b81f6bf0$12a8a8c0 at HirschLaptop> > > > Content-Type: text/plain; charset="us-ascii" > > > > > > I currently use PHP's image functions and the GD library to > > create bar > > > charts. Now I want to move on to line and x-y charts. My time is > > > probably better spent elsewhere than reinventing the wheel again. > > > > > > Does anyone have suggestions for good graphing software? Some > > > possibilities I'm exploring: > > > > > > JpGraph > > > Jpowered > > > ChartDirector > > > PEAR Image_Graph > > > > > > I don't need anything fancy, but would rather not spend the time > > > figuring out how to squeeze an arbitrary number of data points > > into a > > > few hundred pixels. > > > > > > Happy New Year, > > > Cliff Hirsch > > > _______________________________ > > > Pinestream Communications, Inc. > > > Publisher of Semiconductor Times & Telecom Trends > > > 52 Pine Street, Weston, MA 02493 USA > > > Tel: 781.647.8800, Fax: 781.647.8825 > > > http://www.pinestream.com > > > > Cliff; > > > > I've used ChartDirector in multiple projects and it has always > > delivered very well. It's reasonably quick; the charts are > > reasonably well resolved; they're completely configurable; the > > support is reasonable and the cost is pretty cheap compared to "re- > > inventing the wheel". > > > > That's just my $0.02 worth.. YMMV > > > > bobmct > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > > > NYPHPCon 2006 Presentations Online > > http://www.nyphpcon.com > > > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- (?`?._.?[ ' Nazmul Hassan ' ]?._.???) -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmintz at davidmintz.org Mon Jan 8 15:44:17 2007 From: dmintz at davidmintz.org (David Mintz) Date: Mon, 8 Jan 2007 15:44:17 -0500 (EST) Subject: [nycphp-talk] CAKE Ain't Soup! In-Reply-To: <4B3350DE-5F82-434C-ABEB-3F347A37906D@jonbaer.com> References: <20070108041015.8D9D310A806D@cakephp.org> <4B3350DE-5F82-434C-ABEB-3F347A37906D@jonbaer.com> Message-ID: On Mon, 8 Jan 2007, Jon Baer wrote: > I think that people coming from procedural PHP tend to have a harder > time getting into MVC styled programming. Especially if a complete > framework is the very next thing they look @ without OO programing.[...] Yes. Speaking as a sort of perpetual semi-pro dilettante with a non-programming-related day job, I think I can understand this issue. CakePHP can make you weep -- with joy. You do a couple things and BANG! It's working. I have stared at the screen, jaws agape, and said holy f__ I can't believe it. Wow. I was so pleased, I gave them all $23.47 that happened to be in my PayPal account. Then again, if you are a lowly foot soldier and not really that experienced and/or not that clever, CakePHP has the ability to make you weep. You want to do one simple thing that isn't exactly a CRUD operation on something that isn't quite your run-of-the-mill entity like the good old Blog entry of tutorial fame, and suddenly it's so absurdly hard -- or else you're just not getting it, in which case it's still absurdly hard -- and there you are contorting and sweating until you just say f__ it and decide you're better off doing it by hand after all. Maybe the answer is you're both right -- you CakePHP master bakers, and you detractors who bash it for want of documentation. It's great and marvelous and wonderful, and harder than hell for people who need a little more hand-holding. PS to Nate, nice to see some appreciation for Cole Porter/Ol' Blue Eyes! --- David Mintz http://davidmintz.org/ En Nueva York el tr?nsito de la belleza a la desolaci?n sucede siempre expeditivamente, como si el principio universal de m?xima eficiencia hubiera aconsejado la supresi?n de gradaciones intermedias. -- Antonio Mu?oz Molina, Ventanas de Manhattan From support at dailytechnology.net Mon Jan 8 16:13:41 2007 From: support at dailytechnology.net (Brian Dailey) Date: Mon, 08 Jan 2007 16:13:41 -0500 Subject: [nycphp-talk] CAKE Ain't Soup! In-Reply-To: References: <20070108041015.8D9D310A806D@cakephp.org> <4B3350DE-5F82-434C-ABEB-3F347A37906D@jonbaer.com> Message-ID: <45A2B405.7070803@dailytechnology.net> "Maybe the answer is you're both right -- you CakePHP master bakers, and you detractors who bash it for want of documentation. It's great and marvelous and wonderful, and harder than hell for people who need a little more hand-holding." I've had six years of experience in the IT industry, starting out with Java and eventually going to PHP about two and a half years ago. The lack of documentation doesn't just affect n00bs. David Mintz wrote: > On Mon, 8 Jan 2007, Jon Baer wrote: > >> I think that people coming from procedural PHP tend to have a harder >> time getting into MVC styled programming. Especially if a complete >> framework is the very next thing they look @ without OO programing.[...] > > Yes. > > Speaking as a sort of perpetual semi-pro dilettante with a > non-programming-related day job, I think I can understand this issue. > > CakePHP can make you weep -- with joy. You do a couple things and BANG! > It's working. I have stared at the screen, jaws agape, and said holy f__ I > can't believe it. Wow. I was so pleased, I gave them all $23.47 that > happened to be in my PayPal account. > > Then again, if you are a lowly foot soldier and not really that > experienced and/or not that clever, CakePHP has the ability to make you > weep. You want to do one simple thing that isn't exactly a CRUD operation > on something that isn't quite your run-of-the-mill entity like the good > old Blog entry of tutorial fame, and suddenly it's so absurdly hard -- or > else you're just not getting it, in which case it's still absurdly hard -- > and there you are contorting and sweating until you just say f__ it and > decide you're better off doing it by hand after all. > > Maybe the answer is you're both right -- you CakePHP master bakers, and > you detractors who bash it for want of documentation. It's great and > marvelous and wonderful, and harder than hell for people who need a little > more hand-holding. > > PS to Nate, nice to see some appreciation for Cole Porter/Ol' Blue Eyes! > > --- > David Mintz > http://davidmintz.org/ > > En Nueva York el tr?nsito de la belleza a la desolaci?n sucede > siempre expeditivamente, como si el principio universal > de m?xima eficiencia hubiera aconsejado la supresi?n de > gradaciones intermedias. > > -- Antonio Mu?oz Molina, Ventanas de Manhattan > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > From rmarscher at beaffinitive.com Mon Jan 8 17:09:36 2007 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Mon, 08 Jan 2007 17:09:36 -0500 Subject: [nycphp-talk] re: Graph creation software for PHP In-Reply-To: <273BA39F-2CAE-44D7-B31D-B1E4070C48E7@jonbaer.com> References: <45A23EFB.4010700@fdcx.net> <273BA39F-2CAE-44D7-B31D-B1E4070C48E7@jonbaer.com> Message-ID: <45A2C120.7010209@beaffinitive.com> I remember when that got recommended before... I use JpGraph and was going to switch to it, but it got shot down when I realized that people using the charts often cut and paste the graph into a Word doc or something like that. The PHP/SWF Charts FAQ says this about exporting to image files: "Currently, the only way to do this is manually. Grab a screen shot of the chart and convert it to other file formats. If your platform supports printing to pdf, use the *_link's _* print feature to print it to a PDF file." So we stuck with JpGraph because it generates image files. Something to consider. Cheers, Rob Jon Baer wrote: > I must say that someone else on this list recommend this package a > while back + it is a gem ... > > http://www.maani.us/charts/index.php > > Well worth a look. > > - Jon > > On Jan 8, 2007, at 7:54 AM, R. Mariotti wrote: > >> > Message: 4 >> > Date: Sun, 7 Jan 2007 17:11:02 -0500 >> > From: "Cliff Hirsch" >> > Subject: [nycphp-talk] Seeking image graph software suggestions >> > To: >> > Message-ID: <000001c732a8$b81f6bf0$12a8a8c0 at HirschLaptop> >> > Content-Type: text/plain; charset="us-ascii" >> > >> > I currently use PHP's image functions and the GD library to create bar >> > charts. Now I want to move on to line and x-y charts. My time is >> > probably better spent elsewhere than reinventing the wheel again. >> > >> > Does anyone have suggestions for good graphing software? Some >> > possibilities I'm exploring: >> > >> > JpGraph >> > Jpowered >> > ChartDirector >> > PEAR Image_Graph >> > >> > I don't need anything fancy, but would rather not spend the time >> > figuring out how to squeeze an arbitrary number of data points into a >> > few hundred pixels. >> > >> > Happy New Year, >> > Cliff Hirsch >> > _______________________________ >> > Pinestream Communications, Inc. >> > Publisher of Semiconductor Times & Telecom Trends >> > 52 Pine Street, Weston, MA 02493 USA >> > Tel: 781.647.8800, Fax: 781.647.8825 >> > http://www.pinestream.com >> >> Cliff; >> >> I've used ChartDirector in multiple projects and it has always >> delivered very well. It's reasonably quick; the charts are >> reasonably well resolved; they're completely configurable; the >> support is reasonable and the cost is pretty cheap compared to >> "re-inventing the wheel". >> >> That's just my $0.02 worth.. YMMV >> >> bobmct >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From jeff.loiselle at gmail.com Mon Jan 8 22:53:25 2007 From: jeff.loiselle at gmail.com (Jeff Loiselle) Date: Mon, 8 Jan 2007 22:53:25 -0500 Subject: [nycphp-talk] CAKE Ain't Soup! In-Reply-To: <45A2B405.7070803@dailytechnology.net> References: <20070108041015.8D9D310A806D@cakephp.org> <4B3350DE-5F82-434C-ABEB-3F347A37906D@jonbaer.com> <45A2B405.7070803@dailytechnology.net> Message-ID: <4b1887110701081953h589cfdbdq54a34511a9bf0e66@mail.gmail.com> To insert a purely technical explanation... CakePHP is the shit. It may be a little unwieldy at first, but it is capable of great things. As with anything, read the source code. If you're not willing to read the source code, a framework will never really be any good to you except for basic things. Figure it out. Contribute. Oh right, and I wrote an experimental Oracle driver for it. The latest driver is in the 1.2.x.x branch (not trunk)... Do my QA for me. :-) In the words of Borat, "frameworks are niiiice." From rlandrigan at terexca.com Mon Jan 8 23:18:25 2007 From: rlandrigan at terexca.com (Robert Landrigan) Date: Mon, 08 Jan 2007 22:18:25 -0600 Subject: [nycphp-talk] re: Graph creation software for PHP In-Reply-To: <45A2C120.7010209@beaffinitive.com> Message-ID: I've used the Interakt MXCharts, the Manni Flash charts, JpGraph, and currently use FusionCharts, from Infosoft. If you have to have a easily grabbed image to put into a word doc, then, yeah, JpGraph is about the best option. But FusionCharts(and the PowerMaps pack) saved my life. Very nice looking flash charts, with very solid documentation, all fed by XML feeds. I run a php 5 reporting site and the feed back has be very positive - drill down charts with ajax refreshing made me a hero:) Having fought charting for a year or so, this is an area that Flash is actually useful - image maps are simply too limited for accurate drill-down capabilities. On 1/8/07 4:09 PM, "Rob Marscher" wrote: > I remember when that got recommended before... I use JpGraph and was > going to switch to it, but it got shot down when I realized that people > using the charts often cut and paste the graph into a Word doc or > something like that. The PHP/SWF Charts FAQ says this about exporting > to image files: "Currently, the only way to do this is manually. Grab a > screen shot of the chart and convert it to other file formats. If your > platform supports printing to pdf, use the *_link's > _* > print feature to print it to a PDF file." So we stuck with JpGraph > because it generates image files. > > Something to consider. > Cheers, > Rob > > Jon Baer wrote: >> I must say that someone else on this list recommend this package a >> while back + it is a gem ... >> >> http://www.maani.us/charts/index.php >> >> Well worth a look. >> >> - Jon >> >> On Jan 8, 2007, at 7:54 AM, R. Mariotti wrote: >> >>>> Message: 4 >>>> Date: Sun, 7 Jan 2007 17:11:02 -0500 >>>> From: "Cliff Hirsch" >>>> Subject: [nycphp-talk] Seeking image graph software suggestions >>>> To: >>>> Message-ID: <000001c732a8$b81f6bf0$12a8a8c0 at HirschLaptop> >>>> Content-Type: text/plain; charset="us-ascii" >>>> >>>> I currently use PHP's image functions and the GD library to create bar >>>> charts. Now I want to move on to line and x-y charts. My time is >>>> probably better spent elsewhere than reinventing the wheel again. >>>> >>>> Does anyone have suggestions for good graphing software? Some >>>> possibilities I'm exploring: >>>> >>>> JpGraph >>>> Jpowered >>>> ChartDirector >>>> PEAR Image_Graph >>>> >>>> I don't need anything fancy, but would rather not spend the time >>>> figuring out how to squeeze an arbitrary number of data points into a >>>> few hundred pixels. >>>> >>>> Happy New Year, >>>> Cliff Hirsch >>>> _______________________________ >>>> Pinestream Communications, Inc. >>>> Publisher of Semiconductor Times & Telecom Trends >>>> 52 Pine Street, Weston, MA 02493 USA >>>> Tel: 781.647.8800, Fax: 781.647.8825 >>>> http://www.pinestream.com >>> >>> Cliff; >>> >>> I've used ChartDirector in multiple projects and it has always >>> delivered very well. It's reasonably quick; the charts are >>> reasonably well resolved; they're completely configurable; the >>> support is reasonable and the cost is pretty cheap compared to >>> "re-inventing the wheel". >>> >>> That's just my $0.02 worth.. YMMV >>> >>> bobmct >>> >>> _______________________________________________ >>> New York PHP Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> >>> NYPHPCon 2006 Presentations Online >>> http://www.nyphpcon.com >>> >>> Show Your Participation in New York PHP >>> http://www.nyphp.org/show_participation.php >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php >> > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php -- Robert Landrigan Web Developer, Terex Construction Americas Terex Intranet Team rlandrigan at terexca.com ********************************************************************** The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company. The company does not take any responsibility for the views of the author. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ********************************************************************** From hans at cyberxdesigns.com Mon Jan 8 23:59:44 2007 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Mon, 08 Jan 2007 23:59:44 -0500 Subject: [nycphp-talk] ism tables. In-Reply-To: <9251B575-20B6-422E-8DC9-5FC82D910540@jonbaer.com> References: <45A07475.7090208@cyberxdesigns.com> <9BE9F39C-B48D-48A6-9803-429DFB2EA744@jonbaer.com> <45A1C54A.4090707@cyberxdesigns.com> <45A1C6CF.8010603@cyberxdesigns.com> <9251B575-20B6-422E-8DC9-5FC82D910540@jonbaer.com> Message-ID: <45A32140.4080407@cyberxdesigns.com> Well, I did finally get a copy of MySQL 4.0.x installed on my computer. It looks like the tables are really corrupt. The iasmchk utility wasn't able to recover them. I am kinda bummed but live and learn. Now I have MySQL 4.0.x, 4.1.x and 5.0.x installed on my computer just for this case. When I ran ALTER TABLE phpbb_users TYPE = MYISAM in MySQL 4.0 it wiped the tables clean. They showed no records. When I ran ALTER TABLE phpbb_users TYPE = MYISAM in MySQL 4.1 or 5.0 I got the same silly error I was getting earlier from MySQL. Thank for the help guys. Hans Jon Baer wrote: > Actually after reading your original email all you need to do is a > bulk search/replace and change ... > >>> ALTER TABLE phpbb_users TYPE = MYISAM > > to > >>> ALTER TABLE phpbb_users ENGINE = MYISAM From mikesz at qualityadvantages.com Tue Jan 9 00:37:25 2007 From: mikesz at qualityadvantages.com (mikesz at qualityadvantages.com) Date: Tue, 09 Jan 2007 13:37:25 +0800 Subject: [nycphp-talk] ism tables. In-Reply-To: <45A32140.4080407@cyberxdesigns.com> References: <45A07475.7090208@cyberxdesigns.com> <9BE9F39C-B48D-48A6-9803-429DFB2EA744@jonbaer.com> <45A1C54A.4090707@cyberxdesigns.com> <45A1C6CF.8010603@cyberxdesigns.com> <9251B575-20B6-422E-8DC9-5FC82D910540@jonbaer.com> <45A32140.4080407@cyberxdesigns.com> Message-ID: <45A32A15.8040309@qualityadvantages.com> Hans C. Kaspersetz wrote: > Well, I did finally get a copy of MySQL 4.0.x installed on my > computer. It looks like the tables are really corrupt. The iasmchk > utility wasn't able to recover them. I am kinda bummed but live and > learn. Now I have MySQL 4.0.x, 4.1.x and 5.0.x installed on my > computer just for this case. > > When I ran ALTER TABLE phpbb_users TYPE = MYISAM in MySQL 4.0 it > wiped the tables clean. They showed no records. > > When I ran ALTER TABLE phpbb_users TYPE = MYISAM in MySQL 4.1 or 5.0 > I got the same silly error I was getting earlier from MySQL. > > Thank for the help guys. > Hans > > Jon Baer wrote: > >> Actually after reading your original email all you need to do is a >> bulk search/replace and change ... >> >>>> ALTER TABLE phpbb_users TYPE = MYISAM >>> >> >> to >> >>>> ALTER TABLE phpbb_users ENGINE = MYISAM >>> > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > > NYPHPCon 2006 Presentations Online > http://www.nyphpcon.com > > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > __________ NOD32 1963 (20070108) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > > > What happened when you ran "ALTER TABLE phpbb_users ENGINE = MYISAM" as suggested? I also have 40, 41 and 50 running on my system and it saves me a lot of grief when dealing with my clients who can be running any of them... regards, mikesz From hans at cyberxdesigns.com Tue Jan 9 08:52:27 2007 From: hans at cyberxdesigns.com (Hans C. Kaspersetz) Date: Tue, 09 Jan 2007 08:52:27 -0500 Subject: [nycphp-talk] ism tables. In-Reply-To: <45A32A15.8040309@qualityadvantages.com> References: <45A07475.7090208@cyberxdesigns.com> <9BE9F39C-B48D-48A6-9803-429DFB2EA744@jonbaer.com> <45A1C54A.4090707@cyberxdesigns.com> <45A1C6CF.8010603@cyberxdesigns.com> <9251B575-20B6-422E-8DC9-5FC82D910540@jonbaer.com> <45A32140.4080407@cyberxdesigns.com> <45A32A15.8040309@qualityadvantages.com> Message-ID: <45A39E1B.1040402@cyberxdesigns.com> mikesz at qualityadvantages.com wrote: > Hans C. Kaspersetz wrote: > >> Well, I did finally get a copy of MySQL 4.0.x installed on my >> computer. It looks like the tables are really corrupt. The iasmchk >> utility wasn't able to recover them. I am kinda bummed but live and >> learn. Now I have MySQL 4.0.x, 4.1.x and 5.0.x installed on my >> computer just for this case. >> >> When I ran ALTER TABLE phpbb_users TYPE = MYISAM in MySQL 4.0 it >> wiped the tables clean. They showed no records. >> >> When I ran ALTER TABLE phpbb_users TYPE = MYISAM in MySQL 4.1 or 5.0 >> I got the same silly error I was getting earlier from MySQL. >> >> Thank for the help guys. >> Hans >> >> Jon Baer wrote: >> >>> Actually after reading your original email all you need to do is a >>> bulk search/replace and change ... >>> >>>>> ALTER TABLE phpbb_users TYPE = MYISAM >>>> >>> >>> to >>> >>>>> ALTER TABLE phpbb_users ENGINE = MYISAM >>>> >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> >> NYPHPCon 2006 Presentations Online >> http://www.nyphpcon.com >> >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php >> >> >> __________ NOD32 1963 (20070108) Information __________ >> >> This message was checked by NOD32 antivirus system. >> http://www.eset.com >> >> >> > What happened when you ran "ALTER TABLE phpbb_users ENGINE = MYISAM" > as suggested? > > I also have 40, 41 and 50 running on my system and it saves me a lot > of grief when dealing with my clients who can be running any of them... > > regards, mikesz > I meant to say that when I ran ALTER TABLE phpbb_users ENGINE = MYISAM on 4.0 it wiped any data that was in the tables out of them and returned an empty myi file. Hans A little fun from a NJ web design company, http://www.cyberxdesigns.com From randalrust at gmail.com Tue Jan 9 10:13:31 2007 From: randalrust at gmail.com (Randal Rust) Date: Tue, 9 Jan 2007 10:13:31 -0500 Subject: [nycphp-talk] Restricting page and record access with LDAP Message-ID: In the LDAP system that I am working on, we have a deliverable in the statement of work that says, "Convert existing iPlanet access controls to OpenLDAP access controls." I am sort of assuming that this refers to Access Control Lists, but I am not 100% sure (I am flying solo on this because the LDAP developer left the company and they have not replaced him). Not knowing anything about ACLs, I can only refer to my experience with other PHP/MySQL applications that I have built, where we create user groups and grant permissions based on the group the user is assigned to. >From what I have been able to gather during reading, it's not going to be as simple as taking the ACL from iPlanet and moving it over to OpenLDAP (which is what I'm sure my bosses and the client probably think). I can see in the slapd.conf file that I have how the ACL is set up for the root user that we have. But here is what I am looking for: 1. How do I setup permissions for a user when I first add them to the system? When a person is added, they are assigned to an organization, which is part of their DN. A user should be able to modify the data for the organization they are assigned to, along with any child organizations/records. 2. There is a object in the directory called "ldapaccess." It has an attribute called "uniqueMember" that contains a list of all of the authorized users. When someone logs in, I can check their username/password against the record where that is stored, but I don't quite see how this ldapaccess thing comes into play. -- Randal Rust From tedd at sperling.com Tue Jan 9 10:19:56 2007 From: tedd at sperling.com (tedd) Date: Tue, 9 Jan 2007 10:19:56 -0500 Subject: [nycphp-talk] And the HTML guru is.... In-Reply-To: <5e2aaca40701041846o64f6cc5di86de39eba5343337@mail.gmail.com> References: <459D0B5A.5080006@secdat.com> <5e2aaca40701041846o64f6cc5di86de39eba5343337@mail.gmail.com> Message-ID: At 9:46 PM -0500 1/4/07, Greg Rundlett wrote: >On 1/4/07, Kenneth Downs wrote: >>Hi folks, >> >>A helpful HTML guru has given me the solution to my height-dont-work >>problem in IE 6. >> >>The guru is.... (drumroll) Tom Melendez of LIPHP fame. He pointed out >>that changing the document type declaration to "quirks" mode makes IE >>work, instantly fixing the problem. >> >>For completeness, here is a simplified snipeet that illustrates the >>fixed situation: >> >> >> >> >> >> >> >>
>> > style="width: 500px; height: 100%;"> >> >> >> >>
a
hello
b
>>
>> >> >> > > >I don't mean to be picky, but if you post a 'solution' then it ought >to be or attempt to be syntactically correct. The simple snippet >above gets lazy about quoting attributes, ending semi-colons and the >type attribute is even missing from the >>> >>> >>>
>>> >> style="width: 500px; height: 100%;"> >>> >>> >>> >>>
a
hello
b
>>>
>>> >>> >>> >> >> >> I don't mean to be picky, but if you post a 'solution' then it ought >> to be or attempt to be syntactically correct. The simple snippet >> above gets lazy about quoting attributes, ending semi-colons and the >> type attribute is even missing from the
a
hello
b
Kenneth Downs wrote: > Next time I'll put "simplified snippet" in bold 36pt, and I probably > should have included the standard disclaimer, "for illustrative > purposes" along with "strict compliance is left as an exercise to the > student". > > ...but if we're going to be picky, the best argument is working code, > how about somebody posts the DIV/CSS code that does the same thing? > I've heard from more than one person who has obviously read the blogs > that tell them to use CSS2, but nobody has yet supplied any working > code. A lot of people helped me with this little problem, and now my > customers are enjoying the benefits, but none of that help came from > the nit-pickers. > > I'll be very happy to post a "And the HTML CSS guru is..." as soon as > somebody posts the CSS2 code that does the same thing. I'll even buy > you a drink at Friday's after the next meeting. This is not a nasty > I-don't-think-you-can-do-it challenge, its just that I'm not an HTML > guru, that's why I asked for help. As soon as somebody can show the > code I'd be extremely happy, I'll use it from now on. I'll be so glad > I'll buy you a drink. Shoot, I even offered in the post to pay, and > nobody came up with anything. The scientist in me wonders if it can > actually be done. > > > tedd wrote: >> At 9:46 PM -0500 1/4/07, Greg Rundlett wrote: >>> On 1/4/07, Kenneth Downs wrote: >>>> Hi folks, >>>> >>>> A helpful HTML guru has given me the solution to my height-dont-work >>>> problem in IE 6. >>>> >>>> The guru is.... (drumroll) Tom Melendez of LIPHP fame. He pointed >>>> out >>>> that changing the document type declaration to "quirks" mode makes IE >>>> work, instantly fixing the problem. >>>> >>>> For completeness, here is a simplified snipeet that illustrates the >>>> fixed situation: >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>>
>>>> >>> style="width: 500px; height: 100%;"> >>>> >>>> >>>> >>>>
a
hello
b
>>>>
>>>> >>>> >>>> >>> >>> >>> I don't mean to be picky, but if you post a 'solution' then it ought >>> to be or attempt to be syntactically correct. The simple snippet >>> above gets lazy about quoting attributes, ending semi-colons and the >>> type attribute is even missing from the > > > >
>
a
>
hello
>
b
>
> > > > > Kenneth Downs wrote: >> Next time I'll put "simplified snippet" in bold 36pt, and I probably >> should have included the standard disclaimer, "for illustrative >> purposes" along with "strict compliance is left as an exercise to the >> student". >> >> ...but if we're going to be picky, the best argument is working code, >> how about somebody posts the DIV/CSS code that does the same thing? >> I've heard from more than one person who has obviously read the blogs >> that tell them to use CSS2, but nobody has yet supplied any working >> code. A lot of people helped me with this little problem, and now >> my customers are enjoying the benefits, but none of that help came >> from the nit-pickers. >> >> I'll be very happy to post a "And the HTML CSS guru is..." as soon as >> somebody posts the CSS2 code that does the same thing. I'll even buy >> you a drink at Friday's after the next meeting. This is not a nasty >> I-don't-think-you-can-do-it challenge, its just that I'm not an HTML >> guru, that's why I asked for help. As soon as somebody can show the >> code I'd be extremely happy, I'll use it from now on. I'll be so >> glad I'll buy you a drink. Shoot, I even offered in the post to pay, >> and nobody came up with anything. The scientist in me wonders if it >> can actually be done. >> >> >> tedd wrote: >>> At 9:46 PM -0500 1/4/07, Greg Rundlett wrote: >>>> On 1/4/07, Kenneth Downs wrote: >>>>> Hi folks, >>>>> >>>>> A helpful HTML guru has given me the solution to my height-dont-work >>>>> problem in IE 6. >>>>> >>>>> The guru is.... (drumroll) Tom Melendez of LIPHP fame. He >>>>> pointed out >>>>> that changing the document type declaration to "quirks" mode makes IE >>>>> work, instantly fixing the problem. >>>>> >>>>> For completeness, here is a simplified snipeet that illustrates the >>>>> fixed situation: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>
>>>>> >>>> style="width: 500px; height: 100%;"> >>>>> >>>>> >>>>> >>>>>
a
hello
b
>>>>>
>>>>> >>>>> >>>>> >>>> >>>> >>>> I don't mean to be picky, but if you post a 'solution' then it ought >>>> to be or attempt to be syntactically correct. The simple snippet >>>> above gets lazy about quoting attributes, ending semi-colons and the >>>> type attribute is even missing from the >> >> >> >>
>>
a
>>
hello
>>
b
>>
>> >> >> >> >> Kenneth Downs wrote: >>> Next time I'll put "simplified snippet" in bold 36pt, and I probably >>> should have included the standard disclaimer, "for illustrative >>> purposes" along with "strict compliance is left as an exercise to >>> the student". >>> >>> ...but if we're going to be picky, the best argument is working >>> code, how about somebody posts the DIV/CSS code that does the same >>> thing? I've heard from more than one person who has obviously read >>> the blogs that tell them to use CSS2, but nobody has yet supplied >>> any working code. A lot of people helped me with this little >>> problem, and now my customers are enjoying the benefits, but none of >>> that help came from the nit-pickers. >>> >>> I'll be very happy to post a "And the HTML CSS guru is..." as soon >>> as somebody posts the CSS2 code that does the same thing. I'll even >>> buy you a drink at Friday's after the next meeting. This is not a >>> nasty I-don't-think-you-can-do-it challenge, its just that I'm not >>> an HTML guru, that's why I asked for help. As soon as somebody can >>> show the code I'd be extremely happy, I'll use it from now on. I'll >>> be so glad I'll buy you a drink. Shoot, I even offered in the post >>> to pay, and nobody came up with anything. The scientist in me >>> wonders if it can actually be done. >>> >>> >>> tedd wrote: >>>> At 9:46 PM -0500 1/4/07, Greg Rundlett wrote: >>>>> On 1/4/07, Kenneth Downs wrote: >>>>>> Hi folks, >>>>>> >>>>>> A helpful HTML guru has given me the solution to my height-dont-work >>>>>> problem in IE 6. >>>>>> >>>>>> The guru is.... (drumroll) Tom Melendez of LIPHP fame. He >>>>>> pointed out >>>>>> that changing the document type declaration to "quirks" mode >>>>>> makes IE >>>>>> work, instantly fixing the problem. >>>>>> >>>>>> For completeness, here is a simplified snipeet that illustrates the >>>>>> fixed situation: >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>
>>>>>> >>>>> style="width: 500px; height: 100%;"> >>>>>> >>>>>> >>>>>> >>>>>>
a
hello
b
>>>>>>
>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> I don't mean to be picky, but if you post a 'solution' then it ought >>>>> to be or attempt to be syntactically correct. The simple snippet >>>>> above gets lazy about quoting attributes, ending semi-colons and the >>>>> type attribute is even missing from the