From jonbaer at jonbaer.com Wed Mar 1 14:21:14 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Wed, 1 Mar 2006 14:21:14 -0500 Subject: [nycphp-talk] [ot] Multiple DB selects (host <-> host) Message-ID: This article describes a setup using slaves/masters to enable cross host queries ... http://www.linux.com/article.pl?sid=06/02/22/2050253 Im just wondering, not that I currently need to do this but isn't there an *easier* way to accomplish this task? - Jon From cahoyos at us.ibm.com Wed Mar 1 19:53:23 2006 From: cahoyos at us.ibm.com (Carlos A Hoyos) Date: Wed, 1 Mar 2006 19:53:23 -0500 Subject: [nycphp-talk] [ot] Multiple DB selects (host <-> host) In-Reply-To: Message-ID: There's a lot to be said on this topic, so let me just put a few bullets as food for thought. - You can't use the "ip.database.table" notation. The "database.table" notation is correct. - You can connect to a mysql database in a different host, so long you have the right permissions, and it's pretty much straightforward. - Running queries that merge data from tables located in different hosts can be done through "data federation". It requires additional configuration and it can be tricky... I know big players support it (i.e. db2), I don't think mysql does yet (but I might be wrong, starting 5.0.3 there's --with-federated-storage-engine option). - On the other hand having master / slave settings is a very common practice, specially in mysql. Not only for data backups, but for database scalability. This "horizontal scalability" model is used by many big traffic sites (flickr comes to mind). Inserts/updates/deletes are done in one master DB, and are replicated to a bunch of slaves to run the selects. This works on all of the sites that are read intensive (which pretty much are most of them). - The article is a little long, but the whole part of setting up a master-slave combo is pretty straight forward. The mysql manual has a whole chapter on this. http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html - As usual the main question is: What do you want to achieve with this? Usually your requirements and architecture will guide you to a simple solution. regards, Carlos From ps at pswebcode.com Wed Mar 1 22:29:44 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Wed, 1 Mar 2006 22:29:44 -0500 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... Message-ID: <000601c63da9$8d096b90$68e4a144@Rubicon> Sorry, another MySQL question on the PHP list, but there are so many great users here... I need to get all the active users email and name for personalization. I need the correct SELECT query addressing two tables that have a one to many relationship linked by "user_id" like the relationship shown below: Table: Users Fields: id user_id Table: User_Attributes Fields: id user_id attribute_name attribute_value So in User_Attributes table you see data like so: 89 78 email joe at joe.com 90 78 name joe 91 78 active yes 92 78 title CEO 93 79 email sal at sal.com 94 79 name sal ... ... I need to get the email and name of all the users where: attribute_name "active" = attribute_value "yes" I'm using this query so far: SELECT a.user_id, b.attribute_name, b.attribute_value FROM users AS a LEFT JOIN User_Attributes AS b ON a.user_id = b.user_id WHERE b.attribute_name IN ('active', 'email', 'salutation', 'first_name', 'last_name') ORDER BY a.user_id ...but this returns a rowset where each user has four rows with an attribute value in each row. I need all four attributes from each user to be returned in one neat row. Additionally, I could use all the non-active users filtered out by the SQL. Any help here? Warmest regards, Peter Sawczynec, Technology Director PSWebcode _Design & Interface _Ecommerce _Database Management ps at pswebcode.com 718.796.1951 www.pswebcode.com From ajai at bitblit.net Wed Mar 1 22:56:05 2006 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 01 Mar 2006 22:56:05 -0500 Subject: [nycphp-talk] hosting? In-Reply-To: <44031E0B.80102@vermonster.com> References: <001701c63bae$54691940$0337a8c0@shalomHome> <330532b60602270739k5ebcdca7yfcec08e3642839d4@mail.gmail.com> <44031E0B.80102@vermonster.com> Message-ID: <44066CD5.8080707@bitblit.net> Brian Kaney wrote: > We use 1&1, which has been pretty good thus far. But I wonder if anyone > knows of any good Gentoo hosting providers? Good to see Gentoo getting a look in - you often hear stories of people that have installed Gentoo on dedicated servers that were running something else like Fedora or RH. BTW, anyone have a list (or URL to one) that lists Gentoo-based hosting companies? From cahoyos at us.ibm.com Wed Mar 1 23:06:06 2006 From: cahoyos at us.ibm.com (Carlos A Hoyos) Date: Wed, 1 Mar 2006 23:06:06 -0500 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... In-Reply-To: <000601c63da9$8d096b90$68e4a144@Rubicon> Message-ID: Two very simple options: 1- You can join with the same table multiple times just by giving it different alias. So for example this following query will get all users id, SELECT user.user_id, at1.attribute_value as name, at2.attribute_value as email, FROM users AS user, User_Attributes AS at1, User_Attributes AS at2 WHERE user.user_id = at1.user_id AND user.user_id = at2.user_id AND at1.attribute_name = 'last_name' AND at2.attribute_name = 'email' you get the idea... 2- You can use subqueries, for example to get emails for all active users: select at1.attribute_value from User_Attributes AS at1 where at1.attribute_name = 'email' and at1.user_id in select (user_id from User_Attributes AS at2 where at2.attribute_name = 'active' and at2.attribute_value = 'yes') you get the point... I know it's none of my business, but maybe you should use a query like that one to de-normalize the table, I can't think of a good reason for such level of normalization. Carlos Hoyos, Tools Architect Global Production Services - Tools, ibm.com 1133 Westchester Ave, # 2e 524, White Plains, NY 10604 Phone: 914.642.3569 TieLine: 224.3569 cahoyos at us.ibm.com From rolan at omnistep.com Wed Mar 1 23:14:09 2006 From: rolan at omnistep.com (Rolan Yang) Date: Wed, 01 Mar 2006 23:14:09 -0500 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... In-Reply-To: <000601c63da9$8d096b90$68e4a144@Rubicon> References: <000601c63da9$8d096b90$68e4a144@Rubicon> Message-ID: <44067111.4090800@omnistep.com> I don't think you'll get that in a one line query, but you can loop through and/or dump the values into an array. quick and dirty way to print it out (assuming every id has a valid email & name): $result=mysql_query("select attribute_value from User_Attributes order by user_id,attribute_name"); while (list($email)=mysql_fetch_row($result) { list($name)=mysql_fetch_row($result); print "$name $email\n"; } or you could get fancy, use up some more memory and build an array: $result=mysql_query("select user_id,attribute_name,attribute_value from User_Attributes order by user_id,attribute_name"); while (list($id,$attrib,$value)=mysql_fetch_row($result)) { $user[$id][$attrib]=$value; # builds an array with the data } print_r($user); ~Rolan Peter Sawczynec wrote: > Sorry, another MySQL question on the PHP list, but there are so many great > users here... > > I need to get all the active users email and name for personalization. > > I need the correct SELECT query addressing two tables that have a one to > many relationship linked by "user_id" like the relationship shown below: > > Table: Users > Fields: id user_id > > > Table: User_Attributes > Fields: id user_id attribute_name attribute_value > > So in User_Attributes table you see data like so: > 89 78 email joe at joe.com > 90 78 name joe > 91 78 active yes > 92 78 title CEO > 93 79 email sal at sal.com > 94 79 name sal > ... > ... > > > I need to get the email and name of all the users where: > attribute_name "active" = attribute_value "yes" > > > I'm using this query so far: > > SELECT a.user_id, b.attribute_name, b.attribute_value > FROM users AS a LEFT JOIN User_Attributes AS b > ON a.user_id = b.user_id > WHERE b.attribute_name > IN ('active', 'email', 'salutation', 'first_name', 'last_name') > ORDER BY a.user_id > > > ...but this returns a rowset where each user has four rows with an attribute > value in each row. > > I need all four attributes from each user to be returned in one neat row. > > Additionally, I could use all the non-active users filtered out by the SQL. > > Any help here? > > Warmest regards, > > Peter Sawczynec, > Technology Director > PSWebcode > _Design & Interface > _Ecommerce > _Database Management > ps at pswebcode.com > 718.796.1951 > www.pswebcode.com > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > From rolan at omnistep.com Wed Mar 1 23:20:08 2006 From: rolan at omnistep.com (Rolan Yang) Date: Wed, 01 Mar 2006 23:20:08 -0500 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... In-Reply-To: <44067111.4090800@omnistep.com> References: <000601c63da9$8d096b90$68e4a144@Rubicon> <44067111.4090800@omnistep.com> Message-ID: <44067278.50308@omnistep.com> I just read Carlo's post. He has a better solution. My SQL-fu is weak :) ~Rolan From arzala at gmail.com Wed Mar 1 23:45:07 2006 From: arzala at gmail.com (Anirudhsinh Zala) Date: Thu, 02 Mar 2006 10:15:07 +0530 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... In-Reply-To: References: Message-ID: Apart from good answer of Carlos, I would suggest something different. Instead of just finding answer of your queries, you could try to understand nature of the problem that arose due to improper structure of tables. So below points might be helpful to you in solving your problem in proper way. => Table "User" has those kind of fields that hold almost same type of values. I assume (from data given by you from table "User_attributes") "id" and "user_id" both are unique and holds only numeric values. So here you can use only 1 filed say "id" which is auto_increment and primary so it serves purpose of storing "user_id". => Probably best way is to merge both tables "User" and "User_attributes" as there is no any good advantage of this kind of normalization. => In table "User_attributes" values of field "attribute_value" can be fields itself as it is normal practise (unless you have many kind of attribute names. => Hence better structure of your tables can be like below. Table: Users Fields: id, name, email, active, title .... So records in above table can be like: 78, Joe, joe at joe.joe, yes, CEO 79, Sal, Sal at Sal.Sal, no, CTO .... .... So, if you have table structure like above, you can easily build queries to fetch whatever information you want to. Please note that values which are used in join conditions to fetch results can give best results when they are stored as fields itself. Now if you have above table structure, you can easily build your desired queries. Like below: # SELECT id, active, email, salutation, first_name, last_name FROM Users ORDER BY id # SELECT * FROM Users WHERE active='yes' ORDER BY id Thanks, Anirudh Zala (Building coding standards.) On Thu, 02 Mar 2006 09:36:06 +0530, Carlos A Hoyos wrote: > > Two very simple options: > 1- You can join with the same table multiple times just by giving it > different alias. > So for example this following query will get all users id, > > SELECT user.user_id, at1.attribute_value as name, at2.attribute_value as > email, > FROM users AS user, User_Attributes AS at1, User_Attributes AS at2 > WHERE user.user_id = at1.user_id > AND user.user_id = at2.user_id > AND at1.attribute_name = 'last_name' > AND at2.attribute_name = 'email' > > you get the idea... > > 2- You can use subqueries, for example to get emails for all active users: > select at1.attribute_value > from User_Attributes AS at1 > where at1.attribute_name = 'email' > and at1.user_id in > select (user_id from User_Attributes AS at2 where at2.attribute_name > = 'active' and at2.attribute_value = 'yes') > > you get the point... > > I know it's none of my business, but maybe you should use a query like that > one to de-normalize the table, I can't think of a good reason for such > level of normalization. > > > > Carlos Hoyos, Tools Architect > Global Production Services - Tools, ibm.com > 1133 Westchester Ave, # 2e 524, White Plains, NY 10604 > Phone: 914.642.3569 TieLine: 224.3569 > cahoyos at us.ibm.com > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- ----------------------------------------------------- Anirudh Zala (Production Manager) ASPL, http://www.aspl.in Ph: +91 281 245 1894 arzala at gmail.com ----------------------------------------------------- From ps at pswebcode.com Wed Mar 1 23:45:14 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Wed, 1 Mar 2006 23:45:14 -0500 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... In-Reply-To: <44067278.50308@omnistep.com> Message-ID: <000701c63db4$19028140$68e4a144@Rubicon> But your array handling smackdown is excellent. Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Rolan Yang Sent: Wednesday, March 01, 2006 11:20 PM To: NYPHP Talk Subject: Re: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... I just read Carlo's post. He has a better solution. My SQL-fu is weak :) ~Rolan _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From ps at pswebcode.com Wed Mar 1 23:55:40 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Wed, 1 Mar 2006 23:55:40 -0500 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... In-Reply-To: Message-ID: <000801c63db5$8e1036c0$68e4a144@Rubicon> SELECT at1.attribute_value FROM User_Attributes AS at1 WHERE at1.attribute_name = 'email' AND at1.user_id IN (SELECT user_id FROM User_Attributes AS at2 WHERE at2.attribute_name = 'active' and at2.attribute_value = 'yes') Above query does the right work, but can you exapand it to get me users's firt_name from User_Attributes table too. I need active user's name and email. Gracias, Pedro -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Carlos A Hoyos Sent: Wednesday, March 01, 2006 11:06 PM To: NYPHP Talk Subject: Re: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... Two very simple options: 1- You can join with the same table multiple times just by giving it different alias. So for example this following query will get all users id, SELECT user.user_id, at1.attribute_value as name, at2.attribute_value as email, FROM users AS user, User_Attributes AS at1, User_Attributes AS at2 WHERE user.user_id = at1.user_id AND user.user_id = at2.user_id AND at1.attribute_name = 'last_name' AND at2.attribute_name = 'email' you get the idea... 2- You can use subqueries, for example to get emails for all active users: select at1.attribute_value from User_Attributes AS at1 where at1.attribute_name = 'email' and at1.user_id in select (user_id from User_Attributes AS at2 where at2.attribute_name = 'active' and at2.attribute_value = 'yes') you get the point... I know it's none of my business, but maybe you should use a query like that one to de-normalize the table, I can't think of a good reason for such level of normalization. Carlos Hoyos, Tools Architect Global Production Services - Tools, ibm.com 1133 Westchester Ave, # 2e 524, White Plains, NY 10604 Phone: 914.642.3569 TieLine: 224.3569 cahoyos at us.ibm.com _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From rolan at omnistep.com Thu Mar 2 00:12:48 2006 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 02 Mar 2006 00:12:48 -0500 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... In-Reply-To: <44067111.4090800@omnistep.com> References: <000601c63da9$8d096b90$68e4a144@Rubicon> <44067111.4090800@omnistep.com> Message-ID: <44067ED0.8050209@omnistep.com> I missed the part about "active users" in your first post, corrected code below should read: $result=mysql_query("select attribute_value from User_Attributes where attribute_name in ('email','name','active') order by user_id,attribute_name"); while (list($active)=mysql_fetch_row($result) { list($email)=mysql_fetch_row($result); list($name)=mysql_fetch_row($result); if ($active=='yes') { print "$name $email\n"; } } Rolan Yang wrote: > I don't think you'll get that in a one line query, but you can loop > through and/or dump the values into an array. > > quick and dirty way to print it out (assuming every id has a valid email > & name): > > $result=mysql_query("select attribute_value from User_Attributes order > by user_id,attribute_name"); > while (list($email)=mysql_fetch_row($result) { > list($name)=mysql_fetch_row($result); > print "$name $email\n"; > } > > > From ps at pswebcode.com Thu Mar 2 00:12:36 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Thu, 2 Mar 2006 00:12:36 -0500 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... In-Reply-To: Message-ID: <000901c63db7$eb904d10$68e4a144@Rubicon> Just for reference, this amalgamated query, does it all: SELECT user.user_id, at1.attribute_value AS name, at2.attribute_value AS email FROM Users AS user, User_Attributes AS at1, User_Attributes AS at2 WHERE user.user_id = at1.user_id AND user.user_id = at2.user_id AND at1.attribute_name = 'first_name' AND at2.attribute_name = 'email' AND user.user_id IN (SELECT user_id FROM User_Attributes AS at3 WHERE at3.attribute_name = 'active' AND at3.attribute_value = 'yes' ) Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Carlos A Hoyos Sent: Wednesday, March 01, 2006 11:06 PM To: NYPHP Talk Subject: Re: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... Two very simple options: 1- You can join with the same table multiple times just by giving it different alias. So for example this following query will get all users id, SELECT user.user_id, at1.attribute_value as name, at2.attribute_value as email, FROM users AS user, User_Attributes AS at1, User_Attributes AS at2 WHERE user.user_id = at1.user_id AND user.user_id = at2.user_id AND at1.attribute_name = 'last_name' AND at2.attribute_name = 'email' you get the idea... 2- You can use subqueries, for example to get emails for all active users: select at1.attribute_value from User_Attributes AS at1 where at1.attribute_name = 'email' and at1.user_id in select (user_id from User_Attributes AS at2 where at2.attribute_name = 'active' and at2.attribute_value = 'yes') you get the point... I know it's none of my business, but maybe you should use a query like that one to de-normalize the table, I can't think of a good reason for such level of normalization. Carlos Hoyos, Tools Architect Global Production Services - Tools, ibm.com 1133 Westchester Ave, # 2e 524, White Plains, NY 10604 Phone: 914.642.3569 TieLine: 224.3569 cahoyos at us.ibm.com _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From lamolist at cyberxdesigns.com Thu Mar 2 00:20:27 2006 From: lamolist at cyberxdesigns.com (Hans Kaspersetz) Date: Thu, 02 Mar 2006 00:20:27 -0500 Subject: [nycphp-talk] February Presentation Message-ID: <4406809B.8060908@cyberxdesigns.com> The February presentation is now posted to the NYPHP website. Audio will follow shortly. http://www.nyphp.org/content/presentations/index.php Thank you, Hans Kaspersetz Presentation Lacky http://www.cyberxdesigns.com *RSS, Atom, OPML, and All That: A Course for Developers* This February, New York PHP Community explores the world of RSS and related technologies. As PHP developers, we're often called upon to generate and read dynamic feeds. Join us this month as author, professor and Java developer - yes, Java developer - Elliotte Harold gives us an indepth look at these essential technologies. XML based syndication is moving from its foundations in weblogs to unexpected arenas: source code control systems, audio narrowcasts, e-mail, bug tracking, stock tickers, and more. News readers like Vienna, NetNewsWire, RSSOwl, and Newsgator are replacing classic web browsers for many uses. This session explores the fundamental technologies underlying this explosion of content: the various versions of RSS, OPML, Atom, and the Atom Publishing Protocol. Learn the tricks and techniques for integrating these XML applications into your products as both clients and servers. Elliotte is originally from New Orleans to which he returns periodically in search of a decent bowl of gumbo. However, he currently resides in the Prospect Heights neighborhood of Brooklyn with his wife Beth and cats Charm (named after the quark) and Marjorie (named after his mother-in-law). He's an adjunct professor of computer science at Polytechnic University where he teaches Java, XML, and object oriented programming. His Cafe au Lait web site at http://www.cafeaulait.org has become one of the most popular independent Java sites on the Internet, and his spin-off site Cafe con Leche at http://www.cafeconleche.org has become one of the most popular XML sites. His books include Java I/O, Java Network Programming, the XML Bible, and XML in a Nutshell. He's currently working on the XOM Library for processing XML with Java, the jaxen XPath engine, and the Amateur media player. From kenneth at ylayali.net Thu Mar 2 00:45:09 2006 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Thu, 2 Mar 2006 00:45:09 -0500 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... In-Reply-To: <000901c63db7$eb904d10$68e4a144@Rubicon> References: <000901c63db7$eb904d10$68e4a144@Rubicon> Message-ID: <20060302054509.GB29473@ylayali.net> For multiple emails, I think you want to explicitly use LEFT JOINS, to allow some NULLs in case a particular user only has one email attribute SELECT user.user_id, at0.attribute_name as name , at1.attribute_name as email1 , at2.attribute_name as email2 , ... FROM Users as user -- with INNER JOIN users will not be returned unless they have -- a first_name attribute INNER JOIN User_Attributes as at0 ON ( user.user_id = at0.user_id AND at0.attribute_name = 'first_name' ) -- with LEFT JOIN, NULL will be returned if the column doesn't -- exist LEFT JOIN User_Attributes as at1 ON ( user.user_id = at1.user_id AND at1.attribute_name = 'email' ) LEFT JOIN User_Attributes as at2 ON ( user.user_id = at2.user_id AND at2.attribute_name = 'email' AND at1.attribute_id != at2.attribute_id ) WHERE -- whatever But the "at1.attribute_id != at2.attribute_id" thing is extremely ugly, and moreso if you begin supporting 3, 4, + email attributes What you really need, if you want to support an arbitrary number of email addresses, is a cursor... of course, you need a recent MySql for that On 06-03-02 00:12 -0500, Peter Sawczynec wrote: > Just for reference, this amalgamated query, does it all: > > SELECT user.user_id, at1.attribute_value AS name, at2.attribute_value AS > email > FROM Users AS user, User_Attributes AS at1, User_Attributes AS at2 > WHERE user.user_id = at1.user_id > AND user.user_id = at2.user_id > AND at1.attribute_name = 'first_name' > AND at2.attribute_name = 'email' > AND user.user_id > IN > (SELECT user_id > FROM User_Attributes AS at3 > WHERE at3.attribute_name = 'active' AND at3.attribute_value = 'yes' ) > > Peter > From enolists at gmail.com Thu Mar 2 04:21:06 2006 From: enolists at gmail.com (Mark Armendariz) Date: Thu, 2 Mar 2006 01:21:06 -0800 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... In-Reply-To: <20060302054509.GB29473@ylayali.net> Message-ID: <00e101c63dda$a3a7dd10$6500a8c0@enobrev> I've a 2 part answer... First, your problem. > On Behalf Of Peter Sawczynec > ... > I need to get all the active users email and name for personalization. > > I need the correct SELECT query addressing two tables that > have a one to many relationship linked by "user_id" like the > relationship shown below: > > Table: Users > Fields: id user_id > > Table: User_Attributes > Fields: id user_id attribute_name attribute_value > On Behalf Of Carlos A Hoyos > ... > 1- You can join with the same table multiple times just by > giving it different alias. > So for example this following query will get all users id, He's correct, except you'll want more control within the joins than Carlos' example. Here's a way to do it (worked correctly on my local mysql 4.023) SELECT user.user_id, email.attribute_value as user_email, name.attribute_value as user_name FROM users user LEFT JOIN user_attributes active ON user.user_id = active.user_id AND active.attribute_name = 'active' LEFT JOIN user_attributes name ON user.user_id = name.user_id AND name.attribute_name = 'name' LEFT JOIN user_attributes email ON user.user_id = email.user_id AND email.attribute_name = 'email' WHERE active.attribute_value = 'yes' > 89 78 email joe at joe.com > 90 78 name joe > 91 78 active yes > 92 78 title CEO > 93 79 email sal at sal.com > 94 79 name sal 95 79 email another at sal.com // and another email for good ol' sal for good measure produces this (sorry if spacing's off): user_id user_email user_name 78 joe at joe.com joe 79 sal at sal.com sal 79 another at sal.com sal > On Behalf Of Kenneth Dombrowski > ... > But the "at1.attribute_id != at2.attribute_id" thing is > extremely ugly, and moreso if you begin supporting 3, 4, + > email attributes Close, but there's no need for a separate join for each email. Essentially, you're getting a list of users from the users table, and then attaching attribute values pertaining to that user per attribute. The joins hold their constraints on the data they need and the only 'where' condition you need is to make sure the user is active. This works well if only ONE of the attributes has multiple values (email in this case). If they would also have multiple phone numbers your results might get messy (at least for a single query, for that you'd want different queries per joined list). > On Behalf Of Anirudhsinh Zala > ... > => Probably best way is to merge both tables "User" and > "User_attributes" as there is no any good advantage of this > kind of normalization. I'm GUESSING that the reason you have the tables set up this way is for a dynamic survey system of sorts, in which you'll want someone to be allowed to add / remove fields as they wish without messing with the data structure. So removing the normalization probably won't work for you in this respect. If it's something else, you might want be sure you've good reason to make a database engine on top of a damned fine database engine. But, the part of Anirudhsinh's argument that I agree with is that the users table has no purpose. Now, if you're adding fields to it (username and password for instance), and have your reasons for meta columns that don't involve recreations and wheels then forget this part of the problem entirely. BUT, if it ONLY holds a user_id, consider getting rid of it. You could use this query instead (tested correctly as well): SELECT active.user_id, email.attribute_value as user_email, name.attribute_value as user_name FROM user_attributes active LEFT JOIN user_attributes name ON active.user_id = name.user_id AND name.attribute_name = 'name' LEFT JOIN user_attributes email ON active.user_id = email.user_id AND email.attribute_name = 'email' WHERE active.attribute_value = 'yes' Good luck!!! Mark Armendariz http://www.enobrev.com/ From SHalter at ThorntonTomasetti.com Thu Mar 2 08:54:36 2006 From: SHalter at ThorntonTomasetti.com (Halter, Shari) Date: Thu, 2 Mar 2006 08:54:36 -0500 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... Message-ID: Speaking of MySQL questions, can anyone recommend a good list for MySQL? Thanks, Shari Halter We've Moved! Our new address is 51 Madison Avenue, New York, NY 10010. Our telephone and fax numbers remain the same. Shari L. Halter Web Programmer Thornton Tomasetti 51 Madison Avenue New York, NY 10010 T 917.661.7800 F 917.661.7801 D 917.661.7970 SHalter at ThorntonTomasetti.com -----Original Message----- From: Peter Sawczynec [mailto:ps at pswebcode.com] Sent: Wednesday, March 01, 2006 10:30 PM To: 'Org, Talk at Nyphp.' Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... Sorry, another MySQL question on the PHP list, but there are so many great users here... I need to get all the active users email and name for personalization. I need the correct SELECT query addressing two tables that have a one to many relationship linked by "user_id" like the relationship shown below: Table: Users Fields: id user_id Table: User_Attributes Fields: id user_id attribute_name attribute_value So in User_Attributes table you see data like so: 89 78 email joe at joe.com 90 78 name joe 91 78 active yes 92 78 title CEO 93 79 email sal at sal.com 94 79 name sal ... ... I need to get the email and name of all the users where: attribute_name "active" = attribute_value "yes" I'm using this query so far: SELECT a.user_id, b.attribute_name, b.attribute_value FROM users AS a LEFT JOIN User_Attributes AS b ON a.user_id = b.user_id WHERE b.attribute_name IN ('active', 'email', 'salutation', 'first_name', 'last_name') ORDER BY a.user_id ...but this returns a rowset where each user has four rows with an attribute value in each row. I need all four attributes from each user to be returned in one neat row. Additionally, I could use all the non-active users filtered out by the SQL. Any help here? Warmest regards, Peter Sawczynec, Technology Director PSWebcode _Design & Interface _Ecommerce _Database Management ps at pswebcode.com 718.796.1951 www.pswebcode.com _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> The information in this email and any attachments may contain confidential information that is intended solely for the attention and use of the named addressee(s). This message or any part thereof must not be disclosed, copied, distributed or retained by any person without authorization from the addressee. If you are not the intended addressee, please notify the sender immediately, and delete this message. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> From lists at zaunere.com Thu Mar 2 09:21:18 2006 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 2 Mar 2006 09:21:18 -0500 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... In-Reply-To: Message-ID: <004a01c63e04$93707590$6a0aa8c0@MZ> Halter, Shari wrote on Thursday, March 02, 2006 8:55 AM: > Speaking of MySQL questions, can anyone recommend a good list for > MySQL? NYPHP has a MySQL SIG, and actually discussions like these should be on that list - there's a lot of folks on it, but not a lot of traffic yet. http://lists.nyphp.org/mailman/listinfo/mysql --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com From SHalter at ThorntonTomasetti.com Thu Mar 2 09:20:05 2006 From: SHalter at ThorntonTomasetti.com (Halter, Shari) Date: Thu, 2 Mar 2006 09:20:05 -0500 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... Message-ID: Right, I'm on that already, but like you said, not so much traffic. Thank you. shari We've Moved! Our new address is 51 Madison Avenue, New York, NY 10010. Our telephone and fax numbers remain the same. Shari L. Halter Web Programmer Thornton Tomasetti 51 Madison Avenue New York, NY 10010 T 917.661.7800 F 917.661.7801 D 917.661.7970 SHalter at ThorntonTomasetti.com -----Original Message----- From: Hans Zaunere [mailto:lists at zaunere.com] Sent: Thursday, March 02, 2006 9:21 AM To: 'NYPHP Talk' Subject: Re: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... Halter, Shari wrote on Thursday, March 02, 2006 8:55 AM: > Speaking of MySQL questions, can anyone recommend a good list for > MySQL? NYPHP has a MySQL SIG, and actually discussions like these should be on that list - there's a lot of folks on it, but not a lot of traffic yet. http://lists.nyphp.org/mailman/listinfo/mysql --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> The information in this email and any attachments may contain confidential information that is intended solely for the attention and use of the named addressee(s). This message or any part thereof must not be disclosed, copied, distributed or retained by any person without authorization from the addressee. If you are not the intended addressee, please notify the sender immediately, and delete this message. <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> From prusak at gmail.com Thu Mar 2 10:17:15 2006 From: prusak at gmail.com (Ophir Prusak) Date: Thu, 2 Mar 2006 10:17:15 -0500 Subject: [nycphp-talk] Yahoo's PHP Dev Center Message-ID: FYI - Just heard about this - http://developer.yahoo.net/php/ -- Ophir Prusak http://www.prusak.com From codebowl at gmail.com Thu Mar 2 10:23:00 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Thu, 2 Mar 2006 10:23:00 -0500 Subject: [nycphp-talk] Yahoo's PHP Dev Center In-Reply-To: References: Message-ID: <8d9a42800603020723n3ddb2f81x53a4045832362951@mail.gmail.com> Nice thanks for passing this along :D -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From scott at crisscott.com Thu Mar 2 10:25:03 2006 From: scott at crisscott.com (Scott Mattocks) Date: Thu, 02 Mar 2006 10:25:03 -0500 Subject: [nycphp-talk] Yahoo's PHP Dev Center In-Reply-To: References: Message-ID: <44070E4F.8080906@crisscott.com> Ophir Prusak wrote: > FYI - > > Just heard about this - Are you sure you didn't hear about it earlier? http://lists.nyphp.org/pipermail/talk/2006-February/017834.html :) -- Scott Mattocks http://www.crisscott.com From ps at pswebcode.com Thu Mar 2 11:09:54 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Thu, 2 Mar 2006 11:09:54 -0500 Subject: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... In-Reply-To: <004a01c63e04$93707590$6a0aa8c0@MZ> Message-ID: <002c01c63e13$bea60590$68e4a144@Rubicon> I didn't know there was a MySQL sig. I'll restrict my MySQL or SQL questions on this list. But, I did net some handsome PHP array handling and SQL strategies in a pinch and thank all. Warmest regards, Peter Sawczynec, Technology Director PSWebcode _Design & Interface _Ecommerce _Database Management ps at pswebcode.com 718.796.1951 www.pswebcode.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Hans Zaunere Sent: Thursday, March 02, 2006 9:21 AM To: 'NYPHP Talk' Subject: Re: [nycphp-talk] A SQL Query Conundrum. I Need Your Assistance... Halter, Shari wrote on Thursday, March 02, 2006 8:55 AM: > Speaking of MySQL questions, can anyone recommend a good list for > MySQL? NYPHP has a MySQL SIG, and actually discussions like these should be on that list - there's a lot of folks on it, but not a lot of traffic yet. http://lists.nyphp.org/mailman/listinfo/mysql --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From mjdewitt at alexcommgrp.com Thu Mar 2 11:51:04 2006 From: mjdewitt at alexcommgrp.com (DeWitt, Michael) Date: Thu, 2 Mar 2006 11:51:04 -0500 Subject: [nycphp-talk] February Presentation Message-ID: Whoa that was fast! Hopefully tonight I will have the MP3 and images ready to go. Mike > -----Original Message----- > From: Hans Kaspersetz [SMTP:lamolist at cyberxdesigns.com] > Sent: Thursday, March 02, 2006 12:20 AM > To: NYPHP Talk > Subject: [nycphp-talk] February Presentation > > The February presentation is now posted to the NYPHP website. Audio > will follow shortly. > > http://www.nyphp.org/content/presentations/index.php > > Thank you, > Hans Kaspersetz > Presentation Lacky > http://www.cyberxdesigns.com > > > > *RSS, Atom, OPML, and All That: A Course for Developers* > > > This February, New York PHP Community explores the world of RSS and > related technologies. As PHP developers, we're often called upon to > generate and read dynamic feeds. Join us this month as author, professor > and Java developer - yes, Java developer - Elliotte Harold gives us an > indepth look at these essential technologies. > > XML based syndication is moving from its foundations in weblogs to > unexpected arenas: source code control systems, audio narrowcasts, > e-mail, bug tracking, stock tickers, and more. News readers like Vienna, > NetNewsWire, RSSOwl, and Newsgator are replacing classic web browsers > for many uses. This session explores the fundamental technologies > underlying this explosion of content: the various versions of RSS, OPML, > Atom, and the Atom Publishing Protocol. Learn the tricks and techniques > for integrating these XML applications into your products as both > clients and servers. > > Elliotte is originally from New Orleans to which he returns periodically > in search of a decent bowl of gumbo. However, he currently resides in > the Prospect Heights neighborhood of Brooklyn with his wife Beth and > cats Charm (named after the quark) and Marjorie (named after his > mother-in-law). He's an adjunct professor of computer science at > Polytechnic University where he teaches Java, XML, and object oriented > programming. His Cafe au Lait web site at http://www.cafeaulait.org has > become one of the most popular independent Java sites on the Internet, > and his spin-off site Cafe con Leche at http://www.cafeconleche.org has > become one of the most popular XML sites. His books include Java I/O, > Java Network Programming, the XML Bible, and XML in a Nutshell. He's > currently working on the XOM Library for processing XML with Java, the > jaxen XPath engine, and the Amateur media player. > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From rotsen at gmail.com Thu Mar 2 12:28:02 2006 From: rotsen at gmail.com (Nestor) Date: Thu, 2 Mar 2006 09:28:02 -0800 Subject: [nycphp-talk] PHP form and Mail tools Message-ID: OK guys I have been away from the web world for 10 month and I am back working on the web. I was wondering what is recommended now a days for php form creator? Is phpmailer still the favorite to use in your php code when mailing information? Thanks, Nestor :-) From tedd at sperling.com Thu Mar 2 13:38:30 2006 From: tedd at sperling.com (tedd) Date: Thu, 2 Mar 2006 13:38:30 -0500 Subject: [nycphp-talk] Yahoo's PHP Dev Center In-Reply-To: <44070E4F.8080906@crisscott.com> References: <44070E4F.8080906@crisscott.com> Message-ID: >Ophir Prusak wrote: >> FYI - >> >> Just heard about this - > >Are you sure you didn't hear about it earlier? >http://lists.nyphp.org/pipermail/talk/2006-February/017834.html > >:) >-- >Scott Mattocks Yeah, it's like Dejaview all over again. tedd -- -------------------------------------------------------------------------------- http://sperling.com From lists at zaunere.com Thu Mar 2 19:26:31 2006 From: lists at zaunere.com (Hans Zaunere) Date: Thu, 2 Mar 2006 19:26:31 -0500 Subject: [nycphp-talk] Yahoo's PHP Dev Center In-Reply-To: Message-ID: <001601c63e59$1f302c20$6a0aa8c0@MZ> Ophir Prusak wrote on Thursday, March 02, 2006 10:17 AM: > FYI - > > Just heard about this - > http://developer.yahoo.net/php/ With any luck, we might have a presentation on this at NYPHPCon 2006, http://www.nyphpcon.com. --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com From randalrust at gmail.com Thu Mar 2 19:56:22 2006 From: randalrust at gmail.com (Randal Rust) Date: Thu, 2 Mar 2006 19:56:22 -0500 Subject: [nycphp-talk] HTML plugin for Eclipse Message-ID: I primary use Homesite as my IDE (not much of one) because I do a lot of HTML and CSS, and I like the validation and tag completion features. But I like the features that PHP Eclipse has for PHP. Is there a plugin for HTML validation and tag completion for Eclipse? -- Randal Rust R.Squared Communications www.r2communications.com From donnamarievincent at yahoo.com Thu Mar 2 20:19:23 2006 From: donnamarievincent at yahoo.com (Donna Marie Vincent) Date: Thu, 2 Mar 2006 17:19:23 -0800 (PST) Subject: [nycphp-talk] HTML plugin for Eclipse In-Reply-To: Message-ID: <20060303011923.21048.qmail@web35606.mail.mud.yahoo.com> Dreamweaver has the tag completion for PHP, HTML and CSS. It will even write some of the php code and database queries for you. html/css also. ----- Original Message ---- From: Randal Rust To: NYPHP Talk Sent: Thursday, March 2, 2006 7:56:22 PM Subject: [nycphp-talk] HTML plugin for Eclipse I primary use Homesite as my IDE (not much of one) because I do a lot of HTML and CSS, and I like the validation and tag completion features. But I like the features that PHP Eclipse has for PHP. Is there a plugin for HTML validation and tag completion for Eclipse? -- Randal Rust R.Squared Communications www.r2communications.com _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 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 randalrust at gmail.com Thu Mar 2 20:23:30 2006 From: randalrust at gmail.com (Randal Rust) Date: Thu, 2 Mar 2006 20:23:30 -0500 Subject: [nycphp-talk] HTML plugin for Eclipse In-Reply-To: <20060303011923.21048.qmail@web35606.mail.mud.yahoo.com> References: <20060303011923.21048.qmail@web35606.mail.mud.yahoo.com> Message-ID: On 3/2/06, Donna Marie Vincent wrote: > Dreamweaver has the tag completion for PHP, HTML and CSS. It will even > write some of the php code and database queries for you. html/css also. Yes, I've used Dreamweaver since version 1.0, and really don't need 90% of what is there. That's why I use Homesite. -- Randal Rust R.Squared Communications www.r2communications.com From jonbaer at jonbaer.com Fri Mar 3 01:15:55 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Fri, 3 Mar 2006 01:15:55 -0500 Subject: [nycphp-talk] Yahoo's PHP Dev Center In-Reply-To: <001601c63e59$1f302c20$6a0aa8c0@MZ> References: <001601c63e59$1f302c20$6a0aa8c0@MZ> Message-ID: <34E7E47F-25DF-4C31-A214-9C5EE7244FC3@jonbaer.com> That would be a pretty good talk (from their UI / design philosophies) .. is there any word on Zend Framework updates/ discussions/panels? - Jon On Mar 2, 2006, at 3/2/06 7:26 PM, Hans Zaunere wrote: > > With any luck, we might have a presentation on this at NYPHPCon 2006, > http://www.nyphpcon.com. > > > --- > Hans Zaunere / President / New York PHP > www.nyphp.org / www.nyphp.com > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From sumisudhir at yahoo.com Fri Mar 3 12:01:03 2006 From: sumisudhir at yahoo.com (jlesidt) Date: Fri, 3 Mar 2006 09:01:03 -0800 (PST) Subject: [nycphp-talk] =?iso-8859-1?q?=28no_subject=29?= Message-ID: <20060303170103.12398.qmail@web82207.mail.mud.yahoo.com> Hi, I am looking to download rows of data from Mssql database in php. I want to make an excel file of these rows and zip it so the users can download zip files. Can someone tell me how to go about with this? Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmintz at davidmintz.org Fri Mar 3 12:06:16 2006 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 3 Mar 2006 12:06:16 -0500 (EST) Subject: [nycphp-talk] mssql -> excel In-Reply-To: <20060303170103.12398.qmail@web82207.mail.mud.yahoo.com> References: <20060303170103.12398.qmail@web82207.mail.mud.yahoo.com> Message-ID: Have a look at http://pear.php.net/package/Spreadsheet_Excel_Writer for the Excel part of it. It's pretty astonishing how easily you can turn database data into a spreadsheet and serve it up. For the zip aspect of it, you might consider http://pear.php.net/package/Archive_Zip (though I've never used it myself). HTH. On Fri, 3 Mar 2006, jlesidt wrote: > Hi, > > I am looking to download rows of data from Mssql database in php. I want to make an excel file of these rows and zip it so the users can download zip files. Can someone tell me how to go about with this? > > Thanks, > --- David Mintz http://davidmintz.org/ Amendment IV The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. From ps at pswebcode.com Fri Mar 3 13:14:04 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Fri, 3 Mar 2006 13:14:04 -0500 Subject: [nycphp-talk] (no subject) In-Reply-To: <20060303170103.12398.qmail@web82207.mail.mud.yahoo.com> Message-ID: <000701c63eee$414705f0$68e4a144@Rubicon> This does not exactly solve the specific issue noted here, but this could be useful for anyone who needs to turn the tabular data output from a database into an Excel file on the fly. You can do this: At the very top, first lines of code. No spaces ahead of this because this is headers: This PHP page will force message box the user's browser if they have Excel on their desktop with option to save or open Excel file. And the data will be in nice cells and rows that match how you had setup your HTML above. I have used this successfully. Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of jlesidt Sent: Friday, March 03, 2006 12:01 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] (no subject) Hi, I am looking to download rows of data from Mssql database in php. I want to make an excel file of these rows and zip it so the users can download zip files. Can someone tell me how to go about with this? Thanks, From sumisudhir at yahoo.com Fri Mar 3 13:22:42 2006 From: sumisudhir at yahoo.com (jlesidt) Date: Fri, 3 Mar 2006 10:22:42 -0800 (PST) Subject: [nycphp-talk] (no subject) In-Reply-To: <000701c63eee$414705f0$68e4a144@Rubicon> Message-ID: <20060303182242.33786.qmail@web82211.mail.mud.yahoo.com> Thaks Peter. I have already done this successfully. The problem is when I try to download more that 65000 rows. In this case, I want to split them into two excel files and give the user a zip file. I want to create zip file on the file with these excel files. Is there a way to do this? Peter Sawczynec wrote: This does not exactly solve the specific issue noted here, but this could be useful for anyone who needs to turn the tabular data output from a database into an Excel file on the fly. You can do this: At the very top, first lines of code. No spaces ahead of this because this is headers: header("Content-Type: application/vnd.ms-excel"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); //START: GET DATA //Make your db connection //Get your data //END: GET DATA //START: DATA DISPLAY //Format you data accurately and consistently with HTML tables, whatever //END: DATA DISPLAY ?> This PHP page will force message box the user's browser if they have Excel on their desktop with option to save or open Excel file. And the data will be in nice cells and rows that match how you had setup your HTML above. I have used this successfully. Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of jlesidt Sent: Friday, March 03, 2006 12:01 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] (no subject) Hi, I am looking to download rows of data from Mssql database in php. I want to make an excel file of these rows and zip it so the users can download zip files. Can someone tell me how to go about with this? Thanks, _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 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 ps at pswebcode.com Fri Mar 3 13:48:01 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Fri, 3 Mar 2006 13:48:01 -0500 Subject: [nycphp-talk] (no subject) In-Reply-To: <20060303182242.33786.qmail@web82211.mail.mud.yahoo.com> Message-ID: <000d01c63ef2$ff8c9990$68e4a144@Rubicon> >From Zend this link: http://www.zend.com/zend/spotlight/creating-zip-files3.php Part 3 of a 3-part tut on building a PHP class that zips files. Another PHP class to do this: http://www.phpclasses.org/browse/package/945.html Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of jlesidt Sent: Friday, March 03, 2006 1:23 PM To: NYPHP Talk Subject: Re: [nycphp-talk] (no subject) Thaks Peter. I have already done this successfully. The problem is when I try to download more that 65000 rows. In this case, I want to split them into two excel files and give the user a zip file. I want to create zip file on the file with these excel files. Is there a way to do this? Peter Sawczynec wrote: This does not exactly solve the specific issue noted here, but this could be useful for anyone who needs to turn the tabular data output from a database into an Excel file on the fly. You can do this: At the very top, first lines of code. No spaces ahead of this because this is headers: header("Content-Type: application/vnd.ms-excel"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); //START: GET DATA //Make your db connection //Get your data //END: GET DATA //START: DATA DISPLAY //Format you data accurately and consistently with HTML tables, whatever //END: DATA DISPLAY ?> This PHP page will force message box the user's browser if they have Excel on their desktop with option to save or open Excel file. And the data will be in nice cells and rows that match how you had setup your HTML above. I have used this successfully. Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of jlesidt Sent: Friday, March 03, 2006 12:01 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] (no subject) Hi, I am looking to download rows of data from Mssql database in php. I want to make an excel file of these rows and zip it so the users can download zip files. Can someone tell me how to go about with this? Thanks, _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From codebowl at gmail.com Fri Mar 3 13:51:37 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Fri, 3 Mar 2006 13:51:37 -0500 Subject: [nycphp-talk] (no subject) In-Reply-To: <000d01c63ef2$ff8c9990$68e4a144@Rubicon> References: <20060303182242.33786.qmail@web82211.mail.mud.yahoo.com> <000d01c63ef2$ff8c9990$68e4a144@Rubicon> Message-ID: <8d9a42800603031051o6b26bcbo664f28e16bdbe962@mail.gmail.com> i cannot remember where or what it was but i had a class in the past that would generate xls files and you wouldnt have to redirect the headers it would save to the disk, you could use that with a zip class to accomplish what you need. search sourceforge for php excel -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lists at zaunere.com Fri Mar 3 23:55:10 2006 From: lists at zaunere.com (Hans Zaunere) Date: Fri, 3 Mar 2006 23:55:10 -0500 Subject: [nycphp-talk] FW: [PHP] Re: APC and PHP 5.1.2 Message-ID: <00ea01c63f47$d209bfc0$640aa8c0@MZ> Some tips from Rasmus on PHP General on performance... --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com Rasmus Lerdorf wrote on Friday, March 03, 2006 11:51 PM: > Jens Kleikamp wrote: > > steve wrote: > > > Thanks for that! It meant that I should look in other directions > > > which helped me figure out the problem. Can you try again with: > > > > > > apc.optimization=1 > > > > > > > > > Your script also seems to work on my sytem with optimization=1. > > The optimizer doesn't work very well at this point. It will get some > attention soon I hope. > > If you need to squeeze every bit of performance out of your code there > are usually much bigger wins than an optimizer will give you in going > through and cleaning things up. The easy list of low-hanging > optimization fruit are: > > 1. Check your include_path and your includes. If you make heavy use > of files in a directory on your include_path, make sure that path > is first. And yes, that means before "." as well. In fact I > wouldn't even put "." in your include_path, just use > > include './file.php'; > > if you want to include from the current directory or relative to > the current directory. You are going to save quite a few stat > calls by cleaning this up. > > 2. Minimize your use of include_once/require_once. If you can clean > up your dependencies and your include tree such that there is no > question of double-inclusion anywhere everything will be much > happier. A redundant include is obviously going to waste useless > cycles, but even if you don't hit the redundant case, the _once > operations are optimized for the non-cached scenario and actually > calls open() on every file which makes sense without an opcode > cache because you are going to need the file opened, but with a > cache you are going to get the opcodes from the cache and this > becomes a useless extra open() syscall. > > 3. Try to avoid pushing things out of the compiler and into the > executor. That's a bit cryptic, but it basically means try to > avoid dynamically defining functions and classes. > > Good: > > Bad: if($some_condition) { > class foo { ... } > } > > > > In the second case the foo class has to be defined at script > runtime which is much slower than if it is unconditionally > defined in the compiler. Without an opcode cache this isn't much > of an issue, of course since you have to run both stages, but > with an opcode cache where you skip the compile phase and just > feed the opcodes straight to the executor, the more you can > handle when you compile the opcodes the faster your script will > run because the executor has less work to do. > > 4. Make use of APC's apc_store/apc_fetch mechanism. If you have any > sort of large array of data you need often, stick it in shared > memory with an apc_store() call. For example, a typical thing > you see in PHP applications is some sort of config.php file. It > might look like this: > > $config['db_type'] = 'mysql'; > $config['db_user'] = 'bob'; > $config['db_pswd'] = 'foobar'; > $config['data_dir'] = '/var/www/app_data'; > ... > > > > And then on every page you have: include './config.php'; > > This is very inefficient even though the actual file will be > cached in the opcode cache, it still has to execute and create > the array. You can cache the created array like this: > > if(!$config = apc_fetch('config')) { > include './config.php'; > apc_store('config',$config); > } > > Here we only include the config file and thus create the $config > array if it isn't in the cache. So this will only happen on the > very first request. From then on it will get pulled from the > shared memory cache. > > If you look around there are usually a couple of candidates for > this sort of caching in every application and it can make quite > a difference for large arrays. Try to avoid caching objects > because they need to be serialized and unserialized in and out > of the cache and you can only cache the properties anyway, so > pull the data you want to cache into an array and cache that. > > -Rasmus > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php From jonbaer at jonbaer.com Sat Mar 4 19:00:52 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Sat, 4 Mar 2006 19:00:52 -0500 Subject: [nycphp-talk] Zend Framework released ... Message-ID: <9C5DBB4D-8F38-4974-9947-C3F28B1B9DB0@jonbaer.com> http://framework.zend.com/download Zend Framework Preview Zend Framework is a high quality and open source framework for developing Web Applications and Web Services. Built in the true PHP spirit, the Zend Framework delivers ease-of-use and powerful functionality. It provides solutions for building modern, robust, and secure websites. From ps at pswebcode.com Sat Mar 4 21:57:45 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Sat, 4 Mar 2006 21:57:45 -0500 Subject: [nycphp-talk] Open Source Flash Sources Message-ID: <000001c64000$942777b0$68e4a144@Rubicon> Including -- among many interesting avenues -- this highly interactive and unique project: http://www.osflash.org/flashmyadmin Warmest regards, Peter Sawczynec, Technology Director PSWebcode _Design & Interface _Ecommerce _Database Management ps at pswebcode.com 718.796.1951 www.pswebcode.com From dwclifton at gmail.com Sun Mar 5 14:36:16 2006 From: dwclifton at gmail.com (Douglas Clifton) Date: Sun, 5 Mar 2006 14:36:16 -0500 Subject: [nycphp-talk] Zend Framework released ... Message-ID: <7d6cdcb0603051136o36de9002hb93347c6ecbb7b67@mail.gmail.com> Planet PHP has aggregated posts galore on the Zend Framework preview release, try the search function: http://www.planet-php.net/search/zend+framework Among the more interesting as of this morning, Davey from Pixelated Dreams (he is also the author of the Zend_Service API classes) has an example application, with source: http://pixelated-dreams.com/index.php?url=archives/216-Zend-Framework-and-Flickr.html Just mention Flickr and people get excited. At least I do. ;-) -- Douglas Clifton dwclifton at gmail.com http://loadaveragezero.com/ http://loadaveragezero.com/app/s9y/ http://loadaveragezero.com/drx/rss/recent From cliff at pinestream.com Mon Mar 6 13:21:24 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Mon, 6 Mar 2006 13:21:24 -0500 Subject: [nycphp-talk] Boston-based PHP programmer wanted Message-ID: <002301c6414a$c74b6430$0aa8a8c0@cliff> OK, so it's not the Big Apple, a good slice is really hard to come by, the bagels taste like wonder bread and you've got Johnny, but the curse is broken. If you live in the Podunk Boston area and are interested in a PHP gig (internship, contract, part-time or full-time possible), please forward your resume and salary requirements to me. This can involve some tele-commuting, but will initially require you to be on-site. Cliff Hirsch _______________________________ Pinestream Communications, Inc. Tel: 781.647.8800, Fax: 781.647.8825 http://www.pinestream.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From odragola at gmail.com Mon Mar 6 13:32:16 2006 From: odragola at gmail.com (Odra Gola) Date: Mon, 6 Mar 2006 13:32:16 -0500 Subject: [nycphp-talk] Bnner Rotation Message-ID: Hello, This is a logic issue and may be considered Off-Topic, but since I'm using PHP for this project and I know this list is full of very smart people, there is no better place to ask for help. I have a page where three *different* banners ads should be displayed. I have a pool of tens of banner ads from which the 3 banners should be picked. Each banner in the pool has a *weight* value which indicates how often a banner should be displayed relatively to other banners within a period of one month (i.e. a banner with weight = 2 should be displayed twice as often as a banner with weight = 1). The set of three banners to be displayed should be rotated every hour (cron job). The amount of impressions is not important. The banners in the pool and their weight values will be changed manually every month. Well this is how it should work. However I'm not too sure how to come up with an algorithm that will perform the hourly rotations. I usually try to solve all my problems myself, but this time I have 2 other deadlines by the end of today, I have a flu and this thing must be ready by Wednesday morning. The stress and the sickness screw with my head and I can't come up with any logical solutions. Any suggestions and help are greatly appreciated! Cheers, Olaf -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.southwell at nyphp.org Mon Mar 6 14:11:47 2006 From: michael.southwell at nyphp.org (Michael Southwell) Date: Mon, 06 Mar 2006 14:11:47 -0500 Subject: [nycphp-talk] Bnner Rotation In-Reply-To: References: Message-ID: <6.2.3.4.2.20060306140744.0251ccf0@mail.optonline.net> At 01:32 PM 3/6/2006, you wrote: >Well this is how it should work. However I'm not too sure how to >come up with an algorithm that will perform the hourly rotations. >I usually try to solve all my problems myself, but this time I have >2 other deadlines by the end of today, I have a flu and this thing >must be ready by Wednesday morning. >The stress and the sickness screw with my head and I can't come up >with any logical solutions. Every hour create a working array of display banners, where each banner id is entered weight times; then select the ones to be displayed that hour randomly from that array (checking to make sure that you don't accidentally select two or three the same). >Any suggestions and help are greatly appreciated! >Cheers, >Olaf >_______________________________________________ >New York PHP Community Talk Mailing List >http://lists.nyphp.org/mailman/listinfo/talk >New York PHP Conference and Expo 2006 >http://www.nyphpcon.com >Show Your Participation in New York PHP >http://www.nyphp.org/show_participation.php Michael Southwell, Vice President for Education New York PHP http://www.nyphp.com/training - In-depth PHP Training Courses From mitch.pirtle at gmail.com Mon Mar 6 15:14:42 2006 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Mon, 6 Mar 2006 15:14:42 -0500 Subject: [nycphp-talk] Bnner Rotation In-Reply-To: References: Message-ID: <330532b60603061214t60d09286i46e40720ede1848b@mail.gmail.com> On 3/6/06, Odra Gola wrote: > > Hello, > This is a logic issue and may be considered Off-Topic, but since I'm using > PHP for this project and I know this list is full of very smart people, > there is no better place to ask for help. I know you are looking for a smart person, but decided to reply anyway ;-) Ever thought about using phpAdsNew? http://phpadsnew.com/two/ Looks to do most of what you are wanting, and it is easy to integrate ads into your site's templates/content. This might be the shortest distance between two points. If you looked at this and it doesn't already suit your needs, maybe just going with Michael's proposition is the easiest way to solve the problem. -- Mitch Pirtle Joomla! Core Developer Open Source Matters From 1j0lkq002 at sneakemail.com Mon Mar 6 15:39:29 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 06 Mar 2006 12:39:29 -0800 Subject: [nycphp-talk] Bnner Rotation In-Reply-To: References: Message-ID: <4743-74926@sneakemail.com> Odra Gola odragola-at-gmail.com |nyphp dev/internal group use| wrote: > Hello, > This is a logic issue and may be considered Off-Topic, but since I'm > using PHP for this project and I know this list is full of very smart > people, there is no better place to ask for help. > > I have a page where three *different* banners ads should be displayed. > I have a pool of tens of banner ads from which the 3 banners should be > picked. Each banner in the pool has a *weight* value which indicates > how often a banner should be displayed relatively to other banners > within a period of one month (i.e. a banner with weight = 2 should be > displayed twice as often as a banner with weight = 1). > The set of three banners to be displayed should be rotated every hour > (cron job). The amount of impressions is not important. The banners > in the pool and their weight values will be changed manually every month. > > Well this is how it should work. However I'm not too sure how to come > up with an algorithm that will perform the hourly rotations. > I usually try to solve all my problems myself, but this time I have 2 > other deadlines by the end of today, I have a flu and this thing must > be ready by Wednesday morning. > The stress and the sickness screw with my head and I can't come up > with any logical solutions. > > Any suggestions and help are greatly appreciated! > Cheers, > Olaf > While you are waiting for the smart people to finish cogetating, I will offer some thoughts. I would need to be sure of how the performance data may be interpreted after the fact before choosing the algo. Usually analytics are used later and if they are used on this type of data (where you may have biased the randomization with your selection process) the analytics will be screwed up and nobody will know (except you and everyon eon the NYPHP list, perhaps). You might look at phpAdsNew, which is very good, but if this is your first foray into agency-style ad serving it might be more than a mouthful at this time. You also have to be mindful of the client expectation, since random banner selection may allow chance to show a banner more frequently than your weighting system suggests it should. Usually the weighting is a specification, and may have bounds of acceptable rates.Will that cause any ruffled feathers? Since you say "a banner with weight = 2 should be displayed twice as often as a banner with weight = 1 (over the month)" but you also say " The amount of impressions is not important" I am not sure how you should impose your weights.. perhaps you mean impressions per 3 hours are not important? Are you sure... meaning you will never have to go back and "catch up" if an ad was underpresented? No need to round out the use of ad inventory? Single server; no need to collate data prior to setting next period rotation weights? Once you pick an algo, you might put the appropriate disclaimers to management (hand management a full disclosure of the randomization/selection process you used) so you can forget about the what-ifs. If they are actually thinking that they provided enough of a spec to you that they can run some optimization test on the resulting performance data, that might make them pass your design off to the optimization consultant for the ok. Knowing nothing else, I would pre-generate the array of ad_ID's to show for N days (default N=30) and each hour within and then simply tick through them as needed. Progress of time then defines your status within the rotation and nothing else... everything is measureable/quanifiable/checkable and the array can even be swapped out mid-stream if necessary using post-hoc analysis. I have very little faith in "management" sticking to such specifications as "it won't change within the month" ;-) especially if your systemis expected to scale up. Hope there's some help in there and not just worries.... -=john andrews http://www.seo-fun.com From ps at pswebcode.com Mon Mar 6 16:20:32 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Mon, 6 Mar 2006 16:20:32 -0500 Subject: [nycphp-talk] Bnner Rotation In-Reply-To: Message-ID: <001c01c64163$cd7e6be0$68e4a144@Rubicon> I'm very pleased to also endorse using phpAdsNew as it is a really fine product with excellent graphical interfaces for administering banner ads and campaigns allowing: - multiple ad locations on each of your web pages, - ad weighting, - hit counting, ...and on an on. Note, though, that despite the well-planned install and setup, it has a lot of pretty necessary documentation. It will take, me thinks, at least a full day to install, familiarize, and integrate with php code. But once done, you are quite made. Warmest regards, Peter Sawczynec, Technology Director PSWebcode _Design & Interface _Ecommerce _Database Management ps at pswebcode.com 718.796.1951 www.pswebcode.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Odra Gola Sent: Monday, March 06, 2006 1:32 PM To: talk at lists.nyphp.org Subject: [nycphp-talk] Bnner Rotation Hello, This is a logic issue and may be considered Off-Topic, but since I'm using PHP for this project and I know this list is full of very smart people, there is no better place to ask for help. I have a page where three *different* banners ads should be displayed. I have a pool of tens of banner ads from which the 3 banners should be picked. Each banner in the pool has a *weight* value which indicates how often a banner should be displayed relatively to other banners within a period of one month (i.e. a banner with weight = 2 should be displayed twice as often as a banner with weight = 1). The set of three banners to be displayed should be rotated every hour (cron job). The amount of impressions is not important. The banners in the pool and their weight values will be changed manually every month. Well this is how it should work. However I'm not too sure how to come up with an algorithm that will perform the hourly rotations. I usually try to solve all my problems myself, but this time I have 2 other deadlines by the end of today, I have a flu and this thing must be ready by Wednesday morning. The stress and the sickness screw with my head and I can't come up with any logical solutions. Any suggestions and help are greatly appreciated! Cheers, Olaf From tedd at sperling.com Mon Mar 6 19:40:34 2006 From: tedd at sperling.com (tedd) Date: Mon, 6 Mar 2006 19:40:34 -0500 Subject: [nycphp-talk] Bnner Rotation In-Reply-To: References: Message-ID: >Hello, >This is a logic issue and may be considered Off-Topic, but since I'm >using PHP for this project and I know this list is full of very >smart people, there is no better place to ask for help. > >I have a page where three *different* banners ads should be >displayed. I have a pool of tens of banner ads from which the 3 >banners should be picked. Each banner in the pool has a *weight* >value which indicates how often a banner should be displayed >relatively to other banners within a period of one month (i.e. a >banner with weight = 2 should be displayed twice as often as a >banner with weight = 1). >The set of three banners to be displayed should be rotated every >hour (cron job). The amount of impressions is not important. The >banners in the pool and their weight values will be changed manually >every month. > >Well this is how it should work. However I'm not too sure how to >come up with an algorithm that will perform the hourly rotations. >I usually try to solve all my problems myself, but this time I have >2 other deadlines by the end of today, I have a flu and this thing >must be ready by Wednesday morning. >The stress and the sickness screw with my head and I can't come up >with any logical solutions. > >Any suggestions and help are greatly appreciated! >Cheers, >Olaf Olaf: I'm not the smart one, but I got looks instead. Let's look at your problem. A month has a finite value. The number of banners you have is also finite. You also have banners that have weight, which mean that they appear more often than those with less weight. However, a banner with a weight of two really can be thought of as two like-banners. For example, banner A has a weight of 1 -- banner B has a weight of 2 -- banner C has a weight of 4 -- banner D has a weight of 3. Now, how do you show them? While you have 4 banners, you can look at it like you have ten banners, namely: ABBCCCDDD Now, take all the banners you need to show in one month (ten) and divide the month by that value. The end result is that you have to show each banner for a duration of 3 days. "A" get 3 days, "B" get 3 days, the next "B" gets 3 days and so on. You might want to mix it up, but I wouldn't use a rand function, nor chron -- but rather just schedule the banners display beforehand. If you need to use rand, then have their banner values in an array and remove them from selection as they are used. That way you KNOW that each banner has been shown the "agreed" amount of times. In any event, that's what I would do, your mileage may vary. tedd -- -------------------------------------------------------------------------------- http://sperling.com From odragola at gmail.com Tue Mar 7 14:21:14 2006 From: odragola at gmail.com (Odra Gola) Date: Tue, 7 Mar 2006 14:21:14 -0500 Subject: [nycphp-talk] Bnner Rotation In-Reply-To: References: Message-ID: Michael, Mitch, John, Peter, Tedd, Thank you all for your suggestions. They were very helpful. I came up with a combination of the different ways you have suggested and when I'm done I'll describe in detail what I've done. Thanks again, Olaf -------------- next part -------------- An HTML attachment was scrubbed... URL: From tedd at sperling.com Tue Mar 7 15:23:23 2006 From: tedd at sperling.com (tedd) Date: Tue, 7 Mar 2006 15:23:23 -0500 Subject: [nycphp-talk] Bnner Rotation In-Reply-To: References: Message-ID: >Michael, Mitch, John, Peter, Tedd, >Thank you all for your suggestions. They were very helpful. I came >up with a combination of the different ways you have suggested and >when I'm done I'll describe in detail what I've done. > >Thanks again, >Olaf Olaf: Yes, please provide me with a copy of your final solution. Thanks. tedd -- -------------------------------------------------------------------------------- http://sperling.com From matt at jobsforge.com Sun Mar 5 20:21:10 2006 From: matt at jobsforge.com (Matthew Terenzio) Date: Sun, 5 Mar 2006 20:21:10 -0500 Subject: [nycphp-talk] Zend Framework released ... In-Reply-To: <7d6cdcb0603051136o36de9002hb93347c6ecbb7b67@mail.gmail.com> References: <7d6cdcb0603051136o36de9002hb93347c6ecbb7b67@mail.gmail.com> Message-ID: Also take a look at the no framework MVC framework: http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC- framework.html On Mar 5, 2006, at 2:36 PM, Douglas Clifton wrote: > Planet PHP has aggregated posts galore on the Zend Framework > preview release, try the search function: > > http://www.planet-php.net/search/zend+framework > > Among the more interesting as of this morning, Davey from > Pixelated Dreams (he is also the author of the Zend_Service > API classes) has an example application, with source: > > http://pixelated-dreams.com/index.php?url=archives/216-Zend-Framework- > and-Flickr.html > > Just mention Flickr and people get excited. At least I do. ;-) > > -- > Douglas Clifton > dwclifton at gmail.com > http://loadaveragezero.com/ > http://loadaveragezero.com/app/s9y/ > http://loadaveragezero.com/drx/rss/recent > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > Matt Terenzio ________________________________________ Two-way, shared, public RSS feeds by SkinnyFarm http://skinnyfarm.com From chsnyder at gmail.com Tue Mar 7 18:52:44 2006 From: chsnyder at gmail.com (csnyder) Date: Tue, 7 Mar 2006 18:52:44 -0500 Subject: [nycphp-talk] Zend Framework released ... In-Reply-To: References: <7d6cdcb0603051136o36de9002hb93347c6ecbb7b67@mail.gmail.com> Message-ID: Dontcha hate Apple Mail? http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC-framework.html On 3/5/06, Matthew Terenzio wrote: > Also take a look at the no framework MVC framework: > > http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC- > framework.html > > > > On Mar 5, 2006, at 2:36 PM, Douglas Clifton wrote: > > > Planet PHP has aggregated posts galore on the Zend Framework > > preview release, try the search function: > > > > http://www.planet-php.net/search/zend+framework > > > > Among the more interesting as of this morning, Davey from > > Pixelated Dreams (he is also the author of the Zend_Service > > API classes) has an example application, with source: > > > > http://pixelated-dreams.com/index.php?url=archives/216-Zend-Framework- > > and-Flickr.html > > > > Just mention Flickr and people get excited. At least I do. ;-) > > > > -- > > Douglas Clifton > > dwclifton at gmail.com > > http://loadaveragezero.com/ > > http://loadaveragezero.com/app/s9y/ > > http://loadaveragezero.com/drx/rss/recent > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > New York PHP Conference and Expo 2006 > > http://www.nyphpcon.com > > Show Your Participation in New York PHP > > http://www.nyphp.org/show_participation.php > > > > Matt Terenzio > ________________________________________ > Two-way, shared, public RSS feeds by SkinnyFarm > http://skinnyfarm.com > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Chris Snyder http://chxo.com/ From matt at jobsforge.com Tue Mar 7 18:53:04 2006 From: matt at jobsforge.com (Matthew Terenzio) Date: Tue, 7 Mar 2006 18:53:04 -0500 Subject: [nycphp-talk] Zend Framework released ... In-Reply-To: References: <7d6cdcb0603051136o36de9002hb93347c6ecbb7b67@mail.gmail.com> Message-ID: <59e36399fb8b0a1e808c5d2ea6a6e6cc@jobsforge.com> Sorry, that's terrible. On Mar 7, 2006, at 6:52 PM, csnyder wrote: > Dontcha hate Apple Mail? > http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC- > framework.html > > On 3/5/06, Matthew Terenzio wrote: >> Also take a look at the no framework MVC framework: >> >> http://toys.lerdorf.com/archives/38-The-no-framework-PHP-MVC- >> framework.html >> >> >> >> On Mar 5, 2006, at 2:36 PM, Douglas Clifton wrote: >> >>> Planet PHP has aggregated posts galore on the Zend Framework >>> preview release, try the search function: >>> >>> http://www.planet-php.net/search/zend+framework >>> >>> Among the more interesting as of this morning, Davey from >>> Pixelated Dreams (he is also the author of the Zend_Service >>> API classes) has an example application, with source: >>> >>> http://pixelated-dreams.com/index.php?url=archives/216-Zend- >>> Framework- >>> and-Flickr.html >>> >>> Just mention Flickr and people get excited. At least I do. ;-) >>> >>> -- >>> Douglas Clifton >>> dwclifton at gmail.com >>> http://loadaveragezero.com/ >>> http://loadaveragezero.com/app/s9y/ >>> http://loadaveragezero.com/drx/rss/recent >>> _______________________________________________ >>> New York PHP Community Talk Mailing List >>> http://lists.nyphp.org/mailman/listinfo/talk >>> New York PHP Conference and Expo 2006 >>> http://www.nyphpcon.com >>> Show Your Participation in New York PHP >>> http://www.nyphp.org/show_participation.php >>> >> >> Matt Terenzio >> ________________________________________ >> Two-way, shared, public RSS feeds by SkinnyFarm >> http://skinnyfarm.com >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> New York PHP Conference and Expo 2006 >> http://www.nyphpcon.com >> Show Your Participation in New York PHP >> http://www.nyphp.org/show_participation.php >> > > > -- > Chris Snyder > http://chxo.com/ > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > Matt Terenzio ________________________________________ Two-way, shared, public RSS feeds by SkinnyFarm http://skinnyfarm.com From stephen at musgrave.org Wed Mar 8 08:06:16 2006 From: stephen at musgrave.org (Stephen Musgrave) Date: Wed, 8 Mar 2006 08:06:16 -0500 Subject: [nycphp-talk] Session cookie expiration issue Message-ID: <7AB9CE1F-B9E3-4B33-94DA-41D97541C05F@musgrave.org> Hello - I am using ADO DB for the first time and am also using the Session features. I am having a problem with session ending while the users are active. The session is set at 20 minutes. Session is used to log into a password protected area. Twenty minutes after the session id cookie is set, the user is forced to log out because their cookie has expired, even if they have remained active during that twenty minutes. I have looked at the expiry field for that user and that date keeps on getting set 20 minutes into the future. In analyzing the cookie expire date after loading a page, it doesn't change from the previous value. In fact, it's never updated after it is originally set. At 20:01, the cookie expires. Why isn't the cookie expiration time being reset with every refresh? Am I misunderstanding something here? Do secure cookies have anything to do with it? PHP: 4.4.2 MySQL: 5.0.18 Thanks, Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at plexpod.com Wed Mar 8 10:32:55 2006 From: andrew at plexpod.com (Andrew Yochum) Date: Wed, 8 Mar 2006 10:32:55 -0500 Subject: [nycphp-talk] Session cookie expiration issue In-Reply-To: <7AB9CE1F-B9E3-4B33-94DA-41D97541C05F@musgrave.org> References: <7AB9CE1F-B9E3-4B33-94DA-41D97541C05F@musgrave.org> Message-ID: <20060308153254.GC12451@desario.homelinux.net> On Wed, Mar 08, 2006 at 08:06:16AM -0500, Stephen Musgrave wrote: > Why isn't the cookie expiration time being reset with every refresh? Am I > misunderstanding something here? Do secure cookies have anything to do > with it? Be sure that you call session_start() on each subsequent page request. That will update the cookie. It's often best to have a global include file or an auto-prepend script to take care of this. Secure cookies are irrelevant unless you're jumping in an out of HTTP/HTTPS. HTH, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From lamolist at cyberxdesigns.com Wed Mar 8 12:12:19 2006 From: lamolist at cyberxdesigns.com (Hans Kaspersetz) Date: Wed, 08 Mar 2006 12:12:19 -0500 Subject: [nycphp-talk] February Presentation. Message-ID: <440F1073.7060103@cyberxdesigns.com> We have updated the presentation page with a link to the audio recording of Feb.'s presentation on "RSS, Atom, OPML, and All That: A Course for Developers". http://www.nyphp.org/content/presentations/index.php Thanks, Hans Kaspersetz Presentation Lacky, New York PHP http://www.cyberxdesigns.com From aaron at aarond.com Wed Mar 8 12:17:51 2006 From: aaron at aarond.com (aaron) Date: Wed, 08 Mar 2006 12:17:51 -0500 Subject: [nycphp-talk] telnet Message-ID: <440F11BF.6090607@aarond.com> I have a php script that I'd like to use to open a telnet connection, send a few telnet commands, then exit. I haven't done this type of connection before, and not sure what set of php functions to start with. Any suggestions? thanks, Aaron D. From andrew at plexpod.com Wed Mar 8 12:18:43 2006 From: andrew at plexpod.com (Andrew Yochum) Date: Wed, 8 Mar 2006 12:18:43 -0500 Subject: [nycphp-talk] telnet In-Reply-To: <440F11BF.6090607@aarond.com> References: <440F11BF.6090607@aarond.com> Message-ID: <20060308171842.GH12451@desario.homelinux.net> On Wed, Mar 08, 2006 at 12:17:51PM -0500, aaron wrote: > I have a php script that I'd like to use to open a telnet connection, > send a few telnet commands, then exit. I haven't done this type of > connection before, and not sure what set of php functions to start with. > Any suggestions? If you have SSH access to the remote machine, you might Sara Golemon's SSH2 PECL extension: http://pecl.php.net/package/ssh2 It's not telnet exactly but will help you achieve exactly what you need. And if you're crossing a public network, it's best to use SSH in place of telnet anyway. Plaintext protocols such as telnet & ftp are insecure by nature. HTH, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From chsnyder at gmail.com Wed Mar 8 12:27:08 2006 From: chsnyder at gmail.com (csnyder) Date: Wed, 8 Mar 2006 12:27:08 -0500 Subject: [nycphp-talk] telnet In-Reply-To: <440F11BF.6090607@aarond.com> References: <440F11BF.6090607@aarond.com> Message-ID: On 3/8/06, aaron wrote: > I have a php script that I'd like to use to open a telnet connection, > send a few telnet commands, then exit. I haven't done this type of > connection before, and not sure what set of php functions to start with. > Any suggestions? > > thanks, > Aaron D. If you can use ssh instead, check out http://us2.php.net/ssh2, particularly http://us2.php.net/manual/en/function.ssh2-exec.php ssh2 is a pecl extension to php, and still a little buggy, but better than nothing. Otherwise, a quick google brought up this... http://www.geckotribe.com/php-telnet/ From stephen at musgrave.org Wed Mar 8 15:41:09 2006 From: stephen at musgrave.org (Stephen Musgrave) Date: Wed, 8 Mar 2006 15:41:09 -0500 Subject: [nycphp-talk] Session cookie expiration issue In-Reply-To: <20060308153254.GC12451@desario.homelinux.net> References: <7AB9CE1F-B9E3-4B33-94DA-41D97541C05F@musgrave.org> <20060308153254.GC12451@desario.homelinux.net> Message-ID: <9E11C0C8-2F26-467E-83DB-28F28342A84C@musgrave.org> Andrew - Thanks for your response. > Be sure that you call session_start() on each subsequent page request. > That will update the cookie. It's often best to have a global include > file or an auto-prepend script to take care of this. Secure > cookies are > irrelevant unless you're jumping in an out of HTTP/HTTPS. session_start() is definitely being called in every invocation of ever page on the site. (It's in a global include file.) I am not jumping in and out of HTTPS, so I will turn them off. Any other ideas? Thanks, Stephen ??????????????????????????????? email: stephen at musgrave.org web: http://stephen.musgrave.org/career office: 917.721.3378 From scott at crisscott.com Wed Mar 8 15:44:49 2006 From: scott at crisscott.com (Scott Mattocks) Date: Wed, 08 Mar 2006 15:44:49 -0500 Subject: [nycphp-talk] Session cookie expiration issue In-Reply-To: <9E11C0C8-2F26-467E-83DB-28F28342A84C@musgrave.org> References: <7AB9CE1F-B9E3-4B33-94DA-41D97541C05F@musgrave.org> <20060308153254.GC12451@desario.homelinux.net> <9E11C0C8-2F26-467E-83DB-28F28342A84C@musgrave.org> Message-ID: <440F4241.7000902@crisscott.com> Stephen Musgrave wrote: > session_start() is definitely being called in every invocation of > ever page on the site. (It's in a global include file.) I am not > jumping in and out of HTTPS, so I will turn them off. > > Any other ideas? I am not too familiar with the session features of adodb, but you should take a look at the class/file that is being used for the session handler. Make sure that the method/function used to close the session is updating the timestamp in the database. -- Scott Mattocks http://www.crisscott.com From tedd at sperling.com Wed Mar 8 16:27:54 2006 From: tedd at sperling.com (tedd) Date: Wed, 8 Mar 2006 16:27:54 -0500 Subject: [nycphp-talk] Session cookie expiration issue In-Reply-To: <9E11C0C8-2F26-467E-83DB-28F28342A84C@musgrave.org> References: <7AB9CE1F-B9E3-4B33-94DA-41D97541C05F@musgrave.org> <20060308153254.GC12451@desario.homelinux.net> <9E11C0C8-2F26-467E-83DB-28F28342A84C@musgrave.org> Message-ID: >session_start() is definitely being called in every invocation of >ever page on the site. (It's in a global include file.) I am not >jumping in and out of HTTPS, so I will turn them off. > >Any other ideas? > > >Thanks, > >Stephen Stephen: As you have experienced, session's have a 20 minute life-span if there is no activity from the user. Why it's not holding for you, I don't know. The statement session_start() is only used once per script -- I don't know if it's reactivated by calling it from another script or not. You could try activating session_start() and then regenerating another session_id() by using session_regenerate_id(). It goes like this: ob_start(); session_start(0; session_regenerate_id(); ob_end_flush; This just changes the session_id while leaving all the data intact -- that may reset the time. Another idea, to maintain the session state, is you might try using cookies by sending a cookie with the name PHPSESSID to the client. However, you need to have session_use_cookie = 1 in your php.int. If the client doesn't support cookies, then you can use session_use_trans_sid = 0 and then PHP will automatically appends the session ID to the URL. The other option is to not allow sessions at all, but instead only use cookies by changing session.use_only_cookies = 1 in you php.int directive. That's all I can find and think of. HTH's tedd -- -------------------------------------------------------------------------------- http://sperling.com From dcech at phpwerx.net Wed Mar 8 16:52:54 2006 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 08 Mar 2006 16:52:54 -0500 Subject: [nycphp-talk] Session cookie expiration issue In-Reply-To: <9E11C0C8-2F26-467E-83DB-28F28342A84C@musgrave.org> References: <7AB9CE1F-B9E3-4B33-94DA-41D97541C05F@musgrave.org> <20060308153254.GC12451@desario.homelinux.net> <9E11C0C8-2F26-467E-83DB-28F28342A84C@musgrave.org> Message-ID: <440F5236.4050506@phpwerx.net> Stephen Musgrave wrote: > session_start() is definitely being called in every invocation of > ever page on the site. (It's in a global include file.) I am not > jumping in and out of HTTPS, so I will turn them off. > > Any other ideas? Are you changing the session data? After a quick look through the source, it appears that if the data does not change, adodb will not update it, and will also not update the session expiry field. Try adding something like $_SESSION['lastaccess'] = time(); to your include file to ensure that the session will be updated on each page load. If that is the case, it may be worth opening a bug report for adodb. Dan From dcech at phpwerx.net Wed Mar 8 16:56:44 2006 From: dcech at phpwerx.net (Dan Cech) Date: Wed, 08 Mar 2006 16:56:44 -0500 Subject: [nycphp-talk] Session cookie expiration issue In-Reply-To: <440F5236.4050506@phpwerx.net> References: <7AB9CE1F-B9E3-4B33-94DA-41D97541C05F@musgrave.org> <20060308153254.GC12451@desario.homelinux.net> <9E11C0C8-2F26-467E-83DB-28F28342A84C@musgrave.org> <440F5236.4050506@phpwerx.net> Message-ID: <440F531C.8030202@phpwerx.net> Dan Cech wrote: > Stephen Musgrave wrote: >> session_start() is definitely being called in every invocation of >> ever page on the site. (It's in a global include file.) I am not >> jumping in and out of HTTPS, so I will turn them off. >> >> Any other ideas? > > Are you changing the session data? After a quick look through the > source, it appears that if the data does not change, adodb will not > update it, and will also not update the session expiry field. Hmm, I may have jumped the gun there. It looks like it should still be updating the expiry date. If I were you I would take a look through the sql logs and see exactly what it is executing. Dan From stephen at musgrave.org Wed Mar 8 17:53:23 2006 From: stephen at musgrave.org (Stephen Musgrave) Date: Wed, 8 Mar 2006 17:53:23 -0500 Subject: [nycphp-talk] Session cookie expiration issue In-Reply-To: References: <7AB9CE1F-B9E3-4B33-94DA-41D97541C05F@musgrave.org> <20060308153254.GC12451@desario.homelinux.net> <9E11C0C8-2F26-467E-83DB-28F28342A84C@musgrave.org> Message-ID: <8872464A-B358-490C-A929-8E260A30E786@musgrave.org> > The statement session_start() is only used once per script -- I don't > know if it's reactivated by calling it from another script or not. Nope, that's not the case. I did a search and it's only in my config file > You could try activating session_start() and then regenerating > another session_id() by using session_regenerate_id(). It goes like > this: I experimented with that and it seemed to work just fine, but it seems like overhead that I didn't want to incur right away. ;-) Plus, it might be harder to debug another problem down the line if the session ID of the client is constantly changing? > Another idea, to maintain the session state, is you might try using > cookies by sending a cookie with the name PHPSESSID to the client. > However, you need to have session_use_cookie = 1 in your php.int. The session ID is definitely on the client as a cookie. This app is in a closed environment, so I can count on that. Thanks again for your ideas, Stephen From stephen at musgrave.org Wed Mar 8 17:56:33 2006 From: stephen at musgrave.org (Stephen Musgrave) Date: Wed, 8 Mar 2006 17:56:33 -0500 Subject: [nycphp-talk] Session cookie expiration issue In-Reply-To: <440F531C.8030202@phpwerx.net> References: <7AB9CE1F-B9E3-4B33-94DA-41D97541C05F@musgrave.org> <20060308153254.GC12451@desario.homelinux.net> <9E11C0C8-2F26-467E-83DB-28F28342A84C@musgrave.org> <440F5236.4050506@phpwerx.net> <440F531C.8030202@phpwerx.net> Message-ID: >> Are you changing the session data? After a quick look through the >> source, it appears that if the data does not change, adodb will not >> update it, and will also not update the session expiry field. > > Hmm, I may have jumped the gun there. It looks like it should still be > updating the expiry date. > > If I were you I would take a look through the sql logs and see exactly > what it is executing. Session is being constantly updated with various state information. From enolists at gmail.com Wed Mar 8 19:34:07 2006 From: enolists at gmail.com (Mark Armendariz) Date: Wed, 8 Mar 2006 16:34:07 -0800 Subject: [nycphp-talk] Session cookie expiration issue In-Reply-To: Message-ID: <00b601c64311$30f78270$6500a8c0@enobrev> Have you tried plain sessions sans adodb? If not, you might want to check to be sure sessions are working properly on your php setup before you put too much time digging into the library. Check out your phpinfo(). Look for session.gc_maxlifetime. It defaults at 1440 (in seconds = 24 minutes) >From the manual: "session.gc_maxlifetime specifies the number of seconds after which data will be seen as 'garbage' and cleaned up. Note: If different scripts have different values of session.gc_maxlifetime but share the same place for storing the session data then the script with the minimum value will be cleaning the data. In this case, use this directive together with session.save_path. Note: If you are using the default file-based session handler, your filesystem must keep track of access times (atime). Windows FAT does not so you will have to come up with another way to handle garbage collecting your session if you are stuck with a FAT filesystem or any other filesystem where atime tracking is not available. Since PHP 4.2.3 it has used mtime (modified date) instead of atime. So, you won't have problems with filesystems where atime tracking is not available. " Considering that, you may also want to consider checking the differnece between the time on your server and the time on your mysql server (if they're separate). Also session.cookie_lifetime integer "session.cookie_lifetime specifies the lifetime of the cookie in seconds which is sent to the browser. The value 0 means "until the browser is closed." Defaults to 0. See also session_get_cookie_params() and session_set_cookie_params(). " If these are off, you'll want to update your php.ini. If you've no control over it, check out: http://www.nyphp.org/phundamentals/ini.php Let us know what you find out!! Mark Armendariz From suzerain at suzerain.com Thu Mar 9 08:24:38 2006 From: suzerain at suzerain.com (Marc Antony Vose) Date: Thu, 9 Mar 2006 08:24:38 -0500 Subject: [nycphp-talk] email debugging issue In-Reply-To: References: <7d6cdcb0603051136o36de9002hb93347c6ecbb7b67@mail.gmail.com> Message-ID: Hi there: I'm a little stumped about quite how to proceed with sorting out a problem. I just set up a web server at servermatrix for a client, and a rather complicated site. We're on a redhat linux box with cpanel. One of the features of the site is a postcard->email thing, and they were complaining about not being able to receive email via this feature. However, every time I tested it, I was receiving it. So, I put a small script on the server that just sends dummy text via mail(). Again, I received the emails. I had them give me an email address on their company domain, and - voila - i didn't receive any emails I attempt to send to that account from the server. It appears not to have anything to do with client-side spam filters, though of course I can't know what spam filters are installed at the various domains. Apparently, mac.com and hotmail.com are other known problem domains. The question is: what circumstances could make this new server only be able to email certain domains, and how can I go about finding it out? How can I find out what problems the server may be having? This is all new for me; never seen anything quite like this before. If anyone has any "If I were you, I would ______" advice, it'd be greatly appreciated. Cheers, -- Marc Antony Vose http://www.suzerain.com/ The surest way to corrupt a youth is to instruct him to hold in higher esteem those who think alike than those who think differently. -- Nietzsche From akamm at demicooper.com Thu Mar 9 10:03:17 2006 From: akamm at demicooper.com (Andrew Kamm) Date: Thu, 09 Mar 2006 09:03:17 -0600 Subject: [nycphp-talk] email debugging issue In-Reply-To: Message-ID: > I had them give me an email address on their company domain, and - > voila - i didn't receive any emails I attempt to send to that account > from the server. Are they hosting their email on the same server as the script? If they are not, you'll want to make sure the server is aware of this. In a situation where the email is hosted elsewhere but the server is not aware, it (the server) will try to send the email to itself without actually looking at the record for what server the email is actually supposed to go to. Not sure how that would be corrected on your setup, but I've seen that happen before. Server GUI's like CPanel tend to assume they are handling email when you set up an account. -- Andrew Kamm From stephen at musgrave.org Thu Mar 9 10:47:43 2006 From: stephen at musgrave.org (Stephen Musgrave) Date: Thu, 9 Mar 2006 10:47:43 -0500 Subject: [nycphp-talk] Session cookie expiration issue In-Reply-To: <00b601c64311$30f78270$6500a8c0@enobrev> References: <00b601c64311$30f78270$6500a8c0@enobrev> Message-ID: > Have you tried plain sessions sans adodb? If not, you might want > to check > to be sure sessions are working properly on your php setup before > you put > too much time digging into the library. I haven't brought myself to that point yet because I've been hoping it is something obvious. It seems to me that it isn't so much session as it is the session ID cookie. The expiration date on the cookie is always the original value when set - it never changes. Yes, maybe that is a problem with the manager (ADODB) but something this basic seems unlikely? I'm still thinking that *I* have done something wrong in how I have set up the config. > Check out your phpinfo(). > Look for session.gc_maxlifetime. > It defaults at 1440 (in seconds = 24 minutes) This looks good, in fact I am using ini_set("session.gc_maxlifetime", 1800); and php info shows that the override is being picked up. > "session.cookie_lifetime specifies the lifetime of the cookie in > seconds > which is sent to the browser. The value 0 means "until the browser is > closed." Defaults to 0. See also session_get_cookie_params() and > session_set_cookie_params(). " Ah, now we're onto something. I found the problem. I did something pretty lame and when using the session_set_cookie_params() function (so I could set secure cookies), I set the first parameter to the session time maxlifetime instead of 0. Thank you all for your suggestions! Thanks, Stephen ??????????????????????????????? email: stephen at musgrave.org web: http://stephen.musgrave.org/career office: 917.721.3378 From kenrbnsn at rbnsn.com Thu Mar 9 10:50:13 2006 From: kenrbnsn at rbnsn.com (Ken Robinson) Date: Thu, 09 Mar 2006 10:50:13 -0500 Subject: [nycphp-talk] email debugging issue In-Reply-To: References: <7d6cdcb0603051136o36de9002hb93347c6ecbb7b67@mail.gmail.com> Message-ID: <7.0.1.0.2.20060309103335.020a2738@rbnsn.com> At 08:24 AM 3/9/2006, Marc Antony Vose wrote (in part): >So, I put a small script on the server that just sends dummy text via >mail(). Again, I received the emails. > >I had them give me an email address on their company domain, and - >voila - i didn't receive any emails I attempt to send to that account >from the server. It appears not to have anything to do with >client-side spam filters, though of course I can't know what spam >filters are installed at the various domains. > >Apparently, mac.com and hotmail.com are other known problem domains. > >The question is: what circumstances could make this new server only >be able to email certain domains, and how can I go about finding it >out? How can I find out what problems the server may be having? > >This is all new for me; never seen anything quite like this before. >If anyone has any "If I were you, I would ______" advice, it'd be >greatly appreciated. Since you mention cPanel, I'm assuming you're on a shared host. If you look at the full headers of an email you received, you will see a header that looks something like Return-path: This header should be of the form Return-path: In order to get this to happen, you need to use the fifth parameter to the mail() function. $param5 = '-f someuser at your_domain.com'; mail($to, $subj, $message, $headers, $param5); Ken From rolan at omnistep.com Thu Mar 9 11:04:50 2006 From: rolan at omnistep.com (Rolan Yang) Date: Thu, 09 Mar 2006 11:04:50 -0500 Subject: [nycphp-talk] email debugging issue In-Reply-To: References: <7d6cdcb0603051136o36de9002hb93347c6ecbb7b67@mail.gmail.com> Message-ID: <44105222.9040706@omnistep.com> This is probably not a PHP issue. It sounds like there might be an problem with the mail server on your web hosting environment. Either a configuration issue or the server ip could be on a blacklist. I run a few mail servers that permit users to configure auto forwarding of email to other addresses. Unfortunately, these customers receive a lot of spam which is also forwarded to their accounts at Yahoo. Yahoo has lately become more aggressive with their spam blocking by employing techniques like throttling or even temporary rejection of all email from an ip when too much spam has been received from one source. Because of this, email going to Yahoo has occasionally been delivered slower than the normal 1-2 second delay. On a shared hosting environment, there could be hundreds of websites sending spam-like mail to hosts like yahoo. The more sites there are hosted on one ip, the more likely they are to be throttled or blocked. If this is the case, you might have to resort to hosting on a dedicated server to obtain any reliability in sending mail. ~Rolan Marc Antony Vose wrote: > Hi there: > > I'm a little stumped about quite how to proceed with sorting out a problem. > > I just set up a web server at servermatrix for a client, and a rather > complicated site. We're on a redhat linux box with cpanel. > > One of the features of the site is a postcard->email thing, and they > were complaining about not being able to receive email via this > feature. However, every time I tested it, I was receiving it. > > So, I put a small script on the server that just sends dummy text via > mail(). Again, I received the emails. > > I had them give me an email address on their company domain, and - > voila - i didn't receive any emails I attempt to send to that account > from the server. It appears not to have anything to do with > client-side spam filters, though of course I can't know what spam > filters are installed at the various domains. > > Apparently, mac.com and hotmail.com are other known problem domains. > > The question is: what circumstances could make this new server only > be able to email certain domains, and how can I go about finding it > out? How can I find out what problems the server may be having? > > This is all new for me; never seen anything quite like this before. > If anyone has any "If I were you, I would ______" advice, it'd be > greatly appreciated. > > Cheers, > > From john at coolmacgames.com Fri Mar 10 09:51:07 2006 From: john at coolmacgames.com (John Nunez) Date: Fri, 10 Mar 2006 09:51:07 -0500 Subject: [nycphp-talk] GD renders all images to B&W on resize Message-ID: Hi All, I wrote some code over a year ago that resizes an image when it's uploaded. Recently the RedHat server patched itself and it seems that this code is now broken. All the images are properly resized but they are a weird grayscale mess. Is there a fix for this? PHP 4.3.10 GD bundled (2.0.28 compatible) Thanks, John From cliff at pinestream.com Fri Mar 10 10:05:40 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Fri, 10 Mar 2006 10:05:40 -0500 Subject: [nycphp-talk] Subversion, Bugzilla hosting Message-ID: <008001c64454$1855dde0$0aa8a8c0@cliff> Does anyone use Subversion, Bugzilla, Trac third party hosting? Recommendations? Experiences? Instead of getting a root access dev. server, which seems to be a distraction, I'm thinking of a managed dev. server from 1and1 (only $109/mth.) and than using one of the subversion hosting companies. A bit more money, but fewer headaches -- I think. Thoughts? Cliff Hirsch P.S. Late breaking updte. 1and1 Managed Server does not include MySQL 5. Looks like its back to square one -- root. Uggg. _______________________________ Pinestream Communications, Inc. Publisher of Semiconductor Times & Telecom Trends 52 Pine Street, Weston, MA 02493 USA Tel: 781.647.8800, Fax: 781.647.8825 http://www.pinestream.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dorgan at optonline.net Fri Mar 10 10:06:28 2006 From: dorgan at optonline.net (Donald J. Organ IV) Date: Fri, 10 Mar 2006 10:06:28 -0500 Subject: [nycphp-talk] Subversion, Bugzilla hosting In-Reply-To: <008001c64454$1855dde0$0aa8a8c0@cliff> References: <008001c64454$1855dde0$0aa8a8c0@cliff> Message-ID: <441195F4.3050303@optonline.net> This company, http://www.saturn5net.com supports mySQL 5 dont know what your looking to do, but you can check them out. Cliff Hirsch wrote: > Does anyone use Subversion, Bugzilla, Trac third party hosting? > Recommendations? Experiences? > > Instead of getting a root access dev. server, which seems to be a > distraction, I'm thinking of a managed dev. server from 1and1 (only > $109/mth.) and than using one of the subversion hosting companies. A > bit more money, but fewer headaches -- I think. Thoughts? > > Cliff Hirsch > > P.S. Late breaking updte. 1and1 Managed Server does not include MySQL > 5. Looks like its back to square one -- root. Uggg. > _______________________________ > *Pinestream Communications, Inc.* > Publisher of /Semiconductor Times/ & /Telecom Trends/ > 52 Pine Street, Weston, MA 02493 USA > Tel: 781.647.8800, Fax: 781.647.8825 > http://www.pinestream.com > > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From mwithington at PLMresearch.com Fri Mar 10 10:28:19 2006 From: mwithington at PLMresearch.com (Mark Withington) Date: Fri, 10 Mar 2006 10:28:19 -0500 Subject: [nycphp-talk] Subversion, Bugzilla hosting Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358D6A821@network.PLMresearch.com> I use Subversion with hooks into Mantis (I run this locally on Windoz boxes) and pair networks for managed hosting on FreeBSD boxes. High marks for all of the above. -------------------------- Mark L. Withington PLMresearch v: 508-746-2383 m: 508-801-0181 AIM/MSN/Skype: PLMresearch Yahoo: PLMresearch2000 -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Cliff Hirsch Sent: Friday, March 10, 2006 10:06 AM To: talk at lists.nyphp.org Subject: [nycphp-talk] Subversion, Bugzilla hosting Does anyone use Subversion, Bugzilla, Trac third party hosting? Recommendations? Experiences? Instead of getting a root access dev. server, which seems to be a distraction, I'm thinking of a managed dev. server from 1and1 (only $109/mth.) and than using one of the subversion hosting companies. A bit more money, but fewer headaches -- I think. Thoughts? Cliff Hirsch P.S. Late breaking updte. 1and1 Managed Server does not include MySQL 5. Looks like its back to square one -- root. Uggg. _______________________________ Pinestream Communications, Inc. Publisher of Semiconductor Times & Telecom Trends 52 Pine Street, Weston, MA 02493 USA Tel: 781.647.8800, Fax: 781.647.8825 http://www.pinestream.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From john at coolmacgames.com Fri Mar 10 10:39:52 2006 From: john at coolmacgames.com (John Nunez) Date: Fri, 10 Mar 2006 10:39:52 -0500 Subject: [nycphp-talk] OT: Wanted: Zipcode database Message-ID: <9F60875E-75CF-40F3-91C4-07EFF52C4CDF@coolmacgames.com> Hi Guys, I am looking to purchase a zipcode database. Does anyone use a reliable company? I need zipcode changes within the month of when it happens. I have already gone through 2 different companies and need someone that has 12 updates per year. Zip codes change a few thousand times a year and my client needs the latest DB. Thanks, John Nunez From dorgan at optonline.net Fri Mar 10 10:43:23 2006 From: dorgan at optonline.net (Donald J. Organ IV) Date: Fri, 10 Mar 2006 10:43:23 -0500 Subject: [nycphp-talk] OT: Wanted: Zipcode database In-Reply-To: <9F60875E-75CF-40F3-91C4-07EFF52C4CDF@coolmacgames.com> References: <9F60875E-75CF-40F3-91C4-07EFF52C4CDF@coolmacgames.com> Message-ID: <44119E9B.6010301@optonline.net> Check Them out http://www.teamredline.com/zc/ John Nunez wrote: > Hi Guys, > > I am looking to purchase a zipcode database. Does anyone use a > reliable company? I need zipcode changes within the month of when it > happens. I have already gone through 2 different companies and need > someone that has 12 updates per year. Zip codes change a few > thousand times a year and my client needs the latest DB. > > Thanks, > John Nunez > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > From craig at juxtadigital.com Fri Mar 10 11:21:21 2006 From: craig at juxtadigital.com (craig at juxtadigital.com) Date: Fri, 10 Mar 2006 11:21:21 -0500 (EST) Subject: [nycphp-talk] Subversion, Bugzilla hosting In-Reply-To: <008001c64454$1855dde0$0aa8a8c0@cliff> References: <008001c64454$1855dde0$0aa8a8c0@cliff> Message-ID: <50846.141.154.185.125.1142007681.squirrel@webmail.logicworks.net> Cliff Hirsch said: > Does anyone use Subversion, Bugzilla, Trac third party hosting? > Recommendations? Experiences? When I was researching this sort of thing, I found http://www.vasoftware.com/ very interesting. However, a little too much change at once for us, so we host our own SVN server in house. It hasn't caused any major headaches. > Instead of getting a root access dev. server, which seems to be a > distraction, I'm thinking of a managed dev. server from 1and1 (only > $109/mth.) and than using one of the subversion hosting companies. A bit > more money, but fewer headaches -- I think. Thoughts? I'v been very happy with 1and1 myself. -- Craig From amiller at onlinebrands.com Fri Mar 10 11:15:00 2006 From: amiller at onlinebrands.com (Alan T. Miller) Date: Fri, 10 Mar 2006 09:15:00 -0700 Subject: [nycphp-talk] GD renders all images to B&W on resize In-Reply-To: References: Message-ID: <8CD9876A-5AEF-41B7-BDB4-56C6C14AF091@onlinebrands.com> Look at your function calls, it may be that you need to update your code to use the function imageCreateTureColor instead of imagecreate. It has been a while, but I had a similar problem and that was the fix (you will have to check the exact function names in the PHP manual). Hope that helps. Alan On Mar 10, 2006, at 7:51 AM, John Nunez wrote: > Hi All, > > I wrote some code over a year ago that resizes an image when it's > uploaded. Recently the RedHat server patched itself and it seems that > this code is now broken. All the images are properly resized but > they are a weird grayscale mess. Is there a fix for this? > > PHP 4.3.10 > GD bundled (2.0.28 compatible) > > Thanks, > John > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From dmintz at davidmintz.org Fri Mar 10 12:19:32 2006 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 10 Mar 2006 12:19:32 -0500 (EST) Subject: [nycphp-talk] xmlhttp: conventions/practices for throwing error? Message-ID: Hey all, I'm writing some PHP that expects some GET data, uses it to build SQL query, XMLifies the data from the result and echos it. The client is Javascript that submits an xmlhttp request. Suppose some of the GET input doesn't validate. Is there a convention/best practice for throwing an error to signal the client something is wrong -- e.g., do you send an HTTP error code in a header or some such? Or just echo something like error message here? Thanks, --- David Mintz http://davidmintz.org/ Amendment IV The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. From dmintz at davidmintz.org Fri Mar 10 12:40:00 2006 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 10 Mar 2006 12:40:00 -0500 (EST) Subject: [nycphp-talk] xmlhttp: conventions/practices for throwing error? In-Reply-To: References: Message-ID: On Fri, 10 Mar 2006, David Mintz wrote: > I'm writing some PHP that expects some GET data, uses it to build SQL > query, XMLifies the data from the result and echos it. The client is > Javascript that submits an xmlhttp request. Suppose some of the GET input > doesn't validate. Is there a convention/best practice for throwing an > error to signal the client something is wrong -- e.g., do you send an HTTP > error code in a header or some such? Or just echo something like > error message here? To partly answer my own question, after further reflection: no, I would think HTTP error codes are for protocol-level issues rather than application/data validation. I guess the client should check the response by looking for, e.g., an element. ? --- David Mintz http://davidmintz.org/ Amendment IV The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. From yournway at gmail.com Fri Mar 10 13:49:59 2006 From: yournway at gmail.com (Alberto dos Santos) Date: Fri, 10 Mar 2006 18:49:59 +0000 Subject: [nycphp-talk] Text file to MySQL entries Message-ID: Hi all. Sorry for not knowing my file handling routines 101, but I'm somewhat desperate at this stage, so here it goes. I have a mail server that sends 200 000 emails daily, no mistake 200K with qmail-send, to a mailing list. Sometimes older users just add another email address and fail to erase the old one so I need to comb through the mailbox regularly to find which addresses are bouncing so I can delete them. all messages have more or less the same configuration, and we have a shell app that compiles the name of the email file and the header onto a text file, something like this: ./1141578003.21775.ns31756.ovh.net,S=41699 Return-Path: <> Delivered-To: root at myserver Received: (qmail 20952 invoked for bounce); 5 Mar 2006 16:59:17 -0000 Date: 5 Mar 2006 16:59:17 -0000 From: MAILER-DAEMON at myserver To: root at myserver Subject: failure notice Hi. This is the qmail-send program at myserver. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. : IPADDRESS does not like recipient. Remote host said: 550 is not a valid mailbox Giving up on IPADDRESS --- Below this line is a copy of the message. Now, I need to extract the file name, the date, the recipient and the error onto a database to check which addresses have bounced and why. Anybody has some ideas on how I can do that? I looked on the net and the php manual and found some disparate tentatives but no solid solution when we are not using an xml file. TIA -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rotsen at gmail.com Fri Mar 10 14:34:28 2006 From: rotsen at gmail.com (Nestor) Date: Fri, 10 Mar 2006 11:34:28 -0800 Subject: [nycphp-talk] Problem accessin mysql from php Message-ID: I am getting this error and I do not know why? Could not connect: Client does not support authentication protocol requested by server; consider upgrading MySQL client I can access mysql from the command line and I can access it from mysql Administrator. When I run a php program I get an error. I also I am ahving problems accessing the DB from phpmyadmin I am running php 4.4.2 Client API version 3.23.49 mysql 5.0.18-nt apache 2.0.55 Help? Nestor :-) From dmintz at davidmintz.org Fri Mar 10 15:35:11 2006 From: dmintz at davidmintz.org (David Mintz) Date: Fri, 10 Mar 2006 15:35:11 -0500 (EST) Subject: [nycphp-talk] Problem accessin mysql from php In-Reply-To: References: Message-ID: Have a look at this: http://dev.mysql.com/doc/refman/5.0/en/old-client.html HTH, David On Fri, 10 Mar 2006, Nestor wrote: > I am getting this error and I do not know why? > Could not connect: Client does not support authentication protocol > requested by server; consider upgrading MySQL client --- David Mintz http://davidmintz.org/ Amendment IV The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no Warrants shall issue, but upon probable cause, supported by Oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. From tgales at tgaconnect.com Fri Mar 10 15:37:00 2006 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 10 Mar 2006 15:37:00 -0500 Subject: [nycphp-talk] Problem accessin mysql from php In-Reply-To: References: Message-ID: <4411E36C.1040502@tgaconnect.com> Nestor wrote: > I am getting this error and I do not know why? > Could not connect: Client does not support authentication protocol > requested by server; consider upgrading MySQL client ... I am running php 4.4.2 Client API version 3.23.49 mysql 5.0.18-nt apache 2.0.55 ... try a higher client version http://dev.mysql.com/doc/refman/5.0/en/old-client.html http://dev.mysql.com/doc/refman/5.0/en/mysql-get-client-version.html -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From john at coolmacgames.com Fri Mar 10 15:40:15 2006 From: john at coolmacgames.com (John Nunez) Date: Fri, 10 Mar 2006 15:40:15 -0500 Subject: [nycphp-talk] GD renders all images to B&W on resize In-Reply-To: <8CD9876A-5AEF-41B7-BDB4-56C6C14AF091@onlinebrands.com> References: <8CD9876A-5AEF-41B7-BDB4-56C6C14AF091@onlinebrands.com> Message-ID: Alan, Thanks this worked! John On Mar 10, 2006, at 11:15 AM, Alan T. Miller wrote: > Look at your function calls, it may be that you need to update your > code to use the function imageCreateTureColor instead of imagecreate. > It has been a while, but I had a similar problem and that was the fix > (you will have to check the exact function names in the PHP manual). > Hope that helps. > > Alan > > On Mar 10, 2006, at 7:51 AM, John Nunez wrote: > >> Hi All, >> >> I wrote some code over a year ago that resizes an image when it's >> uploaded. Recently the RedHat server patched itself and it seems that >> this code is now broken. All the images are properly resized but >> they are a weird grayscale mess. Is there a fix for this? >> >> PHP 4.3.10 >> GD bundled (2.0.28 compatible) >> >> Thanks, >> John >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> New York PHP Conference and Expo 2006 >> 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 > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From enolists at gmail.com Fri Mar 10 17:03:42 2006 From: enolists at gmail.com (Mark Armendariz) Date: Fri, 10 Mar 2006 14:03:42 -0800 Subject: [nycphp-talk] Problem accessin mysql from php In-Reply-To: Message-ID: <009d01c6448e$7fc79970$6500a8c0@enobrev> David's link is right on... Here's a discussion about it as well that might have some more options if the mysql manual page doesn't solve your woes: http://forums.mysql.com/read.php?11,6400,6400#msg-6400 Mark > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Nestor > Sent: Friday, March 10, 2006 11:34 AM > To: NYPHP Talk > Subject: [nycphp-talk] Problem accessin mysql from php > > I am getting this error and I do not know why? > Could not connect: Client does not support authentication > protocol requested by server; consider upgrading MySQL client > > I can access mysql from the command line and I can access it > from mysql Administrator. When I run a php program I get an error. > I also I am ahving problems accessing the DB from phpmyadmin > > I am running php 4.4.2 > Client API version 3.23.49 > mysql 5.0.18-nt > apache 2.0.55 > > Help? > > Nestor :-) > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From mailinglists at caseysoftware.com Fri Mar 10 17:09:45 2006 From: mailinglists at caseysoftware.com (Keith Casey) Date: Fri, 10 Mar 2006 17:09:45 -0500 Subject: [nycphp-talk] Subversion, Bugzilla hosting In-Reply-To: <008001c64454$1855dde0$0aa8a8c0@cliff> References: <008001c64454$1855dde0$0aa8a8c0@cliff> Message-ID: <4411F929.4080407@caseysoftware.com> I have a couple customers who have used CVSDude - http://cvsdude.com/ - and they've been pretty happy with it. I switched one user away just because they wanted to integrate it more tightly with some of their other apps on a dedicated server. It looks like the "More Developer" plan would suite your needs.... SVN, Bugzilla, and Trac. keith Cliff Hirsch wrote: > Does anyone use Subversion, Bugzilla, Trac third party hosting? > Recommendations? Experiences? -- D. Keith Casey Jr. CEO, CaseySoftware, LLC http://CaseySoftware.com From cliff at pinestream.com Fri Mar 10 17:15:05 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Fri, 10 Mar 2006 17:15:05 -0500 Subject: [nycphp-talk] Subversion, Bugzilla hosting In-Reply-To: <4411F929.4080407@caseysoftware.com> Message-ID: <002601c64490$1869e3d0$03a8a8c0@cliff> Yeah, I found those guys and it looks like they offer a nice package. Another option I'm honing in on is VPS -- looks pretty reasonable and flexible. https://www.rapidvps.com and http://www.vpsland.com/ seem to have reasonable pricing. Just don't know if I'd be turning myself into a sysadmin again. And can't figure out which Linux OS to select and whether I need Plesk or Cpanel if its just for a development server. And I'd be tickled pick if one of these outfits could actually tie the various RAM levels they offer to actual performance needs. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Keith Casey Sent: Friday, March 10, 2006 5:10 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Subversion, Bugzilla hosting I have a couple customers who have used CVSDude - http://cvsdude.com/ - and they've been pretty happy with it. I switched one user away just because they wanted to integrate it more tightly with some of their other apps on a dedicated server. It looks like the "More Developer" plan would suite your needs.... SVN, Bugzilla, and Trac. From rotsen at gmail.com Fri Mar 10 17:41:32 2006 From: rotsen at gmail.com (Nestor) Date: Fri, 10 Mar 2006 14:41:32 -0800 Subject: [nycphp-talk] Problem accessin mysql from php In-Reply-To: <009d01c6448e$7fc79970$6500a8c0@enobrev> References: <009d01c6448e$7fc79970$6500a8c0@enobrev> Message-ID: People, Thanks - I already solved my problem and yes it had to do with re-setting the password using 'OLD_PASSWORD('password')' Thanks, Nestor :-) On 3/10/06, Mark Armendariz wrote: > David's link is right on... > > Here's a discussion about it as well that might have some more options if > the mysql manual page doesn't solve your woes: > > http://forums.mysql.com/read.php?11,6400,6400#msg-6400 > > Mark > > > -----Original Message----- > > From: talk-bounces at lists.nyphp.org > > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Nestor > > Sent: Friday, March 10, 2006 11:34 AM > > To: NYPHP Talk > > Subject: [nycphp-talk] Problem accessin mysql from php > > > > I am getting this error and I do not know why? > > Could not connect: Client does not support authentication > > protocol requested by server; consider upgrading MySQL client > > > > I can access mysql from the command line and I can access it > > from mysql Administrator. When I run a php program I get an error. > > I also I am ahving problems accessing the DB from phpmyadmin > > > > I am running php 4.4.2 > > Client API version 3.23.49 > > mysql 5.0.18-nt > > apache 2.0.55 > > > > Help? > > > > Nestor :-) > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > New York PHP Conference and Expo 2006 > > 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 > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From chsnyder at gmail.com Fri Mar 10 18:04:54 2006 From: chsnyder at gmail.com (csnyder) Date: Fri, 10 Mar 2006 18:04:54 -0500 Subject: [nycphp-talk] Text file to MySQL entries In-Reply-To: References: Message-ID: On 3/10/06, Alberto dos Santos wrote: > Hi all. > > Sorry for not knowing my file handling routines 101, but I'm somewhat > desperate at this stage, so here it goes. > > I have a mail server that sends 200 000 emails daily, no mistake 200K with > qmail-send, to a mailing list. > Sometimes older users just add another email address and fail to erase the > old one so I need to comb through the mailbox regularly to find which > addresses are bouncing so I can delete them. > all messages have more or less the same configuration, and we have a shell > app that compiles the name of the email file and the header onto a text > file, something like this: > > ./1141578003.21775.ns31756.ovh.net,S=41699 > Return-Path: <> > Delivered-To: root at myserver > Received: (qmail 20952 invoked for bounce); 5 Mar 2006 16:59:17 -0000 > Date: 5 Mar 2006 16:59:17 -0000 > From: MAILER-DAEMON at myserver > To: root at myserver > Subject: failure notice > > Hi. This is the qmail-send program at myserver. > I'm afraid I wasn't able to deliver your message to the following > addresses. > This is a permanent error; I've given up. Sorry it didn't work out. > > : > IPADDRESS does not like recipient. > Remote host said: 550 is not a valid mailbox > Giving up on IPADDRESS > > --- Below this line is a copy of the message. > > > > Now, I need to extract the file name, the date, the recipient and the error > onto a database to check which addresses have bounced and why. > > Anybody has some ideas on how I can do that? > I looked on the net and the php manual and found some disparate tentatives > but no solid solution when we are not using an xml file. > > TIA > -- > Alberto dos Santos > Consultor em TI > IT Consultant > If your script handles these as individual emails, then you could use PEAR's MIME parser or one of the imap functions to parse the headers. Otherwise, well, each message can be converted to an array of lines using explode(). Each line of the headers starts with a label. Then there's a blank line, and then the message body itself. Liberal use of strpos(), substr(), etc. should be all you need. Maybe some preg_match() if the regular string functions aren't quite enough. -- Chris Snyder http://chxo.com/ From yournway at gmail.com Fri Mar 10 18:07:27 2006 From: yournway at gmail.com (Alberto dos Santos) Date: Fri, 10 Mar 2006 23:07:27 +0000 Subject: [nycphp-talk] Text file to MySQL entries In-Reply-To: References: Message-ID: Chris, Any thoughts on which pattern to use on that explode, or just newlines? On 10/03/06, csnyder wrote: > > On 3/10/06, Alberto dos Santos wrote: > > Hi all. > > > > Sorry for not knowing my file handling routines 101, but I'm somewhat > > desperate at this stage, so here it goes. > > > > I have a mail server that sends 200 000 emails daily, no mistake 200K > with > > qmail-send, to a mailing list. > > Sometimes older users just add another email address and fail to erase > the > > old one so I need to comb through the mailbox regularly to find which > > addresses are bouncing so I can delete them. > > all messages have more or less the same configuration, and we have a > shell > > app that compiles the name of the email file and the header onto a text > > file, something like this: > > > > ./1141578003.21775.ns31756.ovh.net,S=41699 > > Return-Path: <> > > Delivered-To: root at myserver > > Received: (qmail 20952 invoked for bounce); 5 Mar 2006 16:59:17 -0000 > > Date: 5 Mar 2006 16:59:17 -0000 > > From: MAILER-DAEMON at myserver > > To: root at myserver > > Subject: failure notice > > > > Hi. This is the qmail-send program at myserver. > > I'm afraid I wasn't able to deliver your message to the following > > addresses. > > This is a permanent error; I've given up. Sorry it didn't work out. > > > > : > > IPADDRESS does not like recipient. > > Remote host said: 550 is not a valid mailbox > > Giving up on IPADDRESS > > > > --- Below this line is a copy of the message. > > > > > > > > Now, I need to extract the file name, the date, the recipient and the > error > > onto a database to check which addresses have bounced and why. > > > > Anybody has some ideas on how I can do that? > > I looked on the net and the php manual and found some disparate > tentatives > > but no solid solution when we are not using an xml file. > > > > TIA > > -- > > Alberto dos Santos > > Consultor em TI > > IT Consultant > > > > If your script handles these as individual emails, then you could use > PEAR's MIME parser or one of the imap functions to parse the headers. > > Otherwise, well, each message can be converted to an array of lines > using explode(). Each line of the headers starts with a label. Then > there's a blank line, and then the message body itself. > > Liberal use of strpos(), substr(), etc. should be all you need. Maybe > some preg_match() if the regular string functions aren't quite enough. > > > > -- > Chris Snyder > http://chxo.com/ > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew at plexpod.com Fri Mar 10 22:51:19 2006 From: andrew at plexpod.com (Andrew Yochum) Date: Fri, 10 Mar 2006 22:51:19 -0500 Subject: [nycphp-talk] OT: Wanted: Zipcode database In-Reply-To: <9F60875E-75CF-40F3-91C4-07EFF52C4CDF@coolmacgames.com> References: <9F60875E-75CF-40F3-91C4-07EFF52C4CDF@coolmacgames.com> Message-ID: <20060311035118.GE12451@desario.homelinux.net> On Fri, Mar 10, 2006 at 10:39:52AM -0500, John Nunez wrote: > Hi Guys, > > I am looking to purchase a zipcode database. Does anyone use a > reliable company? I need zipcode changes within the month of when it > happens. I have already gone through 2 different companies and need > someone that has 12 updates per year. Zip codes change a few > thousand times a year and my client needs the latest DB. > > Thanks, > John Nunez I've used the Geocode DB from zipinfo.com for clients before - not sure what data you want about the zips. They have monthly updates available. Their data has had some anomalies in the past (zips w/ lat/lons in the middle of the Atlantic) but they were quick to fix them in the next update when we notified them of what we found. HTH, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From greg.rundlett at gmail.com Sat Mar 11 00:30:10 2006 From: greg.rundlett at gmail.com (Greg Rundlett) Date: Sat, 11 Mar 2006 00:30:10 -0500 Subject: [nycphp-talk] Subversion, Bugzilla hosting In-Reply-To: <002601c64490$1869e3d0$03a8a8c0@cliff> References: <4411F929.4080407@caseysoftware.com> <002601c64490$1869e3d0$03a8a8c0@cliff> Message-ID: <5e2aaca40603102130i41168d28oe19b6693fca853ec@mail.gmail.com> On 3/10/06, Cliff Hirsch wrote: > Yeah, I found those guys and it looks like they offer a nice package. > > Another option I'm honing in on is VPS -- looks pretty reasonable and > flexible. Caution. I know other people have obviously had positive experiences with VPS and/or 'root servers' from 1&1 or other companies. I did not. I found it to be one of the most dissatisfying experiences of my consulting career. I wasted 10x the amount of time I would have spent just doing the sysadmin work myself. The installation and setup of my accounts were buggy. The software (cPanel or Plesk) were useless. That software is not nearly as useful as Webmin. More than anything, managing the server through the terrible 'control panel' was the really bad part. And there was incongruous language in their advertising and TOS that ended up biting me too. From 1j0lkq002 at sneakemail.com Sat Mar 11 00:59:40 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Fri, 10 Mar 2006 21:59:40 -0800 Subject: [nycphp-talk] Subversion, Bugzilla hosting In-Reply-To: <5e2aaca40603102130i41168d28oe19b6693fca853ec@mail.gmail.com> References: <4411F929.4080407@caseysoftware.com> <002601c64490$1869e3d0$03a8a8c0@cliff> <5e2aaca40603102130i41168d28oe19b6693fca853ec@mail.gmail.com> Message-ID: <32655-18896@sneakemail.com> Greg Rundlett greg.rundlett-at-gmail.com |nyphp dev/internal group use| wrote: >On 3/10/06, Cliff Hirsch wrote: >Another option I'm honing in on is VPS -- looks pretty reasonable and >flexible. > > > >Caution. I know other people have obviously had positive experiences >with VPS and/or 'root servers' from 1&1 or other companies. I did >not. > >I found it to be one of the most dissatisfying experiences of my >consulting career. I wasted 10x the amount of time I would have spent >just doing the sysadmin work myself. The installation and setup of my >accounts were buggy. The software (cPanel or Plesk) were useless. >That software is not nearly as useful as Webmin. More than anything, >managing the server through the terrible 'control panel' was the >really bad part. And there was incongruous language in their >advertising and TOS that ended up biting me too. > > Now that someone has said this, I will agree. I still use Westhost Virtual Server accounts for a few projects, and I *think* I appreciate that I don't have as many sysadmin/security concerns as I have with other dedicated servers. However, I find the control panel (which is actually a PHP/DHTML application) horribly slow and an unwelcomed intermediary between me and the system. Luckily I can ssh in for *most* things when I want to. If you want to re-install a base system, though, it is pretty easy to reset the virtual server and start fresh. Not sure how often I could accomplish that with the dedicated servers without being ready to pay for some hands-on support or make a site visit. -=john andrews http://www.seo-fun.com From cliff at pinestream.com Sat Mar 11 12:06:14 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Sat, 11 Mar 2006 12:06:14 -0500 Subject: [nycphp-talk] Subversion, Bugzilla hosting In-Reply-To: <32655-18896@sneakemail.com> Message-ID: <000801c6452e$1da591c0$03a8a8c0@cliff> Well, I settled on cvsdude for Subversion, Bugzilla and Trac. And I'm giving a XEN-based VPS provider a try -- will report back my experience. On another note, wasted a few bucks and a few hours trying Dynamic DNS to just use my office dev. server, which is behind a Firewall and NAT. Fugetaboutit... Talk about a pain. And then there's all the fine print about "if your service provider blocks port 80..." Waste of time.... -----Original Message----- Greg Rundlett greg.rundlett-at-gmail.com |nyphp dev/internal group use| wrote: >On 3/10/06, Cliff Hirsch wrote: >Another option I'm honing in on is VPS -- looks pretty reasonable and >flexible. > >Caution. I know other people have obviously had positive experiences >with VPS and/or 'root servers' from 1&1 or other companies. I did not. > >I found it to be one of the most dissatisfying experiences of my >consulting career. I wasted 10x the amount of time I would have spent >just doing the sysadmin work myself. The installation and setup of my >accounts were buggy. The software (cPanel or Plesk) were useless. That >software is not nearly as useful as Webmin. More than anything, >managing the server through the terrible 'control panel' was the really >bad part. And there was incongruous language in their advertising and >TOS that ended up biting me too. > > Now that someone has said this, I will agree. I still use Westhost Virtual Server accounts for a few projects, and I *think* I appreciate that I don't have as many sysadmin/security concerns as I have with other dedicated servers. However, I find the control panel (which is actually a PHP/DHTML application) horribly slow and an unwelcomed intermediary between me and the system. Luckily I can ssh in for *most* things when I want to. If you want to re-install a base system, though, it is pretty easy to reset the virtual server and start fresh. Not sure how often I could accomplish that with the dedicated servers without being ready to pay for some hands-on support or make a site visit. From mwithington at PLMresearch.com Sat Mar 11 12:21:00 2006 From: mwithington at PLMresearch.com (Mark Withington) Date: Sat, 11 Mar 2006 12:21:00 -0500 Subject: [nycphp-talk] Subversion, Bugzilla hosting Message-ID: <1F3CD8DDFB6A9B4C9B8DD06E4A7DE358D6A832@network.PLMresearch.com> For what it's worth: I use DynDNS, a Linksys BEFVP41 router (ipSec) and the SSH Sentinel client to "talk back" to my office whilst on the road. If the stars align and the creek don't rise (and the ISP in between doesn't f$#k-it-up) things work just great...e.g. once in a blue freaking moon. This definitely isn't Kansas Toto. If anyone is interested in hearing more, contact me off-list and I'll tell you the bloody details while crying in my beer. Cheers, Mark -------------------------- Mark L. Withington PLMresearch v: 508-746-2383 m: 508-801-0181 AIM/MSN/Skype: PLMresearch Yahoo: PLMresearch2000 > -----Original Message----- > From: talk-bounces at lists.nyphp.org > [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Cliff Hirsch > Sent: Saturday, March 11, 2006 12:06 PM > To: 'NYPHP Talk' > Subject: Re: [nycphp-talk] Subversion, Bugzilla hosting > > > Well, I settled on cvsdude for Subversion, Bugzilla and Trac. > > And I'm giving a XEN-based VPS provider a try -- will report > back my experience. > > On another note, wasted a few bucks and a few hours trying > Dynamic DNS to just use my office dev. server, which is > behind a Firewall and NAT. Fugetaboutit... Talk about a pain. > And then there's all the fine print about "if your service > provider blocks port 80..." Waste of time.... > > -----Original Message----- > Greg Rundlett greg.rundlett-at-gmail.com |nyphp dev/internal > group use| > wrote: > > >On 3/10/06, Cliff Hirsch wrote: > >Another option I'm honing in on is VPS -- looks pretty reasonable and > >flexible. > > > >Caution. I know other people have obviously had positive experiences > >with VPS and/or 'root servers' from 1&1 or other companies. > I did not. > > > >I found it to be one of the most dissatisfying experiences of my > >consulting career. I wasted 10x the amount of time I would > have spent > >just doing the sysadmin work myself. The installation and > setup of my > >accounts were buggy. The software (cPanel or Plesk) were > useless. That > > >software is not nearly as useful as Webmin. More than anything, > >managing the server through the terrible 'control panel' was > the really > > >bad part. And there was incongruous language in their > advertising and > >TOS that ended up biting me too. > > > > > Now that someone has said this, I will agree. > > I still use Westhost Virtual Server accounts for a few > projects, and I > *think* I appreciate that I don't have as many sysadmin/security > concerns as I have with other dedicated servers. However, I find the > control panel (which is actually a PHP/DHTML application) > horribly slow > and an unwelcomed intermediary between me and the system. > Luckily I can > ssh in for *most* things when I want to. > > If you want to re-install a base system, though, it is pretty easy to > reset the virtual server and start fresh. Not sure how often I could > accomplish that with the dedicated servers without being ready to pay > for some hands-on support or make a site visit. > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP > Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From danielc at analysisandsolutions.com Sun Mar 12 11:24:03 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 12 Mar 2006 11:24:03 -0500 Subject: [nycphp-talk] xmlhttp: conventions/practices for throwing error? In-Reply-To: References: Message-ID: <20060312162403.GA28243@panix.com> Howdy: On Fri, Mar 10, 2006 at 12:19:32PM -0500, David Mintz wrote: > > Is there a convention/best practice for throwing an > error to signal the client something is wrong -- e.g., do you send an HTTP > error code in a header or some such? Or just echo something like > error message here? The application I'm working on along these lines returns an error code/message in the body, not the header. Provides more fexibility in explaining the issue to the front end/users. --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 coling at macmicro.com Sun Mar 12 18:34:24 2006 From: coling at macmicro.com (Colin Goldberg) Date: Sun, 12 Mar 2006 18:34:24 -0500 Subject: [nycphp-talk] Text file to MySQL entries In-Reply-To: References: Message-ID: <4414B000.4010106@macmicro.com> I created a bounce handler for my product that was subsequently refined and extended by Chris Fortune that does all this. Take a look at Chris's contribution to phpclasses: http://www.phpclasses.org/browse/package/2691.html Colin Goldberg ** Alberto dos Santos wrote: > Hi all. > > Sorry for not knowing my file handling routines 101, but I'm somewhat > desperate at this stage, so here it goes. > > I have a mail server that sends 200 000 emails daily, no mistake 200K > with qmail-send, to a mailing list. > Sometimes older users just add another email address and fail to erase > the old one so I need to comb through the mailbox regularly to find > which addresses are bouncing so I can delete them. > all messages have more or less the same configuration, and we have a > shell app that compiles the name of the email file and the header onto > a text file, something like this: > > ./1141578003.21775.ns31756.ovh.net,S=41699 > Return-Path: <> > Delivered-To: root at myserver > Received: (qmail 20952 invoked for bounce); 5 Mar 2006 16:59:17 -0000 > Date: 5 Mar 2006 16:59:17 -0000 > From: MAILER-DAEMON at myserver > To: root at myserver > Subject: failure notice > > Hi. This is the qmail-send program at myserver. > I'm afraid I wasn't able to deliver your message to the following > addresses. > This is a permanent error; I've given up. Sorry it didn't work out. > > : > IPADDRESS does not like recipient. > Remote host said: 550 is not a valid mailbox > Giving up on IPADDRESS > > --- Below this line is a copy of the message. > > > > Now, I need to extract the file name, the date, the recipient and the > error onto a database to check which addresses have bounced and why. > > Anybody has some ideas on how I can do that? > I looked on the net and the php manual and found some disparate > tentatives but no solid solution when we are not using an xml file. > > TIA > -- > Alberto dos Santos > Consultor em TI > IT Consultant > > http://www.yournway.com > A internet ? sua maneira. > The Internet your own way. > ------------------------------------------------------------------------ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From dipeshjr at yahoo.com Mon Mar 13 07:44:16 2006 From: dipeshjr at yahoo.com (DIPESH RABADIYA) Date: Mon, 13 Mar 2006 04:44:16 -0800 (PST) Subject: [nycphp-talk] PHP and Oracle In-Reply-To: Message-ID: <20060313124416.97665.qmail@web54001.mail.yahoo.com> just Check that Apache is linked with the pthread library: # ldd /www/apache/bin/httpd libpthread.so.0 => /lib/libpthread.so.0 (0x4001c000) libm.so.6 => /lib/libm.so.6 (0x4002f000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x4004c000) libdl.so.2 => /lib/libdl.so.2 (0x4007a000) libc.so.6 => /lib/libc.so.6 (0x4007e000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) --- Randal Rust wrote: > I'm taking a stab at connecting to our Oracle > database so that I can > build a prototype of something, based on our actual > data structure. > > I have enabled the Oracle extension in the .ini file > (and verified it > by viewind the information with phpInfo() ), but I > keep getting this > error: > > Fatal error: Call to undefined function > oci_connect() in > C:\web\oracle\test.php on line 12 > > It seems that the extension is not working. Any > thoughts? > > It's probably not all that difficult, I'm just not > used to the way > Oracle does it's connection thing. > > TIA. > > -- > Randal Rust > R.Squared Communications > www.r2communications.com > _______________________________________________ > New York PHP Talk Mailing List > AMP Technology > Supporting Apache, MySQL and PHP > http://lists.nyphp.org/mailman/listinfo/talk > http://www.nyphp.org > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From sumisudhir at yahoo.com Mon Mar 13 10:06:15 2006 From: sumisudhir at yahoo.com (jlesidt) Date: Mon, 13 Mar 2006 07:06:15 -0800 (PST) Subject: [nycphp-talk] sql query with php Message-ID: <20060313150615.37739.qmail@web82206.mail.mud.yahoo.com> Hi, I have the following query dynamically generated in php. select CompSecDes,ID,SecDes, CAST(CapitalNumShare AS int) as CapitalNumShare,NCapitalNumShare,CAST(CapitalShareStock AS int) as CapitalShareStock,NCapitalShareStock,PriceMonthOpen,NPriceMonthOpen,PriceMonthLastDay,NPriceMonthLastDay,Year from [tablename] where year between 1869 and 1869 and Month between 1 and 12 and ID in (select distinct ID from tablename where CompSecDes ='"Illustrated London News" & " Sketch" ordinary') This works perfectly fine in mssql query analyzer. But when this is executed through php no rows are returned. Should I not use "in" and subquery in php. Any help will be greatly appreciated. Thanks, -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Mon Mar 13 10:29:38 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Mon, 13 Mar 2006 10:29:38 -0500 Subject: [nycphp-talk] sql query with php In-Reply-To: <20060313150615.37739.qmail@web82206.mail.mud.yahoo.com> References: <20060313150615.37739.qmail@web82206.mail.mud.yahoo.com> Message-ID: <20060313152937.GA16829@panix.com> On Mon, Mar 13, 2006 at 07:06:15AM -0800, jlesidt wrote: ... snip ... > from [tablename] ... snip ... While this isn't your problem, a heads up. Do not use delimited identifiers or identifiers that requirie delimiting. Doing so WILL cause you grief in the long run. > This works perfectly fine in mssql query analyzer. But when this is > executed through php no rows are returned. Should I not use "in" and > subquery in php. Any help will be greatly appreciated. All PHP does is pass the the query to the database server. Two possible reasons for your problem are your PHP script is not connecting to the server/database you think you are or there is a bug in you PHP code. --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 sumisudhir at yahoo.com Mon Mar 13 10:57:22 2006 From: sumisudhir at yahoo.com (jlesidt) Date: Mon, 13 Mar 2006 07:57:22 -0800 (PST) Subject: [nycphp-talk] sql query with php In-Reply-To: <20060313152937.GA16829@panix.com> Message-ID: <20060313155722.20251.qmail@web82211.mail.mud.yahoo.com> Thanks Dan. I am left with non choice than to use delimited identifiers. I am getting no error with respect to connection. It clearly states zero rows returned. I need to figure out where the bug is!!! Daniel Convissor wrote: On Mon, Mar 13, 2006 at 07:06:15AM -0800, jlesidt wrote: ... snip ... > from [tablename] ... snip ... While this isn't your problem, a heads up. Do not use delimited identifiers or identifiers that requirie delimiting. Doing so WILL cause you grief in the long run. > This works perfectly fine in mssql query analyzer. But when this is > executed through php no rows are returned. Should I not use "in" and > subquery in php. Any help will be greatly appreciated. All PHP does is pass the the query to the database server. Two possible reasons for your problem are your PHP script is not connecting to the server/database you think you are or there is a bug in you PHP code. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409 _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 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 matt at jobsforge.com Mon Mar 13 18:15:29 2006 From: matt at jobsforge.com (Matthew Terenzio) Date: Mon, 13 Mar 2006 18:15:29 -0500 Subject: [nycphp-talk] PHP and Java talk Message-ID: Might be of interest to some. The New York Java group is having a meeting about PHP http://www.javasig.com/examples/javasig/MeetingInfo.jsp Matt Terenzio ________________________________________ Two-way, shared, public RSS feeds by SkinnyFarm http://skinnyfarm.com From andrew at plexpod.com Mon Mar 13 19:19:16 2006 From: andrew at plexpod.com (Andrew Yochum) Date: Mon, 13 Mar 2006 19:19:16 -0500 Subject: [nycphp-talk] Quercus: PHP 5 engine in 100% Java (was Re: PHP and Java talk) In-Reply-To: References: Message-ID: <20060314001916.GA9728@desario.homelinux.net> On Mon, Mar 13, 2006 at 06:15:29PM -0500, Matthew Terenzio wrote: > Might be of interest to some. The New York Java group is having a > meeting about PHP > > http://www.javasig.com/examples/javasig/MeetingInfo.jsp For those who aren't click-happy, it is worth looking at. The Caucho guys have implemented a PHP 5 engine called Quercus in 100% java (*no* C code from zend/php core is used) that runs on their app server, Resin. They have 3 major PHP 5 apps running on it: MediaWiki, Mantis and Drupal. The set of extensions implemented isn't nearly complete, but it is an impressive start. See: http://caucho.com/resin-3.0/php/index.xtp http://wiki.caucho.com/Quercus (The latter is a link into their dogbowl installation of MediaWiki running on Quercus) Pretty hot. Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From cliff at pinestream.com Tue Mar 14 11:35:55 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Tue, 14 Mar 2006 11:35:55 -0500 Subject: [nycphp-talk] mCrypt & mHash for PHP5.x on RHEL4 Message-ID: <006401c64785$5de29270$0aa8a8c0@cliff> Does anyone have pointers for installing mCrypt and mHash on RHEL4 for PHP5.x? My current installation doesn't have it and I don't want to try Xampp as I already have Apache and MySQL running. Cliff -------------- next part -------------- An HTML attachment was scrubbed... URL: From danielc at analysisandsolutions.com Tue Mar 14 11:42:55 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Tue, 14 Mar 2006 11:42:55 -0500 Subject: [nycphp-talk] mCrypt & mHash for PHP5.x on RHEL4 In-Reply-To: <006401c64785$5de29270$0aa8a8c0@cliff> References: <006401c64785$5de29270$0aa8a8c0@cliff> Message-ID: <20060314164255.GA12229@panix.com> On Tue, Mar 14, 2006 at 11:35:55AM -0500, Cliff Hirsch wrote: > Does anyone have pointers for installing mCrypt and mHash on RHEL4 for > PHP5.x? For mcrypt, Before building PHP, do the following, substituting the current mcrypt version numbers as needed... wget http://unc.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.7.tar.gz wget -O libmcrypt-2.5.7.umn.tar.gz http://umn.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.7.tar.gz md5sum libmcrypt-2.5.7.tar.gz md5sum libmcrypt-2.5.7.umn.tar.gz tar xvzf libmcrypt-2.5.7.tar.gz rm libmcrypt-2.5.7.* cd libmcrypt-2.5.7 ./configure make make install make clean cd .. --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 krook at us.ibm.com Tue Mar 14 11:53:04 2006 From: krook at us.ibm.com (Daniel Krook) Date: Tue, 14 Mar 2006 11:53:04 -0500 Subject: [nycphp-talk] mCrypt & mHash for PHP5.x on RHEL4 In-Reply-To: <006401c64785$5de29270$0aa8a8c0@cliff> Message-ID: > Does anyone have pointers for installing mCrypt and mHash > on RHEL4 for PHP5.x? My current installation doesn't have > it and I don't want to try Xampp as I already have Apache > and MySQL running. > > Cliff You could take a look at Zend Core. That will give you a PHP 5.0.5 set up with the extensions you're looking for on RHEL. It'll detect your existing Apache (doesn't come with its own) and it doesn't include MySQL. You can activate mysql, mysqli from the Zend GUI though. http://downloads.zend.com/core-new/1.3.1/ZendCoreForIBM-v1.3.1-Linux-x86-release-notes.txt HTH & YMMV, -Dan Daniel Krook, Content Tools Developer Global Production Services - Tools, ibm.com http://bluepages.redirect.webahead.ibm.com/ http://blogpages.redirect.webahead.ibm.com/ http://bookmarks.redirect.webahead.ibm.com/ From cliff at pinestream.com Tue Mar 14 12:01:33 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Tue, 14 Mar 2006 12:01:33 -0500 Subject: [nycphp-talk] mCrypt & mHash for PHP5.x on RHEL4 In-Reply-To: Message-ID: <007c01c64788$f30911a0$0aa8a8c0@cliff> Excellent idea to get up and running quickly! > Does anyone have pointers for installing mCrypt and mHash > on RHEL4 for PHP5.x? My current installation doesn't have > it and I don't want to try Xampp as I already have Apache > and MySQL running. > > Cliff You could take a look at Zend Core. That will give you a PHP 5.0.5 set up with the extensions you're looking for on RHEL. It'll detect your existing Apache (doesn't come with its own) and it doesn't include MySQL. You can activate mysql, mysqli from the Zend GUI though. http://downloads.zend.com/core-new/1.3.1/ZendCoreForIBM-v1.3.1-Linux-x86 -release-notes.txt HTH & YMMV, -Dan From jeff.knight at gmail.com Tue Mar 14 12:30:33 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Tue, 14 Mar 2006 11:30:33 -0600 Subject: [nycphp-talk] getting an object's variable name Message-ID: <2ca9ba910603140930sa63739bvddd3f8229c479fd8@mail.gmail.com> Greetings from TX you chilly state-tax-paying nerds! I hear the group's alcohol consumption has diminished dramatically since I left. I bet T.G.I.F misses me the most. I actually have a question for y'all (all'y'all? y'all all?). Is it possible to get the variable name used by an object from that object? If I had class Example { function varName() { // what goes here? } } $nyphp = new Example() ; $txphp = new Example(); I want $nyphp->varName() to return the string 'nyphp', and $txphp->varName() to return 'txphp' From scott at crisscott.com Tue Mar 14 12:39:52 2006 From: scott at crisscott.com (Scott Mattocks) Date: Tue, 14 Mar 2006 12:39:52 -0500 Subject: [nycphp-talk] getting an object's variable name In-Reply-To: <2ca9ba910603140930sa63739bvddd3f8229c479fd8@mail.gmail.com> References: <2ca9ba910603140930sa63739bvddd3f8229c479fd8@mail.gmail.com> Message-ID: <4416FFE8.4060303@crisscott.com> Jeff Knight wrote: > I actually have a question for y'all (all'y'all? y'all all?). Is it > possible to get the variable name used by an object from that object? > If I had > > class Example { > function varName() { > // what goes here? > } > } > > $nyphp = new Example() ; $txphp = new Example(); > > I want $nyphp->varName() to return the string 'nyphp', and > $txphp->varName() to return 'txphp' Here is a completely dirty hack that probably won't work quite right and probably takes way to long: function varName() { foreach (get_declared_vars() as $key => $value) { if ($value === $this) { return $key; } } } Other than this, I don't see how it can be done. -- Scott Mattocks http://www.crisscott.com From andrew at plexpod.com Tue Mar 14 12:57:34 2006 From: andrew at plexpod.com (Andrew Yochum) Date: Tue, 14 Mar 2006 12:57:34 -0500 Subject: [nycphp-talk] getting an object's variable name In-Reply-To: <2ca9ba910603140930sa63739bvddd3f8229c479fd8@mail.gmail.com> References: <2ca9ba910603140930sa63739bvddd3f8229c479fd8@mail.gmail.com> Message-ID: <20060314175733.GG24544@desario.homelinux.net> On Tue, Mar 14, 2006 at 11:30:33AM -0600, Jeff Knight wrote: > Greetings from TX you chilly state-tax-paying nerds! I hear the > group's alcohol consumption has diminished dramatically since I left. > I bet T.G.I.F misses me the most. > > I actually have a question for y'all (all'y'all? y'all all?). Is it > possible to get the variable name used by an object from that object? > If I had > > class Example { > function varName() { > // what goes here? > } > } > > $nyphp = new Example() ; $txphp = new Example(); > > I want $nyphp->varName() to return the string 'nyphp', and > $txphp->varName() to return 'txphp' Not that I'm aware of. You'd need access into the symbol tables. Sounds like a nice extension. On a related note, recently I've been itching for a wat to get the Object ID of an object and possibly way to dereference it. I mean the one that comes out when you do: class a { } $b = new a; print $b; # Output: # Object id #1 Yes, output buffering would work but that isn't quite right. debug_zval_dump() has the same issue. Ideas? Thanks, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From scott at crisscott.com Tue Mar 14 13:07:01 2006 From: scott at crisscott.com (Scott Mattocks) Date: Tue, 14 Mar 2006 13:07:01 -0500 Subject: [nycphp-talk] getting an object's variable name In-Reply-To: <20060314175733.GG24544@desario.homelinux.net> References: <2ca9ba910603140930sa63739bvddd3f8229c479fd8@mail.gmail.com> <20060314175733.GG24544@desario.homelinux.net> Message-ID: <44170645.3070305@crisscott.com> Andrew Yochum wrote: > On a related note, recently I've been itching for a wat to get the > Object ID of an object and possibly way to dereference it. > > I mean the one that comes out when you do: > class a { } > $b = new a; > print $b; > # Output: > # Object id #1 > Yes, output buffering would work but that isn't quite right. > debug_zval_dump() has the same issue. strval($b) will return the string 'Object id #1'. Not sure if that is exactly what you are looking for but it is a start. -- Scott Mattocks http://www.crisscott.com From andrew at plexpod.com Tue Mar 14 13:17:08 2006 From: andrew at plexpod.com (Andrew Yochum) Date: Tue, 14 Mar 2006 13:17:08 -0500 Subject: [nycphp-talk] getting an object's variable name In-Reply-To: <44170645.3070305@crisscott.com> References: <2ca9ba910603140930sa63739bvddd3f8229c479fd8@mail.gmail.com> <20060314175733.GG24544@desario.homelinux.net> <44170645.3070305@crisscott.com> Message-ID: <20060314181707.GH24544@desario.homelinux.net> On Tue, Mar 14, 2006 at 01:07:01PM -0500, Scott Mattocks wrote: > Andrew Yochum wrote: > > On a related note, recently I've been itching for a wat to get the > > Object ID of an object and possibly way to dereference it. > > > > I mean the one that comes out when you do: > > class a { } > > $b = new a; > > print $b; > > # Output: > > # Object id #1 > > Yes, output buffering would work but that isn't quite right. > > debug_zval_dump() has the same issue. > > strval($b) will return the string 'Object id #1'. Not sure if that is > exactly what you are looking for but it is a start. I believe you gett the same result from casting it like: $c = (string) $b; But there is no way to dereference that value though, AFAIK. Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From prusak at gmail.com Wed Mar 15 10:55:02 2006 From: prusak at gmail.com (Ophir Prusak) Date: Wed, 15 Mar 2006 10:55:02 -0500 Subject: [nycphp-talk] Arctic Issue Tracker - Any Good? Message-ID: Hi All, So I'm installing for the zillionth time a new issue tracker at work. My main concern is that it has to be simple to use (and php/mysql). Any comments on Arctic? http://www.olate.co.uk/products/arctic/ btw, here are couple of good lists of issue trackers: http://weblogs.asp.net/fmarguerie/articles/408858.aspx http://usefulinc.com/edd/notes/IssueTrackers thanks Ophir -- Ophir Prusak http://www.prusak.com From shiflett at php.net Wed Mar 15 11:17:49 2006 From: shiflett at php.net (Chris Shiflett) Date: Wed, 15 Mar 2006 11:17:49 -0500 Subject: [nycphp-talk] Arctic Issue Tracker - Any Good? In-Reply-To: References: Message-ID: <44183E2D.3050208@php.net> Hi Ophir, Have you tried Trac? http://www.edgewall.com/trac/ My experiences with it have been very positive, primarily because it lacks many features that I don't really need. Instead, it elegantly combines some features that help organize a project - repository browsing, issue tracking, and a wiki. Chris From 1j0lkq002 at sneakemail.com Wed Mar 15 12:41:57 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 15 Mar 2006 09:41:57 -0800 Subject: [nycphp-talk] Arctic Issue Tracker - Any Good? In-Reply-To: <44183E2D.3050208@php.net> References: <44183E2D.3050208@php.net> Message-ID: <10030-71881@sneakemail.com> Chris Shiflett shiflett-at-php.net |nyphp dev/internal group use| wrote: >Hi Ophir, > >Have you tried Trac? > >http://www.edgewall.com/trac/ > >My experiences with it have been very positive, primarily because it >lacks many features that I don't really need. Instead, it elegantly >combines some features that help organize a project - repository >browsing, issue tracking, and a wiki. > >Chris >_______________________________________________ > > +1 for Trak. Also Mantis works good, although I haven't admin'ed it nor pushed it at all. http://www.mantisbt.org/ From lists at zaunere.com Wed Mar 15 13:04:50 2006 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 15 Mar 2006 13:04:50 -0500 Subject: [nycphp-talk] MySQL Presentation Message-ID: <007c01c6485a$f495c3b0$670aa8c0@MZ> Hello, I'll be presenting "The MySQL Database" to Unigroup tomorrow evening for anyone interested. http://www.unigroup.org The theme will be MySQL as the number one open source database and how it got that way, which will include it's impact on the database industry from a business standpoint. I'll also go over in fair detail technical aspects, features, features coming 5.1, a little on Cluster, and the future, including the impact of recent acquisitions of related companies. --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com From krook at us.ibm.com Wed Mar 15 13:34:13 2006 From: krook at us.ibm.com (Daniel Krook) Date: Wed, 15 Mar 2006 13:34:13 -0500 Subject: [nycphp-talk] Recommended PHP reading list Message-ID: Hello folks, Carlos Hoyos and I have put together a recommended reading list for PHP for the IBM developerWorks open source zone. As you might expect, it's geared primarily towards those intending to work with Zend Core for IBM or the free DB2 Express-C, but we've also included broad coverage of topics that apply to many aspects of PHP development and it links to a few past NYPHP presentations on topics such as image manipulation and source control as well. We're hoping to regularly revise the list, so if you come across anything that should be included in a later version, please let us know (we sent it off for publication a few weeks back, so we know it's missing things like the Zend Framework). Likewise, if there's something wrong or broken in there, please pass along your corrections. Recommended PHP reading list http://www.ibm.com/developerworks/opensource/library/os-php-read/ Thanks, -Dan Daniel Krook, Content Tools Developer Global Production Services - Tools, ibm.com http://bluepages.redirect.webahead.ibm.com/ http://blogpages.redirect.webahead.ibm.com/ http://bookmarks.redirect.webahead.ibm.com/ From lamolist at cyberxdesigns.com Wed Mar 15 14:20:41 2006 From: lamolist at cyberxdesigns.com (Hans Kaspersetz) Date: Wed, 15 Mar 2006 14:20:41 -0500 Subject: [nycphp-talk] Arctic Issue Tracker - Any Good? In-Reply-To: <10030-71881@sneakemail.com> References: <44183E2D.3050208@php.net> <10030-71881@sneakemail.com> Message-ID: <44186909.9020602@cyberxdesigns.com> We use Mantis for our projects and like it very much. Simple to use and administer. Hans http://www.cyberxdesigns.com inforequest wrote: > Chris Shiflett shiflett-at-php.net |nyphp dev/internal group use| wrote: > > >> Hi Ophir, >> >> Have you tried Trac? >> >> http://www.edgewall.com/trac/ >> >> My experiences with it have been very positive, primarily because it >> lacks many features that I don't really need. Instead, it elegantly >> combines some features that help organize a project - repository >> browsing, issue tracking, and a wiki. >> >> Chris >> _______________________________________________ >> >> >> > +1 for Trak. Also Mantis works good, although I haven't admin'ed it nor > pushed it at all. http://www.mantisbt.org/ > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > > From jonbaer at jonbaer.com Wed Mar 15 14:25:45 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Wed, 15 Mar 2006 14:25:45 -0500 Subject: [nycphp-talk] MySQL Presentation In-Reply-To: <007c01c6485a$f495c3b0$670aa8c0@MZ> References: <007c01c6485a$f495c3b0$670aa8c0@MZ> Message-ID: <785F5E06-48DC-4031-9713-8B7B16DF2C34@jonbaer.com> Hans - Will there be an audiocast/vidcast/podcast/archive of this? Also, does anyone attend the MySQL meetups in NY? I noticed they meetup at a "roadhouse" (bar?), im just wondering if its actual talks/ presentations or just a get together, the Boston UG vids on Google are super informative ... - Jon On Mar 15, 2006, at 1:04 PM, Hans Zaunere wrote: > > Hello, > > I'll be presenting "The MySQL Database" to Unigroup tomorrow > evening for > anyone interested. > > http://www.unigroup.org > > The theme will be MySQL as the number one open source database and > how it > got that way, which will include it's impact on the database > industry from a > business standpoint. > > I'll also go over in fair detail technical aspects, features, features > coming 5.1, a little on Cluster, and the future, including the > impact of > recent acquisitions of related companies. > > > --- > Hans Zaunere / President / New York PHP > www.nyphp.org / www.nyphp.com > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From prusak at gmail.com Wed Mar 15 15:35:07 2006 From: prusak at gmail.com (Ophir Prusak) Date: Wed, 15 Mar 2006 15:35:07 -0500 Subject: [nycphp-talk] Arctic Issue Tracker - Any Good? In-Reply-To: <44183E2D.3050208@php.net> References: <44183E2D.3050208@php.net> Message-ID: I've looked at it, but not actually tried it out. thanks On 3/15/06, Chris Shiflett wrote: > Hi Ophir, > > Have you tried Trac? > > http://www.edgewall.com/trac/ > > My experiences with it have been very positive, primarily because it > lacks many features that I don't really need. Instead, it elegantly > combines some features that help organize a project - repository > browsing, issue tracking, and a wiki. > > Chris > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Ophir Prusak http://www.prusak.com From prusak at gmail.com Wed Mar 15 15:59:56 2006 From: prusak at gmail.com (Ophir Prusak) Date: Wed, 15 Mar 2006 15:59:56 -0500 Subject: [nycphp-talk] Subversion, Bugzilla hosting In-Reply-To: <000801c6452e$1da591c0$03a8a8c0@cliff> References: <32655-18896@sneakemail.com> <000801c6452e$1da591c0$03a8a8c0@cliff> Message-ID: We've been using cvsdude for about a year. no problems so far. ophir On 3/11/06, Cliff Hirsch wrote: > Well, I settled on cvsdude for Subversion, Bugzilla and Trac. > > And I'm giving a XEN-based VPS provider a try -- will report back my > experience. > > On another note, wasted a few bucks and a few hours trying Dynamic DNS > to just use my office dev. server, which is behind a Firewall and NAT. > Fugetaboutit... Talk about a pain. And then there's all the fine print > about "if your service provider blocks port 80..." Waste of time.... > > -----Original Message----- > Greg Rundlett greg.rundlett-at-gmail.com |nyphp dev/internal group use| > wrote: > > >On 3/10/06, Cliff Hirsch wrote: > >Another option I'm honing in on is VPS -- looks pretty reasonable and > >flexible. > > > >Caution. I know other people have obviously had positive experiences > >with VPS and/or 'root servers' from 1&1 or other companies. I did not. > > > >I found it to be one of the most dissatisfying experiences of my > >consulting career. I wasted 10x the amount of time I would have spent > >just doing the sysadmin work myself. The installation and setup of my > >accounts were buggy. The software (cPanel or Plesk) were useless. That > > >software is not nearly as useful as Webmin. More than anything, > >managing the server through the terrible 'control panel' was the really > > >bad part. And there was incongruous language in their advertising and > >TOS that ended up biting me too. > > > > > Now that someone has said this, I will agree. > > I still use Westhost Virtual Server accounts for a few projects, and I > *think* I appreciate that I don't have as many sysadmin/security > concerns as I have with other dedicated servers. However, I find the > control panel (which is actually a PHP/DHTML application) horribly slow > and an unwelcomed intermediary between me and the system. Luckily I can > ssh in for *most* things when I want to. > > If you want to re-install a base system, though, it is pretty easy to > reset the virtual server and start fresh. Not sure how often I could > accomplish that with the dedicated servers without being ready to pay > for some hands-on support or make a site visit. > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Ophir Prusak http://www.prusak.com From Consult at CovenantEDesign.com Wed Mar 15 17:04:25 2006 From: Consult at CovenantEDesign.com (CED) Date: Wed, 15 Mar 2006 17:04:25 -0500 Subject: [nycphp-talk] Arctic Issue Tracker - Any Good? References: Message-ID: <005e01c6487c$6e40e890$1519a8c0@ced> Eventum is my choice! ----- Original Message ----- From: "Ophir Prusak" To: "WWWAC list" ; "NYPHP Talk" Sent: Wednesday, March 15, 2006 10:55 AM Subject: [nycphp-talk] Arctic Issue Tracker - Any Good? Hi All, So I'm installing for the zillionth time a new issue tracker at work. My main concern is that it has to be simple to use (and php/mysql). Any comments on Arctic? http://www.olate.co.uk/products/arctic/ btw, here are couple of good lists of issue trackers: http://weblogs.asp.net/fmarguerie/articles/408858.aspx http://usefulinc.com/edd/notes/IssueTrackers thanks Ophir -- Ophir Prusak http://www.prusak.com _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From lists at zaunere.com Wed Mar 15 17:33:59 2006 From: lists at zaunere.com (Hans Zaunere) Date: Wed, 15 Mar 2006 17:33:59 -0500 Subject: [nycphp-talk] MySQL Presentation In-Reply-To: <785F5E06-48DC-4031-9713-8B7B16DF2C34@jonbaer.com> Message-ID: <00c801c64880$8e8eba10$670aa8c0@MZ> Hi Jon, Jon Baer wrote on Wednesday, March 15, 2006 2:26 PM: > Hans - > > Will there be an audiocast/vidcast/podcast/archive of this? Not too sure - I'd guess no, but you'd have to contact Unigroup to be sure. > Also, does anyone attend the MySQL meetups in NY? I noticed they > meetup at a "roadhouse" (bar?), im just wondering if its actual talks/ Yeah, it's a bar. > presentations or just a get together, the Boston UG vids on Google > are super informative ... Sometimes... I used to organize it but have handed it over to Philip, who's an SE at MySQL. He's a good guy... --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com From papillion at gmail.com Wed Mar 15 19:56:22 2006 From: papillion at gmail.com (Anthony Papillion) Date: Wed, 15 Mar 2006 18:56:22 -0600 Subject: [nycphp-talk] Arctic Issue Tracker - Any Good? In-Reply-To: <005e01c6487c$6e40e890$1519a8c0@ced> References: <005e01c6487c$6e40e890$1519a8c0@ced> Message-ID: <5458518f0603151656m7da643f3t39ca20d7c62a318e@mail.gmail.com> On 3/15/06, CED wrote: > Eventum is my choice! I have to second your suggestion of Eventum. We just installed it on our customer facing site and it works like a dream. Haven't had a lot of time to work with it but it seems to be very full featured. Anthony Papillion Advanced Data Concepts (918) 926-0139 From codebowl at gmail.com Wed Mar 15 20:14:07 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 15 Mar 2006 20:14:07 -0500 Subject: [nycphp-talk] images with cURL Message-ID: <8d9a42800603151714y3b1befd2ma8b356ca5e898743@mail.gmail.com> Hello guys, i am having an issue here, i am trying to display images on a site with it masking the actual image location, we are grabbing circuit city's images (with permission) to be shown on our site, we have all the url's in the db so i created an image.php file that we will use in our image links, here it is db_query($sql); $row = $dblink->db_fetch_object($res); $cookieFile = BASE_PATH.'cache/circuitcities.cookie.txt'; $ch = curl_init($row->image); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_REFERER, 'http://circuitcity.com/'); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1"); curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate"); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookieFile); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookieFile); curl_setopt($ch, CURLOPT_HTTPHEADER, array( "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9 ,text/plain;q=0.8,image/png,*/*;q=0.5", )); $source = curl_exec($ch); curl_close($ch); header("content-type: image/jpeg"); echo $source; } ?> In FireFox when you hit the page you see a broken image (txt url in mine) however if you view source you see the binary from the image. This works fine if i hard code the url in curl_init, and i have tried urlencode() and trim() on the url before feeding it to curl. you can see the file in use here http://b2cdev.licketyship.com/image.php?img=50903 Any help would be appreciated. Thanks, -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From list at harveyk.com Wed Mar 15 21:45:17 2006 From: list at harveyk.com (harvey) Date: Wed, 15 Mar 2006 21:45:17 -0500 Subject: [nycphp-talk] images with cURL In-Reply-To: <8d9a42800603151714y3b1befd2ma8b356ca5e898743@mail.gmail.co m> References: <8d9a42800603151714y3b1befd2ma8b356ca5e898743@mail.gmail.com> Message-ID: <7.0.1.0.2.20060315214406.07a56d70@harveyk.com> I clicked your link and the page looks fine to me. Some red radio thingy image displayed. Firefox 1.5, WinXP. At 08:14 PM 3/15/2006, Joseph Crawford wrote: >Hello guys, > >i am having an issue here, i am trying to display images on a site >with it masking the actual image location, we are grabbing circuit >city's images (with permission) >to be shown on our site, we have all the url's in the db so i >created an image.php file that we will use in our image links, here it is > >include_once('config/config.php'); >include_once(LIBRARY.'ConnectionPool.php'); > >$imgType = (isset($_GET['type'])) ? ucfirst($_GET['type']) : 'Item'; >$rowID = (isset($_GET['img'])) ? $_GET['img'] : null; > >if(!is_null($rowID)) { > $dblink = new ConnectionPool(true); > $sql = "SELECT ".$imgType."_Image as image FROM MasterItems > WHERE Record_ID=".$rowID; > $res = $dblink->db_query($sql); > $row = $dblink->db_fetch_object($res); > > $cookieFile = BASE_PATH.'cache/circuitcities.cookie.txt'; > > $ch = curl_init($row->image); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > curl_setopt($ch, CURLOPT_REFERER, > 'http://circuitcity.com/'); > curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); > curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; > Windows NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 > Firefox/1.5.0.1"); > curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate"); > curl_setopt($ch, CURLOPT_COOKIEJAR, $cookieFile); > curl_setopt($ch, CURLOPT_COOKIEFILE, $cookieFile); > curl_setopt($ch, CURLOPT_HTTPHEADER, array( > "Accept: > text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q= > 0.5", > )); > $source = curl_exec($ch); > curl_close($ch); > header("content-type: image/jpeg"); > echo $source; >} >?> > >In FireFox when you hit the page you see a broken image (txt url in >mine) however if you view source you see the binary from the image. > >This works fine if i hard code the url in curl_init, and i have >tried urlencode() and trim() on the url before feeding it to curl. > >you can see the file in use here > >http://b2cdev.licketyship.com/image.php?img=50903 > >Any help would be appreciated. > >Thanks, > >-- >Joseph Crawford Jr. >Zend Certified Engineer >Codebowl Solutions, Inc. >http://www.codebowl.com/ >1-802-671-2021 >codebowl at gmail.com >_______________________________________________ >New York PHP Community Talk Mailing List >http://lists.nyphp.org/mailman/listinfo/talk >New York PHP Conference and Expo 2006 >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 mitch.pirtle at gmail.com Wed Mar 15 22:11:00 2006 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Wed, 15 Mar 2006 22:11:00 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: References: Message-ID: <330532b60603151911s9d8aab6w3edb40458e4981c@mail.gmail.com> On 3/15/06, Daniel Krook wrote: > We're hoping to regularly revise the list, so if you come across anything > that should be included in a later version, please let us know (we sent it > off for publication a few weeks back, so we know it's missing things like > the Zend Framework). Likewise, if there's something wrong or broken in > there, please pass along your corrections. Hey Dan, I'd also add PHP 5 Power Programming by Gutmans, Bakken and Rethans. -- Mitch Pirtle Joomla! Core Developer Open Source Matters From papillion at gmail.com Wed Mar 15 22:22:01 2006 From: papillion at gmail.com (Anthony Papillion) Date: Wed, 15 Mar 2006 21:22:01 -0600 Subject: [nycphp-talk] PHP 5's Importance to Web Developers Message-ID: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> Hello Everyone, I've been using PHP 4 and am very comfortable with it. I've developed several major products in 4 and they work very well and are stable. Lately, I've had a few clients ask me about PHP 5 and if they should migrate over to it because it's the latest and greatest. I've always told them no because of the "if it ain't broke, don't fix it" rule. But lately, I've been wondering about switching myself. Is it advantageous for me, as a web developer, to begin switching my projects over to PHP 5 and OOP even if the old way is working fine? I'm not seeing too many jobs that require 5 knowledge and I notice that a mass migration of hosting providers to PHP 5 has yet to happen. What does everyone think? Is learning and switching over to 5 now worthwhile or should I wait until it's been more fully adopted by the community? Thanks! Anthony Papillion Advanced Data Concepts From yournway at gmail.com Thu Mar 16 03:36:25 2006 From: yournway at gmail.com (Alberto dos Santos) Date: Thu, 16 Mar 2006 08:36:25 +0000 Subject: [nycphp-talk] images with cURL In-Reply-To: <7.0.1.0.2.20060315214406.07a56d70@harveyk.com> References: <8d9a42800603151714y3b1befd2ma8b356ca5e898743@mail.gmail.com> <7.0.1.0.2.20060315214406.07a56d70@harveyk.com> Message-ID: WinXP SP2 & FF 1.0.7 works fine On 16/03/06, harvey wrote: > > I clicked your link and the page looks fine to me. > Some red radio thingy image displayed. > Firefox 1.5, WinXP. > > > At 08:14 PM 3/15/2006, Joseph Crawford wrote: > > Hello guys, > > i am having an issue here, i am trying to display images on a site with it > masking the actual image location, we are grabbing circuit city's images > (with permission) > to be shown on our site, we have all the url's in the db so i created an > image.php file that we will use in our image links, here it is > > include_once('config/config.php'); > include_once(LIBRARY.'ConnectionPool.php'); > > $imgType = (isset($_GET['type'])) ? ucfirst($_GET['type']) : 'Item'; > $rowID = (isset($_GET['img'])) ? $_GET['img'] : null; > > if(!is_null($rowID)) { > $dblink = new ConnectionPool(true); > $sql = "SELECT ".$imgType."_Image as image FROM MasterItems WHERE > Record_ID=".$rowID; > $res = $dblink->db_query($sql); > $row = $dblink->db_fetch_object($res); > > $cookieFile = BASE_PATH.'cache/circuitcities.cookie.txt'; > > $ch = curl_init($row->image); > curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); > curl_setopt($ch, CURLOPT_REFERER, 'http://circuitcity.com/' > ); > curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); > curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows > NT 5.1; en-US; rv:1.8.0.1) Gecko/20060111 Firefox/1.5.0.1"); > curl_setopt($ch, CURLOPT_ENCODING, "gzip,deflate"); > curl_setopt($ch, CURLOPT_COOKIEJAR, $cookieFile); > curl_setopt($ch, CURLOPT_COOKIEFILE, $cookieFile); > curl_setopt($ch, CURLOPT_HTTPHEADER, array( > "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q= > 0.9,text/plain;q=0.8,image/png,*/*;q= 0.5", > )); > $source = curl_exec($ch); > curl_close($ch); > header("content-type: image/jpeg"); > echo $source; > } > ?> > > In FireFox when you hit the page you see a broken image (txt url in mine) > however if you view source you see the binary from the image. > > This works fine if i hard code the url in curl_init, and i have tried > urlencode() and trim() on the url before feeding it to curl. > > you can see the file in use here > > http://b2cdev.licketyship.com/image.php?img=50903 > > Any help would be appreciated. > > Thanks, > > -- > Joseph Crawford Jr. > Zend Certified Engineer > Codebowl Solutions, Inc. > http://www.codebowl.com/ > 1-802-671-2021 > codebowl at gmail.com > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > 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 > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mitch.pirtle at gmail.com Thu Mar 16 09:04:25 2006 From: mitch.pirtle at gmail.com (Mitch Pirtle) Date: Thu, 16 Mar 2006 09:04:25 -0500 Subject: [nycphp-talk] PHP 5's Importance to Web Developers In-Reply-To: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> References: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> Message-ID: <330532b60603160604x6dba267cu781d0f875428cc92@mail.gmail.com> On 3/15/06, Anthony Papillion wrote: > Is it advantageous for me, as a web developer, to begin switching my > projects over to PHP 5 and OOP even if the old way is working fine? > I'm not seeing too many jobs that require 5 knowledge and I notice > that a mass migration of hosting providers to PHP 5 has yet to happen. > > What does everyone think? Is learning and switching over to 5 now > worthwhile or should I wait until it's been more fully adopted by the > community? We've agonized over the same decision for months. However, with an application the size and complexity of Joomla, combined with the active development and slow migration towards a more framework-like model (as opposed to just a CMS), we all agreed that PHP5 and a more OO-based approach was necessary. The next major release of Joomla (2.0) will most definitely require PHP5. There is just no way to get around it. There are too many things that we want to take advantage of to stick with the 4.x environment. Of course another interesting factoid is that a big chunk of the core developers are also java guys, so we are left wanting even with 5.1 LOL For me, the real question is - when folks do switch, are they going to 5.0 or jumping 5.0 and going straight to the more current 5.1? -- Mitch Pirtle Joomla! Core Developer Open Source Matters From tedd at sperling.com Thu Mar 16 10:37:51 2006 From: tedd at sperling.com (tedd) Date: Thu, 16 Mar 2006 10:37:51 -0500 Subject: [nycphp-talk] PHP 5's Importance to Web Developers In-Reply-To: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> References: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> Message-ID: >Hello Everyone, > >I've been using PHP 4 and am very comfortable with it. I've developed >several major products in 4 and they work very well and are stable. >Lately, I've had a few clients ask me about PHP 5 and if they should >migrate over to it because it's the latest and greatest. I've always >told them no because of the "if it ain't broke, don't fix it" rule. > >But lately, I've been wondering about switching myself. > >Is it advantageous for me, as a web developer, to begin switching my >projects over to PHP 5 and OOP even if the old way is working fine? >I'm not seeing too many jobs that require 5 knowledge and I notice >that a mass migration of hosting providers to PHP 5 has yet to happen. > >What does everyone think? Is learning and switching over to 5 now >worthwhile or should I wait until it's been more fully adopted by the >community? > >Thanks! >Anthony Papillion >Advanced Data Concepts Anthony: I haven't made the jump myself, but am interested in doing so. However, I read somewhere that less than 10 percent of php programmers have made the switch -- can anyone support/disclaim that statement? tedd -- -------------------------------------------------------------------------------- http://sperling.com From dorgan at optonline.net Thu Mar 16 10:45:28 2006 From: dorgan at optonline.net (Donald J. Organ IV) Date: Thu, 16 Mar 2006 10:45:28 -0500 Subject: [nycphp-talk] PHP 5's Importance to Web Developers In-Reply-To: References: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> Message-ID: <44198818.4000607@optonline.net> Well lately I have found myself using PHP5, I just figured it was time. I havent had to change and of my coding so far....But I figured hey why not, this way if I run into a time for a need to use it I wont have to hope its gonna work i will know it will. tedd wrote: >> Hello Everyone, >> >> I've been using PHP 4 and am very comfortable with it. I've developed >> several major products in 4 and they work very well and are stable. >> Lately, I've had a few clients ask me about PHP 5 and if they should >> migrate over to it because it's the latest and greatest. I've always >> told them no because of the "if it ain't broke, don't fix it" rule. >> >> But lately, I've been wondering about switching myself. >> >> Is it advantageous for me, as a web developer, to begin switching my >> projects over to PHP 5 and OOP even if the old way is working fine? >> I'm not seeing too many jobs that require 5 knowledge and I notice >> that a mass migration of hosting providers to PHP 5 has yet to happen. >> >> What does everyone think? Is learning and switching over to 5 now >> worthwhile or should I wait until it's been more fully adopted by the >> community? >> >> Thanks! >> Anthony Papillion >> Advanced Data Concepts >> > > Anthony: > > I haven't made the jump myself, but am interested in doing so. > > However, I read somewhere that less than 10 percent of php > programmers have made the switch -- can anyone support/disclaim that > statement? > > tedd > From jeff.knight at gmail.com Thu Mar 16 11:44:53 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Thu, 16 Mar 2006 10:44:53 -0600 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <330532b60603151911s9d8aab6w3edb40458e4981c@mail.gmail.com> References: <330532b60603151911s9d8aab6w3edb40458e4981c@mail.gmail.com> Message-ID: <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> > Hey Dan, > > I'd also add PHP 5 Power Programming by Gutmans, Bakken and Rethans. Especially since it is freeeeee! http://www.phptr.com/promotions/promotion.asp?promo=1484&redir=1&rl=1 From tedd at sperling.com Thu Mar 16 11:53:22 2006 From: tedd at sperling.com (tedd) Date: Thu, 16 Mar 2006 11:53:22 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> References: <330532b60603151911s9d8aab6w3edb40458e4981c@mail.gmail.com> <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> Message-ID: > > Hey Dan, >> >> I'd also add PHP 5 Power Programming by Gutmans, Bakken and Rethans. > >Especially since it is freeeeee! > >http://www.phptr.com/promotions/promotion.asp?promo=1484&redir=1&rl=1 How do you figure it's free? You can download a chapter or so, but the book is not free nor is there a free download for the complete book. tedd -- -------------------------------------------------------------------------------- http://sperling.com From dorgan at optonline.net Thu Mar 16 11:52:42 2006 From: dorgan at optonline.net (Donald J. Organ IV) Date: Thu, 16 Mar 2006 11:52:42 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> References: <330532b60603151911s9d8aab6w3edb40458e4981c@mail.gmail.com> <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> Message-ID: <441997DA.8060702@optonline.net> How is it free, I am seeing it for 35.99 Jeff Knight wrote: >> Hey Dan, >> >> I'd also add PHP 5 Power Programming by Gutmans, Bakken and Rethans. >> > > Especially since it is freeeeee! > > http://www.phptr.com/promotions/promotion.asp?promo=1484&redir=1&rl=1 > From scott at crisscott.com Thu Mar 16 11:57:28 2006 From: scott at crisscott.com (Scott Mattocks) Date: Thu, 16 Mar 2006 11:57:28 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <441997DA.8060702@optonline.net> References: <330532b60603151911s9d8aab6w3edb40458e4981c@mail.gmail.com> <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> <441997DA.8060702@optonline.net> Message-ID: <441998F8.5030900@crisscott.com> Donald J. Organ IV wrote: > How is it free, I am seeing it for 35.99 > > Jeff Knight wrote: >>> I'd also add PHP 5 Power Programming by Gutmans, Bakken and Rethans. >>> >> Especially since it is freeeeee! I think Jeff is talking about a different type of free. It's published under the Open Publication License. -- Scott Mattocks http://www.crisscott.com From rotsen at gmail.com Thu Mar 16 11:57:38 2006 From: rotsen at gmail.com (Nestor) Date: Thu, 16 Mar 2006 08:57:38 -0800 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: References: <330532b60603151911s9d8aab6w3edb40458e4981c@mail.gmail.com> <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> Message-ID: Electronic versions will be made available at no cost several months after each book's publication. :-) On 3/16/06, tedd wrote: > > > Hey Dan, > >> > >> I'd also add PHP 5 Power Programming by Gutmans, Bakken and Rethans. > > > >Especially since it is freeeeee! > > > >http://www.phptr.com/promotions/promotion.asp?promo=1484&redir=1&rl=1 > > How do you figure it's free? > > You can download a chapter or so, but the book is not free nor is > there a free download for the complete book. > > tedd > -- > -------------------------------------------------------------------------------- > http://sperling.com > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From jeff.knight at gmail.com Thu Mar 16 11:58:42 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Thu, 16 Mar 2006 10:58:42 -0600 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: References: <330532b60603151911s9d8aab6w3edb40458e4981c@mail.gmail.com> <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> Message-ID: <2ca9ba910603160858v62e183a3q7241a7420fafdae4@mail.gmail.com> > How do you figure it's free? "The Bruce Perens' Open Source Series is designed to give a voice to up-and-coming Open Source authors. Each book in the Series is published under the Open Publication License, an Open Source compatible book license. Electronic versions will be made available at no cost several months after each book's publication." Hmmm... they removed the link though, those bastards. Well, at least it was free & fully downloadable when I posted that link a while back. I know I got mine. From shiflett at php.net Thu Mar 16 12:00:14 2006 From: shiflett at php.net (Chris Shiflett) Date: Thu, 16 Mar 2006 12:00:14 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <2ca9ba910603160858v62e183a3q7241a7420fafdae4@mail.gmail.com> References: <330532b60603151911s9d8aab6w3edb40458e4981c@mail.gmail.com> <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> <2ca9ba910603160858v62e183a3q7241a7420fafdae4@mail.gmail.com> Message-ID: <4419999E.6060503@php.net> Jeff Knight wrote: > Hmmm... they removed the link though, those bastards. http://www.phptr.com/content/images/013147149X/downloads/013147149X_book.pdf :-) Chris From andrew at plexpod.com Thu Mar 16 12:01:47 2006 From: andrew at plexpod.com (Andrew Yochum) Date: Thu, 16 Mar 2006 12:01:47 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <2ca9ba910603160858v62e183a3q7241a7420fafdae4@mail.gmail.com> References: <330532b60603151911s9d8aab6w3edb40458e4981c@mail.gmail.com> <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> <2ca9ba910603160858v62e183a3q7241a7420fafdae4@mail.gmail.com> Message-ID: <20060316170146.GJ24544@desario.homelinux.net> On Thu, Mar 16, 2006 at 10:58:42AM -0600, Jeff Knight wrote: > > How do you figure it's free? > > "The Bruce Perens' Open Source Series is designed to give a voice to > up-and-coming Open Source authors. Each book in the Series is > published under the Open Publication License, an Open Source > compatible book license. Electronic versions will be made available at > no cost several months after each book's publication." > > Hmmm... they removed the link though, those bastards. Well, at least > it was free & fully downloadable when I posted that link a while back. > I know I got mine. Me too. It is the entire book. They burried the link. It's on this page: http://www.phptr.com/title/013147149X# Or directly here: http://www.phptr.com/content/images/013147149X/downloads/013147149X_book.pdf Enjoy, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From jeff.knight at gmail.com Thu Mar 16 12:02:51 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Thu, 16 Mar 2006 11:02:51 -0600 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <4419999E.6060503@php.net> References: <330532b60603151911s9d8aab6w3edb40458e4981c@mail.gmail.com> <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> <2ca9ba910603160858v62e183a3q7241a7420fafdae4@mail.gmail.com> <4419999E.6060503@php.net> Message-ID: <2ca9ba910603160902k3cd876f8r1e085dc5a16932da@mail.gmail.com> With that in mind... you should download any other interesting book you see there before they change their minds about that one. Many of the other books are still available for download. From tedd at sperling.com Thu Mar 16 12:11:38 2006 From: tedd at sperling.com (tedd) Date: Thu, 16 Mar 2006 12:11:38 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <2ca9ba910603160858v62e183a3q7241a7420fafdae4@mail.gmail.com> References: <330532b60603151911s9d8aab6w3edb40458e4981c@mail.gmail.com> <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> <2ca9ba910603160858v62e183a3q7241a7420fafdae4@mail.gmail.com> Message-ID: > > How do you figure it's free? > >"The Bruce Perens' Open Source Series is designed to give a voice to >up-and-coming Open Source authors. Each book in the Series is >published under the Open Publication License, an Open Source >compatible book license. Electronic versions will be made available at >no cost several months after each book's publication." > >Hmmm... they removed the link though, those bastards. Well, at least >it was free & fully downloadable when I posted that link a while back. >I know I got mine. I don't want you to violate any copyright, but any chance of redistribution? Such as send it via a zip file to those who ask (I'm asking). tedd -- -------------------------------------------------------------------------------- http://sperling.com From jellicle at gmail.com Thu Mar 16 12:15:01 2006 From: jellicle at gmail.com (Michael Sims) Date: Thu, 16 Mar 2006 12:15:01 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: References: <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> Message-ID: <200603161215.02044.jellicle@gmail.com> On Thursday 16 March 2006 11:53, tedd wrote: > >> I'd also add PHP 5 Power Programming by Gutmans, Bakken and Rethans. > How do you figure it's free? > > You can download a chapter or so, but the book is not free nor is > there a free download for the complete book. The complete book is here: http://www.phptr.com/content/images/013147149X/downloads/013147149X_book.pdf I have the (hardcopy) version of the book. I think it's a good, useful, book. I've noted a number of typos in the code examples, however, which will keep you on your toes as you read through it. Given that the download is the galley proof of the book as it went to press, these typos haven't been corrected in the PDF. (Contrast with O'Reilly's commitment to maintaining errata for their books...) Michael Sims From tedd at sperling.com Thu Mar 16 12:23:33 2006 From: tedd at sperling.com (tedd) Date: Thu, 16 Mar 2006 12:23:33 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: References: <330532b60603151911s9d8aab6w3edb40458e4981c@mail.gmail.com> <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> <2ca9ba910603160858v62e183a3q7241a7420fafdae4@mail.gmail.com> Message-ID: > > > How do you figure it's free? >> >>"The Bruce Perens' Open Source Series is designed to give a voice to >>up-and-coming Open Source authors. Each book in the Series is >>published under the Open Publication License, an Open Source >>compatible book license. Electronic versions will be made available at >>no cost several months after each book's publication." >> >>Hmmm... they removed the link though, those bastards. Well, at least >>it was free & fully downloadable when I posted that link a while back. >>I know I got mine. > >I don't want you to violate any copyright, but any chance of redistribution? > >Such as send it via a zip file to those who ask (I'm asking). > >tedd Never mind Thanks for the lead. tedd -- -------------------------------------------------------------------------------- http://sperling.com From jeff.knight at gmail.com Thu Mar 16 12:41:01 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Thu, 16 Mar 2006 11:41:01 -0600 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <200603161215.02044.jellicle@gmail.com> References: <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> <200603161215.02044.jellicle@gmail.com> Message-ID: <2ca9ba910603160941h75123d47jee57922a4293a0dc@mail.gmail.com> On 3/16/06, Michael Sims wrote: > The complete book is here: Book shmook, I'm on that list! Now none of you will ever hear the end of it. For those of you not on the reading list yet, I'd recommend simply including a picture of Dan Krook in your presentation/article. It worked for me! From ps at pswebcode.com Thu Mar 16 12:48:55 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Thu, 16 Mar 2006 12:48:55 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: Message-ID: <001c01c64921$e5d9c340$68e4a144@Rubicon> "PHP Hacks" by Jack Herrington, O'Reilly 2006 This very current and succinct book moves really fast providing surgical enlightenment on several PHP programming crucibles, such as: maps on web pages, parsing XML, using MD5, dynamic image overlays, getting Excel into a database, sending HTML mail, and, yes, even a single lucid AJAX example. Cleverly leverages existent PHP projects and modules at every turn to expedite every task. Contains an explicit multi-platform "How to Install PHP, PEAR and MySQL" with special notes for shared environment web-hosting. Warmest regards, Peter Sawczynec, Technology Director PSWebcode _Design & Interface _Ecommerce _Database Management ps at pswebcode.com 718.796.1951 www.pswebcode.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Daniel Krook Sent: Wednesday, March 15, 2006 1:34 PM To: 'NYPHP Talk' Subject: [nycphp-talk] Recommended PHP reading list Hello folks, Carlos Hoyos and I have put together a recommended reading list for PHP for the IBM developerWorks open source zone. As you might expect, it's geared primarily towards those intending to work with Zend Core for IBM or the free DB2 Express-C, but we've also included broad coverage of topics that apply to many aspects of PHP development and it links to a few past NYPHP presentations on topics such as image manipulation and source control as well. We're hoping to regularly revise the list, so if you come across anything that should be included in a later version, please let us know (we sent it off for publication a few weeks back, so we know it's missing things like the Zend Framework). Likewise, if there's something wrong or broken in there, please pass along your corrections. Recommended PHP reading list http://www.ibm.com/developerworks/opensource/library/os-php-read/ Thanks, -Dan Daniel Krook, Content Tools Developer Global Production Services - Tools, ibm.com http://bluepages.redirect.webahead.ibm.com/ http://blogpages.redirect.webahead.ibm.com/ http://bookmarks.redirect.webahead.ibm.com/ _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From cliff at pinestream.com Thu Mar 16 12:55:54 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 16 Mar 2006 12:55:54 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <001c01c64921$e5d9c340$68e4a144@Rubicon> Message-ID: <004101c64922$defcc120$0aa8a8c0@cliff> Has anyone mentioned the PHP security books by Chris and Ilia? Both are truly excellent. I have the PHP Hacks book and found it to be very disappointing. I have a VoIP Hacks book from the same series that is excellent, but I found the PHP Hacks examples to be "lightweight." For example the ACL "hack" was primitive at best. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Peter Sawczynec Sent: Thursday, March 16, 2006 12:49 PM To: 'NYPHP Talk' Subject: Re: [nycphp-talk] Recommended PHP reading list "PHP Hacks" by Jack Herrington, O'Reilly 2006 This very current and succinct book moves really fast providing surgical enlightenment on several PHP programming crucibles, such as: maps on web pages, parsing XML, using MD5, dynamic image overlays, getting Excel into a database, sending HTML mail, and, yes, even a single lucid AJAX example. Cleverly leverages existent PHP projects and modules at every turn to expedite every task. Contains an explicit multi-platform "How to Install PHP, PEAR and MySQL" with special notes for shared environment web-hosting. From ps at pswebcode.com Thu Mar 16 13:07:07 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Thu, 16 Mar 2006 13:07:07 -0500 Subject: [nycphp-talk] Save Me From MySQL Self Message-ID: <001d01c64924$703cf050$68e4a144@Rubicon> In order to avoid my flooding this PHP list with MySQL questions, can someone please point me to a fast-acting MySQL list where questions/issues get addressed just as quickly and dynamically as they do here on the premiere NYPHP list. For example, I need to know: If I have a MySQL table with, say, 200 rows of entries already in it. The table has been using auto-increment. Client wants to manually re-number these first historic 200 entries according to how they were numbered 1-200 when originally entered by hand in the paper ledger. So, can I just remove auto-increment with a table schema update. Then manually rejuggle the numbers in the now dead auto-increment field. Then put auto-increment back and MySQL will happily start auto-incrementing again at 200 without a hitch. Warmest regards, Peter Sawczynec, Technology Director PSWebcode _Design & Interface _Ecommerce _Database Management ps at pswebcode.com 718.796.1951 www.pswebcode.com From tedd at sperling.com Thu Mar 16 13:12:53 2006 From: tedd at sperling.com (tedd) Date: Thu, 16 Mar 2006 13:12:53 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <001c01c64921$e5d9c340$68e4a144@Rubicon> References: <001c01c64921$e5d9c340$68e4a144@Rubicon> Message-ID: >"PHP Hacks" by Jack Herrington, O'Reilly 2006 > >-snip- > >Peter Sawczynec, Yes, I also recommend that book. I read most of it yesterday, ordered it through Amazon last night, and received notice that it was shipping today. Fast world. Another book I highly recommend (very inexpensive $14.99 US) is "PHP Phrasebook" by Christian Wenz. It's not a beginners book, but provides a lot of good advice backed up by code. tedd -- -------------------------------------------------------------------------------- http://sperling.com From ps at pswebcode.com Thu Mar 16 13:14:09 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Thu, 16 Mar 2006 13:14:09 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <004101c64922$defcc120$0aa8a8c0@cliff> Message-ID: <001e01c64925$6be623e0$68e4a144@Rubicon> I agree completely, it is for intermediate user sliding into new places on a monetary and time diet who is doing a little candy store browsing. Definitely not a cornerstone. Meanwhile, both Chris Shiflett's "Essential PHP Security" and Chris Snyder's "Pro PHP Security" are on the recommended list. Peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Cliff Hirsch Sent: Thursday, March 16, 2006 12:56 PM To: 'NYPHP Talk' Subject: Re: [nycphp-talk] Recommended PHP reading list Has anyone mentioned the PHP security books by Chris and Ilia? Both are truly excellent. I have the PHP Hacks book and found it to be very disappointing. I have a VoIP Hacks book from the same series that is excellent, but I found the PHP Hacks examples to be "lightweight." For example the ACL "hack" was primitive at best. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Peter Sawczynec Sent: Thursday, March 16, 2006 12:49 PM To: 'NYPHP Talk' Subject: Re: [nycphp-talk] Recommended PHP reading list "PHP Hacks" by Jack Herrington, O'Reilly 2006 This very current and succinct book moves really fast providing surgical enlightenment on several PHP programming crucibles, such as: maps on web pages, parsing XML, using MD5, dynamic image overlays, getting Excel into a database, sending HTML mail, and, yes, even a single lucid AJAX example. Cleverly leverages existent PHP projects and modules at every turn to expedite every task. Contains an explicit multi-platform "How to Install PHP, PEAR and MySQL" with special notes for shared environment web-hosting. _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From tedd at sperling.com Thu Mar 16 13:15:59 2006 From: tedd at sperling.com (tedd) Date: Thu, 16 Mar 2006 13:15:59 -0500 Subject: [nycphp-talk] Save Me From MySQL Self In-Reply-To: <001d01c64924$703cf050$68e4a144@Rubicon> References: <001d01c64924$703cf050$68e4a144@Rubicon> Message-ID: >In order to avoid my flooding this PHP list with MySQL questions, can >someone please point me to a fast-acting MySQL list where >questions/issues get addressed just as quickly and dynamically as they do >here on the premiere NYPHP list. I've joined: http://lists.nyphp.org/mailman/listinfo/mysql It's not lively, but they answer questions quick enough for me. tedd -- -------------------------------------------------------------------------------- http://sperling.com From jonbaer at jonbaer.com Thu Mar 16 13:19:32 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Thu, 16 Mar 2006 13:19:32 -0500 Subject: [nycphp-talk] Save Me From MySQL Self In-Reply-To: <001d01c64924$703cf050$68e4a144@Rubicon> References: <001d01c64924$703cf050$68e4a144@Rubicon> Message-ID: <929CDED3-402C-4FDF-8B19-948EF148864A@jonbaer.com> There is already a SIG list for MySQL ... http://lists.nyphp.org/mailman/listinfo/mysql I find the main lists and the MySQL forums pretty quick/responsive ... http://lists.mysql.com/ http://forums.mysql.com/ As for the question I beleive phpmyadmin has an operation for this + looking it up the call is something like ... ALTER TABLE t AUTO_INCREMENT = x The last time I did something similar I attached a temp_id field and looped through + set it, dropped the pk(id) field and renamed, this was not a large dataset however. - Jon On Mar 16, 2006, at 1:07 PM, Peter Sawczynec wrote: > In order to avoid my flooding this PHP list with MySQL questions, can > someone please point me to a fast-acting MySQL list where > questions/issues get addressed just as quickly and dynamically as > they do > here on the premiere NYPHP list. > > For example, I need to know: > > If I have a MySQL table with, say, 200 rows of entries already in it. > The table has been using auto-increment. > Client wants to manually re-number these first historic 200 entries > according to how they were numbered 1-200 when originally entered > by hand in > the paper ledger. > So, can I just remove auto-increment with a table schema update. > Then manually rejuggle the numbers in the now dead auto-increment > field. > Then put auto-increment back and MySQL will happily start auto- > incrementing > again at 200 without a hitch. > > > Warmest regards, > > Peter Sawczynec, > Technology Director > PSWebcode > _Design & Interface > _Ecommerce > _Database Management > ps at pswebcode.com > 718.796.1951 > www.pswebcode.com > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From cliff at pinestream.com Thu Mar 16 13:23:35 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 16 Mar 2006 13:23:35 -0500 Subject: [nycphp-talk] $_server['server_name'] versus $_server[http-host'] Message-ID: <005101c64926$bcee0c20$0aa8a8c0@cliff> 'SERVER_NAME' -- The name of the server host under which the current script is executing. If the script is running on a virtual host, this will be the value defined for that virtual host. 'HTTP_HOST' -- Contents of the Host: header from the current request, if there is one. So in English that means? Aren't these the same thing? If I have several URLs points at the same server and want to setup my links to refer to the URL that was originally submitted, does this mean I should be using http_host, not server_name? Cliff From jonbaer at jonbaer.com Thu Mar 16 13:23:48 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Thu, 16 Mar 2006 13:23:48 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <004101c64922$defcc120$0aa8a8c0@cliff> References: <004101c64922$defcc120$0aa8a8c0@cliff> Message-ID: <6DBAF704-A98D-436A-AC06-87929B59EF5D@jonbaer.com> While not PHP per se I find Shifflet's ~HTTP Developer's Handbook~ a must have for any language. - Jon On Mar 16, 2006, at 12:55 PM, Cliff Hirsch wrote: > Has anyone mentioned the PHP security books by Chris and Ilia? Both > are > truly excellent. From jonbaer at jonbaer.com Thu Mar 16 13:53:58 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Thu, 16 Mar 2006 13:53:58 -0500 Subject: [nycphp-talk] PHP 5's Importance to Web Developers In-Reply-To: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> References: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> Message-ID: I think you will find yourself @ a point where your toolset will make you "move on" ... I think MySQL is suffering from the same ideals, the major problems I see are finding the time to adjust to a) learning b) setting it up ... A good example is the new S3 Amazon storage ... http://developer.amazonwebservices.com/connect/entry.jspa? externalID=126&categoryID=47 You can notice @ the bottom people requesting <= PHP4 usage :-\ - Jon On Mar 15, 2006, at 10:22 PM, Anthony Papillion wrote: > Hello Everyone, > > I've been using PHP 4 and am very comfortable with it. I've developed > several major products in 4 and they work very well and are stable. > Lately, I've had a few clients ask me about PHP 5 and if they should > migrate over to it because it's the latest and greatest. I've always > told them no because of the "if it ain't broke, don't fix it" rule. > > But lately, I've been wondering about switching myself. > > Is it advantageous for me, as a web developer, to begin switching my > projects over to PHP 5 and OOP even if the old way is working fine? > I'm not seeing too many jobs that require 5 knowledge and I notice > that a mass migration of hosting providers to PHP 5 has yet to happen. > > What does everyone think? Is learning and switching over to 5 now > worthwhile or should I wait until it's been more fully adopted by the > community? > > Thanks! > Anthony Papillion > Advanced Data Concepts > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From mailinglists at caseysoftware.com Thu Mar 16 14:08:34 2006 From: mailinglists at caseysoftware.com (Keith Casey) Date: Thu, 16 Mar 2006 14:08:34 -0500 Subject: [nycphp-talk] PHP 5's Importance to Web Developers In-Reply-To: References: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> Message-ID: On 3/16/06, tedd wrote: > I haven't made the jump myself, but am interested in doing so. > > However, I read somewhere that less than 10 percent of php > programmers have made the switch -- can anyone support/disclaim that > statement? How far out on the horizon is php 6? If it looks like it will happen any time soon, I suspect that many people/projects will jump directly from 4 to 6 in order to benefit from Unicode support, etc. Does anyone know the target release date/quarter? -- Keith Casey CEO, http://CaseySoftware.com From andrew at plexpod.com Thu Mar 16 14:11:19 2006 From: andrew at plexpod.com (Andrew Yochum) Date: Thu, 16 Mar 2006 14:11:19 -0500 Subject: [nycphp-talk] $_server['server_name'] versus $_server[http-host'] In-Reply-To: <005101c64926$bcee0c20$0aa8a8c0@cliff> References: <005101c64926$bcee0c20$0aa8a8c0@cliff> Message-ID: <20060316191119.GL24544@desario.homelinux.net> On Thu, Mar 16, 2006 at 01:23:35PM -0500, Cliff Hirsch wrote: > 'SERVER_NAME' -- The name of the server host under which the current > script is executing. If the script is running on a virtual host, this > will be the value defined for that virtual host. This is provided by the web server > 'HTTP_HOST' -- Contents of the Host: header from the current request, if > there is one. This is provided by the client and is therefore tainted. > So in English that means? Aren't these the same thing? Usually, except when you have a vhost w/ a bunch of other aliases (ServerAlias directive in Apache) like you describe below. > If I have several URLs points at the same server and want to setup my > links to refer to the URL that was originally submitted, does this mean > I should be using http_host, not server_name? Yes, but consider the above. Validate it as if it were form data. HTH, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From jellicle at gmail.com Thu Mar 16 14:11:33 2006 From: jellicle at gmail.com (Michael Sims) Date: Thu, 16 Mar 2006 14:11:33 -0500 Subject: [nycphp-talk] $_server['server_name'] versus $_server[http-host'] In-Reply-To: <005101c64926$bcee0c20$0aa8a8c0@cliff> References: <005101c64926$bcee0c20$0aa8a8c0@cliff> Message-ID: <200603161411.34346.jellicle@gmail.com> On Thursday 16 March 2006 13:23, Cliff Hirsch wrote: > If I have several URLs points at the same server and want to setup my > links to refer to the URL that was originally submitted, does this mean > I should be using http_host, not server_name? http_host is going to be whatever the user sent you. server_name is going to be whatever the ServerName directive in Apache says. These may be the same, or may be vastly different. Using http_host may be dangerous. A) user asks for "example.com". Apache's setup catches the request with a VirtualHost block with a ServerName of "example.com". Both variables are the same. B) user asks for "example.com". Apache's setup catches the request with a VirtualHost block with a ServerName of "www.example.com" and a ServerAlias of "example.com". server_name should now be "www.example.com" while http_host is still "example.com". C) user asks for "". Since that isn't set up as a ServerName in your Apache setup, Apache's setup catches the request with the DEFAULT VirtualHost block with a ServerName of "www.example.com" and a ServerAlias of "example.com". server_name should now be "www.example.com" while http_host is "". Echoing http_host back to the user is possibly dangerous. I think we've had this discussion before about script_name and php_self and so on. Don't trust user input. Michael Sims From cliff at pinestream.com Thu Mar 16 14:17:29 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Thu, 16 Mar 2006 14:17:29 -0500 Subject: [nycphp-talk] $_server['server_name'] versus $_server[http-host'] In-Reply-To: <200603161411.34346.jellicle@gmail.com> Message-ID: <000401c6492e$45580f00$0aa8a8c0@cliff> So it seems like servername is certainly fine and http_host is fine if I just take a whitelist approach. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Michael Sims http_host is going to be whatever the user sent you. server_name is going to be whatever the ServerName directive in Apache says. These may be the same, or may be vastly different. Using http_host may be dangerous. A) user asks for "example.com". Apache's setup catches the request with a VirtualHost block with a ServerName of "example.com". Both variables are the same. B) user asks for "example.com". Apache's setup catches the request with a VirtualHost block with a ServerName of "www.example.com" and a ServerAlias of "example.com". server_name should now be "www.example.com" while http_host is still "example.com". C) user asks for "". Since that isn't set up as a ServerName in your Apache setup, Apache's setup catches the request with the DEFAULT VirtualHost block with a ServerName of "www.example.com" and a ServerAlias of "example.com". server_name should now be "www.example.com" while http_host is "". Echoing http_host back to the user is possibly dangerous. From dcech at phpwerx.net Thu Mar 16 14:56:45 2006 From: dcech at phpwerx.net (Dan Cech) Date: Thu, 16 Mar 2006 14:56:45 -0500 Subject: [nycphp-talk] PHP 5's Importance to Web Developers In-Reply-To: References: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> Message-ID: <4419C2FD.3070602@phpwerx.net> Jon Baer wrote: > I think you will find yourself @ a point where your toolset will make > you "move on" ... I think MySQL is suffering from the same ideals, > the major problems I see are finding the time to adjust to a) > learning b) setting it up ... > > A good example is the new S3 Amazon storage ... > > http://developer.amazonwebservices.com/connect/entry.jspa? > externalID=126&categoryID=47 > > You can notice @ the bottom people requesting <= PHP4 usage :-\ > > - Jon Realistically, modifying that demo to use php4 and replacing the pear dependencies with sha1 and curl calls would be a trivial task, and imho there is no reason for requiring php5 in this instance aside from poor coding. There are limitations to what can be done in php4, but right now I see no compelling reason for the majority of code out there to move to php5, especially as the vast majority of web servers are still running php4, and quite a lot of them php4.3.x. That said, I am very excited at the prospect of real unicode support in php6. Dan From shiflett at php.net Thu Mar 16 15:08:16 2006 From: shiflett at php.net (Chris Shiflett) Date: Thu, 16 Mar 2006 15:08:16 -0500 Subject: [nycphp-talk] $_server['server_name'] versus $_server[http-host'] In-Reply-To: <005101c64926$bcee0c20$0aa8a8c0@cliff> References: <005101c64926$bcee0c20$0aa8a8c0@cliff> Message-ID: <4419C5B0.7000805@php.net> Cliff Hirsch wrote: > Aren't these the same thing? There's more to this than meets the eye, so I decided to blog about it: http://shiflett.org/archive/211 The short answer is that HTTP_HOST is the Host header from the HTTP request, and SERVER_NAME is provided by the server but can be affected by the Host header in certain circumstances. Hope that helps. Chris From dcech at phpwerx.net Thu Mar 16 15:10:59 2006 From: dcech at phpwerx.net (Dan Cech) Date: Thu, 16 Mar 2006 15:10:59 -0500 Subject: [nycphp-talk] $_server['server_name'] versus $_server[http-host'] In-Reply-To: <000401c6492e$45580f00$0aa8a8c0@cliff> References: <000401c6492e$45580f00$0aa8a8c0@cliff> Message-ID: <4419C653.1080401@phpwerx.net> Cliff Hirsch wrote: > So it seems like servername is certainly fine and http_host is fine if I > just take a whitelist approach. If only it were that simple. The contents of $_SERVER['SERVER_NAME'] is also dependent on the setting of UseCanonicalName in the relevant section of your Apache or VirtualHost config. If UseCanonicalName is On, $_SERVER['SERVER_NAME'] will contain the ServerName specified in your Apache or VirtualHost config, regardless of the Host: header sent by the client. *However* if UseCanonicalName is Off, $_SERVER['SERVER_NAME'] will contain the same (potentially tainted) value as $_SERVER['HTTP_HOST']. $_SERVER['SERVER_SIGNATURE'] will also contain whatever is specified in the Host: header, however at least on my test server it will have html special characters escaped. Dan From papillion at gmail.com Thu Mar 16 16:11:45 2006 From: papillion at gmail.com (Anthony Papillion) Date: Thu, 16 Mar 2006 15:11:45 -0600 Subject: [nycphp-talk] PHP 5's Importance to Web Developers In-Reply-To: <4419C2FD.3070602@phpwerx.net> References: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> <4419C2FD.3070602@phpwerx.net> Message-ID: <5458518f0603161311h5a720b6ev5ec87676e4b15d1d@mail.gmail.com> Thank you all who replied with your thoughts on this topic. It's definately cleared up a lot of issues for me and, for now, I'm going to stick with 4. But I am definately going to spend the time it takes to at least *learn* 5 so I can be ready when the mass migration happens. Anthony From andrew at plexpod.com Thu Mar 16 16:29:11 2006 From: andrew at plexpod.com (Andrew Yochum) Date: Thu, 16 Mar 2006 16:29:11 -0500 Subject: [nycphp-talk] PHP 5's Importance to Web Developers In-Reply-To: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> References: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> Message-ID: <20060316212911.GM24544@desario.homelinux.net> On Wed, Mar 15, 2006 at 09:22:01PM -0600, Anthony Papillion wrote: > Hello Everyone, > > I've been using PHP 4 and am very comfortable with it. I've developed > several major products in 4 and they work very well and are stable. > Lately, I've had a few clients ask me about PHP 5 and if they should > migrate over to it because it's the latest and greatest. I've always > told them no because of the "if it ain't broke, don't fix it" rule. > > But lately, I've been wondering about switching myself. > > Is it advantageous for me, as a web developer, to begin switching my > projects over to PHP 5 and OOP even if the old way is working fine? > I'm not seeing too many jobs that require 5 knowledge and I notice > that a mass migration of hosting providers to PHP 5 has yet to happen. > > What does everyone think? Is learning and switching over to 5 now > worthwhile or should I wait until it's been more fully adopted by the > community? One suggestion I have is to develop your applications to work on both 4 & 5 now. That will make your life easier when the masses (such as your web host, colleagues, and developers of 3rd party software/libs you use) migrate to PHP 5, while allowing you to run them now on servers that currently run PHP 4. You don't need to learn all the new features - learn them as you need/want them. Focus on getting your apps working on both gets you started. Adam Trachtenberg's Upgrading to PHP 5 is a great book on this subject. I don't know that if has been discussed publicly, but PHP 4 may be sunsetted sometime in the next couple of years. This may force the mass migration at some point. PHP 4 is only receving bug and security fixes as it is now. No new major releases are planned. It may only a matter of time. However, at the same time, the PHP community is huge, and the PHP 4 install base is also huge. It has had a longer life than PHP 3 did... whose last release was in Oct 2000, just 5 months after PHP 4 was first released in May 2000. HTH, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From andrew at plexpod.com Thu Mar 16 16:41:59 2006 From: andrew at plexpod.com (Andrew Yochum) Date: Thu, 16 Mar 2006 16:41:59 -0500 Subject: [nycphp-talk] PHP 5's Importance to Web Developers In-Reply-To: References: <5458518f0603151922h2abf8dcfx4fa38e629f8e372a@mail.gmail.com> Message-ID: <20060316214158.GN24544@desario.homelinux.net> On Thu, Mar 16, 2006 at 02:08:34PM -0500, Keith Casey wrote: > On 3/16/06, tedd wrote: > > I haven't made the jump myself, but am interested in doing so. > > > > However, I read somewhere that less than 10 percent of php > > programmers have made the switch -- can anyone support/disclaim that > > statement? > > How far out on the horizon is php 6? If it looks like it will happen > any time soon, I suspect that many people/projects will jump directly > from 4 to 6 in order to benefit from Unicode support, etc. > > Does anyone know the target release date/quarter? I don't believe one has been set. Here is the PHP 6 TODO list for reference: http://oss.backendmedia.com/PhP60 And Derick Rethans notes from a meeting of the core developers detail on the items in the TODO list: http://www.php.net/~derick/meeting-notes.html Regards, Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From shiflett at php.net Thu Mar 16 20:34:31 2006 From: shiflett at php.net (Chris Shiflett) Date: Thu, 16 Mar 2006 20:34:31 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: References: Message-ID: <441A1227.40006@php.net> Daniel Krook wrote: > Carlos Hoyos and I have put together a recommended reading list > for PHP for the IBM developerWorks open source zone. Well done, Daniel, and congrats on the Slashdotting: http://developers.slashdot.org/article.pl?sid=06/03/16/2146207 Chris From jonbaer at jonbaer.com Fri Mar 17 01:20:43 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Fri, 17 Mar 2006 01:20:43 -0500 Subject: [nycphp-talk] Good PHP podcast ... Message-ID: <466802B5-E101-49D3-8546-39E9B590BB8D@jonbaer.com> http://podcast.phparch.com/podcast/audio/20060224.mp3 * Im not sure why this was not highlighted on the site, it's a show with 1/2 with David Sklar discussing Ning .. but .. the other 1/2 is a ~great~ explanation by Chris Shiflett on the evils of the 4th param of mail() function. Next to the books the Ask Chris feature is a pretty informative resource. - Jon From ps at pswebcode.com Fri Mar 17 04:12:27 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Fri, 17 Mar 2006 04:12:27 -0500 Subject: [nycphp-talk] Your Future PHP Application GUIs Message-ID: <000901c649a2$e9d926d0$68e4a144@Rubicon> This link: http://channel9.msdn.com/Showpost.aspx?postid=114710 ...takes a look at the upcoming MSFT OS Vista and shows that Vista search will be using a very instant gratification, responsive AJAX-like interface. I believe a takeaway from that video is that whatever the underlying technology employed, users are going to be expecting this type of reactive interface more and more. This link: http://channel9.msdn.com/Showpost.aspx?postid=151853 ...shows Robert Fripp recording ambient music for Vista. The general forum link cited below provides links to streaming media, admittedly of largely MSFT behind-the-scenes development talk I believe could be of frank interest to any PHP enterprise developer: http://channel9.msdn.com/ShowForum.aspx?ForumID=38 Disseminating some rather dry stuff with a light, easy to absorb touch. Warmest regards, Peter Sawczynec, Technology Director PSWebcode _Design & Interface _Ecommerce _Database Management ps at pswebcode.com 718.796.1951 www.pswebcode.com From yournway at gmail.com Fri Mar 17 04:20:40 2006 From: yournway at gmail.com (Alberto dos Santos) Date: Fri, 17 Mar 2006 09:20:40 +0000 Subject: [nycphp-talk] Save Me From MySQL Self In-Reply-To: <929CDED3-402C-4FDF-8B19-948EF148864A@jonbaer.com> References: <001d01c64924$703cf050$68e4a144@Rubicon> <929CDED3-402C-4FDF-8B19-948EF148864A@jonbaer.com> Message-ID: iIf you are any bit as stressed about wellformdness (??) of your data records as I am (nobody is perfect) you'd export the dataset onto a text file, remove the numbering and re-import into a newly made table, and auto numbering just picks up from the begining... On 16/03/06, Jon Baer wrote: > > There is already a SIG list for MySQL ... > > http://lists.nyphp.org/mailman/listinfo/mysql > > I find the main lists and the MySQL forums pretty quick/responsive ... > > http://lists.mysql.com/ > http://forums.mysql.com/ > > As for the question I beleive phpmyadmin has an operation for this + > looking it up the call is something like ... > > ALTER TABLE t AUTO_INCREMENT = x > > The last time I did something similar I attached a temp_id field and > looped through + set it, dropped the pk(id) field and renamed, this > was not a large dataset however. > > - Jon > > On Mar 16, 2006, at 1:07 PM, Peter Sawczynec wrote: > > > In order to avoid my flooding this PHP list with MySQL questions, can > > someone please point me to a fast-acting MySQL list where > > questions/issues get addressed just as quickly and dynamically as > > they do > > here on the premiere NYPHP list. > > > > For example, I need to know: > > > > If I have a MySQL table with, say, 200 rows of entries already in it. > > The table has been using auto-increment. > > Client wants to manually re-number these first historic 200 entries > > according to how they were numbered 1-200 when originally entered > > by hand in > > the paper ledger. > > So, can I just remove auto-increment with a table schema update. > > Then manually rejuggle the numbers in the now dead auto-increment > > field. > > Then put auto-increment back and MySQL will happily start auto- > > incrementing > > again at 200 without a hitch. > > > > > > Warmest regards, > > > > Peter Sawczynec, > > Technology Director > > PSWebcode > > _Design & Interface > > _Ecommerce > > _Database Management > > ps at pswebcode.com > > 718.796.1951 > > www.pswebcode.com > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > New York PHP Conference and Expo 2006 > > 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 > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ps at pswebcode.com Fri Mar 17 04:24:38 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Fri, 17 Mar 2006 04:24:38 -0500 Subject: [nycphp-talk] Save Me From MySQL Self In-Reply-To: Message-ID: <000f01c649a4$9d4a6340$68e4a144@Rubicon> Thank you. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Alberto dos Santos Sent: Friday, March 17, 2006 4:21 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Save Me From MySQL Self iIf you are any bit as stressed about wellformdness (??) of your data records as I am (nobody is perfect) you'd export the dataset onto a text file, remove the numbering and re-import into a newly made table, and auto numbering just picks up from the begining... On 16/03/06, Jon Baer wrote: There is already a SIG list for MySQL ... http://lists.nyphp.org/mailman/listinfo/mysql I find the main lists and the MySQL forums pretty quick/responsive ... http://lists.mysql.com/ http://forums.mysql.com/ As for the question I beleive phpmyadmin has an operation for this + looking it up the call is something like ... ALTER TABLE t AUTO_INCREMENT = x The last time I did something similar I attached a temp_id field and looped through + set it, dropped the pk(id) field and renamed, this was not a large dataset however. - Jon On Mar 16, 2006, at 1:07 PM, Peter Sawczynec wrote: > In order to avoid my flooding this PHP list with MySQL questions, can > someone please point me to a fast-acting MySQL list where > questions/issues get addressed just as quickly and dynamically as > they do > here on the premiere NYPHP list. > > For example, I need to know: > > If I have a MySQL table with, say, 200 rows of entries already in it. > The table has been using auto-increment. > Client wants to manually re-number these first historic 200 entries > according to how they were numbered 1-200 when originally entered > by hand in > the paper ledger. > So, can I just remove auto-increment with a table schema update. > Then manually rejuggle the numbers in the now dead auto-increment > field. > Then put auto-increment back and MySQL will happily start auto- > incrementing > again at 200 without a hitch. > > > Warmest regards, > > Peter Sawczynec, > Technology Director > PSWebcode > _Design & Interface > _Ecommerce > _Database Management > ps at pswebcode.com > 718.796.1951 > www.pswebcode.com > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > 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 New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Fri Mar 17 14:02:25 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Fri, 17 Mar 2006 11:02:25 -0800 Subject: [nycphp-talk] [OT] Re: Your Future PHP Application GUIs In-Reply-To: <000901c649a2$e9d926d0$68e4a144@Rubicon> References: <000901c649a2$e9d926d0$68e4a144@Rubicon> Message-ID: <2469-95514@sneakemail.com> A good strong dose of skepticism is very healthy in this case. I use PHP because it is fast and stays close to the edge of development in the world of web apps including interfaces. AJAX is a buzzword... it's new, it's often flaky, and compared to total need for user intefaces it doesn't apply to the vast majority of cases. That is not to say it isn't important. I'm just saying it isn't "the answer" yet, and it is very, very young. Sure any new Windows shell is important to all application developers, but not because of some hook between AJAX-y screens and PHP. Of course this part is very funny (from that website): "evangelists are NOT marketing" That statement caused me to choke on my probably-too-hot-to-be-drunk coffee. After all this is Vista promo week.. do we need to clutter up the PHP talk list too? -1 , marked OT -=john andrews http://www.seo-fun.com Peter Sawczynec ps-at-pswebcode.com |nyphp dev/internal group use| wrote: >This link: http://channel9.msdn.com/Showpost.aspx?postid=114710 >...takes a look at the upcoming MSFT OS Vista and shows that Vista search >will be using >a very instant gratification, responsive AJAX-like interface. > >I believe a takeaway from that video is that whatever the underlying >technology employed, >users are going to be expecting this type of reactive interface more and >more. > > >This link: http://channel9.msdn.com/Showpost.aspx?postid=151853 >...shows Robert Fripp recording ambient music for Vista. > > >The general forum link cited below provides links to streaming media, >admittedly of largely MSFT >behind-the-scenes development talk I believe could be of frank interest to >any PHP enterprise developer: >http://channel9.msdn.com/ShowForum.aspx?ForumID=38 > >Disseminating some rather dry stuff with a light, easy to absorb touch. > >Warmest regards, > >Peter Sawczynec, >Technology Director >PSWebcode >_Design & Interface >_Ecommerce >_Database Management >ps at pswebcode.com >718.796.1951 >www.pswebcode.com > >_ > From ajai at bitblit.net Fri Mar 17 15:04:07 2006 From: ajai at bitblit.net (Ajai Khattri) Date: Fri, 17 Mar 2006 15:04:07 -0500 Subject: [nycphp-talk] Tracking sendmail usage by PHP? Message-ID: <441B1637.80106@bitblit.net> To track web server abuse, I need a way of logging what script used sendmail to send out an email. I wrote a wrapper for sendmail in Perl and it works fine for tracking CGI scripts, but I suspect it doesn't work for PHP since I see empty log entries in my logs. So, how does PHP actually use sendmail? Are there any environment variables I can log? I basically need to know what script is sending out emails - maybe there is a better way of doing this that works for PHP *and* other scripting languages (perl)? Grateful for any ideas From rahmin at insite-out.com Fri Mar 17 16:53:55 2006 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Fri, 17 Mar 2006 16:53:55 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <2ca9ba910603160844l79cc8f86s1fce6ed84eecf2a1@mail.gmail.com> Message-ID: As in: http://server.com/file points to file.php in web root. Is there an added benefit to this? I implemented this somewhere thinking it was a more elegant solution, assuming there were other added benefits to this approach, but I'm now being asked what those are and am falling short on my googling.. From rahmin at insite-out.com Fri Mar 17 17:09:09 2006 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Fri, 17 Mar 2006 17:09:09 -0500 Subject: [nycphp-talk] every other record In-Reply-To: Message-ID: On 2/1/06 4:33 PM, "Carlos A Hoyos" wrote: > If some ids have been removed, you can use a subquery to get the row > number. > > For example, if you have a table "your_table" with primary key > "your_table_id", this query will list they key and the row # for this > entry. > > select (select SUM(1) from your_table where your_table_id > <=tableAlias.your_table_id) as RowNumber, your_table_id from your_table_id > tableAlias; > > add a "having mod(RowNumber,2) =0" to list every other row. > To anyone who was following: I ran with this solution in development and found it to be smooth (and in compliance with my 'SQL-side' laurels). However, once I imported some 100k+ records (all containing large HTML blobs), the memory on the SQL server would max out. I did add a join to the query (300+ records), but that was fine during initial development -- I found that sum(1) would exponentially tax the memory allocated to MySQL. Ended up storing results in a multi-dimensional array and looping through that. From 1j0lkq002 at sneakemail.com Fri Mar 17 17:18:18 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Fri, 17 Mar 2006 14:18:18 -0800 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: References: Message-ID: <10041-48944@sneakemail.com> Rahmin Pavlovic rahmin-at-insite-out.com |nyphp dev/internal group use| wrote: >As in: http://server.com/file points to file.php in web root. > >Is there an added benefit to this? > >I implemented this somewhere thinking it was a more elegant solution, >assuming there were other added benefits to this approach, but I'm now being >asked what those are and am falling short on my googling.. > > > haha never execute a tactic without a defined objective... if it has side effects that will come back to bite you ;-) (in other words, don't rock the boat doh!) What are the "added benefits" ? - you look more like a Web2.0 app - you make it easier for people who use search engines to find PHP materials (instead of .php files) - you make management wonder if you really are using java for web development like they think you should - you are more "search engine friendly" by the 2004 definition Seriously, how about: - you establish the potential for long-lived URLs that survive a change in technology (weak excuse, not likely, but theoretically ok) - you are slightly more search engine friendly - your URLs are slightly more user friendly, more likely to get remembered, bookmarked, etc. - friendlier URLs are more likely to get backlinks, and deep backlinks are more desireable than root backlinks - it leaves more room for innovation down the road (ties into the first reason on this list...long-lived URLs) Hope that helps a little. -=john andrews Competitive Webmaster http://www.seo-fun.com From james at 2-bit-toys.com Fri Mar 17 23:09:40 2006 From: james at 2-bit-toys.com (James Tu) Date: Fri, 17 Mar 2006 23:09:40 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <001e01c64925$6be623e0$68e4a144@Rubicon> References: <004101c64922$defcc120$0aa8a8c0@cliff> <001e01c64925$6be623e0$68e4a144@Rubicon> Message-ID: <6.2.5.6.0.20060317230803.03adbb30@2-bit-toys.com> Any opinions on: PHP 5 Objects, Patterns, and Practice by Matt Zandra? -James At 01:14 PM 3/16/2006, you wrote: >I agree completely, it is for intermediate user sliding into new places on a >monetary and time diet who is doing a little candy store browsing. >Definitely not a cornerstone. > >Meanwhile, both Chris Shiflett's "Essential PHP Security" and Chris Snyder's >"Pro PHP Security" are on the recommended list. > >Peter > >-----Original Message----- >From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On >Behalf Of Cliff Hirsch >Sent: Thursday, March 16, 2006 12:56 PM >To: 'NYPHP Talk' >Subject: Re: [nycphp-talk] Recommended PHP reading list > > >Has anyone mentioned the PHP security books by Chris and Ilia? Both are >truly excellent. > >I have the PHP Hacks book and found it to be very disappointing. I have a >VoIP Hacks book from the same series that is excellent, but I found the PHP >Hacks examples to be "lightweight." For example the ACL "hack" was >primitive at best. > >-----Original Message----- >From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] >On Behalf Of Peter Sawczynec >Sent: Thursday, March 16, 2006 12:49 PM >To: 'NYPHP Talk' >Subject: Re: [nycphp-talk] Recommended PHP reading list > >"PHP Hacks" by Jack Herrington, O'Reilly 2006 > >This very current and succinct book moves really fast providing >surgical enlightenment on several PHP programming crucibles, such as: >maps on web pages, parsing XML, using MD5, dynamic image overlays, >getting Excel into a database, sending HTML mail, and, yes, even a single >lucid AJAX example. > >Cleverly leverages existent PHP projects and modules at every turn >to expedite every task. > >Contains an explicit multi-platform "How to Install PHP, PEAR and MySQL" >with special notes for shared environment web-hosting. > >_______________________________________________ >New York PHP Community Talk Mailing List >http://lists.nyphp.org/mailman/listinfo/talk >New York PHP Conference and Expo 2006 >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 >New York PHP Conference and Expo 2006 >http://www.nyphpcon.com >Show Your Participation in New York PHP >http://www.nyphp.org/show_participation.php > > > >-- >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.1.385 / Virus Database: 268.2.4/283 - Release Date: 3/16/2006 -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.1.385 / Virus Database: 268.2.4/283 - Release Date: 3/16/2006 From codebowl at gmail.com Sat Mar 18 10:05:04 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Sat, 18 Mar 2006 10:05:04 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <6.2.5.6.0.20060317230803.03adbb30@2-bit-toys.com> References: <004101c64922$defcc120$0aa8a8c0@cliff> <001e01c64925$6be623e0$68e4a144@Rubicon> <6.2.5.6.0.20060317230803.03adbb30@2-bit-toys.com> Message-ID: <8d9a42800603180705n23f8c652l2b61b86ce4750e73@mail.gmail.com> I am surprised this wasnt mentioned and i dont see it on thier list but what about Core PHP Programming? On 3/17/06, James Tu wrote: > > Any opinions on: > > PHP 5 Objects, Patterns, and Practice by Matt Zandra? > > -James > > At 01:14 PM 3/16/2006, you wrote: > > >I agree completely, it is for intermediate user sliding into new places > on a > >monetary and time diet who is doing a little candy store browsing. > >Definitely not a cornerstone. > > > >Meanwhile, both Chris Shiflett's "Essential PHP Security" and Chris > Snyder's > >"Pro PHP Security" are on the recommended list. > > > >Peter > > > >-----Original Message----- > >From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > On > >Behalf Of Cliff Hirsch > >Sent: Thursday, March 16, 2006 12:56 PM > >To: 'NYPHP Talk' > >Subject: Re: [nycphp-talk] Recommended PHP reading list > > > > > >Has anyone mentioned the PHP security books by Chris and Ilia? Both are > >truly excellent. > > > >I have the PHP Hacks book and found it to be very disappointing. I have a > >VoIP Hacks book from the same series that is excellent, but I found the > PHP > >Hacks examples to be "lightweight." For example the ACL "hack" was > >primitive at best. > > > >-----Original Message----- > >From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] > >On Behalf Of Peter Sawczynec > >Sent: Thursday, March 16, 2006 12:49 PM > >To: 'NYPHP Talk' > >Subject: Re: [nycphp-talk] Recommended PHP reading list > > > >"PHP Hacks" by Jack Herrington, O'Reilly 2006 > > > >This very current and succinct book moves really fast providing > >surgical enlightenment on several PHP programming crucibles, such as: > >maps on web pages, parsing XML, using MD5, dynamic image overlays, > >getting Excel into a database, sending HTML mail, and, yes, even a single > >lucid AJAX example. > > > >Cleverly leverages existent PHP projects and modules at every turn > >to expedite every task. > > > >Contains an explicit multi-platform "How to Install PHP, PEAR and MySQL" > >with special notes for shared environment web-hosting. > > > >_______________________________________________ > >New York PHP Community Talk Mailing List > >http://lists.nyphp.org/mailman/listinfo/talk > >New York PHP Conference and Expo 2006 > >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 > >New York PHP Conference and Expo 2006 > >http://www.nyphpcon.com > >Show Your Participation in New York PHP > >http://www.nyphp.org/show_participation.php > > > > > > > >-- > >No virus found in this incoming message. > >Checked by AVG Anti-Virus. > >Version: 7.1.385 / Virus Database: 268.2.4/283 - Release Date: 3/16/2006 > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.1.385 / Virus Database: 268.2.4/283 - Release Date: 3/16/2006 > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > 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/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Sat Mar 18 10:10:47 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Sat, 18 Mar 2006 10:10:47 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <8d9a42800603180705n23f8c652l2b61b86ce4750e73@mail.gmail.com> References: <004101c64922$defcc120$0aa8a8c0@cliff> <001e01c64925$6be623e0$68e4a144@Rubicon> <6.2.5.6.0.20060317230803.03adbb30@2-bit-toys.com> <8d9a42800603180705n23f8c652l2b61b86ce4750e73@mail.gmail.com> Message-ID: <8d9a42800603180710m76eca891j2552a1833cf4e714@mail.gmail.com> Also PhpEd should be added to the list of IDE's http://www.nusphere.com/products/index.htm On 3/18/06, Joseph Crawford wrote: > > I am surprised this wasnt mentioned and i dont see it on thier list but > what about Core PHP Programming? > > > On 3/17/06, James Tu < james at 2-bit-toys.com> wrote: > > > > Any opinions on: > > > > PHP 5 Objects, Patterns, and Practice by Matt Zandra? > > > > -James > > > > At 01:14 PM 3/16/2006, you wrote: > > > > >I agree completely, it is for intermediate user sliding into new places > > on a > > >monetary and time diet who is doing a little candy store browsing. > > >Definitely not a cornerstone. > > > > > >Meanwhile, both Chris Shiflett's "Essential PHP Security" and Chris > > Snyder's > > >"Pro PHP Security" are on the recommended list. > > > > > >Peter > > > > > >-----Original Message----- > > >From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On > > >Behalf Of Cliff Hirsch > > >Sent: Thursday, March 16, 2006 12:56 PM > > >To: 'NYPHP Talk' > > >Subject: Re: [nycphp-talk] Recommended PHP reading list > > > > > > > > >Has anyone mentioned the PHP security books by Chris and Ilia? Both are > > > > >truly excellent. > > > > > >I have the PHP Hacks book and found it to be very disappointing. I have > > a > > >VoIP Hacks book from the same series that is excellent, but I found the > > PHP > > >Hacks examples to be "lightweight." For example the ACL "hack" was > > >primitive at best. > > > > > >-----Original Message----- > > >From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org > > ] > > >On Behalf Of Peter Sawczynec > > >Sent: Thursday, March 16, 2006 12:49 PM > > >To: 'NYPHP Talk' > > >Subject: Re: [nycphp-talk] Recommended PHP reading list > > > > > >"PHP Hacks" by Jack Herrington, O'Reilly 2006 > > > > > >This very current and succinct book moves really fast providing > > >surgical enlightenment on several PHP programming crucibles, such as: > > >maps on web pages, parsing XML, using MD5, dynamic image overlays, > > >getting Excel into a database, sending HTML mail, and, yes, even a > > single > > >lucid AJAX example. > > > > > >Cleverly leverages existent PHP projects and modules at every turn > > >to expedite every task. > > > > > >Contains an explicit multi-platform "How to Install PHP, PEAR and > > MySQL" > > >with special notes for shared environment web-hosting. > > > > > >_______________________________________________ > > >New York PHP Community Talk Mailing List > > >http://lists.nyphp.org/mailman/listinfo/talk > > >New York PHP Conference and Expo 2006 > > > 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 > > >New York PHP Conference and Expo 2006 > > > http://www.nyphpcon.com > > >Show Your Participation in New York PHP > > >http://www.nyphp.org/show_participation.php > > > > > > > > > > > >-- > > >No virus found in this incoming message. > > >Checked by AVG Anti-Virus. > > >Version: 7.1.385 / Virus Database: 268.2.4/283 - Release Date: > > 3/16/2006 > > > > > > -- > > No virus found in this outgoing message. > > Checked by AVG Anti-Virus. > > Version: 7.1.385 / Virus Database: 268.2.4/283 - Release Date: 3/16/2006 > > > > > > _______________________________________________ > > New York PHP Community Talk Mailing List > > http://lists.nyphp.org/mailman/listinfo/talk > > New York PHP Conference and Expo 2006 > > 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/ > 1-802-671-2021 > codebowl at gmail.com > -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dramirez at obbat.com Sat Mar 18 13:41:52 2006 From: dramirez at obbat.com (dramirez at obbat.com) Date: Sat, 18 Mar 2006 13:41:52 -0500 Subject: [nycphp-talk] Please excuse this big Off topic Message-ID: <4409680.140791142707312639.JavaMail.servlet@perfora> Hello everyone. I apologize beforehand for using this list for this purpose, I wouldn't normally do it, but please know I need your help. I'm looking for an organization, company or freelance team, that is interested in hiring a hard working employee. I possess professional qualities and work ethic that demonstrate commitment to my work and employer. My diligence and dedication to Web projects provide top quality results. I am a team worker, have good organizational skills, artistically inclined, and willing to work many hours including weekends. I am using this list because my English in not yet quiet fluent, and puts me at a disadvantage when looking for work. In some instances I am competing with people that have less experience than me, but have the upper hand because they dominate perfectly the language. In a recent internship at the World Federalist Movement, I worked doing the website programming and design. For the work-in-progress please see www.iccnow.org. This organization would also serve as a job reference as they are available to answer any questions regarding my work. Thank you for taking the time to read my petition. To contact me please send a message directly to my email, I wouldn't like to burden this list with responses to this message. With much appreciation. Denis Ramirez dramirez at obbat.com Tel.: (718) 325 ? 6585 PD: Computer skills Concept of Server Script and PHP (Basic knowledge and OOP understandings) Concept of Client Script and JavaScript and (understandings Ajax techniques) Database: MySQL More Experience in: Web Design, Design Patterns, DHTML, XHTML, CSS, XML, Standard Web, Usability, Accessibility, SEO (Search Engine Optimization), e-commerce and experience in online travel company Software that I use: Photoshop Macromedia Dreamweaver Macromedia Flash Others skills: Hardware assembling and maintenance Installation, update and maintenance of local and remote networks Installation, update and maintenance for workstation and servers From danielc at analysisandsolutions.com Sat Mar 18 18:11:22 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sat, 18 Mar 2006 18:11:22 -0500 Subject: [nycphp-talk] Tracking sendmail usage by PHP? In-Reply-To: <441B1637.80106@bitblit.net> References: <441B1637.80106@bitblit.net> Message-ID: <20060318231122.GA2032@panix.com> Hi: On Fri, Mar 17, 2006 at 03:04:07PM -0500, Ajai Khattri wrote: > To track web server abuse, I need a way of logging what script used > sendmail to send out an email. I wrote a wrapper for sendmail in Perl > and it works fine for tracking CGI scripts, but I suspect it doesn't > work for PHP since I see empty log entries in my logs. See the sendmail_path in php.ini. You can use your existing logger. For those not aware of this possibility, see http://blog.phpdoc.info/archives/20-mail-replacement-a-better-hack.html --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 lists at zaunere.com Mon Mar 20 07:51:49 2006 From: lists at zaunere.com (Hans Zaunere) Date: Mon, 20 Mar 2006 07:51:49 -0500 Subject: [nycphp-talk] Please excuse this big Off topic In-Reply-To: <4409680.140791142707312639.JavaMail.servlet@perfora> Message-ID: <002601c64c1d$0eaa9260$640aa8c0@MZ> Denis, The appropriate list for these types of postings in the NYPHP-Jobs list. Please see more at http://www.nyphp.org/lists Thanks, --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com dramirez at obbat.com wrote on Saturday, March 18, 2006 1:42 PM: > Hello everyone. > > I apologize beforehand for using this list for this purpose, I > wouldn't normally do it, but please know I need your help. > > I'm looking for an organization, company or freelance team, that is > interested in hiring a hard working employee. I possess professional > qualities and work ethic that demonstrate commitment to my work and > employer. My diligence and dedication to Web projects provide top > quality results. I am a team worker, have good organizational > skills, artistically inclined, and willing to work many hours > including weekends. > > I am using this list because my English in not yet quiet fluent, and > puts me at a disadvantage when looking for work. In some instances I > am competing with people that have less experience than me, but have > the upper hand because they dominate perfectly the language. > > In a recent internship at the World Federalist Movement, I worked > doing the website programming and design. For the work-in-progress > please see www.iccnow.org. This organization would also serve as a > job reference as they are available to answer any questions regarding > my work. > > Thank you for taking the time to read my petition. To contact me > please send a message directly to my email, I wouldn't like to burden > this list with responses to this message. > > With much appreciation. > > Denis Ramirez > dramirez at obbat.com > Tel.: (718) 325 - 6585 > > > > PD: Computer skills > > Concept of Server Script and PHP (Basic knowledge and OOP > understandings) > Concept of Client Script and JavaScript and (understandings Ajax > techniques) > Database: MySQL > More Experience in: Web Design, Design Patterns, DHTML, XHTML, CSS, > XML, Standard Web, Usability, Accessibility, SEO (Search Engine > Optimization), e-commerce and experience in online travel company > > > Software that I use: > > Photoshop > Macromedia Dreamweaver > Macromedia Flash > > Others skills: > > Hardware assembling and maintenance > Installation, update and maintenance of local and remote networks > Installation, update and maintenance for workstation and servers > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From akamm at demicooper.com Mon Mar 20 10:01:26 2006 From: akamm at demicooper.com (Andrew Kamm) Date: Mon, 20 Mar 2006 09:01:26 -0600 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <6.2.5.6.0.20060317230803.03adbb30@2-bit-toys.com> Message-ID: > Any opinions on: > PHP 5 Objects, Patterns, and Practice by Matt Zandra? I thought this was a great book. I read it as I was transitioning from procedural programming in PHP4 to PHP5/OOP and it hit the spot for me. Also, I felt the 'Pro PHP Security' book mentioned earlier was great as well. Very comprehensive and provides a lot of great explanations of options and pros/cons of different approaches. -- Andrew Kamm From cliff at pinestream.com Mon Mar 20 10:59:21 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Mon, 20 Mar 2006 10:59:21 -0500 Subject: [nycphp-talk] Pear Mail error Message-ID: <003c01c64c37$43e9dcf0$0aa8a8c0@cliff> I am bringing up a new server and received the following errors when trying to send mail. Do I just have a php.ini include path problem? It looks like PEAR landed in a strange location. Where do you put PEAR files? Wait a minute -- I think I have two PEAR install on this machine. (include_path='.:/usr/local/Zend/Core/share/pear:/var/tmp/php-root/usr/s hare/pear') Time for more digging... ERRNO: 2 TEXT: Mail_smtp::send(Net/SMTP.php) [function.send]: failed to open stream: No such file or directory LOCATION: /var/tmp/php-root/usr/share/pear/Mail/smtp.php, line 185, at March 20, 2006, 10:34 am Showing backtrace: Mail_smtp.send() # line 185, file: /var/tmp/php-root/usr/share/pear/Mail/smtp.php ERRNO: 2 TEXT: Mail_smtp::send() [function.include]: Failed opening 'Net/SMTP.php' for inclusion (include_path='.:/usr/local/Zend/Core/share/pear:/var/tmp/php-root/usr/s hare/pear') LOCATION: /var/tmp/php-root/usr/share/pear/Mail/smtp.php, line 185, at March 20, 2006, 10:34 am Showing backtrace: Mail_smtp.send() # line 185, file: /var/tmp/php-root/usr/share/pear/Mail/smtp.php ERRNO: 2 TEXT: __autoload(/var/www/html/business_objects/net_smtp.php) [function.--autoload]: failed to open stream: No such file or directory LOCATION: /var/www/html/include/app_top.php, line 22, at March 20, 2006, 10:34 am Showing backtrace: __autoload() # line 22, file: /var/www/html/include/app_top.php __autoload("Net_SMTP") # line 189, file: /var/tmp/php-root/usr/share/pear/Mail/smtp.php Cliff Hirsch ______________________________ Pinestream Communications, Inc. Publisher of Semiconductor Times & Telecom Trends 52 Pine Street, Weston, MA 02493 USA Tel: 781.647.8800, Fax: 781.647.8825 http://www.pinestream.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajai at bitblit.net Mon Mar 20 14:47:28 2006 From: ajai at bitblit.net (Ajai Khattri) Date: Mon, 20 Mar 2006 14:47:28 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <10041-48944@sneakemail.com> References: <10041-48944@sneakemail.com> Message-ID: <441F06D0.5040400@bitblit.net> inforequest wrote: > > haha never execute a tactic without a defined objective... if it has > side effects that will come back to bite you ;-) > (in other words, don't rock the boat doh!) > > What are the "added benefits" ? > > - you look more like a Web2.0 app > - you make it easier for people who use search engines to find PHP > materials (instead of .php files) > - you make management wonder if you really are using java for web > development like they think you should > - you are more "search engine friendly" by the 2004 definition > > Seriously, how about: > > - you establish the potential for long-lived URLs that survive a change > in technology (weak excuse, not likely, but theoretically ok) > - you are slightly more search engine friendly > - your URLs are slightly more user friendly, more likely to get > remembered, bookmarked, etc. > - friendlier URLs are more likely to get backlinks, and deep backlinks > are more desireable than root backlinks > - it leaves more room for innovation down the road (ties into the first > reason on this list...long-lived URLs) Noone wearing their sys admin hat today? OTOH, making your web server parse all files as PHP will likely increase the load... From jonbaer at jonbaer.com Mon Mar 20 15:09:30 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Mon, 20 Mar 2006 15:09:30 -0500 Subject: [nycphp-talk] Pear Mail error In-Reply-To: <003c01c64c37$43e9dcf0$0aa8a8c0@cliff> References: <003c01c64c37$43e9dcf0$0aa8a8c0@cliff> Message-ID: <5CDA6542-7ECB-4FFC-A786-549677589FDA@jonbaer.com> Normally it would fall into the location of where it was specified in your ./configure when you built php ... ./configure --with-pear=/my/pear/location For example on my box is /usr/lib/php Id try running 'pear install Net_SMTP' or 'pear upgrade Net_SMTP' ... The one puzzling thing for me is why you would have 2 PEAR locations here, for example why Zend/Core would need its own setup, Id think it would be best to have a single location in your include_path and *before* any additional framework setups. - Jon On Mar 20, 2006, at 10:59 AM, Cliff Hirsch wrote: > I am bringing up a new server and received the following errors > when trying to send mail. Do I just have a php.ini include path > problem? It looks like PEAR landed in a strange location. Where do > you put PEAR files? > > Wait a minute -- I think I have two PEAR install on this machine. > (include_path='.:/usr/local/Zend/Core/share/pear:/var/tmp/php-root/ > usr/share/pear') > Time for more digging... > > ERRNO: 2 > TEXT: Mail_smtp::send(Net/SMTP.php) [function.send]: failed to open > stream: No such file or directory > LOCATION: /var/tmp/php-root/usr/share/pear/Mail/smtp.php, line 185, > at March 20, 2006, 10:34 am > Showing backtrace: > Mail_smtp.send() # line 185, file: /var/tmp/php-root/usr/share/ > pear/Mail/smtp.php > > ERRNO: 2 > TEXT: Mail_smtp::send() [function.include]: Failed opening 'Net/ > SMTP.php' for inclusion (include_path='.:/usr/local/Zend/Core/share/ > pear:/var/tmp/php-root/usr/share/pear') > LOCATION: /var/tmp/php-root/usr/share/pear/Mail/smtp.php, line 185, > at March 20, 2006, 10:34 am > Showing backtrace: > Mail_smtp.send() # line 185, file: /var/tmp/php-root/usr/share/ > pear/Mail/smtp.php > > ERRNO: 2 > TEXT: __autoload(/var/www/html/business_objects/net_smtp.php) > [function.--autoload]: failed to open stream: No such file or > directory > LOCATION: /var/www/html/include/app_top.php, line 22, at March 20, > 2006, 10:34 am > Showing backtrace: > __autoload() # line 22, file: /var/www/html/include/app_top.php > __autoload("Net_SMTP") # line 189, file: /var/tmp/php-root/usr/ > share/pear/Mail/smtp.php > Cliff Hirsch > ______________________________ > Pinestream Communications, Inc. > Publisher of Semiconductor Times & Telecom Trends > 52 Pine Street, Weston, MA 02493 USA > Tel: 781.647.8800, Fax: 781.647.8825 > http://www.pinestream.com > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From cliff at pinestream.com Mon Mar 20 15:34:14 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Mon, 20 Mar 2006 15:34:14 -0500 Subject: [nycphp-talk] Pear Mail error In-Reply-To: <5CDA6542-7ECB-4FFC-A786-549677589FDA@jonbaer.com> Message-ID: <004601c64c5d$a7c0fcb0$0aa8a8c0@cliff> The first build came from an rpm of unknown origin. That threw PEAR into a strange directory. Looks like ZendCore does its own PEAR install. Need to do a bit of research to see if it can be changed, but I assume its "pre-built" Pear install is next on the list. And working on using SendMail too. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jon Baer Sent: Monday, March 20, 2006 3:10 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Pear Mail error Normally it would fall into the location of where it was specified in your ./configure when you built php ... ./configure --with-pear=/my/pear/location For example on my box is /usr/lib/php Id try running 'pear install Net_SMTP' or 'pear upgrade Net_SMTP' ... The one puzzling thing for me is why you would have 2 PEAR locations here, for example why Zend/Core would need its own setup, Id think it would be best to have a single location in your include_path and *before* any additional framework setups. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.com Mon Mar 20 15:50:01 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Mon, 20 Mar 2006 15:50:01 -0500 Subject: [nycphp-talk] Pear Mail error In-Reply-To: <004601c64c5d$a7c0fcb0$0aa8a8c0@cliff> References: <004601c64c5d$a7c0fcb0$0aa8a8c0@cliff> Message-ID: <5D664C31-369B-4C22-ADFD-87DA3B162E4B@jonbaer.com> On Mar 20, 2006, at 3:34 PM, Cliff Hirsch wrote: > The first build came from an rpm of unknown origin. That alone sounds taboo ;-) > That threw PEAR into a strange directory. Looks like ZendCore does > its own PEAR install. Need to do a bit of research to see if it can > be changed, but I assume its "pre-built" > Yeah I don't think you can get away with multiple PEAR directories ... if you type "pear config-show" on the command line you should have where your packages should eventually end up. The main problem is if you do a package update you would have out-of-sync items causing headaches ... + Id be 100% sure that ZendCore would be using the same PEAR repository as the rest of the world. - Jon -------------- next part -------------- An HTML attachment was scrubbed... URL: From cliff at pinestream.com Mon Mar 20 15:55:29 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Mon, 20 Mar 2006 15:55:29 -0500 Subject: [nycphp-talk] Pear Mail error In-Reply-To: <5D664C31-369B-4C22-ADFD-87DA3B162E4B@jonbaer.com> Message-ID: <005501c64c60$9f446970$0aa8a8c0@cliff> On Mar 20, 2006, at 3:34 PM, Cliff Hirsch wrote: The first build came from an rpm of unknown origin. That alone sounds taboo ;-) Yeah, the joys of learning Linux on the fly. Ever hear of Virtual Duct Tape? Time to scrub out the old junk. That threw PEAR into a strange directory. Looks like ZendCore does its own PEAR install. Need to do a bit of research to see if it can be changed, but I assume its "pre-built" Yeah I don't think you can get away with multiple PEAR directories ... if you type "pear config-show" on the command line you should have where your packages should eventually end up. The main problem is if you do a package update you would have out-of-sync items causing headaches ... + Id be 100% sure that ZendCore would be using the same PEAR repository as the rest of the world. ZendCore appears to be great. I swear by Zend Studio so I'm not surprised. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.com Mon Mar 20 16:19:55 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Mon, 20 Mar 2006 16:19:55 -0500 Subject: [nycphp-talk] Pear Mail error In-Reply-To: <005501c64c60$9f446970$0aa8a8c0@cliff> References: <005501c64c60$9f446970$0aa8a8c0@cliff> Message-ID: On Mar 20, 2006, at 3:55 PM, Cliff Hirsch wrote: > On Mar 20, 2006, at 3:34 PM, Cliff Hirsch wrote: > >> The first build came from an rpm of unknown origin. > > That alone sounds taboo ;-) > > Yeah, the joys of learning Linux on the fly. Ever hear of Virtual > Duct Tape? Time to scrub out the old junk. From my own experience (and im not sure how much of this has changed) but the main problem w/ installing from RPMs and pre-built packages is that they seem to always try to make guesses on where you have other stuff installed and when you deal w/ a scripting language that has so many extensions such as PHP you don't get flexibility from installing it as is. On the flip side you get this feeling of safeness that you can't and haven't screwed anything up :-) Either way Id say one of the better joys in learning Linux is learning to configure and compile the source on your own to get what you need out of PHP. Granted it is more time to invest but at least you know you have your own setup, know where things are, and when in doubt have a phpinfo() to come back to. Finding time in a busy day .. well that's another deal :-) - Jon -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Mon Mar 20 17:54:08 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 20 Mar 2006 17:54:08 -0500 Subject: [nycphp-talk] Faced with a headache :D Message-ID: <8d9a42800603201454j1de86fd7ga73b9dff7d896ef3@mail.gmail.com> Hey guys, I have a database of vendors, each have different days and times they are open from. now what i need to do is this check to see if the vendor is open at the current time, if not i need to check the next day, then the next, etc.. I have some simple code that is not in working form, that is this $time = ''; $day = date('w'); $days = 1; // getLeadTime() returns a time in minutes, converting to seconds so we can add it to the timestamp. $leadTime = 60 * $location->getLeadTime(); $i = $day; while($i <= 6) { $curday = $day + $i; if($curday == 7) { $i = 0; $curday = 6; } // getOpenTime() returns a string such as 10:00:00 or 23:30:00 $timeStr = $location->getOpenTime($curday); // if $timStr is = 00:00:00 then it needs to continue on to the next loop if($timeStr == '00:00:00') { $i++; $days++; continue; } } // now we need to get the timestamp, this is where the strtotime converts the string from getOpenTime to a timestamp and we add the leadTime $vendorOpenTime = strtotime($location->getOpenTime($day + $days)) + $leadTime; Now the above code works fine if they are closed on Monday and not open again until Thursday, the trouble lies in being closed Sat and Sun, it doesnt flip over to Monday. it just says get it delivered today, even if they are closed the current day. Anyone who can help me with this i would appreciate it, i wouldnt even mind paying someone to help me nail this logic :D I have spent pretty much about 5 hours on this and i think i just need another brain to pick at it :) Thanks, -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Consult at CovenantEDesign.com Mon Mar 20 18:08:13 2006 From: Consult at CovenantEDesign.com (CED) Date: Mon, 20 Mar 2006 18:08:13 -0500 Subject: [nycphp-talk] Faced with a headache :D References: <8d9a42800603201454j1de86fd7ga73b9dff7d896ef3@mail.gmail.com> Message-ID: <001501c64c73$2b692960$1519a8c0@ced> Your issue lies here I believe: if($curday == 7) { $i = 0; $curday = 6; } you're resetting curday instead od $day. For above it you're assigning $curday = $day + $i so it's either pointless, or it's broke. Edward J Prevost II Senior Applications Specialist SIS Project, Data Migration Lead Albany Medical College Albany Medical Center Edward.Prevost at amc.edu desk | 518.262.2743 cell | 518.331.5061 ----- Original Message ----- From: Joseph Crawford To: NYPHP Talk Sent: Monday, March 20, 2006 5:54 PM Subject: [nycphp-talk] Faced with a headache :D Hey guys, I have a database of vendors, each have different days and times they are open from. now what i need to do is this check to see if the vendor is open at the current time, if not i need to check the next day, then the next, etc.. I have some simple code that is not in working form, that is this $time = ''; $day = date('w'); $days = 1; // getLeadTime() returns a time in minutes, converting to seconds so we can add it to the timestamp. $leadTime = 60 * $location->getLeadTime(); $i = $day; while($i <= 6) { $curday = $day + $i; if($curday == 7) { $i = 0; $curday = 6; } // getOpenTime() returns a string such as 10:00:00 or 23:30:00 $timeStr = $location->getOpenTime($curday); // if $timStr is = 00:00:00 then it needs to continue on to the next loop if($timeStr == '00:00:00') { $i++; $days++; continue; } } // now we need to get the timestamp, this is where the strtotime converts the string from getOpenTime to a timestamp and we add the leadTime $vendorOpenTime = strtotime($location->getOpenTime($day + $days)) + $leadTime; Now the above code works fine if they are closed on Monday and not open again until Thursday, the trouble lies in being closed Sat and Sun, it doesnt flip over to Monday. it just says get it delivered today, even if they are closed the current day. Anyone who can help me with this i would appreciate it, i wouldnt even mind paying someone to help me nail this logic :D I have spent pretty much about 5 hours on this and i think i just need another brain to pick at it :) Thanks, -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com ------------------------------------------------------------------------------ _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 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 gatzby3jr at gmail.com Mon Mar 20 18:10:52 2006 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Mon, 20 Mar 2006 18:10:52 -0500 Subject: [nycphp-talk] Faced with a headache :D In-Reply-To: <8d9a42800603201454j1de86fd7ga73b9dff7d896ef3@mail.gmail.com> References: <8d9a42800603201454j1de86fd7ga73b9dff7d896ef3@mail.gmail.com> Message-ID: <29da5d150603201510r77a3beabhbfa93a185c8e3a3d@mail.gmail.com> I'm a little confused as to what you're doing here: $i = $day; $curday = $day + $i; if($curday == 7) { $i = 0; $curday = 6; } If the current day is Saturday, then the $day variable will hold 6 (I believe). You're then saying that $curday has a value of 12, (because you're adding $i, which has an initial value of 6), which shouldn't happen (I don't think at least), which in effect would bypass the check if $curday is 7. Hope that helps shed some light on why the code is acting weird. On 3/20/06, Joseph Crawford wrote: > > Hey guys, > > I have a database of vendors, each have different days and times they are > open from. > > now what i need to do is this > > check to see if the vendor is open at the current time, if not i need to > check the next day, then the next, etc.. > > I have some simple code that is not in working form, that is this > > > $time = ''; > $day = date('w'); > $days = 1; > > // getLeadTime() returns a time in minutes, > converting to seconds so we can add it to the timestamp. > $leadTime = 60 * $location->getLeadTime(); > > $i = $day; > while($i <= 6) { > $curday = $day + $i; > if($curday == 7) { > $i = 0; > $curday = 6; > } > // getOpenTime() returns a string such as > 10:00:00 or 23:30:00 > $timeStr = > $location->getOpenTime($curday); > // if $timStr is = 00:00:00 then it needs > to continue on to the next loop > if($timeStr == '00:00:00') { > $i++; > $days++; > continue; > } > } > // now we need to get the timestamp, this is > where the strtotime converts the string from getOpenTime to a timestamp and > we add the leadTime > $vendorOpenTime = > strtotime($location->getOpenTime($day + $days)) + $leadTime; > > Now the above code works fine if they are closed on Monday and not open > again until Thursday, the trouble lies in being closed Sat and Sun, it > doesnt flip over to Monday. it just says get it delivered today, even if > they are closed the current day. > > Anyone who can help me with this i would appreciate it, i wouldnt even > mind paying someone to help me nail this logic :D I have spent pretty much > about 5 hours on this and i think i just need another brain to pick at it :) > > > Thanks, > -- > Joseph Crawford Jr. > Zend Certified Engineer > Codebowl Solutions, Inc. > http://www.codebowl.com/ > 1-802-671-2021 > codebowl at gmail.com > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From codebowl at gmail.com Mon Mar 20 19:16:04 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Mon, 20 Mar 2006 19:16:04 -0500 Subject: [nycphp-talk] Faced with a headache :D In-Reply-To: <29da5d150603201510r77a3beabhbfa93a185c8e3a3d@mail.gmail.com> References: <8d9a42800603201454j1de86fd7ga73b9dff7d896ef3@mail.gmail.com> <29da5d150603201510r77a3beabhbfa93a185c8e3a3d@mail.gmail.com> Message-ID: <8d9a42800603201616j50aebd3sbe4212fc4faf16d4@mail.gmail.com> i told you it was broke logic lol. I spent hours on it so now it's just broken code ;( -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Mon Mar 20 23:10:10 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Mon, 20 Mar 2006 20:10:10 -0800 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <441F06D0.5040400@bitblit.net> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> Message-ID: <7760-94619@sneakemail.com> Ajai Khattri ajai-at-bitblit.net |nyphp dev/internal group use| wrote: >inforequest wrote: > > >>haha never execute a tactic without a defined objective... if it has >>side effects that will come back to bite you ;-) >>(in other words, don't rock the boat doh!) >> >>What are the "added benefits" ? >> >>- you look more like a Web2.0 app >>- you make it easier for people who use search engines to find PHP >>materials (instead of .php files) >>- you make management wonder if you really are using java for web >>development like they think you should >>- you are more "search engine friendly" by the 2004 definition >> >>Seriously, how about: >> >>- you establish the potential for long-lived URLs that survive a change >>in technology (weak excuse, not likely, but theoretically ok) >>- you are slightly more search engine friendly >>- your URLs are slightly more user friendly, more likely to get >>remembered, bookmarked, etc. >>- friendlier URLs are more likely to get backlinks, and deep backlinks >>are more desireable than root backlinks >>- it leaves more room for innovation down the road (ties into the first >>reason on this list...long-lived URLs) >> >> > >Noone wearing their sys admin hat today? > >OTOH, making your web server parse all files as PHP will likely increase >the load... > > hmm.. I didn't think he asked for reasons why *not* to do it, did he? As for increased load, theoretically yes. Ever test it? It depends on how many non-php files your web server is serving up, right? How about none? How about when you separate display from code? With templates? Which templating system? Oh, that's right.. PHP *is* a templating system. So then they are all .php files again?? It all depends on how you use it, right? -=john andrews http://www.seo-fun.com From OmerG at applicure.com Tue Mar 21 08:51:26 2006 From: OmerG at applicure.com (Omer Golan) Date: Tue, 21 Mar 2006 15:51:26 +0200 Subject: [nycphp-talk] Applicure - 10 AM (EST) online Presentation details In-Reply-To: Message-ID: <0IWH00B5BDAA20P0@i_mtaout2.012.net.il> Hello, Here is the online demo details: Title: dotDefender protection against Web Application Attacks Agenda: Live demo of web attacks and how they are stopped Date: Tuesday, 21 March, 2006, 10 AM EST Dial-in Number: 1-218-339-7800 (Minnesota) Participant Access Code: 9511741 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 17/03/2006 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cliff at pinestream.com Tue Mar 21 08:57:51 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Tue, 21 Mar 2006 08:57:51 -0500 Subject: [nycphp-talk] PEAR Mail versus phpmailer Message-ID: <001501c64cef$7272f8f0$0aa8a8c0@cliff> Has anyone evaluated PEAR Mail versus phpmailer or any other possible candidates? Cliff Hirsch -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken at secdat.com Tue Mar 21 09:10:17 2006 From: ken at secdat.com (Kenneth Downs) Date: Tue, 21 Mar 2006 09:10:17 -0500 Subject: [nycphp-talk] PEAR Mail versus phpmailer In-Reply-To: <001501c64cef$7272f8f0$0aa8a8c0@cliff> References: <001501c64cef$7272f8f0$0aa8a8c0@cliff> Message-ID: <44200949.6030506@secdat.com> Cliff Hirsch wrote: > Has anyone evaluated PEAR Mail versus phpmailer or any other possible > candidates? I've used PEAR only. My original options were a) roll-my-own, b) learn to love PEAR Mail or c) learn to love something else. Overall PEAR packages are stable and consistent and have a nice installation system, so putting the time into b) seemed worth it. I'm now using PEAR mail, mail_mime, mail_imapv2 and am happy with them all, they "just work". My only possible gripe is that all you can count on for docs is a class reference. This is great, but it would really be nirvana if PEAR standards required at least one comprehensive example and walk-through as part of the docs. > > Cliff Hirsch > >------------------------------------------------------------------------ > >_______________________________________________ >New York PHP Community Talk Mailing List >http://lists.nyphp.org/mailman/listinfo/talk >New York PHP Conference and Expo 2006 >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: 186 bytes Desc: not available URL: From cliff at pinestream.com Tue Mar 21 09:13:26 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Tue, 21 Mar 2006 09:13:26 -0500 Subject: [nycphp-talk] PEAR Mail versus phpmailer In-Reply-To: <44200949.6030506@secdat.com> Message-ID: <003101c64cf1$9f5f9ab0$0aa8a8c0@cliff> Thanks -- well said. Actually PEAR Mail is fairly well documented and there are a bunch of tutorials. Its some of the other PEAR packages that drive me crazy -- and drive me away -- due to the lack of documentation. -----Original Message----- Cliff Hirsch wrote: Has anyone evaluated PEAR Mail versus phpmailer or any other possible candidates? I've used PEAR only. My original options were a) roll-my-own, b) learn to love PEAR Mail or c) learn to love something else. Overall PEAR packages are stable and consistent and have a nice installation system, so putting the time into b) seemed worth it. I'm now using PEAR mail, mail_mime, mail_imapv2 and am happy with them all, they "just work". My only possible gripe is that all you can count on for docs is a class reference. This is great, but it would really be nirvana if PEAR standards required at least one comprehensive example and walk-through as part of the docs. -------------- next part -------------- An HTML attachment was scrubbed... URL: From noreply at nyphp.org Tue Mar 21 09:14:28 2006 From: noreply at nyphp.org (New York PHP) Date: Tue, 21 Mar 2006 09:14:28 -0500 Subject: [nycphp-talk] online@nyphp: Today at 10am, Applicure Online Presentation Message-ID: <005d01c64cf1$c4902c50$6d0aa8c0@MZ> Call-in Information, Web Attacks and How They Are Stopped By dotDefender http://www.nyphp.org/content/calendar/view_entry.php?id=90&date=20060321 Subject: dotDefender protection against Web Application Attacks Comments/Agenda: Live demo of web attacks and how they are stopped Date: Tuesday, March 21, 2006 Start Time: 10:00 AM Eastern Std Time End Time: 10:40 AM Eastern Std Time Dial-in Number: 1-218-339-7800 (Minnesota) Access Code: 9511741 Demo URL: http://80.68.80.182:5801/ (Pass: "demo123") --- Hans Zaunere / President / New York PHP www.nyphp.org / www.nyphp.com From dcech at phpwerx.net Tue Mar 21 09:30:05 2006 From: dcech at phpwerx.net (Dan Cech) Date: Tue, 21 Mar 2006 09:30:05 -0500 Subject: [nycphp-talk] PEAR Mail versus phpmailer In-Reply-To: <001501c64cef$7272f8f0$0aa8a8c0@cliff> References: <001501c64cef$7272f8f0$0aa8a8c0@cliff> Message-ID: <44200DED.7040108@phpwerx.net> Cliff Hirsch wrote: > Has anyone evaluated PEAR Mail versus phpmailer or any other possible > candidates? I have long been a fan of phpmailer, however at present I cannot recommend it due to bugs in both the 1.72 and 1.73 releases. It does appear that Brent and Patrice are working on these issues, and hopefully there will be a new version out soon. Dan From OmerG at applicure.com Tue Mar 21 09:44:33 2006 From: OmerG at applicure.com (Omer Golan) Date: Tue, 21 Mar 2006 16:44:33 +0200 Subject: [nycphp-talk] Applicure - 10 AM (EST) online Presentation details - UPDATE Message-ID: <0IWH007YDFQSSA60@i_mtaout4.012.net.il> The demo is very soon. I am sending the details again to be sure everyone gets it. For the picture, the vnc applet is at: HYPERLINK "http://80.68.80.182:5801/"http://80.68.80.182:5801/ Password: demo123 For the voice Dial-in Number: 1-218-339-7800 (Minnesota) Participant Access Code: 9511741 Title: dotDefender protection against Web Application Attacks Agenda: Live demo of web attacks and how they are stopped Date: Tuesday, 21 March, 2006, 10 AM EST Regards, Omer _________________________________________ Omer Golan VP Marketing & Business Development Applicure Technologies, Ltd 20 Galgaley Haplada St., Herzliya, Israel 46722 Tel: +972-9- 9579096 Ext. 101 Cell: +972-50-7115070 Fax: +972-9- 9579098 HYPERLINK "mailto:omerg at applicure.com"omerg at applicure.com Skype ID: omer.golan HYPERLINK "file:///C:\\Documents%20and%20Settings\\IBM\\Application%20Data\\Microsoft\ \Signatures\\www.applicure.com"www.applicure.com _________________________________________ -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.2.5/284 - Release Date: 17/03/2006 -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephen at musgrave.org Tue Mar 21 11:28:14 2006 From: stephen at musgrave.org (Stephen Musgrave) Date: Tue, 21 Mar 2006 11:28:14 -0500 Subject: [nycphp-talk] Subselect value in WHERE In-Reply-To: References: Message-ID: <028824BA-8B1D-4135-AEE5-077611A1B3C6@musgrave.org> The almighty list: I am struggling with including a field returned from the subselect in the WHERE clause of the parent SELECT. I keep on getting an error that the field is unknown: "Unknown column 'pt_prgm_term_overall_end_date' in 'where clause'" I have seen that this is a bug in previous versions of MySQL, but I am using 4.1.18 and it was to have been fixed by this version, 4.1.16 I believe. Here is the SQL below. I have bolded the field in question [for those not using Pine :-)]. I have tried putting the restriction in the subselect's WHERE clause, but that simply returns all rows with the pt_prgm_term_overall_end_date blank if not matching '2007-04-30' SELECT DISTINCT a.pt_prgm_id, a.user_id, b.pt_lname, b.pt_fname, (SELECT pt_prgm_term_start_date FROM carl_pt_prgm_term WHERE user_id = a.user_id AND pt_prgm_id = a.pt_prgm_id ORDER BY pt_prgm_term_start_date ASC LIMIT 1) AS pt_prgm_term_overall_start_date, (SELECT pt_prgm_term_end_date FROM carl_pt_prgm_term WHERE user_id = a.user_id AND pt_prgm_id = a.pt_prgm_id ORDER BY pt_prgm_term_end_date DESC LIMIT 1) AS pt_prgm_term_overall_end_date FROM (carl_pt_prgm AS a, carl_pt AS b) WHERE b.user_id = a.user_id AND a.prgm_id = 6 AND a.pt_prgm_status_id = 'A' AND pt_prgm_term_overall_end_date = '2007-04-30' -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.com Tue Mar 21 11:52:24 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Tue, 21 Mar 2006 11:52:24 -0500 Subject: [nycphp-talk] Subselect value in WHERE In-Reply-To: <028824BA-8B1D-4135-AEE5-077611A1B3C6@musgrave.org> References: <028824BA-8B1D-4135-AEE5-077611A1B3C6@musgrave.org> Message-ID: My guess ... It looks like you are either not included the actual table it's being called from in your FROM clause, if I read it right, you have: FROM (carl_pt_prgm AS a, carl_pt AS b) Try adding FROM (carl_pt_prgm AS a, carl_pt AS b, carl_pt_prgm_term AS c) And c.pt_prgm_term_overall_end_date See if that works ... I think your overall statement is missing thus why the column can't be found. - Jon On Mar 21, 2006, at 11:28 AM, Stephen Musgrave wrote: > The almighty list: > > I am struggling with including a field returned from the subselect > in the WHERE clause of the parent SELECT. I keep on getting an > error that the field is unknown: > > "Unknown column 'pt_prgm_term_overall_end_date' in 'where clause'" > > I have seen that this is a bug in previous versions of MySQL, but I > am using 4.1.18 and it was to have been fixed by this version, > 4.1.16 I believe. > > Here is the SQL below. I have bolded the field in question [for > those not using Pine :-)]. I have tried putting the restriction in > the subselect's WHERE clause, but that simply returns all rows with > the pt_prgm_term_overall_end_date blank if not matching '2007-04-30' > > SELECT DISTINCT a.pt_prgm_id, > a.user_id, > b.pt_lname, > b.pt_fname, > (SELECT pt_prgm_term_start_date FROM carl_pt_prgm_term > WHERE user_id = a.user_id AND pt_prgm_id = a.pt_prgm_id > ORDER BY pt_prgm_term_start_date ASC LIMIT 1) > AS pt_prgm_term_overall_start_date, > (SELECT pt_prgm_term_end_date FROM carl_pt_prgm_term > WHERE user_id = a.user_id AND pt_prgm_id = a.pt_prgm_id > ORDER BY pt_prgm_term_end_date DESC LIMIT 1) > AS pt_prgm_term_overall_end_date > FROM (carl_pt_prgm AS a, carl_pt AS b) > WHERE b.user_id = a.user_id > AND a.prgm_id = 6 > AND a.pt_prgm_status_id = 'A' > AND pt_prgm_term_overall_end_date = '2007-04-30' > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From mailinglists at caseysoftware.com Tue Mar 21 11:55:58 2006 From: mailinglists at caseysoftware.com (Keith Casey) Date: Tue, 21 Mar 2006 11:55:58 -0500 Subject: [nycphp-talk] Subselect value in WHERE In-Reply-To: References: <028824BA-8B1D-4135-AEE5-077611A1B3C6@musgrave.org> Message-ID: I *believe* that the "where" is applied first and therefore your pt_prgm_term_overall_end_date would not have any meaning when execution begins. This seems to confirm the same and suggests a strategy: http://www.blogger.com/comment.g?blogID=12997951&postID=113159789959160850 keith -- Keith Casey CEO, http://CaseySoftware.com From michael.southwell at nyphp.org Tue Mar 21 11:58:20 2006 From: michael.southwell at nyphp.org (Michael Southwell) Date: Tue, 21 Mar 2006 11:58:20 -0500 Subject: [nycphp-talk] Subselect value in WHERE In-Reply-To: <028824BA-8B1D-4135-AEE5-077611A1B3C6@musgrave.org> References: <028824BA-8B1D-4135-AEE5-077611A1B3C6@musgrave.org> Message-ID: <6.2.3.4.2.20060321115547.024e6b68@mail.optonline.net> An HTML attachment was scrubbed... URL: From jellicle at gmail.com Tue Mar 21 12:04:11 2006 From: jellicle at gmail.com (Michael Sims) Date: Tue, 21 Mar 2006 12:04:11 -0500 Subject: [nycphp-talk] Subselect value in WHERE In-Reply-To: <028824BA-8B1D-4135-AEE5-077611A1B3C6@musgrave.org> References: <028824BA-8B1D-4135-AEE5-077611A1B3C6@musgrave.org> Message-ID: <200603211204.12136.jellicle@gmail.com> On Tuesday 21 March 2006 11:28, Stephen Musgrave wrote: > The almighty list: > > I am struggling with including a field returned from the subselect in > the WHERE clause of the parent SELECT. I keep on getting an error > that the field is unknown: > > "Unknown column 'pt_prgm_term_overall_end_date' in 'where clause'" > > I have seen that this is a bug in previous versions of MySQL, but I > am using 4.1.18 and it was to have been fixed by this version, 4.1.16 > I believe. Can't do it. No aliases in WHERE statement. Put it in HAVING instead, and it will work. http://dev.mysql.com/doc/refman/4.1/en/problems-with-alias.html Think of it this way: when it does the WHERE, it's trying to figure out what rows should be included in the results - a first stab at the problem. It hasn't even looked at the SELECT part of the statement yet - once it figures out what rows should be included overall, then it'll take a look at the SELECT fields to decide which columns from those rows it needs. And THEN, only then, will it look at the HAVING section - a last stab at winnowing the result set. So: if you want to eliminate unwanted results early (to make queries quicker), put the condition early in the WHERE clause. If you want to eliminate unwanted results late (because you're doing something tricksy), put it in the HAVING clause. Michael Sims From rsd at electronink.com Tue Mar 21 13:38:01 2006 From: rsd at electronink.com (Russ Demarest) Date: Tue, 21 Mar 2006 13:38:01 -0500 Subject: [nycphp-talk] Pear DB in another class Message-ID: Is it possible to use Pear DB in a class that returns a database handle that I can then run queries with. I think it should look something like this == myDb.php == require_once 'DB.php'; class myDb extends DB { function myDb(){ $dsn = "mysqli://user:pass at localhost/db"; $db = DB::connect(); } } ===EOF=== I can do an include that generates a handle but thought there would be a way to write a class that could grab the config info and connect(). Thanks, Russ From dan at danhorning.com Tue Mar 21 13:43:55 2006 From: dan at danhorning.com (Dan Horning) Date: Tue, 21 Mar 2006 13:43:55 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <7760-94619@sneakemail.com> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> Message-ID: <4420496B.80404@danhorning.com> inforequest wrote: > Ajai Khattri ajai-at-bitblit.net |nyphp dev/internal group use| wrote: > > >> inforequest wrote: >> >> >> >>> haha never execute a tactic without a defined objective... if it has >>> side effects that will come back to bite you ;-) >>> (in other words, don't rock the boat doh!) >>> >>> What are the "added benefits" ? >>> >>> - you look more like a Web2.0 app >>> - you make it easier for people who use search engines to find PHP >>> materials (instead of .php files) >>> - you make management wonder if you really are using java for web >>> development like they think you should >>> - you are more "search engine friendly" by the 2004 definition >>> >>> Seriously, how about: >>> >>> - you establish the potential for long-lived URLs that survive a change >>> in technology (weak excuse, not likely, but theoretically ok) >>> - you are slightly more search engine friendly >>> - your URLs are slightly more user friendly, more likely to get >>> remembered, bookmarked, etc. >>> - friendlier URLs are more likely to get backlinks, and deep backlinks >>> are more desireable than root backlinks >>> - it leaves more room for innovation down the road (ties into the first >>> reason on this list...long-lived URLs) >>> >>> >>> >> Noone wearing their sys admin hat today? >> >> OTOH, making your web server parse all files as PHP will likely increase >> the load... >> >> >> > hmm.. I didn't think he asked for reasons why *not* to do it, did he? > > As for increased load, theoretically yes. Ever test it? It depends on > how many non-php files your web server is serving up, right? How about > none? How about when you separate display from code? With templates? > Which templating system? Oh, that's right.. PHP *is* a templating > system. So then they are all .php files again?? > > It all depends on how you use it, right? > > -=john andrews > http://www.seo-fun.com > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > the most logical reason not to do it is!!! Vulnerabilities, it's not a matter of making things faster, b/c it won't, I've tried, but in actuality you create excessive opportunities for security breaches, why on earth would you want to make your life harder. on that note, if you don't want people to see .php, why don't you setup everything to be mapped by a mod_rewrite system, makes more sense, but really, i still don't get why you'd even want to care about .php, it works, now if we're talking SEO, then this conversation will have to look at quite a few other things. but for general serving of pages, the .php or .phtml as it used to be worked to prevent your webserver from doing extra work and also to prevent uploaded files from being used as PHP scripts. -dan "the talker" horning -- Dan Horning - danhorning.com American Digital Services - americandigitalservices.com Where you are only limited by imagination. 1-866-493-4218 (direct) / 1-800-863-3854 (main number) From shiflett at php.net Tue Mar 21 13:55:34 2006 From: shiflett at php.net (Chris Shiflett) Date: Tue, 21 Mar 2006 13:55:34 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <4420496B.80404@danhorning.com> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> Message-ID: <44204C26.90300@php.net> Dan Horning wrote: > it's not a matter of making things faster, b/c it won't, I've > tried, but in actuality you create excessive opportunities for > security breaches, why on earth would you want to make your > life harder. Can you substantiate that claim? My web sites don't use file extensions, but I doubt you can convince me that this increases my security risk. I know little to nothing about SEO - my decision is based on my opinion that URLs are basically friendly APIs for the average person. Things like file extensions and underscores don't seem very friendly. Simple is beautiful. :-) Chris From rsd at electronink.com Tue Mar 21 13:57:46 2006 From: rsd at electronink.com (Russ Demarest) Date: Tue, 21 Mar 2006 13:57:46 -0500 Subject: [nycphp-talk] Pear DB in another class In-Reply-To: References: Message-ID: Forget it. A singleton works. Thanks anyway. On Mar 21, 2006, at 1:38 PM, Russ Demarest wrote: > Is it possible to use Pear DB in a class that returns a database > handle that I can then run queries with. > > I think it should look something like this > > == myDb.php == > > require_once 'DB.php'; > > class myDb extends DB { > > function myDb(){ > > $dsn = "mysqli://user:pass at localhost/db"; > $db = DB::connect(); > > } > } > > > ===EOF=== > > I can do an include that generates a handle but thought there would > be a way to write a class that could grab the config info and > connect(). > > Thanks, > Russ > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From 1j0lkq002 at sneakemail.com Tue Mar 21 14:11:29 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Tue, 21 Mar 2006 11:11:29 -0800 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <44204C26.90300@php.net> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> Message-ID: <29616-55760@sneakemail.com> Chris Shiflett shiflett-at-php.net |nyphp dev/internal group use| wrote: >Dan Horning wrote: > > >>it's not a matter of making things faster, b/c it won't, I've >>tried, but in actuality you create excessive opportunities for >>security breaches, why on earth would you want to make your >>life harder. >> >> > >Can you substantiate that claim? My web sites don't use file extensions, >but I doubt you can convince me that this increases my security risk. > >I know little to nothing about SEO - my decision is based on my opinion >that URLs are basically friendly APIs for the average person. Things >like file extensions and underscores don't seem very friendly. > >Simple is beautiful. :-) > >Chris > > I appreciate this discussion. It's good stuff. I'd like to see more of it. There are so many ways to avoid using file extensions... Maybe it's www.site.tld/nicename causes Apache to run /nicename/index.php or www.site.tld/nicename causes Apache to run /nicename/index.html (which is a PHP script, or maybe not) or www.site.tld/nicename is merely a referrer reference because PHP.ini runs a (PHP script) controller every time or www.site.tld/nicename causes Apache to run /nicename (a PHP script with no extension) or www.ste.tld/nicename causes Apache to run redirect to /nicename/controller.php via a rewrite rule Each has performance issues, security issues, etc. How can one generalize? Chris chooses to accommodate the user, and handles the security and performance issues. Isn't that how we all have to do it? Choose a strategy and cover the bases? -=john andrews http://www.seo-fun.com From RLandrigan at terexca.com Tue Mar 21 14:10:56 2006 From: RLandrigan at terexca.com (Robert Landrigan) Date: Tue, 21 Mar 2006 13:10:56 -0600 Subject: [nycphp-talk] Capture web page as image Message-ID: <8E012943FA29204DB40C8DC3446CEF3101F20F10@exchange.terexca.com> I'm trying to find an easy(or easy-ish) way to capture a web page as a .jpg server side, on a PHP 5/ Windows 2003 server. What do the gods o the list recommend? Robert Landrigan Web Developer, Terex Construction Americas rlandrigan at terexca.com 662.393.1274 -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at tmcode.com Tue Mar 21 14:55:36 2006 From: tim at tmcode.com (Tim McEwen) Date: Tue, 21 Mar 2006 11:55:36 -0800 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <29616-55760@sneakemail.com> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <29616-55760@sneakemail.com> Message-ID: For what its worth.... We spent some time agonizing over this issue. We were already spending time stripping out the apache server token, setting expose_php=off, etc to minimize the amount of information about our site we were exposing. Advertising the fact that we were using php by including the .php seemed to defeat all of these efforts. We thought about using rewrite, but found that it can make debugging a nightmare. We also investigated using a controller script that routed paths to the correct php code. While this optioned looked like the best for a variety of reason (error tracking, logging, etc) we decided against it because of the amount of rewriting we would have to do. In the end we decided to just drop the .php extension. If you are concerned about performance when serving static content then I would suggest serving content with a separate http server. In my case I use apache to serve up the php scripts and everything static is served with a lightweight http server like tux. The lightweight server can still run on the same machine, either by using a virtual ip or a different port number. As far as speed goes, the amount of time to call a script with or without the file extension is fairly small. In deciding whether to use file extensions or not we used ab to benchmark the two: Without .php extension: 22.46 requests per second, 44.53 ms per request With .php extension: 22.54 requests per second, 44.36 ms per request It was a small enough difference not to matter to us. That being said, other problems on your server such as slow harddrives are going to amplify that difference some. That being said, there are much more import areas to focus on if you need to make things faster. For example, optimizing the php/apache binary, moving our content to a ram disk and installing an opcode cache such as apc, the above benchmark jumped to 153 requests per second (6.53 ms per request). -Tim On Mar 21, 2006, at 11:11 AM, inforequest wrote: > Chris Shiflett shiflett-at-php.net |nyphp dev/internal group use| > wrote: > >> Dan Horning wrote: >> >> >>> it's not a matter of making things faster, b/c it won't, I've >>> tried, but in actuality you create excessive opportunities for >>> security breaches, why on earth would you want to make your >>> life harder. >>> >>> >> >> Can you substantiate that claim? My web sites don't use file >> extensions, >> but I doubt you can convince me that this increases my security risk. >> >> I know little to nothing about SEO - my decision is based on my >> opinion >> that URLs are basically friendly APIs for the average person. Things >> like file extensions and underscores don't seem very friendly. >> >> Simple is beautiful. :-) >> >> Chris >> >> > I appreciate this discussion. It's good stuff. I'd like to see more > of it. > > There are so many ways to avoid using file extensions... Maybe it's > > www.site.tld/nicename causes Apache to run /nicename/index.php > or > www.site.tld/nicename causes Apache to run /nicename/index.html > (which > is a PHP script, or maybe not) > or > www.site.tld/nicename is merely a referrer reference because PHP.ini > runs a (PHP script) controller every time > or > www.site.tld/nicename causes Apache to run /nicename (a PHP script > with > no extension) > or > www.ste.tld/nicename causes Apache to run redirect to > /nicename/controller.php via a rewrite rule > > Each has performance issues, security issues, etc. How can one > generalize? > > Chris chooses to accommodate the user, and handles the security and > performance issues. Isn't that how we all have to do it? Choose a > strategy and cover the bases? > > -=john andrews > http://www.seo-fun.com > > > > > > > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php From sumisudhir at yahoo.com Tue Mar 21 16:16:59 2006 From: sumisudhir at yahoo.com (jlesidt) Date: Tue, 21 Mar 2006 13:16:59 -0800 (PST) Subject: [nycphp-talk] passing variables between two phps iwithout opening a new window in the browser In-Reply-To: <8d9a42800603201616j50aebd3sbe4212fc4faf16d4@mail.gmail.com> Message-ID: <20060321211659.5807.qmail@web82210.mail.mud.yahoo.com> Hi, I have the file one.php (opened in a browser) with a link to the page two.php. This is basically a lookup php which retreives ID for my one.php. two.php has some checkboxes for ID. The checked value is being passed onto one.php. but this opens a new one.php instead of passing it to the already opened window of one.php. How can I prevent a new one.php being opened? Pleasseeeeeeeeee help me. Thanks, > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From kenneth at ylayali.net Tue Mar 21 16:26:35 2006 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Tue, 21 Mar 2006 16:26:35 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <44204C26.90300@php.net> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> Message-ID: <20060321212635.GA27742@ylayali.net> On 06-03-21 13:55 -0500, Chris Shiflett wrote: > Dan Horning wrote: > > it's not a matter of making things faster, b/c it won't, I've > > tried, but in actuality you create excessive opportunities for > > security breaches, why on earth would you want to make your > > life harder. > > Can you substantiate that claim? My web sites don't use file extensions, > but I doubt you can convince me that this increases my security risk. > well, I'm not sure what Dan was thinking, but my first reaction to "parse every file as php" was to think of an image containing the string ' References: <8E012943FA29204DB40C8DC3446CEF3101F20F10@exchange.terexca.com> Message-ID: <7.0.1.0.2.20060321163523.09ca3878@rbnsn.com> At 02:10 PM 3/21/2006, Robert Landrigan wrote: >content-class: urn:content-classes:message >Content-Type: multipart/alternative; > boundary="----_=_NextPart_001_01C64D1B.2E6A5CFA" > >I'm trying to find an easy(or easy-ish) way to capture a web page as >a .jpg server side, on a PHP 5/ Windows 2003 server. What do the >gods o the list recommend? This topic was just discussed on the phpfreaks.com web site in this thread. The last poster, posted: >I found it its a class in php > >http://www.phpclasses.org/browse/package/918.html I'm not sure if this is what you're looking for, but take a look. Ken From kenrbnsn at rbnsn.com Tue Mar 21 16:45:21 2006 From: kenrbnsn at rbnsn.com (Ken Robinson) Date: Tue, 21 Mar 2006 16:45:21 -0500 Subject: [nycphp-talk] passing variables between two phps iwithout opening a new window in the browser In-Reply-To: <20060321211659.5807.qmail@web82210.mail.mud.yahoo.com> References: <8d9a42800603201616j50aebd3sbe4212fc4faf16d4@mail.gmail.com> <20060321211659.5807.qmail@web82210.mail.mud.yahoo.com> Message-ID: <7.0.1.0.2.20060321164228.0a3748e8@rbnsn.com> At 04:16 PM 3/21/2006, jlesidt wrote: >Hi, > > I have the file one.php (opened in a browser) with >a link to the page two.php. This is basically a lookup >php which retreives ID for my one.php. two.php has >some checkboxes for ID. The checked value is being >passed onto one.php. but this opens a new one.php >instead of passing it to the already opened window of >one.php. How can I prevent a new one.php being opened? PHP doesn't know or care about browser windows. It is the browser that is interpreting the HTML that the PHP script sends as to what to do. What do you mean by a new window? Please post some code showing us how scripts one & two are linked and pass information. Ken From cliff at pinestream.com Tue Mar 21 16:48:15 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Tue, 21 Mar 2006 16:48:15 -0500 Subject: [nycphp-talk] GD imagettftext font problem Message-ID: <005301c64d31$28ce9000$0aa8a8c0@cliff> I am trying to build a graph and get the following error on my new Linux server: ERRNO: 2 TEXT: imagettftext() [function.imagettftext]: Could not find/open font This is the output of phpinfo: GD Support enabled GD Version bundled (2.0.28 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.1.9 T1Lib Support enabled GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled I assume my instal can't find the fonts. What path setting should I be changing. What does the font file look like so I can see if it's installed on the system? Cliff From 1j0lkq002 at sneakemail.com Tue Mar 21 16:48:45 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Tue, 21 Mar 2006 13:48:45 -0800 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <20060321212635.GA27742@ylayali.net> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> Message-ID: <31909-40014@sneakemail.com> Kenneth Dombrowski kenneth-at-ylayali.net |nyphp dev/internal group use| wrote: >On 06-03-21 13:55 -0500, Chris Shiflett wrote: > > >>Dan Horning wrote: >> >> >>>it's not a matter of making things faster, b/c it won't, I've >>>tried, but in actuality you create excessive opportunities for >>>security breaches, why on earth would you want to make your >>>life harder. >>> >>> >>Can you substantiate that claim? My web sites don't use file extensions, >>but I doubt you can convince me that this increases my security risk. >> >> >> > >well, I'm not sure what Dan was thinking, but my first reaction to >"parse every file as php" was to think of an image containing the string >'implications of accepting any content files from third parties anywhere. >The only way I know of to convince apache to do that is ForceType, which >could be safe if it was deployed carefully, sure, but I agree it would >introduce a risk. I also think it's a really ugly way to do it, whether >there's a security risk or not (and I'm pretty sure nobody said they >were doing it that way anyway), but that's a matter of opinion > > Thanks kenneth but can you elaborate a bit on this part? What is the ugly part... and what is unsafe about using ForceType? Thanks. -=john andrews http://www.seo-fun.com From sumisudhir at yahoo.com Tue Mar 21 16:50:22 2006 From: sumisudhir at yahoo.com (jlesidt) Date: Tue, 21 Mar 2006 13:50:22 -0800 (PST) Subject: [nycphp-talk] passing variables between two phps iwithout opening a new window in the browser In-Reply-To: <7.0.1.0.2.20060321164228.0a3748e8@rbnsn.com> Message-ID: <20060321215022.30442.qmail@web82212.mail.mud.yahoo.com> By new window, I mean it is not passing the values from two.php to the already opened (parent) one.php, but opening a new one.php with the selected values. --- Ken Robinson wrote: > At 04:16 PM 3/21/2006, jlesidt wrote: > >Hi, > > > > I have the file one.php (opened in a browser) > with > >a link to the page two.php. This is basically a > lookup > >php which retreives ID for my one.php. two.php has > >some checkboxes for ID. The checked value is being > >passed onto one.php. but this opens a new one.php > >instead of passing it to the already opened window > of > >one.php. How can I prevent a new one.php being > opened? > > PHP doesn't know or care about browser windows. It > is the browser > that is interpreting the HTML that the PHP script > sends as to what to do. > > What do you mean by a new window? > > Please post some code showing us how scripts one & > two are linked and > pass information. > > Ken > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From jeffmailings99 at verizon.net Tue Mar 21 16:53:23 2006 From: jeffmailings99 at verizon.net (Jeff Siegel) Date: Tue, 21 Mar 2006 16:53:23 -0500 Subject: [nycphp-talk] Word; TinyMCE; FF on Mac Message-ID: <0IWH00LNOZH3F022@vms046.mailsrvcs.net> There seems to be a problem when trying to copy/paste a Word document into TinyMCE that is running in a browser on a Mac. All of the formatting is lost. (Of course...this works without a hitch in Windows.) Anyone have a workaround for this problem? Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From rahmin at insite-out.com Tue Mar 21 16:55:17 2006 From: rahmin at insite-out.com (Rahmin Pavlovic) Date: Tue, 21 Mar 2006 16:55:17 -0500 Subject: [nycphp-talk] passing variables between two phps iwithout Message-ID: <200603212155.k2LLtHHg010847@webmail4.megamailservers.com> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From kenrbnsn at rbnsn.com Tue Mar 21 16:56:18 2006 From: kenrbnsn at rbnsn.com (Ken Robinson) Date: Tue, 21 Mar 2006 16:56:18 -0500 Subject: [nycphp-talk] passing variables between two phps iwithout opening a new window in the browser In-Reply-To: <20060321215022.30442.qmail@web82212.mail.mud.yahoo.com> References: <7.0.1.0.2.20060321164228.0a3748e8@rbnsn.com> <20060321215022.30442.qmail@web82212.mail.mud.yahoo.com> Message-ID: <7.0.1.0.2.20060321165257.0a425d28@rbnsn.com> At 04:50 PM 3/21/2006, jlesidt wrote: >By new window, I mean it is not passing the values >from two.php to the already opened (parent) one.php, >but opening a new one.php with the selected values. Since PHP runs on the server, each time the script is invoked it is a new process. There is no continuity between runs of the scripts unless you provide some via sessions or cookies or some other method of saying "I've been here before". By the time script two runs, the original script one is no longer running, so it can't be returned to. Ken From kenneth at ylayali.net Tue Mar 21 17:18:59 2006 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Tue, 21 Mar 2006 17:18:59 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <31909-40014@sneakemail.com> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> <31909-40014@sneakemail.com> Message-ID: <20060321221859.GB27742@ylayali.net> On 06-03-21 13:48 -0800, inforequest wrote: > Kenneth Dombrowski kenneth-at-ylayali.net |nyphp dev/internal group use| > wrote: > >well, I'm not sure what Dan was thinking, but my first reaction to > >"parse every file as php" was to think of an image containing the string > >' >implications of accepting any content files from third parties anywhere. > >The only way I know of to convince apache to do that is ForceType, which > >could be safe if it was deployed carefully, sure, but I agree it would > >introduce a risk. I also think it's a really ugly way to do it, whether > >there's a security risk or not (and I'm pretty sure nobody said they > >were doing it that way anyway), but that's a matter of opinion > > > Thanks kenneth but can you elaborate a bit on this part? What is the > ugly part... and what is unsafe about using ForceType? Thanks. > Well, the ugliness is my totally subjective response to the idea of ForceType in the first place http://httpd.apache.org/docs/2.0/mod/core.html#forcetype What I think the added risk would be, if you were parsing all files as php, all it takes is the chance that some binary file contained the string ' References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> <31909-40014@sneakemail.com> <20060321221859.GB27742@ylayali.net> Message-ID: <20060321222619.GC27742@ylayali.net> On 06-03-21 17:18 -0500, Kenneth Dombrowski wrote: > On 06-03-21 13:48 -0800, inforequest wrote: > > Kenneth Dombrowski kenneth-at-ylayali.net |nyphp dev/internal group use| > > wrote: > > >well, I'm not sure what Dan was thinking, but my first reaction to > > >"parse every file as php" was to think of an image containing the string > > >' > >implications of accepting any content files from third parties anywhere. > > >The only way I know of to convince apache to do that is ForceType, which > > >could be safe if it was deployed carefully, sure, but I agree it would > > >introduce a risk. I also think it's a really ugly way to do it, whether > > >there's a security risk or not (and I'm pretty sure nobody said they > > >were doing it that way anyway), but that's a matter of opinion > > > > > Thanks kenneth but can you elaborate a bit on this part? What is the > > ugly part... and what is unsafe about using ForceType? Thanks. > > > > Well, the ugliness is my totally subjective response to the idea of > ForceType in the first place > > http://httpd.apache.org/docs/2.0/mod/core.html#forcetype > Actually, now that I read the link I looked up for you, I see there is also DefaultType, which respects the other types apache knows about. That looks a lot better, but you still have to be careful that apache knows about everything found in your DocumentRoot. From jeff.knight at gmail.com Tue Mar 21 17:32:20 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Tue, 21 Mar 2006 16:32:20 -0600 Subject: [nycphp-talk] Word; TinyMCE; FF on Mac In-Reply-To: <0IWH00LNOZH3F022@vms046.mailsrvcs.net> References: <0IWH00LNOZH3F022@vms046.mailsrvcs.net> Message-ID: <2ca9ba910603211432i453b5140kfb28ea247424ca1d@mail.gmail.com> >From Word, open up preferences, & select the "General" category, then check "Include formatted text in Clipboard". If that doesn't work they are just plain lying to you! On 3/21/06, Jeff Siegel wrote: > > > > There seems to be a problem when trying to copy/paste a Word document into > TinyMCE that is running in a browser on a Mac. All of the formatting is > lost. (Of course...this works without a hitch in Windows.) > > Anyone have a workaround for this problem? > > Jeff > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > From jeff.knight at gmail.com Tue Mar 21 17:39:05 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Tue, 21 Mar 2006 16:39:05 -0600 Subject: [nycphp-talk] passing variables between two phps iwithout opening a new window in the browser In-Reply-To: <7.0.1.0.2.20060321165257.0a425d28@rbnsn.com> References: <7.0.1.0.2.20060321164228.0a3748e8@rbnsn.com> <20060321215022.30442.qmail@web82212.mail.mud.yahoo.com> <7.0.1.0.2.20060321165257.0a425d28@rbnsn.com> Message-ID: <2ca9ba910603211439v17f3d6b1vf16d5644e6e21e30@mail.gmail.com> Maintain state with sessions http://www.php.net/manual/en/ref.session.php or have two.php be a popup opened by one.php and use javascript's window.opener to alter the content of one.php, but that can be a real pain. From jeff.knight at gmail.com Tue Mar 21 17:47:45 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Tue, 21 Mar 2006 16:47:45 -0600 Subject: [nycphp-talk] GD imagettftext font problem In-Reply-To: <005301c64d31$28ce9000$0aa8a8c0@cliff> References: <005301c64d31$28ce9000$0aa8a8c0@cliff> Message-ID: <2ca9ba910603211447m7556a571v4d616ee831fbb473@mail.gmail.com> The 7th parameter (yes 7 of 8) to imagettftext() is 'The path to the TrueType font you wish to use', look for any files on your machine ending with the .ttf extension, those are the font files. Either supply the full path to the file you want to use, or make your life easier by copying that file into the same directory as the code. From tedd at sperling.com Tue Mar 21 17:49:31 2006 From: tedd at sperling.com (tedd) Date: Tue, 21 Mar 2006 17:49:31 -0500 Subject: [nycphp-talk] Word; TinyMCE; FF on Mac In-Reply-To: <0IWH00LNOZH3F022@vms046.mailsrvcs.net> References: <0IWH00LNOZH3F022@vms046.mailsrvcs.net> Message-ID: >There seems to be a problem when trying to copy/paste a Word >document into TinyMCE that is running in a browser on a Mac. All of >the formatting is lost. (Of course...this works without a hitch in >Windows.) Except for when it crashes and burns. tedd -- -------------------------------------------------------------------------------- http://sperling.com From shiflett at php.net Tue Mar 21 18:26:22 2006 From: shiflett at php.net (Chris Shiflett) Date: Tue, 21 Mar 2006 18:26:22 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <20060321212635.GA27742@ylayali.net> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> Message-ID: <44208B9E.1070703@php.net> Kenneth Dombrowski wrote: > I'm not sure what Dan was thinking, but my first reaction to > "parse every file as php" was... Now I understand, thanks. I see "no file extensions in URLs" and "parse every file as PHP" as two different things. Chris From kenneth at ylayali.net Tue Mar 21 18:45:01 2006 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Tue, 21 Mar 2006 18:45:01 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <44208B9E.1070703@php.net> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> <44208B9E.1070703@php.net> Message-ID: <20060321234501.GA30164@ylayali.net> On 06-03-21 18:26 -0500, Chris Shiflett wrote: > Kenneth Dombrowski wrote: > > I'm not sure what Dan was thinking, but my first reaction to > > "parse every file as php" was... > > Now I understand, thanks. I see "no file extensions in URLs" and "parse > every file as PHP" as two different things. > > Chris Sure, so do I. What was said upthread exactly was: >> OTOH, making your web server parse all files as PHP will likely increase >> the load... From tedd at sperling.com Tue Mar 21 18:48:23 2006 From: tedd at sperling.com (tedd) Date: Tue, 21 Mar 2006 18:48:23 -0500 Subject: [nycphp-talk] GD imagettftext font problem In-Reply-To: <005301c64d31$28ce9000$0aa8a8c0@cliff> References: <005301c64d31$28ce9000$0aa8a8c0@cliff> Message-ID: >I am trying to build a graph and get the following error on my new Linux >server: > >ERRNO: 2 >TEXT: imagettftext() [function.imagettftext]: Could not find/open font > >This is the output of phpinfo: >GD Support enabled >GD Version bundled (2.0.28 compatible) >FreeType Support enabled >FreeType Linkage with freetype >FreeType Version 2.1.9 >T1Lib Support enabled >GIF Read Support enabled >GIF Create Support enabled >JPG Support enabled >PNG Support enabled >WBMP Support enabled >XBM Support enabled > >I assume my instal can't find the fonts. What path setting should I be >changing. What does the font file look like so I can see if it's >installed on the system? > >Cliff Cliff: Try the following to test stuff: You can get arial.tiff (along with other fonts) at: http://www.webpagepublicity.com/free-fonts.html tedd -- -------------------------------------------------------------------------------- http://sperling.com From 1j0lkq002 at sneakemail.com Tue Mar 21 17:54:02 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Tue, 21 Mar 2006 14:54:02 -0800 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <20060321221859.GB27742@ylayali.net> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> <31909-40014@sneakemail.com> <20060321221859.GB27742@ylayali.net> Message-ID: <12311-90826@sneakemail.com> Kenneth Dombrowski kenneth-at-ylayali.net |nyphp dev/internal group use| wrote: >On 06-03-21 13:48 -0800, inforequest wrote: > > >>Kenneth Dombrowski kenneth-at-ylayali.net |nyphp dev/internal group use| >>wrote: >> >> >>>well, I'm not sure what Dan was thinking, but my first reaction to >>>"parse every file as php" was to think of an image containing the string >>>'>>implications of accepting any content files from third parties anywhere. >>>The only way I know of to convince apache to do that is ForceType, which >>>could be safe if it was deployed carefully, sure, but I agree it would >>>introduce a risk. I also think it's a really ugly way to do it, whether >>>there's a security risk or not (and I'm pretty sure nobody said they >>>were doing it that way anyway), but that's a matter of opinion >>> >>> >>> >>Thanks kenneth but can you elaborate a bit on this part? What is the >>ugly part... and what is unsafe about using ForceType? Thanks. >> >> >> > >Well, the ugliness is my totally subjective response to the idea of >ForceType in the first place > >http://httpd.apache.org/docs/2.0/mod/core.html#forcetype > >What I think the added risk would be, if you were parsing all files as >php, all it takes is the chance that some binary file contained the >string 'a very threatening error, but still an error. Taken further, if you >accept any content from third parties, there is the possibility that >they've altered the content to run whatever command they wanted as your >apache user, maybe by putting code in the id3 comment of an mp3 file, or >altering a .gif or .zip file with a hex editor ... right?? > >unless I'm way off... > > thanks for clarifying. Accepting user uploads is an application-specific situation and so needs to be handled regardless IMHO. Good to be aware that files might be parsed, just as they may be echoed. Personally I am fond of explicit declarations in most code, so I would not normally parse every file, but often parse all .html as php. I find that for published static websites Forcetype is faster than a PHP controller, and easy to administer. -=john andrews http://www.seo-fun.com From rolan at omnistep.com Tue Mar 21 19:01:37 2006 From: rolan at omnistep.com (Rolan Yang) Date: Tue, 21 Mar 2006 19:01:37 -0500 Subject: [nycphp-talk] passing variables between two phps iwithout opening a new window in the browser In-Reply-To: <20060321211659.5807.qmail@web82210.mail.mud.yahoo.com> References: <20060321211659.5807.qmail@web82210.mail.mud.yahoo.com> Message-ID: <442093E1.2080603@omnistep.com> javascript is the way to go, or do fancy css layers and javascript like the calendar select on www.travelocity.com To see how it's done, simply view source :) ~Rolan jlesidt wrote: > Hi, > > I have the file one.php (opened in a browser) with > a link to the page two.php. This is basically a lookup > php which retreives ID for my one.php. two.php has > some checkboxes for ID. The checked value is being > passed onto one.php. but this opens a new one.php > instead of passing it to the already opened window of > one.php. How can I prevent a new one.php being opened? > > > Pleasseeeeeeeeee help me. > > Thanks, > > From dwclifton at gmail.com Tue Mar 21 19:02:51 2006 From: dwclifton at gmail.com (Douglas Clifton) Date: Tue, 21 Mar 2006 19:02:51 -0500 Subject: [nycphp-talk] not including '.php' in URI Message-ID: <7d6cdcb0603211602j2635b515y7c789b99a31edd2f@mail.gmail.com> > ---------- Forwarded message ---------- > From: "inforequest" <1j0lkq002 at sneakemail.com> > To: talk at lists.nyphp.org > Date: Tue, 21 Mar 2006 11:11:29 -0800 > Subject: Re: [nycphp-talk] not including '.php' in URI > Chris Shiflett shiflett-at-php.net |nyphp dev/internal group use| wrote: > > >Dan Horning wrote: > > > > > >>it's not a matter of making things faster, b/c it won't, I've > >>tried, but in actuality you create excessive opportunities for > >>security breaches, why on earth would you want to make your > >>life harder. > >> > >> > > > >Can you substantiate that claim? My web sites don't use file extensions, > >but I doubt you can convince me that this increases my security risk. > > > >I know little to nothing about SEO - my decision is based on my opinion > >that URLs are basically friendly APIs for the average person. Things > >like file extensions and underscores don't seem very friendly. > > > >Simple is beautiful. :-) > > > >Chris > > > > > I appreciate this discussion. It's good stuff. I'd like to see more of it. > > There are so many ways to avoid using file extensions... Maybe it's > > www.site.tld/nicename causes Apache to run /nicename/index.php > or > www.site.tld/nicename causes Apache to run /nicename/index.html (which > is a PHP script, or maybe not) > or > www.site.tld/nicename is merely a referrer reference because PHP.ini > runs a (PHP script) controller every time > or > www.site.tld/nicename causes Apache to run /nicename (a PHP script with > no extension) > or > www.ste.tld/nicename causes Apache to run redirect to > /nicename/controller.php via a rewrite rule > > Each has performance issues, security issues, etc. How can one generalize? > > Chris chooses to accommodate the user, and handles the security and > performance issues. Isn't that how we all have to do it? Choose a > strategy and cover the bases? > > -=john andrews If you are lucky enough to have a dedicated server with root access and thus have control over the Apache configuration file, a technique that I use avoids use of .htaccess files, mod_rewrite, or blanket interpretation of all files as PHP. Simply create a Directory container for all the files you want to pass to PHP that will not have an extension: ForceType application/x-httpd-php now: mysite.com/folder/page1 (and so on) will all run under PHP. If you want to create an entire folder full of these, then omit the directive, but be careful about storing non-PHP files in the same place. -- Douglas Clifton dwclifton at gmail.com http://loadaveragezero.com/ http://loadaveragezero.com/app/s9y/ http://loadaveragezero.com/drx/rss/recent From jonbaer at jonbaer.com Tue Mar 21 19:18:16 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Tue, 21 Mar 2006 19:18:16 -0500 Subject: [nycphp-talk] Zend Certs (PHP5?) Message-ID: <214D18D0-C4E0-4C5C-823E-257071E8D320@jonbaer.com> Someone asked me the other day if the Zend certifications cover PHP5 specifically and I was not sure, I took a look @ the exam objectives but could not tell (no OO related topics), any ZCE's can tell? Thanks. - Jon From shiflett at php.net Tue Mar 21 19:20:09 2006 From: shiflett at php.net (Chris Shiflett) Date: Tue, 21 Mar 2006 19:20:09 -0500 Subject: [nycphp-talk] Zend Certs (PHP5?) In-Reply-To: <214D18D0-C4E0-4C5C-823E-257071E8D320@jonbaer.com> References: <214D18D0-C4E0-4C5C-823E-257071E8D320@jonbaer.com> Message-ID: <44209839.9080200@php.net> Jon Baer wrote: > Someone asked me the other day if the Zend certifications > cover PHP5 specifically and I was not sure, I took a look > @ the exam objectives but could not tell (no OO related > topics), any ZCE's can tell? The current exam covers PHP 4. A PHP 5 exam is currently being written and should be published this summer. Chris From stephen at musgrave.org Tue Mar 21 19:23:29 2006 From: stephen at musgrave.org (Stephen Musgrave) Date: Tue, 21 Mar 2006 19:23:29 -0500 Subject: [nycphp-talk] Subselect value in WHERE In-Reply-To: <200603211204.12136.jellicle@gmail.com> References: <028824BA-8B1D-4135-AEE5-077611A1B3C6@musgrave.org> <200603211204.12136.jellicle@gmail.com> Message-ID: <4DCC60EF-7FEF-4C95-8997-828CC6A1A2D8@musgrave.org> Thank you all for your suggestions... I'll digest and dive in... again... thanks!!! On Mar 21, 2006, at 12:04 PM, Michael Sims wrote: > On Tuesday 21 March 2006 11:28, Stephen Musgrave wrote: > >> The almighty list: >> >> I am struggling with including a field returned from the subselect in >> the WHERE clause of the parent SELECT. I keep on getting an error >> that the field is unknown: >> >> "Unknown column 'pt_prgm_term_overall_end_date' in 'where clause'" >> >> I have seen that this is a bug in previous versions of MySQL, but I >> am using 4.1.18 and it was to have been fixed by this version, 4.1.16 >> I believe. > > Can't do it. No aliases in WHERE statement. Put it in HAVING > instead, and > it will work. > > http://dev.mysql.com/doc/refman/4.1/en/problems-with-alias.html > > Think of it this way: when it does the WHERE, it's trying to figure > out > what rows should be included in the results - a first stab at the > problem. > It hasn't even looked at the SELECT part of the statement yet - > once it > figures out what rows should be included overall, then it'll take a > look > at the SELECT fields to decide which columns from those rows it needs. > And THEN, only then, will it look at the HAVING section - a last > stab at > winnowing the result set. > > So: if you want to eliminate unwanted results early (to make queries > quicker), put the condition early in the WHERE clause. If you want to > eliminate unwanted results late (because you're doing something > tricksy), > put it in the HAVING clause. > > > Michael Sims > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > From jeffmailings99 at verizon.net Tue Mar 21 19:47:00 2006 From: jeffmailings99 at verizon.net (Jeff Siegel) Date: Tue, 21 Mar 2006 19:47:00 -0500 Subject: [nycphp-talk] Word; TinyMCE; FF on Mac In-Reply-To: <2ca9ba910603211432i453b5140kfb28ea247424ca1d@mail.gmail.com> Message-ID: <0IWI00ECE7IG75C5@vms044.mailsrvcs.net> Jeff, Thanks for the tip. Jeff -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jeff Knight Sent: Tuesday, March 21, 2006 5:32 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Word; TinyMCE; FF on Mac >From Word, open up preferences, & select the "General" category, then check "Include formatted text in Clipboard". If that doesn't work they are just plain lying to you! From cliff at pinestream.com Tue Mar 21 21:10:14 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Tue, 21 Mar 2006 21:10:14 -0500 Subject: [nycphp-talk] GD imagettftext font problem In-Reply-To: Message-ID: <000001c64d55$c23f6010$0aa8a8c0@cliff> Thanks to all for the help. Here's a summary of what I did: 1. I installed FreeType: http://freetype.sourceforge.net/index2.html FreeType Jam did not work, but the standard Make did work. 2. I discovered that FreeType <> fonts. I thought that was the point! 3. I downloaded Arial.ttf as suggested by Tedd from the URL below. 4. I put the font in my html docroot for now -- simple, as suggested by Jeff. 5. I renamed Arial.ttf to arial.ttf to deal with the joy of case sensitivity. This test script from Tedd worked beautifully. You can get arial.tiff (along with other fonts) at: http://www.webpagepublicity.com/free-fonts.html From codebowl at gmail.com Wed Mar 22 07:20:16 2006 From: codebowl at gmail.com (Joseph Crawford) Date: Wed, 22 Mar 2006 07:20:16 -0500 Subject: [nycphp-talk] Zend Certs (PHP5?) In-Reply-To: <44209839.9080200@php.net> References: <214D18D0-C4E0-4C5C-823E-257071E8D320@jonbaer.com> <44209839.9080200@php.net> Message-ID: <8d9a42800603220420ib2ad9dajc5ef9b28b1aba484@mail.gmail.com> oh looks like i will be re-taking my cert when it does cover php 5 :D -- Joseph Crawford Jr. Zend Certified Engineer Codebowl Solutions, Inc. http://www.codebowl.com/ 1-802-671-2021 codebowl at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ajai at bitblit.net Wed Mar 22 11:12:26 2006 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 22 Mar 2006 11:12:26 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <29616-55760@sneakemail.com> Message-ID: <4421776A.2060903@bitblit.net> Tim McEwen wrote: > > As far as speed goes, the amount of time to call a script with or > without the file extension is fairly small. In deciding whether to > use file extensions or not we used ab to benchmark the two: > > Without .php extension: 22.46 requests per second, 44.53 ms per > request > With .php extension: 22.54 requests per second, 44.36 ms per request > > It was a small enough difference not to matter to us. Of course, on a shared web host, the performance hit would probably be much greater. From ajai at bitblit.net Wed Mar 22 11:17:23 2006 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 22 Mar 2006 11:17:23 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <44208B9E.1070703@php.net> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> <44208B9E.1070703@php.net> Message-ID: <44217893.3030905@bitblit.net> Chris Shiflett wrote: > > > Now I understand, thanks. I see "no file extensions in URLs" and "parse > every file as PHP" as two different things. Why? Under the traditional setup, Apache knows a file needs to be passed to mod_php because its has been told that they are denoted by a .php extension. If you take that away then you, in effect, are telling Apache to assume *all* files are PHP files... -------------- next part -------------- An HTML attachment was scrubbed... URL: From matt at jiffycomp.com Wed Mar 22 12:15:27 2006 From: matt at jiffycomp.com (Matt Morgan) Date: Wed, 22 Mar 2006 10:15:27 -0700 Subject: [nycphp-talk] logwatch "2 200 responses" issue Message-ID: <4421862F.7010409@jiffycomp.com> This is php-related in that lots of php-based web applications (more than one wiki, drupal, mambo & maybe joomla) share the issue. Although it may not really be a php problem. I've also seen it in htdig, the open source web indexing/searching tool. Has anybody seen it & dealt with it? Here's the issue. Logwatch, which I have installed on some CentOS 4.2 and Fedora Core 3 & 4 servers that I help out with, reports on many funny log entries. It's a great example of how Unix/Linux admin has gotten lots better since I started out. Among the entries it likes to keep me informed of is this http response code issue, generated by a chat module in drupal: ------- A total of 11934 unidentified 'other' records logged with response code(s) GET /chatbox/text?nickname=jtrant&limit=30&lastrefresh=1142823531 HTTP/1.1 with response code(s) 2 200 responses GET /chatbox/nicklist&forcerefresh=9317 HTTP/1.1 with response code(s) 2 200 responses -------- The problem is the "2 200 responses." Is that one page returning two success codes? I don't really know where it comes from. Anyway, I've seen this before, but when it goes on for 12000 messages, the logwatch reports are too big and too hard to read. According to some googling I've done, one may edit logwatch's http script and tell it to filter using some other method. But that sounds hard (an endless road of modifying the script every time a new app comes out?) and I have a feeling this is not really logwatch's fault--where does that funny http response code come from, and why is it getting more and more common? On this page https://www.redhat.com/archives/fedora-list/2004-December/msg05044.html someone attempts an explanation, but it doesn't sound realistic to me (unless I just don't understand what he means). Thanks, Matt From shiflett at php.net Wed Mar 22 12:31:01 2006 From: shiflett at php.net (Chris Shiflett) Date: Wed, 22 Mar 2006 12:31:01 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <44217893.3030905@bitblit.net> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> <44208B9E.1070703@php.net> <44217893.3030905@bitblit.net> Message-ID: <442189D5.6020307@php.net> Ajai Khattri wrote: > Under the traditional setup, Apache knows a file needs to be > passed to mod_php because its has been told that they are > denoted by a .php extension. If you take that away then you, > in effect, are telling Apache to assume *all* files are PHP > files. That's quite a leap. :-) I don't use file extensions in my URLs out of personal preference, and I certainly don't tell Apache to treat all files as PHP. John mentioned a few different ways to do this. You should read his email. Chris From chsnyder at gmail.com Wed Mar 22 13:08:04 2006 From: chsnyder at gmail.com (csnyder) Date: Wed, 22 Mar 2006 13:08:04 -0500 Subject: [nycphp-talk] logwatch "2 200 responses" issue In-Reply-To: <4421862F.7010409@jiffycomp.com> References: <4421862F.7010409@jiffycomp.com> Message-ID: On 3/22/06, Matt Morgan wrote: > This is php-related in that lots of php-based web applications (more > than one wiki, drupal, mambo & maybe joomla) share the issue. Although > it may not really be a php problem. I've also seen it in htdig, the open > source web indexing/searching tool. Has anybody seen it & dealt with it? > > Here's the issue. Logwatch, which I have installed on some CentOS 4.2 > and Fedora Core 3 & 4 servers that I help out with, reports on many > funny log entries. It's a great example of how Unix/Linux admin has > gotten lots better since I started out. Among the entries it likes to > keep me informed of is this http response code issue, generated by a > chat module in drupal: > > ------- > A total of 11934 unidentified 'other' records logged > with response code(s) > GET /chatbox/text?nickname=jtrant&limit=30&lastrefresh=1142823531 > HTTP/1.1 with response code(s) 2 200 responses > GET /chatbox/nicklist&forcerefresh=9317 HTTP/1.1 with response code(s) > 2 200 responses > -------- > > The problem is the "2 200 responses." Is that one page returning two > success codes? I don't really know where it comes from. Anyway, I've > seen this before, but when it goes on for 12000 messages, the logwatch > reports are too big and too hard to read. > > According to some googling I've done, one may edit logwatch's http > script and tell it to filter using some other method. But that sounds > hard (an endless road of modifying the script every time a new app comes > out?) and I have a feeling this is not really logwatch's fault--where > does that funny http response code come from, and why is it getting more > and more common? On this page > > https://www.redhat.com/archives/fedora-list/2004-December/msg05044.html > > someone attempts an explanation, but it doesn't sound realistic to me > (unless I just don't understand what he means). > > Thanks, > Matt In theory it means two HTTP 200 responses. They aren't "funny" -- the 200 response code means a successful request. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html In my opinion, the reporting of HTTP 200 responses is a bug -- why does any admin care about successful responses? I emailed the logwatch authors about this in January but got no response. I even tried hacking the script myself, but I wasn't successful. If you come up with a solution, please let me know. -- Chris Snyder http://chxo.com/ From ajai at bitblit.net Wed Mar 22 13:45:12 2006 From: ajai at bitblit.net (Ajai Khattri) Date: Wed, 22 Mar 2006 13:45:12 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <442189D5.6020307@php.net> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> <44208B9E.1070703@php.net> <44217893.3030905@bitblit.net> <442189D5.6020307@php.net> Message-ID: <44219B38.5000604@bitblit.net> Chris Shiflett wrote: > > John mentioned a few different ways to do this. You should read his email. > If *you* read it, he said he forced all .html files to be parsed as PHP. From shiflett at php.net Wed Mar 22 13:50:47 2006 From: shiflett at php.net (Chris Shiflett) Date: Wed, 22 Mar 2006 13:50:47 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <44219B38.5000604@bitblit.net> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> <44208B9E.1070703@php.net> <44217893.3030905@bitblit.net> <442189D5.6020307@php.net> <44219B38.5000604@bitblit.net> Message-ID: <44219C87.3070309@php.net> Ajai Khattri wrote: > If *you* read it, he said he forced all .html files to be > parsed as PHP. Here's a direct link: http://lists.nyphp.org/pipermail/talk/2006-March/018100.html This is my last attempt to be helpful. I don't have time to waste on pointless debates. Chris From adlermedrado at gmail.com Wed Mar 22 13:58:07 2006 From: adlermedrado at gmail.com (Adler Medrado) Date: Wed, 22 Mar 2006 15:58:07 -0300 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <442189D5.6020307@php.net> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> <44208B9E.1070703@php.net> <44217893.3030905@bitblit.net> <442189D5.6020307@php.net> Message-ID: Hello all. Chris, and how can i do this? (I don't use file extensions in my URLs out of personal preference, and I certainly don't tell Apache to treat all files as PHP.) Thanks. adler medrado 2006/3/22, Chris Shiflett : > > Ajai Khattri wrote: > > Under the traditional setup, Apache knows a file needs to be > > passed to mod_php because its has been told that they are > > denoted by a .php extension. If you take that away then you, > > in effect, are telling Apache to assume *all* files are PHP > > files. > > That's quite a leap. :-) > > I don't use file extensions in my URLs out of personal preference, and I > certainly don't tell Apache to treat all files as PHP. > > John mentioned a few different ways to do this. You should read his email. > > Chris > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Nesher Technologies http://www.neshertech.net http://adler.neshertech.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenneth at ylayali.net Wed Mar 22 14:32:15 2006 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Wed, 22 Mar 2006 14:32:15 -0500 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> <44208B9E.1070703@php.net> <44217893.3030905@bitblit.net> <442189D5.6020307@php.net> Message-ID: <20060322193215.GA16489@ylayali.net> for Ajai & Adler, mod_rewrite is another way. here's more of my example from yesterday (from an .htaccess file) note RewriteLog cannot be set from .htaccess files, so you might have to develop your rules locally, on a server you control, and only upload them to your hosted account after they work. # ====================================================================== # RewriteRules to support old-style and friendly URLs # ====================================================================== # *** For debugging set RewriteLog in httpd.conf *** # RewriteEngine On # # F I N A L R E Q U E S T S # # these are requests for the actual files on disk; stop processing. # RewriteRule ^catalog.php$ - [NC,L] RewriteRule ^account.php$ - [NC,L] RewriteRule ^index.php - [NC,L] RewriteRule ^search.php - [NC,L] # # O L D U R L S # # add support for URLs from old version of site, to avoid breaking # bookmarks/links/caches. The redirects will indicate to the user that # the correct URL has changed (due to [R]) # # index.php is no longer the artist search page RewriteRule ^index.php?selection=ARTS catalog/artists [NC,R,L] RewriteRule ^index.php?selection=(.*) catalog/artists/$1 [NC,R,L] # former by-name searches RewriteRule ^index.php?whomlab=(.*) catalog/label/$1 [NC,R,L] RewriteRule ^index.php?whomart=(.*) catalog/artist/$1 [NC,R,L] # # F R I E N D L Y U R L S # # (note we are intentionally not using the [R] flag here) # RewriteRule ^account$ account.php [NC,L] RewriteRule ^account/edit$ account.php?action=edit [NC,L] RewriteRule ^catalog/recent$ catalog.php?filter=recent [NC,L] RewriteRule ^catalog/artists$ catalog.php?list=artists [NC,L] # catalog/artist/dead+c -> catalog.php?filter=artist&name=dead+c RewriteRule ^catalog/artist/(.*)$ catalog.php?filter=artist&name=$1 [NC,L] RewriteRule ^search$ search.php [NC,L] # # support a few common mistakes (_do_ use the [R] flag here): # RewriteRule ^catalog/search$ search.php [NC,L,R] From adlermedrado at gmail.com Wed Mar 22 15:06:03 2006 From: adlermedrado at gmail.com (Adler Medrado) Date: Wed, 22 Mar 2006 17:06:03 -0300 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <20060322193215.GA16489@ylayali.net> References: <10041-48944@sneakemail.com> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> <44208B9E.1070703@php.net> <44217893.3030905@bitblit.net> <442189D5.6020307@php.net> <20060322193215.GA16489@ylayali.net> Message-ID: Hello Kenneth. Thank you !! adler medrado 2006/3/22, Kenneth Dombrowski : > > > for Ajai & Adler, > > mod_rewrite is another way. here's more of my example from yesterday > (from an .htaccess file) > > note RewriteLog cannot be set from .htaccess files, so you might have to > develop your rules locally, on a server you control, and only upload > them to your hosted account after they work. > > # ====================================================================== > # RewriteRules to support old-style and friendly URLs > # ====================================================================== > # *** For debugging set RewriteLog in httpd.conf *** > # > RewriteEngine On > # > # F I N A L R E Q U E S T S > # > # these are requests for the actual files on disk; stop processing. > # > RewriteRule ^catalog.php$ - [NC,L] > RewriteRule ^account.php$ - [NC,L] > RewriteRule ^index.php - [NC,L] > RewriteRule ^search.php - [NC,L] > # > # O L D U R L S > # > # add support for URLs from old version of site, to avoid breaking > # bookmarks/links/caches. The redirects will indicate to the user that > # the correct URL has changed (due to [R]) > # > # index.php is no longer the artist search page > RewriteRule ^index.php?selection=ARTS catalog/artists [NC,R,L] > RewriteRule ^index.php?selection=(.*) catalog/artists/$1 [NC,R,L] > # former by-name searches > RewriteRule ^index.php?whomlab=(.*) catalog/label/$1 [NC,R,L] > RewriteRule ^index.php?whomart=(.*) catalog/artist/$1 [NC,R,L] > # > # F R I E N D L Y U R L S > # > # (note we are intentionally not using the [R] flag here) > # > RewriteRule ^account$ account.php [NC,L] > RewriteRule ^account/edit$ account.php?action=edit [NC,L] > RewriteRule ^catalog/recent$ catalog.php?filter=recent [NC,L] > RewriteRule ^catalog/artists$ catalog.php?list=artists [NC,L] > # catalog/artist/dead+c -> catalog.php?filter=artist&name=dead+c > RewriteRule ^catalog/artist/(.*)$ catalog.php?filter=artist&name=$1 > [NC,L] > RewriteRule ^search$ search.php [NC,L] > # > # support a few common mistakes (_do_ use the [R] flag here): > # > RewriteRule ^catalog/search$ search.php [NC,L,R] > > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Nesher Technologies http://www.neshertech.net http://adler.neshertech.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.com Wed Mar 22 15:13:07 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Wed, 22 Mar 2006 15:13:07 -0500 Subject: [nycphp-talk] Zend FW + Smarty Message-ID: <50343563-FCC0-4E5F-895F-5E32C48C1073@jonbaer.com> Is this bad? http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine Things Im really puzzled by are why (even by choice) the template engine is just not bundled to begin with ... wouldn't it be a benefit? Seems like repeating work if you ask me ... any thoughts? - Jon From pmjones88 at gmail.com Wed Mar 22 15:21:48 2006 From: pmjones88 at gmail.com (Paul M Jones) Date: Wed, 22 Mar 2006 14:21:48 -0600 Subject: [nycphp-talk] Zend FW + Smarty In-Reply-To: <50343563-FCC0-4E5F-895F-5E32C48C1073@jonbaer.com> References: <50343563-FCC0-4E5F-895F-5E32C48C1073@jonbaer.com> Message-ID: On Mar 22, 2006, at 2:13 PM, Jon Baer wrote: > Is this bad? > > http://kpumuk.info/php/zend-framework-using-smarty-as-template-engine > > Things Im really puzzled by are why (even by choice) the template > engine is just not bundled to begin with ... wouldn't it be a benefit? > > Seems like repeating work if you ask me ... any thoughts? I'm going to be lazy, and re-post (in entirety) my response to a similar question on the Zend Framework list. Hope this helps. :-) ---- Subject: Re: [fw-general] Template system, form handling and time schedule Date: March 19, 2006 11:09:51 AM CST Cc: fw-general at lists.zend.com On Mar 19, 2006, at 10:25 AM, Ralf Eggert wrote: > The possibility to use PHP in the templates is good, very good. But I > still think it might make sense to offer other template solutions. There are literally dozens of template solutions in userland; each of them meets specific needs and desires, and none of them is really compatible with the others from the controller's point of view. The internal debates at Zend on what template system to use were never resolved successfully; there are those at Zend who *love* PHPLIB templates as the "one true way". There are others who think Smarty is the end-all be-all of templates. Then there are the PEAR template categories: Flexy, IT, etc et al ad nauseum. So which of these techniques should Zend adopt as the blessed system? The answer is: none. Zend picked the simplest thing that could possibly work with all of the PHP template systems in userland: PHP itself. Thus, Zend_View exists not as a template system, but as a standard way for the business logic to hand over control to presentation logic. Within the presentation logic encapsulated by Zend_View, you are free to do as you wish. As you say, some developer/designer teams need an extra layer of intermediation or simplified markup. In these cases, your Zend_View scripts should activate the template engine of your choice, manipulate it as you wish, and then have the engine generate the output. To illustrate, here are two flavors of a view script, one using plain PHP, and the other using PHPLIB templates. http://framework.zend.com/manual/en/zend.view.scripts.html http://framework.zend.com/manual/en/ zend.view.scripts.html#zend.view.scripts.templates Note that the controller doesn't need to know anything about the view in these cases; it just gives the view its variables, and then the view script takes care of everything else. This is what Zend means when they say that Zend_View is template-system agnostic; the system works for Smarty, PHPLIB, and everything else out there. -- Paul M. Jones Solar: Simple Object Library and Application Repository for PHP5. Savant: The simple, elegant, and powerful solution for templates in PHP. From 1j0lkq002 at sneakemail.com Wed Mar 22 14:59:43 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 22 Mar 2006 11:59:43 -0800 Subject: [nycphp-talk] not including '.php' in URI In-Reply-To: <20060322193215.GA16489@ylayali.net> References: <10041-48944@sneakemail.com> <441F06D0.5040400@bitblit.net> <7760-94619@sneakemail.com> <4420496B.80404@danhorning.com> <44204C26.90300@php.net> <20060321212635.GA27742@ylayali.net> <44208B9E.1070703@php.net> <44217893.3030905@bitblit.net> <442189D5.6020307@php.net> <20060322193215.GA16489@ylayali.net> Message-ID: <30815-38494@sneakemail.com> Kenneth Dombrowski kenneth-at-ylayali.net |nyphp dev/internal group use| wrote: >for Ajai & Adler, > >mod_rewrite is another way. here's more of my example from yesterday >(from an .htaccess file) > >note RewriteLog cannot be set from .htaccess files, so you might have to >develop your rules locally, on a server you control, and only upload >them to your hosted account after they work. > ># ====================================================================== ># RewriteRules to support old-style and friendly URLs ># ====================================================================== ># *** For debugging set RewriteLog in httpd.conf *** ># >RewriteEngine On ># ># F I N A L R E Q U E S T S ># ># these are requests for the actual files on disk; stop processing. ># >RewriteRule ^catalog.php$ - [NC,L] >RewriteRule ^account.php$ - [NC,L] >RewriteRule ^index.php - [NC,L] >RewriteRule ^search.php - [NC,L] ># ># O L D U R L S ># ># add support for URLs from old version of site, to avoid breaking ># bookmarks/links/caches. The redirects will indicate to the user that ># the correct URL has changed (due to [R]) ># ># index.php is no longer the artist search page >RewriteRule ^index.php?selection=ARTS catalog/artists [NC,R,L] >RewriteRule ^index.php?selection=(.*) catalog/artists/$1 [NC,R,L] ># former by-name searches >RewriteRule ^index.php?whomlab=(.*) catalog/label/$1 [NC,R,L] >RewriteRule ^index.php?whomart=(.*) catalog/artist/$1 [NC,R,L] ># ># F R I E N D L Y U R L S ># ># (note we are intentionally not using the [R] flag here) ># >RewriteRule ^account$ account.php [NC,L] >RewriteRule ^account/edit$ account.php?action=edit [NC,L] >RewriteRule ^catalog/recent$ catalog.php?filter=recent [NC,L] >RewriteRule ^catalog/artists$ catalog.php?list=artists [NC,L] ># catalog/artist/dead+c -> catalog.php?filter=artist&name=dead+c >RewriteRule ^catalog/artist/(.*)$ catalog.php?filter=artist&name=$1 [NC,L] >RewriteRule ^search$ search.php [NC,L] ># ># support a few common mistakes (_do_ use the [R] flag here): ># >RewriteRule ^catalog/search$ search.php [NC,L,R] > > Concrete examples are always helpful. Thanks Ken for the code. On the other hand, you really need to "see" the part in Ken's code where he states the specific objective of his rewrite rule sets. One section says "final requests" and it stops the filtering...those are allowed through as-is. This section comes first. See the beginnings of a maintenance problem with this approach? One section says "old URLs" -- the objective is to rewrite incoming obsolete URLs to their proper content. GIVEN THAT SPECIFIC OBJECTIVE, the rulesets are created and tested. Should they send 301's or 302's? How long will they exists? Will they ever expire? If so, when were they added? One section says "friendly URLs"... the goal is to make them "memorable" or "spider-friendly" or whatever (I am guessing). See how they re-write to a script with a parameter set? Se ethe maintenance nightmare developing here? As I recall ken commented earlier about how high maintenance this appraoch can be. It is not only application specific, but *platform* specific. PHP coder has to play Apache admin, and the conf has to be kept updated with the code. If you want to see a modern approach to this look at WordPress2. The rewrite system grew so complex and is autogenerated (regenerated) and cannot really be hand edited or "enhanced" without first earning a Master's degree in WordPress Rewriting. -=john andrews http://www.seo-fun.com From matt at jiffycomp.com Wed Mar 22 17:24:05 2006 From: matt at jiffycomp.com (Matt Morgan) Date: Wed, 22 Mar 2006 15:24:05 -0700 Subject: [nycphp-talk] logwatch "2 200 responses" issue In-Reply-To: References: <4421862F.7010409@jiffycomp.com> Message-ID: <4421CE85.4080500@jiffycomp.com> csnyder wrote: >On 3/22/06, Matt Morgan wrote: > > >>This is php-related in that lots of php-based web applications (more >>than one wiki, drupal, mambo & maybe joomla) share the issue. Although >>it may not really be a php problem. I've also seen it in htdig, the open >>source web indexing/searching tool. Has anybody seen it & dealt with it? >> >>Here's the issue. Logwatch, which I have installed on some CentOS 4.2 >>and Fedora Core 3 & 4 servers that I help out with, reports on many >>funny log entries. It's a great example of how Unix/Linux admin has >>gotten lots better since I started out. Among the entries it likes to >>keep me informed of is this http response code issue, generated by a >>chat module in drupal: >> >>------- >>A total of 11934 unidentified 'other' records logged >> with response code(s) >> GET /chatbox/text?nickname=jtrant&limit=30&lastrefresh=1142823531 >>HTTP/1.1 with response code(s) 2 200 responses >> GET /chatbox/nicklist&forcerefresh=9317 HTTP/1.1 with response code(s) >>2 200 responses >>-------- >> >>The problem is the "2 200 responses." Is that one page returning two >>success codes? I don't really know where it comes from. Anyway, I've >>seen this before, but when it goes on for 12000 messages, the logwatch >>reports are too big and too hard to read. >> >>According to some googling I've done, one may edit logwatch's http >>script and tell it to filter using some other method. But that sounds >>hard (an endless road of modifying the script every time a new app comes >>out?) and I have a feeling this is not really logwatch's fault--where >>does that funny http response code come from, and why is it getting more >>and more common? On this page >> >>https://www.redhat.com/archives/fedora-list/2004-December/msg05044.html >> >>someone attempts an explanation, but it doesn't sound realistic to me >>(unless I just don't understand what he means). >> >>Thanks, >>Matt >> >> > >In theory it means two HTTP 200 responses. They aren't "funny" -- the >200 response code means a successful request. >http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html > > Sure, but two or more responses for one request is funny. (If that's what is really happening here--I don't really understand it.) >In my opinion, the reporting of HTTP 200 responses is a bug -- why >does any admin care about successful responses? I emailed the logwatch >authors about this in January but got no response. I even tried >hacking the script myself, but I wasn't successful. > > So I suppose I shouldn't have much hope that he'll write me back either. But it's heartening to know I'm not the only one who cares! >If you come up with a solution, please let me know. > > Someone on another list suggested this is in the /path/to/logwatch/conf/services/http.conf: *Remove = "text to match in lines to remove before processing" But I can't find any documentation of that, in either the man page or the docs on logwatch.org. So I tried it, but I think it's equally as likely that it will break logwatch as that it will work. I'll know by tomorrow & will post to let you know. Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenneth at ylayali.net Wed Mar 22 20:02:46 2006 From: kenneth at ylayali.net (Kenneth Dombrowski) Date: Wed, 22 Mar 2006 20:02:46 -0500 Subject: [nycphp-talk] Recommended PHP reading list In-Reply-To: <6.2.5.6.0.20060317230803.03adbb30@2-bit-toys.com> References: <004101c64922$defcc120$0aa8a8c0@cliff> <001e01c64925$6be623e0$68e4a144@Rubicon> <6.2.5.6.0.20060317230803.03adbb30@2-bit-toys.com> Message-ID: <20060323010246.GA21463@ylayali.net> how about opinions on Sweat's PHP|Architect's Guide to PHP Design Patterns? I am primarily interested in the unit testing aspect of the book actually, and think reading about that in the context of various patterns is an excellent idea. From preinheimer at gmail.com Thu Mar 23 21:50:42 2006 From: preinheimer at gmail.com (Paul Reinheimer) Date: Thu, 23 Mar 2006 21:50:42 -0500 Subject: [nycphp-talk] Zend Certs (PHP5?) In-Reply-To: <8d9a42800603220420ib2ad9dajc5ef9b28b1aba484@mail.gmail.com> References: <214D18D0-C4E0-4C5C-823E-257071E8D320@jonbaer.com> <44209839.9080200@php.net> <8d9a42800603220420ib2ad9dajc5ef9b28b1aba484@mail.gmail.com> Message-ID: <6ec19ec70603231850n27de8ba5t632fc3c4faafe63d@mail.gmail.com> Really? I got the cert the summer it started, but to be honest they're going to have a hard sell to convince me to re-write the exam. paul On 3/22/06, Joseph Crawford wrote: > oh looks like i will be re-taking my cert when it does cover php 5 :D > > -- > Joseph Crawford Jr. > Zend Certified Engineer > Codebowl Solutions, Inc. > http://www.codebowl.com/ > 1-802-671-2021 > codebowl at gmail.com > > -- Paul Reinheimer Zend Certified Engineer From yournway at gmail.com Fri Mar 24 05:25:46 2006 From: yournway at gmail.com (Alberto dos Santos) Date: Fri, 24 Mar 2006 10:25:46 +0000 Subject: [nycphp-talk] Javascript trigger Message-ID: Hi, I need an example of javascript triggering an MySQL query through PHP. What for? It will be a cascading javascript menu where option 2 is retrieved from the database according to the first selection and so on. In all it will be a 4 level menu. Any pointers/hints/examples would come in handy. TIA -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From adlermedrado at gmail.com Fri Mar 24 06:51:59 2006 From: adlermedrado at gmail.com (Adler Medrado) Date: Fri, 24 Mar 2006 08:51:59 -0300 Subject: [nycphp-talk] Zend Certs (PHP5?) In-Reply-To: <6ec19ec70603231850n27de8ba5t632fc3c4faafe63d@mail.gmail.com> References: <214D18D0-C4E0-4C5C-823E-257071E8D320@jonbaer.com> <44209839.9080200@php.net> <8d9a42800603220420ib2ad9dajc5ef9b28b1aba484@mail.gmail.com> <6ec19ec70603231850n27de8ba5t632fc3c4faafe63d@mail.gmail.com> Message-ID: Why Paul ? On 3/23/06, Paul Reinheimer wrote: > > Really? > > I got the cert the summer it started, but to be honest they're going to > have > a hard sell to convince me to re-write the exam. > > > paul > > On 3/22/06, Joseph Crawford wrote: > > oh looks like i will be re-taking my cert when it does cover php 5 :D > > > > -- > > Joseph Crawford Jr. > > Zend Certified Engineer > > Codebowl Solutions, Inc. > > http://www.codebowl.com/ > > 1-802-671-2021 > > codebowl at gmail.com > > > > > > > -- > Paul Reinheimer > Zend Certified Engineer > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Nesher Technologies http://www.neshertech.net http://adler.neshertech.net -------------- next part -------------- An HTML attachment was scrubbed... URL: From ldgphp at ldgmedia.com Fri Mar 24 07:17:27 2006 From: ldgphp at ldgmedia.com (Lars Gelfan) Date: Fri, 24 Mar 2006 07:17:27 -0500 Subject: [nycphp-talk] Javascript trigger In-Reply-To: Message-ID: It really depends on the complexity and size of the dataset - if you can pre-fetch the entire range of options then you could store the values in javascript arrays and/or a XML object, in either case using PHP as the conduit to the database and to create the XML or javascript data. If you really need to do a database query for each menu level, you'll need to use javascript to get the data via a XMLHTTP request or similar method and again use PHP to do the database call and data formatting on the fly. And while you can use javascript to do all this without reloading the page, you will almost certainly have latency issues trying to keep up with mouseover interactions -- if that is how you intend the menu to work. The more you can do asynchronously, the better (at least in terms of user experience). -lars On 3/24/06 5:25 AM, "Alberto dos Santos" wrote: > Hi, > I need an example of javascript triggering an MySQL query through PHP. > What for? > It will be a cascading javascript menu where option 2 is retrieved from the > database according to the first selection and so on. > In all it will be a 4 level menu. > Any pointers/hints/examples would come in handy. > > TIA -- L A R S G E L F A N ..................... lars at ldgmedia.com From list at harveyk.com Fri Mar 24 07:46:28 2006 From: list at harveyk.com (harvey) Date: Fri, 24 Mar 2006 07:46:28 -0500 Subject: [nycphp-talk] Javascript trigger In-Reply-To: References: Message-ID: <7.0.1.0.2.20060324073252.072445f8@harveyk.com> Here's an off-the-shelf product that does what you want: http://www.sothink.com/product/dhtmlmenu/store/phpdb/index.php I use it for site menus, but haven't yet tried the database features. At 05:25 AM 3/24/2006, Alberto dos Santos wrote: >Hi, >I need an example of javascript triggering an MySQL query through PHP. >What for? >It will be a cascading javascript menu where >option 2 is retrieved from the database >according to the first selection and so on. >In all it will be a 4 level menu. >Any pointers/hints/examples would come in handy. > >TIA > >-- >Alberto dos Santos >Consultor em TI >IT Consultant > >http://www.yournway.com >A internet ? sua maneira. >The Internet your own way. >_______________________________________________ >New York PHP Community Talk Mailing List >http://lists.nyphp.org/mailman/listinfo/talk >New York PHP Conference and Expo 2006 >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 ps at pswebcode.com Fri Mar 24 16:17:15 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Fri, 24 Mar 2006 16:17:15 -0500 Subject: [nycphp-talk] Javascript trigger In-Reply-To: Message-ID: <001601c64f88$534f2480$68e4a144@Rubicon> If you look at this particular tabbed menu interface project within this AJAX site: http://www.crackajax.net/tabs.php ..you can get a real fast look at using AJAX (where any onmouseover or onclick event, etc. can trigger a JavaScript call to a PHP script that taps the database and returns the info to the AJAX interface back to the HTML page) without a page reload. Smooth. I think it might very nearly do exactly what you want. Plus, this particular AJAX formulation has the smallest JavaScript scripting footprint I have seen. Warmest regards, Peter Sawczynec, Technology Director PSWebcode _Design & Interface _Ecommerce _Database Management ps at pswebcode.com 718.796.1951 www.pswebcode.com -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Alberto dos Santos Sent: Friday, March 24, 2006 5:26 AM To: NYPHP Talk Subject: [nycphp-talk] Javascript trigger Hi, I need an example of javascript triggering an MySQL query through PHP. What for? It will be a cascading javascript menu where option 2 is retrieved from the database according to the first selection and so on. In all it will be a 4 level menu. Any pointers/hints/examples would come in handy. TIA -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeffmailings99 at verizon.net Fri Mar 24 16:24:15 2006 From: jeffmailings99 at verizon.net (Jeff Siegel) Date: Fri, 24 Mar 2006 16:24:15 -0500 Subject: [nycphp-talk] Word; TinyMCE; FF on Mac In-Reply-To: <2ca9ba910603211432i453b5140kfb28ea247424ca1d@mail.gmail.com> Message-ID: <0IWN003PJI4KGJW1@vms046.mailsrvcs.net> [Not sure if this got posted so...I'm resending to the "list." - Jeff] Well...someone's lying because it doesn't work. My client tried this two different ways. 1. Using Word and FF on a Mac, when he did the copy/paste, none of the formatting was retained (except for paragraph breaks). 2. When using Safari instead of FF, it seemed to take the formatting but on submitting the form...it dropped all of the information (which is in the form's textarea) so that the PHP script sees a completely empty field. Perhaps there is something in the TinyMCE JavaScript that needs to be removed? Jeff -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Jeff Knight Sent: Tuesday, March 21, 2006 5:32 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Word; TinyMCE; FF on Mac >From Word, open up preferences, & select the "General" category, then check "Include formatted text in Clipboard". If that doesn't work they are just plain lying to you! From ps at pswebcode.com Fri Mar 24 16:37:41 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Fri, 24 Mar 2006 16:37:41 -0500 Subject: [nycphp-talk] Javascript trigger In-Reply-To: Message-ID: <002401c64f8b$2e4c0420$68e4a144@Rubicon> And further, I have successfully integrated a similar small-footprint AJAX project from crackajax.com into a client's Admin area where they have the opportunity to search their entire image collection basically in realtime by simply starting to type picture names into an input field and matching picture names are promptly presented and refreshed in a nearby div. The client and staff love this fast-acting tool because they have over 10,000 pictures in inventory. Additionally, I am using the tabbed menu AJAX project in another current prototype project needing a "current conditions" search interface. I present this extra feedback to show that AJAX/PHP can be a simple. elegant, very viable interface solution now. Peter. -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Alberto dos Santos Sent: Friday, March 24, 2006 5:26 AM To: NYPHP Talk Subject: [nycphp-talk] Javascript trigger Hi, I need an example of javascript triggering an MySQL query through PHP. What for? It will be a cascading javascript menu where option 2 is retrieved from the database according to the first selection and so on. In all it will be a 4 level menu. Any pointers/hints/examples would come in handy. TIA -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chsnyder at gmail.com Fri Mar 24 16:53:04 2006 From: chsnyder at gmail.com (csnyder) Date: Fri, 24 Mar 2006 16:53:04 -0500 Subject: [nycphp-talk] Word; TinyMCE; FF on Mac In-Reply-To: <0IWN003PJI4KGJW1@vms046.mailsrvcs.net> References: <2ca9ba910603211432i453b5140kfb28ea247424ca1d@mail.gmail.com> <0IWN003PJI4KGJW1@vms046.mailsrvcs.net> Message-ID: On 3/24/06, Jeff Siegel wrote: > [Not sure if this got posted so...I'm resending to the "list." - Jeff] > > > Well...someone's lying because it doesn't work. > > My client tried this two different ways. > > 1. Using Word and FF on a Mac, when he did the copy/paste, none of the > formatting was retained (except for paragraph breaks). > > 2. When using Safari instead of FF, it seemed to take the formatting but on > submitting the form...it dropped all of the information (which is in the > form's textarea) so that the PHP script sees a completely empty field. > > Perhaps there is something in the TinyMCE JavaScript that needs to be > removed? > > > Jeff TinyMCE was working with Safari? That sounds like a lie... I guess that's not a very helpful answer, though. From jonbaer at jonbaer.com Fri Mar 24 18:20:10 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Fri, 24 Mar 2006 18:20:10 -0500 Subject: [nycphp-talk] Javascript trigger In-Reply-To: <001601c64f88$534f2480$68e4a144@Rubicon> References: <001601c64f88$534f2480$68e4a144@Rubicon> Message-ID: Id also recommend @ least taking a look at the following libraries which have seen to become the norm (albeit via Rails): * Prototype (the base of all things good) http://prototype.conio.net/ * Scriptaculous http://script.aculo.us/ * Behaviour http://bennolan.com/behaviour/ * event:Selectors http://www.encytemedia.com/event-selectors/ * JQuery http://jquery.com I think as more people expand on the Prototype library you are able to perform remote queries pretty easily, if you combine all of these libraries you get a nice toolkit to do anything client-side you might need. Id send you here for more info: http://wiki.script.aculo.us/scriptaculous/show/Ajax.Updater - Jon On Mar 24, 2006, at 4:17 PM, Peter Sawczynec wrote: > If you look at this particular tabbed menu interface project within > this AJAX site: > http://www.crackajax.net/tabs.php > > ..you can get a real fast look at using AJAX (where any onmouseover > or onclick event, etc. can trigger a JavaScript call to a PHP > script that taps the database and returns the info to the AJAX > interface back to the HTML page) without a page reload. Smooth. > > I think it might very nearly do exactly what you want. > > Plus, this particular AJAX formulation has the smallest JavaScript > scripting footprint I have seen. > > Warmest regards, > > Peter Sawczynec, > Technology Director > PSWebcode > _Design & Interface > _Ecommerce > _Database Management > ps at pswebcode.com > 718.796.1951 > www.pswebcode.com > -----Original Message----- > From: talk-bounces at lists.nyphp.org [mailto:talk- > bounces at lists.nyphp.org] On Behalf Of Alberto dos Santos > Sent: Friday, March 24, 2006 5:26 AM > To: NYPHP Talk > Subject: [nycphp-talk] Javascript trigger > > Hi, > I need an example of javascript triggering an MySQL query through PHP. > What for? > It will be a cascading javascript menu where option 2 is retrieved > from the database according to the first selection and so on. > In all it will be a 4 level menu. > Any pointers/hints/examples would come in handy. > > TIA > > -- > Alberto dos Santos > Consultor em TI > IT Consultant > > http://www.yournway.com > A internet ? sua maneira. > The Internet your own way. > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > 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 greg.rundlett at gmail.com Sat Mar 25 00:21:51 2006 From: greg.rundlett at gmail.com (Greg Rundlett) Date: Sat, 25 Mar 2006 00:21:51 -0500 Subject: [nycphp-talk] Arctic Issue Tracker - Any Good? In-Reply-To: <10030-71881@sneakemail.com> References: <44183E2D.3050208@php.net> <10030-71881@sneakemail.com> Message-ID: <5e2aaca40603242121m4cc58c67j8c1e19ed84c16f9@mail.gmail.com> > > > +1 for Trak. Also Mantis works good, although I haven't admin'ed it nor > pushed it at all. http://www.mantisbt.org/ -1 for Trak[sic]. I think the advantage of Trac is that it combines everything in one package: SVN repo browsing, issue tracking, milestones and a wiki. So, it does carry a lot of bang for the buck so to speak. With one system, you've got a lot less to maintain. The problem with Trac is that it's not very good at any of them. The wiki is horrible... very picky and sometimes awkward with it's syntax, plus a lack of features (eg. categories). E.g. 1. this 1. is 1. a 1. numbered list =This heading won't work= = But this one will = (it's got spaces between the '=' and the text) Mediawiki would be a much better wiki engine. The svn browser can't handle large changesets properly (freezes) cvsweb would probably be a better web repo browser. The issue tracker is not something I'd want to make customer facing. In fact, it doesn't seem to be geared for both external and internal use. (Unless by external you mean outside developers of your software.) I'm still looking for a good issue tracker. I'm glad to have come across this thread so I can check some of the links provided. Cheers, Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From preinheimer at gmail.com Sat Mar 25 19:56:40 2006 From: preinheimer at gmail.com (Paul Reinheimer) Date: Sat, 25 Mar 2006 19:56:40 -0500 Subject: [nycphp-talk] Zend Certs (PHP5?) In-Reply-To: References: <214D18D0-C4E0-4C5C-823E-257071E8D320@jonbaer.com> <44209839.9080200@php.net> <8d9a42800603220420ib2ad9dajc5ef9b28b1aba484@mail.gmail.com> <6ec19ec70603231850n27de8ba5t632fc3c4faafe63d@mail.gmail.com> Message-ID: <6ec19ec70603251656p7e400ff1tfa6ad402101faaa7@mail.gmail.com> I'm not really sure if I feel the need to write 5. I might be tempted to wait for 6 or something. Though now that I actually think about it I wrote the test for 4 a lot longer ago than I first presumed. paul On 3/24/06, Adler Medrado wrote: > Why Paul ? > > > On 3/23/06, Paul Reinheimer wrote: > > > Really? > > I got the cert the summer it started, but to be honest they're going to have > a hard sell to convince me to re-write the exam. > > > paul > > On 3/22/06, Joseph Crawford < codebowl at gmail.com> wrote: > > oh looks like i will be re-taking my cert when it does cover php 5 :D > > > > -- > > Joseph Crawford Jr. > > Zend Certified Engineer > > Codebowl Solutions, Inc. > > http://www.codebowl.com/ > > 1-802-671-2021 > > codebowl at gmail.com > > > > > > > -- > Paul Reinheimer > Zend Certified Engineer > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > > -- > Nesher Technologies > http://www.neshertech.net > http://adler.neshertech.net > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > -- Paul Reinheimer Zend Certified Engineer From danielc at analysisandsolutions.com Sun Mar 26 19:27:09 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 26 Mar 2006 19:27:09 -0500 Subject: [nycphp-talk] PHP in SecurityFocus #335 Message-ID: <20060327002554.9D74FE87864@mailspool3.panix.com> These summaries are available online RSS: http://phpsec.org/projects/vulnerabilities/securityfocus.xml HTML: http://phpsec.org/projects/vulnerabilities/securityfocus.html Alerts from SecurityFocus Newsletter #335 APPLICATIONS USING PHP ---------------------- Ashwebstudio Ashnews Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16426 Nuked-klaN Index.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16424 CRE Loaded Files.PHP Access Validation Vulnerability http://www.securityfocus.com/bid/16415 sPaiz-Nuke Modules.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16412 Invision Power Board Portal Plugin Index.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/16447 Calendarix Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/16456 SZUserMgnt Username Parameter SQL Injection Vulnerability http://www.securityfocus.com/bid/16454 FarsiNews Loginout.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/16440 EasyCMS Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/16430 phpBB Rlink Module Rlink.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16448 PunctWeb MyCO Name Field HTML Injection Vulnerability http://www.securityfocus.com/bid/16444 MyBB Index.PHP Referrer Cookie SQL Injection Vulnerability http://www.securityfocus.com/bid/16443 Cerberus Helpdesk Clients.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16439 AshWebStudio AshNews Remote File Include Vulnerability http://www.securityfocus.com/bid/16436 BrowserCRM Results.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16435 PmWiki Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/16421 Phpclanwebsite Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/16391 Phpclanwebsite Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/16391 AZ Bulletin Board Post.PHP HTML Injection Vulnerabilities http://www.securityfocus.com/bid/16351 RELATED STUFF ------------- OpenSSH SCP Shell Command Execution Vulnerability http://www.securityfocus.com/bid/16369 Changes to version 4.3 resolve this issue. Mozilla Firefox XBL -MOZ-BINDING Property Cross-Domain Scripting Vulnerability http://www.securityfocus.com/bid/16427 Adobe Multiple Unspecified Local Privilege Escalation Vulnerabilities http://www.securityfocus.com/bid/16451 From danielc at analysisandsolutions.com Sun Mar 26 19:27:13 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 26 Mar 2006 19:27:13 -0500 Subject: [nycphp-talk] PHP in SecurityFocus #336 Message-ID: <20060327002603.38EE8E87864@mailspool3.panix.com> These summaries are available online RSS: http://phpsec.org/projects/vulnerabilities/securityfocus.xml HTML: http://phpsec.org/projects/vulnerabilities/securityfocus.html Alerts from SecurityFocus Newsletter #336 This issue is sparse because the SecurityFocus team is having problems with their database. RELATED STUFF ------------- Multiple Mozilla Products Memory Corruption/Code Injection/Access Restriction Bypass Vulnerabilities http://www.securityfocus.com/bid/16476 From danielc at analysisandsolutions.com Sun Mar 26 19:27:16 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 26 Mar 2006 19:27:16 -0500 Subject: [nycphp-talk] PHP in SecurityFocus #337 Message-ID: <20060327002605.0333FE87864@mailspool3.panix.com> These summaries are available online RSS: http://phpsec.org/projects/vulnerabilities/securityfocus.xml HTML: http://phpsec.org/projects/vulnerabilities/securityfocus.html Alerts from SecurityFocus Newsletter #337 While it's good to see SecurityFocus' systems are back in order, it unfortunately means we'll be reporting on lots of vulnerabilities in PHP apps... APPLICATIONS USING PHP ---------------------- LinPHA Multiple Local File Inclusion and PHP Code Injection Vulnerabilities http://www.securityfocus.com/bid/16592 Multiple HiveMail Vulnerabilities http://www.securityfocus.com/bid/16591 PHP Event Calendar HTML Injection Vulnerability http://www.securityfocus.com/bid/16588 Multiple Scriptme Applications BBCode URL Tag Script Injection Vulnerability http://www.securityfocus.com/bid/16585 Scriptme SmE GB Host Login.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/16609 FarsiNews Directory Traversal and Local File Include Vulnerabilities http://www.securityfocus.com/bid/16580 GuestBookHost Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/16545 CPG Dragonfly CMS Remote Command Execution Vulnerability http://www.securityfocus.com/bid/16546 RunCMS Remote Code Execution Vulnerability http://www.securityfocus.com/bid/16578 QwikiWiki Search.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16638 CALimba RB_auth.PHP Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/16632 Time Tracking Software Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/16630 MyBBoard Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/16631 Dotproject Multiple Remote File Include Vulnerabilities http://www.securityfocus.com/bid/16648 Horde Kronolith Multiple HTML Injection Vulnerabilities http://www.securityfocus.com/bid/15808 Gallery Data Unspecified Code Execution Vulnerability http://www.securityfocus.com/bid/16533 PHP/MYSQL Timesheet Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/16620 Flyspray ADODBPath Remote File Include Vulnerability http://www.securityfocus.com/bid/16618 E107 Website System BBCode HTML Injection Vulnerability http://www.securityfocus.com/bid/16614 Gastebuch Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16615 Invision Power Board User Registration Denial of Service Vulnerability http://www.securityfocus.com/bid/16616 RunCMS PMLite.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/16652 sNews Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/16647 Magic Calendar Lite Index.PHP Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/16646 DeltaScripts PHP Classifieds Member_Login.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/16642 PHPNuke Header.PHP Pagetitle Parameter Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16608 IPB Army System Army.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/16606 Clever Copy Multiple HTML Injection Vulnerabilities http://www.securityfocus.com/bid/16607 Ansilove Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/16603 DocMGR Process.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/16601 XMB Forum Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/16604 Lawrence Osiris DB_eSession Class SQL Injection Vulnerability http://www.securityfocus.com/bid/16598 Siteframe Beaumont Search.PHP Q Parameter Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16596 ImageVue Multiple Vulnerabilities http://www.securityfocus.com/bid/16594 RELATED STUFF ------------- LibPNG Graphics Library PNG_Set_Strip_Alpha Buffer Overflow Vulnerability http://www.securityfocus.com/bid/16626 ImageMagick File Name Handling Remote Format String Vulnerability http://www.securityfocus.com/bid/12717 PostgreSQL Set Session Authorization Denial of Service Vulnerability http://www.securityfocus.com/bid/16650 PostgreSQL Remote SET ROLE Privilege Escalation Vulnerability http://www.securityfocus.com/bid/16649 From danielc at analysisandsolutions.com Sun Mar 26 19:27:19 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 26 Mar 2006 19:27:19 -0500 Subject: [nycphp-talk] PHP in SecurityFocus #338 Message-ID: <20060327002608.CEC2C953061@mailspool2.panix.com> These summaries are available online RSS: http://phpsec.org/projects/vulnerabilities/securityfocus.xml HTML: http://phpsec.org/projects/vulnerabilities/securityfocus.html Alerts from SecurityFocus Newsletter #338 APPLICATIONS USING PHP ---------------------- ADOdb Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/16720 PEAR::Auth Multiple Unspecified SQL Injection Vulnerabilities http://www.securityfocus.com/bid/16758 SquirrelMail Multiple Cross-Site Scripting and IMAP Injection Vulnerabilities http://www.securityfocus.com/bid/16756 PHPNuke Index.PHP Search Module SQL Injection Vulnerability http://www.securityfocus.com/bid/16732 PHPNuke CAPTCHA Bypass Weakness http://www.securityfocus.com/bid/16722 Leif M. Wright Blog HTML Injection Vulnerability http://www.securityfocus.com/bid/16715 Leif M. Wright Blog Information Disclosure Vulnerability http://www.securityfocus.com/bid/16712 MyBB Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/16708 V-webmail Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/16706 BirthSys Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/16684 RCBlog Index.PHP Directory Traversal Vulnerability http://www.securityfocus.com/bid/16342 E107 Website System Chatbox Plugin HTML Injection Vulnerability http://www.securityfocus.com/bid/16719 Coppermine Multiple File Include Vulnerabilities http://www.securityfocus.com/bid/16718 Geeklog Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/16755 Admbook Remote PHP Script Code Execution Vulnerability http://www.securityfocus.com/bid/16753 PostNuke Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/16752 Guestbox HTML Injection Vulnerability http://www.securityfocus.com/bid/16751 Melange Chat Session Header Information Disclosure Vulnerability http://www.securityfocus.com/bid/16747 Barracuda Directory Multiple HTML Injection Vulnerabilities http://www.securityfocus.com/bid/16746 IlchClan Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/16735 Magic Calendar Lite Index.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/16734 TTS Software Time Tracking Software Edituser.PHP Access Validation Vulnerability http://www.securityfocus.com/bid/16731 RELATED STUFF ------------- GnuPG Detached Signature Verification Bypass Vulnerability http://www.securityfocus.com/bid/16663 This was fixed in version 1.4.2.1, but other issues were fixed subsequently, so upgrade to 1.4.2.2. From danielc at analysisandsolutions.com Sun Mar 26 19:27:22 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 26 Mar 2006 19:27:22 -0500 Subject: [nycphp-talk] PHP in SecurityFocus #339 Message-ID: <20060327002611.E3DCCE87864@mailspool3.panix.com> These summaries are available online RSS: http://phpsec.org/projects/vulnerabilities/securityfocus.xml HTML: http://phpsec.org/projects/vulnerabilities/securityfocus.html Alerts from SecurityFocus Newsletter #339 APPLICATIONS USING PHP ---------------------- EZ Publish ImageCatalogue Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16817 Mambo Open Source Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/16775 PHP-Nuke Mainfile.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/16831 PHP PEAR::Archive_Tar Remote Directory Traversal Vulnerability http://www.securityfocus.com/bid/16805 iGenus WebMail Config_Inc.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/16829 DCI-Taskeen Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/16828 PHPWebSite Topics.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/16825 SPiD Scan_Lang_Insert.PHP Local File Include Vulnerability http://www.securityfocus.com/bid/16822 CubeCart Arbitrary File Upload Vulnerability http://www.securityfocus.com/bid/16796 NOCC Webmail Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/16793 PHPLIB Unspecified Code Execution Vulnerability http://www.securityfocus.com/bid/16801 MyPHPNuke Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/16815 DEV Web Management System HTML Injection Vulnerability http://www.securityfocus.com/bid/16812 JGS-Gallery Module Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/16810 PwsPHP Index.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/16567 4images Index.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/16855 Archangel Weblog Authentication Bypass Vulnerability http://www.securityfocus.com/bid/16848 Woltlab Burning Board Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/16843 Fantastic Scripts Fantastic News SQL Injection Vulnerability http://www.securityfocus.com/bid/16842 Lansuite Board Module SQL Injection Vulnerability http://www.securityfocus.com/bid/16836 PHPRPC Library Remote Code Execution Vulnerability http://www.securityfocus.com/bid/16833 Other projects relying on this library, such as RunCMS, are probably affected by this problem. PHPX XCode Tag HTML Injection Vulnerability http://www.securityfocus.com/bid/16799 D3Jeeb Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/16853 RELATED STUFF ------------- MySQL Query Logging Bypass Vulnerability http://www.securityfocus.com/bid/16850 Using the NULL character causes query logging to fail. For example: mysql_query('/*'.chr(0).'*/ SELECT * FROM table'); From danielc at analysisandsolutions.com Sun Mar 26 19:27:25 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 26 Mar 2006 19:27:25 -0500 Subject: [nycphp-talk] PHP in SecurityFocus #340 Message-ID: <20060327002615.087D9953060@mailspool2.panix.com> These summaries are available online RSS: http://phpsec.org/projects/vulnerabilities/securityfocus.xml HTML: http://phpsec.org/projects/vulnerabilities/securityfocus.html Alerts from SecurityFocus Newsletter #340 APPLICATIONS USING PHP ---------------------- Invision Power Board Showtopic SQL Injection Vulnerability http://www.securityfocus.com/bid/16971 VBZoom Forum Show.PHP MainID SQL Injection Vulnerability http://www.securityfocus.com/bid/16955 PEHEPE Membership Management System Remote PHP Script Code Injection Vulnerability http://www.securityfocus.com/bid/16887 PEHEPE Membership Management System Sol_menu.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16885 VBulletin Profile.PHP Email Field HTML Injection Vulnerability http://www.securityfocus.com/bid/16919 PluggedOut Nexus forgotten_password.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/16915 UKiWEB UKiBoard FCE.PHP BBCode HTML Injection Vulnerability http://www.securityfocus.com/bid/16912 DCI-Designs Dawaween Poems.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/16909 SMBlog Arbitrary PHP Command Execution Vulnerability http://www.securityfocus.com/bid/16905 Noah's Classifieds Index.PHP Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/16772 Noah's Classifieds Local File Include Vulnerability http://www.securityfocus.com/bid/16778 Noah's Classifieds Index.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/16780 Akarru Social BookMarking Engine Users.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/16989 CyBoards PHP Lite Process_post.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/16987 Fantastic News Archive.PHP Remote Code Execution Vulnerability http://www.securityfocus.com/bid/16985 D2-Shoutbox SQL Injection Vulnerability http://www.securityfocus.com/bid/16984 Evo-Dev evoBlog Comment Post HTML Injection Vulnerability http://www.securityfocus.com/bid/16983 Game-Panel Login.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16979 M-Phorum Remote File Include Vulnerability http://www.securityfocus.com/bid/16977 Bitweaver Title Field HTML Injection Vulnerability http://www.securityfocus.com/bid/16973 RunCMS Bigshow.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16970 VBZoom Profile.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/16969 DVGuestbook Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/16968 Sendcard Multiple Unspecified SQL Injection Vulnerabilities http://www.securityfocus.com/bid/16900 Limbo CMS Frontpage Arbitrary PHP Command Execution Vulnerability http://www.securityfocus.com/bid/16902 4images Index.PHP Remote File Include Vulnerability http://www.securityfocus.com/bid/16855 RELATED STUFF ------------- OpenSSH Remote PAM Denial Of Service Vulnerability http://www.securityfocus.com/bid/16892 Mozilla Thunderbird Multiple Remote Information Disclosure Vulnerabilities http://www.securityfocus.com/bid/16881 From danielc at analysisandsolutions.com Sun Mar 26 19:27:28 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 26 Mar 2006 19:27:28 -0500 Subject: [nycphp-talk] PHP in SecurityFocus #341 Message-ID: <20060327002617.EDF2F953060@mailspool2.panix.com> These summaries are available online RSS: http://phpsec.org/projects/vulnerabilities/securityfocus.xml HTML: http://phpsec.org/projects/vulnerabilities/securityfocus.html Alerts from SecurityFocus Newsletter #341 APPLICATIONS USING PHP ---------------------- WordPress Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/17069 Drupal Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/17104 GuppY Dwnld.PHP Remote Directory Traversal Vulnerability http://www.securityfocus.com/bid/17068 DSCounter Index.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/17112 DSNewsletter Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/17111 DSPoll PollID SQL Injection Vulnerability http://www.securityfocus.com/bid/17103 CyBoards PHP Lite Post.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/17107 Simple PHP Blog Install05.PHP Local File Include Vulnerability http://www.securityfocus.com/bid/17102 MyBB Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/17097 Core News Index.PHP Remote Code Execution Vulnerability http://www.securityfocus.com/bid/17067 @1 File Store Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/17090 Vegas Forum Forumlib.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/17079 WMNews Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/17076 Zeroboard Multiple HTML Injection Vulnerabilities http://www.securityfocus.com/bid/17075 vCard Create.PHP Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/17073 RELATED STUFF ------------- GnuPG Incorrect Non-Detached Signature Verification Vulnerability http://www.securityfocus.com/bid/17058 Upgrade to version 1.4.2.2. Macromedia Flash Multiple Unspecified Security Vulnerabilities http://www.securityfocus.com/bid/17106 Firebird Local Inet_Server Buffer Overflow Vulnerability http://www.securityfocus.com/bid/17077 From danielc at analysisandsolutions.com Sun Mar 26 19:27:31 2006 From: danielc at analysisandsolutions.com (Daniel Convissor) Date: Sun, 26 Mar 2006 19:27:31 -0500 Subject: [nycphp-talk] PHP in SecurityFocus #342 Message-ID: <20060327002620.9292BE87864@mailspool3.panix.com> These summaries are available online RSS: http://phpsec.org/projects/vulnerabilities/securityfocus.xml HTML: http://phpsec.org/projects/vulnerabilities/securityfocus.html Alerts from SecurityFocus Newsletter #342 APPLICATIONS USING PHP ---------------------- PHPMyAdmin Set_Theme Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/17142 Inprotect Zones.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/17141 Oxynews Index.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/17132 SPIP Research Module Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/17130 gCards Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/17165 SoftBB Reg.PHP SQL Injection Vulnerability http://www.securityfocus.com/bid/17160 Maian Weblog Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/17159 Streber Unspecified HTML Injection Vulnerability http://www.securityfocus.com/bid/17157 CutePHP CuteNews Function.PHP Local File Include Vulnerability http://www.securityfocus.com/bid/17152 Noah's Classifieds Index.PHP Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/17151 Light Weight Calendar Cal.PHP Remote Command Execution Vulnerability http://www.securityfocus.com/bid/17059 Skull-Splitter PHP Guestbook HTML Injection Vulnerability http://www.securityfocus.com/bid/17136 PHPWebSite Multiple SQL Injection Vulnerabilities http://www.securityfocus.com/bid/17150 MusicBox Multiple Input Validation Vulnerabilities http://www.securityfocus.com/bid/17149 Woltlab Burning Board Class_DB_MySQL.PHP Cross-Site Scripting Vulnerability http://www.securityfocus.com/bid/17147 ExtCalendar Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/17146 Invision Power Board Multiple Cross-Site Scripting Vulnerabilities http://www.securityfocus.com/bid/17144 RELATED STUFF ------------- cURL / libcURL TFTP URL Parser Buffer Overflow Vulnerability http://www.securityfocus.com/bid/17154 Upgrade to version 7.15.3. From yournway at gmail.com Mon Mar 27 07:31:41 2006 From: yournway at gmail.com (Alberto dos Santos) Date: Mon, 27 Mar 2006 13:31:41 +0100 Subject: [nycphp-talk] Javascript trigger In-Reply-To: References: <001601c64f88$534f2480$68e4a144@Rubicon> Message-ID: Thank you all, I think I have to study that "ajax thing", oh dear.... Cheers, -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From morgan at forsalebyowner.com Mon Mar 27 10:03:58 2006 From: morgan at forsalebyowner.com (Morgan Craft) Date: Mon, 27 Mar 2006 10:03:58 -0500 Subject: [nycphp-talk] Presentations / Monthly Meetings -> Webcasts Message-ID: <4427FEDE.1050205@forsalebyowner.com> Curious if any thought has been given in regards to recording the presentations and putting them online as podcasts/webcasts for those that do not live in the new york area or are unable to attend the meetings? I know the Atlanta-PHP group has been posting their meeting's podcast on their forum: http://www.atlphp.org/node/133 Thought it might be great for the community if we did the same. My it-webcast favorites: http://www.itconversations.com & http://podcast.phparch.com/main/index.php/main From lamolist at cyberxdesigns.com Mon Mar 27 10:17:12 2006 From: lamolist at cyberxdesigns.com (Hans Kaspersetz) Date: Mon, 27 Mar 2006 10:17:12 -0500 Subject: [nycphp-talk] Presentations / Monthly Meetings -> Webcasts In-Reply-To: <4427FEDE.1050205@forsalebyowner.com> References: <4427FEDE.1050205@forsalebyowner.com> Message-ID: <442801F8.20804@cyberxdesigns.com> Morgan, Currently we post the MP3 recording of the meeting on the Presentations page. (Thanks Michael) The link to the MP3 file can be found at the bottom of the summary of the presentations. We have not started to Podcast yet. It might happen in the future. As for web casting, there was a brief discussion about it but we have elected to forgo it for now.. http://www.nyphp.org/content/presentations/index.php Look for the line that says, " Download MP3s: Part 1". Thanks, Hans Kaspersetz Presentation Lacky, NYPHP http://www.cyberxdesigns.com Morgan Craft wrote: > Curious if any thought has been given in regards to recording the > presentations and putting them online as podcasts/webcasts for those > that do not live in the new york area or are unable to attend the meetings? > I know the Atlanta-PHP group has been posting their meeting's podcast on > their forum: > http://www.atlphp.org/node/133 > Thought it might be great for the community if we did the same. > > > My it-webcast favorites: > http://www.itconversations.com > & > http://podcast.phparch.com/main/index.php/main > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > > From billy.reisinger at gmail.com Tue Mar 28 08:49:48 2006 From: billy.reisinger at gmail.com (billy reisinger) Date: Tue, 28 Mar 2006 07:49:48 -0600 Subject: [nycphp-talk] Javascript trigger In-Reply-To: References: <001601c64f88$534f2480$68e4a144@Rubicon> Message-ID: <14a0d8670603280549p434f76aaw8955e20b9ac920c4@mail.gmail.com> Not necessarily - you don't have to use Ajax in this case. As Alberto said in the first reply to your post, you can embed a Javascript array (built by PHP during the page request) that is embedded in the page source or is included in a javascript file. You can then use the values in this array to populate your menu on the fly. No need for asynchronous requests (Ajax). Not that I don't like Ajax, but it is not necessarily the ideal solution in this case - why grab the menu data from the database every time the user mouses over or selects a parent category? There is certain to be noticeable latency every once in a while; in addition, this behavior wastes bandwidth and server processing time. If you were running a website that got a ton of traffic, this would be a big no-no. Uncle Billy On 3/27/06, Alberto dos Santos wrote: > > Thank you all, > I think I have to study that "ajax thing", oh dear.... > > Cheers, > > > > > -- > Alberto dos Santos > Consultor em TI > IT Consultant > > http://www.yournway.com > A internet ? sua maneira. > The Internet your own way. > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > 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 ps at pswebcode.com Tue Mar 28 10:27:04 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Tue, 28 Mar 2006 10:27:04 -0500 Subject: [nycphp-talk] Javascript trigger In-Reply-To: <14a0d8670603280549p434f76aaw8955e20b9ac920c4@mail.gmail.com> Message-ID: <002f01c6527c$1155dd20$68e4a144@Rubicon> /* START:Another AJAX Moment Of course, for most JS/DHTML menu systems one would populate JS arrays with PHP and then drive the menus from the local array(s). On the other had if you are creating a volatile and extensive menu/dropdown system such as of the style: Select Your Country>> Select Your State>> Select Your City>> Select Your Zip>> Select Your Nearest Location -- then using AJAX is a perfectly viable solution. Yes, AJAX will show some latency, but it is much briefer than a whole page reload. For further reference, the team at MSFT is building an AJAX SDK shipping with Vista. Even further aside, it is only a vague impression of mine, but it appeared to me that XML usage only really finally took off and started coming up into common programming decision making after MSFT started integrating XML into their product. So... using AJAX techniques in a project is not about a belief system, but its about moving to provide immediacy to the end-user. Ultimately, the objective is that consumers spend less time at the computer interfacing and more time benefiting from the result(s). Warmest regards, Peter Sawczynec, Technology Director PSWebcode _Design & Interface _Ecommerce _Database Management ps at pswebcode.com 718.796.1951 www.pswebcode.com END:Another AJAX Moment */ -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of billy reisinger Sent: Tuesday, March 28, 2006 8:50 AM To: NYPHP Talk Subject: Re: [nycphp-talk] Javascript trigger Not necessarily - you don't have to use Ajax in this case. As Alberto said in the first reply to your post, you can embed a Javascript array (built by PHP during the page request) that is embedded in the page source or is included in a javascript file. You can then use the values in this array to populate your menu on the fly. No need for asynchronous requests (Ajax). Not that I don't like Ajax, but it is not necessarily the ideal solution in this case - why grab the menu data from the database every time the user mouses over or selects a parent category? There is certain to be noticeable latency every once in a while; in addition, this behavior wastes bandwidth and server processing time. If you were running a website that got a ton of traffic, this would be a big no-no. Uncle Billy On 3/27/06, Alberto dos Santos wrote: Thank you all, I think I have to study that "ajax thing", oh dear.... Cheers, -- Alberto dos Santos Consultor em TI IT Consultant http://www.yournway.com A internet ? sua maneira. The Internet your own way. _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From 1j0lkq002 at sneakemail.com Tue Mar 28 17:31:13 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Tue, 28 Mar 2006 14:31:13 -0800 Subject: [nycphp-talk] Javascript trigger In-Reply-To: <002f01c6527c$1155dd20$68e4a144@Rubicon> References: <002f01c6527c$1155dd20$68e4a144@Rubicon> Message-ID: <17143-17488@sneakemail.com> I don't really have any objection to your suggestion, exept for the "example". It seems to me (and yes, I have been wrong once before), that trendy things like AJAX tend to get used when a wee bit more thought might have revealed better, more efficient solutons. case in point: yes, a tedious set of lookups like your example of Select Your Country>> Select Your State>> Select Your City>> Select Your Zip>> Select Your Nearest Location would require a large database of support and therefore does seem to obviate the need for a huge data preload by running dynamic lookups via AJAX. However, why do we even need that tedious set of lookups? Your a-priori knowledge isn't being utilized. If the user knows ZIP, why ask for CITY STATE COUNTRY? If it's a shipping app, the prior stage might have cued the user to be prepared to enter a shipping destination. What % of visitors ship to a zip code outside of their IP-geo location? It might be way-small. When you think about it, how much info is already encoded in the ZIP code anyway? Certainly region is represented in the first two numerals of ZIP... a state or two of preload maybe? I agree there is a place for AJAX, but I don't agree that the majority of coders out there are thinking about the application of their code nearly as much as they are thinking about their own tech careers when they choose things like AJAX. -=john andrews http://www.seo-fun.com Peter Sawczynec ps-at-pswebcode.com |nyphp dev/internal group use| wrote: >/* >START:Another AJAX Moment > >Of course, for most JS/DHTML menu systems one would populate JS arrays with >PHP and then drive the menus from the local array(s). > >On the other had if you are creating a volatile and extensive menu/dropdown >system such as of the style: Select Your Country>> Select Your State>> >Select Your City>> Select Your Zip>> Select Your Nearest Location -- then >using AJAX is a perfectly viable solution. Yes, AJAX will show some latency, >but it is much briefer than a whole page reload. > >For further reference, the team at MSFT is building an AJAX SDK shipping >with Vista. > >Even further aside, it is only a vague impression of mine, but it appeared >to me that XML usage only really finally took off and started coming up into >common programming decision making after MSFT started integrating XML into >their product. > >So... using AJAX techniques in a project is not about a belief system, but >its about moving to provide immediacy to the end-user. > >Ultimately, the objective is that consumers spend less time at the computer >interfacing and more time benefiting from the result(s). > >Warmest regards, > >Peter Sawczynec, >Technology Director >PSWebcode >_Design & Interface >_Ecommerce >_Database Management >ps at pswebcode.com >718.796.1951 >www.pswebcode.com > >END:Another AJAX Moment >*/ > > > > > > From 1j0lkq002 at sneakemail.com Tue Mar 28 17:43:16 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Tue, 28 Mar 2006 14:43:16 -0800 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: <002f01c6527c$1155dd20$68e4a144@Rubicon> References: <002f01c6527c$1155dd20$68e4a144@Rubicon> Message-ID: <24106-13761@sneakemail.com> There has been some debate n NYPHP in the past about using "event" as a basic data structure for websites. For example, given an event data construct (what, when,where,whom,about/related to, comments about, etc) one could build many common MVC websites. I'd like to bake some of that bread right now so I am looking for some starter dough.... has anyone worked with a base LAMP setup for events management worthy of development? Some of what I have noted thus far: A "calendar" is an interface to such a database, but existing "Calendar" systems seems so UI-centric and often have pretty poor back end infrastructure. Sorry, but I am one of those who believe you can skin anything once it's well-designed, so I want the solid backend design first. CMS's approach event management as a necessary feature, but seem to spend more time on the integration of the Calendar UI with the CMS than an events database structure. I am loathe to adapt a CMS just to get access to a feature given secondary imortance by the core developers - too much baggage. The market opportunity for almost *any* true events management system is tremendous, so once a project puts a niche label onto itself the UI and application-specific aspects overwhelm the value of the backend and, well, we get YAUWTAINOASI (yet another unfinished Web Two application in need of a solid infrastructure). Perhaps I am being too cynical ;-) Anyway comments and suggestions about an events-driven database infrastructure very much appreciated. -=john andrews http://www.seo-fun.cm From chsnyder at gmail.com Wed Mar 29 01:04:35 2006 From: chsnyder at gmail.com (csnyder) Date: Wed, 29 Mar 2006 01:04:35 -0500 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: <24106-13761@sneakemail.com> References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> Message-ID: On 3/28/06, inforequest <1j0lkq002 at sneakemail.com> wrote: > There has been some debate n NYPHP in the past about using "event" as a > basic data structure for websites. For example, given an event data > construct (what, when,where,whom,about/related to, comments about, etc) > one could build many common MVC websites. Some observations: "When" is typically two values, start and end. To find the events in a given month, you look up all the events that start and/or end within the month, or that start before and end after the month. But... recurring events are a difficult problem with this model. You can insert all the instances of a recurring event for the next 5 years, and group them together so they can be changed as a group. It is not so difficult to imagine a situation where that gets really ugly. Instead, you can build a cron-style system in which every event is a recurring event (even if it only occurs once). In this case, "when" is a set of values: minute, hour, day of month, month, year, day of week and duration. That makes managing recurring events a snap (change one record) but it makes lookup quite a bit more complicated. And let us not forget timezones and daylight savings time, which, when combined with the intricacies of rendering multi-day events on a month-view calendar, will make grown men weep. http://www.boingboing.net/2005/10/29/daylight_saving_ends.html I wonder why there aren't more products out there that get this right? -- Chris Snyder http://chxo.com/ From 1j0lkq002 at sneakemail.com Wed Mar 29 01:37:12 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Tue, 28 Mar 2006 22:37:12 -0800 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> Message-ID: <28776-82909@sneakemail.com> csnyder chsnyder-at-gmail.com |nyphp dev/internal group use| wrote: >On 3/28/06, inforequest <1j0lkq002 at sneakemail.com> wrote: > > >>There has been some debate n NYPHP in the past about using "event" as a >>basic data structure for websites. For example, given an event data >>construct (what, when,where,whom,about/related to, comments about, etc) >>one could build many common MVC websites. >> >> > >Some observations: > >"When" is typically two values, start and end. To find the events in a >given month, you look up all the events that start and/or end within >the month, or that start before and end after the month. > >But... recurring events are a difficult problem with this model. You >can insert all the instances of a recurring event for the next 5 >years, and group them together so they can be changed as a group. It >is not so difficult to imagine a situation where that gets really >ugly. > > Actually, isn't "when" really just one value - offset from defined zero? "duration" is a second attribute of the event. And daylight savings etc are just UI considerations... localization details even. Complications of the sort you describe arise in the face of "expectations" for the app (be it calendar or schedule, etc). The data is still start, duration, venue, etc. I would support the app's expectations with tables derived from the data....often okay to regenerate periodically as opposed to real-time. I am thinking I can do a helluvalot with this generalized data model. Am I crazy?? From cliff at pinestream.com Wed Mar 29 06:01:55 2006 From: cliff at pinestream.com (cliff) Date: Wed, 29 Mar 2006 06:01:55 -0500 Subject: [nycphp-talk] Events Management - is there a solid F/OS codebase ? In-Reply-To: <28776-82909@sneakemail.com> References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> <28776-82909@sneakemail.com> Message-ID: <20060329110155.M43627@pinestream.com> > >>basic data structure for websites. For example, given an event data > >>construct (what, when,where,whom,about/related to, comments about, etc) > >>one could build many common MVC websites. > >> > >Some observations: > >"When" is typically two values, start and end. To find the events in a > >given month, you look up all the events that start and/or end within > >the month, or that start before and end after the month. > > > >But... recurring events are a difficult problem with this model. You > >can insert all the instances of a recurring event for the next 5 > >years, and group them together so they can be changed as a group. It > >is not so difficult to imagine a situation where that gets really > >ugly. > > > > > Actually, isn't "when" really just one value - offset from defined > zero? "duration" is a second attribute of the event. And daylight And isn't recurring just a flag? The presentation or business layer can see if a recurring event falls into a calendar timframe by doing some simple math. From jeff.knight at gmail.com Wed Mar 29 14:26:09 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Wed, 29 Mar 2006 13:26:09 -0600 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> Message-ID: <2ca9ba910603291126i1ffe9486o20676b9048399561@mail.gmail.com> On 3/29/06, cliff wrote: > And isn't recurring just a flag? The presentation or business layer can see if a recurring event falls into a calendar timframe by doing some simple math. How does it "recur". Every day, every other day, every Monday and Wednesday, on the 5th of every month, on the 4th Tuesday of every month, on the last day of the month, every 45 days, quarterly, annually? On 3/29/06, csnyder wrote: > And let us not forget timezones and daylight savings time... I wish I could. And to make matters worse, the bozos in charge keep changing it! From gatzby3jr at gmail.com Wed Mar 29 14:35:44 2006 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Wed, 29 Mar 2006 14:35:44 -0500 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: <2ca9ba910603291126i1ffe9486o20676b9048399561@mail.gmail.com> References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> <2ca9ba910603291126i1ffe9486o20676b9048399561@mail.gmail.com> Message-ID: <29da5d150603291135m2353f21aod7652e1b6a3a64c3@mail.gmail.com> The way I always handled occurance was to have two fields in the database, a key (usually an integer), and a value, which I stored as a string. I then had a function which took an event and a day in, and checked the events occurance key / value to see if it applied for that day, and returned either true or false. I doubt this is the most efficient way, but it works for me. On 3/29/06, Jeff Knight wrote: > > On 3/29/06, cliff wrote: > > And isn't recurring just a flag? The presentation or business layer can > see if a recurring event falls into a calendar timframe by doing some simple > math. > > How does it "recur". Every day, every other day, every Monday and > Wednesday, on the 5th of every month, on the 4th Tuesday of every > month, on the last day of the month, every 45 days, quarterly, > annually? > > On 3/29/06, csnyder wrote: > > And let us not forget timezones and daylight savings time... > > I wish I could. And to make matters worse, the bozos in charge keep > changing it! > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Wed Mar 29 15:25:53 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 29 Mar 2006 12:25:53 -0800 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: <2ca9ba910603291126i1ffe9486o20676b9048399561@mail.gmail.com> References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> <2ca9ba910603291126i1ffe9486o20676b9048399561@mail.gmail.com> Message-ID: <23294-03179@sneakemail.com> Jeff Knight jeff.knight-at-gmail.com |nyphp dev/internal group use| wrote: >On 3/29/06, cliff wrote: > > >>And isn't recurring just a flag? The presentation or business layer can see if a recurring event falls into a calendar timframe by doing some simple math. >> >> > >How does it "recur". Every day, every other day, every Monday and >Wednesday, on the 5th of every month, on the 4th Tuesday of every >month, on the last day of the month, every 45 days, quarterly, >annually? > > > Yeah, well let's not go there because some folks even call it recurrence when it relies on a fixed day of the week but a count of week into the month (like "last Tuesday of every month"). Such moronic scheduling should be criminal ;-) I agree that recurrence should be handled in the presentation layer, provided the data is in. but what data? Depends on type of recurrence, which is where the business layer interferes with the data layer anyway. those damn humans think "every other wednesday" is recurrence.... duh. It's really "every other day that has already been assigned the label "Wednesday" and that works just fine using the flag approach, right? I'd appreciate an example of that 'simple math' cliff? Might make it clearer what you mean. -=john andrews From cliff at pinestream.com Wed Mar 29 15:43:44 2006 From: cliff at pinestream.com (Cliff Hirsch) Date: Wed, 29 Mar 2006 15:43:44 -0500 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: <23294-03179@sneakemail.com> Message-ID: <003a01c65371$78d80270$0aa8a8c0@cliff> Well, simple might have been a stretch. And I agree putting the actual "recurrence extraction" in the business or presentation layer does make sense. But duplicating events in the database still doesn't make sense to me unless you need to "spawn" a change. Although I haven't worked it out, I still believe a primary recurrence type field makes sense such as: 1. Recurrence method: (daily, weekly, monthly, first Tuesday, 2nd Blue moon, etc.) 2. Start date 3. Duration or end date 4. Numeric field (21st, 2nd, 4th, etc.) 3. other fields necessary for the recurrence method Now capturing the rigorous publishing schedule for my Semiconductor Times newsletter could be a challenge. The algorithm is very simple -- the first Friday of each month unless the first day of the month is pretty darn close to the preceding Friday (like this coming April issue), whereupon I will publish sometime between the two dates or perhaps by the preceding Friday. Capture that! >On 3/29/06, cliff wrote: >>And isn't recurring just a flag? The presentation or business layer >>can see if a recurring event falls into a calendar timframe by doing some simple math. >> >How does it "recur". Every day, every other day, every Monday and >Wednesday, on the 5th of every month, on the 4th Tuesday of every >month, on the last day of the month, every 45 days, quarterly, >annually? > Yeah, well let's not go there because some folks even call it recurrence when it relies on a fixed day of the week but a count of week into the month (like "last Tuesday of every month"). Such moronic scheduling should be criminal ;-) I agree that recurrence should be handled in the presentation layer, provided the data is in. but what data? Depends on type of recurrence, which is where the business layer interferes with the data layer anyway. those damn humans think "every other wednesday" is recurrence.... duh. It's really "every other day that has already been assigned the label "Wednesday" and that works just fine using the flag approach, right? I'd appreciate an example of that 'simple math' cliff? Might make it clearer what you mean. -=john andrews From chsnyder at gmail.com Wed Mar 29 17:23:17 2006 From: chsnyder at gmail.com (csnyder) Date: Wed, 29 Mar 2006 17:23:17 -0500 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: <29da5d150603291135m2353f21aod7652e1b6a3a64c3@mail.gmail.com> References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> <2ca9ba910603291126i1ffe9486o20676b9048399561@mail.gmail.com> <29da5d150603291135m2353f21aod7652e1b6a3a64c3@mail.gmail.com> Message-ID: On 3/29/06, Brian O'Connor wrote: > The way I always handled occurance was to have two fields in the database, a > key (usually an integer), and a value, which I stored as a string. > > I then had a function which took an event and a day in, and checked the > events occurance key / value to see if it applied for that day, and returned > either true or false. > > I doubt this is the most efficient way, but it works for me. Let's say I want to render all of the events on a particular date: April 1, 2006, a Saturday. There is an event on January 18, 2003 (also a Saturday) which is set to recur every two weeks... which translates in this case to "odd Saturdays". Okay, I see how that would work. For any given day you generate a list of all the possible matches (April 1, 2006 is a Saturday, an odd Saturday, first Saturday, first of the month, etc), and then SELECT against those matches to find the events that apply. And multi-day events would just work, as long as you enforce a maximum duration, right? If events can last up to 5 days, you have to start your lookups 5 days before the month in question in order to capture recurring events that started before, but end during the month. To be truly useful you need to have an override mechanism -- one time events that mask out properties on a recurring event. We have a monthly meeting the recurs on 4th Tuesdays, but each instance of that event has a different "who" and "what". That seems like the easy part. A truly excellent implementation would even allow you to push or pull the start date, so that Cliff could reschedule the publication of his newsletter. You might also want an event log to track events that have actually happened, so that when a recurring event is updated to reflect a new reality, it doesn't rewrite history. John, your taxonomy idea is interesting (fetch events tagged "Wednesdays") and essentially the same as the "key/value" approach Brian described. If you're using a system that has robust tagging (like Ning) it might save some time. -- Chris Snyder http://chxo.com/ From chsnyder at gmail.com Wed Mar 29 17:33:20 2006 From: chsnyder at gmail.com (csnyder) Date: Wed, 29 Mar 2006 17:33:20 -0500 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> <2ca9ba910603291126i1ffe9486o20676b9048399561@mail.gmail.com> <29da5d150603291135m2353f21aod7652e1b6a3a64c3@mail.gmail.com> Message-ID: On 3/29/06, csnyder wrote: > For any given day you generate a list of all the possible matches > (April 1, 2006 is a Saturday, an odd Saturday, first Saturday, first > of the month, etc), and then SELECT against those matches to find the > events that apply. Sorry, just thinking about this, I think it's fair to point out that this is 30+ queries to render a month view, versus a system that doesn't allow recurring events and can pull all of the events that appear in a month with a single query. It's not that bad a thing, though. "I can do recurring events, but it'll cost ya." ;-) From gatzby3jr at gmail.com Wed Mar 29 17:35:54 2006 From: gatzby3jr at gmail.com (Brian O'Connor) Date: Wed, 29 Mar 2006 17:35:54 -0500 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> <2ca9ba910603291126i1ffe9486o20676b9048399561@mail.gmail.com> <29da5d150603291135m2353f21aod7652e1b6a3a64c3@mail.gmail.com> Message-ID: <29da5d150603291435o3bb4ffc6ud75fe108e5ec9f23@mail.gmail.com> Actually, because when I created these websites with events, I was dealing with an individual's events, and on the large scale, any one user most likely won't have an overwhelming amount of events. So each time their calendar was loaded, I grabbed all their events, and looped through them (with some filters, like if it never recurred, and it didn't happen during that month, I didn't need to grab that). In addition to my key/value approach that I described earlier, it was just a huge if / else if block, and if anyone has any suggestions on how to improve that, I'd be very happy to hear. Basically, right now it goes through the events one at a time checking each day for each event. For instance, if an event is to happen once every month on the 29th, it would have a key of 1, and a value of 29, and then if the event had the start time of "yyyy-mm-29", it would return true for that event on that day. On 3/29/06, csnyder wrote: > > On 3/29/06, Brian O'Connor wrote: > > The way I always handled occurance was to have two fields in the > database, a > > key (usually an integer), and a value, which I stored as a string. > > > > I then had a function which took an event and a day in, and checked the > > events occurance key / value to see if it applied for that day, and > returned > > either true or false. > > > > I doubt this is the most efficient way, but it works for me. > > > Let's say I want to render all of the events on a particular date: > April 1, 2006, a Saturday. There is an event on January 18, 2003 (also > a Saturday) which is set to recur every two weeks... which translates > in this case to "odd Saturdays". Okay, I see how that would work. > > For any given day you generate a list of all the possible matches > (April 1, 2006 is a Saturday, an odd Saturday, first Saturday, first > of the month, etc), and then SELECT against those matches to find the > events that apply. > > And multi-day events would just work, as long as you enforce a maximum > duration, right? If events can last up to 5 days, you have to start > your lookups 5 days before the month in question in order to capture > recurring events that started before, but end during the month. > > To be truly useful you need to have an override mechanism -- one time > events that mask out properties on a recurring event. We have a > monthly meeting the recurs on 4th Tuesdays, but each instance of that > event has a different "who" and "what". That seems like the easy part. > A truly excellent implementation would even allow you to push or pull > the start date, so that Cliff could reschedule the publication of his > newsletter. > > You might also want an event log to track events that have actually > happened, so that when a recurring event is updated to reflect a new > reality, it doesn't rewrite history. > > John, your taxonomy idea is interesting (fetch events tagged > "Wednesdays") and essentially the same as the "key/value" approach > Brian described. If you're using a system that has robust tagging > (like Ning) it might save some time. > > > -- > Chris Snyder > http://chxo.com/ > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > -- Brian O'Connor -------------- next part -------------- An HTML attachment was scrubbed... URL: From 1j0lkq002 at sneakemail.com Wed Mar 29 17:45:05 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 29 Mar 2006 14:45:05 -0800 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> <2ca9ba910603291126i1ffe9486o20676b9048399561@mail.gmail.com> <29da5d150603291135m2353f21aod7652e1b6a3a64c3@mail.gmail.com> Message-ID: <15409-74891@sneakemail.com> csnyder chsnyder-at-gmail.com |nyphp dev/internal group use| wrote: >On 3/29/06, csnyder wrote: > > > >>For any given day you generate a list of all the possible matches >>(April 1, 2006 is a Saturday, an odd Saturday, first Saturday, first >>of the month, etc), and then SELECT against those matches to find the >>events that apply. >> >> > >Sorry, just thinking about this, I think it's fair to point out that >this is 30+ queries to render a month view, versus a system that >doesn't allow recurring events and can pull all of the events that >appear in a month with a single query. > >It's not that bad a thing, though. "I can do recurring events, but >it'll cost ya." ;-) > > I'm not ready to count queries.... I believe that's an artificial restraint that is really an accommodation of the business layer/logic. If we have good data, but the app needs a monthly calendar, doesn't that set a requirement for a subquery/temp table and then aren't there additional app-specific efficiencies likely to be available (generate monthly activity table for MAY; update if any MAY events changed, etc). Perhaps this is exactly what I found distasteful about available "solutions"... they tied the business logic into the data storage too early in the game. From 1j0lkq002 at sneakemail.com Wed Mar 29 17:47:04 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 29 Mar 2006 14:47:04 -0800 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> <2ca9ba910603291126i1ffe9486o20676b9048399561@mail.gmail.com> <29da5d150603291135m2353f21aod7652e1b6a3a64c3@mail.gmail.com> Message-ID: <11357-79692@sneakemail.com> csnyder chsnyder-at-gmail.com |nyphp dev/internal group use| wrote: > John, your taxonomy idea is interesting (fetch events tagged > >"Wednesdays") and essentially the same as the "key/value" approach >Brian described. If you're using a system that has robust tagging >(like Ning) it might save some time. > > > > I'll grant that a robust technology for tagging might provide a convenient / efficient tool for managing event data, but I am not looking for that practical route (and don't want to do that research ;-) I want to create a robust/effective tool for managing event data.... maybe tagging can be added later :-) From 1j0lkq002 at sneakemail.com Wed Mar 29 18:47:07 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 29 Mar 2006 15:47:07 -0800 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: <24106-13761@sneakemail.com> References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> Message-ID: <29612-45756@sneakemail.com> WARNING: Casual mentions of periodic functions and linear algebar enclosed. But the post starts with "free beer" -------------------------------------------------------------------------------------------------------------------- Free beer on my deck at 8pm tonight. (really ;-) My wife will tolerate the often-worse-than-public-restroom use until about 11pm, so let's set the event details: Absolute time zero is right now (2:50pm PST) Start: 8pm PST End : 11pm PST Event #2: For those who can't fly out to the left coast in time, a mirror beer gathering on Hans K's deck in NJ starting at 10pm EST tonight. Start: 10pm EST End : 2am next day EST Reduction handled by business logic/app layer: Event1(Offset of Start)=310 (minutes from absolute zero) Event1(Duration)=180 Event2(Offset of Start)=7hrs 10 min = 430 min Event2(Duration)=180 *if* the time base has 10 minute time slices, then evID1 occupies [310:490] and evID2 occupies [430:610] of the absolute_time_base. abs_time[130] is associated with evID1 abs_time[140] is associated with evID1 abs_time[150] is associated with evID1 . . . abs_time[430] is associated with evID1,evID2 abs_time[440] is associated with evID1,evID2 . . . abs_time[490] is associated with evID1,evID2 abs_time[500] is associated with evID2 . . . abs_time[610] evID2 abs_time[620] NULL Make mine weekly. Luckily, "weekly" is digital except for disturbances (like DST). If I assume "disturbances" are processed against the time_base locally, then, all I need to do is preset the busy_times as (7 days = 7 x 24 x 60 = 10080 minutes) so 130+10080=10210 10210+10080=20290 20290+10080=30370 etc abs_time[10210] evID1 ... abs_time[10210=180] evID1 abs_time[20290] evID1 ... abs_time[20290+180] evID1 abs_time[30370] evID1 ... abs_time[30370+180] evID1 Note the assignment of evID1 because nothing else had changed (same venue, beer). If I make one week a wine event, it has to have a new eventID (evID3) so it can have new properties. Yes it can inherit...that's not the point here. So by this, I have a time_scale of 10 minute slices assigned to an unlimited number of evIDs as scheduled. Let this be the "virtual" database, because nobody wants to manage time as a collection of 10 minute slices ad-infinitum. Or do we? The linear algebra that can be used to manage an array of uniform time slices like that is very, very fast. An "event" is a function of time f(t). A "disturbance" such as daylight savings time is a (usually linear) warping of the time base..a set of limits on t for which f(t) is to be adjusted by some algorithm. In fact, non-linear warping is fine, too so if for example putamare is introducing some reality-augmenting substances to his chyme ("chyme, meet my colorful little sugar-coated friend") during the time that overlaps an event, the calendar can non-linearly warp time for him so he stays in step with the rest of the crowd (provided anyone can characterize putamare....let that stand as an assumption for now). So we don't really need to store an event as a sequence of bits but as an periodic function. For most events the event function is completely described by a constant (event is ON or OFF) and for one-time events the preiodic event is similarly trivial as it is also a constant plus a start/duration. For recurring events that are sensible, the storage is simply a few parameters representing a periodic function (square wave...square wave with a frequency of oscillation and a start). For really complicated recurring events, there is a predictable periodicity if they are based on the calendar (and they can therefore be written as functions). That covers anything that references days of the week or nth week of the month or nth Tuesday of even months during Spring and Fall or even moon phases or dates relative to DST even. Even whacked recurring events can often be referenced to another singular definable event and are thus easily represented as functions. Completely arbitrary recurring events, are well.... not recurring :-) So what gets stored (and queried)? Well... seems unlikely we want to do linear algebra on a web server for potentially every HTTP request, so we need temp tables of "event date". How often must they be regenerated? How far out into the future do we need to have handy, or at what cost do we ask the smarter server to regenerate them? How often will it be updated, and how far into the future? All application specific...but think of all that a-priori knowledge available to the application developer at that point. A doctor may schedule 15 minute appointments across 4 rooms 3 months in advance.... A hotel may book night long reservations 2 years in advance. A cruise ship may book week long reservations 2 years in advance. When the Doctor looks ahead 2 months, pause to regenerate that table set? At first looking back is clumsy as it can be huge... but then history won't change so those are archives anyway. Plenty of flexibility and it all belongs to the application developer. That's what I see so far... From jeff.knight at gmail.com Wed Mar 29 19:36:46 2006 From: jeff.knight at gmail.com (Jeff Knight) Date: Wed, 29 Mar 2006 18:36:46 -0600 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: <29612-45756@sneakemail.com> References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> <29612-45756@sneakemail.com> Message-ID: <2ca9ba910603291636l7bcb1bf6md0e8089833664fc2@mail.gmail.com> On 3/29/06, inforequest <1j0lkq002 at sneakemail.com> wrote something that sounded like: > blah blah blah... beer ...blah blah blah... beer ...blah blah blah... > beer ...blah blah blah... beer So, what was your point about the beer again? From chsnyder at gmail.com Wed Mar 29 19:48:33 2006 From: chsnyder at gmail.com (csnyder) Date: Wed, 29 Mar 2006 19:48:33 -0500 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: <29612-45756@sneakemail.com> References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> <29612-45756@sneakemail.com> Message-ID: On 3/29/06, inforequest <1j0lkq002 at sneakemail.com> wrote: [skipping math -- we're engineers here] > So what gets stored (and queried)? Well... seems unlikely we want to do > linear algebra on a web server for potentially every HTTP request, so we > need temp tables of "event date". Presume you mean event data. > How often must they be regenerated? > How far out into the future do we need to have handy, or at what cost do > we ask the smarter server to regenerate them? How often will it be > updated, and how far into the future? Well now you're cheating. ;-) Or rather, you're making a practical case for pre-rendering all of those time slices so that when you go to render a calendar view (whether 1 month or 3 days or 2 hours) you can just fetch all of the slices that apply and spit them out in a template. > At first > looking back is clumsy as it can be huge... but then history won't > change so those are archives anyway. Yes, exactly. You just never update timeslices that apply to times in the past. I'm not sure how much longer this needs to carry on, but I'll go back to my original post and point out that there is some benefit to just brute-force plotting recurring events as they are inserted / updated. There's around 500,000 10-minute time slices between now and 2016. It's a big number, but not scary big. Any single recurring event is going to touch a miniscule fraction of them. So your "temp" table could actually reflect changes in real time. And lets not forget that people and resources can be mapped to timeslices as well, which gives you scheduling capability. But the real question is... who besides Jeff Knight is crazy enough to build such a system? If you get it right, you'll be well on your way to replacing everybody's most-hated email server.... From 1j0lkq002 at sneakemail.com Wed Mar 29 20:22:56 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Wed, 29 Mar 2006 17:22:56 -0800 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> <29612-45756@sneakemail.com> Message-ID: <23436-17358@sneakemail.com> csnyder chsnyder-at-gmail.com |nyphp dev/internal group use| wrote: >On 3/29/06, inforequest <1j0lkq002 at sneakemail.com> wrote: > >>ow often must they be regenerated? >>How far out into the future do we need to have handy, or at what cost do >>we ask the smarter server to regenerate them? How often will it be >>updated, and how far into the future? >> >> >Well now you're cheating. ;-) > >Or rather, you're making a practical case for pre-rendering all of >those time slices so that when you go to render a calendar view >(whether 1 month or 3 days or 2 hours) you can just fetch all of the >slices that apply and spit them out in a template. > > or letting the app developer cheat as possible/practical, while protecting the "raw" data from harm. YES re: the calendar view being just about what it is now. I abstract the event database and design it to support optimizations that support such views. > I'll go back >to my original post and point out that there is some benefit to just >brute-force plotting recurring events as they are inserted / updated. >There's around 500,000 10-minute time slices between now and 2016. >It's a big number, but not scary big. Any single recurring event is >going to touch a miniscule fraction of them. > >So your "temp" table could actually reflect changes in real time. > > For many deployments I expect that to be the case :-) They would push back to the time slice database prior to regenerating new "temp" tables. >And lets not forget that people and resources can be mapped to timeslices as well, which gives you scheduling capability. > > Whoa there cowboy. I am way too smart to get involved with scheduling. Next thing you know somebody will want to predict the shortest path for a traveling salesman, too! >But the real question is... who besides Jeff Knight is crazy enough to >build such a system? If you get it right, you'll be well on your way to replacing >everybody's most-hated email server.... > > Me and my Matlab are well on the way. I have no idea of the numerical capabilities of a web server, but expect to find out someday. From michael.southwell at nyphp.org Wed Mar 29 20:45:06 2006 From: michael.southwell at nyphp.org (Michael Southwell) Date: Wed, 29 Mar 2006 20:45:06 -0500 Subject: [nycphp-talk] mail() inconsistency/problem Message-ID: <6.2.3.4.2.20060329202759.0253e9b8@mail.optonline.net> I have this simple 3-line test script (which actually says dneba.com rather than example.com ;-): References: <6.2.3.4.2.20060329202759.0253e9b8@mail.optonline.net> Message-ID: jump on the log files: mail, server, etc. if the mail did not go out, somewhere that was noted, and probably the reason why. log files are your friends. -ed potter :-) On 3/29/06, Michael Southwell wrote: > I have this simple 3-line test script (which actually says dneba.com > rather than example.com ;-): > > if ( mail( 'southwell at example.com', 'simple testing', 'no > variables here' ) === FALSE ) echo 'There was an error accepting your > review. Please try again later.'; > else echo 'Your mail was sent.'; > > Running it from domain #1 (and also #3, 4, and 5) works > perfectly. Running it from domain #2 gives a confirmation message, > but the mail never arrives. > > Aha, #2 is running php 5.1.2 and the others are still 4. But the php > docs don't tell me anything about why this extremely simple example > will work in 4 and not 5. Any ideas? > > Michael Southwell, Vice President for Education > New York PHP > http://www.nyphp.com/training - In-depth PHP Training Courses > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From jonbaer at jonbaer.com Thu Mar 30 00:26:42 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Thu, 30 Mar 2006 00:26:42 -0500 Subject: [nycphp-talk] mail() inconsistency/problem In-Reply-To: References: <6.2.3.4.2.20060329202759.0253e9b8@mail.optonline.net> Message-ID: <912533C0-3D73-47DA-B8B5-AAB6CF312A49@jonbaer.com> Might want to try Zend_Mail on PHP5 ... http://framework.zend.com/manual/en/zend.mail.sending.html Also look to see if your php.ini is a little funky as per this bug ... http://bugs.php.net/bug.php?id=29276 - Jon On Mar 29, 2006, at 10:26 PM, edward potter wrote: > jump on the log files: mail, server, etc. if the mail did not go out, > somewhere that was noted, and probably the reason why. log files are > your friends. > > -ed potter :-) > > On 3/29/06, Michael Southwell wrote: >> I have this simple 3-line test script (which actually says dneba.com >> rather than example.com ;-): >> >> > if ( mail( 'southwell at example.com', 'simple testing', 'no >> variables here' ) === FALSE ) echo 'There was an error accepting your >> review. Please try again later.'; >> else echo 'Your mail was sent.'; >> >> Running it from domain #1 (and also #3, 4, and 5) works >> perfectly. Running it from domain #2 gives a confirmation message, >> but the mail never arrives. >> >> Aha, #2 is running php 5.1.2 and the others are still 4. But the php >> docs don't tell me anything about why this extremely simple example >> will work in 4 and not 5. Any ideas? >> >> Michael Southwell, Vice President for Education >> New York PHP >> http://www.nyphp.com/training - In-depth PHP Training Courses >> >> _______________________________________________ >> New York PHP Community Talk Mailing List >> http://lists.nyphp.org/mailman/listinfo/talk >> New York PHP Conference and Expo 2006 >> 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 > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From andrew at plexpod.com Thu Mar 30 09:50:33 2006 From: andrew at plexpod.com (Andrew Yochum) Date: Thu, 30 Mar 2006 09:50:33 -0500 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> <2ca9ba910603291126i1ffe9486o20676b9048399561@mail.gmail.com> <29da5d150603291135m2353f21aod7652e1b6a3a64c3@mail.gmail.com> Message-ID: <20060330145033.GN9709@desario.homelinux.net> On Wed, Mar 29, 2006 at 05:33:20PM -0500, csnyder wrote: > On 3/29/06, csnyder wrote: > > > For any given day you generate a list of all the possible matches > > (April 1, 2006 is a Saturday, an odd Saturday, first Saturday, first > > of the month, etc), and then SELECT against those matches to find the > > events that apply. > > Sorry, just thinking about this, I think it's fair to point out that > this is 30+ queries to render a month view, versus a system that > doesn't allow recurring events and can pull all of the events that > appear in a month with a single query. > > It's not that bad a thing, though. "I can do recurring events, but > it'll cost ya." ;-) One of the most important parts of publishing complex content like events is caching of the generated data structures, output, & other relevant pieces. One way to do that is to generate another table in a publication process so that you *can* do the 1 query version on intermediate de-normalized and less complex data. Or, of course you can cache output, etc. Andrew -- Andrew Yochum Plexpod andrew at plexpod.com 718-360-0879 From morgan at forsalebyowner.com Thu Mar 30 17:03:16 2006 From: morgan at forsalebyowner.com (Morgan Craft) Date: Thu, 30 Mar 2006 17:03:16 -0500 Subject: [nycphp-talk] mail() inconsistency/problem In-Reply-To: <6.2.3.4.2.20060329202759.0253e9b8@mail.optonline.net> References: <6.2.3.4.2.20060329202759.0253e9b8@mail.optonline.net> Message-ID: <442C55A4.7000100@forsalebyowner.com> This is what I use though the zend framework is showing promise. http://phpmailer.sourceforge.net/ Michael Southwell wrote: > I have this simple 3-line test script (which actually says dneba.com > rather than example.com ;-): > > if ( mail( 'southwell at example.com', 'simple testing', 'no > variables here' ) === FALSE ) echo 'There was an error accepting your > review. Please try again later.'; > else echo 'Your mail was sent.'; > > Running it from domain #1 (and also #3, 4, and 5) works > perfectly. Running it from domain #2 gives a confirmation message, > but the mail never arrives. > > Aha, #2 is running php 5.1.2 and the others are still 4. But the php > docs don't tell me anything about why this extremely simple example > will work in 4 and not 5. Any ideas? > > Michael Southwell, Vice President for Education > New York PHP > http://www.nyphp.com/training - In-depth PHP Training Courses > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > From prusak at gmail.com Thu Mar 30 17:46:25 2006 From: prusak at gmail.com (Ophir Prusak) Date: Thu, 30 Mar 2006 17:46:25 -0500 Subject: [nycphp-talk] Arctic Issue Tracker - Any Good? In-Reply-To: <5e2aaca40603242121m4cc58c67j8c1e19ed84c16f9@mail.gmail.com> References: <44183E2D.3050208@php.net> <10030-71881@sneakemail.com> <5e2aaca40603242121m4cc58c67j8c1e19ed84c16f9@mail.gmail.com> Message-ID: for those looking for options, i found these pages with a nice list of options: http://weblogs.asp.net/fmarguerie/articles/bug_tracking_tools.aspx http://usefulinc.com/edd/notes/IssueTrackers http://www.a-a-p.org/tools_tracking.html enjoy On 3/25/06, Greg Rundlett wrote: > > > > > > > > +1 for Trak. Also Mantis works good, although I haven't admin'ed it nor > > pushed it at all. http://www.mantisbt.org/ > > > -1 for Trak[sic]. > > I think the advantage of Trac is that it combines everything in one > package: SVN repo browsing, issue tracking, milestones and a wiki. So, it > does carry a lot of bang for the buck so to speak. With one system, you've > got a lot less to maintain. > > The problem with Trac is that it's not very good at any of them. The wiki > is horrible... very picky and sometimes awkward with it's syntax, plus a > lack of features (eg. categories). > E.g. > 1. this > 1. is > 1. a > 1. numbered list > =This heading won't work= > = But this one will = (it's got spaces between the '=' and the text) > > Mediawiki would be a much better wiki engine. > > The svn browser can't handle large changesets properly (freezes) > > cvsweb would probably be a better web repo browser. > > The issue tracker is not something I'd want to make customer facing. In > fact, it doesn't seem to be geared for both external and internal use. > (Unless by external you mean outside developers of your software.) > > I'm still looking for a good issue tracker. I'm glad to have come across > this thread so I can check some of the links provided. > > Cheers, > > Greg > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > > > -- Ophir Prusak http://www.prusak.com From prusak at gmail.com Thu Mar 30 17:48:14 2006 From: prusak at gmail.com (Ophir Prusak) Date: Thu, 30 Mar 2006 17:48:14 -0500 Subject: [nycphp-talk] Arctic Issue Tracker - Any Good? In-Reply-To: References: Message-ID: After a couple of weeks playing with Arctic - The gui is very nice and intuitive. Unfortunatly it's missing a few key features at the moment (like filters and sorting) that make it un-usable for us. Ophir On 3/15/06, Ophir Prusak wrote: > Hi All, > > So I'm installing for the zillionth time a new issue tracker at work. > My main concern is that it has to be simple to use (and php/mysql). > > Any comments on Arctic? > > http://www.olate.co.uk/products/arctic/ > > btw, here are couple of good lists of issue trackers: > > http://weblogs.asp.net/fmarguerie/articles/408858.aspx > http://usefulinc.com/edd/notes/IssueTrackers > > thanks > Ophir > > -- > Ophir Prusak > http://www.prusak.com > -- Ophir Prusak http://www.prusak.com From beau at open-source-staffing.com Fri Mar 31 09:09:17 2006 From: beau at open-source-staffing.com (Beau Gould) Date: Fri, 31 Mar 2006 09:09:17 -0500 Subject: [nycphp-talk] The New York PHP Meetup Group Message-ID: <00b601c654cc$b34f0640$0a02a8c0@superioss.com> Join the New York PHP Meetup Group http://php.meetup.com/322 Thank you, Beau J. Gould Open Source Staffing beau at open-source-staffing.com www.open-source-staffing.com http://groups.yahoo.com/group/linuxjobz -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.3/298 - Release Date: 3/30/2006 From lamolist at cyberxdesigns.com Fri Mar 31 10:10:22 2006 From: lamolist at cyberxdesigns.com (Hans Kaspersetz) Date: Fri, 31 Mar 2006 10:10:22 -0500 Subject: [nycphp-talk] Events Management - is there a solid F/OS code base ? In-Reply-To: References: <002f01c6527c$1155dd20$68e4a144@Rubicon> <24106-13761@sneakemail.com> <29612-45756@sneakemail.com> Message-ID: <442D465E.70204@cyberxdesigns.com> No time like the present to open my mouth and confirm what everyone is thinking. This is how the dreaded Y2016 bug got started. HCK > Yes, exactly. You just never update timeslices that apply to times in the past. > > I'm not sure how much longer this needs to carry on, but I'll go back > to my original post and point out that there is some benefit to just > brute-force plotting recurring events as they are inserted / updated. > There's around 500,000 10-minute time slices between now and 2016. > It's a big number, but not scary big. Any single recurring event is > going to touch a miniscule fraction of them. > From lamolist at cyberxdesigns.com Fri Mar 31 10:13:27 2006 From: lamolist at cyberxdesigns.com (Hans Kaspersetz) Date: Fri, 31 Mar 2006 10:13:27 -0500 Subject: [nycphp-talk] mail() inconsistency/problem In-Reply-To: <912533C0-3D73-47DA-B8B5-AAB6CF312A49@jonbaer.com> References: <6.2.3.4.2.20060329202759.0253e9b8@mail.optonline.net> <912533C0-3D73-47DA-B8B5-AAB6CF312A49@jonbaer.com> Message-ID: <442D4717.3090803@cyberxdesigns.com> I would check that the mail server and dns on server 2 is actually correct and that the mail isn't being eaten by spam filter somewhere. If you have a bad return-path address I have run into this problem. Or if you are sending from an address that doesn't exist or if the server doesn't have a reverse lookup address. Hans Kaspersetz http://www.cyberxdesigns.com From lamolist at cyberxdesigns.com Fri Mar 31 13:19:13 2006 From: lamolist at cyberxdesigns.com (Hans Kaspersetz) Date: Fri, 31 Mar 2006 13:19:13 -0500 Subject: [nycphp-talk] Mysql Client Version Wrong. Message-ID: <442D72A1.3080204@cyberxdesigns.com> I have a windows xp box with php4 on apache 1.3 and php5 on apache 2 and the db is MySQL 4.1. When I start the php5 apache phpinfo reports Client API version 4.1.18. When I start php4 and Apache 1.3 phpinfo reports Client API version 3.23.blah. I can not figure out how to update my client version for the php4 instance. When I try to connect to the 4.1 db with the php it complains about the wrong client. There was at some point 3.23 on this box, but that was ages ago. Any ideas? Thanks, Hans From rolan at omnistep.com Fri Mar 31 13:44:02 2006 From: rolan at omnistep.com (Rolan Yang) Date: Fri, 31 Mar 2006 13:44:02 -0500 Subject: [nycphp-talk] Mysql Client Version Wrong. In-Reply-To: <442D72A1.3080204@cyberxdesigns.com> References: <442D72A1.3080204@cyberxdesigns.com> Message-ID: <442D7872.8090300@omnistep.com> update the password for the mysql user using old_password('yourpassword'). Here is more info: http://dev.mysql.com/doc/refman/5.0/en/old-client.html Hans Kaspersetz wrote: > I have a windows xp box with php4 on apache 1.3 and php5 on apache 2 and > the db is MySQL 4.1. When I start the php5 apache phpinfo reports > Client API version 4.1.18. When I start php4 and Apache 1.3 phpinfo > reports Client API version 3.23.blah. I can not figure out how to > update my client version for the php4 instance. When I try to connect > to the 4.1 db with the php it complains about the wrong client. There > was at some point 3.23 on this box, but that was ages ago. Any ideas? > > Thanks, > Hans > > From ps at pswebcode.com Fri Mar 31 13:54:05 2006 From: ps at pswebcode.com (Peter Sawczynec) Date: Fri, 31 Mar 2006 13:54:05 -0500 Subject: [nycphp-talk] Mysql Client Version Wrong. In-Reply-To: <442D7872.8090300@omnistep.com> Message-ID: <003201c654f4$7bff7350$68e4a144@Rubicon> This one hit kept me up once awhile ago, so just to clarify quickly: MySQL prior to 4.1 was using a smaller encryption on the password field inside the database. So when you run the query: SET PASSWORD FOR root @ localhost = OLD_PASSWORD('root_current_pwd'); ... now root's pwd is saved the older way. Additionally, if you look further you can startup MysQL with a switch to make the entire db use the old password encryption style. peter -----Original Message----- From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of Rolan Yang Sent: Friday, March 31, 2006 1:44 PM To: NYPHP Talk Subject: Re: [nycphp-talk] Mysql Client Version Wrong. update the password for the mysql user using old_password('yourpassword'). Here is more info: http://dev.mysql.com/doc/refman/5.0/en/old-client.html Hans Kaspersetz wrote: > I have a windows xp box with php4 on apache 1.3 and php5 on apache 2 > and > the db is MySQL 4.1. When I start the php5 apache phpinfo reports > Client API version 4.1.18. When I start php4 and Apache 1.3 phpinfo > reports Client API version 3.23.blah. I can not figure out how to > update my client version for the php4 instance. When I try to connect > to the 4.1 db with the php it complains about the wrong client. There > was at some point 3.23 on this box, but that was ages ago. Any ideas? > > Thanks, > Hans > > _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk New York PHP Conference and Expo 2006 http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php From tgales at tgaconnect.com Fri Mar 31 13:57:15 2006 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 31 Mar 2006 13:57:15 -0500 Subject: [nycphp-talk] Mysql Client Version Wrong. In-Reply-To: <442D72A1.3080204@cyberxdesigns.com> References: <442D72A1.3080204@cyberxdesigns.com> Message-ID: <442D7B8B.3040503@tgaconnect.com> Hans Kaspersetz wrote: > I have a windows xp box with php4 on apache 1.3 and php5 on apache 2 and > the db is MySQL 4.1. When I start the php5 apache phpinfo reports > Client API version 4.1.18. When I start php4 and Apache 1.3 phpinfo > reports Client API version 3.23.blah. I can not figure out how to > update my client version for the php4 instance. When I try to connect > to the 4.1 db with the php it complains about the wrong client. There > was at some point 3.23 on this box, but that was ages ago. Any ideas? > http://lists.nyphp.org/pipermail/talk/2004-December/013200.html -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From 1j0lkq002 at sneakemail.com Fri Mar 31 14:59:22 2006 From: 1j0lkq002 at sneakemail.com (inforequest) Date: Fri, 31 Mar 2006 11:59:22 -0800 Subject: [nycphp-talk] [OT] Re: The New York PHP Meetup Group SPAM In-Reply-To: <00b601c654cc$b34f0640$0a02a8c0@superioss.com> References: <00b601c654cc$b34f0640$0a02a8c0@superioss.com> Message-ID: <26773-20413@sneakemail.com> Beau Gould beau-at-open-source-staffing.com |nyphp dev/internal group use| wrote: >Join the New York PHP Meetup Group >http://php.meetup.com/322 > > >Thank you, >Beau J. Gould > > Hey now that's a positive first impression! Spam the talk list with your recruiter ad (slightly edited): "My name is Beau Gould and I'm a recruiter specializing in open source staffing. I've got a trillion tri-state clients begging me for skilled PHP/MySQL Developers and I thought this would be a good way to attract good candidates. Since I am not local to NYC (anymore) I was hoping to find someone to take care of organizing the meetups. Anyone interested can email beaudiddly at open-source-stuffing.com. In the meantime, please feel free to check out the message board for my current tri-state opportunities. What's the commission for "someone to take care of organizing the meetups"? lol From lamolist at cyberxdesigns.com Fri Mar 31 16:01:46 2006 From: lamolist at cyberxdesigns.com (Hans Kaspersetz) Date: Fri, 31 Mar 2006 16:01:46 -0500 Subject: [nycphp-talk] Mysql Client Version Wrong. In-Reply-To: <442D7B8B.3040503@tgaconnect.com> References: <442D72A1.3080204@cyberxdesigns.com> <442D7B8B.3040503@tgaconnect.com> Message-ID: <442D98BA.6080006@cyberxdesigns.com> Alrighty, I booted up a machine that has only ever had MySQL 4.1 on it. I installed Apache 1.3 from the Apache Installer, then I installed PHP from the zip file downloaded from the PHP.net site. When I run phpinfo() on this new setup, it reports: Client API Version: 3.23.49. I did a search on the computer for libmysql.dll and found 1 copy in the bin folder of MySQL 4.1 and 1 copy in my PHP4 folder. I took the copy from the bin folder of MySQL 4.1 and replaced the version in the PHP folder. Stopped and restarted apache, phpinfo still reports 3.23.49 as the client version. Anyone have any new ideas? Thanks, Hans Tim Gales wrote: > Hans Kaspersetz wrote: > >> I have a windows xp box with php4 on apache 1.3 and php5 on apache 2 and >> the db is MySQL 4.1. When I start the php5 apache phpinfo reports >> Client API version 4.1.18. When I start php4 and Apache 1.3 phpinfo >> reports Client API version 3.23.blah. I can not figure out how to >> update my client version for the php4 instance. When I try to connect >> to the 4.1 db with the php it complains about the wrong client. There >> was at some point 3.23 on this box, but that was ages ago. Any ideas? >> >> > > http://lists.nyphp.org/pipermail/talk/2004-December/013200.html > > From chsnyder at gmail.com Fri Mar 31 16:06:28 2006 From: chsnyder at gmail.com (csnyder) Date: Fri, 31 Mar 2006 16:06:28 -0500 Subject: [nycphp-talk] [OT] Re: The New York PHP Meetup Group SPAM In-Reply-To: <26773-20413@sneakemail.com> References: <00b601c654cc$b34f0640$0a02a8c0@superioss.com> <26773-20413@sneakemail.com> Message-ID: On 3/31/06, inforequest <1j0lkq002 at sneakemail.com> wrote: > What's the commission for "someone to take care of organizing the > meetups"? lol Oh, I reckon no commission would be necessary... provided the organizer is a competing recruiter. ;-) From tim at tmcode.com Fri Mar 31 16:58:49 2006 From: tim at tmcode.com (Tim McEwen) Date: Fri, 31 Mar 2006 16:58:49 -0500 Subject: [nycphp-talk] Unfriendly Float Handling Message-ID: I apologize if this has already been discussed to death here but I would love to hear people's thoughts on it. I am trying to justify to a colleague why the behavior below is not a massive flaw in PHP. To a new programmer, the following code should result in $a being equal to $b: $a="49.95" + "3.95"; // or even $a = 49.95 + 3.95; $b=53.90; Unfortunately floats in PHP are subject to the same problems you find in many languages with fixed precision. So due to rounding, in this case $a is not equal to $b. This behavior is documented in the manual: http://www.php.net/manual/en/ language.types.float.php#AEN3375 Straight from the manual: "So never trust floating number results to the last digit and never compare floating point numbers for equality." Come again? Never compare floating point numbers for equality? And thats not a bad thing? Given the fact that PHP is so easy to learn and that it is very commonly used for financial related tasks such as ecommerce, doesn't it stand to reason that people will assume that they can use the internal PHP operators on dollar amounts? Since many people are going to just assume they can do math in a natural manner, shouldn't PHP a little more proactive to ensure that developers won't get burned by this? I've spoken to a few php contributors about this have had very little interest in tackling this issue. The "official" answer is that if you are doing math on fixed precision numbers you should use either the bc or gmp but these extension as not even enabled by default. From what I understand, there would be a speed penalty for detecting and dealing with fixed percision numbers. Some people might not mind the speed hit so why not make it a configurable choice? Or why not create a built in fixed precision type? Whatever the case, I think PHP needs a built in solution that does not rely on extensions. Thoughts? -Tim From jonbaer at jonbaer.com Fri Mar 31 17:50:40 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Fri, 31 Mar 2006 17:50:40 -0500 Subject: [nycphp-talk] Mysql Client Version Wrong. In-Reply-To: <442D98BA.6080006@cyberxdesigns.com> References: <442D72A1.3080204@cyberxdesigns.com> <442D7B8B.3040503@tgaconnect.com> <442D98BA.6080006@cyberxdesigns.com> Message-ID: So the php.ini being used (when calling phpinfo()) is definatley pointing to this extension? Might want to scan the entire .ini file for what extension is being used, might be redeclared somewhere, else a strange problem indeed. - Jon On Mar 31, 2006, at 4:01 PM, Hans Kaspersetz wrote: > Alrighty, I booted up a machine that has only ever had MySQL 4.1 on > it. I installed Apache 1.3 from the Apache Installer, then I > installed > PHP from the zip file downloaded from the PHP.net site. > > When I run phpinfo() on this new setup, it reports: Client API > Version: > 3.23.49. I did a search on the computer for libmysql.dll and found 1 > copy in the bin folder of MySQL 4.1 and 1 copy in my PHP4 folder. I > took the copy from the bin folder of MySQL 4.1 and replaced the > version > in the PHP folder. Stopped and restarted apache, phpinfo still > reports > 3.23.49 as the client version. Anyone have any new ideas? > > Thanks, > Hans > > > Tim Gales wrote: >> Hans Kaspersetz wrote: >> >>> I have a windows xp box with php4 on apache 1.3 and php5 on >>> apache 2 and >>> the db is MySQL 4.1. When I start the php5 apache phpinfo reports >>> Client API version 4.1.18. When I start php4 and Apache 1.3 phpinfo >>> reports Client API version 3.23.blah. I can not figure out how to >>> update my client version for the php4 instance. When I try to >>> connect >>> to the 4.1 db with the php it complains about the wrong client. >>> There >>> was at some point 3.23 on this box, but that was ages ago. Any >>> ideas? >>> >>> >> >> http://lists.nyphp.org/pipermail/talk/2004-December/013200.html >> >> > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > http://www.nyphpcon.com > Show Your Participation in New York PHP > http://www.nyphp.org/show_participation.php > From tedd at sperling.com Fri Mar 31 18:08:42 2006 From: tedd at sperling.com (tedd) Date: Fri, 31 Mar 2006 18:08:42 -0500 Subject: [nycphp-talk] Unfriendly Float Handling In-Reply-To: References: Message-ID: At 4:58 PM -0500 3/31/06, Tim McEwen wrote: >I apologize if this has already been discussed to death here but I >would love to hear people's thoughts on it. I am trying to justify >to a colleague why the behavior below is not a massive flaw in PHP. >To a new programmer, the following code should result in $a being >equal to $b: > >$a="49.95" + "3.95"; // or even $a = 49.95 + 3.95; >$b=53.90; > >Unfortunately floats in PHP are subject to the same problems you find >in many languages with fixed precision. So due to rounding, in this >case $a is not equal to $b. This behavior is documented in the >manual: http://www.php.net/manual/en/ >language.types.float.php#AEN3375 Straight from the manual: "So >never trust floating number results to the last digit and never >compare floating point numbers for equality." Come again? Never >compare floating point numbers for equality? And thats not a bad >thing? > >Given the fact that PHP is so easy to learn and that it is very >commonly used for financial related tasks such as ecommerce, doesn't >it stand to reason that people will assume that they can use the >internal PHP operators on dollar amounts? Since many people are >going to just assume they can do math in a natural manner, shouldn't >PHP a little more proactive to ensure that developers won't get >burned by this? > >I've spoken to a few php contributors about this have had very little >interest in tackling this issue. The "official" answer is that if >you are doing math on fixed precision numbers you should use either >the bc or gmp but these extension as not even enabled by default. > > From what I understand, there would be a speed penalty for >detecting and dealing with fixed percision numbers. Some people >might not mind the speed hit so why not make it a configurable >choice? Or why not create a built in fixed precision type? Whatever >the case, I think PHP needs a built in solution that does not rely on >extensions. Thoughts? Thoughts? if ($a < $b + .01 && $a > $b - .01) { echo("Yes, close enough."); } else { echo("No"); } Or to whatever precision you want. tedd -- -------------------------------------------------------------------------------- http://sperling.com From adam at trachtenberg.com Fri Mar 31 18:22:55 2006 From: adam at trachtenberg.com (Adam Maccabee Trachtenberg) Date: Fri, 31 Mar 2006 18:22:55 -0500 (EST) Subject: [nycphp-talk] Unfriendly Float Handling In-Reply-To: References: Message-ID: On Fri, 31 Mar 2006, tedd wrote: > if ($a < $b + .01 && $a > $b - .01) I've found for me a more clear way to do this is: define('epsilon', 0.01); if (abs($a - $b) < epsilon) { But I don't feel strongly about it. :) -adam -- adam at trachtenberg.com | http://www.trachtenberg.com author of o'reilly's "upgrading to php 5" and "php cookbook" avoid the holiday rush, buy your copies today! From tgales at tgaconnect.com Fri Mar 31 18:33:43 2006 From: tgales at tgaconnect.com (Tim Gales) Date: Fri, 31 Mar 2006 18:33:43 -0500 Subject: [nycphp-talk] Mysql Client Version Wrong. In-Reply-To: References: <442D72A1.3080204@cyberxdesigns.com> <442D7B8B.3040503@tgaconnect.com> <442D98BA.6080006@cyberxdesigns.com> Message-ID: <442DBC57.7080100@tgaconnect.com> Jon Baer wrote: > So the php.ini being used (when calling phpinfo()) is definatley > pointing to this extension? Might want to scan the entire .ini file > for what extension is being used, might be redeclared somewhere, else > a strange problem indeed. > no in php4 the mysql stuff is built in from php.ini: ;Windows Extensions ;Note that MySQL and ODBC support is now built in, so no dll is needed for it. I thought that php snaps had a php_mysql.dll that came with it -- but it turns out the library is libmysql.dll not php_mysql.dll (sorry 'bout that chief) I did some minimal searching for a php_mysqli.dll for php4 and came up empty. I guess you would have to build your own php (using the updated client) Maybe you could build a php_mysqli.dll for php4 -- but I think it might be more of a challenge than its worth it can even be done. -- T. Gales & Associates 'Helping People Connect with Technology' http://www.tgaconnect.com From chsnyder at gmail.com Fri Mar 31 19:03:04 2006 From: chsnyder at gmail.com (csnyder) Date: Fri, 31 Mar 2006 19:03:04 -0500 Subject: [nycphp-talk] Unfriendly Float Handling In-Reply-To: References: Message-ID: On 3/31/06, Adam Maccabee Trachtenberg wrote: > On Fri, 31 Mar 2006, tedd wrote: > > > if ($a < $b + .01 && $a > $b - .01) > > I've found for me a more clear way to do this is: > > define('epsilon', 0.01); > > if (abs($a - $b) < epsilon) { > > But I don't feel strongly about it. :) > > -adam You definitely need to have a bag of tricks when you start dealing with monetary values (or other floats) in php. I felt exactly the same frustration the first time I crossed over from content management into commerce: four years of writing php code and I had never used number_format(). Are there any good articles or tipsheets out there on working with money in php? If not, maybe there should be a Financial Phundamentals to help get other developers up to speed on the best practices for being arbitrarily precise. -- Chris Snyder http://chxo.com/ From jellicle at gmail.com Fri Mar 31 19:15:49 2006 From: jellicle at gmail.com (Michael Sims) Date: Fri, 31 Mar 2006 19:15:49 -0500 Subject: [nycphp-talk] Unfriendly Float Handling In-Reply-To: References: Message-ID: <200603311915.49719.jellicle@gmail.com> On Friday 31 March 2006 19:03, csnyder wrote: > You definitely need to have a bag of tricks when you start dealing > with monetary values (or other floats) in php. I felt exactly the same > frustration the first time I crossed over from content management into > commerce: four years of writing php code and I had never used > number_format(). > > Are there any good articles or tipsheets out there on working with > money in php? If not, maybe there should be a Financial Phundamentals > to help get other developers up to speed on the best practices for > being arbitrarily precise. Banks just handle monetary values to 4 or 6 decimal places. If you manipulate values as "49.9500", it doesn't matter what you do to it, it will come out correct to the cent. Michael Sims From talk at esteticastudios.com Fri Mar 31 21:23:52 2006 From: talk at esteticastudios.com (Iulian Manea) Date: Sat, 1 Apr 2006 05:23:52 +0300 Subject: [nycphp-talk] Output Buffer FLUSH Message-ID: <20060401032145.32CA0A862D@virtu.nyphp.org> Hello everybody, I would really appreciate if one of you more experienced programmers could help me out on this. I am trying to get to work both in Firefox and Internet Explorer this little script below which mainly is based on output flushing. '; flush(); sleep(1); } ?> This should display some kind of a counter, each number appearing after a second has passed. This works just fine in Firefox, but somehow I cannot get Internet Explorer to flush its buffer. Does anyone have any idea?! Thanks in advance! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonbaer at jonbaer.com Fri Mar 31 23:46:54 2006 From: jonbaer at jonbaer.com (Jon Baer) Date: Fri, 31 Mar 2006 23:46:54 -0500 Subject: [nycphp-talk] Output Buffer FLUSH In-Reply-To: <20060401032145.32CA0A862D@virtu.nyphp.org> References: <20060401032145.32CA0A862D@virtu.nyphp.org> Message-ID: You need to flush a larger chunk of data to IE according to some ... echo str_pad('',4096)."\n"; http://us2.php.net/flush - Jon On Mar 31, 2006, at 9:23 PM, Iulian Manea wrote: > Hello everybody, > > > > I would really appreciate if one of you more experienced > programmers could help me out on this. > > I am trying to get to work both in Firefox and Internet Explorer > this little script below which mainly is based on output flushing. > > > > > for ($i=1; $i<=4; $i++) { > > echo $i.'
'; > > flush(); > > sleep(1); > > } > > > > ?> > > This should display some kind of a counter, each number appearing > after a second has passed. > > > > This works just fine in Firefox, but somehow I cannot get Internet > Explorer to flush its buffer. > > > > Does anyone have any idea?! > > > > Thanks in advance! > > _______________________________________________ > New York PHP Community Talk Mailing List > http://lists.nyphp.org/mailman/listinfo/talk > New York PHP Conference and Expo 2006 > 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: