From r.mariotti at fdcx.net Fri Dec 1 09:29:23 2006 From: r.mariotti at fdcx.net (R. Mariotti) Date: Fri, 01 Dec 2006 09:29:23 -0500 Subject: [nycphp-talk] Additional eyes for troublesome (but simple) mysql functions? Message-ID: <45703C43.5000700@fdcx.net> Gentlemen; I've been playing with this for a full day now trying various formats without luck. I'm convinced that I must be missing something. So, before the weekend come around and I literally forget everything I know about this, I thought I would post my error sections for some peer assistance. Can someone please take a look and see if there is anything obvious and advise (I'm beyond embarrassment). The lines beginning with >>>> are debugging lines to show what is contained in certain fields. /************************************************************************************/ /* Determine if Specified 'system_id' is new or existing and set action accordingly */ >>>> qb_default->db_host=[raid] >>>> qb_default->db_user=[qb_user] >>>> qb_default->db_password=[********] >>>> qb_default->dbname=[quote_build_test] $dbh = mysql_connect($qb_default->db_host,$qb_default->db_user,$qb_default->db_password); >>>> dbh=[Resource id #5] $rtn = mysql_select_db($qb_default->dbname,$dbh); >>>> rtn=[1] $sql="select id from $qb_default->system_list where id = '$system_id' limit 1"; >>>> sql=[select id from systems where id = '181' limit 1] $req=mysql_query($sql,$rtn); >>>> Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource As you can see by the Warning message... mysql is stating that the $rtn field I am sending is NOT a valid resource. However, it is the result of the previous mysql_select_db and seems OK. What am I missing??? Thanks all! bobmct From codebowl at gmail.com Fri Dec 1 09:34:28 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 1 Dec 2006 09:34:28 -0500 Subject: [nycphp-talk] Additional eyes for troublesome (but simple) mysql functions? In-Reply-To: <45703C43.5000700@fdcx.net> References: <45703C43.5000700@fdcx.net> Message-ID: <8d9a42800612010634q4e023aa4g6ac8c36a5d7b1e2a@mail.gmail.com> I believe you would want to use $dbh and not $rtn\ -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Fri Dec 1 09:35:24 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 1 Dec 2006 09:35:24 -0500 Subject: [nycphp-talk] Additional eyes for troublesome (but simple) mysql functions? In-Reply-To: <45703C43.5000700@fdcx.net> References: <45703C43.5000700@fdcx.net> Message-ID: <8d9a42800612010635s5a0535c4g2fb128b89e737df1@mail.gmail.com> Oops i meant to include this $req = mysql_query( $sql, $dbh ); -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dell at sala.ca Fri Dec 1 09:37:14 2006 From: dell at sala.ca (Dell Sala) Date: Fri, 1 Dec 2006 09:37:14 -0500 Subject: [nycphp-talk] Additional eyes for troublesome (but simple) mysql functions? In-Reply-To: <45703C43.5000700@fdcx.net> References: <45703C43.5000700@fdcx.net> Message-ID: <804E5838-D5D3-4BC5-8CBC-58CD9209CEF0@sala.ca> You should be passing the connection resource ($dbh) to mysql_query (), not the result of mysql_select_db(). mysql_select_db() just returns a boolean. -- Dell On Dec 1, 2006, at 9:29 AM, R. Mariotti wrote: > Gentlemen; > > I've been playing with this for a full day now trying various > formats without luck. I'm convinced that I must be missing something. > > So, before the weekend come around and I literally forget > everything I know about this, I thought I would post my error > sections for some peer assistance. > > Can someone please take a look and see if there is anything obvious > and advise (I'm beyond embarrassment). The lines beginning with > >>>> are debugging lines to show what is contained in certain fields. > > / > ********************************************************************** > **************/ > /* Determine if Specified 'system_id' is new or existing and set > action accordingly */ > > >>>> qb_default->db_host=[raid] > > >>>> qb_default->db_user=[qb_user] > > >>>> qb_default->db_password=[********] > > >>>> qb_default->dbname=[quote_build_test] > > $dbh = mysql_connect($qb_default->db_host,$qb_default->db_user, > $qb_default->db_password); > > >>>> dbh=[Resource id #5] > > $rtn = mysql_select_db($qb_default->dbname,$dbh); > > >>>> rtn=[1] > > $sql="select id from $qb_default->system_list where id = > '$system_id' limit 1"; > > >>>> sql=[select id from systems where id = '181' limit 1] > > $req=mysql_query($sql,$rtn); > > >>>> Warning: mysql_query(): supplied argument is not a valid > MySQL-Link resource > > > As you can see by the Warning message... mysql is stating that the > $rtn field I am sending is NOT a valid resource. However, it is > the result of the previous mysql_select_db and seems OK. > > What am I missing??? > > Thanks all! > > 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 randalrust at gmail.com Fri Dec 1 12:02:25 2006 From: randalrust at gmail.com (Randal Rust) Date: Fri, 1 Dec 2006 12:02:25 -0500 Subject: [nycphp-talk] LDAP for web authorization? In-Reply-To: <456E9EBA.6010600@neuropunks.org> References: <4549FD47.2050208@fdcx.net> <20061102143920.GA18301@bnl.gov> <454A0642.2060406@simons-rock.edu> <456E9EBA.6010600@neuropunks.org> Message-ID: On 11/30/06, Max Gribov wrote: > Just as a side note, adodb extension supports ldap and sql backends > using pretty much same syntax, so at least you can have code > consistency, simply changing the statement executed from some .conf file > ('select * from bla' vs ugly ldap queries), and then send it to the > good old $conn_id->Execute(). Max, do you have any links for this? I have looked and looked and have only been able to find the basic documentation that shows me how to connect. And even with that I have had some issues. -- Randal Rust R.Squared Communications www.r2communications.com From r.mariotti at fdcx.net Fri Dec 1 13:01:10 2006 From: r.mariotti at fdcx.net (R. Mariotti) Date: Fri, 01 Dec 2006 13:01:10 -0500 Subject: [nycphp-talk] Re: talk Digest, Vol 2, Issue 1 In-Reply-To: <200612011700.kB1H0Bbo015817@post.ntplx.net> References: <200612011700.kB1H0Bbo015817@post.ntplx.net> Message-ID: <45706DE6.9020406@fdcx.net> talk-request at lists.nyphp.org wrote: > I believe you would want to use $dbh and not $rtn\ THANK YOU ALL! As I mentioned -- "tired eyes". I was looking at that all day long! bobmct From randalrust at gmail.com Fri Dec 1 16:01:45 2006 From: randalrust at gmail.com (Randal Rust) Date: Fri, 1 Dec 2006 16:01:45 -0500 Subject: [nycphp-talk] Using ADOdb library to update and insert into LDAP Message-ID: Using ADOdb to work with my LDAP directory. I figured out how to query. How do I do an insert or an update? Sorry for the noise. I simply cannot find any documentation on working with LDAP and ADOdb. -- Randal Rust R.Squared Communications www.r2communications.com From agfische at email.smith.edu Sat Dec 2 12:05:19 2006 From: agfische at email.smith.edu (Aaron Fischer) Date: Sat, 02 Dec 2006 12:05:19 -0500 Subject: [nycphp-talk] Issue with session_destroy() Message-ID: <4571B24F.4010103@email.smith.edu> Howdy, I have a logout page where I destroy the session. However, if I click one of the application links it lets me back in. I believe the browser is loading the application page from history. If I refresh the page it kicks me out to the login page, which is the desired behavior but I would like that to happen right away. How do I ensure that my application pages are loading a fresh copy? If I can make that happen then presumably it will prevent this issue. The strange thing is that this doesn't seem to happen for another application I built but I haven't been able to find a difference in the code I wrote. (Am testing both in the same browser.) Thanks, -Aaron From ramons at gmx.net Sat Dec 2 12:19:45 2006 From: ramons at gmx.net (David Krings) Date: Sat, 02 Dec 2006 12:19:45 -0500 Subject: [nycphp-talk] Issue with session_destroy() In-Reply-To: <4571B24F.4010103@email.smith.edu> References: <4571B24F.4010103@email.smith.edu> Message-ID: <4571B5B1.5040200@gmx.net> Hi, you need to set the page to not getting cached by a browser. I once looked this up and found several sources that claim that these two lines at the beginning of a page will turn caching off: header("Cache-control: private"); header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"'); From what I can tell, this works. But to be honest, I have no idea what this really does or if it does anything, especially the second line. Writing this kinda makes me want to know more about it, so I did a quick google and found http://www.w3.org/P3P/ that has some more info. The first line is most likely needed to pass on the cache preferences through the header rather than take the browser default. Hope this helps, David Aaron Fischer wrote: > Howdy, > > I have a logout page where I destroy the session. However, if I click > one of the application links it lets me back in. I believe the > browser is loading the application page from history. If I refresh > the page it kicks me out to the login page, which is the desired > behavior but I would like that to happen right away. > > How do I ensure that my application pages are loading a fresh copy? > If I can make that happen then presumably it will prevent this issue. > > The strange thing is that this doesn't seem to happen for another > application I built but I haven't been able to find a difference in > the code I wrote. (Am testing both in the same browser.) > > Thanks, > > -Aaron > _______________________________________________ > 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 cliff at pinestream.com Sat Dec 2 12:59:30 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Sat, 2 Dec 2006 12:59:30 -0500 Subject: [nycphp-talk] Issue with session_destroy() In-Reply-To: <4571B5B1.5040200@gmx.net> References: <4571B24F.4010103@email.smith.edu> <4571B5B1.5040200@gmx.net> Message-ID: <20061202175930.M73774@pinestream.com> You can also look at some of the better AJAX tutorials. An AJAX request has the same problem, and I have seen various ways to deal with it. The most basic attaches a random # to every request, which is not the best way to go -- fills up the local cache. Better methods do set the header as indicated below. A quick google search found this: header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); Cliff On Sat, 02 Dec 2006 12:19:45 -0500, David Krings wrote > Hi, > > you need to set the page to not getting cached by a browser. I > once looked this up and found several sources that claim that these > two lines at the beginning of a page will turn caching off: > header("Cache-control: private"); header('P3P: CP="NOI ADM DEV PSAi > COM NAV OUR OTRo STP IND DEM"'); > > From what I can tell, this works. But to be honest, I have no idea > what this really does or if it does anything, especially the second > line. Writing this kinda makes me want to know more about it, so I > did a quick google and found http://www.w3.org/P3P/ that has some > more info. The first line is most likely needed to pass on the cache > preferences through the header rather than take the browser default. > > Hope this helps, > > David > > Aaron Fischer wrote: > > Howdy, > > > > I have a logout page where I destroy the session. However, if I click > > one of the application links it lets me back in. I believe the > > browser is loading the application page from history. If I refresh > > the page it kicks me out to the login page, which is the desired > > behavior but I would like that to happen right away. > > > > How do I ensure that my application pages are loading a fresh copy? > > If I can make that happen then presumably it will prevent this issue. > > > > The strange thing is that this doesn't seem to happen for another > > application I built but I haven't been able to find a difference in > > the code I wrote. (Am testing both in the same browser.) > > > > Thanks, > > > > -Aaron From tedd at sperling.com Sat Dec 2 13:35:10 2006 From: tedd at sperling.com (tedd) Date: Sat, 2 Dec 2006 13:35:10 -0500 Subject: [nycphp-talk] Issue with session_destroy() In-Reply-To: <20061202175930.M73774@pinestream.com> References: <4571B24F.4010103@email.smith.edu> <4571B5B1.5040200@gmx.net> <20061202175930.M73774@pinestream.com> Message-ID: > > > > How do I ensure that my application pages are loading a fresh copy? >> > If I can make that happen then presumably it will prevent this issue. >> > >> > The strange thing is that this doesn't seem to happen for another >> > application I built but I haven't been able to find a difference in >> > the code I wrote. (Am testing both in the same browser.) >> > >> > Thanks, >> > > > > -Aaron Aaron: I use this: Anyone see any problems with it? tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From phil at bearingasset.com Mon Dec 4 11:06:27 2006 From: phil at bearingasset.com (Phil Duffy) Date: Mon, 4 Dec 2006 11:06:27 -0500 Subject: [nycphp-talk] BC Date Recording Message-ID: I understand that MySQL does not have the ability to store B.C. dates, but that PostgreSQL does. However, I have not been able to determine how PHP facilitates the recording, editing and display of B.C. dates for the PostgreSQL query. Is there a function (or multiple functions) in PHP that addresses this? Phil Duffy -------------- next part -------------- An HTML attachment was scrubbed... URL: From phil at bearingasset.com Mon Dec 4 11:08:20 2006 From: phil at bearingasset.com (Phil Duffy) Date: Mon, 4 Dec 2006 11:08:20 -0500 Subject: [nycphp-talk] BC Date Recording In-Reply-To: <45706DE6.9020406@fdcx.net> Message-ID: I understand that MySQL does not have the ability to store B.C. dates, but that PostgreSQL does. However, I have not been able to determine how PHP facilitates the recording, editing and display of B.C. dates for the PostgreSQL query. Is there a function (or multiple functions) in PHP that addresses this? Phil Duffy From ldhasson at us.ibm.com Mon Dec 4 23:16:36 2006 From: ldhasson at us.ibm.com (Laurent Hasson) Date: Mon, 4 Dec 2006 23:16:36 -0500 Subject: [nycphp-talk] Laurent Hasson is out of the office. Message-ID: I will be out of the office starting 12/04/2006 and will not return until 01/06/2007. I will be away on vacation for the rest of the year. I can be reached on my cell phone **for emergencies only**. For Search related issues, please contact Aya Soffer. For JWL/JSF/Ajax related issues, please contact Brendan Murray. For general Portal Content issues, please contact John Schumacher or Greg Melahn. -------------- next part -------------- An HTML attachment was scrubbed... URL: From randalrust at gmail.com Tue Dec 5 12:53:31 2006 From: randalrust at gmail.com (Randal Rust) Date: Tue, 5 Dec 2006 12:53:31 -0500 Subject: [nycphp-talk] Working with multiple records of the same type in LDAP Message-ID: Finally I have been able to add records to my LDAP directory (adding organizations). The next step is to add addresses. I need to be able add multiple addresses of various types (postal, business, mailing). If an organization has mutliple addresses, how can I accurately display and update those addresses? What throws me is that the 'st' attribute is used for all addresses, and usually it only has one value. Let's say I have three addresses... 1 W. Test St. Columbus, OH 43015 100 High St. Columbus, OH 43015 7145 Wilson Bridge Rd. Columbus, OH 43017 ...first, I need to display these three addresses in a table, then the user needs to be able to select one of the addresses for updating. If they update the third address, and change the State to 'NV,' then how do I keep it from updating the 'st' attribute, which is used for the other two addresses, to NV? -- Randal Rust R.Squared Communications www.r2communications.com From agfische at email.smith.edu Tue Dec 5 13:47:18 2006 From: agfische at email.smith.edu (Aaron Fischer) Date: Tue, 05 Dec 2006 13:47:18 -0500 Subject: [nycphp-talk] Alternating records to select in MySQL Message-ID: <4575BEB6.30209@email.smith.edu> Howdy, Running into a wall trying to figure out the best way to accomplish the following: I have a web form that allows the user to ask a question about a certain topic. On the backend I have, say, five people available to answer questions for each topic. They are stored in a MySQL table. What I want to do is select one of the five people and send the question to them. That part is easy. The next part is where I am running into a stumbling block. The next time someone submits a question on this topic I want to select from the remaining four people/records who have not been contacted. Then the next time select from the three people not contacted, then two, then one. After all five have been contacted I want to reset their records so that I am choosing from all five again. Thoughts on how to accomplish this? Thanks, -Aaron From ashaw at polymerdb.org Tue Dec 5 13:54:03 2006 From: ashaw at polymerdb.org (Allen Shaw) Date: Tue, 05 Dec 2006 12:54:03 -0600 Subject: [nycphp-talk] Alternating records to select in MySQL In-Reply-To: <4575BEB6.30209@email.smith.edu> References: <4575BEB6.30209@email.smith.edu> Message-ID: <4575C04B.4000501@polymerdb.org> Aaron Fischer wrote: > Howdy, > ... > The next time someone submits a question on this topic I want to select > from the remaining four people/records who have not been contacted. > ... > After all five have been contacted I want to reset their records so that > I am choosing from all five again. > ... > Hi Aaron, You need a column called something like `selected` in that table. Set it to 1 if the person's been selected. Once they're all selected, start over by setting them all to 0. You'll have to write the logic in PHP for those steps, but that's the gist of it. Does that work for you? - Allen -- Allen Shaw Polymer (http://polymerdb.org) slidePresenter (http://slides.sourceforge.net) From tedd at sperling.com Tue Dec 5 14:26:53 2006 From: tedd at sperling.com (tedd) Date: Tue, 5 Dec 2006 14:26:53 -0500 Subject: [nycphp-talk] Working with multiple records of the same type in LDAP In-Reply-To: References: Message-ID: At 12:53 PM -0500 12/5/06, Randal Rust wrote: >Finally I have been able to add records to my LDAP directory (adding >organizations). The next step is to add addresses. I need to be able >add multiple addresses of various types (postal, business, mailing). > >If an organization has mutliple addresses, how can I accurately >display and update those addresses? What throws me is that the 'st' >attribute is used for all addresses, and usually it only has one >value. > >Let's say I have three addresses... > >1 W. Test St. Columbus, OH 43015 >100 High St. Columbus, OH 43015 >7145 Wilson Bridge Rd. Columbus, OH 43017 > > >...first, I need to display these three addresses in a table, then the >user needs to be able to select one of the addresses for updating. If >they update the third address, and change the State to 'NV,' then how >do I keep it from updating the 'st' attribute, which is used for the >other two addresses, to NV? > >-- >Randal Rust Your states should be relational. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From agfische at email.smith.edu Tue Dec 5 14:28:33 2006 From: agfische at email.smith.edu (Aaron Fischer) Date: Tue, 05 Dec 2006 14:28:33 -0500 Subject: [nycphp-talk] Alternating records to select in MySQL In-Reply-To: <4575C04B.4000501@polymerdb.org> References: <4575BEB6.30209@email.smith.edu> <4575C04B.4000501@polymerdb.org> Message-ID: <4575C861.3050100@email.smith.edu> Thanks Allen. That sounds very much like what I was thinking. I was getting hung up on some of the logic but I think it's more because I have been given a way-too-short deadline to get this done. =| Deep breaths... Cheers, thanks! -Aaron Allen Shaw wrote: > Aaron Fischer wrote: > >> Howdy, >> ... >> The next time someone submits a question on this topic I want to >> select from the remaining four people/records who have not been >> contacted. >> ... >> After all five have been contacted I want to reset their records so >> that I am choosing from all five again. >> ... >> > > Hi Aaron, > > You need a column called something like `selected` in that table. Set > it to 1 if the person's been selected. Once they're all selected, start > over by setting them all to 0. You'll have to write the logic in PHP > for those steps, but that's the gist of it. > > Does that work for you? > > - Allen > > > From randalrust at gmail.com Tue Dec 5 14:38:21 2006 From: randalrust at gmail.com (Randal Rust) Date: Tue, 5 Dec 2006 14:38:21 -0500 Subject: [nycphp-talk] Working with multiple records of the same type in LDAP In-Reply-To: References: Message-ID: On 12/5/06, tedd wrote: > Your states should be relational. Do you mean like this... street[0]=1 W. Test St. city[0]=Columbus st[0]=OH postalCode[0]=43015 addressType[0]=Business street[1]=100 High St. city[1]=Columbus st[1]=OH postalCode[1]=43015 addressType[1]=Business street[3]=7145 Wilson Bridge Rd. city[2]=Columbus sta[2]=OH postalCode[2]=43017 adressType[2]=postal -- Randal Rust R.Squared Communications www.r2communications.com From tedd at sperling.com Tue Dec 5 14:57:12 2006 From: tedd at sperling.com (tedd) Date: Tue, 5 Dec 2006 14:57:12 -0500 Subject: [nycphp-talk] Working with multiple records of the same type in LDAP In-Reply-To: References: Message-ID: At 2:38 PM -0500 12/5/06, Randal Rust wrote: >On 12/5/06, tedd wrote: > >>Your states should be relational. > >Do you mean like this... > >street[0]=1 W. Test St. >city[0]=Columbus >st[0]=OH >postalCode[0]=43015 >addressType[0]=Business > >street[1]=100 High St. >city[1]=Columbus >st[1]=OH >postalCode[1]=43015 >addressType[1]=Business > >street[3]=7145 Wilson Bridge Rd. >city[2]=Columbus >sta[2]=OH >postalCode[2]=43017 >adressType[2]=postal > >-- >Randal Rust Randal: Close, but more like this: st[0] = Alabama st[1] = Alaska st[2] = Arizona st[3] = Arkansas st[4] = California st[..] = ... where: street[2]=7145 Wilson Bridge Rd. city[2]=Columbus sta[2]=15 (or whatever number Ohio is) postalCode[2]=43017 adressType[2]=postal You have a table in your dB that holds all the states, the user simply picks which state from an option list and the entry in your dB for that user now points to that state's table as an index instead of the previous state's index. It's a "one to many" relational dB. You see, putting the state's name over and over again in the dB is redundant -- it's better to have a table of states than it is to repeat data. The same holds true for zip codes and addressType as shown above. hth's tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From jface at mercenarylabs.com Tue Dec 5 20:39:43 2006 From: jface at mercenarylabs.com (jface at mercenarylabs.com) Date: Tue, 5 Dec 2006 20:39:43 -0500 Subject: [nycphp-talk] freeing sql results In-Reply-To: <45392B3F.8060908@email.smith.edu> References: <45392B3F.8060908@email.smith.edu> Message-ID: I have a very complex app I've been working on currently at about three thousand lines of code. All of a sudden it started spitting out the following warning: Warning: Unknown: 2 result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query() in Unknown on line 0 So I went through it line-by-line and added a mysql_free_result() after EVERY query, to no avail. The worst thing about this error is that it doesn't give me a valid line number, so it's impossible to tell exactly where the bad queries are. This is occurring on a php5/mysql5/apache setup. Anyone have any suggestions? I'm out of ideas. Jonathan From jonbaer at jonbaer.com Tue Dec 5 22:45:34 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Tue, 5 Dec 2006 22:45:34 -0500 Subject: [nycphp-talk] freeing sql results In-Reply-To: References: <45392B3F.8060908@email.smith.edu> Message-ID: Add a debug_print_backtrace() before the free result or query. I find it to be very handy in PHP5, although I wish there was a way to dump the results to a UDP port for catching it as well. - Jon On Dec 5, 2006, at 8:39 PM, wrote: > I have a very complex app I've been working on currently at about > three thousand lines of code. All of a sudden it started spitting > out the following warning: > > Warning: Unknown: 2 result set(s) not freed. Use mysql_free_result > to free result sets which were requested using mysql_query() in > Unknown on line 0 > > So I went through it line-by-line and added a mysql_free_result() > after EVERY query, to no avail. > > The worst thing about this error is that it doesn't give me a valid > line number, so it's impossible to tell exactly where the bad > queries are. > > This is occurring on a php5/mysql5/apache setup. > > Anyone have any suggestions? I'm out of ideas. > > Jonathan > > _______________________________________________ > 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 susan_shemin at yahoo.com Wed Dec 6 18:54:50 2006 From: susan_shemin at yahoo.com (Susan Shemin) Date: Wed, 6 Dec 2006 15:54:50 -0800 (PST) Subject: [nycphp-talk] xAjax anyone? Message-ID: <20061206235450.18859.qmail@web50206.mail.yahoo.com> Today's DevX Weekly Update discusses Ajax and in the PHP section of the article mentions xAjax. I'm going to try it out -- has anyone else used it? ____________________________________________________________________________________ Yahoo! Music Unlimited Access over 1 million songs. http://music.yahoo.com/unlimited -------------- next part -------------- An HTML attachment was scrubbed... URL: From anthony at adcl.biz Thu Dec 7 02:38:05 2006 From: anthony at adcl.biz (Anthony Papillion) Date: Thu, 7 Dec 2006 01:38:05 -0600 Subject: [nycphp-talk] xAjax anyone? References: <20061206235450.18859.qmail@web50206.mail.yahoo.com> Message-ID: <001201c719d2$a2f1ca50$6901a8c0@NITRO> Hi Susan, I've just started looking into using xAJAX and absolutely love it. Granted, I've not done anything useful with it yet but it seems to hav a LOT of promise. Looks like it might have really nailed the "easy to use" thing on the head. Anthony Papillion Advanced Data Concepts Ph (918) 926-0139 ----- Original Message ----- From: Susan Shemin To: NYPHP Sent: Wednesday, December 06, 2006 5:54 PM Subject: [nycphp-talk] xAjax anyone? Today's DevX Weekly Update discusses Ajax and in the PHP section of the article mentions xAjax. I'm going to try it out -- has anyone else used it? ------------------------------------------------------------------------------ Need a quick answer? Get one in minutes from people who know. Ask your question on Yahoo! Answers. ------------------------------------------------------------------------------ _______________________________________________ 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 ken at secdat.com Thu Dec 7 06:49:40 2006 From: ken at secdat.com (Kenneth Downs) Date: Thu, 07 Dec 2006 06:49:40 -0500 Subject: [nycphp-talk] xAjax anyone? In-Reply-To: <001201c719d2$a2f1ca50$6901a8c0@NITRO> References: <20061206235450.18859.qmail@web50206.mail.yahoo.com> <001201c719d2$a2f1ca50$6901a8c0@NITRO> Message-ID: <4577FFD4.6030909@secdat.com> Anthony Papillion wrote: > Hi Susan, > > I've just started looking into using xAJAX and absolutely love it. > Granted, I've not done anything useful with it yet but it seems to hav > a LOT of promise. Looks like it might have really nailed the "easy to > use" thing on the head. Yeah, its one of things you can't go back once you get started. I find it contributes very much to rigorous definitions of UI elements, as otherwise you get bogged down pretty quickly. > > Anthony Papillion > Advanced Data Concepts > Ph (918) 926-0139 > > ----- Original Message ----- > *From:* Susan Shemin > *To:* NYPHP > *Sent:* Wednesday, December 06, 2006 5:54 PM > *Subject:* [nycphp-talk] xAjax anyone? > > Today's DevX Weekly Update discusses Ajax and in the PHP section > of the article mentions xAjax. I'm going to try it out -- has > anyone else used it? > > ------------------------------------------------------------------------ > Need a quick answer? Get one in minutes from people who know. Ask > your question on Yahoo! Answers > . > > > ------------------------------------------------------------------------ > _______________________________________________ > 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: -------------- next part -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From agfische at email.smith.edu Thu Dec 7 10:10:25 2006 From: agfische at email.smith.edu (Aaron Fischer) Date: Thu, 07 Dec 2006 10:10:25 -0500 Subject: [nycphp-talk] OT - MySQL select question Message-ID: <45782EE1.2060805@email.smith.edu> Greetings, I'm not sure how to do the following, any tips? I have a column in a MySQL table that contains varchars. I would like to select all records where there are instances of more than one record for any given varchar. So in plain language, the SQL statement would look something like: select * from table where the occurence of each unique varchar in column A is greater than one. Thoughts? Thanks! -Aaron From dirn at dirnonline.com Thu Dec 7 10:19:56 2006 From: dirn at dirnonline.com (Andy Dirnberger) Date: Thu, 7 Dec 2006 10:19:56 -0500 Subject: [nycphp-talk] OT - MySQL select question In-Reply-To: <45782EE1.2060805@email.smith.edu> Message-ID: <002e01c71a13$2793d8d0$b265a8c0@andyabs> SELECT * FROM table_name WHERE field_name IN (SELECT field_name FROM table_name GROUP BY field_name HAVING COUNT(*) > 1) -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Aaron Fischer Sent: Thursday, December 07, 2006 10:10 AM To: NYPHP Talk Subject: [nycphp-talk] OT - MySQL select question Greetings, I'm not sure how to do the following, any tips? I have a column in a MySQL table that contains varchars. I would like to select all records where there are instances of more than one record for any given varchar. So in plain language, the SQL statement would look something like: select * from table where the occurence of each unique varchar in column A is greater than one. Thoughts? Thanks! -Aaron _______________________________________________ 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 Thu Dec 7 10:34:16 2006 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Thu, 07 Dec 2006 10:34:16 -0500 Subject: [nycphp-talk] OT - MySQL select question In-Reply-To: <002e01c71a13$2793d8d0$b265a8c0@andyabs> References: <002e01c71a13$2793d8d0$b265a8c0@andyabs> Message-ID: <45783478.1060004@beaffinitive.com> I'm pretty sure the subquery is redundant... I think this will work... SELECT * FROM table_name GROUP BY field_name HAVING COUNT(*) > 1 Andy Dirnberger wrote: > SELECT * FROM table_name WHERE field_name IN (SELECT field_name FROM > table_name GROUP BY field_name HAVING COUNT(*) > 1) > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On > Behalf Of Aaron Fischer > Sent: Thursday, December 07, 2006 10:10 AM > To: NYPHP Talk > Subject: [nycphp-talk] OT - MySQL select question > > Greetings, > > I'm not sure how to do the following, any tips? > > I have a column in a MySQL table that contains varchars. I would like > to select all records where there are instances of more than one record > for any given varchar. > > So in plain language, the SQL statement would look something like: > > select * from table where the occurence of each unique varchar in column > A is greater than one. > > Thoughts? Thanks! > > -Aaron > _______________________________________________ > 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 dirn at dirnonline.com Thu Dec 7 10:41:00 2006 From: dirn at dirnonline.com (Andy Dirnberger) Date: Thu, 7 Dec 2006 10:41:00 -0500 Subject: [nycphp-talk] OT - MySQL select question In-Reply-To: <45783478.1060004@beaffinitive.com> Message-ID: <003a01c71a16$1946edf0$b265a8c0@andyabs> You know, I thought that too. I had an Oracle window open at the time and not a MySQL one. Oracle won't let you do it, but I just checked and MySQL will. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Rob Marscher Sent: Thursday, December 07, 2006 10:34 AM To: NYPHP Talk Subject: Re: [nycphp-talk] OT - MySQL select question I'm pretty sure the subquery is redundant... I think this will work... SELECT * FROM table_name GROUP BY field_name HAVING COUNT(*) > 1 Andy Dirnberger wrote: > SELECT * FROM table_name WHERE field_name IN (SELECT field_name FROM > table_name GROUP BY field_name HAVING COUNT(*) > 1) > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On > Behalf Of Aaron Fischer > Sent: Thursday, December 07, 2006 10:10 AM > To: NYPHP Talk > Subject: [nycphp-talk] OT - MySQL select question > > Greetings, > > I'm not sure how to do the following, any tips? > > I have a column in a MySQL table that contains varchars. I would like > to select all records where there are instances of more than one record > for any given varchar. > > So in plain language, the SQL statement would look something like: > > select * from table where the occurence of each unique varchar in column > A is greater than one. > > Thoughts? Thanks! > > -Aaron > _______________________________________________ > 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 tboyden at supercoups.com Thu Dec 7 10:44:26 2006 From: tboyden at supercoups.com (Timothy Boyden) Date: Thu, 7 Dec 2006 10:44:26 -0500 Subject: [nycphp-talk] OT - MySQL select question In-Reply-To: <45782EE1.2060805@email.smith.edu> Message-ID: I don't have a code solution for you, but Google the CHECK and UNIQUE predicates for the SQL language, I believe your answer lies within... Also a good SQL reference book that has been a trusty partner for me is the SQL Instant Reference by Sybex. --------------------------- Timothy Boyden Network Administrator tboyden at supercoups.com SuperCoups(r) | 350 Revolutionary Drive | E. Taunton, MA 02718 508-977-2034 | www.supercoups.com --------------------------- -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Aaron Fischer Sent: Thursday, December 07, 2006 10:10 AM To: NYPHP Talk Subject: [nycphp-talk] OT - MySQL select question Greetings, I'm not sure how to do the following, any tips? I have a column in a MySQL table that contains varchars. I would like to select all records where there are instances of more than one record for any given varchar. So in plain language, the SQL statement would look something like: select * from table where the occurence of each unique varchar in column A is greater than one. Thoughts? Thanks! -Aaron _______________________________________________ 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 Dec 7 10:51:19 2006 From: edwardpotter at gmail.com (edward potter) Date: Thu, 7 Dec 2006 10:51:19 -0500 Subject: [nycphp-talk] OT - MySQL select question In-Reply-To: References: <45782EE1.2060805@email.smith.edu> Message-ID: yipes! Kung Fu programming! "I believe your answer lies within..." :-) ed On 12/7/06, Timothy Boyden wrote: > I don't have a code solution for you, but Google the CHECK and UNIQUE > predicates for the SQL language, I believe your answer lies within... > > Also a good SQL reference book that has been a trusty partner for me is > the SQL Instant Reference by Sybex. > > > --------------------------- > Timothy Boyden > Network Administrator > tboyden at supercoups.com > > SuperCoups(r) | 350 Revolutionary Drive | E. Taunton, MA 02718 > 508-977-2034 | www.supercoups.com > --------------------------- > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of Aaron Fischer > Sent: Thursday, December 07, 2006 10:10 AM > To: NYPHP Talk > Subject: [nycphp-talk] OT - MySQL select question > > Greetings, > > I'm not sure how to do the following, any tips? > > I have a column in a MySQL table that contains varchars. I would like > to select all records where there are instances of more than one record > for any given varchar. > > So in plain language, the SQL statement would look something like: > > select * from table where the occurence of each unique varchar in column > A is greater than one. > > Thoughts? Thanks! > > -Aaron > _______________________________________________ > 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 danielc at analysisandsolutions.com Thu Dec 7 10:54:06 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Thu, 7 Dec 2006 10:54:06 -0500 Subject: [nycphp-talk] BC Date Recording In-Reply-To: <20061204160723.26F11CACEC@mail2.panix.com> References: <20061204160723.26F11CACEC@mail2.panix.com> Message-ID: <20061207155406.GA14627@panix.com> Hi Phil: On Mon, Dec 04, 2006 at 11:06:27AM -0500, Phil Duffy wrote: > I understand that MySQL does not have the ability to store B.C. dates, but > that PostgreSQL does. This may be helpful to you or others: http://www.analysisandsolutions.com/code/dates.htm > However, I have not been able to determine how PHP > facilitates the recording, editing and display of B.C. dates for the > PostgreSQL query. They are strings. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 From agfische at email.smith.edu Thu Dec 7 11:13:39 2006 From: agfische at email.smith.edu (Aaron Fischer) Date: Thu, 07 Dec 2006 11:13:39 -0500 Subject: [nycphp-talk] OT - MySQL select question In-Reply-To: <45783478.1060004@beaffinitive.com> References: <002e01c71a13$2793d8d0$b265a8c0@andyabs> <45783478.1060004@beaffinitive.com> Message-ID: <45783DB3.3040702@email.smith.edu> That did it, thanks Rob and Andy. Rob's query did the trick. I was getting a MySQL error with Andy's that I hadn't been able to figure out. Cheers, -Aaron Rob Marscher wrote: > I'm pretty sure the subquery is redundant... I think this will work... > > SELECT * FROM table_name GROUP BY field_name HAVING COUNT(*) > 1 > > > > Andy Dirnberger wrote: > >> SELECT * FROM table_name WHERE field_name IN (SELECT field_name FROM >> table_name GROUP BY field_name HAVING COUNT(*) > 1) >> From rmarscher at beaffinitive.com Thu Dec 7 11:26:45 2006 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Thu, 07 Dec 2006 11:26:45 -0500 Subject: [nycphp-talk] OT - MySQL select question In-Reply-To: <45783DB3.3040702@email.smith.edu> References: <002e01c71a13$2793d8d0$b265a8c0@andyabs> <45783478.1060004@beaffinitive.com> <45783DB3.3040702@email.smith.edu> Message-ID: <457840C5.7060709@beaffinitive.com> If you're using a MySQL version earlier than 4.1, subqueries aren't available. Maybe that's why you got an error with Andy's query. That's interesting about the query not working in Oracle. I wonder if it's because field_name isn't specifically listed in the SELECT - like it doesn't like the "GROUP BY field_name" when * is used for the field list? I've read that MySQL allows you to GROUP BY fields not listed in the field list, but other DBs give errors. -Rob Aaron Fischer wrote: > That did it, thanks Rob and Andy. > > Rob's query did the trick. I was getting a MySQL error with Andy's > that I hadn't been able to figure out. > > Cheers, > > -Aaron > > > Rob Marscher wrote: >> I'm pretty sure the subquery is redundant... I think this will work... >> >> SELECT * FROM table_name GROUP BY field_name HAVING COUNT(*) > 1 >> >> >> >> Andy Dirnberger wrote: >> >>> SELECT * FROM table_name WHERE field_name IN (SELECT field_name FROM >>> table_name GROUP BY field_name HAVING COUNT(*) > 1) >>> > _______________________________________________ > 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 dirn at dirnonline.com Thu Dec 7 11:33:37 2006 From: dirn at dirnonline.com (Andy Dirnberger) Date: Thu, 7 Dec 2006 11:33:37 -0500 Subject: [nycphp-talk] OT - MySQL select question In-Reply-To: <457840C5.7060709@beaffinitive.com> Message-ID: <000001c71a1d$73250c10$b265a8c0@andyabs> That's exactly why it doesn't work in Oracle. I'm working against 9i right now. Maybe they added that ability in 10g. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Rob Marscher Sent: Thursday, December 07, 2006 11:27 AM To: NYPHP Talk Subject: Re: [nycphp-talk] OT - MySQL select question If you're using a MySQL version earlier than 4.1, subqueries aren't available. Maybe that's why you got an error with Andy's query. That's interesting about the query not working in Oracle. I wonder if it's because field_name isn't specifically listed in the SELECT - like it doesn't like the "GROUP BY field_name" when * is used for the field list? I've read that MySQL allows you to GROUP BY fields not listed in the field list, but other DBs give errors. -Rob Aaron Fischer wrote: > That did it, thanks Rob and Andy. > > Rob's query did the trick. I was getting a MySQL error with Andy's > that I hadn't been able to figure out. > > Cheers, > > -Aaron > > > Rob Marscher wrote: >> I'm pretty sure the subquery is redundant... I think this will work... >> >> SELECT * FROM table_name GROUP BY field_name HAVING COUNT(*) > 1 >> >> >> >> Andy Dirnberger wrote: >> >>> SELECT * FROM table_name WHERE field_name IN (SELECT field_name FROM >>> table_name GROUP BY field_name HAVING COUNT(*) > 1) >>> > _______________________________________________ > 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 tedd at sperling.com Thu Dec 7 11:45:10 2006 From: tedd at sperling.com (tedd) Date: Thu, 7 Dec 2006 11:45:10 -0500 Subject: [nycphp-talk] BC Date Recording In-Reply-To: <20061207155406.GA14627@panix.com> References: <20061204160723.26F11CACEC@mail2.panix.com> <20061207155406.GA14627@panix.com> Message-ID: On Mon, Dec 04, 2006 at 11:06:27AM -0500, Phil Duffy wrote: > I understand that MySQL does not have the ability to store B.C. dates, but > that PostgreSQL does. Considering the history of calendars, I wonder how they did that? It's one thing to estimate that 2000 years ago was 0006 -- but, it's a completely different thing to claim that 2000 years ago today was December 7, 0006. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From ken at secdat.com Thu Dec 7 11:56:32 2006 From: ken at secdat.com (Kenneth Downs) Date: Thu, 07 Dec 2006 11:56:32 -0500 Subject: [nycphp-talk] BC Date Recording In-Reply-To: References: <20061204160723.26F11CACEC@mail2.panix.com> <20061207155406.GA14627@panix.com> Message-ID: <457847C0.2020908@secdat.com> tedd wrote: > On Mon, Dec 04, 2006 at 11:06:27AM -0500, Phil Duffy wrote: >> I understand that MySQL does not have the ability to store B.C. >> dates, but >> that PostgreSQL does. > > Considering the history of calendars, I wonder how they did that? > > It's one thing to estimate that 2000 years ago was 0006 -- but, it's a > completely different thing to claim that 2000 years ago today was > December 7, 0006. > > Cheers, > > tedd One of Joe Celko's books gives a pretty thorough run-down of the variations that have to be accommodated, including such things as the days that happened more than once and the days that never happened, and so forth. Compared to what's happened in AD-land, the BC stuff is easy :) -------------- next part -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From agfische at email.smith.edu Thu Dec 7 12:00:41 2006 From: agfische at email.smith.edu (Aaron Fischer) Date: Thu, 07 Dec 2006 12:00:41 -0500 Subject: [nycphp-talk] OT - MySQL select question In-Reply-To: <457840C5.7060709@beaffinitive.com> References: <002e01c71a13$2793d8d0$b265a8c0@andyabs> <45783478.1060004@beaffinitive.com> <45783DB3.3040702@email.smith.edu> <457840C5.7060709@beaffinitive.com> Message-ID: <457848B9.6070802@email.smith.edu> I did a mysql_get_server_info and it returns as 3.23.58, so I guess that's why Andy's query was returning errors. I guess 3.23.58 is a bit older? Seems like most people are on version 4 and some are on version 5? -Aaron Rob Marscher wrote: > If you're using a MySQL version earlier than 4.1, subqueries aren't > available. Maybe that's why you got an error with Andy's query. > > That's interesting about the query not working in Oracle. I wonder if > it's because field_name isn't specifically listed in the SELECT - like > it doesn't like the "GROUP BY field_name" when * is used for the field > list? I've read that MySQL allows you to GROUP BY fields not listed in > the field list, but other DBs give errors. > > -Rob > > Aaron Fischer wrote: > >> That did it, thanks Rob and Andy. >> >> Rob's query did the trick. I was getting a MySQL error with Andy's >> that I hadn't been able to figure out. >> >> Cheers, >> >> -Aaron >> >> From jkelly at sussex.edu Thu Dec 7 11:59:11 2006 From: jkelly at sussex.edu (jessica kelly) Date: Thu, 07 Dec 2006 11:59:11 -0500 Subject: [nycphp-talk] BC Date Recording Message-ID: <4578020F0200008A00000483@webmail.SUSSEX.EDU> Ted here is a site that has a brief mention of the two calendars. http://www.kencollins.com/calendar.htm As you may/may not know the system was changes somewhere in the ?1600's? or so. One October lost several days when the change over occured from Julian to Georgian so you need to take that into condideration so research well! Jessica Kelly >>> tedd 12/07/06 11:45 AM >>> On Mon, Dec 04, 2006 at 11:06:27AM -0500, Phil Duffy wrote: > I understand that MySQL does not have the ability to store B.C. dates, but > that PostgreSQL does. Considering the history of calendars, I wonder how they did that? It's one thing to estimate that 2000 years ago was 0006 -- but, it's a completely different thing to claim that 2000 years ago today was December 7, 0006. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.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 From edwardpotter at gmail.com Thu Dec 7 12:05:15 2006 From: edwardpotter at gmail.com (edward potter) Date: Thu, 7 Dec 2006 12:05:15 -0500 Subject: [nycphp-talk] BC Date Recording In-Reply-To: <457847C0.2020908@secdat.com> References: <20061204160723.26F11CACEC@mail2.panix.com> <20061207155406.GA14627@panix.com> <457847C0.2020908@secdat.com> Message-ID: It's great working with the Intelligent Design people, you don't have to worry about dates before 6000 BC. What a relief. Save all those zeros. :-) ed On 12/7/06, Kenneth Downs wrote: > tedd wrote: > > On Mon, Dec 04, 2006 at 11:06:27AM -0500, Phil Duffy wrote: > >> I understand that MySQL does not have the ability to store B.C. > >> dates, but > >> that PostgreSQL does. > > > > Considering the history of calendars, I wonder how they did that? > > > > It's one thing to estimate that 2000 years ago was 0006 -- but, it's a > > completely different thing to claim that 2000 years ago today was > > December 7, 0006. > > > > Cheers, > > > > tedd > One of Joe Celko's books gives a pretty thorough run-down of the > variations that have to be accommodated, including such things as the > days that happened more than once and the days that never happened, and > so forth. > > Compared to what's happened in AD-land, the BC stuff is easy :) > > > _______________________________________________ > 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 rmarscher at beaffinitive.com Thu Dec 7 12:17:24 2006 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Thu, 07 Dec 2006 12:17:24 -0500 Subject: [nycphp-talk] OT - MySQL select question In-Reply-To: <457848B9.6070802@email.smith.edu> References: <002e01c71a13$2793d8d0$b265a8c0@andyabs> <45783478.1060004@beaffinitive.com> <45783DB3.3040702@email.smith.edu> <457840C5.7060709@beaffinitive.com> <457848B9.6070802@email.smith.edu> Message-ID: <45784CA4.6090207@beaffinitive.com> Yeah... support for 4.0 was just dropped, so 4.1 is now the oldest current version. 5.1 is now available. Version 5 adds many features (triggers, views, stored procedures, etc) that makes it more similar to Oracle. I've heard there's a little performance loss between 4.1 and 5, however. -Rob Aaron Fischer wrote: > I did a mysql_get_server_info and it returns as 3.23.58, so I guess > that's why Andy's query was returning errors. > > I guess 3.23.58 is a bit older? Seems like most people are on version > 4 and some are on version 5? > > -Aaron > > > Rob Marscher wrote: >> If you're using a MySQL version earlier than 4.1, subqueries aren't >> available. Maybe that's why you got an error with Andy's query. >> >> That's interesting about the query not working in Oracle. I wonder >> if it's because field_name isn't specifically listed in the SELECT - >> like it doesn't like the "GROUP BY field_name" when * is used for the >> field list? I've read that MySQL allows you to GROUP BY fields not >> listed in the field list, but other DBs give errors. >> >> -Rob >> >> Aaron Fischer wrote: >> >>> That did it, thanks Rob and Andy. >>> >>> Rob's query did the trick. I was getting a MySQL error with Andy's >>> that I hadn't been able to figure out. >>> >>> Cheers, >>> >>> -Aaron >>> >>> > _______________________________________________ > 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 tedd at sperling.com Thu Dec 7 13:11:37 2006 From: tedd at sperling.com (tedd) Date: Thu, 7 Dec 2006 13:11:37 -0500 Subject: [nycphp-talk] BC Date Recording In-Reply-To: <4578020F0200008A00000483@webmail.SUSSEX.EDU> References: <4578020F0200008A00000483@webmail.SUSSEX.EDU> Message-ID: At 11:59 AM -0500 12/7/06, jessica kelly wrote: >Ted here is a site that has a brief mention of the two calendars. >http://www.kencollins.com/calendar.htm > >As you may/may not know the system was changes somewhere in the ?1600's? >or so. One October lost several days when the change over occured from >Julian to Georgian so you need to take that into condideration so >research well! Yes, that's a good link and the "system" did change in the 1600's, namely October 4, 1582 (a Thursday btw). Prior to that, the day of the week cannot be calculated easily. In order to understand why, we need to look at the calendar history. Prior to Julius ruling Rome (BC 46) the Roman year was 354 days. When Julius came to power, one of his first challenge was to appease the farmers who complained because according to their calendar, spring time and the time to sow/plant, was actually mid winter. Julius hired a mathematician (Sosigenes) to figure out what went wrong. Sosigenes suggested that the length of the year was wrong. It should have been 365.25 days. The extra .25 day after four years became the extra day added in February. However, Julius made a mess of 46 BC by adding a couple of months making the year 445 days long! Of course, Sosigenes, not having a calculator, didn't realize that a solar year is really 365.2428935. His fix was off by 10 minutes and some seconds in a year --not bad for manual computation! This error over 1600 years, adds up to about 11 days. This error was detected by astronomers who noticed that the vernal equinox (when light and dark periods are equal length) occurring on March 21 was becoming earlier and earlier and in 1582 it was on March 10. So, Christopher Clarius, an astronomer, went to Pope Gregory XIII and addressed the issue. After seeing all the calculations for 7 months, pope Gregory knocked off 11 days on October 4 1582. The next day, he decreed to be October 15 (so October 5-14 in the year 1582 didn't exist), but to not upset the Jews with their Sabbath, the day of the week was NOT changed. Had Pope Gregory deleted the days properly (along with the dates), then the next day (October 15) would have been a Monday and this would have resulted in Jewish citizens working more than ten days before being able to observe their Sabbath. This of course would have been unacceptable, not even animals nor slaves can be put to work on the Lord's Sabbath (Exo 20:9,31:13,Lev 23:3 etc.) To avoid the leap-year error again, Pope Gregory, decreed that every 4 years a day will be added. However, on a turn of the century, it will only be added if it's divisible by 400. Hence, although year 2000 was a leap year, while 1900 was not. So, considering the history of calendars, I again state that I wonder how PostgreSQL has the ability to store B.C. dates? tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From agfische at email.smith.edu Thu Dec 7 13:47:02 2006 From: agfische at email.smith.edu (Aaron Fischer) Date: Thu, 07 Dec 2006 13:47:02 -0500 Subject: [nycphp-talk] OT - MySQL select question In-Reply-To: References: Message-ID: <457861A6.4080306@email.smith.edu> Thanks Timothy, I'll check out that book. The next thing(s) to add to my library is one or two good books on SQL/MySQL. Sounds like a good holiday present to myself! Cheers, -Aaron Timothy Boyden wrote: > I don't have a code solution for you, but Google the CHECK and UNIQUE > predicates for the SQL language, I believe your answer lies within... > > Also a good SQL reference book that has been a trusty partner for me is > the SQL Instant Reference by Sybex. > > From tacofighter at gmail.com Thu Dec 7 14:34:54 2006 From: tacofighter at gmail.com (Aaron Deutsch) Date: Thu, 7 Dec 2006 14:34:54 -0500 Subject: [nycphp-talk] server mappings Message-ID: I'm trying to figure out how to map servers in such a way so I can use a php script on one server to manipulate files on another without using ftp functions. For example: I have a file upload form on one server that will use move_uploaded_file and put it on another server. I'm not the networking guy so I'm not sure what to tell them to do. I was told about SMB web client (http://smbwebclient.sourceforge.net/), but I haven't tried to set it up yet. Any recommendations? Our servers are windows 2000, and running php 4.3 thanks, aaron d. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmintz at davidmintz.org Thu Dec 7 15:20:50 2006 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 7 Dec 2006 15:20:50 -0500 (EST) Subject: [nycphp-talk] OT - MySQL select question In-Reply-To: <45783DB3.3040702@email.smith.edu> References: <002e01c71a13$2793d8d0$b265a8c0@andyabs> <45783478.1060004@beaffinitive.com> <45783DB3.3040702@email.smith.edu> Message-ID: The MySQL Cookbook (O'Reilly) is also loads of fun. --- 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 agfische at email.smith.edu Thu Dec 7 16:00:55 2006 From: agfische at email.smith.edu (Aaron Fischer) Date: Thu, 07 Dec 2006 16:00:55 -0500 Subject: [nycphp-talk] OT - MySQL select question In-Reply-To: References: <002e01c71a13$2793d8d0$b265a8c0@andyabs> <45783478.1060004@beaffinitive.com> <45783DB3.3040702@email.smith.edu> Message-ID: <45788107.2050105@email.smith.edu> I'll check that out too, thanks David! -A David Mintz wrote: > The MySQL Cookbook (O'Reilly) is also loads of fun. > > --- > 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 chsnyder at gmail.com Thu Dec 7 17:00:53 2006 From: chsnyder at gmail.com (csnyder) Date: Thu, 7 Dec 2006 17:00:53 -0500 Subject: [nycphp-talk] server mappings In-Reply-To: References: Message-ID: On 12/7/06, Aaron Deutsch wrote: > I'm trying to figure out how to map servers in such a way so I can use a php > script on one server to manipulate files on another without using ftp > functions. For example: I have a file upload form on one server that will > use move_uploaded_file and put it on another server. I'm not the > networking guy so I'm not sure what to tell them to do. I was told about SMB > web client ( http://smbwebclient.sourceforge.net/), but I > haven't tried to set it up yet. Any recommendations? > > Our servers are windows 2000, and running php 4.3 > > thanks, > aaron d. Windows comes with filesharing, you don't need a separate client. Create a shared folder on the storage host. Map it as a network drive on the web host. The web host can now write files to it as if it was a local drive. You don't need anything beyond plain old Windows networking. -- Chris Snyder http://chxo.com/ From r.mariotti at fdcx.net Thu Dec 7 17:04:52 2006 From: r.mariotti at fdcx.net (R. Mariotti) Date: Thu, 07 Dec 2006 17:04:52 -0500 Subject: [nycphp-talk] Re: talk Digest, Vol 2, Issue 7 In-Reply-To: <200612071551.kB7Fpd3g026821@post.ntplx.net> References: <200612071551.kB7Fpd3g026821@post.ntplx.net> Message-ID: <45789004.9060006@fdcx.net> > > Message: 2 > Date: Thu, 7 Dec 2006 01:38:05 -0600 > From: "Anthony Papillion" > Subject: Re: [nycphp-talk] xAjax anyone? > To: "NYPHP Talk" > Message-ID: <001201c719d2$a2f1ca50$6901a8c0 at NITRO> > Content-Type: text/plain; charset="iso-8859-1" > > Hi Susan, > > I've just started looking into using xAJAX and absolutely love it. Granted, I've not done anything useful with it yet but it seems to hav a LOT of promise. Looks like it might have really nailed the "easy to use" thing on the head. > > Anthony Papillion > Advanced Data Concepts > Ph (918) 926-0139 I came across a "framework" for integrating ajax that works very well. It's worth taking a look at. "myBIC" bobmct From evdo.hsdpa at gmail.com Thu Dec 7 19:22:34 2006 From: evdo.hsdpa at gmail.com (Robert Kim Wireless Internet Advisor) Date: Thu, 7 Dec 2006 16:22:34 -0800 Subject: [nycphp-talk] server mappings In-Reply-To: References: Message-ID: <1ec620e90612071622w7b79d8c4rba708349a6c90d7a@mail.gmail.com> Aaron, et al, Does nyphp need a digg.com style social news and voting site? lemme know.. i'd be happy to build one for our community. see: http://digg.com and http://wimax-coverage.com and http://iptv-coverage.com On 12/7/06, Aaron Deutsch wrote: > I'm trying to figure out how to map servers in such a way so I can use a php > script on one server to manipulate files on another without using ftp > functions. For example: I have a file upload form on one server that will > use move_uploaded_file and put it on another server. I'm not the > networking guy so I'm not sure what to tell them to do. I was told about SMB > web client ( http://smbwebclient.sourceforge.net/), but I > haven't tried to set it up yet. Any recommendations? > -- Robert Q Kim, Wireless Internet Provider http://evdo-coverage.com/satellite-wireless-internet.html http://evdo-coverage.com 2611 S. Pacific Coast Highway 101 Suite 203 Cardiff by the Sea, CA 92007 206 984 0880 From jface at mercenarylabs.com Thu Dec 7 22:58:47 2006 From: jface at mercenarylabs.com (jface at mercenarylabs.com) Date: Thu, 7 Dec 2006 22:58:47 -0500 Subject: [nycphp-talk] freeing sql results Message-ID: <3d672dbb43a242d9f3e63bcf1a50209b@localhost> After a lot of trial and error I've narrowed down the offending query in my problem with sql results not freeing themselves up: $query = mysql_query("SELECT activeID FROM activeAI WHERE locationID='$locationID' AND activeID <> '$activeID' AND isUndead=0"); $numOtherAI = mysql_num_rows($query); mysql_free_result($query); When I comment out this query, the error(s) go away. Variables $locationID and $activeID are both properly set. Is there something horribly wrong with this query? Is m_f_r() just not working? Too many ANDs? Jonathan On Tue, 5 Dec 2006 22:45:34 -0500, Jon Baer wrote: > Add a debug_print_backtrace() before the free result or query. I > find it to be very handy in PHP5, although I wish there was a way to > dump the results to a UDP port for catching it as well. > > - Jon > > On Dec 5, 2006, at 8:39 PM, > wrote: > >> I have a very complex app I've been working on currently at about >> three thousand lines of code. All of a sudden it started spitting >> out the following warning: >> >> Warning: Unknown: 2 result set(s) not freed. Use mysql_free_result >> to free result sets which were requested using mysql_query() in >> Unknown on line 0 >> >> So I went through it line-by-line and added a mysql_free_result() >> after EVERY query, to no avail. >> >> The worst thing about this error is that it doesn't give me a valid >> line number, so it's impossible to tell exactly where the bad >> queries are. >> >> This is occurring on a php5/mysql5/apache setup. >> >> Anyone have any suggestions? I'm out of ideas. >> >> Jonathan >> >> _______________________________________________ >> 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 kenrbnsn at rbnsn.com Thu Dec 7 22:34:04 2006 From: kenrbnsn at rbnsn.com (Ken Robinson) Date: Thu, 07 Dec 2006 22:34:04 -0500 Subject: [nycphp-talk] freeing sql results In-Reply-To: <3d672dbb43a242d9f3e63bcf1a50209b@localhost> References: <3d672dbb43a242d9f3e63bcf1a50209b@localhost> Message-ID: <7.0.1.0.2.20061207223059.09e70d38@rbnsn.com> At 10:58 PM 12/7/2006, jface at mercenarylabs.com wrote: >After a lot of trial and error I've narrowed down the offending >query in my problem with sql results not freeing themselves up: > >$query = mysql_query("SELECT activeID FROM activeAI WHERE >locationID='$locationID' AND activeID <> '$activeID' AND isUndead=0"); >$numOtherAI = mysql_num_rows($query); >mysql_free_result($query); > >When I comment out this query, the error(s) go away. Variables >$locationID and $activeID are both properly set. You really should check for errors when doing a mysql_query. Putting the query in a separate string helps. $q = "SELECT activeID FROM activeAI WHERE locationID='$locationID' AND activeID <> '$activeID' AND isUndead=0"; $rs = mysql_query($q) or die("Problem with the query: $q
" . mysql_error()); $numOtherAl = mysql_num_rows($rs); mysql_free_result($rs); Ken From jface at mercenarylabs.com Thu Dec 7 23:39:41 2006 From: jface at mercenarylabs.com (jface at mercenarylabs.com) Date: Thu, 7 Dec 2006 23:39:41 -0500 Subject: [nycphp-talk] freeing sql results In-Reply-To: <7.0.1.0.2.20061207223059.09e70d38@rbnsn.com> References: <7.0.1.0.2.20061207223059.09e70d38@rbnsn.com> Message-ID: <8555ef43b3aa87129948548c50ef4c52@localhost> I did include "or die()"s, just neglected to put them into the email. No SQL syntax errors come back. The only kinds of errors I'm getting are that sql results are not being freed. Tried passing the SQL into mysql_query as a separate string, too. No luck. On Thu, 07 Dec 2006 22:34:04 -0500, Ken Robinson wrote: > At 10:58 PM 12/7/2006, jface at mercenarylabs.com wrote: >>After a lot of trial and error I've narrowed down the offending >>query in my problem with sql results not freeing themselves up: >> >>$query = mysql_query("SELECT activeID FROM activeAI WHERE >>locationID='$locationID' AND activeID <> '$activeID' AND isUndead=0"); >>$numOtherAI = mysql_num_rows($query); >>mysql_free_result($query); >> >>When I comment out this query, the error(s) go away. Variables >>$locationID and $activeID are both properly set. > > You really should check for errors when doing a mysql_query. Putting > the query in a separate string helps. > > $q = "SELECT activeID FROM activeAI WHERE locationID='$locationID' > AND activeID <> '$activeID' AND isUndead=0"; > $rs = mysql_query($q) or die("Problem with the query: $q
" . > mysql_error()); > $numOtherAl = mysql_num_rows($rs); > mysql_free_result($rs); > > Ken > > > _______________________________________________ > 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 cliff at pinestream.com Fri Dec 8 08:20:24 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Fri, 8 Dec 2006 08:20:24 -0500 Subject: [nycphp-talk] Does anyone have Ioncube experience? Message-ID: <20061208132024.M70796@pinestream.com> I am integrating a commercial php shopping cart that uses Ioncube to protect some of the source. I've already encountered one problem where Ioncube is not compatible with the Zend Studio Server debugger and wonder how it will work with Zend Optimizer and opcode caching software like APC. I'm wondering whether anyone has had experience with Ioncube -- good, bad or ugly. Any other unexpected gotchas that I should know about before deploying this in a production enviroment? Cliff -- Pinestream Communications, Inc. Publisher of Semiconductor Times & Telecom Trends 52 Pine Street, Weston, MA 02493 USA Tel: 781.647.8800, Fax: 781.647.8825, www.pinestream.com From dcech at phpwerx.net Fri Dec 8 09:13:18 2006 From: dcech at phpwerx.net (Dan Cech) Date: Fri, 08 Dec 2006 09:13:18 -0500 Subject: [nycphp-talk] Does anyone have Ioncube experience? In-Reply-To: <20061208132024.M70796@pinestream.com> References: <20061208132024.M70796@pinestream.com> Message-ID: <457972FE.7090304@phpwerx.net> Cliff Hirsch wrote: > I am integrating a commercial php shopping cart that uses Ioncube to protect > some of the source. I've already encountered one problem where Ioncube is not > compatible with the Zend Studio Server debugger and wonder how it will work > with Zend Optimizer and opcode caching software like APC. It will work ok with Zend Optimizer, just make sure that you're using the latest versions of both Optimizer and the IONCube loader. If you're installing the IONCube loader via php.ini, I believe it should be initialized before Zend, the majority of my experience has been with loading it dynamically. > > I'm wondering whether anyone has had experience with Ioncube -- good, bad or > ugly. Any other unexpected gotchas that I should know about before deploying > this in a production enviroment? The only other oddity I've seen was one machine which experienced random segfaults when using Zend Optimizer together with IONCube. The solution turned out to be changing from using AddType in the httpd.conf to AddHandler, since the change there have been no more segfaults. Dan From r.mariotti at fdcx.net Fri Dec 8 09:56:40 2006 From: r.mariotti at fdcx.net (R. Mariotti) Date: Fri, 08 Dec 2006 09:56:40 -0500 Subject: [nycphp-talk] OT: revisiting window close methods? Message-ID: <45797D28.3020103@fdcx.net> Gentlemen; As most of the php we create and maintain deals with browser interaction, one of those actions is to close the current window if/when the user click on the appropriate supplied button. I have such a button on my page(s) that contains a tag that reads: onclick="window.close();" and I've tried numerous variations of the same such as: document.close() close() javascript:window.close() windowClose() and others that I have seen referenced. However, nothing happens when this is clicked in my particular app. The button animates as expected but nothing happens. The browsers tested with are all mozilla/firefox are varying versions older to current and I'm sure it is important to note that the window I am trying to close it the ONLY open window in the browser. My research shows that this should close but possibly display a warning/acknowledgment message first. I've also check through the preferences to see if there were any suppression settings and I've found none. Can someone please advise as to how one should accomplish this task? Thanks, bobmct From tedd at sperling.com Fri Dec 8 10:23:20 2006 From: tedd at sperling.com (tedd) Date: Fri, 8 Dec 2006 10:23:20 -0500 Subject: [nycphp-talk] OT: revisiting window close methods? In-Reply-To: <45797D28.3020103@fdcx.net> References: <45797D28.3020103@fdcx.net> Message-ID: At 9:56 AM -0500 12/8/06, R. Mariotti wrote: >Gentlemen; > >As most of the php we create and maintain deals with browser >interaction, one of those actions is to close the current window >if/when the user click on the appropriate supplied button. > >I have such a button on my page(s) that contains a tag that reads: > >onclick="window.close();" > >and I've tried numerous variations of the same such as: >-snip- > >Can someone please advise as to how one should accomplish this task? A javascript list might be better. But try: Close Window Also review: http://www.sitepoint.com/article/pop-ups-dead-links hth's tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From r.mariotti at fdcx.net Fri Dec 8 10:38:27 2006 From: r.mariotti at fdcx.net (R. Mariotti) Date: Fri, 08 Dec 2006 10:38:27 -0500 Subject: [nycphp-talk] OT anyone interested in collaborating to use php to program Dymo printer? Message-ID: <457986F3.6020505@fdcx.net> Slightly OT - but... I have several web projects where some of the results is to print formatted labels (not necessarily address) on a local or remote attached small label printer. Of those that are available, I've selected the Dymo because its "supported" by cups and it can connect via USB. I CAN get output to this printer by opening a pipe to "lp" and passing various parameters and then outputing my text. However, I cannot send ANY formatting instructions or the printer stops printing. It advances but nothing prints. Seeing how Dymo doesn't support Linux and none of the other hardware related forums are interested... I was wondering if anyone in this group has any interest in collaborating towards developing a method to get the control programming through to this type of printer. Perhaps the ultimate goal would be to develop a module that would be available to all as has been done with many other tasks. If anyone is interested, has access to or wishes to purchase and work with one of these inexpensive printers for this purpose, I would be most interested to hear from you. Thanks to anyone who responds. bobmct From arzala at gmail.com Fri Dec 8 11:18:10 2006 From: arzala at gmail.com (Anirudh Zala) Date: Fri, 8 Dec 2006 21:48:10 +0530 Subject: [nycphp-talk] OT: revisiting window close methods? In-Reply-To: <45797D28.3020103@fdcx.net> References: <45797D28.3020103@fdcx.net> Message-ID: <200612082148.10778.arzala@gmail.com> On Friday 08 December 2006 20:26, R. Mariotti wrote: Hi R. Mariotti I think script mostly cannot close any browser window that was not opened by it. At least this is true for Mozilla based browsers. So please research again. In Firefox 2.0 you will get following message (not warning) "Scripts may not close windows that were not opened by script." Anirudh Zala (Building standards) > Gentlemen; > > As most of the php we create and maintain deals with browser > interaction, one of those actions is to close the current window if/when > the user click on the appropriate supplied button. > > I have such a button on my page(s) that contains a tag that reads: > > onclick="window.close();" > > and I've tried numerous variations of the same such as: > > document.close() > close() > javascript:window.close() > windowClose() > > and others that I have seen referenced. > > However, nothing happens when this is clicked in my particular app. The > button animates as expected but nothing happens. > > The browsers tested with are all mozilla/firefox are varying versions > older to current and I'm sure it is important to note that the window I > am trying to close it the ONLY open window in the browser. My research > shows that this should close but possibly display a > warning/acknowledgment message first. I've also check through the > preferences to see if there were any suppression settings and I've found > none. > > Can someone please advise as to how one should accomplish this task? > > Thanks, > > 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 cliff at pinestream.com Fri Dec 8 12:47:31 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Fri, 8 Dec 2006 12:47:31 -0500 Subject: [nycphp-talk] Does anyone have Ioncube experience? In-Reply-To: <457972FE.7090304@phpwerx.net> Message-ID: <000f01c71af0$f1a64f30$12a8a8c0@HirschLaptop> Dan: Thanks. Sounds like it's not a showstopper. Certainly not worth abandoning this shopping cart because of it...yet... Cliff -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Dan Cech Sent: Friday, December 08, 2006 9:13 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Does anyone have Ioncube experience? Cliff Hirsch wrote: > I am integrating a commercial php shopping cart that uses Ioncube to protect > some of the source. I've already encountered one problem where Ioncube is not > compatible with the Zend Studio Server debugger and wonder how it will work > with Zend Optimizer and opcode caching software like APC. It will work ok with Zend Optimizer, just make sure that you're using the latest versions of both Optimizer and the IONCube loader. If you're installing the IONCube loader via php.ini, I believe it should be initialized before Zend, the majority of my experience has been with loading it dynamically. > > I'm wondering whether anyone has had experience with Ioncube -- good, bad or > ugly. Any other unexpected gotchas that I should know about before deploying > this in a production enviroment? The only other oddity I've seen was one machine which experienced random segfaults when using Zend Optimizer together with IONCube. The solution turned out to be changing from using AddType in the httpd.conf to AddHandler, since the change there have been no more segfaults. Dan From edwardpotter at gmail.com Fri Dec 8 13:25:41 2006 From: edwardpotter at gmail.com (edward potter) Date: Fri, 8 Dec 2006 13:25:41 -0500 Subject: [nycphp-talk] OT anyone interested in collaborating to use php to program Dymo printer? In-Reply-To: <457986F3.6020505@fdcx.net> References: <457986F3.6020505@fdcx.net> Message-ID: Can you create a pdf and then just push that out? :-) ed On 12/8/06, R. Mariotti wrote: > Slightly OT - but... > > I have several web projects where some of the results is to print > formatted labels (not necessarily address) on a local or remote attached > small label printer. Of those that are available, I've selected the > Dymo because its "supported" by cups and it can connect via USB. > > I CAN get output to this printer by opening a pipe to "lp" and passing > various parameters and then outputing my text. However, I cannot send > ANY formatting instructions or the printer stops printing. It advances > but nothing prints. > > Seeing how Dymo doesn't support Linux and none of the other hardware > related forums are interested... I was wondering if anyone in this > group has any interest in collaborating towards developing a method to > get the control programming through to this type of printer. > Perhaps the ultimate goal would be to develop a module that would be > available to all as has been done with many other tasks. > > If anyone is interested, has access to or wishes to purchase and work > with one of these inexpensive printers for this purpose, I would be most > interested to hear from you. > > Thanks to anyone who responds. > > 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 > -- 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 rolan at omnistep.com Fri Dec 8 14:17:03 2006 From: rolan at omnistep.com (Rolan Yang) Date: Fri, 08 Dec 2006 14:17:03 -0500 Subject: [nycphp-talk] OT anyone interested in collaborating to use php to program Dymo printer? In-Reply-To: <457986F3.6020505@fdcx.net> References: <457986F3.6020505@fdcx.net> Message-ID: <4579BA2F.6000207@omnistep.com> Do you have the technical reference manual for the printer? url? If the printer is form feeding or spitting out garbage, there might be an error in the control code's you're feeding to it. ~Rolan R. Mariotti wrote: > Slightly OT - but... > > I have several web projects where some of the results is to print > formatted labels (not necessarily address) on a local or remote > attached small label printer. Of those that are available, I've > selected the Dymo because its "supported" by cups and it can connect > via USB. > > I CAN get output to this printer by opening a pipe to "lp" and passing > various parameters and then outputing my text. However, I cannot > send ANY formatting instructions or the printer stops printing. It > advances but nothing prints. > > Seeing how Dymo doesn't support Linux and none of the other hardware > related forums are interested... I was wondering if anyone in this > group has any interest in collaborating towards developing a method to > get the control programming through to this type of printer. > Perhaps the ultimate goal would be to develop a module that would be > available to all as has been done with many other tasks. > > If anyone is interested, has access to or wishes to purchase and work > with one of these inexpensive printers for this purpose, I would be > most interested to hear from you. > > Thanks to anyone who responds. > > 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 codebowl at gmail.com Fri Dec 8 14:33:00 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 8 Dec 2006 14:33:00 -0500 Subject: [nycphp-talk] OT anyone interested in collaborating to use php to program Dymo printer? In-Reply-To: <4579BA2F.6000207@omnistep.com> References: <457986F3.6020505@fdcx.net> <4579BA2F.6000207@omnistep.com> Message-ID: <8d9a42800612081132m2f42c23h7a4d0db007f4c74b@mail.gmail.com> you know i should look into this one day, i have never had the need or want to push anything to a printer via php but it's a cool concept and i am sure it can be accomplished. On 12/8/06, Rolan Yang wrote: > > Do you have the technical reference manual for the printer? url? > If the printer is form feeding or spitting out garbage, there might be > an error in the control code's you're feeding to it. > > ~Rolan > > R. Mariotti wrote: > > Slightly OT - but... > > > > I have several web projects where some of the results is to print > > formatted labels (not necessarily address) on a local or remote > > attached small label printer. Of those that are available, I've > > selected the Dymo because its "supported" by cups and it can connect > > via USB. > > > > I CAN get output to this printer by opening a pipe to "lp" and passing > > various parameters and then outputing my text. However, I cannot > > send ANY formatting instructions or the printer stops printing. It > > advances but nothing prints. > > > > Seeing how Dymo doesn't support Linux and none of the other hardware > > related forums are interested... I was wondering if anyone in this > > group has any interest in collaborating towards developing a method to > > get the control programming through to this type of printer. > > Perhaps the ultimate goal would be to develop a module that would be > > available to all as has been done with many other tasks. > > > > If anyone is interested, has access to or wishes to purchase and work > > with one of these inexpensive printers for this purpose, I would be > > most interested to hear from you. > > > > Thanks to anyone who responds. > > > > 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 > -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Fri Dec 8 15:34:44 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Fri, 08 Dec 2006 12:34:44 -0800 Subject: [nycphp-talk] Does anyone have Ioncube experience? In-Reply-To: <20061208132024.M70796@pinestream.com> References: <20061208132024.M70796@pinestream.com> Message-ID: <30711-33212@sneakemail.com> Cliff Hirsch cliff-at-pinestream.com |nyphp dev/internal group use| wrote: >I am integrating a commercial php shopping cart that uses Ioncube to protect >some of the source. I've already encountered one problem where Ioncube is not >compatible with the Zend Studio Server debugger and wonder how it will work >with Zend Optimizer and opcode caching software like APC. > >I'm wondering whether anyone has had experience with Ioncube -- good, bad or >ugly. Any other unexpected gotchas that I should know about before deploying >this in a production enviroment? > >Cliff >-- >Pinestream Communications, Inc. >Publisher of Semiconductor Times & Telecom Trends >52 Pine Street, Weston, MA 02493 USA >Tel: 781.647.8800, Fax: 781.647.8825, www.pinestream.com > I would review the license to see how it tries to restrict you from decoding and viewing/modifying the encoded portions. This becomes an issue when time has passed, they no longer support the product or perhaps are no longer responsive, or you have other problems you cannot resolve (such as phone home or security flaws). It's a fact of life that encryption engines get cracked eventually, and when your competitors (including hackers) know better than you what your code is doing, you have an issue. Currently the hottest area of search engine spamming is the CMS exploit - using security flaws in popular CMSs to insert back links onto people's web sites without their knowledge nor consent. -=john andrews Competitive Webmaster and Search Optimizer -- ------------------------------------------------------------- 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 rolan at omnistep.com Fri Dec 8 18:48:03 2006 From: rolan at omnistep.com (Rolan Yang) Date: Fri, 08 Dec 2006 18:48:03 -0500 Subject: [nycphp-talk] freeing sql results In-Reply-To: <3d672dbb43a242d9f3e63bcf1a50209b@localhost> References: <3d672dbb43a242d9f3e63bcf1a50209b@localhost> Message-ID: <4579F9B3.3070603@omnistep.com> Try $query = mysql_query("SELECT count(*) FROM activeAI WHERE locationID='$locationID' AND activeID <> '$activeID' AND isUndead=0"); list($numOtherAI)=mysql_fetch_row($query); mysql_free_result($query); It should conserve memory since MySql will be returning a single integer instead of the entire list of activeID's. ~Rolan jface at mercenarylabs.com wrote: > After a lot of trial and error I've narrowed down the offending query in my problem with sql results not freeing themselves up: > > $query = mysql_query("SELECT activeID FROM activeAI WHERE locationID='$locationID' AND activeID <> '$activeID' AND isUndead=0"); > $numOtherAI = mysql_num_rows($query); > mysql_free_result($query); > > When I comment out this query, the error(s) go away. Variables $locationID and $activeID are both properly set. > > Is there something horribly wrong with this query? Is m_f_r() just not working? Too many ANDs? > > Jonathan > > On Tue, 5 Dec 2006 22:45:34 -0500, Jon Baer wrote: > >> Add a debug_print_backtrace() before the free result or query. I >> find it to be very handy in PHP5, although I wish there was a way to >> dump the results to a UDP port for catching it as well. >> >> - Jon >> >> On Dec 5, 2006, at 8:39 PM, >> wrote: >> >> >>> I have a very complex app I've been working on currently at about >>> three thousand lines of code. All of a sudden it started spitting >>> out the following warning: >>> >>> Warning: Unknown: 2 result set(s) not freed. Use mysql_free_result >>> to free result sets which were requested using mysql_query() in >>> Unknown on line 0 >>> >>> So I went through it line-by-line and added a mysql_free_result() >>> after EVERY query, to no avail. >>> >>> The worst thing about this error is that it doesn't give me a valid >>> line number, so it's impossible to tell exactly where the bad >>> queries are. >>> >>> This is occurring on a php5/mysql5/apache setup. >>> >>> Anyone have any suggestions? I'm out of ideas. >>> >>> Jonathan >>> >>> _______________________________________________ >>> 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 tedd at sperling.com Fri Dec 8 22:30:39 2006 From: tedd at sperling.com (tedd) Date: Fri, 8 Dec 2006 22:30:39 -0500 Subject: [nycphp-talk] OT anyone interested in collaborating to use php to program Dymo printer? In-Reply-To: <8d9a42800612081132m2f42c23h7a4d0db007f4c74b@mail.gmail.com> References: <457986F3.6020505@fdcx.net> <4579BA2F.6000207@omnistep.com> <8d9a42800612081132m2f42c23h7a4d0db007f4c74b@mail.gmail.com> Message-ID: At 2:33 PM -0500 12/8/06, Joseph Crawford wrote: >you know i should look into this one day, i have never had the need >or want to push anything to a printer via php but it's a cool >concept and i am sure it can be accomplished I don't push anything through a printer, but when I have to create something that will work on most/all printers, I generate a PDF file and let the user print it. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From Bob at madison-atlantic.com Sat Dec 9 12:22:07 2006 From: Bob at madison-atlantic.com (Bob Paul) Date: Sat, 9 Dec 2006 12:22:07 -0500 Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions Message-ID: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD> Hello, I am totally new to PHP and NYPHP. I've been trying for several days now to install PHP, Apache and MySQL on my Win/XP system. The Apache web server is functioning but I'm lost in the PHP configuration files and have not a clue how to activate PHP. The Apache web server totally ignores the PHP script inside my little HelloWorld.php - PHP Test

Hello World from HTML

Hello World from PHP

'; ?> I'm about to start searching through the NYPHP message archives, but if you happen to know a link that will help me, I'd greatly appreciate hearing about it. All the best, Bob _____ Bob Paul Madison-Atlantic Software 607.562.8921 (voice) 607.562.7248 (fax) 607.259.0583 (cell) www.madison-atlantic.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tgales at tgaconnect.com Sat Dec 9 13:01:59 2006 From: tgales at tgaconnect.com (Tim Gales) Date: Sat, 09 Dec 2006 13:01:59 -0500 Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions In-Reply-To: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD> References: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD> Message-ID: <457AFA17.6090005@tgaconnect.com> Bob Paul wrote: {snip] > I'm lost in the PHP > configuration files and have not a clue how to activate PHP. in httpd.conf file be sure to include LoadModule php5_module "C:/your/installation/php5apache2.dll" and AddType application/x-httpd-php .php Then (after restarting) apache, try http://your.server.com/info.php (contents of info.php: ) and see what happens... -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From susan_shemin at yahoo.com Sat Dec 9 13:22:47 2006 From: susan_shemin at yahoo.com (Susan Shemin) Date: Sat, 9 Dec 2006 10:22:47 -0800 (PST) Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions Message-ID: <20061209182247.26365.qmail@web50204.mail.yahoo.com> just a suggestion, you can go to www.sokkit.net and its Sokkit utility has Apache, PHP and MySql all configured properly and you can be up and running in minutes ----- Original Message ---- From: Tim Gales To: NYPHP Talk Sent: Saturday, December 9, 2006 1:01:59 PM Subject: Re: [nycphp-talk] Newbie seeks PHP installation help / suggestions Bob Paul wrote: {snip] > I'm lost in the PHP > configuration files and have not a clue how to activate PHP. in httpd.conf file be sure to include LoadModule php5_module "C:/your/installation/php5apache2.dll" and AddType application/x-httpd-php .php Then (after restarting) apache, try http://your.server.com/info.php (contents of info.php: ) and see what happens... -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.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 ____________________________________________________________________________________ Want to start your own business? Learn how on Yahoo! Small Business. http://smallbusiness.yahoo.com/r-index -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob at madison-atlantic.com Sat Dec 9 15:58:14 2006 From: Bob at madison-atlantic.com (Bob Paul) Date: Sat, 9 Dec 2006 15:58:14 -0500 Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions Message-ID: <001801c71bd4$c1f45360$6601a8c0@ARCHIBALD> I think I'm making progress, but I'm not there yet. I'm running PHP 4.4.4 and Apache 2.2.3. This to get the best compatibility with my two live sites at my web hosting service, where they run PHP 4.4.1 (one site) and 4.4.2 (the other site). Apache is listed as 2.0. I changed the httpd.conf as follows, but now Apache fails to start - * LoadModule php4_module "C:/PHP/php4apache2.dll" - added among other load module statements (C:\PHP is where the .dll is located). * PHPIniDir "C:/PHP" - added after DocumentRoot and before * AddType application/x-httpd-php .php - added after "TypesConfig conf/mime.types" in Apache will start OK with the AddType statement, but not with LoadModule or PHPIniDir. -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Sat Dec 9 16:02:21 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Sat, 09 Dec 2006 13:02:21 -0800 Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions In-Reply-To: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD> References: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD> Message-ID: <23000-36149@sneakemail.com> Bob Paul Bob-at-madison-atlantic.com |nyphp dev/internal group use| wrote: > Hello, > > I am totally new to PHP and NYPHP. I've been trying for several days > now to install PHP, Apache and MySQL on my Win/XP system. > > The Apache web server is functioning but I'm lost in the PHP > configuration files and have not a clue how to activate PHP. The > Apache web server totally ignores the PHP script inside my little > HelloWorld.php - > > > > PHP Test > > >

Hello World from HTML

> Hello World from PHP

'; ?> > > > > I'm about to start searching through the NYPHP message archives, but > if you happen to know a link that will help me, I'd greatly appreciate > hearing about it. > > All the best, > Bob > If you go the prepackaged LAMP route, there is also EasyPHP, XAMPP, and WAMP for windows. All good installers, none good for a public machine (security reasons). Since your test file is HTML with embedded PHP, I assume it is named something.html or something.htm? In that case Apache will not pass it to the PHP engine by default. Check by looking at the source of the output page.. if you see the embedded PHP code that's what happened. Rename it something.php and try again. If you want to pass your .html files through PHP (some people do), you need to modify Apache's httpd.conf or use an htaccess file to add the .html extension as a PHP application file type. For .php and .html the line looks like this: AddType application/x-httpd-php .php .html For edumacational purposes, the best test file might be one like this: PHP test Fle

This is HTML, and what follows is my php configuration:

-=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 ramons at gmx.net Sat Dec 9 17:16:53 2006 From: ramons at gmx.net (David Krings) Date: Sat, 09 Dec 2006 17:16:53 -0500 Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions In-Reply-To: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD> References: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD> Message-ID: <457B35D5.8000905@gmx.net> Hi, when I started with Apache and later with PHP I went through the same problems....but didn't know of NYHP. I use XAMPP from apachefriends.org for development, testing, and also as production server. I never had a problem with installation or security. Apachefriend's XAMPP is really a nice package and darn easy to install on either Windope or Linux. Since then I never had a problem and now even EngInSite PHP Editor works with Apachefriend's XAMPP. It can't get any better!!! I really recommend to just download the XAMPP and start with PHP....unless you really do want to get through all the manual configuration. I recommend to reserve that for a later point. David Bob Paul wrote: > Hello, > > I am totally new to PHP and NYPHP. I've been trying for several days > now to install PHP, Apache and MySQL on my Win/XP system. > > The Apache web server is functioning but I'm lost in the PHP > configuration files and have not a clue how to activate PHP. The > Apache web server totally ignores the PHP script inside my little > HelloWorld.php - > > > > PHP Test > > >

Hello World from HTML

> Hello World from PHP

'; ?> > > > > I'm about to start searching through the NYPHP message archives, but > if you happen to know a link that will help me, I'd greatly appreciate > hearing about it. > > All the best, > Bob > > ------------------------------------------------------------------------ > > Bob Paul > Madison-Atlantic Software > 607.562.8921 (voice) > 607.562.7248 (fax) > 607.259.0583 (cell) > www.madison-atlantic.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 From Bob at madison-atlantic.com Sat Dec 9 17:33:58 2006 From: Bob at madison-atlantic.com (Bob Paul) Date: Sat, 9 Dec 2006 17:33:58 -0500 Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions Message-ID: <001d01c71be2$21529e90$6601a8c0@ARCHIBALD> There are really good ideas here, both to patch the config files, and to start from scratch with a preconfig such as XAMPP. Thank you. I'm very much inclined to go the preconfig route at this point, but would appreciate your thoughts about the PHP version. The web sites I support are PHP 4.4.1 & 4.4.2 on Linux. I was hoping to use my Win/XP to test my scripts locally before moving them to the live sites. Any thoughts on compatibility issues if I develop in v5 for deployment on v4.4? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob at madison-atlantic.com Sat Dec 9 23:10:57 2006 From: Bob at madison-atlantic.com (Bob Paul) Date: Sat, 9 Dec 2006 23:10:57 -0500 Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions Message-ID: <000001c71c11$34e47e40$6601a8c0@ARCHIBALD> I just want to thank you all. I dropped back and loaded XAMPP and things are working much better. I still have a lot of tinkering and learning ahead, but that's something I can handle. I was concerned about compatibility with my live web sites (PHP 4.4), but it turns out that XAMPP offers both PHP 4.4 and 5.0, so I should be OK. Thanks again for all your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cmerlo at ncc.edu Sun Dec 10 17:20:45 2006 From: cmerlo at ncc.edu (Christopher R. Merlo) Date: Sun, 10 Dec 2006 17:20:45 -0500 Subject: [nycphp-talk] New IT Courses at Nassau CC Message-ID: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com> Hello friends. My apologies for the cross-posting, but I'm sending the same request to all groups. We are developing two new web programming courses at NCC, and we need some statements from people in management and leadership positions in IT to support the need for these courses, which will teach HTML, JavaScript, CSS, PHP, JSP, and RDBMS interaction with MySQL. If you feel you can help, please e-mail me, and I'll send you the proposed course outlines. Thanks in advance, -c -------------- next part -------------- An HTML attachment was scrubbed... URL: From laeeq38 at yahoo.com Sun Dec 10 18:44:25 2006 From: laeeq38 at yahoo.com (Laeeq Ahmed) Date: Sun, 10 Dec 2006 15:44:25 -0800 (PST) Subject: [nycphp-talk] unsubscribe Message-ID: <20061210234425.55634.qmail@web56409.mail.re3.yahoo.com> ----- Original Message ---- From: Christopher R. Merlo To: NYPHP Talk ; Long Island PHP Users' Group ; LILUG Mailing List Sent: Sunday, December 10, 2006 10:20:45 PM Subject: [nycphp-talk] New IT Courses at Nassau CC Hello friends. My apologies for the cross-posting, but I'm sending the same request to all groups. We are developing two new web programming courses at NCC, and we need some statements from people in management and leadership positions in IT to support the need for these courses, which will teach HTML, JavaScript, CSS, PHP, JSP, and RDBMS interaction with MySQL. If you feel you can help, please e-mail me, and I'll send you the proposed course outlines. Thanks in advance, -c _______________________________________________ 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 ____________________________________________________________________________________ Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken at secdat.com Mon Dec 11 07:53:53 2006 From: ken at secdat.com (Kenneth Downs) Date: Mon, 11 Dec 2006 07:53:53 -0500 Subject: [nycphp-talk] New IT Courses at Nassau CC In-Reply-To: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com> References: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com> Message-ID: <457D54E1.3010800@secdat.com> Christopher R. Merlo wrote: > Hello friends. My apologies for the cross-posting, but I'm sending > the same request to all groups. > > We are developing two new web programming courses at NCC, and we need > some statements from people in management and leadership positions in > IT to support the need for these courses, which will teach HTML, > JavaScript, CSS, PHP, JSP, and RDBMS interaction with MySQL. If you > feel you can help, please e-mail me, and I'll send you the proposed > course outlines. Something that I notice is often missing in whole or in part is an appreciation of architecture-level concerns. In other words, people are often taught how to code, but not *what* to code or *where*. The critical issues of where to place code between the tiers, and how to make such judgements, are often lacking. Another factor that often seems to be missing, strange as it seems, is the simple idea that all programs serve human goals. In other words, some person somewhere is committing time and money to a system, and almost always it is for the purpose of gain. While a good programmer will take pride in the quality of his craftsmanship, it often seems to be missing to take pride in serving the needs of the non-programmer who is depending on you. While this may seem a "soft" issue compared to the nuts-and-bolts of PHP or SQL, it separates a useful employee from a useless one. With those two ideas in mind, a personal beef of mine is the lack of understanding of what a database is and what it can do, so I'm always in favor of more emphasis in that area. Finally, and this may seem strangest of all, the three most productive employees I've ever had knew nothing of our particular technology when I hired them. In each case I hired and attitude and an aptitude and then showed them the language we were using and put them to work. None of them was uneducated, I'm not suggesting no education was needed, but all of them were well grounded in general principles. It seems the course outline suggested above would be a wonderful cornerstone for teaching a lot of very basic CS concepts, which might then produce some general-thinking employment candidates. > > Thanks in advance, > -c > ------------------------------------------------------------------------ > > _______________________________________________ > 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 cderr at simons-rock.edu Mon Dec 11 08:30:20 2006 From: cderr at simons-rock.edu (charlie derr) Date: Mon, 11 Dec 2006 08:30:20 -0500 Subject: [nycphp-talk] New IT Courses at Nassau CC In-Reply-To: <457D54E1.3010800@secdat.com> References: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com> <457D54E1.3010800@secdat.com> Message-ID: <457D5D6C.8000407@simons-rock.edu> Kenneth Downs wrote: > Christopher R. Merlo wrote: >> Hello friends. My apologies for the cross-posting, but I'm sending >> the same request to all groups. >> >> We are developing two new web programming courses at NCC, and we need >> some statements from people in management and leadership positions in >> IT to support the need for these courses, which will teach HTML, >> JavaScript, CSS, PHP, JSP, and RDBMS interaction with MySQL. If you >> feel you can help, please e-mail me, and I'll send you the proposed >> course outlines. > > Something that I notice is often missing in whole or in part is an > appreciation of architecture-level concerns. In other words, people are > often taught how to code, but not *what* to code or *where*. The > critical issues of where to place code between the tiers, and how to > make such judgements, are often lacking. > > Another factor that often seems to be missing, strange as it seems, is > the simple idea that all programs serve human goals. In other words, > some person somewhere is committing time and money to a system, and > almost always it is for the purpose of gain. While a good programmer > will take pride in the quality of his craftsmanship, it often seems to > be missing to take pride in serving the needs of the non-programmer who > is depending on you. While this may seem a "soft" issue compared to the > nuts-and-bolts of PHP or SQL, it separates a useful employee from a > useless one. > > With those two ideas in mind, a personal beef of mine is the lack of > understanding of what a database is and what it can do, so I'm always in > favor of more emphasis in that area. > > Finally, and this may seem strangest of all, the three most productive > employees I've ever had knew nothing of our particular technology when I > hired them. In each case I hired and attitude and an aptitude and then > showed them the language we were using and put them to work. None of > them was uneducated, I'm not suggesting no education was needed, but all > of them were well grounded in general principles. It seems the course > outline suggested above would be a wonderful cornerstone for teaching a > lot of very basic CS concepts, which might then produce some > general-thinking employment candidates. > >> >> Thanks in advance, >> -c >> ------------------------------------------------------------------------ I concur completely. One thing that would have made it obvious that the things you speak of had been considered is if UML had been listed prominently (alongside the programming languages & html). ~c From mailinglists at caseysoftware.com Mon Dec 11 08:45:58 2006 From: mailinglists at caseysoftware.com (Keith Casey) Date: Mon, 11 Dec 2006 08:45:58 -0500 Subject: [nycphp-talk] New IT Courses at Nassau CC In-Reply-To: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com> References: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com> Message-ID: On 12/10/06, Christopher R. Merlo wrote: > We are developing two new web programming courses at NCC, and we need some > statements from people in management and leadership positions in IT to > support the need for these courses, which will teach HTML, JavaScript, CSS, > PHP, JSP, and RDBMS interaction with MySQL. If you feel you can help, > please e-mail me, and I'll send you the proposed course outlines. Personally, I'd like to see new developers have a sense of version control, what it's used for, what it's not good for, etc. I've seen a stunning number of developers - new and old - who don't have clue or have the slightest motivation to use any of them... and this is a problem I've seen in the PHP, Java, and asp worlds. kc -- D. Keith Casey Jr. CEO, CaseySoftware, LLC http://CaseySoftware.com From edwardpotter at gmail.com Mon Dec 11 09:51:02 2006 From: edwardpotter at gmail.com (edward potter) Date: Mon, 11 Dec 2006 09:51:02 -0500 Subject: [nycphp-talk] New IT Courses at Nassau CC In-Reply-To: <457D54E1.3010800@secdat.com> References: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com> <457D54E1.3010800@secdat.com> Message-ID: Some good points, I think it would be cool to glue all these applications into what could be a real project. A web site based on the technologies that drives a Wiki that provides online disaster relief updates from volunteers in the field. They need databases, communications needs, online revenue generating models, communications links, etc. You need to scan RSS feeds, how to write scripts that can chat with a satellite, real time api-google mapping, custom blogs, etc. All the programming languages you are teaching here can be Incorporated into something like that. :-) ed On 12/11/06, Kenneth Downs wrote: > > Christopher R. Merlo wrote: > Hello friends. My apologies for the cross-posting, but I'm sending the same > request to all groups. > > > We are developing two new web programming courses at NCC, and we need some > statements from people in management and leadership positions in IT to > support the need for these courses, which will teach HTML, JavaScript, CSS, > PHP, JSP, and RDBMS interaction with MySQL. If you feel you can help, > please e-mail me, and I'll send you the proposed course outlines. > > Something that I notice is often missing in whole or in part is an > appreciation of architecture-level concerns. In other words, people are > often taught how to code, but not *what* to code or *where*. The critical > issues of where to place code between the tiers, and how to make such > judgements, are often lacking. > > Another factor that often seems to be missing, strange as it seems, is the > simple idea that all programs serve human goals. In other words, some > person somewhere is committing time and money to a system, and almost always > it is for the purpose of gain. While a good programmer will take pride in > the quality of his craftsmanship, it often seems to be missing to take pride > in serving the needs of the non-programmer who is depending on you. While > this may seem a "soft" issue compared to the nuts-and-bolts of PHP or SQL, > it separates a useful employee from a useless one. > > With those two ideas in mind, a personal beef of mine is the lack of > understanding of what a database is and what it can do, so I'm always in > favor of more emphasis in that area. > > Finally, and this may seem strangest of all, the three most productive > employees I've ever had knew nothing of our particular technology when I > hired them. In each case I hired and attitude and an aptitude and then > showed them the language we were using and put them to work. None of them > was uneducated, I'm not suggesting no education was needed, but all of them > were well grounded in general principles. It seems the course outline > suggested above would be a wonderful cornerstone for teaching a lot of very > basic CS concepts, which might then produce some general-thinking employment > candidates. > > > > Thanks in advance, > -c > ________________________________ > > _______________________________________________ > 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 cmerlo at ncc.edu Mon Dec 11 10:40:49 2006 From: cmerlo at ncc.edu (Christopher R. Merlo) Date: Mon, 11 Dec 2006 10:40:49 -0500 Subject: [nycphp-talk] New IT Courses at Nassau CC In-Reply-To: References: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com> <457D54E1.3010800@secdat.com> Message-ID: <946586480612110740le385f5cs54e0a98fdd924972@mail.gmail.com> On 12/11/06, edward potter wrote: Some good points, I think it would be cool to glue all these > applications into what could be a real project. A web site based on > the technologies that drives a Wiki that provides online disaster > relief updates from volunteers in the field. They need databases, > communications needs, online revenue generating models, communications > links, etc. You need to scan RSS feeds, how to write scripts that can > chat with a satellite, real time api-google mapping, custom blogs, > etc. I greatly appreciate all the points you have all raised regarding these classes. Just as a point of information, I think you should all know that the first of these two classes will not be the students' first programming course. It's the third, actually, if I have the prerequisites right in my head. -c -------------- next part -------------- An HTML attachment was scrubbed... URL: From tedd at sperling.com Mon Dec 11 14:25:03 2006 From: tedd at sperling.com (tedd) Date: Mon, 11 Dec 2006 14:25:03 -0500 Subject: [nycphp-talk] New IT Courses at Nassau CC In-Reply-To: References: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com> Message-ID: At 8:45 AM -0500 12/11/06, Keith Casey wrote: >On 12/10/06, Christopher R. Merlo wrote: >>We are developing two new web programming courses at NCC, and we need some >>statements from people in management and leadership positions in IT to >>support the need for these courses, which will teach HTML, JavaScript, CSS, >>PHP, JSP, and RDBMS interaction with MySQL. If you feel you can help, >>please e-mail me, and I'll send you the proposed course outlines. > >Personally, I'd like to see new developers have a sense of version >control, what it's used for, what it's not good for, etc. I've seen a >stunning number of developers - new and old - who don't have clue or >have the slightest motivation to use any of them... and this is a >problem I've seen in the PHP, Java, and asp worlds. > >kc That's what the time/date stamp is for, isn't it? :-) tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From dkov at optonline.net Mon Dec 11 22:49:13 2006 From: dkov at optonline.net (dkov at optonline.net) Date: Tue, 12 Dec 2006 03:49:13 +0000 (GMT) Subject: [nycphp-talk] Cakephp Message-ID: Does anyone use the Cakephp framework? If you do, I have tried using thier session component to create and manage sessions. I have read every bit of information I can find on the internet. I still can't get my sessions working correctly. Please teach me. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nate at cakephp.org Tue Dec 12 12:11:35 2006 From: nate at cakephp.org (Nate Abele) Date: Tue, 12 Dec 2006 12:11:35 -0500 Subject: [nycphp-talk] Re: Cakephp In-Reply-To: <20061212165622.8299C10A806D@cakephp.org> References: <20061212165622.8299C10A806D@cakephp.org> Message-ID: <9C848869-DE27-469D-8B43-70A2D16FEA0F@cakephp.org> Yes, I use the CakePHP framework ;-) Exactly what kind of trouble are you having? Getting errors? Things just aren't saving? Can you paste some code samples? By default, the Session class acts as a wrapper for the $_SESSION variable, so you may want to check and see if that works, because it could just be a PHP problem. Also, FYI, Cake has it's own mailing list (http:// groups.google.com/group/cake-php/) and IRC channel (#cakephp on freenode.net) where you may get more mileage faster (not that this mailing list isn't excellent ;-)). > Date: Tue, 12 Dec 2006 03:49:13 +0000 (GMT) > From: dkov at optonline.net > Subject: [nycphp-talk] Cakephp > > Does anyone use the Cakephp framework? If you do, I have tried > using thier session component to create and manage sessions. I > have read every bit of information I can find on the internet. I > still can't get my sessions working correctly. Please teach me. From chsnyder at gmail.com Tue Dec 12 12:41:12 2006 From: chsnyder at gmail.com (csnyder) Date: Tue, 12 Dec 2006 12:41:12 -0500 Subject: [nycphp-talk] Zend IDE slooooow Message-ID: Any other Windows Zend Studio users experience a marked slowdown in the last couple weeks? Closing open files, for instance, takes seconds per file. Something has definitely changed on my system, but other apps don't seem to be affected. Just wondering if anyone else has experienced this. -- Chris Snyder http://chxo.com/ From chsnyder at gmail.com Tue Dec 12 13:01:01 2006 From: chsnyder at gmail.com (csnyder) Date: Tue, 12 Dec 2006 13:01:01 -0500 Subject: [nycphp-talk] Zend IDE slooooow In-Reply-To: <20061212125105.37d7f95c@bjarne> References: <20061212125105.37d7f95c@bjarne> Message-ID: On 12/12/06, Craig Thomas wrote: > On Tue, 12 Dec 2006 12:41:12 -0500 > csnyder wrote: > > > Any other Windows Zend Studio users experience a marked slowdown in > > the last couple weeks? > > Since yesterday my windows install of Zend Studio wont > even start....(but it's not the only app, Homesite too, so figuring the > box has got something else wrong.) > Sometimes when the IDE won't start, you need to remove the file named "port" in your Documents and Settings\ZDE folder. If the IDE crashes and doesn't remove this file, it can hang on next startup. -- Chris Snyder http://chxo.com/ From cliff at pinestream.com Tue Dec 12 13:03:32 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Tue, 12 Dec 2006 13:03:32 -0500 Subject: [nycphp-talk] Zend IDE slooooow In-Reply-To: Message-ID: <000001c71e17$d6c208b0$12a8a8c0@HirschLaptop> I have had this problem on a randomly recurring basis for ages. Sometimes it does take a while for Studio to close and once in a while it does seem to take a few seconds to "think" between key clicks. When I looked into it a while back, I thought it might have something to do the number of classes and methods that have "awareness" in a project. Try working on a single file, without opening a project, to see if the problem persists. Another thing I've tried when I want to get some serious coding (e.g. coding, not debugging) done, is to shut down every background (and foreground) process I can -- little ones like itunes stuff and Quickbook updaters, but more importantly Apache and MySQL. Does make using the debugger a bit tough though! Running Apache, MySQL, Outlook, FileMaker, Fireworks, Word, etc. while running Zend Studio is a surefire disaster. My two cents... Cliff P.S. I'm using Studio 5.1 -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of csnyder Sent: Tuesday, December 12, 2006 12:41 PM To: NYPHP Talk Subject: [nycphp-talk] Zend IDE slooooow Any other Windows Zend Studio users experience a marked slowdown in the last couple weeks? Closing open files, for instance, takes seconds per file. Something has definitely changed on my system, but other apps don't seem to be affected. Just wondering if anyone else has experienced this. -- 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 From skyline at publicmine.com Tue Dec 12 13:26:18 2006 From: skyline at publicmine.com (Ben Sgro (sk)) Date: Tue, 12 Dec 2006 13:26:18 -0500 Subject: [nycphp-talk] Zend IDE slooooow References: <000001c71e17$d6c208b0$12a8a8c0@HirschLaptop> Message-ID: <008101c71e1b$06b935e0$6401a8c0@gamebox> Hello All, I experianced this problem often when working with projects. It seemed to consume A TON (dont' remember the #'s) of memory till it choked itself. If i opened files and not projects it seemed to last longer. I tried a bunch of different things back then and now I just dont use Zend IDE. I dont like it. Give me Emacs and a few putty windows. Heh, well good luck! - Ben ----- Original Message ----- From: "Cliff Hirsch" To: "'NYPHP Talk'" Sent: Tuesday, December 12, 2006 1:03 PM Subject: RE: [nycphp-talk] Zend IDE slooooow >I have had this problem on a randomly recurring basis for ages. > Sometimes it does take a while for Studio to close and once in a while > it does seem to take a few seconds to "think" between key clicks. > > When I looked into it a while back, I thought it might have something to > do the number of classes and methods that have "awareness" in a project. > Try working on a single file, without opening a project, to see if the > problem persists. > > Another thing I've tried when I want to get some serious coding (e.g. > coding, not debugging) done, is to shut down every background (and > foreground) process I can -- little ones like itunes stuff and Quickbook > updaters, but more importantly Apache and MySQL. Does make using the > debugger a bit tough though! Running Apache, MySQL, Outlook, FileMaker, > Fireworks, Word, etc. while running Zend Studio is a surefire disaster. > > My two cents... > > Cliff > > P.S. I'm using Studio 5.1 > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of csnyder > Sent: Tuesday, December 12, 2006 12:41 PM > To: NYPHP Talk > Subject: [nycphp-talk] Zend IDE slooooow > > Any other Windows Zend Studio users experience a marked slowdown in > the last couple weeks? > > Closing open files, for instance, takes seconds per file. > > Something has definitely changed on my system, but other apps don't > seem to be affected. Just wondering if anyone else has experienced > this. > > -- > 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 > > _______________________________________________ > 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 cliff at pinestream.com Tue Dec 12 13:32:09 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Tue, 12 Dec 2006 13:32:09 -0500 Subject: [nycphp-talk] Zend IDE slooooow In-Reply-To: <008101c71e1b$06b935e0$6401a8c0@gamebox> Message-ID: <001101c71e1b$d52d8930$12a8a8c0@HirschLaptop> I agree that it is probably a memory hog (combined with Java, don't forget), but I do use it successfully on a lowly Pentium III with just 256M of memory. Cliff -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Ben Sgro (sk) Sent: Tuesday, December 12, 2006 1:26 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Zend IDE slooooow Hello All, I experianced this problem often when working with projects. It seemed to consume A TON (dont' remember the #'s) of memory till it choked itself. If i opened files and not projects it seemed to last longer. I tried a bunch of different things back then and now I just dont use Zend IDE. I dont like it. Give me Emacs and a few putty windows. Heh, well good luck! - Ben ----- Original Message ----- From: "Cliff Hirsch" To: "'NYPHP Talk'" Sent: Tuesday, December 12, 2006 1:03 PM Subject: RE: [nycphp-talk] Zend IDE slooooow >I have had this problem on a randomly recurring basis for ages. > Sometimes it does take a while for Studio to close and once in a while > it does seem to take a few seconds to "think" between key clicks. > > When I looked into it a while back, I thought it might have something to > do the number of classes and methods that have "awareness" in a project. > Try working on a single file, without opening a project, to see if the > problem persists. > > Another thing I've tried when I want to get some serious coding (e.g. > coding, not debugging) done, is to shut down every background (and > foreground) process I can -- little ones like itunes stuff and Quickbook > updaters, but more importantly Apache and MySQL. Does make using the > debugger a bit tough though! Running Apache, MySQL, Outlook, FileMaker, > Fireworks, Word, etc. while running Zend Studio is a surefire disaster. > > My two cents... > > Cliff > > P.S. I'm using Studio 5.1 > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On Behalf Of csnyder > Sent: Tuesday, December 12, 2006 12:41 PM > To: NYPHP Talk > Subject: [nycphp-talk] Zend IDE slooooow > > Any other Windows Zend Studio users experience a marked slowdown in > the last couple weeks? > > Closing open files, for instance, takes seconds per file. > > Something has definitely changed on my system, but other apps don't > seem to be affected. Just wondering if anyone else has experienced > this. > > -- > Chris Snyder > http://chxo.com/ From craig at juxtadigital.com Tue Dec 12 12:51:05 2006 From: craig at juxtadigital.com (Craig Thomas) Date: Tue, 12 Dec 2006 12:51:05 -0500 Subject: [nycphp-talk] Zend IDE slooooow In-Reply-To: References: Message-ID: <20061212125105.37d7f95c@bjarne> On Tue, 12 Dec 2006 12:41:12 -0500 csnyder wrote: > Any other Windows Zend Studio users experience a marked slowdown in > the last couple weeks? Since yesterday my windows install of Zend Studio wont even start....(but it's not the only app, Homesite too, so figuring the box has got something else wrong.) From rolan at omnistep.com Tue Dec 12 14:46:04 2006 From: rolan at omnistep.com (Rolan Yang) Date: Tue, 12 Dec 2006 14:46:04 -0500 Subject: [nycphp-talk] Zend IDE slooooow In-Reply-To: <20061212125105.37d7f95c@bjarne> References: <20061212125105.37d7f95c@bjarne> Message-ID: <457F06FC.70305@omnistep.com> Odd to see this happening to everyone at the same time. Try setting the date on your computer back 1 month and see what happens. ~Rolan Craig Thomas wrote: > On Tue, 12 Dec 2006 12:41:12 -0500 > csnyder wrote: > > >> Any other Windows Zend Studio users experience a marked slowdown in >> the last couple weeks? >> > > Since yesterday my windows install of Zend Studio wont > even start....(but it's not the only app, Homesite too, so figuring the > box has got something else wrong.) > ___ From dmintz at davidmintz.org Tue Dec 12 15:24:48 2006 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 12 Dec 2006 15:24:48 -0500 (EST) Subject: [nycphp-talk] Zend IDE slooooow In-Reply-To: <20061212125105.37d7f95c@bjarne> References: <20061212125105.37d7f95c@bjarne> Message-ID: You guys are talking about Windows and I am using Fedora Core IV, but... ZDE has always been a PITA: slowing down, hanging, suspected of hanging the whole system. I am using 5.1.0. I keep wondering if throwing more memory and CPU at it would help. (Are you listening, Santa Claus?) Good thing (or is it bad?) that its many virtues still persuade me to stay with the program. --- 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 jbaer at VillageVoice.com Tue Dec 12 15:31:29 2006 From: jbaer at VillageVoice.com (Baer, Jon) Date: Tue, 12 Dec 2006 15:31:29 -0500 Subject: [nycphp-talk] Zend IDE slooooow In-Reply-To: Message-ID: <4D2FAD9B00577645932AD7ED5FECA24503E6418B@mail> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I would not even be on a Workstation w/ Zend studio < 1 gig of ram. Ive noticed a few hangups w/ networked mounts and SVN repositories. But all in all nothing Im not used to on Windows. I wonder if the latest round of MS problems would not grind networking to a halt on a few networked apps. - - Jon - -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Mintz Sent: Tuesday, December 12, 2006 3:25 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Zend IDE slooooow You guys are talking about Windows and I am using Fedora Core IV, but... ZDE has always been a PITA: slowing down, hanging, suspected of hanging the whole system. I am using 5.1.0. I keep wondering if throwing more memory and CPU at it would help. (Are you listening, Santa Claus?) Good thing (or is it bad?) that its many virtues still persuade me to stay with the program. - --- 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) iD8DBQFFfxGh99e5DI8C/rsRAga/AKDN0QDUvBcvA/+QqVAK5nI8A+PECwCfT35V Z3JjJVGVO/F+sJjDkxGLb40= =BbI5 -----END PGP SIGNATURE----- From chsnyder at gmail.com Tue Dec 12 16:38:23 2006 From: chsnyder at gmail.com (csnyder) Date: Tue, 12 Dec 2006 16:38:23 -0500 Subject: [nycphp-talk] Re: Zend IDE slooooow In-Reply-To: References: Message-ID: Thanks for everyone's responses, this is just something that happened in the last couple weeks. I've seen the stability probs on Linux, it feels like a Java app, etc. I can live with all that because it does what I need it to do, and I have plenty of memory for it to play in. It sounds as if it's local to my workstation. I don't know if that changes my approach to the problem, but at least I can rule out waiting on bugfix release. -- Chris Snyder http://chxo.com/ From craig at juxtadigital.com Tue Dec 12 20:06:54 2006 From: craig at juxtadigital.com (Craig Thomas) Date: Tue, 12 Dec 2006 20:06:54 -0500 Subject: [nycphp-talk] Zend IDE slooooow In-Reply-To: References: <20061212125105.37d7f95c@bjarne> Message-ID: <20061212200654.57ede0f1@localhost.localdomain> On Tue, 12 Dec 2006 15:24:48 -0500 (EST) David Mintz wrote: > > You guys are talking about Windows and I am using Fedora Core IV, > but... ZDE has always been a PITA: slowing down, hanging, suspected > of hanging the whole system. I am using 5.1.0. I keep wondering if > throwing more memory and CPU at it would help. (Are you listening, > Santa Claus?) Hm, I use Zend Studio with Fedora Core 6 and it works great(hate to work w/o it...)...I have a P4/1GB ram, so nothing special. > Good thing (or is it bad?) that its many virtues still persuade me to > stay with the program. IMHO, it's a 'good thing' this ZDE. Eclipse has a long way to go to catch up (but it will surpass, in time, I think)...now if Zend Studio could just generate getters and setters! From ramons at gmx.net Tue Dec 12 21:07:01 2006 From: ramons at gmx.net (David Krings) Date: Tue, 12 Dec 2006 21:07:01 -0500 Subject: [nycphp-talk] Zend IDE slooooow In-Reply-To: <20061212200654.57ede0f1@localhost.localdomain> References: <20061212125105.37d7f95c@bjarne> <20061212200654.57ede0f1@localhost.localdomain> Message-ID: <457F6045.10303@gmx.net> Hi, for those who look for a good alternative IDE, try Luckasoft's EngInSite PHP Editor. A professional IDE and not even expensive. I tried many PHP IDEs and find EngInSite to be the best. Agreed, there are some things that could be better, but Mr. Lucka is very responsive when it comes to improving the Editor. Just my 2 cents.... David From dmintz at davidmintz.org Tue Dec 12 21:13:20 2006 From: dmintz at davidmintz.org (David Mintz) Date: Tue, 12 Dec 2006 21:13:20 -0500 (EST) Subject: [nycphp-talk] OT (totally): why the Edvard Munch on Google? Message-ID: Anybody know why Google has The Scream up there today? --- 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 jay at wnymusic.com Tue Dec 12 21:16:51 2006 From: jay at wnymusic.com (Jay) Date: Tue, 12 Dec 2006 21:16:51 -0500 Subject: [nycphp-talk] OT (totally): why the Edvard Munch on Google? In-Reply-To: References: Message-ID: >From the first hit on Google: http://www.ibiblio.org/wm/paint/auth/munch/ Edvard Munch b. Dec. 12, 1863, L?ten, Nor.--d. Jan. 23, 1944, Ekely, near Oslo It's good old Edvard's b-day! On 12/12/06, David Mintz wrote: > > Anybody know why Google has The Scream up there today? > > --- > 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 jonbaer at jonbaer.com Tue Dec 12 23:54:30 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Tue, 12 Dec 2006 23:54:30 -0500 Subject: [nycphp-talk] [ot] Nice little reference site Message-ID: <9B3B2B1F-D516-4F00-9AE2-2CC0E38D5676@jonbaer.com> For when one reference/cheatsheet is just not enough ... http://www.gotapi.com - Jon From cliff at pinestream.com Wed Dec 13 10:43:58 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Wed, 13 Dec 2006 10:43:58 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment platforms Message-ID: <000e01c71ecd$81b68560$2b00000a@HirschLaptop> After this flurry of ZEND IDE problems, my laptop's 10 minute battery life, 256M of RAM, overheating, etc., I'm thinking it's finally time to get a new laptop. And I'm thinking of bailing Windows to get a Macbook pro or just a regular macbook. Is anyone using Zend on an Intel-based Macbook? Any problems? Good development environment? Any comments regarding the Macbook vs Mackbook pro? Chanukah is only two days away. Cliff -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff.knight at gmail.com Wed Dec 13 11:05:22 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Wed, 13 Dec 2006 10:05:22 -0600 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment platforms In-Reply-To: <000e01c71ecd$81b68560$2b00000a@HirschLaptop> References: <000e01c71ecd$81b68560$2b00000a@HirschLaptop> Message-ID: <2ca9ba910612130805y7f4cd2d0m7e4a8588f00c8dcd@mail.gmail.com> I'm running it on a Mac Pro desktop and was just mocking Snyder because 5.5 runs fast and smoothly for me. On 12/13/06, Cliff Hirsch wrote: > > > > > After this flurry of ZEND IDE problems, my laptop's 10 minute battery life, > 256M of RAM, overheating, etc., I'm thinking it's finally time to get a new > laptop. And I'm thinking of bailing Windows to get a Macbook pro or just a > regular macbook. > > > > Is anyone using Zend on an Intel-based Macbook? Any problems? Good > development environment? Any comments regarding the Macbook vs Mackbook pro? > > > > Chanukah is only two days away? > > > > 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 > > From phplists at jellyandcustard.com Wed Dec 13 11:08:06 2006 From: phplists at jellyandcustard.com (Khalid Hanif) Date: Wed, 13 Dec 2006 16:08:06 +0000 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment platforms In-Reply-To: <000e01c71ecd$81b68560$2b00000a@HirschLaptop> References: <000e01c71ecd$81b68560$2b00000a@HirschLaptop> Message-ID: Hi Cliff, I have been using Zend IDE for a few years now on OS X on a powerbook, and more recently, a Mac Pro and a Macbook Pro. On the Mac Pro, the IDE is lightning fast (as one would expect). On the 2ghz Intel Core Duo Macbook Pro, the IDE is a delight to work with, and no noticeable problems. I have 1gb Ram, and usually have Mail, Firefox, iTunes, Transmit (FTP), Adium (MSN Chat) and a few other small programs running alongside it. Zend is also saving/opening files over an NFS mount on a local network. Java support on the Apple Mac is a lot better / faster in my experience over windows. Rgds, Khalid On 13 Dec 2006, at 15:43, Cliff Hirsch wrote: > After this flurry of ZEND IDE problems, my laptop?s 10 minute > battery life, 256M of RAM, overheating, etc., I?m thinking it?s > finally time to get a new laptop. And I?m thinking of bailing > Windows to get a Macbook pro or just a regular macbook. > > > > Is anyone using Zend on an Intel-based Macbook? Any problems? Good > development environment? Any comments regarding the Macbook vs > Mackbook pro? > > > > Chanukah is only two days away? > > > > 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 jonbaer at jonbaer.com Wed Dec 13 11:07:35 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Wed, 13 Dec 2006 11:07:35 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment platforms In-Reply-To: <000e01c71ecd$81b68560$2b00000a@HirschLaptop> References: <000e01c71ecd$81b68560$2b00000a@HirschLaptop> Message-ID: <3D00A091-8B4B-4C7F-92C1-2632F3A0C8BE@jonbaer.com> The 'coherence mode' in the new Parallels desktop alone is worth a Macbook Pro. Zend Studio on the Mac is pretty much all the same (w/ the exception of Aqua-ized scrollbars). You may need to update to latest JVM when you get it though, I believe Studio requires the latest. - Jon On Dec 13, 2006, at 10:43 AM, Cliff Hirsch wrote: > After this flurry of ZEND IDE problems, my laptop?s 10 minute > battery life, 256M of RAM, overheating, etc., I?m thinking it?s > finally time to get a new laptop. And I?m thinking of bailing > Windows to get a Macbook pro or just a regular macbook. > > > > Is anyone using Zend on an Intel-based Macbook? Any problems? Good > development environment? Any comments regarding the Macbook vs > Mackbook pro? > > > > Chanukah is only two days away? > > > > 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 pyurt at yahoo.com Wed Dec 13 11:07:48 2006 From: pyurt at yahoo.com (P Yurt) Date: Wed, 13 Dec 2006 08:07:48 -0800 (PST) Subject: [nycphp-talk] Re: Zend IDE slooooow Message-ID: <836103.96974.qm@web52213.mail.yahoo.com> I did read somewhere that Preferences "OS Look and Feel" can cause extreme slowdown. Try switching it. Explore the Evolving Web www.2.0websites.com Paul Yurt, Publisher paul(@)2.0websites.com 480-585-0007 -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of csnyder Sent: Tuesday, December 12, 2006 2:38 PM To: NYPHP Talk Subject: [nycphp-talk] Re: Zend IDE slooooow Thanks for everyone's responses, this is just something that happened in the last couple weeks. I've seen the stability probs on Linux, it feels like a Java app, etc. I can live with all that because it does what I need it to do, and I have plenty of memory for it to play in. It sounds as if it's local to my workstation. I don't know if that changes my approach to the problem, but at least I can rule out waiting on bugfix release. -- 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 From mwithington at PLMresearch.com Wed Dec 13 11:10:18 2006 From: mwithington at PLMresearch.com (Mark Withington) Date: Wed, 13 Dec 2006 11:10:18 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment platforms In-Reply-To: <000e01c71ecd$81b68560$2b00000a@HirschLaptop> References: <000e01c71ecd$81b68560$2b00000a@HirschLaptop> Message-ID: <491198290612130810l72da85a8o2a386c2339c8e98a@mail.gmail.com> Cliff, I'm about 3 weeks ahead of you. The MacBook Pro is great! Run it with Parallels and you can develop in both Windoz and OSX (nice for browser output comparison). OSX comes with PHP 4.x so you'll have to upgrade if you want 5.x - mysql needs to be installed. OSX also comes with Apache 1.x. I'm in the process of installing Zend (appears to work w/out a problem). Note: OSX is a gui friendly version of FreeBSD. The upside is it's Unix, the downside is there a learning curve if you're not a Unix guy. In general - jump in, the water is great! On 12/13/06, Cliff Hirsch wrote: > > After this flurry of ZEND IDE problems, my laptop's 10 minute battery > life, 256M of RAM, overheating, etc., I'm thinking it's finally time to get > a new laptop. And I'm thinking of bailing Windows to get a Macbook pro or > just a regular macbook. > > > > Is anyone using Zend on an Intel-based Macbook? Any problems? Good development > environment? Any comments regarding the Macbook vs Mackbook pro? > > > > Chanukah is only two days away? > > > > 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 > > -- Mark -------------------------- Mark L. Withington PLMresearch PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 ext. 704 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 Skype: 508-570-2285 http://www.PLMresearch.com AIM/MSN/Skype: PLMresearch mwithington at plmresearch.com Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From cliff at pinestream.com Wed Dec 13 11:22:39 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Wed, 13 Dec 2006 11:22:39 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develomentplatforms In-Reply-To: Message-ID: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop> I'm almost sold. Last question: Be cheap and get the MacBook or spring for the Pro? -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Khalid Hanif Sent: Wednesday, December 13, 2006 11:08 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Zend IDE problems and the Apple MACs as develomentplatforms Hi Cliff, I have been using Zend IDE for a few years now on OS X on a powerbook, and more recently, a Mac Pro and a Macbook Pro. On the Mac Pro, the IDE is lightning fast (as one would expect). On the 2ghz Intel Core Duo Macbook Pro, the IDE is a delight to work with, and no noticeable problems. I have 1gb Ram, and usually have Mail, Firefox, iTunes, Transmit (FTP), Adium (MSN Chat) and a few other small programs running alongside it. Zend is also saving/opening files over an NFS mount on a local network. Java support on the Apple Mac is a lot better / faster in my experience over windows. Rgds, Khalid On 13 Dec 2006, at 15:43, Cliff Hirsch wrote: After this flurry of ZEND IDE problems, my laptop's 10 minute battery life, 256M of RAM, overheating, etc., I'm thinking it's finally time to get a new laptop. And I'm thinking of bailing Windows to get a Macbook pro or just a regular macbook. Is anyone using Zend on an Intel-based Macbook? Any problems? Good development environment? Any comments regarding the Macbook vs Mackbook pro? Chanukah is only two days away. 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 jeff.knight at gmail.com Wed Dec 13 11:40:52 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Wed, 13 Dec 2006 10:40:52 -0600 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develomentplatforms In-Reply-To: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop> References: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop> Message-ID: <2ca9ba910612130840o781d7dc2la01705466959bc9b@mail.gmail.com> Its your money, but I'd say spring. While I don't have any personal experience with either of the current models, historically their consumer models have never been quite worth it. On 12/13/06, Cliff Hirsch wrote: > I'm almost sold. Last question: > > Be cheap and get the MacBook or spring for the Pro? From mwithington at PLMresearch.com Wed Dec 13 12:04:14 2006 From: mwithington at PLMresearch.com (Mark Withington) Date: Wed, 13 Dec 2006 12:04:14 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develomentplatforms In-Reply-To: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop> References: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop> Message-ID: <491198290612130904i50bfd00ak43cb4eb53c2ddffb@mail.gmail.com> Go Pro. It's about the same amount once you get it configured with ram, hard disk, etc. On 12/13/06, Cliff Hirsch wrote: > > I'm almost sold. Last question: > > > > Be cheap and get the MacBook or spring for the Pro? > > > > > > -----Original Message----- > *From:* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > *On Behalf Of *Khalid Hanif > *Sent:* Wednesday, December 13, 2006 11:08 AM > *To:* NYPHP Talk > *Subject:* Re: [nycphp-talk] Zend IDE problems and the Apple MACs as > develomentplatforms > > > > Hi Cliff, > > > > I have been using Zend IDE for a few years now on OS X on a powerbook, and > more recently, a Mac Pro and a Macbook Pro. On the Mac Pro, the IDE is > lightning fast (as one would expect). On the 2ghz Intel Core Duo Macbook > Pro, the IDE is a delight to work with, and no noticeable problems. I have > 1gb Ram, and usually have Mail, Firefox, iTunes, Transmit (FTP), Adium (MSN > Chat) and a few other small programs running alongside it. Zend is also > saving/opening files over an NFS mount on a local network. > > > > Java support on the Apple Mac is a lot better / faster in my experience > over windows. > > > > Rgds, > > Khalid > > > > On 13 Dec 2006, at 15:43, Cliff Hirsch wrote: > > > > After this flurry of ZEND IDE problems, my laptop's 10 minute battery > life, 256M of RAM, overheating, etc., I'm thinking it's finally time to get > a new laptop. And I'm thinking of bailing Windows to get a Macbook pro or > just a regular macbook. > > > > Is anyone using Zend on an Intel-based Macbook? Any problems? Good > development environment? Any comments regarding the Macbook vs Mackbookpro? > > > > Chanukah is only two days away? > > > > 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 > > -- Mark -------------------------- Mark L. Withington PLMresearch PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 ext. 704 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 Skype: 508-570-2285 http://www.PLMresearch.com AIM/MSN/Skype: PLMresearch mwithington at plmresearch.com Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Wed Dec 13 12:23:47 2006 From: chsnyder at gmail.com (csnyder) Date: Wed, 13 Dec 2006 12:23:47 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment platforms In-Reply-To: <2ca9ba910612130805y7f4cd2d0m7e4a8588f00c8dcd@mail.gmail.com> References: <000e01c71ecd$81b68560$2b00000a@HirschLaptop> <2ca9ba910612130805y7f4cd2d0m7e4a8588f00c8dcd@mail.gmail.com> Message-ID: On 12/13/06, Jeff Knight wrote: > I'm running it on a Mac Pro desktop and was just mocking Snyder > because 5.5 runs fast and smoothly for me. I don't feel mocked. I noticed the slowdown at work because I use ZDE on a MacBook Pro at home. A much better experience, imho, except that I use a custom key mapping because the default shortcuts are different between platforms. -- Chris Snyder http://chxo.com/ From cliff at pinestream.com Wed Dec 13 13:01:17 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Wed, 13 Dec 2006 13:01:17 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develomentplatforms In-Reply-To: <491198290612130810l72da85a8o2a386c2339c8e98a@mail.gmail.com> Message-ID: <000001c71ee0$b04f8ee0$12a8a8c0@HirschLaptop> Is Parallels the way to go to run Windows on a MAC? Don't bother with the Apple or any other solution? -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Mark Withington Sent: Wednesday, December 13, 2006 11:10 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Zend IDE problems and the Apple MACs as develomentplatforms Cliff, I'm about 3 weeks ahead of you. The MacBook Pro is great! Run it with Parallels and you can develop in both Windoz and OSX (nice for browser output comparison). OSX comes with PHP 4.x so you'll have to upgrade if you want 5.x - mysql needs to be installed. OSX also comes with Apache 1.x. I'm in the process of installing Zend (appears to work w/out a problem). Note: OSX is a gui friendly version of FreeBSD. The upside is it's Unix, the downside is there a learning curve if you're not a Unix guy. In general - jump in, the water is great! On 12/13/06, Cliff Hirsch wrote: After this flurry of ZEND IDE p roblems, my lap top 's 10 minute battery life, 256M of RAM, overheating, etc., I'm thinking it's finally time to get a new lapto p. And I'm thinking of bailing Windows to get a Macbook p ro or just a regular macbook. Is anyone using Zend on an Intel-based Macbook? Any p roblems? Good develop ment environment? Any comments regarding the Macbook vs Mackbook p ro? Chanukah is only two days away. 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 -- Mark -------------------------- Mark L. Withington PLMresearch PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 ext. 704 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 Skype: 508-570-2285 http://www.PLMresearch.com AIM/MSN/Skype: PLMresearch mwithington at plmresearch.com Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From mwithington at PLMresearch.com Wed Dec 13 13:13:48 2006 From: mwithington at PLMresearch.com (Mark Withington) Date: Wed, 13 Dec 2006 13:13:48 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develomentplatforms In-Reply-To: <000001c71ee0$b04f8ee0$12a8a8c0@HirschLaptop> References: <491198290612130810l72da85a8o2a386c2339c8e98a@mail.gmail.com> <000001c71ee0$b04f8ee0$12a8a8c0@HirschLaptop> Message-ID: <491198290612131013q25521619j158b1db3c7c28401@mail.gmail.com> I'm told you can boot-up in Windows, parallels let's you run them both (osx and win) at the same time - which is nice when you're doing gui stuff and want to see what it looks like on ie, safari, etc. On 12/13/06, Cliff Hirsch wrote: > > Is Parallels the way to go to run Windows on a MAC? Don't bother with the > Apple or any other solution? > > > > -----Original Message----- > *From:* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > *On Behalf Of *Mark Withington > *Sent:* Wednesday, December 13, 2006 11:10 AM > > *To:* NYPHP Talk > *Subject:* Re: [nycphp-talk] Zend IDE problems and the Apple MACs as > develomentplatforms > > > > Cliff, I'm about 3 weeks ahead of you. The MacBook Pro is great! Run it > with Parallels and you can develop in both Windoz and OSX (nice for browser > output comparison). OSX comes with PHP 4.x so you'll have to upgrade if > you want 5.x - mysql needs to be installed. OSX also comes with Apache > 1.x. I'm in the process of installing Zend (appears to work w/out a > problem). > > Note: OSX is a gui friendly version of FreeBSD. The upside is it's Unix, > the downside is there a learning curve if you're not a Unix guy. > > In general - jump in, the water is great! > > On 12/13/06, *Cliff Hirsch* wrote: > > After this flurry of ZEND IDE p roblems, my lap top 's 10 minute battery > life, 256M of RAM, overheating, etc., I'm thinking it's finally time to get > a new lapto p. And I'm thinking of bailing Windows to get a Macbook p ro or > just a regular macbook. > > > > Is anyone using Zend on an Intel-based Macbook? Any p roblems? Good > develop ment environment? Any comments regarding the Macbook vs Mackbook p > ro? > > > > Chanukah is only two days away? > > > > 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 > > > > > -- > Mark > > -------------------------- > Mark L. Withington > PLMresearch > PO Box 1354 > Plymouth, MA 02362 > o: 800-310-3992 ext. 704 > f: 508-746-4973 > v: 508-746-2383 > m: 508-801-0181 > Skype: 508-570-2285 > http://www.PLMresearch.com > AIM/MSN/Skype: PLMresearch > mwithington at plmresearch.com > Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc > Calendar: http://www.plmresearch.com/calendar.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 > > -- Mark -------------------------- Mark L. Withington PLMresearch PO Box 1354 Plymouth, MA 02362 o: 800-310-3992 ext. 704 f: 508-746-4973 v: 508-746-2383 m: 508-801-0181 Skype: 508-570-2285 http://www.PLMresearch.com AIM/MSN/Skype: PLMresearch mwithington at plmresearch.com Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc Calendar: http://www.plmresearch.com/calendar.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at tmcode.com Wed Dec 13 13:27:48 2006 From: tim at tmcode.com (Tim McEwen) Date: Wed, 13 Dec 2006 13:27:48 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develomentplatforms In-Reply-To: <000001c71ee0$b04f8ee0$12a8a8c0@HirschLaptop> References: <000001c71ee0$b04f8ee0$12a8a8c0@HirschLaptop> Message-ID: <4B8DBCAE-8C98-45AC-93B4-5B2D9761A220@tmcode.com> With the latest Parallels you can actually use the same partition/ windows install for Bootcamp and Parallels. That way you can stay in osx most of the time and only reboot into Bootcamp if you need better hardware support (games?) Personally, I have parallels open all the time (testing soap compatibility between .Net and PHP) and rarely reboot into bootcamp. Visual studio runs great and everything feels snappy in windows. If you are going to use several os x apps (specially ZDE, mail and firefox) at the same times at parallels you really need 2 gigs of ram. -Tim On Dec 13, 2006, at 1:01 PM, Cliff Hirsch wrote: > Is Parallels the way to go to run Windows on a MAC? Don?t bother > with the Apple or any other solution? > > > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk- > bounces at lists.nyphp.org] On Behalf Of Mark Withington > Sent: Wednesday, December 13, 2006 11:10 AM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Zend IDE problems and the Apple MACs as > develomentplatforms > > > > Cliff, I'm about 3 weeks ahead of you. The MacBook Pro is great! > Run it with Parallels and you can develop in both Windoz and OSX > (nice for browser output comparison). OSX comes with PHP 4.x so > you'll have to upgrade if you want 5.x - mysql needs to be > installed. OSX also comes with Apache 1.x. I'm in the process of > installing Zend (appears to work w/out a problem). > > Note: OSX is a gui friendly version of FreeBSD. The upside is > it's Unix, the downside is there a learning curve if you're not a > Unix guy. > > In general - jump in, the water is great! > > On 12/13/06, Cliff Hirsch wrote: > > After this flurry of ZEND IDE p roblems, my lap top 's 10 minute > battery life, 256M of RAM, overheating, etc., I'm thinking it's > finally time to get a new lapto p. And I'm thinking of bailing > Windows to get a Macbook p ro or just a regular macbook. > > > > Is anyone using Zend on an Intel-based Macbook? Any p roblems? Good > develop ment environment? Any comments regarding the Macbook vs > Mackbook p ro? > > > > Chanukah is only two days away? > > > > 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 > > > > > -- > Mark > > -------------------------- > Mark L. Withington > PLMresearch > PO Box 1354 > Plymouth, MA 02362 > o: 800-310-3992 ext. 704 > f: 508-746-4973 > v: 508-746-2383 > m: 508-801-0181 > Skype: 508-570-2285 > http://www.PLMresearch.com > AIM/MSN/Skype: PLMresearch > mwithington at plmresearch.com > Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc > Calendar: http://www.plmresearch.com/calendar.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 tboyden at supercoups.com Wed Dec 13 13:37:28 2006 From: tboyden at supercoups.com (Timothy Boyden) Date: Wed, 13 Dec 2006 13:37:28 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs asdevelomentplatforms In-Reply-To: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop> Message-ID: The main differences between the Macbook and Macbook Pro is: Screen size: 13" vs. 15" Video Card: Intel integrated vs. ATI Radeon Mobility Price: $1499 vs. $1999 If you don't need the extra 40 GB of HD space or the Black color, you can save another $200 with the mid-range Macbook. I definitely recommend maxing out the RAM to 2 GB with the Macbook if you're going to use Parallels. Get the extra RAM via aftermarket - it's less expensive. I run a Black Macbook though not with Zend, and it's noticeably faster then even some of the newer Dell Dimension desktops with Core 2 Duo processors. Sure it maybe a little slower for games or high-end work in Photoshop with the integrated graphics card, but for programming, you won't even notice it. Plus when Apple switches platforms in another 3 years again you won't be pissed you spent the extra money on the thing! ;-p -Tim --------------------------- Timothy Boyden Network Administrator tboyden at supercoups.com SuperCoups(r) | 350 Revolutionary Drive | E. Taunton, MA 02718 508-977-2034 | www.supercoups.com --------------------------- ________________________________ From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Cliff Hirsch Sent: Wednesday, December 13, 2006 11:23 AM To: 'NYPHP Talk' Subject: RE: [nycphp-talk] Zend IDE problems and the Apple MACs asdevelomentplatforms I'm almost sold. Last question: Be cheap and get the MacBook or spring for the Pro? -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Khalid Hanif Sent: Wednesday, December 13, 2006 11:08 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Zend IDE problems and the Apple MACs as develomentplatforms Hi Cliff, I have been using Zend IDE for a few years now on OS X on a powerbook, and more recently, a Mac Pro and a Macbook Pro. On the Mac Pro, the IDE is lightning fast (as one would expect). On the 2ghz Intel Core Duo Macbook Pro, the IDE is a delight to work with, and no noticeable problems. I have 1gb Ram, and usually have Mail, Firefox, iTunes, Transmit (FTP), Adium (MSN Chat) and a few other small programs running alongside it. Zend is also saving/opening files over an NFS mount on a local network. Java support on the Apple Mac is a lot better / faster in my experience over windows. Rgds, Khalid On 13 Dec 2006, at 15:43, Cliff Hirsch wrote: After this flurry of ZEND IDE problems, my laptop's 10 minute battery life, 256M of RAM, overheating, etc., I'm thinking it's finally time to get a new laptop. And I'm thinking of bailing Windows to get a Macbook pro or just a regular macbook. Is anyone using Zend on an Intel-based Macbook? Any problems? Good development environment? Any comments regarding the Macbook vs Mackbook pro? Chanukah is only two days away... 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 jeff.loiselle at gmail.com Wed Dec 13 14:29:47 2006 From: jeff.loiselle at gmail.com (Jeff Loiselle) Date: Wed, 13 Dec 2006 14:29:47 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develomentplatforms In-Reply-To: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop> References: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop> Message-ID: <4b1887110612131129o5f7638fckea90ef630d9a477a@mail.gmail.com> I don't mean to rain on everyone's parade.. but I've had my MacBook Pro since April and it's already been in the shop twice in the last 4 weeks for broken fans. I love the thing and all, but is literally the first laptop I've owned that I've ever had to send in for service. Surf YouTube for MacBook pro noises to hear the wails and screams that some of them make. Otherwise, I'd say go for it. Zend works great when the fans aren't eroding the inner casing. From mailinglists at caseysoftware.com Wed Dec 13 14:32:26 2006 From: mailinglists at caseysoftware.com (Keith Casey) Date: Wed, 13 Dec 2006 14:32:26 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment platforms In-Reply-To: <3D00A091-8B4B-4C7F-92C1-2632F3A0C8BE@jonbaer.com> References: <000e01c71ecd$81b68560$2b00000a@HirschLaptop> <3D00A091-8B4B-4C7F-92C1-2632F3A0C8BE@jonbaer.com> Message-ID: On 12/13/06, Jon Baer wrote: > The 'coherence mode' in the new Parallels desktop alone is worth a Macbook > Pro. Zend Studio on the Mac is pretty much all the same (w/ the exception > of Aqua-ized scrollbars). You may need to update to latest JVM when you get > it though, I believe Studio requires the latest. Java 6 (or 1.6 if you're keeping track) was released two days ago... anyone try it with that yet? All of my Java apps (servlets on Tomcat) are already running 20-40% faster. It'd be nice if the Zend IDE was the same... keith -- D. Keith Casey Jr. CEO, CaseySoftware, LLC http://CaseySoftware.com From chsnyder at gmail.com Wed Dec 13 18:01:51 2006 From: chsnyder at gmail.com (csnyder) Date: Wed, 13 Dec 2006 18:01:51 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develomentplatforms In-Reply-To: <4b1887110612131129o5f7638fckea90ef630d9a477a@mail.gmail.com> References: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop> <4b1887110612131129o5f7638fckea90ef630d9a477a@mail.gmail.com> Message-ID: On 12/13/06, Jeff Loiselle wrote: > I don't mean to rain on everyone's parade.. but I've had my MacBook > Pro since April and it's already been in the shop twice in the last 4 > weeks for broken fans. I love the thing and all, but is literally the > first laptop I've owned that I've ever had to send in for service. > > Surf YouTube for MacBook pro noises to hear the wails and screams that > some of them make. > > Otherwise, I'd say go for it. Zend works great when the fans aren't > eroding the inner casing. Fewer problems with more recent units, but Apple's quality control is obviously not what it once was. I highly recommend smcFanControl to set a minimum threshold fan speed on your MacBook Pro. Apple _should_ provide a control panel for it, but they don't. Real shame, too, because the motherboard is apparently capable of much fine tuning when it comes to power consumption, chip speed, temperature and the like. -- Chris Snyder http://chxo.com/ From paul at devonianfarm.com Wed Dec 13 18:10:48 2006 From: paul at devonianfarm.com (Paul Houle) Date: Wed, 13 Dec 2006 18:10:48 -0500 Subject: [nycphp-talk] Cakephp In-Reply-To: References: Message-ID: <45808878.5040108@devonianfarm.com> dkov at optonline.net wrote: > Does anyone use the Cakephp framework? If you do, I have tried using > thier session component to create and manage sessions. I have read > every bit of information I can find on the internet. I still can't > get my sessions working correctly. Please teach me. I avoid session variables -- most applications that use session variables are "broken by design". If you do manage to get sessions to work, the next thing you'll be asking us is how to disable the back button. The "stateless" paradigm of web programming is responsible for many of it's advantages: the reasons why we're writing web-based business apps instead of other applications. It turns out that the behavior of cookies in mainstream web browsers are largely undocumented; it's bad enough if you've got control of the cookies that you're sticking on people, but things get really mysterious when some library you don't control is doing it. PHP locks the $_SESSION variable when it's in use -- this causes lots of problems for apps that have multiple frames, use AJAX, etc. If you want to write reliable web apps, keep your "session" state in well-engineered database tables, and use signed cookies to attach a session id to users. You'll spend a less time dealing with mysterious behavior on the part of the $_SESSION object. From cliff at pinestream.com Wed Dec 13 18:06:02 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Wed, 13 Dec 2006 18:06:02 -0500 Subject: [nycphp-talk] Zend IDE problems and the Apple MACs asdevelomentplatforms In-Reply-To: Message-ID: <000701c71f0b$42ca1630$12a8a8c0@HirschLaptop> Or you can do what I do for my wintel machine. I bought a case of instant coldpaks! -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of csnyder Sent: Wednesday, December 13, 2006 6:02 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Zend IDE problems and the Apple MACs asdevelomentplatforms On 12/13/06, Jeff Loiselle wrote: > I don't mean to rain on everyone's parade.. but I've had my MacBook > Pro since April and it's already been in the shop twice in the last 4 > weeks for broken fans. I love the thing and all, but is literally the > first laptop I've owned that I've ever had to send in for service. > > Surf YouTube for MacBook pro noises to hear the wails and screams that > some of them make. > > Otherwise, I'd say go for it. Zend works great when the fans aren't > eroding the inner casing. Fewer problems with more recent units, but Apple's quality control is obviously not what it once was. I highly recommend smcFanControl to set a minimum threshold fan speed on your MacBook Pro. Apple _should_ provide a control panel for it, but they don't. Real shame, too, because the motherboard is apparently capable of much fine tuning when it comes to power consumption, chip speed, temperature and the like. -- 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 From chsnyder at gmail.com Wed Dec 13 18:12:38 2006 From: chsnyder at gmail.com (csnyder) Date: Wed, 13 Dec 2006 18:12:38 -0500 Subject: [nycphp-talk] Re: Zend IDE slooooow In-Reply-To: <836103.96974.qm@web52213.mail.yahoo.com> References: <836103.96974.qm@web52213.mail.yahoo.com> Message-ID: On 12/13/06, P Yurt wrote: > I did read somewhere that Preferences "OS Look and Feel" can > cause extreme > slowdown. Try switching it. > +1 good tip. Didn't speed up the ops that got slower recently, but sped everything else up so I don't really notice any more. From jonbaer at jonbaer.com Wed Dec 13 23:18:33 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Wed, 13 Dec 2006 23:18:33 -0500 Subject: [nycphp-talk] Zend Studio 5.5 on JSE6 (fast) Message-ID: http://developer.apple.com/java/ I just downloaded Java SE 6.0 Release 1 Developer Preview 6 from the ADC, symlinked it to Current version and have to say that Zend Studio is running much faster even on just a PowerBookG4, can only imagine what it feels like on Intel. It has that fast no-lag non-aliased Windows feel. Im impressed. Going to try out Eclipse and RadRails as well. Thanks for the tip! - Jon From ashaw at polymerdb.org Thu Dec 14 11:44:16 2006 From: ashaw at polymerdb.org (Allen Shaw) Date: Thu, 14 Dec 2006 10:44:16 -0600 Subject: [nycphp-talk] session variables "evil"? (was: re: Cakephp) In-Reply-To: <45808878.5040108@devonianfarm.com> References: <45808878.5040108@devonianfarm.com> Message-ID: <45817F60.5080900@polymerdb.org> Paul Houle wrote: > most applications that use session variables are "broken by design". > Really? That's a surprising assertion, though I'll agree my surprise probably comes more from my own lack of insight than a flaw in your argument. Of course a quick google shows a few people hold that session vars are "evil," but I can't find much to back up the idea. Can you elaborate, or give us a few links on the topic? (BTW, Paul, I'm sure you're not speaking without experience, just want to clarify my own understanding a little more.) - Allen -- Allen Shaw Polymer (http://polymerdb.org) slidePresenter (http://slides.sourceforge.net) From support at dailytechnology.net Thu Dec 14 11:49:22 2006 From: support at dailytechnology.net (Brian Dailey) Date: Thu, 14 Dec 2006 11:49:22 -0500 Subject: [nycphp-talk] session variables "evil"? In-Reply-To: <45817F60.5080900@polymerdb.org> References: <45808878.5040108@devonianfarm.com> <45817F60.5080900@polymerdb.org> Message-ID: <45818092.4040409@dailytechnology.net> I've been writing PHP for years now, and this is the first time I've been aware of anyone complaining about oddities with $_SESSION (granted, I use it for little else than tracking user information). What sort of "oddities" have you seen? - Brian Allen Shaw wrote: > Paul Houle wrote: >> most applications that use session variables are "broken by design". >> > > Really? That's a surprising assertion, though I'll agree my surprise > probably comes more from my own lack of insight than a flaw in your > argument. Of course a quick google shows a few people hold that session > vars are "evil," but I can't find much to back up the idea. > > Can you elaborate, or give us a few links on the topic? > > (BTW, Paul, I'm sure you're not speaking without experience, just want > to clarify my own understanding a little more.) > > - Allen > From stephen at capellic.com Thu Dec 14 11:55:45 2006 From: stephen at capellic.com (Stephen Musgrave) Date: Thu, 14 Dec 2006 11:55:45 -0500 Subject: [nycphp-talk] Deep Linking with AJAX? Message-ID: I have a designer who would like to have links on the subnav to NOT refresh the page. This could be done with iFrames, but best if done with a DIV using AJAX. However, from a usability perspective, I am concerned that the URL displayed on the Location string is not the page they are looking at after they have loaded an AJAX page. If the user does a copy/paste into an email to send to somebody, they will not arrive at the intended page. I have looked at Christian Cantrell's article on the topic (though that's over a year old now) and the work-arounds were less than convincing. Does anybody know of a better technique to do this or is the consensus that if I want the URL to reflect the actual page I am viewing, it should be the old fashion way with page refreshes? Thanks! From tedd at sperling.com Thu Dec 14 12:01:04 2006 From: tedd at sperling.com (tedd) Date: Thu, 14 Dec 2006 12:01:04 -0500 Subject: [nycphp-talk] session variables "evil"? (was: re: Cakephp) In-Reply-To: <45817F60.5080900@polymerdb.org> References: <45808878.5040108@devonianfarm.com> <45817F60.5080900@polymerdb.org> Message-ID: Paul Houle wrote: >most applications that use session variables are "broken by design". Well then, most of my applications are broke. What other methods do you suggest for communication between stateless applications? tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From support at dailytechnology.net Thu Dec 14 12:01:11 2006 From: support at dailytechnology.net (Brian Dailey) Date: Thu, 14 Dec 2006 12:01:11 -0500 Subject: [nycphp-talk] Deep Linking with AJAX? In-Reply-To: References: Message-ID: <45818357.2080605@dailytechnology.net> I'm not quite sure I get your intent fully, but I think what you're going to want to do is include the actual URL in the link, and then do a javascript "return false" onclick. Add javascript to observe clicks on that link (by element id) and perform the ajax function using that. I prefer to do this with scriptaculous - it ends up looking something like this link Stephen Musgrave wrote: > I have a designer who would like to have links on the subnav to NOT > refresh the page. This could be done with iFrames, but best if done > with a DIV using AJAX. > > However, from a usability perspective, I am concerned that the URL > displayed on the Location string is not the page they are looking at > after they have loaded an AJAX page. If the user does a copy/paste into > an email to send to somebody, they will not arrive at the intended page. > > I have looked at Christian Cantrell's article > > on the topic (though that's over a year old now) and the work-arounds > were less than convincing. > > Does anybody know of a better technique to do this or is the consensus > that if I want the URL to reflect the actual page I am viewing, it > should be the old fashion way with page refreshes? > > Thanks! > > > > > > _______________________________________________ > 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 shiflett at php.net Thu Dec 14 12:11:44 2006 From: shiflett at php.net (Chris Shiflett) Date: Thu, 14 Dec 2006 12:11:44 -0500 Subject: [nycphp-talk] Deep Linking with Ajax? In-Reply-To: References: Message-ID: <458185D0.3010702@php.net> Stephen Musgrave wrote: > I have a designer who would like to have links on the subnav to > NOT refresh the page. Ugh. Why not? Navigation links go to different pages (with presumably different content), therefore the URL should change. I'm sure you can manage to use Ajax and other client-side technologies to mimic going to a different page (changing the URL and such), but this is a perfect example of misusing Ajax. Just so it doesn't sound like I'm anti-Ajax, there are situations where it can be useful. One example is a comment form with a preview. To display the preview, you could use Ajax to exchange the minimum amount of information with the server as necessary (to process the comment using whatever filtering/formatting is already in place on the server) and display the preview on the current page. The URL would not change, but from a user's perspective, the page hasn't changed either, so it's OK. That's my opinion. :-) Chris -- Chris Shiflett http://shiflett.org/ From nate at cakephp.org Thu Dec 14 12:31:58 2006 From: nate at cakephp.org (Nate Abele) Date: Thu, 14 Dec 2006 12:31:58 -0500 Subject: [nycphp-talk] Re: Cakephp In-Reply-To: <20061214165607.EC2FA10A806D@cakephp.org> References: <20061214165607.EC2FA10A806D@cakephp.org> Message-ID: <5A875E29-BAA3-4E0B-AAA9-D6F57C08F2C2@cakephp.org> Hey Paul, don't get me wrong, because I completely agree about the statelessness of the web being critical for RESTfulness and whatnot, but seriously, any app that uses $_SESSION is broken? I'm sure I'm not the only one who would beg to differ on that one, especially since there are many good JavaScript-based methods for overcoming session issues where users are browsing using multiple tabs or Ajax apps. But regardless of all that, please refer to the following: app/config/ core.php: define("CAKE_SESSION_SAVE", "database"); > Date: Wed, 13 Dec 2006 18:10:48 -0500 > From: Paul Houle > Subject: Re: [nycphp-talk] Cakephp > > dkov at optonline.net wrote: >> Does anyone use the Cakephp framework? If you do, I have tried using >> thier session component to create and manage sessions. I have read >> every bit of information I can find on the internet. I still can't >> get my sessions working correctly. Please teach me. > I avoid session variables -- most applications that use session > variables are "broken by design". If you do manage to get sessions to > work, the next thing you'll be asking us is how to disable the > back button. > > The "stateless" paradigm of web programming is responsible for > many > of it's advantages: the reasons why we're writing web-based business > apps instead of other applications. > > It turns out that the behavior of cookies in mainstream web > browsers > are largely undocumented; it's bad enough if you've got control of > the > cookies that you're sticking on people, but things get really > mysterious when some library you don't control is doing it. > > PHP locks the $_SESSION variable when it's in use -- this causes > lots of problems for apps that have multiple frames, use AJAX, etc. > > If you want to write reliable web apps, keep your "session" state > in well-engineered database tables, and use signed cookies to > attach a > session id to users. You'll spend a less time dealing with mysterious > behavior on the part of the $_SESSION object. From dell at sala.ca Thu Dec 14 12:33:02 2006 From: dell at sala.ca (Dell Sala) Date: Thu, 14 Dec 2006 12:33:02 -0500 Subject: [nycphp-talk] Deep Linking with Ajax? In-Reply-To: <458185D0.3010702@php.net> References: <458185D0.3010702@php.net> Message-ID: <26E3A32F-77C3-4CAF-9C57-CE598E7BFCC7@sala.ca> I understand your concerns here, but I don't think Stephen has given us enough information here to make a judgement one way or another. It really depends on the usability requirements for each specific case. I've been amazed how avoiding page reloads can improve user experience, and even make the developers life easier, especially when designing web apps with complex user interaction and state requirements. That being said, if it is just a case of a sub-nav for displaying nested, non-interactive content, AJAX is probably overkill. *** The issue of "accurate" URLs, and possible solutions are documented well on ajaxpaterns.org: http://ajaxpatterns.org/Unique_URLs -- Dell On Dec 14, 2006, at 12:11 PM, Chris Shiflett wrote: > Stephen Musgrave wrote: >> I have a designer who would like to have links on the subnav to >> NOT refresh the page. > > Ugh. Why not? Navigation links go to different pages (with presumably > different content), therefore the URL should change. I'm sure you can > manage to use Ajax and other client-side technologies to mimic > going to > a different page (changing the URL and such), but this is a perfect > example of misusing Ajax. > > Just so it doesn't sound like I'm anti-Ajax, there are situations > where > it can be useful. One example is a comment form with a preview. To > display the preview, you could use Ajax to exchange the minimum amount > of information with the server as necessary (to process the comment > using whatever filtering/formatting is already in place on the server) > and display the preview on the current page. The URL would not change, > but from a user's perspective, the page hasn't changed either, so > it's OK. > > That's my opinion. :-) > > Chris > > -- > Chris Shiflett > http://shiflett.org/ From rmarscher at beaffinitive.com Thu Dec 14 13:24:08 2006 From: rmarscher at beaffinitive.com (Rob Marscher) Date: Thu, 14 Dec 2006 13:24:08 -0500 Subject: [nycphp-talk] Deep Linking with Ajax? In-Reply-To: <26E3A32F-77C3-4CAF-9C57-CE598E7BFCC7@sala.ca> References: <458185D0.3010702@php.net> <26E3A32F-77C3-4CAF-9C57-CE598E7BFCC7@sala.ca> Message-ID: <458196C8.1020901@beaffinitive.com> There's a proposal out there for DOM additions that would make this kind of thing easier: http://whatwg.org/specs/web-apps/current-work/#pushstate I would guess it's a long way from being a reality and you'd probably still have to have the anchor method (with hacks for Safari) to support old browsers... -Rob Dell Sala wrote: > I understand your concerns here, but I don't think Stephen has given > us enough information here to make a judgement one way or another. It > really depends on the usability requirements for each specific case. > I've been amazed how avoiding page reloads can improve user > experience, and even make the developers life easier, especially when > designing web apps with complex user interaction and state requirements. > > That being said, if it is just a case of a sub-nav for displaying > nested, non-interactive content, AJAX is probably overkill. > > *** > > The issue of "accurate" URLs, and possible solutions are documented > well on ajaxpaterns.org: > > http://ajaxpatterns.org/Unique_URLs > > -- Dell > > > On Dec 14, 2006, at 12:11 PM, Chris Shiflett wrote: > >> Stephen Musgrave wrote: >>> I have a designer who would like to have links on the subnav to >>> NOT refresh the page. >> >> Ugh. Why not? Navigation links go to different pages (with presumably >> different content), therefore the URL should change. I'm sure you can >> manage to use Ajax and other client-side technologies to mimic going to >> a different page (changing the URL and such), but this is a perfect >> example of misusing Ajax. >> >> Just so it doesn't sound like I'm anti-Ajax, there are situations where >> it can be useful. One example is a comment form with a preview. To >> display the preview, you could use Ajax to exchange the minimum amount >> of information with the server as necessary (to process the comment >> using whatever filtering/formatting is already in place on the server) >> and display the preview on the current page. The URL would not change, >> but from a user's perspective, the page hasn't changed either, so >> it's OK. >> >> That's my opinion. :-) >> >> Chris >> >> --Chris Shiflett >> http://shiflett.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 From stephen at capellic.com Thu Dec 14 17:52:09 2006 From: stephen at capellic.com (Stephen Musgrave) Date: Thu, 14 Dec 2006 17:52:09 -0500 Subject: [nycphp-talk] Deep Linking with Ajax? In-Reply-To: <26E3A32F-77C3-4CAF-9C57-CE598E7BFCC7@sala.ca> References: <458185D0.3010702@php.net> <26E3A32F-77C3-4CAF-9C57-CE598E7BFCC7@sala.ca> Message-ID: <562373C2-4A15-4303-9FF6-F3B2B5C3A967@capellic.com> > That being said, if it is just a case of a sub-nav for displaying > nested, non-interactive content, AJAX is probably overkill. This is exactly what it is. And I agree with you, it is overkill. However, the designer comes from a Flash background and would like to do it - so I said I'd explore it. Thanks for the replies! From ken at secdat.com Thu Dec 14 20:34:47 2006 From: ken at secdat.com (Kenneth Downs) Date: Thu, 14 Dec 2006 20:34:47 -0500 Subject: [nycphp-talk] Cakephp In-Reply-To: <45808878.5040108@devonianfarm.com> References: <45808878.5040108@devonianfarm.com> Message-ID: <4581FBB7.6030005@secdat.com> Paul Houle wrote: > dkov at optonline.net wrote: >> Does anyone use the Cakephp framework? If you do, I have tried using >> thier session component to create and manage sessions. I have read >> every bit of information I can find on the internet. I still can't >> get my sessions working correctly. Please teach me. > I avoid session variables -- most applications that use session > variables are "broken by design". If you do manage to get sessions to > work, the next thing you'll be asking us is how to disable the back > button. I'm always on the lookout to improve my techniques, perhaps you can help here. When you say "manage to get sessions to work", what exactly do you mean? We wrote two routines for ourselves, SessionSet() and SessionGet(), which worked fine when coded and have done so ever since. Do I misunderstand you here? > > The "stateless" paradigm of web programming is responsible for many > of it's advantages: Name two. It does force us into a transactional mode of thinking, which is a good thing anyway. So that's one. I never noticed any more than that. -------------- next part -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From tedd at sperling.com Fri Dec 15 10:17:17 2006 From: tedd at sperling.com (tedd) Date: Fri, 15 Dec 2006 10:17:17 -0500 Subject: [nycphp-talk] Deep Linking with Ajax? In-Reply-To: <458185D0.3010702@php.net> References: <458185D0.3010702@php.net> Message-ID: At 12:11 PM -0500 12/14/06, Chris Shiflett wrote: >Stephen Musgrave wrote: >> I have a designer who would like to have links on the subnav to >> NOT refresh the page. > >Ugh. Why not? Navigation links go to different pages (with presumably >different content), therefore the URL should change. I'm sure you can >manage to use Ajax and other client-side technologies to mimic going to >a different page (changing the URL and such), but this is a perfect >example of misusing Ajax. > >Just so it doesn't sound like I'm anti-Ajax, there are situations where >it can be useful. One example is a comment form with a preview. To >display the preview, you could use Ajax to exchange the minimum amount >of information with the server as necessary (to process the comment >using whatever filtering/formatting is already in place on the server) >and display the preview on the current page. The URL would not change, >but from a user's perspective, the page hasn't changed either, so it's OK. > >That's my opinion. :-) > >Chris Hi Chris: Not that I disagree with you, but I think the direction the web is taking is similar to desktop applications, which is refresh when you need a new window -- otherwise keep the one you have. As an experiment, I set up this reader to illustrate my point: http://xn--ovg.com/ajax_page This is simply a text reader and there is no real reason to refresh each page. While the page is providing unique content each time it is "turned" (i.e., navigation), is still just the same window without a refresh. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From ps at pswebcode.com Fri Dec 15 11:43:45 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Fri, 15 Dec 2006 11:43:45 -0500 Subject: [nycphp-talk] Deep Linking with AJAX? In-Reply-To: Message-ID: <002901c72068$30026760$3675b948@SUNCODE1> It is worth noting that Flash (and similarly PDFs, video files, typically any streaming media) have all suffered from this lack of deep linking right from the get go -- and all of these 'alternative to XHTML' products have prospered and their web penetration is so significant that it is these 'hampered' alternative web presentation vehicles that are muscling the Internet up to the next level of profound usage. Personally, I have already completely adapted to any web sites with powerful "on-demand" page(s)/section(s) that don't bookmark. The connection is so fast and the web application interfaces so finely tooled and responsive that I barely notice that I need to "run the interface again". Indeed all the sites I use that need me to "run the interface again" provide me only the most current, Critically accurate results and I desire that more than I want handy dandy bookmarks. I feel that this URL issue that AJAX raises is important and timely. The inability to deep link an AJAXed page is telling the developer something. It is saying that this data/content/page is too time-sensitive to bookmark and the AJAX usage may need to be rejiggered. I believe as Chris notes further down in the thread that if you are experiencing an AJAX deep linking issue then you may not be putting AJAX (or Flash) to the best use. Use AJAX to update portions of pages with critical dynamic changeable content segments that likely should not be bookmarked. Tell your client that AJAX interfaces when properly used on their site project an impression of powerful "on-demand" data return and presentation output. And this is more valuable to the power user than linking convenience. Warmest regards, Peter Sawczynec Technology Dir. Sun-code.com Web related services 646.316.3678 ps at sun-code.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Stephen Musgrave Sent: Thursday, December 14, 2006 11:56 AM To: talk at lists.nyphp.org Subject: [nycphp-talk] Deep Linking with AJAX? I have a designer who would like to have links on the subnav to NOT refresh the page. This could be done with iFrames, but best if done with a DIV using AJAX. However, from a usability perspective, I am concerned that the URL displayed on the Location string is not the page they are looking at after they have loaded an AJAX page. If the user does a copy/paste into an email to send to somebody, they will not arrive at the intended page. I have looked at Christian Cantrell's article on the topic (though that's over a year old now) and the work-arounds were less than convincing. Does anybody know of a better technique to do this or is the consensus that if I want the URL to reflect the actual page I am viewing, it should be the old fashion way with page refreshes? Thanks! _______________________________________________ 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 lk613m at yahoo.com Fri Dec 15 11:56:41 2006 From: lk613m at yahoo.com (LK) Date: Fri, 15 Dec 2006 08:56:41 -0800 (PST) Subject: [nycphp-talk] session variables "evil"? Message-ID: <20061215165642.22990.qmail@web53307.mail.yahoo.com> Just as I was reading this thread on sesion variables I was having a problem with my session variables getting changed on the fly seemingly for no reason. I've isolated this problem and condensed it to the bare minimum for you to see and comment upon: 1. Create a file x.php: Go to y.php 2. Create a file y.php "; // outputs session variables are GOOD $x = "session variables are EVIL"; echo $_SESSION['x']; // outputs session variables are EVIL ?> Point your browser to x.php and click on the link "Go to y.php" to invoke the y.php file. File x.php simply sets a session variable $_SESSION['x']. File y.php assigns an internal variable $x, and that all by itself blows away $_SESSION['x']. The _GET and _POST variables do not have this problem. It's an easy fix simply to use a different name instead of $x, but still... this is not a nice behaviour, if not an outright bug. - Leo. ----- Original Message ---- From: Brian Dailey To: NYPHP Talk Sent: Thursday, December 14, 2006 11:49:22 AM Subject: Re: [nycphp-talk] session variables "evil"? I've been writing PHP for years now, and this is the first time I've been aware of anyone complaining about oddities with $_SESSION (granted, I use it for little else than tracking user information). What sort of "oddities" have you seen? - Brian Allen Shaw wrote: > Paul Houle wrote: >> most applications that use session variables are "broken by design". >> > > Really? That's a surprising assertion, though I'll agree my surprise > probably comes more from my own lack of insight than a flaw in your > argument. Of course a quick google shows a few people hold that session > vars are "evil," but I can't find much to back up the idea. > > Can you elaborate, or give us a few links on the topic? > > (BTW, Paul, I'm sure you're not speaking without experience, just want > to clarify my own understanding a little more.) > > - Allen > _______________________________________________ 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 sean712 at gmail.com Fri Dec 15 11:58:46 2006 From: sean712 at gmail.com (Sean) Date: Fri, 15 Dec 2006 11:58:46 -0500 Subject: [nycphp-talk] session variables "evil"? In-Reply-To: <20061215165642.22990.qmail@web53307.mail.yahoo.com> References: <20061215165642.22990.qmail@web53307.mail.yahoo.com> Message-ID: Do you have register globals on? On 12/15/06, LK wrote: > > Just as I was reading this thread on sesion variables I was having a > problem with my session variables getting changed on the fly seemingly for > no reason. I've isolated this problem and condensed it to the bare minimum > for you to see and comment upon: > > 1. Create a file x.php: > > session_start(); > $_SESSION['x'] = "session variables are GOOD"; > ?> > > > > Go to y.php > > > 2. Create a file y.php > > session_start(); > > echo $_SESSION['x']."
"; // outputs session variables are GOOD > > $x = "session variables are EVIL"; > > echo $_SESSION['x']; // outputs session variables are EVIL > ?> > Point your browser to x.php and click on the link "Go to y.php" to invoke > the y.php file. > > File x.php simply sets a session variable $_SESSION['x']. > > File y.php assigns an internal variable $x, and that all by itself blows > away $_SESSION['x']. > > The _GET and _POST variables do not have this problem. > > It's an easy fix simply to use a different name instead of $x, but > still... this is not a nice behaviour, if not an outright bug. > > - Leo. > > > > ----- Original Message ---- > From: Brian Dailey > To: NYPHP Talk > Sent: Thursday, December 14, 2006 11:49:22 AM > Subject: Re: [nycphp-talk] session variables "evil"? > > I've been writing PHP for years now, and this is the first time I've > been aware of anyone complaining about oddities with $_SESSION (granted, > I use it for little else than tracking user information). What sort of > "oddities" have you seen? > > - Brian > > Allen Shaw wrote: > > Paul Houle wrote: > >> most applications that use session variables are "broken by design". > >> > > > > Really? That's a surprising assertion, though I'll agree my surprise > > probably comes more from my own lack of insight than a flaw in your > > argument. Of course a quick google shows a few people hold that session > > vars are "evil," but I can't find much to back up the idea. > > > > Can you elaborate, or give us a few links on the topic? > > > > (BTW, Paul, I'm sure you're not speaking without experience, just want > > to clarify my own understanding a little more.) > > > > - Allen > > > _______________________________________________ > 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: From jface at mercenarylabs.com Fri Dec 15 12:06:01 2006 From: jface at mercenarylabs.com (Jonathan Face) Date: Fri, 15 Dec 2006 12:06:01 -0500 Subject: [nycphp-talk] session variables "evil"? In-Reply-To: References: <20061215165642.22990.qmail@web53307.mail.yahoo.com> Message-ID: <4582D5F9.4090107@mercenarylabs.com> I just copied recreated your files and got: session variables are GOOD session variables are GOOD You can see it here: http://www.jonathanface.com/x.php Sean wrote: > Do you have register globals on? > > On 12/15/06, *LK* > wrote: > > Just as I was reading this thread on sesion variables I was having > a problem with my session variables getting changed on the fly > seemingly for no reason. I've isolated this problem and condensed > it to the bare minimum for you to see and comment upon: > > 1. Create a file x.php: > > session_start(); > $_SESSION['x'] = "session variables are GOOD"; > ?> > > > > Go to y.php > > > 2. Create a file y.php > > session_start(); > > echo $_SESSION['x']."
"; // outputs session variables are > GOOD > > $x = "session variables are EVIL"; > > echo $_SESSION['x']; // outputs session variables are EVIL > ?> > Point your browser to x.php and click on the link "Go to y.php" to > invoke the y.php file. > > File x.php simply sets a session variable $_SESSION['x']. > > File y.php assigns an internal variable $x, and that all by itself > blows away $_SESSION['x']. > > The _GET and _POST variables do not have this problem. > > It's an easy fix simply to use a different name instead of $x, but > still... this is not a nice behaviour, if not an outright bug. > > - Leo. > > > > ----- Original Message ---- > From: Brian Dailey < support at dailytechnology.net > > > To: NYPHP Talk > > Sent: Thursday, December 14, 2006 11:49:22 AM > Subject: Re: [nycphp-talk] session variables "evil"? > > I've been writing PHP for years now, and this is the first time I've > been aware of anyone complaining about oddities with $_SESSION > (granted, > I use it for little else than tracking user information). What > sort of > "oddities" have you seen? > > - Brian > > Allen Shaw wrote: > > Paul Houle wrote: > >> most applications that use session variables are "broken by > design". > >> > > > > Really? That's a surprising assertion, though I'll agree my > surprise > > probably comes more from my own lack of insight than a flaw in your > > argument. Of course a quick google shows a few people hold that > session > > vars are "evil," but I can't find much to back up the idea. > > > > Can you elaborate, or give us a few links on the topic? > > > > (BTW, Paul, I'm sure you're not speaking without experience, > just want > > to clarify my own understanding a little more.) > > > > - Allen > > > _______________________________________________ > 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 > > > >------------------------------------------------------------------------ > >_______________________________________________ >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 ashaw at polymerdb.org Fri Dec 15 12:14:56 2006 From: ashaw at polymerdb.org (Allen Shaw) Date: Fri, 15 Dec 2006 11:14:56 -0600 Subject: [nycphp-talk] session variables "evil"? In-Reply-To: <20061215165642.22990.qmail@web53307.mail.yahoo.com> References: <20061215165642.22990.qmail@web53307.mail.yahoo.com> Message-ID: <4582D810.5030800@polymerdb.org> LK wrote: > Just as I was reading this thread on sesion variables I was having a > problem with my session variables getting changed on the fly seemingly > for no reason. I've isolated this problem and condensed it to the bare > minimum for you to see and comment upon: > ... > > this is not a nice behaviour, if not an outright bug. Hi Leo, That looks like pretty odd behavior. What version of PHP is it? This may be relevant, from the PHP manual http://www.php.net/manual/en/ref.session.php : session.bug_compat_42 boolean PHP versions 4.2.3 and lower have an undocumented feature/bug that allows you to initialize a session variable in the global scope, albeit register_globals is disabled. PHP 4.3.0 and later will warn you, if this feature is used, and if session.bug_compat_warn is also enabled. This feature/bug can be disabled by disabling this directive. session.bug_compat_warn boolean PHP versions 4.2.3 and lower have an undocumented feature/bug that allows you to initialize a session variable in the global scope, albeit register_globals is disabled. PHP 4.3.0 and later will warn you, if this feature is used by enabling both session.bug_compat_42 and session.bug_compat_warn. Looks like the PHP developers agree with you, at least half-admitting that it's a bug. -- Allen Shaw Polymer (http://polymerdb.org) slidePresenter (http://slides.sourceforge.net) From ken at secdat.com Fri Dec 15 17:35:18 2006 From: ken at secdat.com (Kenneth Downs) Date: Fri, 15 Dec 2006 17:35:18 -0500 Subject: [nycphp-talk] Help with a basic mod_rewrite issue? Message-ID: <45832326.7040800@secdat.com> I'm guessing that this must be a common trick, but googling it did not come up with an example that I could figure out. Basically I'd like to put a link to what looks like an MP3 file, but which is redirected to a script. The script determines if the person is subscribed to that particular issue. If they are, it does a readfile(), otherwise it does not. I cannot do a simple force of mp3 files to be handled by PHP, or at least I don't want to, because then I would need a file for every mp3, and as the list comes out of a database, this would be troublesome. The basic problem I have is, not being familiar with mod_rewrite, I find myself in the endless maze that everybody warns you about, fiddling around and smashing fists on the table wondering why the simplest !)(#(*#@ expression won't work. What I'm looking for is for a URL like this: http://www.example.com/path/path/somefile.mp3 to become: http://www.example.com/path/path/index.php?gp_page=media&file=somefile.mp3 Can anybody give me a clue here? Thanks. -------------- next part -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From dell at sala.ca Fri Dec 15 18:06:23 2006 From: dell at sala.ca (Dell Sala) Date: Fri, 15 Dec 2006 18:06:23 -0500 Subject: [nycphp-talk] Help with a basic mod_rewrite issue? In-Reply-To: <45832326.7040800@secdat.com> References: <45832326.7040800@secdat.com> Message-ID: <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca> mod_rewrite seems like a messy business. How about naming your php script without a .php extension and just have that be parsed with php? Then, whatever path is appending to the script name that is requested just acts as a query string/argument. your php script would be http://domain.com/mp3handler and full requests would look like this http://domain.com/mp3handler/music.mp3 mp3handler would just parse the full request string to find out what mp3 was requested your .htaccess file would be something like this: ForceType application/x-httpd-php I've found this to be an effective technique for creating clean urls. -- Dell On Dec 15, 2006, at 5:35 PM, Kenneth Downs wrote: > I'm guessing that this must be a common trick, but googling it did > not come up with an example that I could figure out. > > Basically I'd like to put a link to what looks like an MP3 file, > but which is redirected to a script. The script determines if the > person is subscribed to that particular issue. If they are, it does > a readfile(), otherwise it does not. > > I cannot do a simple force of mp3 files to be handled by PHP, or at > least I don't want to, because then I would need a file for every > mp3, and as the list comes out of a database, this would be > troublesome. > > The basic problem I have is, not being familiar with mod_rewrite, I > find myself in the endless maze that everybody warns you about, > fiddling around and smashing fists on the table wondering why the > simplest !)(#(*#@ expression won't work. > > What I'm looking for is for a URL like this: > > http://www.example.com/path/path/somefile.mp3 > > to become: > > http://www.example.com/path/path/index.php? > gp_page=media&file=somefile.mp3 > > Can anybody give me a clue here? Thanks. > > _______________________________________________ > 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 chsnyder at gmail.com Fri Dec 15 18:10:32 2006 From: chsnyder at gmail.com (csnyder) Date: Fri, 15 Dec 2006 18:10:32 -0500 Subject: [nycphp-talk] Help with a basic mod_rewrite issue? In-Reply-To: <45832326.7040800@secdat.com> References: <45832326.7040800@secdat.com> Message-ID: On 12/15/06, Kenneth Downs wrote: > > What I'm looking for is for a URL like this: > > http://www.example.com/path/path/somefile.mp3 > > to become: > > http://www.example.com/path/path/index.php?gp_page=media&file=somefile.mp3 > > Can anybody give me a clue here? Thanks. > No clues on Friday. The following is completely off the top of my head and probably won't work, but maybe it will lead you to something that does? RewriteRule ^/path/path/(.*mp3)$ /path/path/index.php?blah&file=$1 When debugging rewrite issues, use of RewriteLog and RewriteLogLevel 3 are invaluable. -- Chris Snyder http://chxo.com/ From chsnyder at gmail.com Fri Dec 15 18:13:12 2006 From: chsnyder at gmail.com (csnyder) Date: Fri, 15 Dec 2006 18:13:12 -0500 Subject: [nycphp-talk] Help with a basic mod_rewrite issue? In-Reply-To: <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca> References: <45832326.7040800@secdat.com> <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca> Message-ID: On 12/15/06, Dell Sala wrote: > mod_rewrite seems like a messy business. How about naming your php > script without a .php extension and just have that be parsed with > php? Then, whatever path is appending to the script name that is > requested just acts as a query string/argument. Oh, now that's the smarter solution! Careful, next thing you know you'll have an MVC interface... :-) From ken at secdat.com Fri Dec 15 18:24:35 2006 From: ken at secdat.com (Kenneth Downs) Date: Fri, 15 Dec 2006 18:24:35 -0500 Subject: [nycphp-talk] Help with a basic mod_rewrite issue? In-Reply-To: <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca> References: <45832326.7040800@secdat.com> <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca> Message-ID: <45832EB3.80809@secdat.com> Dell Sala wrote: > mod_rewrite seems like a messy business. How about naming your php > script without a .php extension and just have that be parsed with php? > Then, whatever path is appending to the script name that is requested > just acts as a query string/argument. > > your php script would be > > http://domain.com/mp3handler > > and full requests would look like this > > http://domain.com/mp3handler/music.mp3 > > mp3handler would just parse the full request string to find out what > mp3 was requested > > your .htaccess file would be something like this: > > > ForceType application/x-httpd-php > > > I've found this to be an effective technique for creating clean urls. This looks interesting, can you give me some details here: 1) The intent is to redirect to music.mp3, which is actually a php script, right? 2) But then the rule is on "mp3handler", which is constant so it can't be a parameter? 3) So what is the parameter? How do I tell a single script to handle multiple files? What I'm aiming at is to have a single script that takes a parm. If I understand your example above, it requires a separate script for each possible mp3 file, which may as well just be this: ForceType application/x-httpd-php ...which requires me again to have one script per mp3. Am I missing something? > > -- Dell > > > On Dec 15, 2006, at 5:35 PM, Kenneth Downs wrote: > >> I'm guessing that this must be a common trick, but googling it did >> not come up with an example that I could figure out. >> >> Basically I'd like to put a link to what looks like an MP3 file, but >> which is redirected to a script. The script determines if the person >> is subscribed to that particular issue. If they are, it does a >> readfile(), otherwise it does not. >> >> I cannot do a simple force of mp3 files to be handled by PHP, or at >> least I don't want to, because then I would need a file for every >> mp3, and as the list comes out of a database, this would be troublesome. >> >> The basic problem I have is, not being familiar with mod_rewrite, I >> find myself in the endless maze that everybody warns you about, >> fiddling around and smashing fists on the table wondering why the >> simplest !)(#(*#@ expression won't work. >> >> What I'm looking for is for a URL like this: >> >> http://www.example.com/path/path/somefile.mp3 >> >> to become: >> >> http://www.example.com/path/path/index.php?gp_page=media&file=somefile.mp3 >> >> >> Can anybody give me a clue here? Thanks. >> >> _______________________________________________ >> 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 dell at sala.ca Fri Dec 15 18:57:01 2006 From: dell at sala.ca (Dell Sala) Date: Fri, 15 Dec 2006 18:57:01 -0500 Subject: [nycphp-talk] Help with a basic mod_rewrite issue? In-Reply-To: <45832EB3.80809@secdat.com> References: <45832326.7040800@secdat.com> <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca> <45832EB3.80809@secdat.com> Message-ID: <63FCF8E6-A766-44EE-A7D5-42BFFDF288DE@sala.ca> I think this is exactly what you're looking for. mp3handler is a php script, just named without a ".php" extension. if you force apache to treat mp3handler as a php script, you can create urls that access mp3handler, but appear to to be accessing a more deeply nested file or resource. a request like http://domain.com/mp3handler/somefile.mp3 will cause apache to execute the mp3handler script, and the rest of the request is just ignored by apache. Then, inside mp3hanlder you can manually parse $_SERVER['PATH_INFO'] to retrieve your "argument" which is / somefile.mp3. I started using this technique after seeing it in a great article in PHP|Architect. Volume 5, Issue 3 "Frameworks: what's the big deal" by Darryl Patterson. -- Dell On Dec 15, 2006, at 6:24 PM, Kenneth Downs wrote: > Dell Sala wrote: >> mod_rewrite seems like a messy business. How about naming your php >> script without a .php extension and just have that be parsed with >> php? Then, whatever path is appending to the script name that is >> requested just acts as a query string/argument. > > This looks interesting, can you give me some details here: > > 1) The intent is to redirect to music.mp3, which is actually a php > script, right? > 2) But then the rule is on "mp3handler", which is constant so it > can't be a parameter? > 3) So what is the parameter? How do I tell a single script to > handle multiple files? > > What I'm aiming at is to have a single script that takes a parm. > If I understand your example above, it requires a separate script > for each possible mp3 file, which may as well just be this: > > > ForceType application/x-httpd-php > > > ...which requires me again to have one script per mp3. > > Am I missing something? From greg.rundlett at gmail.com Fri Dec 15 23:12:58 2006 From: greg.rundlett at gmail.com (Greg Rundlett) Date: Fri, 15 Dec 2006 23:12:58 -0500 Subject: [nycphp-talk] Help with a basic mod_rewrite issue? In-Reply-To: <45832EB3.80809@secdat.com> References: <45832326.7040800@secdat.com> <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca> <45832EB3.80809@secdat.com> Message-ID: <5e2aaca40612152012u2b1df7adh23b7768db9c12662@mail.gmail.com> On 12/15/06, Kenneth Downs wrote: > Dell Sala wrote: > > mod_rewrite seems like a messy business. How about naming your php > > script without a .php extension and just have that be parsed with php? > > Then, whatever path is appending to the script name that is requested > > just acts as a query string/argument. Ken, I think you're missing a fine point in Dell's explanation. To be explicit, the reason Dell's solution works is because Apache works it way down the request path (moving from left to right) until it finds something it can return. Apache does not look at the URI and work it's way "backward". So, if you have a script||directory||symbolic link named 'jukebox' accessible at http://mysite.org/jukebox/ then Apache will serve it up even if the request is for http://mysite.org/jukebox/clapton/heaven.mp3. Of course not only will Apache serve up the 'jukebox' script, but since it's a mod-PHP script, it is well aware of the full $_SERVER['REQUEST_URI'] which the script can use to determine what exactly to do with the request.... like go get a song from the database. > > your php script would be > > > > http://domain.com/mp3handler > > > > and full requests would look like this > > > > http://domain.com/mp3handler/music.mp3 > > > > mp3handler would just parse the full request string to find out what > > mp3 was requested > > > > your .htaccess file would be something like this: > > > > > > ForceType application/x-httpd-php > > > > > > I've found this to be an effective technique for creating clean urls. > > This looks interesting, can you give me some details here: > > 1) The intent is to redirect to music.mp3, which is actually a php > script, right? > 2) But then the rule is on "mp3handler", which is constant so it can't > be a parameter? > 3) So what is the parameter? How do I tell a single script to handle > multiple files? > > What I'm aiming at is to have a single script that takes a parm. If I > understand your example above, it requires a separate script for each > possible mp3 file, which may as well just be this: > > > ForceType application/x-httpd-php > > > ...which requires me again to have one script per mp3. > > Am I missing something? > > > > > -- Dell > > > > > > On Dec 15, 2006, at 5:35 PM, Kenneth Downs wrote: > > > >> I'm guessing that this must be a common trick, but googling it did > >> not come up with an example that I could figure out. > >> > >> Basically I'd like to put a link to what looks like an MP3 file, but > >> which is redirected to a script. The script determines if the person > >> is subscribed to that particular issue. If they are, it does a > >> readfile(), otherwise it does not. > >> > >> I cannot do a simple force of mp3 files to be handled by PHP, or at > >> least I don't want to, because then I would need a file for every > >> mp3, and as the list comes out of a database, this would be troublesome. > >> > >> The basic problem I have is, not being familiar with mod_rewrite, I > >> find myself in the endless maze that everybody warns you about, > >> fiddling around and smashing fists on the table wondering why the > >> simplest !)(#(*#@ expression won't work. > >> > >> What I'm looking for is for a URL like this: > >> > >> http://www.example.com/path/path/somefile.mp3 > >> > >> to become: > >> > >> http://www.example.com/path/path/index.php?gp_page=media&file=somefile.mp3 > >> > >> > >> Can anybody give me a clue here? Thanks. > >> > >> _______________________________________________ > >> 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 > > > -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? From greg.rundlett at gmail.com Fri Dec 15 23:34:55 2006 From: greg.rundlett at gmail.com (Greg Rundlett) Date: Fri, 15 Dec 2006 23:34:55 -0500 Subject: [nycphp-talk] Deep Linking with Ajax? In-Reply-To: <562373C2-4A15-4303-9FF6-F3B2B5C3A967@capellic.com> References: <458185D0.3010702@php.net> <26E3A32F-77C3-4CAF-9C57-CE598E7BFCC7@sala.ca> <562373C2-4A15-4303-9FF6-F3B2B5C3A967@capellic.com> Message-ID: <5e2aaca40612152034n54349bdcj8a472cb7c3eb53c1@mail.gmail.com> On 12/14/06, Stephen Musgrave wrote: > > > That being said, if it is just a case of a sub-nav for displaying > > nested, non-interactive content, AJAX is probably overkill. > > This is exactly what it is. And I agree with you, it is overkill. > However, the designer comes from a Flash background and would like to > do it - so I said I'd explore it. > > Thanks for the replies! If all you want is to display multiple pieces of content inside a single page, you could also do good old-fashioned DHTML. Single page loads all content, and various nav/tab/link elements cause the content to display dynamically without the 'complexity' of AJAX. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? From shadab_w at yahoo.co.in Sat Dec 16 00:28:17 2006 From: shadab_w at yahoo.co.in (Shadab Wadiwala) Date: Sat, 16 Dec 2006 05:28:17 +0000 (GMT) Subject: [nycphp-talk] Creating thumbnails images of videos using PHP. Message-ID: <330932.74048.qm@web8709.mail.in.yahoo.com> HI, I would like to create a still thumbnail image out of movie when i upload thru a form. do any one know how to do such things. I have several movies to list out with thumbnails and when u click , run them in windows media player within browser. Also I wanna know how to embed windows media player inside a webpage for playing videos. Thanks in advance, Shadab .I. Wadiwala --------------------------------- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Sat Dec 16 08:23:47 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Sat, 16 Dec 2006 08:23:47 -0500 Subject: [nycphp-talk] Reading Photo Information Message-ID: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com> Guys, I saw a script called Andromeda a while back that would allow you to read the ID3 tag data from an MP3 file. My question is can the same be done with JPG files? I am thinking i would want to read some information that is stored in the photo such as which camera took the photo, date, etc. Thanks, -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcech at phpwerx.net Sat Dec 16 08:35:26 2006 From: dcech at phpwerx.net (Dan Cech) Date: Sat, 16 Dec 2006 08:35:26 -0500 Subject: [nycphp-talk] Reading Photo Information In-Reply-To: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com> References: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com> Message-ID: <4583F61E.1090807@phpwerx.net> Joseph Crawford wrote: > I saw a script called Andromeda a while back that would allow you to read > the ID3 tag data from an MP3 file. My question is can the same be done > with > JPG files? > I am thinking i would want to read some information that is stored in the > photo such as which camera took the photo, date, etc. http://php.net/exif Dan From ken at secdat.com Sat Dec 16 09:04:14 2006 From: ken at secdat.com (Kenneth Downs) Date: Sat, 16 Dec 2006 09:04:14 -0500 Subject: [nycphp-talk] Help with a basic mod_rewrite issue? In-Reply-To: <5e2aaca40612152012u2b1df7adh23b7768db9c12662@mail.gmail.com> References: <45832326.7040800@secdat.com> <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca> <45832EB3.80809@secdat.com> <5e2aaca40612152012u2b1df7adh23b7768db9c12662@mail.gmail.com> Message-ID: <4583FCDE.2060101@secdat.com> Greg and Dell, Problem Solved! Thanks very much for the idea, and also for the detailed explanation. Problem is now solved and I know a little more about Apache than I did yesterday. > On 12/15/06, Kenneth Downs wrote: >> Dell Sala wrote: >> > mod_rewrite seems like a messy business. How about naming your php >> > script without a .php extension and just have that be parsed with php? >> > Then, whatever path is appending to the script name that is requested >> > just acts as a query string/argument. > > Ken, I think you're missing a fine point in Dell's explanation. To be > explicit, the reason Dell's solution works is because Apache works it > way down the request path (moving from left to right) until it finds > something it can return. Apache does not look at the URI and work > it's way "backward". So, if you have a script||directory||symbolic > link named 'jukebox' accessible at http://mysite.org/jukebox/ then > Apache will serve it up even if the request is for > http://mysite.org/jukebox/clapton/heaven.mp3. Of course not only will > Apache serve up the 'jukebox' script, but since it's a mod-PHP script, > it is well aware of the full $_SERVER['REQUEST_URI'] which the script > can use to determine what exactly to do with the request.... like go > get a song from the database. > >> > your php script would be >> > >> > http://domain.com/mp3handler >> > >> > and full requests would look like this >> > >> > http://domain.com/mp3handler/music.mp3 >> > >> > mp3handler would just parse the full request string to find out what >> > mp3 was requested >> > >> > your .htaccess file would be something like this: >> > >> > >> > ForceType application/x-httpd-php >> > >> > >> > I've found this to be an effective technique for creating clean urls. >> >> This looks interesting, can you give me some details here: >> >> 1) The intent is to redirect to music.mp3, which is actually a php >> script, right? >> 2) But then the rule is on "mp3handler", which is constant so it can't >> be a parameter? >> 3) So what is the parameter? How do I tell a single script to handle >> multiple files? >> >> What I'm aiming at is to have a single script that takes a parm. If I >> understand your example above, it requires a separate script for each >> possible mp3 file, which may as well just be this: >> >> >> ForceType application/x-httpd-php >> >> >> ...which requires me again to have one script per mp3. >> >> Am I missing something? >> >> > >> > -- Dell >> > >> > >> > On Dec 15, 2006, at 5:35 PM, Kenneth Downs wrote: >> > >> >> I'm guessing that this must be a common trick, but googling it did >> >> not come up with an example that I could figure out. >> >> >> >> Basically I'd like to put a link to what looks like an MP3 file, but >> >> which is redirected to a script. The script determines if the person >> >> is subscribed to that particular issue. If they are, it does a >> >> readfile(), otherwise it does not. >> >> >> >> I cannot do a simple force of mp3 files to be handled by PHP, or at >> >> least I don't want to, because then I would need a file for every >> >> mp3, and as the list comes out of a database, this would be >> troublesome. >> >> >> >> The basic problem I have is, not being familiar with mod_rewrite, I >> >> find myself in the endless maze that everybody warns you about, >> >> fiddling around and smashing fists on the table wondering why the >> >> simplest !)(#(*#@ expression won't work. >> >> >> >> What I'm looking for is for a URL like this: >> >> >> >> http://www.example.com/path/path/somefile.mp3 >> >> >> >> to become: >> >> >> >> >> http://www.example.com/path/path/index.php?gp_page=media&file=somefile.mp3 >> >> >> >> >> >> >> Can anybody give me a clue here? Thanks. >> >> >> >> _______________________________________________ >> >> 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 -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 273 bytes Desc: not available URL: From cliff at pinestream.com Sat Dec 16 09:05:25 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Sat, 16 Dec 2006 09:05:25 -0500 Subject: [nycphp-talk] image symbol in browser url address window Message-ID: <000601c7211b$3c250080$12a8a8c0@HirschLaptop> Ok, this is a little off base, but how do you make an image symbol appear in the url address window in FireFox? I'm guessing it has something to do with this: Cliff -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenneth at ylayali.net Sat Dec 16 09:20:42 2006 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Sat, 16 Dec 2006 09:20:42 -0500 Subject: [nycphp-talk] image symbol in browser url address window In-Reply-To: <000601c7211b$3c250080$12a8a8c0@HirschLaptop> References: <000601c7211b$3c250080$12a8a8c0@HirschLaptop> Message-ID: <20061216142042.GE8943@ylayali.net> http://en.wikipedia.org/wiki/Favicon On 06-12-16 09:05 -0500, Cliff Hirsch wrote: > Ok, this is a little off base, but how do you make an image symbol > appear in the url address window in FireFox? > > I'm guessing it has something to do with this: > > > > Cliff From ken at secdat.com Sat Dec 16 09:26:07 2006 From: ken at secdat.com (Kenneth Downs) Date: Sat, 16 Dec 2006 09:26:07 -0500 Subject: [nycphp-talk] Help with a basic mod_rewrite issue? In-Reply-To: <63FCF8E6-A766-44EE-A7D5-42BFFDF288DE@sala.ca> References: <45832326.7040800@secdat.com> <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca> <45832EB3.80809@secdat.com> <63FCF8E6-A766-44EE-A7D5-42BFFDF288DE@sala.ca> Message-ID: <458401FF.7070803@secdat.com> Dell Sala wrote: > I think this is exactly what you're looking for. > > mp3handler is a php script, just named without a ".php" extension. > > if you force apache to treat mp3handler as a php script, you can > create urls that access mp3handler, but appear to to be accessing a > more deeply nested file or resource. > > a request like http://domain.com/mp3handler/somefile.mp3 will cause > apache to execute the mp3handler script, and the rest of the request > is just ignored by apache. Then, inside mp3hanlder you can manually > parse $_SERVER['PATH_INFO'] to retrieve your "argument" which is > /somefile.mp3. > > I started using this technique after seeing it in a great article in > PHP|Architect. Volume 5, Issue 3 "Frameworks: what's the big deal" by > Darryl Patterson. > Aha, so then this also provides a way to use the universal dispatch method and "friendly" URLs without resorting to mod_rewrite. I can create a script called "pages" and invoke it like so: ForceType application/x-httpd-php ...and then generate URLs like so: http://www.example.com/pages/pagename/parm/value/parm/value and then just parse out the URI into parm-value pairs. Nice! > -- Dell > > > On Dec 15, 2006, at 6:24 PM, Kenneth Downs wrote: > >> Dell Sala wrote: >>> mod_rewrite seems like a messy business. How about naming your php >>> script without a .php extension and just have that be parsed with >>> php? Then, whatever path is appending to the script name that is >>> requested just acts as a query string/argument. >> >> This looks interesting, can you give me some details here: >> >> 1) The intent is to redirect to music.mp3, which is actually a php >> script, right? >> 2) But then the rule is on "mp3handler", which is constant so it >> can't be a parameter? >> 3) So what is the parameter? How do I tell a single script to >> handle multiple files? >> >> What I'm aiming at is to have a single script that takes a parm. If >> I understand your example above, it requires a separate script for >> each possible mp3 file, which may as well just be this: >> >> >> ForceType application/x-httpd-php >> >> >> ...which requires me again to have one script per mp3. >> >> Am I missing something? > > _______________________________________________ > 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 jeff.knight at gmail.com Sat Dec 16 11:58:50 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Sat, 16 Dec 2006 08:58:50 -0800 Subject: [nycphp-talk] Reading Photo Information In-Reply-To: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com> References: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com> Message-ID: <2ca9ba910612160858p65e4c1d2uf084f38d7ba5f14b@mail.gmail.com> http://www.nyphp.org/content/presentations/GDintro/gd27.php On 12/16/06, Joseph Crawford wrote: > Guys, > > I saw a script called Andromeda a while back that would allow you to read > the ID3 tag data from an MP3 file. My question is can the same be done with > JPG files? > I am thinking i would want to read some information that is stored in the > photo such as which camera took the photo, date, etc. > From chsnyder at gmail.com Sat Dec 16 16:59:27 2006 From: chsnyder at gmail.com (csnyder) Date: Sat, 16 Dec 2006 16:59:27 -0500 Subject: [nycphp-talk] Creating thumbnails images of videos using PHP. In-Reply-To: <330932.74048.qm@web8709.mail.in.yahoo.com> References: <330932.74048.qm@web8709.mail.in.yahoo.com> Message-ID: On 12/16/06, Shadab Wadiwala wrote: > HI, > > I would like to create a still thumbnail image out of movie when i upload > thru a form. > > do any one know how to do such things. > > I have several movies to list out with thumbnails and when u click , run > them in windows media player within browser. > > Also I wanna know how to embed windows media player inside a webpage for > playing videos. > > Thanks in advance, > > > Shadab .I. Wadiwala If you like browsing MSDN, you'll find relevant info here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmpsdk11/mmp_sdk/usingtheplayercontrolinawebpage.asp Frankly, it might be easier to find an example of an embedded player somewhere that matches what you want to do, and then use the same technique. MS lost a patent dispute last winter, and rather than pay some ridiculous amount in licensing fees they decided to break the tag in MSIE. Developers who wish to embed QuickTime or Flash (and presumably Windows Media) in their pages are forced to use an externally-loaded Javascript function to do it. Ick. As for image thumbnails from video, I know how to script this for QuickTime on a Mac, but that doesn't sound like that will help you. Ideally, you want some kind of command line tool that provides access to Media Player's API. -- Chris Snyder http://chxo.com/ From codebowl at gmail.com Sun Dec 17 13:33:56 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Sun, 17 Dec 2006 13:33:56 -0500 Subject: [nycphp-talk] Reading Photo Information In-Reply-To: <2ca9ba910612160858p65e4c1d2uf084f38d7ba5f14b@mail.gmail.com> References: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com> <2ca9ba910612160858p65e4c1d2uf084f38d7ba5f14b@mail.gmail.com> Message-ID: <8d9a42800612171033q6f0aa7d2h170c56762825544d@mail.gmail.com> Thanks to both of you. THose will both be put at the top of my reading list ;D On 12/16/06, Jeff Knight wrote: > > http://www.nyphp.org/content/presentations/GDintro/gd27.php > > On 12/16/06, Joseph Crawford wrote: > > Guys, > > > > I saw a script called Andromeda a while back that would allow you to > read > > the ID3 tag data from an MP3 file. My question is can the same be done > with > > JPG files? > > I am thinking i would want to read some information that is stored in > the > > photo such as which camera took the photo, date, etc. > > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramons at gmx.net Sun Dec 17 14:17:58 2006 From: ramons at gmx.net (David Krings) Date: Sun, 17 Dec 2006 14:17:58 -0500 Subject: [nycphp-talk] Reading Photo Information In-Reply-To: <8d9a42800612171033q6f0aa7d2h170c56762825544d@mail.gmail.com> References: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com> <2ca9ba910612160858p65e4c1d2uf084f38d7ba5f14b@mail.gmail.com> <8d9a42800612171033q6f0aa7d2h170c56762825544d@mail.gmail.com> Message-ID: <458597E6.9000008@gmx.net> Hi, I found this http://www.microimages.com/sml/GetEXIF.htm to be very helpful. The structure of the code is almost like PHP and it has the biggest collection of exif tag information that I could find...and I searched for days. Getting the exif tags out is one thing, but interpreting what the sometimes bizzare values mean is a different thing. I found the storage of the thumbnail as a text string quite clever. I created an online picture viewer with a database backend so that friends and family can search for pictures and create their own list of favorites. I also plan to expand this to include Flash Video so that I can share my home videos as well. Geroen Wijering made a really nice Flash Video player. I also used some of the other image functions so that I can specify the rotation angle when adding new pictures and have them rotated on the fly when viewing pages. That saves tons of time as I can now pipe pictures from the camera straight into my viewer system. Sure, there are gazillion of those out there already, but it is fun and I can learn from it. David Joseph Crawford wrote: > Thanks to both of you. THose will both be put at the top of my > reading list ;D From tedd at sperling.com Sun Dec 17 14:21:53 2006 From: tedd at sperling.com (tedd) Date: Sun, 17 Dec 2006 14:21:53 -0500 Subject: [nycphp-talk] Reading Photo Information In-Reply-To: <2ca9ba910612160858p65e4c1d2uf084f38d7ba5f14b@mail.gmail.com> References: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com> <2ca9ba910612160858p65e4c1d2uf084f38d7ba5f14b@mail.gmail.com> Message-ID: At 8:58 AM -0800 12/16/06, Jeff Knight wrote: >http://www.nyphp.org/content/presentations/GDintro/gd27.php > It might be an obvious question to some, but according the docs, the exif_read_data() function is supposed to be available for php 4 and greater. However, I'm using php 4.3.11 and when I use it, I get a Fatal Error that exif_read_data() is an undefined function. Is there a library or something I'm supposed to add to be able to use this function? Suggestions? tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From 1j0lkq002 at sneakemail.com Sun Dec 17 20:47:29 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Sun, 17 Dec 2006 17:47:29 -0800 Subject: [nycphp-talk] Help with a basic mod_rewrite issue? In-Reply-To: References: <45832326.7040800@secdat.com> <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca> Message-ID: <10372-53356@sneakemail.com> csnyder chsnyder-at-gmail.com |nyphp dev/internal group use| wrote: > On 12/15/06, Dell Sala wrote: > >> mod_rewrite seems like a messy business. How about naming your php >> script without a .php extension and just have that be parsed with >> php? Then, whatever path is appending to the script name that is >> requested just acts as a query string/argument. > > > Oh, now that's the smarter solution! > > Careful, next thing you know you'll have an MVC interface... :-) and can move on to the problem of mapping every known URL for "proper" handling ;-) From dirn at dirnonline.com Sun Dec 17 21:20:36 2006 From: dirn at dirnonline.com (Andy Dirnberger) Date: Sun, 17 Dec 2006 21:20:36 -0500 Subject: [nycphp-talk] Reading Photo Information In-Reply-To: Message-ID: <000901c7224b$1b49ee30$6601a8c0@andyabs> >From http://us2.php.net/exif Requirements Your PHP must be compiled in with --enable-exif. PHP does not require any additional library for the exif module. Windows users must also have the mbstring extension enabled. Installation To enable exif-support configure PHP with --enable-exif Windows users must enable both the php_mbstring.dll and php_exif.dll DLL's in php.ini. The php_mbstring.dll DLL must be loaded before the php_exif.dll DLL so adjust your php.ini accordingly. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of tedd Sent: Sunday, December 17, 2006 2:22 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Reading Photo Information At 8:58 AM -0800 12/16/06, Jeff Knight wrote: >http://www.nyphp.org/content/presentations/GDintro/gd27.php > It might be an obvious question to some, but according the docs, the exif_read_data() function is supposed to be available for php 4 and greater. However, I'm using php 4.3.11 and when I use it, I get a Fatal Error that exif_read_data() is an undefined function. Is there a library or something I'm supposed to add to be able to use this function? Suggestions? tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.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 From ramons at gmx.net Sun Dec 17 22:05:21 2006 From: ramons at gmx.net (David Krings) Date: Sun, 17 Dec 2006 22:05:21 -0500 Subject: [nycphp-talk] Reading Photo Information In-Reply-To: References: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com> <2ca9ba910612160858p65e4c1d2uf084f38d7ba5f14b@mail.gmail.com> Message-ID: <45860571.2010208@gmx.net> Hi, yes, exif is not a standard module in many PHP configurations. I use Apachefriend's XAMPP on Windows and it was simply a matter of taking the ; out in front of the line in the php.ini. Haven't done this on Linux yet, but if the module is there it will probably as easy. David tedd wrote: > At 8:58 AM -0800 12/16/06, Jeff Knight wrote: >> http://www.nyphp.org/content/presentations/GDintro/gd27.php >> > > It might be an obvious question to some, but according the docs, the > exif_read_data() function is supposed to be available for php 4 and > greater. However, I'm using php 4.3.11 and when I use it, I get a > Fatal Error that exif_read_data() is an undefined function. > > Is there a library or something I'm supposed to add to be able to use > this function? > > Suggestions? > > tedd From jamie-list at tramchase.com Sun Dec 17 23:55:32 2006 From: jamie-list at tramchase.com (Jamie Wilkinson) Date: Sun, 17 Dec 2006 23:55:32 -0500 Subject: [nycphp-talk] Deep Linking with Ajax? In-Reply-To: <5e2aaca40612152034n54349bdcj8a472cb7c3eb53c1@mail.gmail.com> References: <458185D0.3010702@php.net> <26E3A32F-77C3-4CAF-9C57-CE598E7BFCC7@sala.ca> <562373C2-4A15-4303-9FF6-F3B2B5C3A967@capellic.com> <5e2aaca40612152034n54349bdcj8a472cb7c3eb53c1@mail.gmail.com> Message-ID: +1 > If all you want is to display multiple pieces of content inside a > single page, you could also do good old-fashioned DHTML. Single page > loads all content, and various nav/tab/link elements cause the content > to display dynamically without the 'complexity' of AJAX. > -- > A: Yes. >> Q: Are you sure? >>> A: Because it reverses the logical flow of conversation. >>>> Q: Why is top posting annoying in email? > _______________________________________________ > 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 Dec 19 11:09:30 2006 From: ken at secdat.com (Kenneth Downs) Date: Tue, 19 Dec 2006 11:09:30 -0500 Subject: [nycphp-talk] Editable Select Box Message-ID: <45880EBA.2070309@secdat.com> Hi folks, I'm wondering if anybody has seen a particular kind of control I need. It's called many things, but "editable Select box" seems to be a common term. One example that is close to what I want is here: http://www.dhtmlgoodies.com/scripts/form_widget_editable_select/form_widget_editable_select.html The trouble I'm running into is that none of the example out there seem to do quite what I want. If somebody has seen or used one that does the following, any links would be hugely appreciated: 1) Allows entry of a value not in the box (optionally turn this on or off) 2) While user is typing, the drop-down list scrolls to the best current match 3) Hitting "enter" or "tab" or whatever with a partial entry picks the best current match Anybody seen this? -------------- next part -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From edwardpotter at gmail.com Tue Dec 19 11:25:34 2006 From: edwardpotter at gmail.com (edward potter) Date: Tue, 19 Dec 2006 11:25:34 -0500 Subject: [nycphp-talk] Editable Select Box In-Reply-To: <45880EBA.2070309@secdat.com> References: <45880EBA.2070309@secdat.com> Message-ID: ouch, the purist would probably cringe - allows the user to change a drop down. on the other hand it is kinda of cool. it sounds like you are looking for an ajax solution. Things to google: ajax drop down type ahead :-) ed On 12/19/06, Kenneth Downs wrote: > Hi folks, I'm wondering if anybody has seen a particular kind of control > I need. > > It's called many things, but "editable Select box" seems to be a common > term. One example that is close to what I want is here: > > http://www.dhtmlgoodies.com/scripts/form_widget_editable_select/form_widget_editable_select.html > > The trouble I'm running into is that none of the example out there seem > to do quite what I want. If somebody has seen or used one that does the > following, any links would be hugely appreciated: > > 1) Allows entry of a value not in the box (optionally turn this on or off) > 2) While user is typing, the drop-down list scrolls to the best current > match > 3) Hitting "enter" or "tab" or whatever with a partial entry picks the > best current match > > Anybody seen this? > > > _______________________________________________ > 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 kenrbnsn at rbnsn.com Tue Dec 19 11:32:25 2006 From: kenrbnsn at rbnsn.com (Ken Robinson) Date: Tue, 19 Dec 2006 11:32:25 -0500 Subject: [nycphp-talk] Editable Select Box In-Reply-To: <45880EBA.2070309@secdat.com> References: <45880EBA.2070309@secdat.com> Message-ID: <7.0.1.0.2.20061219112932.11eaa628@rbnsn.com> At 11:09 AM 12/19/2006, Kenneth Downs wrote: >Hi folks, I'm wondering if anybody has seen a particular kind of >control I need. > >It's called many things, but "editable Select box" seems to be a >common term. One example that is close to what I want is here: > >http://www.dhtmlgoodies.com/scripts/form_widget_editable_select/form_widget_editable_select.html You can take a look at the Autocomplete section of the Yahoo Developer libraries One of the examples does mention PHP. Ken From jonbaer at jonbaer.com Tue Dec 19 11:33:22 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Tue, 19 Dec 2006 11:33:22 -0500 Subject: [nycphp-talk] Editable Select Box In-Reply-To: <45880EBA.2070309@secdat.com> References: <45880EBA.2070309@secdat.com> Message-ID: <5E4FE4D9-90E3-4401-ABE9-557D8E20763B@jonbaer.com> This has worked for me, YMMV ... http://wiki.script.aculo.us/scriptaculous/show/InPlaceSelect There is also this option for JQuery ... http://www.texotela.co.uk/code/jquery/select/ - Jon On Dec 19, 2006, at 11:09 AM, Kenneth Downs wrote: > Hi folks, I'm wondering if anybody has seen a particular kind of > control I need. > > It's called many things, but "editable Select box" seems to be a > common term. One example that is close to what I want is here: > > http://www.dhtmlgoodies.com/scripts/form_widget_editable_select/ > form_widget_editable_select.html > > The trouble I'm running into is that none of the example out there > seem to do quite what I want. If somebody has seen or used one > that does the following, any links would be hugely appreciated: > > 1) Allows entry of a value not in the box (optionally turn this on > or off) > 2) While user is typing, the drop-down list scrolls to the best > current match > 3) Hitting "enter" or "tab" or whatever with a partial entry picks > the best current match > > Anybody seen this? > > _______________________________________________ > 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 ps at pswebcode.com Tue Dec 19 11:51:11 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Tue, 19 Dec 2006 11:51:11 -0500 Subject: [nycphp-talk] Editable Select Box In-Reply-To: <45880EBA.2070309@secdat.com> Message-ID: <002701c7238d$e3c703a0$3675b948@SUNCODE1> http://www.crackajax.net/suggest.php -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Kenneth Downs Sent: Tuesday, December 19, 2006 11:10 AM To: NYPHP Talk Subject: [nycphp-talk] Editable Select Box Hi folks, I'm wondering if anybody has seen a particular kind of control I need. It's called many things, but "editable Select box" seems to be a common term. One example that is close to what I want is here: http://www.dhtmlgoodies.com/scripts/form_widget_editable_select/form_widget_ editable_select.html The trouble I'm running into is that none of the example out there seem to do quite what I want. If somebody has seen or used one that does the following, any links would be hugely appreciated: 1) Allows entry of a value not in the box (optionally turn this on or off) 2) While user is typing, the drop-down list scrolls to the best current match 3) Hitting "enter" or "tab" or whatever with a partial entry picks the best current match Anybody seen this? From support at dailytechnology.net Tue Dec 19 12:27:23 2006 From: support at dailytechnology.net (Brian Dailey) Date: Tue, 19 Dec 2006 12:27:23 -0500 Subject: [nycphp-talk] Editable Select Box In-Reply-To: References: <45880EBA.2070309@secdat.com> Message-ID: <458820FB.9050702@dailytechnology.net> You will want your web app to be able to handle unexpected values anyway, right? The web-developer extension on Firefox allows you to "Make select fields editable" so you can test your application with unruly values. edward potter wrote: > ouch, the purist would probably cringe - allows the user to change a > drop down. on the other hand it is kinda of cool. it sounds like you > are looking for an ajax solution. > > Things to google: > ajax drop down type ahead > > :-) ed > > > On 12/19/06, Kenneth Downs wrote: >> Hi folks, I'm wondering if anybody has seen a particular kind of control >> I need. >> >> It's called many things, but "editable Select box" seems to be a common >> term. One example that is close to what I want is here: >> >> http://www.dhtmlgoodies.com/scripts/form_widget_editable_select/form_widget_editable_select.html >> >> >> The trouble I'm running into is that none of the example out there seem >> to do quite what I want. If somebody has seen or used one that does the >> following, any links would be hugely appreciated: >> >> 1) Allows entry of a value not in the box (optionally turn this on or >> off) >> 2) While user is typing, the drop-down list scrolls to the best current >> match >> 3) Hitting "enter" or "tab" or whatever with a partial entry picks the >> best current match >> >> Anybody seen this? >> >> >> _______________________________________________ >> 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 lk613m at yahoo.com Tue Dec 19 13:20:32 2006 From: lk613m at yahoo.com (LK) Date: Tue, 19 Dec 2006 10:20:32 -0800 (PST) Subject: [nycphp-talk] Editable Select Box Message-ID: <20061219182032.7918.qmail@web53315.mail.yahoo.com> This looks like the behavior of the Address field in the Web browser itself. I believe I've seen a number of interesting ajax controls in the www.sourceforge.net , one of them might be it. - Leo ----- Original Message ---- From: Kenneth Downs To: NYPHP Talk Sent: Tuesday, December 19, 2006 11:09:30 AM Subject: [nycphp-talk] Editable Select Box Hi folks, I'm wondering if anybody has seen a particular kind of control I need. It's called many things, but "editable Select box" seems to be a common term. One example that is close to what I want is here: http://www.dhtmlgoodies.com/scripts/form_widget_editable_select/form_widget_editable_select.html The trouble I'm running into is that none of the example out there seem to do quite what I want. If somebody has seen or used one that does the following, any links would be hugely appreciated: 1) Allows entry of a value not in the box (optionally turn this on or off) 2) While user is typing, the drop-down list scrolls to the best current match 3) Hitting "enter" or "tab" or whatever with a partial entry picks the best current match Anybody seen this? 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 shadab_w at yahoo.co.in Wed Dec 20 00:27:39 2006 From: shadab_w at yahoo.co.in (Shadab Wadiwala) Date: Wed, 20 Dec 2006 05:27:39 +0000 (GMT) Subject: [nycphp-talk] COLLAPSIBLE TABLES using PHP and AJAX . Message-ID: <757629.28685.qm@web8714.mail.in.yahoo.com> Hi, Do someone know how to create COLLAPSIBLE TABLES using PHP and AJAX . Thanks in advance. Shadab .I. Wadiwala Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From edwardpotter at gmail.com Wed Dec 20 06:35:55 2006 From: edwardpotter at gmail.com (edward potter) Date: Wed, 20 Dec 2006 06:35:55 -0500 Subject: [nycphp-talk] COLLAPSIBLE TABLES using PHP and AJAX . In-Reply-To: <757629.28685.qm@web8714.mail.in.yahoo.com> References: <757629.28685.qm@web8714.mail.in.yahoo.com> Message-ID: not sure how to do it, but is the effect like this? [left side of screen] http://www.viralvideochart.com/now and from digg? their upcoming stories used to flash by in real time but that effect seems to be on hold right now. Was also wondering about it ... i suspect you can take apart the JS, just diving into it now. Be curious to know who was the first to come up with it. Nice effect. On 12/20/06, Shadab Wadiwala wrote: > Hi, > > Do someone know how to create COLLAPSIBLE TABLES using PHP and AJAX . > > Thanks in advance. > > > Shadab .I. Wadiwala > > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. > Download Now! http://messenger.yahoo.com/download.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 ken at secdat.com Wed Dec 20 08:13:09 2006 From: ken at secdat.com (Kenneth Downs) Date: Wed, 20 Dec 2006 08:13:09 -0500 Subject: [nycphp-talk] Editable Select Box In-Reply-To: <458820FB.9050702@dailytechnology.net> References: <45880EBA.2070309@secdat.com> <458820FB.9050702@dailytechnology.net> Message-ID: <458936E5.7050403@secdat.com> Brian Dailey wrote: > You will want your web app to be able to handle unexpected values > anyway, right? That is a case-by-case thing. In our applications a foreign key is always presented as a drop-down when it is editable, and a drop-down always means a foreign key. In 99% of cases foreign keys are normal, meaning only values in the parent table are allowed, and we would want the box to only accept those. Sometimes we are more interested in what people type, in which case we allow non-existent values and then auto-insert them into the parent table when they are inserted into the child table. > The web-developer extension on Firefox allows you to "Make select > fields editable" so you can test your application with unruly values. > > edward potter wrote: >> ouch, the purist would probably cringe - allows the user to change a >> drop down. on the other hand it is kinda of cool. it sounds like you >> are looking for an ajax solution. >> >> Things to google: >> ajax drop down type ahead >> >> :-) ed >> >> >> On 12/19/06, Kenneth Downs wrote: >>> Hi folks, I'm wondering if anybody has seen a particular kind of >>> control >>> I need. >>> >>> It's called many things, but "editable Select box" seems to be a common >>> term. One example that is close to what I want is here: >>> >>> http://www.dhtmlgoodies.com/scripts/form_widget_editable_select/form_widget_editable_select.html >>> >>> >>> The trouble I'm running into is that none of the example out there seem >>> to do quite what I want. If somebody has seen or used one that does >>> the >>> following, any links would be hugely appreciated: >>> >>> 1) Allows entry of a value not in the box (optionally turn this on >>> or off) >>> 2) While user is typing, the drop-down list scrolls to the best >>> current >>> match >>> 3) Hitting "enter" or "tab" or whatever with a partial entry picks the >>> best current match >>> >>> Anybody seen this? >>> >>> >>> _______________________________________________ >>> 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 r.mariotti at fdcx.net Wed Dec 20 12:10:01 2006 From: r.mariotti at fdcx.net (R. Mariotti) Date: Wed, 20 Dec 2006 12:10:01 -0500 Subject: [nycphp-talk] Postscript Output Directly From PHP??? Message-ID: <45896E69.5060106@fdcx.net> Fellow PHP'ers; Can someone please direct me to a method or technique that would allow me to output directly in postscript format? I am trying to output to a label printer that will accept ps format (I've tested it - it does) and I output to a pipe connected to "lp" from within my program. I've been playing with various types of output, including using templates, but it seems no matter what I try there is NO output. Someone somewhere MUST be done this before????? Suggestions anyone??? Thanks and happy holidays!!! bobmct From shadab_w at yahoo.co.in Wed Dec 20 12:18:30 2006 From: shadab_w at yahoo.co.in (Shadab Wadiwala) Date: Wed, 20 Dec 2006 17:18:30 +0000 (GMT) Subject: [nycphp-talk] PHP -MySQL free hosting Message-ID: <374851.1606.qm@web8703.mail.in.yahoo.com> Hi all, Does somebody know any website which provides free hosting of PHP with MYSQL. Thanks in advance Shadab .I. Wadiwala Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From onurphp at gmail.com Wed Dec 20 12:39:39 2006 From: onurphp at gmail.com (onur) Date: Wed, 20 Dec 2006 19:39:39 +0200 Subject: [nycphp-talk] PHP -MySQL free hosting In-Reply-To: <374851.1606.qm@web8703.mail.in.yahoo.com> References: <374851.1606.qm@web8703.mail.in.yahoo.com> Message-ID: <1166636379.12844.0.camel@codex> ?r?, 2006-12-20 tarihinde 17:18 +0000 saatinde, Shadab Wadiwala yazd?: > Hi all, > > Does somebody know any website which provides free hosting of PHP > with MYSQL. > > Thanks in advance > > > Shadab .I. Wadiwala > > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. > Download Now! http://messenger.yahoo.com/download.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 Hi, www.1500mb.com is a free place which you want. Regards, Onur Yerlikaya From jeff.knight at gmail.com Wed Dec 20 12:39:48 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Wed, 20 Dec 2006 11:39:48 -0600 Subject: [nycphp-talk] Postscript Output Directly From PHP??? In-Reply-To: <45896E69.5060106@fdcx.net> References: <45896E69.5060106@fdcx.net> Message-ID: <2ca9ba910612200939h5c2f4d09ocdb5d199d0d6efef@mail.gmail.com> http://www.tufat.com/s_html2ps_html2pdf.htm On 12/20/06, R. Mariotti wrote: > Fellow PHP'ers; > > Can someone please direct me to a method or technique that would allow > me to output directly in postscript format? > > I am trying to output to a label printer that will accept ps format > (I've tested it - it does) and I output to a pipe connected to "lp" from > within my program. > > I've been playing with various types of output, including using > templates, but it seems no matter what I try there is NO output. > > Someone somewhere MUST be done this before????? > > Suggestions anyone??? > > Thanks and happy holidays!!! > > 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 edwardpotter at gmail.com Wed Dec 20 12:44:50 2006 From: edwardpotter at gmail.com (edward potter) Date: Wed, 20 Dec 2006 12:44:50 -0500 Subject: [nycphp-talk] PHP -MySQL free hosting In-Reply-To: <1166636379.12844.0.camel@codex> References: <374851.1606.qm@web8703.mail.in.yahoo.com> <1166636379.12844.0.camel@codex> Message-ID: concerning free (as in beer), how do they pay their network bills? Just wondering. :-) ed On 12/20/06, onur wrote: > ?r?, 2006-12-20 tarihinde 17:18 +0000 saatinde, Shadab Wadiwala yazd?: > > Hi all, > > > > Does somebody know any website which provides free hosting of PHP > > with MYSQL. > > > > Thanks in advance > > > > > > Shadab .I. Wadiwala > > > > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. > > Download Now! http://messenger.yahoo.com/download.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 > > Hi, > > www.1500mb.com is a free place which you want. > > Regards, > Onur Yerlikaya > > _______________________________________________ > 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 alex at pilgrimstudio.com Wed Dec 20 12:59:09 2006 From: alex at pilgrimstudio.com (Alexander) Date: Wed, 20 Dec 2006 12:59:09 -0500 Subject: [nycphp-talk] PHP -MySQL free hosting In-Reply-To: References: <374851.1606.qm@web8703.mail.in.yahoo.com> <1166636379.12844.0.camel@codex> Message-ID: <458979ED.6000908@pilgrimstudio.com> theirs faq: "How does this site operate for free? The revenue this site earns is from the ads in the control panel, FAQ and user pages." edward potter wrote: > concerning free (as in beer), how do they pay their network bills? > Just wondering. > > :-) ed > > On 12/20/06, onur wrote: >> ?rs,, 2006-12-20 tarihinde 17:18 +0000 saatinde, Shadab Wadiwala yazd?: >> > Hi all, >> > >> > Does somebody know any website which provides free hosting of PHP >> > with MYSQL. >> > >> > Thanks in advance >> > >> > >> > Shadab .I. Wadiwala >> > >> > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. >> > Download Now! http://messenger.yahoo.com/download.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 >> >> Hi, >> >> www.1500mb.com is a free place which you want. >> >> Regards, >> Onur Yerlikaya >> >> _______________________________________________ >> 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 Wed Dec 20 13:23:12 2006 From: edwardpotter at gmail.com (edward potter) Date: Wed, 20 Dec 2006 13:23:12 -0500 Subject: [nycphp-talk] PHP -MySQL free hosting In-Reply-To: <458979ED.6000908@pilgrimstudio.com> References: <374851.1606.qm@web8703.mail.in.yahoo.com> <1166636379.12844.0.camel@codex> <458979ED.6000908@pilgrimstudio.com> Message-ID: hmmmmm, that's kinda of clever. I wonder how much they bring in daily. If it's a lot, seems to me most folks on this list could cook something up like that. Get yourself a dedicated Linux box somewhere, download a "control panel" thing from sourceforge, and you are in business. But are they bringing in like $5 bucks a day or $500? who knows? :-) Your total over head is pretty low, and can use the marketing materials from your host provider (rackspace, etc). I suspect that clicks on the google ad's in the control panel may be valued much higher then ones on a home page -- you are targeting system admin types. - ed On 12/20/06, Alexander wrote: > theirs faq: > "How does this site operate for free? > The revenue this site earns is from the ads in the control panel, FAQ > and user pages." > > edward potter wrote: > > concerning free (as in beer), how do they pay their network bills? > > Just wondering. > > > > :-) ed > > > > On 12/20/06, onur wrote: > >> ?rs,, 2006-12-20 tarihinde 17:18 +0000 saatinde, Shadab Wadiwala yazd?: > >> > Hi all, > >> > > >> > Does somebody know any website which provides free hosting of PHP > >> > with MYSQL. > >> > > >> > Thanks in advance > >> > > >> > > >> > Shadab .I. Wadiwala > >> > > >> > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. > >> > Download Now! http://messenger.yahoo.com/download.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 > >> > >> Hi, > >> > >> www.1500mb.com is a free place which you want. > >> > >> Regards, > >> Onur Yerlikaya > >> > >> _______________________________________________ > >> 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 devlin.matt at gmail.com Wed Dec 20 14:54:14 2006 From: devlin.matt at gmail.com (MJD MJD) Date: Wed, 20 Dec 2006 14:54:14 -0500 Subject: [nycphp-talk] PHP -MySQL free hosting In-Reply-To: <374851.1606.qm@web8703.mail.in.yahoo.com> References: <374851.1606.qm@web8703.mail.in.yahoo.com> Message-ID: <68df55d70612201154m245dfe36gb0557e2f7e9a1a58@mail.gmail.com> I dont know how I am on this list....but.../ dont shoot me just yet..... I need a PHP Lead for an interactive in NYC.. Bueller,,,Anyone, Anyone.... On 12/20/06, Shadab Wadiwala wrote: > > Hi all, > > Does somebody know any website which provides free hosting of PHP > with MYSQL. > > Thanks in advance > > > *Shadab .I. Wadiwala* > > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. > Download Now! http://messenger.yahoo.com/download.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 codebowl at gmail.com Wed Dec 20 15:11:41 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 20 Dec 2006 15:11:41 -0500 Subject: [nycphp-talk] Automatically Print Pages Message-ID: <8d9a42800612201211o6d767ea2jf9353fff8285c4d1@mail.gmail.com> Ok Guys & Gals, I know i have seen talk on this subject before (or similar) but i never had a use for it until now. My fulltime employer has their warehouse application written in PHP controlled with scan guns, etc. When they pack an order they scan the barcodes and it processes the order. The script then generates a PDF and currently redirects to the PDF so that it will open in the browser. They can then hit print to print the page. We would like to streamline this a bit more. Rather than redirect to the PDF we would like the PHP script actually send the PDF directly to the printer. I know you can do this as i recall someone doing it with a DYNAMO labeler. The question is where can i read up on this topic. We would need to send this off to the default printer port. Any insight would be a great help. Thanks, -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Wed Dec 20 15:46:34 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 20 Dec 2006 15:46:34 -0500 Subject: [nycphp-talk] Re: Automatically Print Pages In-Reply-To: <8d9a42800612201211o6d767ea2jf9353fff8285c4d1@mail.gmail.com> References: <8d9a42800612201211o6d767ea2jf9353fff8285c4d1@mail.gmail.com> Message-ID: <8d9a42800612201246v2bf3274v93788454852a698@mail.gmail.com> Ok so i misunderstood the actual requirement. THe page would have to print on the client machine as there are many machines running the scan guns. I am assuming i would need Javascript for this task but i am not sure if there are any libraries out there for this already. We would want to print the page to the default printer completely bypassing the print dialog that pops up. Any assistance will be appreciated. Thanks, Joseph Crawford On 12/20/06, Joseph Crawford wrote: > > Ok Guys & Gals, > > I know i have seen talk on this subject before (or similar) but i never > had a use for it until now. > > My fulltime employer has their warehouse application written in PHP > controlled with scan guns, etc. > When they pack an order they scan the barcodes and it processes the > order. The script then generates a PDF and currently redirects to the PDF > so that it will > open in the browser. They can then hit print to print the page. > > We would like to streamline this a bit more. Rather than redirect to the > PDF we would like the PHP script actually send the PDF directly to the > printer. I know you can > do this as i recall someone doing it with a DYNAMO labeler. > > The question is where can i read up on this topic. We would need to send > this off to the default printer port. > > Any insight would be a great help. > > Thanks, > -- > 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 -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From felix.shnir at gmail.com Wed Dec 20 15:50:17 2006 From: felix.shnir at gmail.com (Felix Shnir) Date: Wed, 20 Dec 2006 15:50:17 -0500 Subject: [nycphp-talk] Re: Automatically Print Pages In-Reply-To: <8d9a42800612201246v2bf3274v93788454852a698@mail.gmail.com> References: <8d9a42800612201211o6d767ea2jf9353fff8285c4d1@mail.gmail.com> <8d9a42800612201246v2bf3274v93788454852a698@mail.gmail.com> Message-ID: This isn't possible with plain vanilla JS. You'd need to look into ActiveX controls, even then it might not be possible... Felix. On 12/20/06, Joseph Crawford wrote: > > Ok so i misunderstood the actual requirement. > > THe page would have to print on the client machine as there are many > machines running the scan guns. I am assuming i would need Javascript for > this task but i am not sure if there are any libraries out there for this > already. > > We would want to print the page to the default printer completely > bypassing the print dialog that pops up. > > Any assistance will be appreciated. > > Thanks, > Joseph Crawford > > On 12/20/06, Joseph Crawford wrote: > > > > Ok Guys & Gals, > > > > I know i have seen talk on this subject before (or similar) but i never > > had a use for it until now. > > > > My fulltime employer has their warehouse application written in PHP > > controlled with scan guns, etc. > > When they pack an order they scan the barcodes and it processes the > > order. The script then generates a PDF and currently redirects to the PDF > > so that it will > > open in the browser. They can then hit print to print the page. > > > > We would like to streamline this a bit more. Rather than redirect to > > the PDF we would like the PHP script actually send the PDF directly to the > > printer. I know you can > > do this as i recall someone doing it with a DYNAMO labeler. > > > > The question is where can i read up on this topic. We would need to > > send this off to the default printer port. > > > > Any insight would be a great help. > > > > Thanks, > > -- > > 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 > > > > > -- > 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 > > _______________________________________________ > 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 > > -- Felix ------------------------- God put me on earth to accomplish a certain number of things. Right now, I'm so far behind, I will never die... -------------- next part -------------- An HTML attachment was scrubbed... URL: From rolan at omnistep.com Wed Dec 20 16:22:50 2006 From: rolan at omnistep.com (Rolan Yang) Date: Wed, 20 Dec 2006 16:22:50 -0500 Subject: [nycphp-talk] Re: Automatically Print Pages In-Reply-To: References: <8d9a42800612201211o6d767ea2jf9353fff8285c4d1@mail.gmail.com> <8d9a42800612201246v2bf3274v93788454852a698@mail.gmail.com> Message-ID: <4589A9AA.2000809@omnistep.com> What operating system and web client are you using? I did something like this a few months ago. Opened the content in a separate hidden window then used javacript "window.Print" then closed the window after it was done. It's not completely reliable. If I remember correctly, it worked with some versions of IE (circumventing the printer dialog box), but not Firefox or Opera browser. I think what we ended up doing was (and this is on a windows system), creating a unique mime type and configuring windows and the browser to run a batch file. When that mime type was detected, a batch file was run which copied the downloaded file to lpt1. Essentially dumping the contents to the printer. You could probably use the DOS commant line "print /d:LPT1: c:\temp\temporary file" to do the same. This will work if you are dumping something like raw data to a label printer. Other odd situations arose also. On some machines, the default mime type stuck after the initial selection and we were not able to change it back. It's been a while so I don't remember all the problems, but at least you have a general idea in which direction to travel now. Good luck, Rolan Felix Shnir wrote: > This isn't possible with plain vanilla JS. You'd need to look into > ActiveX controls, even then it might not be possible... > > Felix. > > > On 12/20/06, * Joseph Crawford* > wrote: > > Ok so i misunderstood the actual requirement. > > THe page would have to print on the client machine as there are > many machines running the scan guns. I am assuming i would need > Javascript for this task but i am not sure if there are any > libraries out there for this already. > > We would want to print the page to the default printer completely > bypassing the print dialog that pops up. > > Any assistance will be appreciated. > > Thanks, > Joseph Crawford > > > On 12/20/06, *Joseph Crawford* > wrote: > > Ok Guys & Gals, > > I know i have seen talk on this subject before (or similar) > but i never had a use for it until now. > > My fulltime employer has their warehouse application written > in PHP controlled with scan guns, etc. > When they pack an order they scan the barcodes and it > processes the order. The script then generates a PDF and > currently redirects to the PDF so that it will > open in the browser. They can then hit print to print the page. > > We would like to streamline this a bit more. Rather than > redirect to the PDF we would like the PHP script actually send > the PDF directly to the printer. I know you can > do this as i recall someone doing it with a DYNAMO labeler. > > The question is where can i read up on this topic. We would > need to send this off to the default printer port. > > Any insight would be a great help. > > Thanks, > -- > 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 > > > > > -- > 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 > > _______________________________________________ > 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 > > > > > > -- > Felix > ------------------------- > God put me on earth to accomplish a certain number of things. Right > now, I'm so far behind, I will never die... > ------------------------------------------------------------------------ > > _______________________________________________ > 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 codebowl at gmail.com Wed Dec 20 16:50:25 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 20 Dec 2006 16:50:25 -0500 Subject: [nycphp-talk] Re: Automatically Print Pages In-Reply-To: <4589A9AA.2000809@omnistep.com> References: <8d9a42800612201211o6d767ea2jf9353fff8285c4d1@mail.gmail.com> <8d9a42800612201246v2bf3274v93788454852a698@mail.gmail.com> <4589A9AA.2000809@omnistep.com> Message-ID: <8d9a42800612201350y41b759atce793838ac510a40@mail.gmail.com> THe current situation is this. We use PHP for the warehouse tools section of the site. THe tools are hosted on a server at Rackspace that is also connected via VPN to our local network. We are trying to figure out how to do one of 2 things. 1.) have the files print locally on the workstations (Windows XP, IE). We actually thought of the batch file but that would cause ALL PDF to be sent to the batch file and we wouldnt want that. 2.) Have the server at rackspace send the lpr command to push the file to the shared printer using lpr. #2 is the way i am thinking of going. On the form there would be a textbox that says Printer Name, they would scan a barcode that would inject the printers shared name. lpr would send the command to that shared printer. The question is how do i know if the linux server at rackspace is actually seeing the shared printers in-house here. Thanks, Joseph Crawford On 12/20/06, Rolan Yang wrote: > > What operating system and web client are you using? I did something like > this a few months ago. Opened the content in a separate hidden window > then used javacript "window.Print" then closed the window after it was > done. It's not completely reliable. If I remember correctly, it worked > with some versions of IE (circumventing the printer dialog box), but not > Firefox or Opera browser. > > I think what we ended up doing was (and this is on a windows system), > creating a unique mime type and configuring windows and the browser to > run a batch file. When that mime type was detected, a batch file was > run which copied the downloaded file to lpt1. Essentially dumping the > contents to the printer. You could probably use the DOS commant line > "print /d:LPT1: c:\temp\temporary file" to do the same. > This will work if you are dumping something like raw data to a label > printer. > > Other odd situations arose also. On some machines, the default mime type > stuck after the initial selection and we were not able to change it > back. It's been a while so I don't remember all the problems, but at > least you have a general idea in which direction to travel now. > > Good luck, > Rolan > > Felix Shnir wrote: > > This isn't possible with plain vanilla JS. You'd need to look into > > ActiveX controls, even then it might not be possible... > > > > Felix. > > > > > > On 12/20/06, * Joseph Crawford* > > wrote: > > > > Ok so i misunderstood the actual requirement. > > > > THe page would have to print on the client machine as there are > > many machines running the scan guns. I am assuming i would need > > Javascript for this task but i am not sure if there are any > > libraries out there for this already. > > > > We would want to print the page to the default printer completely > > bypassing the print dialog that pops up. > > > > Any assistance will be appreciated. > > > > Thanks, > > Joseph Crawford > > > > > > On 12/20/06, *Joseph Crawford* > > wrote: > > > > Ok Guys & Gals, > > > > I know i have seen talk on this subject before (or similar) > > but i never had a use for it until now. > > > > My fulltime employer has their warehouse application written > > in PHP controlled with scan guns, etc. > > When they pack an order they scan the barcodes and it > > processes the order. The script then generates a PDF and > > currently redirects to the PDF so that it will > > open in the browser. They can then hit print to print the page. > > > > We would like to streamline this a bit more. Rather than > > redirect to the PDF we would like the PHP script actually send > > the PDF directly to the printer. I know you can > > do this as i recall someone doing it with a DYNAMO labeler. > > > > The question is where can i read up on this topic. We would > > need to send this off to the default printer port. > > > > Any insight would be a great help. > > > > Thanks, > > -- > > 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 > > > > > > > > > > -- > > 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 > > > > _______________________________________________ > > 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 > > > > > > > > > > > > -- > > Felix > > ------------------------- > > God put me on earth to accomplish a certain number of things. Right > > now, I'm so far behind, I will never die... > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > 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 > -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Wed Dec 20 19:51:02 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 20 Dec 2006 16:51:02 -0800 Subject: [nycphp-talk] PHP -MySQL free hosting In-Reply-To: References: <374851.1606.qm@web8703.mail.in.yahoo.com> <1166636379.12844.0.camel@codex> <458979ED.6000908@pilgrimstudio.com> Message-ID: <6069-81546@sneakemail.com> edward potter edwardpotter-at-gmail.com |nyphp dev/internal group use| wrote: > hmmmmm, that's kinda of clever. > > I wonder how much they bring in daily. If it's a lot, seems to me most > folks on this list could cook something up like that. Get yourself a > dedicated Linux box somewhere, download a "control panel" thing from > sourceforge, and you are in business. But are they bringing in like > $5 bucks a day or $500? who knows? :-) > > Your total over head is pretty low, and can use the marketing > materials from your host provider (rackspace, etc). I suspect that > clicks on the google ad's in the control panel may be valued much > higher then ones on a home page -- you are targeting system admin > types. > > - ed There is so much pharmacy spam on that domain I can't tell if it is owned by people who are "clients" of 1500mb.com or 1500mb.com puts it up there. Either way, any web site hosted on 1500mb.com will be "associated" with some of the most prolific search engine spam on the planet. If that's ok with you, then I suppose it's "free". -=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 1j0lkq002 at sneakemail.com Wed Dec 20 19:54:25 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 20 Dec 2006 16:54:25 -0800 Subject: [nycphp-talk] Re: Automatically Print Pages In-Reply-To: <8d9a42800612201350y41b759atce793838ac510a40@mail.gmail.com> References: <8d9a42800612201211o6d767ea2jf9353fff8285c4d1@mail.gmail.com> <8d9a42800612201246v2bf3274v93788454852a698@mail.gmail.com> <4589A9AA.2000809@omnistep.com> <8d9a42800612201350y41b759atce793838ac510a40@mail.gmail.com> Message-ID: <7414-84674@sneakemail.com> Joseph Crawford codebowl-at-gmail.com |nyphp dev/internal group use| wrote: > THe current situation is this. > > We use PHP for the warehouse tools section of the site. THe tools are > hosted on a server at Rackspace that is also connected via VPN to our > local network. We are trying to figure out how to do one of 2 things. > > 1.) have the files print locally on the workstations (Windows XP, > IE). We actually thought of the batch file but that would cause ALL > PDF to be sent to the batch file and we wouldnt want that. > 2.) Have the server at rackspace send the lpr command to push the file > to the shared printer using lpr. > > #2 is the way i am thinking of going. On the form there would be a > textbox that says Printer Name, they would scan a barcode that would > inject the printers shared name. lpr would send the command to that > shared printer. > > The question is how do i know if the linux server at rackspace is > actually seeing the shared printers in-house here. > > Thanks, > Joseph Crawford I'd look at a mail-based solution (procmail?) for this. That might just be me. -- ------------------------------------------------------------- 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 edwardpotter at gmail.com Wed Dec 20 19:57:01 2006 From: edwardpotter at gmail.com (edward potter) Date: Wed, 20 Dec 2006 19:57:01 -0500 Subject: [nycphp-talk] PHP -MySQL free hosting In-Reply-To: <6069-81546@sneakemail.com> References: <374851.1606.qm@web8703.mail.in.yahoo.com> <1166636379.12844.0.camel@codex> <458979ED.6000908@pilgrimstudio.com> <6069-81546@sneakemail.com> Message-ID: yipes, not for me! I'm not a fan of free.My $20 bucks a month at dreamhost does it all for me. Just suggesting a business model, keep a rock solid, clean as a whistle web host, and have google ads at the "Control Panel" side of things. I guess in the long run it could turn into a hassle trying to make sure all the sites keep themselves on the "up & up". HOWEVER if you restrict it to say not-for-profits, etc, maybe the biz-model is a valid one? :-) ed On 12/20/06, inforequest <1j0lkq002 at sneakemail.com> wrote: > edward potter edwardpotter-at-gmail.com |nyphp dev/internal group use| > wrote: > > > hmmmmm, that's kinda of clever. > > > > I wonder how much they bring in daily. If it's a lot, seems to me most > > folks on this list could cook something up like that. Get yourself a > > dedicated Linux box somewhere, download a "control panel" thing from > > sourceforge, and you are in business. But are they bringing in like > > $5 bucks a day or $500? who knows? :-) > > > > Your total over head is pretty low, and can use the marketing > > materials from your host provider (rackspace, etc). I suspect that > > clicks on the google ad's in the control panel may be valued much > > higher then ones on a home page -- you are targeting system admin > > types. > > > > - ed > > > There is so much pharmacy spam on that domain I can't tell if it is > owned by people who are "clients" of 1500mb.com or 1500mb.com puts it up > there. Either way, any web site hosted on 1500mb.com will be > "associated" with some of the most prolific search engine spam on the > planet. If that's ok with you, then I suppose it's "free". > > -=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 > > _______________________________________________ > 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 ken at secdat.com Wed Dec 20 22:04:06 2006 From: ken at secdat.com (Kenneth Downs) Date: Wed, 20 Dec 2006 22:04:06 -0500 Subject: [nycphp-talk] Postscript Output Directly From PHP??? In-Reply-To: <45896E69.5060106@fdcx.net> References: <45896E69.5060106@fdcx.net> Message-ID: <4589F9A6.30909@secdat.com> http://www.fpdf.org/ it's what you want. Makes a nifty pdf you can send anywhere. R. Mariotti wrote: > Fellow PHP'ers; > > Can someone please direct me to a method or technique that would allow > me to output directly in postscript format? > > I am trying to output to a label printer that will accept ps format > (I've tested it - it does) and I output to a pipe connected to "lp" > from within my program. > > I've been playing with various types of output, including using > templates, but it seems no matter what I try there is NO output. > > Someone somewhere MUST be done this before????? > > Suggestions anyone??? > > Thanks and happy holidays!!! > > 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 -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From dkov at optonline.net Tue Dec 12 17:29:13 2006 From: dkov at optonline.net (dkov at optonline.net) Date: Tue, 12 Dec 2006 22:29:13 +0000 (GMT) Subject: [nycphp-talk] Re: cakephp In-Reply-To: <0JA6007PNK6TBNM0@mta14.srv.hcvlny.cv.net> References: <0JA6007PNK6TBNM0@mta14.srv.hcvlny.cv.net> Message-ID: I think I have figured out my problem and it is really really dumb of me. On my test machine I don't think I have cookies enabled. On another machine the array I write to the session appears while on my machine it isn't. I'm using Mcafree and it blocks many cookies. Does session use cookies? ----- Original Message ----- From: talk-request at lists.nyphp.org Date: Tuesday, December 12, 2006 4:40 pm Subject: talk Digest, Vol 2, Issue 17 To: talk at lists.nyphp.org > Send talk mailing list submissions to > talk at lists.nyphp.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.nyphp.org/mailman/listinfo/talk > or, via email, send a message with subject or body 'help' to > talk-request at lists.nyphp.org > > You can reach the person managing the list at > talk-owner at lists.nyphp.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of talk digest..." > > > Today's Topics: > > 1. Re: Cakephp (Nate Abele) > 2. Zend IDE slooooow (csnyder) > 3. Re: Zend IDE slooooow (csnyder) > 4. RE: Zend IDE slooooow (Cliff Hirsch) > 5. Re: Zend IDE slooooow (Ben Sgro (sk)) > 6. RE: Zend IDE slooooow (Cliff Hirsch) > 7. Re: Zend IDE slooooow (Craig Thomas) > 8. Re: Zend IDE slooooow (Rolan Yang) > 9. Re: Zend IDE slooooow (David Mintz) > 10. RE: Zend IDE slooooow (Baer, Jon) > 11. Re: Zend IDE slooooow (csnyder) > > > ----------------------------------------------------------------- > ----- > > Message: 1 > Date: Tue, 12 Dec 2006 12:11:35 -0500 > From: Nate Abele > Subject: [nycphp-talk] Re: Cakephp > To: talk at lists.nyphp.org > Message-ID: <9C848869-DE27-469D-8B43-70A2D16FEA0F at cakephp.org> > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > Yes, I use the CakePHP framework ;-) > > Exactly what kind of trouble are you having? Getting errors? > Things > just aren't saving? Can you paste some code samples? By > default, > the Session class acts as a wrapper for the $_SESSION variable, > so > you may want to check and see if that works, because it could > just be > a PHP problem. Also, FYI, Cake has it's own mailing list > (http:// > groups.google.com/group/cake-php/) and IRC channel (#cakephp on > freenode.net) where you may get more mileage faster (not that > this > mailing list isn't excellent ;-)). > > > Date: Tue, 12 Dec 2006 03:49:13 +0000 (GMT) > > From: dkov at optonline.net > > Subject: [nycphp-talk] Cakephp > > > > Does anyone use the Cakephp framework? If you do, I have tried > > > using thier session component to create and manage sessions. > I > > have read every bit of information I can find on the internet. > I > > still can't get my sessions working correctly. Please teach me. > > > > ------------------------------ > > Message: 2 > Date: Tue, 12 Dec 2006 12:41:12 -0500 > From: csnyder > Subject: [nycphp-talk] Zend IDE slooooow > To: "NYPHP Talk" > Message-ID: > > Content-Type: text/plain; charset=UTF-8; format=flowed > > Any other Windows Zend Studio users experience a marked slowdown in > the last couple weeks? > > Closing open files, for instance, takes seconds per file. > > Something has definitely changed on my system, but other apps don't > seem to be affected. Just wondering if anyone else has experienced > this. > > -- > Chris Snyder > http://chxo.com/ > > > ------------------------------ > > Message: 3 > Date: Tue, 12 Dec 2006 13:01:01 -0500 > From: csnyder > Subject: Re: [nycphp-talk] Zend IDE slooooow > To: "Craig Thomas" > Cc: NYPHP Talk > Message-ID: > > Content-Type: text/plain; charset=UTF-8; format=flowed > > On 12/12/06, Craig Thomas wrote: > > On Tue, 12 Dec 2006 12:41:12 -0500 > > csnyder wrote: > > > > > Any other Windows Zend Studio users experience a marked > slowdown in > > > the last couple weeks? > > > > Since yesterday my windows install of Zend Studio wont > > even start....(but it's not the only app, Homesite too, so > figuring the > > box has got something else wrong.) > > > > Sometimes when the IDE won't start, you need to remove the file named > "port" in your Documents and Settings\ZDE folder. > > If the IDE crashes and doesn't remove this file, it can hang on > next startup. > > -- > Chris Snyder > http://chxo.com/ > > > ------------------------------ > > Message: 4 > Date: Tue, 12 Dec 2006 13:03:32 -0500 > From: "Cliff Hirsch" > Subject: RE: [nycphp-talk] Zend IDE slooooow > To: "'NYPHP Talk'" > Message-ID: <000001c71e17$d6c208b0$12a8a8c0 at HirschLaptop> > Content-Type: text/plain; charset="us-ascii" > > I have had this problem on a randomly recurring basis for ages. > Sometimes it does take a while for Studio to close and once in a while > it does seem to take a few seconds to "think" between key clicks. > > When I looked into it a while back, I thought it might have > something to > do the number of classes and methods that have "awareness" in a > project.Try working on a single file, without opening a project, > to see if the > problem persists. > > Another thing I've tried when I want to get some serious coding (e.g. > coding, not debugging) done, is to shut down every background (and > foreground) process I can -- little ones like itunes stuff and > Quickbookupdaters, but more importantly Apache and MySQL. Does > make using the > debugger a bit tough though! Running Apache, MySQL, Outlook, > FileMaker,Fireworks, Word, etc. while running Zend Studio is a > surefire disaster. > > My two cents... > > Cliff > > P.S. I'm using Studio 5.1 > > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk- > bounces at lists.nyphp.org]On Behalf Of csnyder > Sent: Tuesday, December 12, 2006 12:41 PM > To: NYPHP Talk > Subject: [nycphp-talk] Zend IDE slooooow > > Any other Windows Zend Studio users experience a marked slowdown in > the last couple weeks? > > Closing open files, for instance, takes seconds per file. > > Something has definitely changed on my system, but other apps don't > seem to be affected. Just wondering if anyone else has experienced > this. > > -- > 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 > > > > ------------------------------ > > Message: 5 > Date: Tue, 12 Dec 2006 13:26:18 -0500 > From: "Ben Sgro \(sk\)" > Subject: Re: [nycphp-talk] Zend IDE slooooow > To: "NYPHP Talk" > Message-ID: <008101c71e1b$06b935e0$6401a8c0 at gamebox> > Content-Type: text/plain; format=flowed; charset="iso-8859-1"; > reply-type=original > > Hello All, > > I experianced this problem often when working with projects. It > seemed to > consume A TON (dont' remember the #'s) of memory till it choked > itself. > If i opened files and not projects it seemed to last longer. I > tried a bunch > of different things back then and now I just dont use Zend IDE. > I dont like > it. > > Give me Emacs and a few putty windows. > > Heh, well good luck! > > - Ben > ----- Original Message ----- > From: "Cliff Hirsch" > To: "'NYPHP Talk'" > Sent: Tuesday, December 12, 2006 1:03 PM > Subject: RE: [nycphp-talk] Zend IDE slooooow > > > >I have had this problem on a randomly recurring basis for ages. > > Sometimes it does take a while for Studio to close and once in > a while > > it does seem to take a few seconds to "think" between key clicks. > > > > When I looked into it a while back, I thought it might have > something to > > do the number of classes and methods that have "awareness" in > a project. > > Try working on a single file, without opening a project, to > see if the > > problem persists. > > > > Another thing I've tried when I want to get some serious > coding (e.g. > > coding, not debugging) done, is to shut down every background (and > > foreground) process I can -- little ones like itunes stuff and > Quickbook> updaters, but more importantly Apache and MySQL. Does > make using the > > debugger a bit tough though! Running Apache, MySQL, Outlook, > FileMaker,> Fireworks, Word, etc. while running Zend Studio is a > surefire disaster. > > > > My two cents... > > > > Cliff > > > > P.S. I'm using Studio 5.1 > > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org [mailto:talk- > bounces at lists.nyphp.org]> On Behalf Of csnyder > > Sent: Tuesday, December 12, 2006 12:41 PM > > To: NYPHP Talk > > Subject: [nycphp-talk] Zend IDE slooooow > > > > Any other Windows Zend Studio users experience a marked > slowdown in > > the last couple weeks? > > > > Closing open files, for instance, takes seconds per file. > > > > Something has definitely changed on my system, but other apps don't > > seem to be affected. Just wondering if anyone else has experienced > > this. > > > > -- > > 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 > > > > _______________________________________________ > > 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 > > > > > > > > ------------------------------ > > Message: 6 > Date: Tue, 12 Dec 2006 13:32:09 -0500 > From: "Cliff Hirsch" > Subject: RE: [nycphp-talk] Zend IDE slooooow > To: "'NYPHP Talk'" > Message-ID: <001101c71e1b$d52d8930$12a8a8c0 at HirschLaptop> > Content-Type: text/plain; charset="us-ascii" > > I agree that it is probably a memory hog (combined with Java, don't > forget), but I do use it successfully on a lowly Pentium III > with just > 256M of memory. > > Cliff > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk- > bounces at lists.nyphp.org]On Behalf Of Ben Sgro (sk) > Sent: Tuesday, December 12, 2006 1:26 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Zend IDE slooooow > > Hello All, > > I experianced this problem often when working with projects. It seemed > to > consume A TON (dont' remember the #'s) of memory till it choked > itself. > If i opened files and not projects it seemed to last longer. I > tried a > bunch > of different things back then and now I just dont use Zend IDE. > I dont > like > it. > > Give me Emacs and a few putty windows. > > Heh, well good luck! > > - Ben > ----- Original Message ----- > From: "Cliff Hirsch" > To: "'NYPHP Talk'" > Sent: Tuesday, December 12, 2006 1:03 PM > Subject: RE: [nycphp-talk] Zend IDE slooooow > > > >I have had this problem on a randomly recurring basis for ages. > > Sometimes it does take a while for Studio to close and once in > a while > > it does seem to take a few seconds to "think" between key clicks. > > > > When I looked into it a while back, I thought it might have > somethingto > > do the number of classes and methods that have "awareness" in a > project. > > Try working on a single file, without opening a project, to > see if the > > problem persists. > > > > Another thing I've tried when I want to get some serious > coding (e.g. > > coding, not debugging) done, is to shut down every background (and > > foreground) process I can -- little ones like itunes stuff and > Quickbook > > updaters, but more importantly Apache and MySQL. Does make > using the > > debugger a bit tough though! Running Apache, MySQL, Outlook, > FileMaker, > > Fireworks, Word, etc. while running Zend Studio is a surefire > disaster. > > > > My two cents... > > > > Cliff > > > > P.S. I'm using Studio 5.1 > > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] > > On Behalf Of csnyder > > Sent: Tuesday, December 12, 2006 12:41 PM > > To: NYPHP Talk > > Subject: [nycphp-talk] Zend IDE slooooow > > > > Any other Windows Zend Studio users experience a marked > slowdown in > > the last couple weeks? > > > > Closing open files, for instance, takes seconds per file. > > > > Something has definitely changed on my system, but other apps don't > > seem to be affected. Just wondering if anyone else has experienced > > this. > > > > -- > > Chris Snyder > > http://chxo.com/ > > > > ------------------------------ > > Message: 7 > Date: Tue, 12 Dec 2006 12:51:05 -0500 > From: Craig Thomas > Subject: Re: [nycphp-talk] Zend IDE slooooow > To: NYPHP Talk > Message-ID: <20061212125105.37d7f95c at bjarne> > Content-Type: text/plain; charset=US-ASCII > > On Tue, 12 Dec 2006 12:41:12 -0500 > csnyder wrote: > > > Any other Windows Zend Studio users experience a marked > slowdown in > > the last couple weeks? > > Since yesterday my windows install of Zend Studio wont > even start....(but it's not the only app, Homesite too, so > figuring the > box has got something else wrong.) > > > ------------------------------ > > Message: 8 > Date: Tue, 12 Dec 2006 14:46:04 -0500 > From: Rolan Yang > Subject: Re: [nycphp-talk] Zend IDE slooooow > To: NYPHP Talk > Message-ID: <457F06FC.70305 at omnistep.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Odd to see this happening to everyone at the same time. Try > setting the > date on your computer back 1 month and see what happens. > > ~Rolan > > Craig Thomas wrote: > > On Tue, 12 Dec 2006 12:41:12 -0500 > > csnyder wrote: > > > > > >> Any other Windows Zend Studio users experience a marked > slowdown in > >> the last couple weeks? > >> > > > > Since yesterday my windows install of Zend Studio wont > > even start....(but it's not the only app, Homesite too, so > figuring the > > box has got something else wrong.) > > ___ > > > ------------------------------ > > Message: 9 > Date: Tue, 12 Dec 2006 15:24:48 -0500 (EST) > From: David Mintz > Subject: Re: [nycphp-talk] Zend IDE slooooow > To: NYPHP Talk > Message-ID: > Content-Type: TEXT/PLAIN; charset=X-UNKNOWN > > > You guys are talking about Windows and I am using Fedora Core > IV, but... > ZDE has always been a PITA: slowing down, hanging, suspected of > hangingthe whole system. I am using 5.1.0. I keep wondering if > throwing more > memory and CPU at it would help. (Are you listening, Santa Claus?) > > Good thing (or is it bad?) that its many virtues still persuade > me to stay > with the program. > > > --- > 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 > > > > > ------------------------------ > > Message: 10 > Date: Tue, 12 Dec 2006 15:31:29 -0500 > From: "Baer, Jon" > Subject: RE: [nycphp-talk] Zend IDE slooooow > To: "NYPHP Talk" > Message-ID: <4D2FAD9B00577645932AD7ED5FECA24503E6418B at mail> > Content-Type: text/plain; charset="iso-8859-1" > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I would not even be on a Workstation w/ Zend studio < 1 gig of > ram. > > Ive noticed a few hangups w/ networked mounts and SVN > repositories. But all in all nothing Im not used to on Windows. > > I wonder if the latest round of MS problems would not grind > networking to a halt on a few networked apps. > > - - Jon > > - -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk- > bounces at lists.nyphp.org] On Behalf Of David Mintz > Sent: Tuesday, December 12, 2006 3:25 PM > To: NYPHP Talk > Subject: Re: [nycphp-talk] Zend IDE slooooow > > > You guys are talking about Windows and I am using Fedora Core > IV, but... > ZDE has always been a PITA: slowing down, hanging, suspected of > hanging the whole system. I am using 5.1.0. I keep wondering if > throwing more memory and CPU at it would help. (Are you > listening, Santa Claus?) > > Good thing (or is it bad?) that its many virtues still persuade > me to stay with the program. > > > - --- > 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 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.3 (MingW32) > > iD8DBQFFfxGh99e5DI8C/rsRAga/AKDN0QDUvBcvA/+QqVAK5nI8A+PECwCfT35V > Z3JjJVGVO/F+sJjDkxGLb40= > =BbI5 > -----END PGP SIGNATURE----- > > > ------------------------------ > > Message: 11 > Date: Tue, 12 Dec 2006 16:38:23 -0500 > From: csnyder > Subject: [nycphp-talk] Re: Zend IDE slooooow > To: "NYPHP Talk" > Message-ID: > > Content-Type: text/plain; charset=UTF-8; format=flowed > > Thanks for everyone's responses, this is just something that happened > in the last couple weeks. I've seen the stability probs on > Linux, it > feels like a Java app, etc. I can live with all that because it does > what I need it to do, and I have plenty of memory for it to play in. > > It sounds as if it's local to my workstation. I don't know if that > changes my approach to the problem, but at least I can rule out > waiting on bugfix release. > > -- > Chris Snyder > http://chxo.com/ > > > ------------------------------ > > _______________________________________________ > talk mailing list > talk at lists.nyphp.org > http://lists.nyphp.org/mailman/listinfo/talk > > End of talk Digest, Vol 2, Issue 17 > *********************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Thu Dec 21 08:57:15 2006 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 21 Dec 2006 08:57:15 -0500 Subject: [nycphp-talk] Book Discounts Message-ID: <006301c72507$eb955660$650aa8c0@MobileZ> Hello all, Please see the following for discounts from AW/Prentice/Sams: http://www.nyphp.org/UserCouponDecember_06.pdf Happy holidays everyone, --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com From randalrust at gmail.com Thu Dec 21 10:40:14 2006 From: randalrust at gmail.com (Randal Rust) Date: Thu, 21 Dec 2006 10:40:14 -0500 Subject: [nycphp-talk] Retrieving LDAP data on DN of specific record Message-ID: In my LDAP system, I can display all organizations. From that list, I need to link to a summary page. I have been trying to do this by passing the DN in the query string, and then using this function to retrieve the data: function viewOrganization($db, $value){ global $display; $rs=ldap_read($db->ds, $db->dn, '(dn='.$value.')'); if(!$rs){ $display->errors=true; $display->errorM.='

ERROR: '.ldap_error($ds).'

'; } if(!$display->errors){ $info = ldap_get_entries($db->ds, $rs); print_r($info); } } The problem is that if I pass the DN, $info is always empty. If I modify things so that I pass the value of the custom RECORDID attribute, then it works fine. So why can't I retrieve on the DN? -- Randal Rust R.Squared Communications www.r2communications.com From edwardpotter at gmail.com Thu Dec 21 10:45:12 2006 From: edwardpotter at gmail.com (edward potter) Date: Thu, 21 Dec 2006 10:45:12 -0500 Subject: [nycphp-talk] Retrieving LDAP data on DN of specific record In-Reply-To: References: Message-ID: LDAP was a plot by grad school English majors, started as a hoax - to drive programmers crazy! For some strange reason, it just took off. The syntax is insane. sorry, I don't know the answer to this one! :-) -ed On 12/21/06, Randal Rust wrote: > In my LDAP system, I can display all organizations. From that list, I > need to link to a summary page. I have been trying to do this by > passing the DN in the query string, and then using this function to > retrieve the data: > > function viewOrganization($db, $value){ > global $display; > $rs=ldap_read($db->ds, $db->dn, '(dn='.$value.')'); > if(!$rs){ > $display->errors=true; > $display->errorM.='

ERROR: '.ldap_error($ds).'

'; > } > if(!$display->errors){ > $info = ldap_get_entries($db->ds, $rs); > print_r($info); > } > } > > The problem is that if I pass the DN, $info is always empty. > > If I modify things so that I pass the value of the custom RECORDID > attribute, then it works fine. So why can't I retrieve on the DN? > > -- > Randal Rust > R.Squared Communications > www.r2communications.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 > -- 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 randalrust at gmail.com Thu Dec 21 10:48:35 2006 From: randalrust at gmail.com (Randal Rust) Date: Thu, 21 Dec 2006 10:48:35 -0500 Subject: [nycphp-talk] Retrieving LDAP data on DN of specific record In-Reply-To: References: Message-ID: On 12/21/06, edward potter wrote: > LDAP was a plot by grad school English majors, started as a hoax - to > drive programmers crazy! For some strange reason, it just took off. > The syntax is insane. Yes, it's ridiculous. I can see why someone might want to use it for an address book, but not for relational data. This is nuts. -- Randal Rust R.Squared Communications www.r2communications.com From dmintz at davidmintz.org Thu Dec 21 14:53:27 2006 From: dmintz at davidmintz.org (David Mintz) Date: Thu, 21 Dec 2006 14:53:27 -0500 (EST) Subject: [nycphp-talk] Re: cakephp In-Reply-To: References: <0JA6007PNK6TBNM0@mta14.srv.hcvlny.cv.net> Message-ID: On Tue, 12 Dec 2006 dkov at optonline.net wrote: > I think I have figured out my problem and it is really really dumb of > me. On my test machine I don't think I have cookies enabled. On > another machine the array I write to the session appears while on my > machine it isn't. I'm using Mcafree and it blocks many cookies. Does > session use cookies? > http://www.php.net/manual/en/ref.session.php Last time I checked, there were two ways to propagate a session id across page requests: (1) cookies; (2) as a URL variable (URL rewriting). The latter is less secure. --- 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 chsnyder at gmail.com Thu Dec 21 15:06:04 2006 From: chsnyder at gmail.com (csnyder) Date: Thu, 21 Dec 2006 15:06:04 -0500 Subject: [nycphp-talk] Re: cakephp In-Reply-To: References: <0JA6007PNK6TBNM0@mta14.srv.hcvlny.cv.net> Message-ID: On 12/21/06, David Mintz wrote: > http://www.php.net/manual/en/ref.session.php > > Last time I checked, there were two ways to propagate a session id across > page requests: (1) cookies; (2) as a URL variable (URL rewriting). The > latter is less secure. ...less secure because when the session ID is part of the URL, it's easy for an unsuspecting user to send it to somebody in an email or bookmark it on a public machine, and have their session hijacked by someone else. It can also show up in the referrer logs of other hosts if, for example, external images or scripts are included in your pages. There is also the risk that PHP can be tricked into using a non-random session ID, see Chris Shiflett's writeup on Session Fixation if you are considering using URL rewriting for session-keeping: http://shiflett.org/articles/security-corner-feb2004 -- Chris Snyder http://chxo.com/ From r.mariotti at fdcx.net Fri Dec 22 09:24:02 2006 From: r.mariotti at fdcx.net (R. Mariotti) Date: Fri, 22 Dec 2006 09:24:02 -0500 Subject: [nycphp-talk] OT: Text to Postscript conversion help (ONE-TIME)??? Message-ID: <458BEA82.9080204@fdcx.net> Gentlemen; I know none of you have anything else to do today (!!!) but I was hoping one kind soul would be willing to create a postscript file for the following label: Name: XXXXXXXXXXXXXXXXXXXXXXXX Help-Line: (xxx) xxx-xxxx Acct# On/Off Code Area(s) XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX For Service Call (xxx)xxx-xxxx I have been trying to create a ps output from my PHP program WITHOUT success and I've even tried some of the recommended suggestions of installing pear and pecl for the PSadmin modules... without luck! With the postscript output of the above, I should be able to use it as a template and substitute my own data in the appropriate areas. And no, I do not really understand all the postscript commands and idiosyncrasies. Thanks to anyone who can quickly accomplish this? bobmct From ken at secdat.com Fri Dec 22 16:05:29 2006 From: ken at secdat.com (Kenneth Downs) Date: Fri, 22 Dec 2006 16:05:29 -0500 Subject: [nycphp-talk] Merry Christmas to All! Message-ID: <458C4899.8050800@secdat.com> Merry Christmas to everyone on the list! -------------- next part -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From codebowl at gmail.com Fri Dec 22 16:44:45 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 22 Dec 2006 16:44:45 -0500 Subject: [nycphp-talk] Merry Christmas to All! In-Reply-To: <458C4899.8050800@secdat.com> References: <458C4899.8050800@secdat.com> Message-ID: <8d9a42800612221344y796ee4bcqe309de25c36adec6@mail.gmail.com> Ditto ;) -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tedd at sperling.com Fri Dec 22 17:16:32 2006 From: tedd at sperling.com (tedd) Date: Fri, 22 Dec 2006 17:16:32 -0500 Subject: [nycphp-talk] Merry Christmas to All! In-Reply-To: <8d9a42800612221344y796ee4bcqe309de25c36adec6@mail.gmail.com> References: <458C4899.8050800@secdat.com> <8d9a42800612221344y796ee4bcqe309de25c36adec6@mail.gmail.com> Message-ID: At 4:44 PM -0500 12/22/06, Joseph Crawford wrote: >Ditto ;) In similar fashion, check out my site: http://sperling.com Cheers and Merry Christmas. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com From ken at secdat.com Fri Dec 22 18:28:06 2006 From: ken at secdat.com (Kenneth Downs) Date: Fri, 22 Dec 2006 18:28:06 -0500 Subject: [nycphp-talk] Merry Christmas to All! In-Reply-To: References: <458C4899.8050800@secdat.com> <8d9a42800612221344y796ee4bcqe309de25c36adec6@mail.gmail.com> Message-ID: <458C6A06.6090102@secdat.com> tedd wrote: > At 4:44 PM -0500 12/22/06, Joseph Crawford wrote: >> Ditto ;) > > In similar fashion, check out my site: http://sperling.com lol :) > > Cheers and Merry Christmas. > > tedd -------------- next part -------------- A non-text attachment was scrubbed... Name: ken.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From gayatri_delphi at yahoo.co.in Sat Dec 23 01:01:17 2006 From: gayatri_delphi at yahoo.co.in (Gayatri Delphi) Date: Sat, 23 Dec 2006 06:01:17 +0000 (GMT) Subject: [nycphp-talk] Merry Christmas to All! In-Reply-To: <458C4899.8050800@secdat.com> Message-ID: <731017.88578.qm@web7815.mail.in.yahoo.com> Merry X'mas to all ... Kenneth Downs wrote: Merry Christmas to everyone on the list! 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 Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From ramons at gmx.net Sat Dec 23 08:36:05 2006 From: ramons at gmx.net (David Krings) Date: Sat, 23 Dec 2006 08:36:05 -0500 Subject: [nycphp-talk] Merry Christmas to All! In-Reply-To: <731017.88578.qm@web7815.mail.in.yahoo.com> References: <731017.88578.qm@web7815.mail.in.yahoo.com> Message-ID: <458D30C5.6010504@gmx.net> Merry christmas und Frohe Weihnachten to you all....and soon I will be a New Yorker as well....moving to Schenectady. David Krings From dcech at phpwerx.net Sat Dec 23 09:44:23 2006 From: dcech at phpwerx.net (Dan Cech) Date: Sat, 23 Dec 2006 09:44:23 -0500 Subject: [nycphp-talk] Merry Christmas to All! In-Reply-To: <458D30C5.6010504@gmx.net> References: <731017.88578.qm@web7815.mail.in.yahoo.com> <458D30C5.6010504@gmx.net> Message-ID: <458D40C7.3040905@phpwerx.net> David Krings wrote: > Merry christmas und Frohe Weihnachten to you all....and soon I will be a > New Yorker as well....moving to Schenectady. Maybe we can start a Capital Region chapter of NYPHP, I think we'd need more than 2 local member though.... Dan From Consult at CovenantEDesign.com Sat Dec 23 10:24:02 2006 From: Consult at CovenantEDesign.com (CED) Date: Sat, 23 Dec 2006 10:24:02 -0500 Subject: [nycphp-talk] Merry Christmas to All! References: <731017.88578.qm@web7815.mail.in.yahoo.com><458D30C5.6010504@gmx.net> <458D40C7.3040905@phpwerx.net> Message-ID: <009a01c726a6$60524720$07d6f4a7@ced> Already in the works.... www.AlbanyPHP.org Edward JS Prevost II Me at EdwardPrevost.info www.EdwardPrevost.info ----- Original Message ----- From: "Dan Cech" To: "NYPHP Talk" Sent: Saturday, December 23, 2006 9:44 AM Subject: Re: [nycphp-talk] Merry Christmas to All! > David Krings wrote: > > Merry christmas und Frohe Weihnachten to you all....and soon I will be a > > New Yorker as well....moving to Schenectady. > > Maybe we can start a Capital Region chapter of NYPHP, I think we'd need > more than 2 local member though.... > > Dan > _______________________________________________ > 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 splungent at yahoo.com Sun Dec 24 12:56:45 2006 From: splungent at yahoo.com (Christopher Grimaldi) Date: Sun, 24 Dec 2006 09:56:45 -0800 (PST) Subject: [nycphp-talk] windows 2003 server, php.ini, exchange server & mail ? Message-ID: <236297.23407.qm@web32808.mail.mud.yahoo.com> Hello, I have a dedicated server(win 2003. I have full admin control. This server hosts multiple domains. The email is served by an exchange server. The sites are served by iis 6. I am currently using php 4. My question has to do with mail functions. In the php.ini file there is a section to specify the mail information: {from php.ini} Mail Functions SMTP mail.someserver.com smtp_port "25" sendmail_from somebody at somewhere.com sendmail_path ; not used on windows {end php.ini} The problem is, how can I get the php mail functions to use the smtp from each domain where a message board or other software wishes to send mail? Right now no matter which domain sends mail it comes from the domain named in the php.ini file. Windows (IIS) only lets me use one php.ini file for the server (as far as I know) If I was using apache I could use multiple php.ini files for each domain and set the mail function information to each respective server. Unfortunately, due to the business arrangement I have, I have to use IIS. I have searched all over the internet and have come up dry. Is this even possible with my current configuration? Any advice or help is appreciated. Thanks Chris __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From ramons at gmx.net Sun Dec 24 14:54:31 2006 From: ramons at gmx.net (David Krings) Date: Sun, 24 Dec 2006 14:54:31 -0500 Subject: [nycphp-talk] windows 2003 server, php.ini, exchange server & mail ? In-Reply-To: <236297.23407.qm@web32808.mail.mud.yahoo.com> References: <236297.23407.qm@web32808.mail.mud.yahoo.com> Message-ID: <458EDAF7.7020707@gmx.net> Christopher Grimaldi wrote: > Unfortunately, due to the business arrangement I have, > I have to use IIS. I have searched all over the > internet and have come up dry. Is this even possible > with my current configuration? Any advice or help is appreciated. > > Maybe you need to change business arrangements....sorry, but IIS is in my opinion not a web server, but a plain piece of garbage for reasons like the one you mentioned. Anyhow, as far as I know, you can override settings in the php.ini on the fly through script. The problem would be to make the script adapt to each domain. The command for overriding the php.ini setting should be ini_set, see http://us2.php.net/manual/en/function.ini-set.php. Hope this helps, David From anoland at yahoo.com Sun Dec 24 16:53:24 2006 From: anoland at yahoo.com (Adrian Noland) Date: Sun, 24 Dec 2006 13:53:24 -0800 (PST) Subject: [nycphp-talk] windows 2003 server, php.ini, exchange server & mail ? In-Reply-To: <236297.23407.qm@web32808.mail.mud.yahoo.com> Message-ID: <956880.96108.qm@web34410.mail.mud.yahoo.com> I'm guessing each site has it's own include_dir? phpmailer class lets you specify a host name. I use this because I was unable to get a Free mail server on my testbed. http://phpmailer.sourceforge.net/ --- Christopher Grimaldi wrote: > Hello, > I have a dedicated server(win 2003. I have full admin > control. This server hosts multiple domains. The > email is served by an exchange server. The sites are > served by iis 6. I am currently using php 4. My > question has to do with mail functions. In the php.ini > file there is a section to specify the mail > information: > > {from php.ini} > > Mail Functions > SMTP mail.someserver.com > smtp_port "25" > sendmail_from somebody at somewhere.com > sendmail_path ; not used on windows > > {end php.ini} > > The problem is, how can I get the php mail functions > to use the smtp from each domain where a message board > or other software wishes to send mail? Right now no > matter which domain sends mail it comes from the > domain named in the php.ini file. Windows (IIS) only > lets me use one php.ini file for the server (as far as > I know) If I was using apache I could use multiple > php.ini files for each domain and set the mail > function information to each respective server. > Unfortunately, due to the business arrangement I have, > I have to use IIS. I have searched all over the > internet and have come up dry. Is this even possible > with my current configuration? Any advice or help is appreciated. > > Thanks > Chris > -- Overheard at work: "The way is was implemented here is not the same way as it was implemented at places it works" __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From nyphp at summit7solutions.com Sun Dec 24 21:58:02 2006 From: nyphp at summit7solutions.com (Jeff Wilhelm - NYPHP) Date: Sun, 24 Dec 2006 21:58:02 -0500 Subject: [nycphp-talk] Re: Automatically Print Pages In-Reply-To: <7414-84674@sneakemail.com> Message-ID: <036c01c727d0$7e633460$327ba8c0@ERNIE> Some printers can take input via SMTP and FTP -- I know the network laser printers we have can -- and since FTP functions are so easy to use from PHP applications, that may be an easy and reliable method to look into. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of inforequest Sent: Wednesday, December 20, 2006 7:54 PM To: talk at lists.nyphp.org Subject: Re: [nycphp-talk] Re: Automatically Print Pages Joseph Crawford codebowl-at-gmail.com |nyphp dev/internal group use| wrote: > THe current situation is this. > > We use PHP for the warehouse tools section of the site. THe tools are > hosted on a server at Rackspace that is also connected via VPN to our > local network. We are trying to figure out how to do one of 2 things. > > 1.) have the files print locally on the workstations (Windows XP, IE). > We actually thought of the batch file but that would cause ALL PDF to > be sent to the batch file and we wouldnt want that. > 2.) Have the server at rackspace send the lpr command to push the file > to the shared printer using lpr. > > #2 is the way i am thinking of going. On the form there would be a > textbox that says Printer Name, they would scan a barcode that would > inject the printers shared name. lpr would send the command to that > shared printer. > > The question is how do i know if the linux server at rackspace is > actually seeing the shared printers in-house here. > > Thanks, > Joseph Crawford I'd look at a mail-based solution (procmail?) for this. That might just be me. -- ------------------------------------------------------------- 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 _______________________________________________ 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 selyah1 at yahoo.com Sun Dec 24 22:56:16 2006 From: selyah1 at yahoo.com (selyah) Date: Sun, 24 Dec 2006 19:56:16 -0800 (PST) Subject: [nycphp-talk] displaying dates in php Message-ID: <482368.82567.qm@web30813.mail.mud.yahoo.com> Dear nyphp: I am very new to php programming and need some assistance relating to displaying to dates using php. I wrote a script that involves menu pull-downs for dates that should appear into a form as the end result. I have the form into a table and all of the other td's appear, except the dates. I get a 0000/00/000 for the date fields. I did a goggle for displaying dates in php, but the results are showing me what i have already done. Could some one please direct me or give a sample code on how I can get the dates to appear in the proper context (not 0000/00/00). Thank you in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From shadab_w at yahoo.co.in Mon Dec 25 00:15:03 2006 From: shadab_w at yahoo.co.in (Shadab Wadiwala) Date: Mon, 25 Dec 2006 05:15:03 +0000 (GMT) Subject: [nycphp-talk] displaying dates in php In-Reply-To: <482368.82567.qm@web30813.mail.mud.yahoo.com> Message-ID: <650351.4590.qm@web8713.mail.in.yahoo.com> Hi , This information will surely help you out !! date( ) --------------------------------- string date ( string date_format [, int timestamp] ) Users like to have their dates in a variety of formats, so PHP lets you convert timestamps into different types of strings using the date( ) function. You can send two parameters to date( ), with the second one being optional, as with strtotime( ). Parameter one is a special string containing formatting codes for how you want the timestamp converted, and parameter two is the timestamp you want to convert. If you do not supply the second parameter, PHP assumes you want to convert the current time. Parameter one is tricky: it is a string of letters from a predefined list of 31 possibles. You can use other characters in the string, and these are copied directly into the formatted date. If you are trying to put words into the date format that you do not want to be converted into their date equivalent, you need to escape them with a backslash, \. To make things even more confusing, if your escaped letter is an existing escape sequence, then you need to escape it again! The complete list of date format characters is shown in table. Be careful, as they are case-sensitive! Table 7-1. Format characters for use in date( ) Format character Description Example a Lowercase am/pm am or pm A Uppercase am/pm AM or PM B Swatch Internet Time 000 to 999 c ISO 8601 date, time, and time zone 2004-06-18T09:26:55+01:00 d 2-digit day of month, leading zeros 01 to 31 D Day string, three letters Mon, Thu, Sat F Month string, full January, August g 12-hour clock hour, no leading zeros 1 to 12 G 24-hour clock hour, no leading zeros 0 to 23 h 12-hour clock hour, leading zeros 01 to 12 H 24-hour clock hour, leading zeros 00 to 23 i Minutes with leading zeros 00 to 59 I Is daylight savings time active? 1 if yes, 0 if no j Day of month, no leading zeros 1 to 31 l Day string, full Monday, Saturday L Is it a leap year? 1 if yes, 0 if no m Numeric month, leading zeros 01 to 12 M Short month string Jan, Aug n Numeric month, no leading zeros 1 to 12 O Difference from GMT 200 r RFC-822 formatted date Sat, 22 Dec 1979 17:30 +0000 s Seconds, with leading zeros 00 to 59 S English ordinal suffix for day number st, nd, rd, or th t Number of days in month 28 to 31 T Time zone for server GMT, CET, EST U Unix Timestamp 1056150334 w Numeric day of week 0 (Sunday), 6 (Saturday) W ISO-8601 week number of year 30 (30th week of the year) y Two-digit representation of year 97, 02 Y Four-digit representation of year 1997, 2002 z Day of year 0 to 366 Z Time zone offset in seconds -43200 to 43200 This first example of date( ) is very basic and prints out the current time in 24-hour clock format: print date("H:i"); It's possible to mix the output of date( ) with a text string to get a natural-looking statement, like this: print "The day yesterday was " . date("l", time( ) - 86400); Note that on very specific occasions (particularly when daylight savings time kicks in), the above script will be incorrect. If you need absolute precision, either check for DST or subtract a whole day using mktime( ). This next example outputs the date in the format of 31st of August 2005. Notice that we have the word of in the date format, and it has been passed through to the output instead of being converted. The reason for this is that lowercase O and lowercase F do not have any formatting purpose in the date function (although this may be changed in the future), so they are just copied straight into output: print date("jS of F Y"); In the next example, our date( ) function is embedded between two other strings, which makes for particularly neat output: print "My birthday is on a " . date("l", strtotime("22 Dec 2004")) . " this year."; Please visit http://shadabworld.110mb.com for further contacting me -- Shadab .I. Wadiwala selyah wrote: Dear nyphp: I am very new to php programming and need some assistance relating to displaying to dates using php. I wrote a script that involves menu pull-downs for dates that should appear into a form as the end result. I have the form into a table and all of the other td's appear, except the dates. I get a 0000/00/000 for the date fields. I did a goggle for displaying dates in php, but the results are showing me what i have already done. Could some one please direct me or give a sample code on how I can get the dates to appear in the proper context (not 0000/00/00). Thank you in advance _______________________________________________ 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 Shadab .I. Wadiwala Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From selyah1 at yahoo.com Mon Dec 25 09:39:02 2006 From: selyah1 at yahoo.com (selyah) Date: Mon, 25 Dec 2006 06:39:02 -0800 (PST) Subject: [nycphp-talk] displaying dates in php In-Reply-To: <650351.4590.qm@web8713.mail.in.yahoo.com> Message-ID: <20061225143902.49870.qmail@web30809.mail.mud.yahoo.com> thanks for the response,but that command gives me the date from the computer, i need the date that was selected from the pull-down, (unless my code is not cooded properly) do you have an example of using the date() function with a user defined date pullown? thanks Shadab Wadiwala wrote: Hi , This information will surely help you out !! date( ) --------------------------------- string date ( string date_format [, int timestamp] ) Users like to have their dates in a variety of formats, so PHP lets you convert timestamps into different types of strings using the date( ) function. You can send two parameters to date( ), with the second one being optional, as with strtotime( ). Parameter one is a special string containing formatting codes for how you want the timestamp converted, and parameter two is the timestamp you want to convert. If you do not supply the second parameter, PHP assumes you want to convert the current time. Parameter one is tricky: it is a string of letters from a predefined list of 31 possibles. You can use other characters in the string, and these are copied directly into the formatted date. If you are trying to put words into the date format that you do not want to be converted into their date equivalent, you need to escape them with a backslash, \. To make things even more confusing, if your escaped letter is an existing escape sequence, then you need to escape it again! The complete list of date format characters is shown in table. Be careful, as they are case-sensitive! Table 7-1. Format characters for use in date( ) Format character Description Example a Lowercase am/pm am or pm A Uppercase am/pm AM or PM B Swatch Internet Time 000 to 999 c ISO 8601 date, time, and time zone 2004-06-18T09:26:55+01:00 d 2-digit day of month, leading zeros 01 to 31 D Day string, three letters Mon, Thu, Sat F Month string, full January, August g 12-hour clock hour, no leading zeros 1 to 12 G 24-hour clock hour, no leading zeros 0 to 23 h 12-hour clock hour, leading zeros 01 to 12 H 24-hour clock hour, leading zeros 00 to 23 i Minutes with leading zeros 00 to 59 I Is daylight savings time active? 1 if yes, 0 if no j Day of month, no leading zeros 1 to 31 l Day string, full Monday, Saturday L Is it a leap year? 1 if yes, 0 if no m Numeric month, leading zeros 01 to 12 M Short month string Jan, Aug n Numeric month, no leading zeros 1 to 12 O Difference from GMT 200 r RFC-822 formatted date Sat, 22 Dec 1979 17:30 +0000 s Seconds, with leading zeros 00 to 59 S English ordinal suffix for day number st, nd, rd, or th t Number of days in month 28 to 31 T Time zone for server GMT, CET, EST U Unix Timestamp 1056150334 w Numeric day of week 0 (Sunday), 6 (Saturday) W ISO-8601 week number of year 30 (30th week of the year) y Two-digit representation of year 97, 02 Y Four-digit representation of year 1997, 2002 z Day of year 0 to 366 Z Time zone offset in seconds -43200 to 43200 This first example of date( ) is very basic and prints out the current time in 24-hour clock format: print date("H:i"); It's possible to mix the output of date( ) with a text string to get a natural-looking statement, like this: print "The day yesterday was " . date("l", time( ) - 86400); Note that on very specific occasions (particularly when daylight savings time kicks in), the above script will be incorrect. If you need absolute precision, either check for DST or subtract a whole day using mktime( ). This next example outputs the date in the format of 31st of August 2005. Notice that we have the word of in the date format, and it has been passed through to the output instead of being converted. The reason for this is that lowercase O and lowercase F do not have any formatting purpose in the date function (although this may be changed in the future), so they are just copied straight into output: print date("jS of F Y"); In the next example, our date( ) function is embedded between two other strings, which makes for particularly neat output: print "My birthday is on a " . date("l", strtotime("22 Dec 2004")) . " this year."; Please visit http://shadabworld.110mb.com for further contacting me -- Shadab .I. Wadiwala selyah wrote: Dear nyphp: I am very new to php programming and need some assistance relating to displaying to dates using php. I wrote a script that involves menu pull-downs for dates that should appear into a form as the end result. I have the form into a table and all of the other td's appear, except the dates. I get a 0000/00/000 for the date fields. I did a goggle for displaying dates in php, but the results are showing me what i have already done. Could some one please direct me or give a sample code on how I can get the dates to appear in the proper context (not 0000/00/00). Thank you in advance _______________________________________________ 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 Shadab .I. Wadiwala Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.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 shadab_w at yahoo.co.in Mon Dec 25 11:34:43 2006 From: shadab_w at yahoo.co.in (Shadab Wadiwala) Date: Mon, 25 Dec 2006 16:34:43 +0000 (GMT) Subject: [nycphp-talk] displaying dates in php In-Reply-To: <20061225143902.49870.qmail@web30809.mail.mud.yahoo.com> Message-ID: <20061225163443.59462.qmail@web8710.mail.in.yahoo.com> Hi, Still I am not clear with your question , Can u mail me the Source Code , screen shot etc... So that I can help you., I am sure I can help u out. http://shadabworld.110mb.com Shadab .I. Wadiwala selyah wrote: thanks for the response,but that command gives me the date from the computer, i need the date that was selected from the pull-down, (unless my code is not cooded properly) do you have an example of using the date() function with a user defined date pullown? thanks Shadab Wadiwala wrote: Hi , This information will surely help you out !! date( ) --------------------------------- string date ( string date_format [, int timestamp] ) Users like to have their dates in a variety of formats, so PHP lets you convert timestamps into different types of strings using the date( ) function. You can send two parameters to date( ), with the second one being optional, as with strtotime( ). Parameter one is a special string containing formatting codes for how you want the timestamp converted, and parameter two is the timestamp you want to convert. If you do not supply the second parameter, PHP assumes you want to convert the current time. Parameter one is tricky: it is a string of letters from a predefined list of 31 possibles. You can use other characters in the string, and these are copied directly into the formatted date. If you are trying to put words into the date format that you do not want to be converted into their date equivalent, you need to escape them with a backslash, \. To make things even more confusing, if your escaped letter is an existing escape sequence, then you need to escape it again! The complete list of date format characters is shown in table. Be careful, as they are case-sensitive! Table 7-1. Format characters for use in date( ) Format character Description Example a Lowercase am/pm am or pm A Uppercase am/pm AM or PM B Swatch Internet Time 000 to 999 c ISO 8601 date, time, and time zone 2004-06-18T09:26:55+01:00 d 2-digit day of month, leading zeros 01 to 31 D Day string, three letters Mon, Thu, Sat F Month string, full January, August g 12-hour clock hour, no leading zeros 1 to 12 G 24-hour clock hour, no leading zeros 0 to 23 h 12-hour clock hour, leading zeros 01 to 12 H 24-hour clock hour, leading zeros 00 to 23 i Minutes with leading zeros 00 to 59 I Is daylight savings time active? 1 if yes, 0 if no j Day of month, no leading zeros 1 to 31 l Day string, full Monday, Saturday L Is it a leap year? 1 if yes, 0 if no m Numeric month, leading zeros 01 to 12 M Short month string Jan, Aug n Numeric month, no leading zeros 1 to 12 O Difference from GMT 200 r RFC-822 formatted date Sat, 22 Dec 1979 17:30 +0000 s Seconds, with leading zeros 00 to 59 S English ordinal suffix for day number st, nd, rd, or th t Number of days in month 28 to 31 T Time zone for server GMT, CET, EST U Unix Timestamp 1056150334 w Numeric day of week 0 (Sunday), 6 (Saturday) W ISO-8601 week number of year 30 (30th week of the year) y Two-digit representation of year 97, 02 Y Four-digit representation of year 1997, 2002 z Day of year 0 to 366 Z Time zone offset in seconds -43200 to 43200 This first example of date( ) is very basic and prints out the current time in 24-hour clock format: print date("H:i"); It's possible to mix the output of date( ) with a text string to get a natural-looking statement, like this: print "The day yesterday was " . date("l", time( ) - 86400); Note that on very specific occasions (particularly when daylight savings time kicks in), the above script will be incorrect. If you need absolute precision, either check for DST or subtract a whole day using mktime( ). This next example outputs the date in the format of 31st of August 2005. Notice that we have the word of in the date format, and it has been passed through to the output instead of being converted. The reason for this is that lowercase O and lowercase F do not have any formatting purpose in the date function (although this may be changed in the future), so they are just copied straight into output: print date("jS of F Y"); In the next example, our date( ) function is embedded between two other strings, which makes for particularly neat output: print "My birthday is on a " . date("l", strtotime("22 Dec 2004")) . " this year."; Please visit http://shadabworld.110mb.com for further contacting me -- Shadab .I. Wadiwala selyah wrote: Dear nyphp: I am very new to php programming and need some assistance relating to displaying to dates using php. I wrote a script that involves menu pull-downs for dates that should appear into a form as the end result. I have the form into a table and all of the other td's appear, except the dates. I get a 0000/00/000 for the date fields. I did a goggle for displaying dates in php, but the results are showing me what i have already done. Could some one please direct me or give a sample code on how I can get the dates to appear in the proper context (not 0000/00/00). Thank you in advance _______________________________________________ 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 Shadab .I. Wadiwala Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.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 Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From splungent at yahoo.com Mon Dec 25 13:49:58 2006 From: splungent at yahoo.com (Christopher Grimaldi) Date: Mon, 25 Dec 2006 10:49:58 -0800 (PST) Subject: [nycphp-talk] Re: talk Digest, Vol 2, Issue 41 Message-ID: <394482.92221.qm@web32812.mail.mud.yahoo.com> Thank you all for the great responses. Happy Holidays to all. Thanks Chris __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From selyah1 at yahoo.com Mon Dec 25 18:44:20 2006 From: selyah1 at yahoo.com (selyah) Date: Mon, 25 Dec 2006 15:44:20 -0800 (PST) Subject: [nycphp-talk] displaying dates in php In-Reply-To: <20061225163443.59462.qmail@web8710.mail.in.yahoo.com> Message-ID: <145725.87827.qm@web30808.mail.mud.yahoo.com> Hello Shadab : first, thaks for trying to help. attached is a copy of the portion of the code thast deals with the date pull down. I would like to know how to code the output so that the date that is selected is displayed in a output form. thanks Shadab Wadiwala wrote: Hi, Still I am not clear with your question , Can u mail me the Source Code , screen shot etc... So that I can help you., I am sure I can help u out. http://shadabworld.110mb.com Shadab .I. Wadiwala selyah wrote: thanks for the response,but that command gives me the date from the computer, i need the date that was selected from the pull-down, (unless my code is not cooded properly) do you have an example of using the date() function with a user defined date pullown? thanks Shadab Wadiwala wrote: Hi , This information will surely help you out !! date( ) --------------------------------- string date ( string date_format [, int timestamp] ) Users like to have their dates in a variety of formats, so PHP lets you convert timestamps into different types of strings using the date( ) function. You can send two parameters to date( ), with the second one being optional, as with strtotime( ). Parameter one is a special string containing formatting codes for how you want the timestamp converted, and parameter two is the timestamp you want to convert. If you do not supply the second parameter, PHP assumes you want to convert the current time. Parameter one is tricky: it is a string of letters from a predefined list of 31 possibles. You can use other characters in the string, and these are copied directly into the formatted date. If you are trying to put words into the date format that you do not want to be converted into their date equivalent, you need to escape them with a backslash, \. To make things even more confusing, if your escaped letter is an existing escape sequence, then you need to escape it again! The complete list of date format characters is shown in table. Be careful, as they are case-sensitive! Table 7-1. Format characters for use in date( ) Format character Description Example a Lowercase am/pm am or pm A Uppercase am/pm AM or PM B Swatch Internet Time 000 to 999 c ISO 8601 date, time, and time zone 2004-06-18T09:26:55+01:00 d 2-digit day of month, leading zeros 01 to 31 D Day string, three letters Mon, Thu, Sat F Month string, full January, August g 12-hour clock hour, no leading zeros 1 to 12 G 24-hour clock hour, no leading zeros 0 to 23 h 12-hour clock hour, leading zeros 01 to 12 H 24-hour clock hour, leading zeros 00 to 23 i Minutes with leading zeros 00 to 59 I Is daylight savings time active? 1 if yes, 0 if no j Day of month, no leading zeros 1 to 31 l Day string, full Monday, Saturday L Is it a leap year? 1 if yes, 0 if no m Numeric month, leading zeros 01 to 12 M Short month string Jan, Aug n Numeric month, no leading zeros 1 to 12 O Difference from GMT 200 r RFC-822 formatted date Sat, 22 Dec 1979 17:30 +0000 s Seconds, with leading zeros 00 to 59 S English ordinal suffix for day number st, nd, rd, or th t Number of days in month 28 to 31 T Time zone for server GMT, CET, EST U Unix Timestamp 1056150334 w Numeric day of week 0 (Sunday), 6 (Saturday) W ISO-8601 week number of year 30 (30th week of the year) y Two-digit representation of year 97, 02 Y Four-digit representation of year 1997, 2002 z Day of year 0 to 366 Z Time zone offset in seconds -43200 to 43200 This first example of date( ) is very basic and prints out the current time in 24-hour clock format: print date("H:i"); It's possible to mix the output of date( ) with a text string to get a natural-looking statement, like this: print "The day yesterday was " . date("l", time( ) - 86400); Note that on very specific occasions (particularly when daylight savings time kicks in), the above script will be incorrect. If you need absolute precision, either check for DST or subtract a whole day using mktime( ). This next example outputs the date in the format of 31st of August 2005. Notice that we have the word of in the date format, and it has been passed through to the output instead of being converted. The reason for this is that lowercase O and lowercase F do not have any formatting purpose in the date function (although this may be changed in the future), so they are just copied straight into output: print date("jS of F Y"); In the next example, our date( ) function is embedded between two other strings, which makes for particularly neat output: print "My birthday is on a " . date("l", strtotime("22 Dec 2004")) . " this year."; Please visit http://shadabworld.110mb.com for further contacting me -- Shadab .I. Wadiwala selyah wrote: Dear nyphp: I am very new to php programming and need some assistance relating to displaying to dates using php. I wrote a script that involves menu pull-downs for dates that should appear into a form as the end result. I have the form into a table and all of the other td's appear, except the dates. I get a 0000/00/000 for the date fields. I did a goggle for displaying dates in php, but the results are showing me what i have already done. Could some one please direct me or give a sample code on how I can get the dates to appear in the proper context (not 0000/00/00). Thank you in advance _______________________________________________ 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 Shadab .I. Wadiwala Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.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 Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.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: -------------- next part -------------- A non-text attachment was scrubbed... Name: calendar_section.rtf Type: application/msword Size: 2527 bytes Desc: 707985390-calendar_section.rtf URL: From jface at mercenarylabs.com Mon Dec 25 23:11:12 2006 From: jface at mercenarylabs.com (jface at mercenarylabs.com) Date: Mon, 25 Dec 2006 23:11:12 -0500 Subject: [nycphp-talk] displaying dates in php In-Reply-To: <145725.87827.qm@web30808.mail.mud.yahoo.com> References: <145725.87827.qm@web30808.mail.mud.yahoo.com> Message-ID: Your code displays fine for me. You can grab the data after the form has been submitted as POST data. After the form is submitted, the selected values will be stored like: $month = $_POST['month']; $year = $_POST['year']; echo $month . "
" . $year; etc, etc Don't forget to add in your opening
tag, as it looks like it's missing. On Mon, 25 Dec 2006 15:44:20 -0800 (PST), selyah wrote: > Hello Shadab : > first, thaks for trying to help. > attached is a copy of the portion of the code thast deals with the date > pull down. > I would like to know how to code the output so that the date that is > selected is displayed in a output form. > thanks > > > > > > Shadab Wadiwala wrote: Hi, > > Still I am not clear with your question , Can u mail me the Source > Code , screen shot etc... > So that I can help you., I am sure I can help u out. > > http://shadabworld.110mb.com > Shadab .I. Wadiwala > > selyah wrote: > thanks for the response,but that command gives me the date from the > computer, i need the date that was selected from the pull-down, (unless my > code is not cooded properly) > do you have an example of using the date() function with a user defined > date pullown? > thanks > > Shadab Wadiwala wrote: Hi , > This information will surely help you out !! > > > date( ) > > > --------------------------------- > > > > > string date ( string date_format [, int timestamp] ) > > > Users like to have their dates in a variety of formats, so PHP lets you > convert timestamps into different types of strings using the date( ) > function. > You can send two parameters to date( ), with the second one being > optional, as with strtotime( ). Parameter one is a special string > containing formatting codes for how you want the timestamp converted, and > parameter two is the timestamp you want to convert. If you do not supply > the second parameter, PHP assumes you want to convert the current time. > Parameter one is tricky: it is a string of letters from a predefined > list of 31 possibles. You can use other characters in the string, and these > are copied directly into the formatted date. If you are trying to put words > into the date format that you do not want to be converted into their date > equivalent, you need to escape them with a backslash, \. To make things > even more confusing, if your escaped letter is an existing escape sequence, > then you need to escape it again! > The complete list of date format characters is shown in table. Be > careful, as they are case-sensitive! > Table 7-1. Format characters for use in date( ) > Format character > Description > Example > a > Lowercase am/pm > am or pm > A > Uppercase am/pm > AM or PM > B > Swatch Internet Time > 000 to 999 > c > ISO 8601 date, time, and time zone > 2004-06-18T09:26:55+01:00 > d > 2-digit day of month, leading zeros > 01 to 31 > D > Day string, three letters > Mon, Thu, Sat > F > Month string, full > January, August > g > 12-hour clock hour, no leading zeros > 1 to 12 > G > 24-hour clock hour, no leading zeros > 0 to 23 > h > 12-hour clock hour, leading zeros > 01 to 12 > H > 24-hour clock hour, leading zeros > 00 to 23 > i > Minutes with leading zeros > 00 to 59 > I > Is daylight savings time active? > 1 if yes, 0 if no > j > Day of month, no leading zeros > 1 to 31 > l > Day string, full > Monday, Saturday > L > Is it a leap year? > 1 if yes, 0 if no > m > Numeric month, leading zeros > 01 to 12 > M > Short month string > Jan, Aug > n > Numeric month, no leading zeros > 1 to 12 > O > Difference from GMT > 200 > r > RFC-822 formatted date > Sat, 22 Dec 1979 17:30 +0000 > s > Seconds, with leading zeros > 00 to 59 > S > English ordinal suffix for day number > st, nd, rd, or th > t > Number of days in month > 28 to 31 > T > Time zone for server > GMT, CET, EST > U > Unix Timestamp > 1056150334 > w > Numeric day of week > 0 (Sunday), 6 (Saturday) > W > ISO-8601 week number of year > 30 (30th week of the year) > y > Two-digit representation of year > 97, 02 > Y > Four-digit representation of year > 1997, 2002 > z > Day of year > 0 to 366 > Z > Time zone offset in seconds > -43200 to 43200 > > > > This first example of date( ) is very basic and prints out the current > time in 24-hour clock format: > > print date("H:i"); > > > It's possible to mix the output of date( ) with a text string to get a > natural-looking statement, like this: > > print "The day yesterday was " . date("l", time( ) - 86400); > > > Note that on very specific occasions (particularly when daylight savings > time kicks in), the above script will be incorrect. If you need absolute > precision, either check for DST or subtract a whole day using mktime( ). > This next example outputs the date in the format of 31st of August 2005. > Notice that we have the word of in the date format, and it has been passed > through to the output instead of being converted. The reason for this is > that lowercase O and lowercase F do not have any formatting purpose in the > date function (although this may be changed in the future), so they are > just copied straight into output: > > print date("jS of F Y"); > > > In the next example, our date( ) function is embedded between two other > strings, which makes for particularly neat output: > > print "My birthday is on a " . date("l", strtotime("22 Dec 2004")) . " > this year."; > > Please visit http://shadabworld.110mb.com for further contacting me -- > > Shadab .I. Wadiwala > > selyah wrote: > Dear nyphp: > I am very new to php programming and need some assistance relating to > displaying to dates using php. > I wrote a script that involves menu pull-downs for dates that should > appear into a form as the end result. > I have the form into a table and all of the other td's appear, except the > dates. I get a 0000/00/000 for the date fields. > I did a goggle for displaying dates in php, but the results are showing me > what i have already done. > Could some one please direct me or give a sample code on how I can get the > dates to appear in the proper context (not 0000/00/00). Thank you in > advance > _______________________________________________ > 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 > > > Shadab .I. Wadiwala > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. > Download Now! > http://messenger.yahoo.com/download.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 > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. > Download Now! > http://messenger.yahoo.com/download.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 shadab_w at yahoo.co.in Tue Dec 26 00:05:14 2006 From: shadab_w at yahoo.co.in (Shadab Wadiwala) Date: Tue, 26 Dec 2006 05:05:14 +0000 (GMT) Subject: [nycphp-talk] displaying dates in php In-Reply-To: Message-ID: <20061226050514.92792.qmail@web8702.mail.in.yahoo.com> Hi, The reply you got from jface at mercenarylabs.com is absolutely perfect. The only thing you should remember is that in your PHP code, you should include the following lines --- $month = $_POST['month']; $year = $_POST['year']; etc ....... at the beginning of the code. Here 'month' and 'year' are the values of name attributes you gave to your HTML form fields.---- jface at mercenarylabs.com wrote: Your code displays fine for me. You can grab the data after the form has been submitted as POST data. After the form is submitted, the selected values will be stored like: $month = $_POST['month']; $year = $_POST['year']; echo $month . " " . $year; etc, etc Don't forget to add in your opening tag, as it looks like it's missing. On Mon, 25 Dec 2006 15:44:20 -0800 (PST), selyah wrote: > Hello Shadab : > first, thaks for trying to help. > attached is a copy of the portion of the code thast deals with the date > pull down. > I would like to know how to code the output so that the date that is > selected is displayed in a output form. > thanks > > > > > > Shadab Wadiwala wrote: Hi, > > Still I am not clear with your question , Can u mail me the Source > Code , screen shot etc... > So that I can help you., I am sure I can help u out. > > http://shadabworld.110mb.com > Shadab .I. Wadiwala > > selyah wrote: > thanks for the response,but that command gives me the date from the > computer, i need the date that was selected from the pull-down, (unless my > code is not cooded properly) > do you have an example of using the date() function with a user defined > date pullown? > thanks > > Shadab Wadiwala wrote: Hi , > This information will surely help you out !! > > > date( ) > > > --------------------------------- > > > > > string date ( string date_format [, int timestamp] ) > > > Users like to have their dates in a variety of formats, so PHP lets you > convert timestamps into different types of strings using the date( ) > function. > You can send two parameters to date( ), with the second one being > optional, as with strtotime( ). Parameter one is a special string > containing formatting codes for how you want the timestamp converted, and > parameter two is the timestamp you want to convert. If you do not supply > the second parameter, PHP assumes you want to convert the current time. > Parameter one is tricky: it is a string of letters from a predefined > list of 31 possibles. You can use other characters in the string, and these > are copied directly into the formatted date. If you are trying to put words > into the date format that you do not want to be converted into their date > equivalent, you need to escape them with a backslash, \. To make things > even more confusing, if your escaped letter is an existing escape sequence, > then you need to escape it again! > The complete list of date format characters is shown in table. Be > careful, as they are case-sensitive! > Table 7-1. Format characters for use in date( ) > Format character > Description > Example > a > Lowercase am/pm > am or pm > A > Uppercase am/pm > AM or PM > B > Swatch Internet Time > 000 to 999 > c > ISO 8601 date, time, and time zone > 2004-06-18T09:26:55+01:00 > d > 2-digit day of month, leading zeros > 01 to 31 > D > Day string, three letters > Mon, Thu, Sat > F > Month string, full > January, August > g > 12-hour clock hour, no leading zeros > 1 to 12 > G > 24-hour clock hour, no leading zeros > 0 to 23 > h > 12-hour clock hour, leading zeros > 01 to 12 > H > 24-hour clock hour, leading zeros > 00 to 23 > i > Minutes with leading zeros > 00 to 59 > I > Is daylight savings time active? > 1 if yes, 0 if no > j > Day of month, no leading zeros > 1 to 31 > l > Day string, full > Monday, Saturday > L > Is it a leap year? > 1 if yes, 0 if no > m > Numeric month, leading zeros > 01 to 12 > M > Short month string > Jan, Aug > n > Numeric month, no leading zeros > 1 to 12 > O > Difference from GMT > 200 > r > RFC-822 formatted date > Sat, 22 Dec 1979 17:30 +0000 > s > Seconds, with leading zeros > 00 to 59 > S > English ordinal suffix for day number > st, nd, rd, or th > t > Number of days in month > 28 to 31 > T > Time zone for server > GMT, CET, EST > U > Unix Timestamp > 1056150334 > w > Numeric day of week > 0 (Sunday), 6 (Saturday) > W > ISO-8601 week number of year > 30 (30th week of the year) > y > Two-digit representation of year > 97, 02 > Y > Four-digit representation of year > 1997, 2002 > z > Day of year > 0 to 366 > Z > Time zone offset in seconds > -43200 to 43200 > > > > This first example of date( ) is very basic and prints out the current > time in 24-hour clock format: > > print date("H:i"); > > > It's possible to mix the output of date( ) with a text string to get a > natural-looking statement, like this: > > print "The day yesterday was " . date("l", time( ) - 86400); > > > Note that on very specific occasions (particularly when daylight savings > time kicks in), the above script will be incorrect. If you need absolute > precision, either check for DST or subtract a whole day using mktime( ). > This next example outputs the date in the format of 31st of August 2005. > Notice that we have the word of in the date format, and it has been passed > through to the output instead of being converted. The reason for this is > that lowercase O and lowercase F do not have any formatting purpose in the > date function (although this may be changed in the future), so they are > just copied straight into output: > > print date("jS of F Y"); > > > In the next example, our date( ) function is embedded between two other > strings, which makes for particularly neat output: > > print "My birthday is on a " . date("l", strtotime("22 Dec 2004")) . " > this year."; > > Please visit http://shadabworld.110mb.com for further contacting me -- > > Shadab .I. Wadiwala > > selyah wrote: > Dear nyphp: > I am very new to php programming and need some assistance relating to > displaying to dates using php. > I wrote a script that involves menu pull-downs for dates that should > appear into a form as the end result. > I have the form into a table and all of the other td's appear, except the > dates. I get a 0000/00/000 for the date fields. > I did a goggle for displaying dates in php, but the results are showing me > what i have already done. > Could some one please direct me or give a sample code on how I can get the > dates to appear in the proper context (not 0000/00/00). Thank you in > advance > _______________________________________________ > 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 > > > Shadab .I. Wadiwala > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. > Download Now! > http://messenger.yahoo.com/download.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 > Send free SMS to your Friends on Mobile from your Yahoo! Messenger. > Download Now! > http://messenger.yahoo.com/download.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 Shadab .I. Wadiwala My homepage:-- http://shadabworld.110mb.com Send free SMS to your Friends on Mobile from your Yahoo! Messenger. Download Now! http://messenger.yahoo.com/download.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikesz at qualityadvantages.com Tue Dec 26 09:35:37 2006 From: mikesz at qualityadvantages.com (mikesz at qualityadvantages.com) Date: Tue, 26 Dec 2006 22:35:37 +0800 Subject: [nycphp-talk] Holiday Greetings to Everyone... Message-ID: <45913339.30800@qualityadvantages.com> Hello, I am trying to research an issue about PHP_SELF and was wondering if anyone knew the currently status of this exploit. I read a description of the exploit that was a couple of years old but can not find any "current" status of the bug, even on the php.net bug tracking. The report I read concluded with a note at the bottom of the text that said something like the good news is that the fix is in CVS but he never said what the resolution was. I have checked many security sources and have not been able to find any more information about it. The author of the document that explained the exploit had a "working" example of how the exploit worked but when I tried to reproduce it, nothing! I had to assume that bug has been fixed and write that in my own article about the exploit but I stuck to find any current status on it. Any one know about this bug? thanks in advance, mikesz The post I found was a blog entry from May 2005 ... http://blog.phpdoc.info/archives/13-XSS-Woes.html From selyah1 at yahoo.com Tue Dec 26 09:38:46 2006 From: selyah1 at yahoo.com (selyah) Date: Tue, 26 Dec 2006 06:38:46 -0800 (PST) Subject: [nycphp-talk] displaying dates in php In-Reply-To: <20061226050514.92792.qmail@web8702.mail.in.yahoo.com> Message-ID: <902725.77313.qm@web30813.mail.mud.yahoo.com> thanks for your response. I have not edit the codeas yet but here is the full code for you to see. Ian -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: addEm.doc Type: application/msword Size: 13706 bytes Desc: 448786389-addEm.doc URL: From shiflett at php.net Tue Dec 26 14:27:29 2006 From: shiflett at php.net (Chris Shiflett) Date: Tue, 26 Dec 2006 14:27:29 -0500 Subject: [nycphp-talk] Holiday Greetings to Everyone... In-Reply-To: <45913339.30800@qualityadvantages.com> References: <45913339.30800@qualityadvantages.com> Message-ID: <459177A1.3040305@php.net> mikesz at qualityadvantages.com wrote: > Hello, I am trying to research an issue about PHP_SELF and was > wondering if anyone knew the currently status of this exploit. > I read a description of the exploit that was a couple of years > old but can not find any "current" status of the bug, even on > the php.net bug tracking. It's not a bug. It's a vulnerability that you can create in your own applications if you blindly trust $_SERVER['PHP_SELF']. Don't do that. Chris -- Chris Shiflett http://shiflett.org/ From codebowl at gmail.com Tue Dec 26 17:11:00 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Tue, 26 Dec 2006 17:11:00 -0500 Subject: [nycphp-talk] Holiday Greetings to Everyone... In-Reply-To: <459177A1.3040305@php.net> References: <45913339.30800@qualityadvantages.com> <459177A1.3040305@php.net> Message-ID: <8d9a42800612261411n20af36eat3c5246ff51eb0b7b@mail.gmail.com> Chris, do you suggest hardcoding the filenames even when referencing the same file that is executing? On 12/26/06, Chris Shiflett wrote: > > mikesz at qualityadvantages.com wrote: > > Hello, I am trying to research an issue about PHP_SELF and was > > wondering if anyone knew the currently status of this exploit. > > I read a description of the exploit that was a couple of years > > old but can not find any "current" status of the bug, even on > > the php.net bug tracking. > > It's not a bug. It's a vulnerability that you can create in your own > applications if you blindly trust $_SERVER['PHP_SELF']. > > Don't do that. > > Chris > > -- > Chris Shiflett > http://shiflett.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 > -- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jellicle at gmail.com Tue Dec 26 17:51:32 2006 From: jellicle at gmail.com (Michael Sims) Date: Tue, 26 Dec 2006 17:51:32 -0500 Subject: PHP_SELF problems (was Re: [nycphp-talk] Holiday Greetings to Everyone...) In-Reply-To: <8d9a42800612261411n20af36eat3c5246ff51eb0b7b@mail.gmail.com> References: <45913339.30800@qualityadvantages.com> <459177A1.3040305@php.net> <8d9a42800612261411n20af36eat3c5246ff51eb0b7b@mail.gmail.com> Message-ID: <200612261751.33246.jellicle@gmail.com> On Tuesday 26 December 2006 5:11 pm, Joseph Crawford wrote: > Chris, > > do you suggest hardcoding the filenames even when referencing the same > file that is executing? There was a long thread about this in July 2005. Executive summary: PHP_SELF intentionally includes extra URL garbage (or valuable URL variables, take your pick) tacked on by the user. Don't use it without knowing what it does. Here's what you get when you hit the URL: http://example.com/info.php/testing1?testing2 : _SERVER["REQUEST_URI"] /info.php/testing1?testing2 _SERVER["PHP_SELF"] /info.php/testing1 _SERVER["SCRIPT_NAME"] /info.php Get it? If you don't want that extra stuff tacked on by the user, use the correct _SERVER variable. If you use REQUEST_URI or PHP_SELF, be aware the user can affect the contents of that variable. 99% of the time, you want SCRIPT_NAME, not PHP_SELF. By the way, here's another test: http://example.com/info.php/testing