From r.mariotti at fdcx.net Fri Dec 1 09:29:23 2006
From: r.mariotti at fdcx.net (R. Mariotti)
Date: Fri, 01 Dec 2006 09:29:23 -0500
Subject: [nycphp-talk] Additional eyes for troublesome (but simple) mysql
functions?
Message-ID: <45703C43.5000700@fdcx.net>
Gentlemen;
I've been playing with this for a full day now trying various formats
without luck. I'm convinced that I must be missing something.
So, before the weekend come around and I literally forget everything I
know about this, I thought I would post my error sections for some peer
assistance.
Can someone please take a look and see if there is anything obvious and
advise (I'm beyond embarrassment). The lines beginning with >>>> are
debugging lines to show what is contained in certain fields.
/************************************************************************************/
/* Determine if Specified 'system_id' is new or existing and set action
accordingly */
>>>> qb_default->db_host=[raid]
>>>> qb_default->db_user=[qb_user]
>>>> qb_default->db_password=[********]
>>>> qb_default->dbname=[quote_build_test]
$dbh =
mysql_connect($qb_default->db_host,$qb_default->db_user,$qb_default->db_password);
>>>> dbh=[Resource id #5]
$rtn = mysql_select_db($qb_default->dbname,$dbh);
>>>> rtn=[1]
$sql="select id from $qb_default->system_list where id =
'$system_id' limit 1";
>>>> sql=[select id from systems where id = '181' limit 1]
$req=mysql_query($sql,$rtn);
>>>> Warning: mysql_query(): supplied argument is not a valid
MySQL-Link resource
As you can see by the Warning message... mysql is stating that the $rtn
field I am sending is NOT a valid resource. However, it is the result
of the previous mysql_select_db and seems OK.
What am I missing???
Thanks all!
bobmct
From codebowl at gmail.com Fri Dec 1 09:34:28 2006
From: codebowl at gmail.com (Joseph Crawford)
Date: Fri, 1 Dec 2006 09:34:28 -0500
Subject: [nycphp-talk] Additional eyes for troublesome (but simple) mysql
functions?
In-Reply-To: <45703C43.5000700@fdcx.net>
References: <45703C43.5000700@fdcx.net>
Message-ID: <8d9a42800612010634q4e023aa4g6ac8c36a5d7b1e2a@mail.gmail.com>
I believe you would want to use $dbh and not $rtn\
--
Joseph Crawford Jr.
Zend Certified Engineer
Codebowl Solutions, Inc.
http://www.codebowl.com/
Blog: http://www.josephcrawford.com/
1-802-671-2021
codebowl at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From codebowl at gmail.com Fri Dec 1 09:35:24 2006
From: codebowl at gmail.com (Joseph Crawford)
Date: Fri, 1 Dec 2006 09:35:24 -0500
Subject: [nycphp-talk] Additional eyes for troublesome (but simple) mysql
functions?
In-Reply-To: <45703C43.5000700@fdcx.net>
References: <45703C43.5000700@fdcx.net>
Message-ID: <8d9a42800612010635s5a0535c4g2fb128b89e737df1@mail.gmail.com>
Oops i meant to include this
$req = mysql_query( $sql, $dbh );
--
Joseph Crawford Jr.
Zend Certified Engineer
Codebowl Solutions, Inc.
http://www.codebowl.com/
Blog: http://www.josephcrawford.com/
1-802-671-2021
codebowl at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From dell at sala.ca Fri Dec 1 09:37:14 2006
From: dell at sala.ca (Dell Sala)
Date: Fri, 1 Dec 2006 09:37:14 -0500
Subject: [nycphp-talk] Additional eyes for troublesome (but simple) mysql
functions?
In-Reply-To: <45703C43.5000700@fdcx.net>
References: <45703C43.5000700@fdcx.net>
Message-ID: <804E5838-D5D3-4BC5-8CBC-58CD9209CEF0@sala.ca>
You should be passing the connection resource ($dbh) to mysql_query
(), not the result of mysql_select_db(). mysql_select_db() just
returns a boolean.
-- Dell
On Dec 1, 2006, at 9:29 AM, R. Mariotti wrote:
> Gentlemen;
>
> I've been playing with this for a full day now trying various
> formats without luck. I'm convinced that I must be missing something.
>
> So, before the weekend come around and I literally forget
> everything I know about this, I thought I would post my error
> sections for some peer assistance.
>
> Can someone please take a look and see if there is anything obvious
> and advise (I'm beyond embarrassment). The lines beginning with
> >>>> are debugging lines to show what is contained in certain fields.
>
> /
> **********************************************************************
> **************/
> /* Determine if Specified 'system_id' is new or existing and set
> action accordingly */
>
> >>>> qb_default->db_host=[raid]
>
> >>>> qb_default->db_user=[qb_user]
>
> >>>> qb_default->db_password=[********]
>
> >>>> qb_default->dbname=[quote_build_test]
>
> $dbh = mysql_connect($qb_default->db_host,$qb_default->db_user,
> $qb_default->db_password);
>
> >>>> dbh=[Resource id #5]
>
> $rtn = mysql_select_db($qb_default->dbname,$dbh);
>
> >>>> rtn=[1]
>
> $sql="select id from $qb_default->system_list where id =
> '$system_id' limit 1";
>
> >>>> sql=[select id from systems where id = '181' limit 1]
>
> $req=mysql_query($sql,$rtn);
>
> >>>> Warning: mysql_query(): supplied argument is not a valid
> MySQL-Link resource
>
>
> As you can see by the Warning message... mysql is stating that the
> $rtn field I am sending is NOT a valid resource. However, it is
> the result of the previous mysql_select_db and seems OK.
>
> What am I missing???
>
> Thanks all!
>
> bobmct
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
From randalrust at gmail.com Fri Dec 1 12:02:25 2006
From: randalrust at gmail.com (Randal Rust)
Date: Fri, 1 Dec 2006 12:02:25 -0500
Subject: [nycphp-talk] LDAP for web authorization?
In-Reply-To: <456E9EBA.6010600@neuropunks.org>
References: <4549FD47.2050208@fdcx.net>
<20061102143920.GA18301@bnl.gov>
<454A0642.2060406@simons-rock.edu>
<456E9EBA.6010600@neuropunks.org>
Message-ID:
On 11/30/06, Max Gribov wrote:
> Just as a side note, adodb extension supports ldap and sql backends
> using pretty much same syntax, so at least you can have code
> consistency, simply changing the statement executed from some .conf file
> ('select * from bla' vs ugly ldap queries), and then send it to the
> good old $conn_id->Execute().
Max, do you have any links for this? I have looked and looked and have
only been able to find the basic documentation that shows me how to
connect. And even with that I have had some issues.
--
Randal Rust
R.Squared Communications
www.r2communications.com
From r.mariotti at fdcx.net Fri Dec 1 13:01:10 2006
From: r.mariotti at fdcx.net (R. Mariotti)
Date: Fri, 01 Dec 2006 13:01:10 -0500
Subject: [nycphp-talk] Re: talk Digest, Vol 2, Issue 1
In-Reply-To: <200612011700.kB1H0Bbo015817@post.ntplx.net>
References: <200612011700.kB1H0Bbo015817@post.ntplx.net>
Message-ID: <45706DE6.9020406@fdcx.net>
talk-request at lists.nyphp.org wrote:
> I believe you would want to use $dbh and not $rtn\
THANK YOU ALL!
As I mentioned -- "tired eyes". I was looking at that all day long!
bobmct
From randalrust at gmail.com Fri Dec 1 16:01:45 2006
From: randalrust at gmail.com (Randal Rust)
Date: Fri, 1 Dec 2006 16:01:45 -0500
Subject: [nycphp-talk] Using ADOdb library to update and insert into LDAP
Message-ID:
Using ADOdb to work with my LDAP directory. I figured out how to
query. How do I do an insert or an update?
Sorry for the noise. I simply cannot find any documentation on working
with LDAP and ADOdb.
--
Randal Rust
R.Squared Communications
www.r2communications.com
From agfische at email.smith.edu Sat Dec 2 12:05:19 2006
From: agfische at email.smith.edu (Aaron Fischer)
Date: Sat, 02 Dec 2006 12:05:19 -0500
Subject: [nycphp-talk] Issue with session_destroy()
Message-ID: <4571B24F.4010103@email.smith.edu>
Howdy,
I have a logout page where I destroy the session. However, if I click
one of the application links it lets me back in. I believe the browser
is loading the application page from history. If I refresh the page it
kicks me out to the login page, which is the desired behavior but I
would like that to happen right away.
How do I ensure that my application pages are loading a fresh copy? If
I can make that happen then presumably it will prevent this issue.
The strange thing is that this doesn't seem to happen for another
application I built but I haven't been able to find a difference in the
code I wrote. (Am testing both in the same browser.)
Thanks,
-Aaron
From ramons at gmx.net Sat Dec 2 12:19:45 2006
From: ramons at gmx.net (David Krings)
Date: Sat, 02 Dec 2006 12:19:45 -0500
Subject: [nycphp-talk] Issue with session_destroy()
In-Reply-To: <4571B24F.4010103@email.smith.edu>
References: <4571B24F.4010103@email.smith.edu>
Message-ID: <4571B5B1.5040200@gmx.net>
Hi,
you need to set the page to not getting cached by a browser. I once
looked this up and found several sources that claim that these two lines
at the beginning of a page will turn caching off:
header("Cache-control: private");
header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
From what I can tell, this works. But to be honest, I have no idea what
this really does or if it does anything, especially the second line.
Writing this kinda makes me want to know more about it, so I did a quick
google and found http://www.w3.org/P3P/ that has some more info. The
first line is most likely needed to pass on the cache preferences
through the header rather than take the browser default.
Hope this helps,
David
Aaron Fischer wrote:
> Howdy,
>
> I have a logout page where I destroy the session. However, if I click
> one of the application links it lets me back in. I believe the
> browser is loading the application page from history. If I refresh
> the page it kicks me out to the login page, which is the desired
> behavior but I would like that to happen right away.
>
> How do I ensure that my application pages are loading a fresh copy?
> If I can make that happen then presumably it will prevent this issue.
>
> The strange thing is that this doesn't seem to happen for another
> application I built but I haven't been able to find a difference in
> the code I wrote. (Am testing both in the same browser.)
>
> Thanks,
>
> -Aaron
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
From cliff at pinestream.com Sat Dec 2 12:59:30 2006
From: cliff at pinestream.com (Cliff Hirsch)
Date: Sat, 2 Dec 2006 12:59:30 -0500
Subject: [nycphp-talk] Issue with session_destroy()
In-Reply-To: <4571B5B1.5040200@gmx.net>
References: <4571B24F.4010103@email.smith.edu> <4571B5B1.5040200@gmx.net>
Message-ID: <20061202175930.M73774@pinestream.com>
You can also look at some of the better AJAX tutorials. An AJAX request has
the same problem, and I have seen various ways to deal with it. The most basic
attaches a random # to every request, which is not the best way to go -- fills
up the local cache. Better methods do set the header as indicated below. A
quick google search found this:
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
Cliff
On Sat, 02 Dec 2006 12:19:45 -0500, David Krings wrote
> Hi,
>
> you need to set the page to not getting cached by a browser. I
> once looked this up and found several sources that claim that these
> two lines at the beginning of a page will turn caching off:
> header("Cache-control: private"); header('P3P: CP="NOI ADM DEV PSAi
> COM NAV OUR OTRo STP IND DEM"');
>
> From what I can tell, this works. But to be honest, I have no idea
> what this really does or if it does anything, especially the second
> line. Writing this kinda makes me want to know more about it, so I
> did a quick google and found http://www.w3.org/P3P/ that has some
> more info. The first line is most likely needed to pass on the cache
> preferences through the header rather than take the browser default.
>
> Hope this helps,
>
> David
>
> Aaron Fischer wrote:
> > Howdy,
> >
> > I have a logout page where I destroy the session. However, if I click
> > one of the application links it lets me back in. I believe the
> > browser is loading the application page from history. If I refresh
> > the page it kicks me out to the login page, which is the desired
> > behavior but I would like that to happen right away.
> >
> > How do I ensure that my application pages are loading a fresh copy?
> > If I can make that happen then presumably it will prevent this issue.
> >
> > The strange thing is that this doesn't seem to happen for another
> > application I built but I haven't been able to find a difference in
> > the code I wrote. (Am testing both in the same browser.)
> >
> > Thanks,
> >
> > -Aaron
From tedd at sperling.com Sat Dec 2 13:35:10 2006
From: tedd at sperling.com (tedd)
Date: Sat, 2 Dec 2006 13:35:10 -0500
Subject: [nycphp-talk] Issue with session_destroy()
In-Reply-To: <20061202175930.M73774@pinestream.com>
References: <4571B24F.4010103@email.smith.edu> <4571B5B1.5040200@gmx.net>
<20061202175930.M73774@pinestream.com>
Message-ID:
>
> > > How do I ensure that my application pages are loading a fresh copy?
>> > If I can make that happen then presumably it will prevent this issue.
>> >
>> > The strange thing is that this doesn't seem to happen for another
>> > application I built but I haven't been able to find a difference in
>> > the code I wrote. (Am testing both in the same browser.)
>> >
>> > Thanks,
>> >
> > > -Aaron
Aaron:
I use this:
Anyone see any problems with it?
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
From phil at bearingasset.com Mon Dec 4 11:06:27 2006
From: phil at bearingasset.com (Phil Duffy)
Date: Mon, 4 Dec 2006 11:06:27 -0500
Subject: [nycphp-talk] BC Date Recording
Message-ID:
I understand that MySQL does not have the ability to store B.C. dates, but
that PostgreSQL does. However, I have not been able to determine how PHP
facilitates the recording, editing and display of B.C. dates for the
PostgreSQL query. Is there a function (or multiple functions) in PHP that
addresses this?
Phil Duffy
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From phil at bearingasset.com Mon Dec 4 11:08:20 2006
From: phil at bearingasset.com (Phil Duffy)
Date: Mon, 4 Dec 2006 11:08:20 -0500
Subject: [nycphp-talk] BC Date Recording
In-Reply-To: <45706DE6.9020406@fdcx.net>
Message-ID:
I understand that MySQL does not have the ability to store B.C. dates, but
that PostgreSQL does. However, I have not been able to determine how PHP
facilitates the recording, editing and display of B.C. dates for the
PostgreSQL query. Is there a function (or multiple functions) in PHP that
addresses this?
Phil Duffy
From ldhasson at us.ibm.com Mon Dec 4 23:16:36 2006
From: ldhasson at us.ibm.com (Laurent Hasson)
Date: Mon, 4 Dec 2006 23:16:36 -0500
Subject: [nycphp-talk] Laurent Hasson is out of the office.
Message-ID:
I will be out of the office starting 12/04/2006 and will not return until
01/06/2007.
I will be away on vacation for the rest of the year. I can be reached on my
cell phone **for emergencies only**. For Search related issues, please
contact Aya Soffer. For JWL/JSF/Ajax related issues, please contact Brendan
Murray. For general Portal Content issues, please contact John Schumacher
or Greg Melahn.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From randalrust at gmail.com Tue Dec 5 12:53:31 2006
From: randalrust at gmail.com (Randal Rust)
Date: Tue, 5 Dec 2006 12:53:31 -0500
Subject: [nycphp-talk] Working with multiple records of the same type in LDAP
Message-ID:
Finally I have been able to add records to my LDAP directory (adding
organizations). The next step is to add addresses. I need to be able
add multiple addresses of various types (postal, business, mailing).
If an organization has mutliple addresses, how can I accurately
display and update those addresses? What throws me is that the 'st'
attribute is used for all addresses, and usually it only has one
value.
Let's say I have three addresses...
1 W. Test St. Columbus, OH 43015
100 High St. Columbus, OH 43015
7145 Wilson Bridge Rd. Columbus, OH 43017
...first, I need to display these three addresses in a table, then the
user needs to be able to select one of the addresses for updating. If
they update the third address, and change the State to 'NV,' then how
do I keep it from updating the 'st' attribute, which is used for the
other two addresses, to NV?
--
Randal Rust
R.Squared Communications
www.r2communications.com
From agfische at email.smith.edu Tue Dec 5 13:47:18 2006
From: agfische at email.smith.edu (Aaron Fischer)
Date: Tue, 05 Dec 2006 13:47:18 -0500
Subject: [nycphp-talk] Alternating records to select in MySQL
Message-ID: <4575BEB6.30209@email.smith.edu>
Howdy,
Running into a wall trying to figure out the best way to accomplish the
following:
I have a web form that allows the user to ask a question about a certain
topic.
On the backend I have, say, five people available to answer questions
for each topic. They are stored in a MySQL table.
What I want to do is select one of the five people and send the question
to them. That part is easy. The next part is where I am running into a
stumbling block.
The next time someone submits a question on this topic I want to select
from the remaining four people/records who have not been contacted.
Then the next time select from the three people not contacted, then two,
then one.
After all five have been contacted I want to reset their records so that
I am choosing from all five again.
Thoughts on how to accomplish this?
Thanks,
-Aaron
From ashaw at polymerdb.org Tue Dec 5 13:54:03 2006
From: ashaw at polymerdb.org (Allen Shaw)
Date: Tue, 05 Dec 2006 12:54:03 -0600
Subject: [nycphp-talk] Alternating records to select in MySQL
In-Reply-To: <4575BEB6.30209@email.smith.edu>
References: <4575BEB6.30209@email.smith.edu>
Message-ID: <4575C04B.4000501@polymerdb.org>
Aaron Fischer wrote:
> Howdy,
> ...
> The next time someone submits a question on this topic I want to select
> from the remaining four people/records who have not been contacted.
> ...
> After all five have been contacted I want to reset their records so that
> I am choosing from all five again.
> ...
>
Hi Aaron,
You need a column called something like `selected` in that table. Set
it to 1 if the person's been selected. Once they're all selected, start
over by setting them all to 0. You'll have to write the logic in PHP
for those steps, but that's the gist of it.
Does that work for you?
- Allen
--
Allen Shaw
Polymer (http://polymerdb.org)
slidePresenter (http://slides.sourceforge.net)
From tedd at sperling.com Tue Dec 5 14:26:53 2006
From: tedd at sperling.com (tedd)
Date: Tue, 5 Dec 2006 14:26:53 -0500
Subject: [nycphp-talk] Working with multiple records of the same type
in LDAP
In-Reply-To:
References:
Message-ID:
At 12:53 PM -0500 12/5/06, Randal Rust wrote:
>Finally I have been able to add records to my LDAP directory (adding
>organizations). The next step is to add addresses. I need to be able
>add multiple addresses of various types (postal, business, mailing).
>
>If an organization has mutliple addresses, how can I accurately
>display and update those addresses? What throws me is that the 'st'
>attribute is used for all addresses, and usually it only has one
>value.
>
>Let's say I have three addresses...
>
>1 W. Test St. Columbus, OH 43015
>100 High St. Columbus, OH 43015
>7145 Wilson Bridge Rd. Columbus, OH 43017
>
>
>...first, I need to display these three addresses in a table, then the
>user needs to be able to select one of the addresses for updating. If
>they update the third address, and change the State to 'NV,' then how
>do I keep it from updating the 'st' attribute, which is used for the
>other two addresses, to NV?
>
>--
>Randal Rust
Your states should be relational.
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
From agfische at email.smith.edu Tue Dec 5 14:28:33 2006
From: agfische at email.smith.edu (Aaron Fischer)
Date: Tue, 05 Dec 2006 14:28:33 -0500
Subject: [nycphp-talk] Alternating records to select in MySQL
In-Reply-To: <4575C04B.4000501@polymerdb.org>
References: <4575BEB6.30209@email.smith.edu> <4575C04B.4000501@polymerdb.org>
Message-ID: <4575C861.3050100@email.smith.edu>
Thanks Allen. That sounds very much like what I was thinking.
I was getting hung up on some of the logic but I think it's more because
I have been given a way-too-short deadline to get this done. =|
Deep breaths...
Cheers, thanks!
-Aaron
Allen Shaw wrote:
> Aaron Fischer wrote:
>
>> Howdy,
>> ...
>> The next time someone submits a question on this topic I want to
>> select from the remaining four people/records who have not been
>> contacted.
>> ...
>> After all five have been contacted I want to reset their records so
>> that I am choosing from all five again.
>> ...
>>
>
> Hi Aaron,
>
> You need a column called something like `selected` in that table. Set
> it to 1 if the person's been selected. Once they're all selected, start
> over by setting them all to 0. You'll have to write the logic in PHP
> for those steps, but that's the gist of it.
>
> Does that work for you?
>
> - Allen
>
>
>
From randalrust at gmail.com Tue Dec 5 14:38:21 2006
From: randalrust at gmail.com (Randal Rust)
Date: Tue, 5 Dec 2006 14:38:21 -0500
Subject: [nycphp-talk] Working with multiple records of the same type in
LDAP
In-Reply-To:
References:
Message-ID:
On 12/5/06, tedd wrote:
> Your states should be relational.
Do you mean like this...
street[0]=1 W. Test St.
city[0]=Columbus
st[0]=OH
postalCode[0]=43015
addressType[0]=Business
street[1]=100 High St.
city[1]=Columbus
st[1]=OH
postalCode[1]=43015
addressType[1]=Business
street[3]=7145 Wilson Bridge Rd.
city[2]=Columbus
sta[2]=OH
postalCode[2]=43017
adressType[2]=postal
--
Randal Rust
R.Squared Communications
www.r2communications.com
From tedd at sperling.com Tue Dec 5 14:57:12 2006
From: tedd at sperling.com (tedd)
Date: Tue, 5 Dec 2006 14:57:12 -0500
Subject: [nycphp-talk] Working with multiple records of the same type
in LDAP
In-Reply-To:
References:
Message-ID:
At 2:38 PM -0500 12/5/06, Randal Rust wrote:
>On 12/5/06, tedd wrote:
>
>>Your states should be relational.
>
>Do you mean like this...
>
>street[0]=1 W. Test St.
>city[0]=Columbus
>st[0]=OH
>postalCode[0]=43015
>addressType[0]=Business
>
>street[1]=100 High St.
>city[1]=Columbus
>st[1]=OH
>postalCode[1]=43015
>addressType[1]=Business
>
>street[3]=7145 Wilson Bridge Rd.
>city[2]=Columbus
>sta[2]=OH
>postalCode[2]=43017
>adressType[2]=postal
>
>--
>Randal Rust
Randal:
Close, but more like this:
st[0] = Alabama
st[1] = Alaska
st[2] = Arizona
st[3] = Arkansas
st[4] = California
st[..] = ...
where:
street[2]=7145 Wilson Bridge Rd.
city[2]=Columbus
sta[2]=15 (or whatever number Ohio is)
postalCode[2]=43017
adressType[2]=postal
You have a table in your dB that holds all the states, the user
simply picks which state from an option list and the entry in your dB
for that user now points to that state's table as an index instead of
the previous state's index. It's a "one to many" relational dB.
You see, putting the state's name over and over again in the dB is
redundant -- it's better to have a table of states than it is to
repeat data. The same holds true for zip codes and addressType as
shown above.
hth's
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
From jface at mercenarylabs.com Tue Dec 5 20:39:43 2006
From: jface at mercenarylabs.com (jface at mercenarylabs.com)
Date: Tue, 5 Dec 2006 20:39:43 -0500
Subject: [nycphp-talk] freeing sql results
In-Reply-To: <45392B3F.8060908@email.smith.edu>
References: <45392B3F.8060908@email.smith.edu>
Message-ID:
I have a very complex app I've been working on currently at about three thousand lines of code. All of a sudden it started spitting out the following warning:
Warning: Unknown: 2 result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query() in Unknown on line 0
So I went through it line-by-line and added a mysql_free_result() after EVERY query, to no avail.
The worst thing about this error is that it doesn't give me a valid line number, so it's impossible to tell exactly where the bad queries are.
This is occurring on a php5/mysql5/apache setup.
Anyone have any suggestions? I'm out of ideas.
Jonathan
From jonbaer at jonbaer.com Tue Dec 5 22:45:34 2006
From: jonbaer at jonbaer.com (Jon Baer)
Date: Tue, 5 Dec 2006 22:45:34 -0500
Subject: [nycphp-talk] freeing sql results
In-Reply-To:
References: <45392B3F.8060908@email.smith.edu>
Message-ID:
Add a debug_print_backtrace() before the free result or query. I
find it to be very handy in PHP5, although I wish there was a way to
dump the results to a UDP port for catching it as well.
- Jon
On Dec 5, 2006, at 8:39 PM, wrote:
> I have a very complex app I've been working on currently at about
> three thousand lines of code. All of a sudden it started spitting
> out the following warning:
>
> Warning: Unknown: 2 result set(s) not freed. Use mysql_free_result
> to free result sets which were requested using mysql_query() in
> Unknown on line 0
>
> So I went through it line-by-line and added a mysql_free_result()
> after EVERY query, to no avail.
>
> The worst thing about this error is that it doesn't give me a valid
> line number, so it's impossible to tell exactly where the bad
> queries are.
>
> This is occurring on a php5/mysql5/apache setup.
>
> Anyone have any suggestions? I'm out of ideas.
>
> Jonathan
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
From susan_shemin at yahoo.com Wed Dec 6 18:54:50 2006
From: susan_shemin at yahoo.com (Susan Shemin)
Date: Wed, 6 Dec 2006 15:54:50 -0800 (PST)
Subject: [nycphp-talk] xAjax anyone?
Message-ID: <20061206235450.18859.qmail@web50206.mail.yahoo.com>
Today's DevX Weekly Update discusses Ajax and in the PHP section of the article mentions xAjax. I'm going to try it out -- has anyone else used it?
____________________________________________________________________________________
Yahoo! Music Unlimited
Access over 1 million songs.
http://music.yahoo.com/unlimited
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From anthony at adcl.biz Thu Dec 7 02:38:05 2006
From: anthony at adcl.biz (Anthony Papillion)
Date: Thu, 7 Dec 2006 01:38:05 -0600
Subject: [nycphp-talk] xAjax anyone?
References: <20061206235450.18859.qmail@web50206.mail.yahoo.com>
Message-ID: <001201c719d2$a2f1ca50$6901a8c0@NITRO>
Hi Susan,
I've just started looking into using xAJAX and absolutely love it. Granted, I've not done anything useful with it yet but it seems to hav a LOT of promise. Looks like it might have really nailed the "easy to use" thing on the head.
Anthony Papillion
Advanced Data Concepts
Ph (918) 926-0139
----- Original Message -----
From: Susan Shemin
To: NYPHP
Sent: Wednesday, December 06, 2006 5:54 PM
Subject: [nycphp-talk] xAjax anyone?
Today's DevX Weekly Update discusses Ajax and in the PHP section of the article mentions xAjax. I'm going to try it out -- has anyone else used it?
------------------------------------------------------------------------------
Need a quick answer? Get one in minutes from people who know. Ask your question on Yahoo! Answers.
------------------------------------------------------------------------------
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From ken at secdat.com Thu Dec 7 06:49:40 2006
From: ken at secdat.com (Kenneth Downs)
Date: Thu, 07 Dec 2006 06:49:40 -0500
Subject: [nycphp-talk] xAjax anyone?
In-Reply-To: <001201c719d2$a2f1ca50$6901a8c0@NITRO>
References: <20061206235450.18859.qmail@web50206.mail.yahoo.com>
<001201c719d2$a2f1ca50$6901a8c0@NITRO>
Message-ID: <4577FFD4.6030909@secdat.com>
Anthony Papillion wrote:
> Hi Susan,
>
> I've just started looking into using xAJAX and absolutely love it.
> Granted, I've not done anything useful with it yet but it seems to hav
> a LOT of promise. Looks like it might have really nailed the "easy to
> use" thing on the head.
Yeah, its one of things you can't go back once you get started. I find
it contributes very much to rigorous definitions of UI elements, as
otherwise you get bogged down pretty quickly.
>
> Anthony Papillion
> Advanced Data Concepts
> Ph (918) 926-0139
>
> ----- Original Message -----
> *From:* Susan Shemin
> *To:* NYPHP
> *Sent:* Wednesday, December 06, 2006 5:54 PM
> *Subject:* [nycphp-talk] xAjax anyone?
>
> Today's DevX Weekly Update discusses Ajax and in the PHP section
> of the article mentions xAjax. I'm going to try it out -- has
> anyone else used it?
>
> ------------------------------------------------------------------------
> Need a quick answer? Get one in minutes from people who know. Ask
> your question on Yahoo! Answers
> .
>
>
> ------------------------------------------------------------------------
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ken.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: not available
URL:
From agfische at email.smith.edu Thu Dec 7 10:10:25 2006
From: agfische at email.smith.edu (Aaron Fischer)
Date: Thu, 07 Dec 2006 10:10:25 -0500
Subject: [nycphp-talk] OT - MySQL select question
Message-ID: <45782EE1.2060805@email.smith.edu>
Greetings,
I'm not sure how to do the following, any tips?
I have a column in a MySQL table that contains varchars. I would like
to select all records where there are instances of more than one record
for any given varchar.
So in plain language, the SQL statement would look something like:
select * from table where the occurence of each unique varchar in column
A is greater than one.
Thoughts? Thanks!
-Aaron
From dirn at dirnonline.com Thu Dec 7 10:19:56 2006
From: dirn at dirnonline.com (Andy Dirnberger)
Date: Thu, 7 Dec 2006 10:19:56 -0500
Subject: [nycphp-talk] OT - MySQL select question
In-Reply-To: <45782EE1.2060805@email.smith.edu>
Message-ID: <002e01c71a13$2793d8d0$b265a8c0@andyabs>
SELECT * FROM table_name WHERE field_name IN (SELECT field_name FROM
table_name GROUP BY field_name HAVING COUNT(*) > 1)
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Aaron Fischer
Sent: Thursday, December 07, 2006 10:10 AM
To: NYPHP Talk
Subject: [nycphp-talk] OT - MySQL select question
Greetings,
I'm not sure how to do the following, any tips?
I have a column in a MySQL table that contains varchars. I would like
to select all records where there are instances of more than one record
for any given varchar.
So in plain language, the SQL statement would look something like:
select * from table where the occurence of each unique varchar in column
A is greater than one.
Thoughts? Thanks!
-Aaron
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
From rmarscher at beaffinitive.com Thu Dec 7 10:34:16 2006
From: rmarscher at beaffinitive.com (Rob Marscher)
Date: Thu, 07 Dec 2006 10:34:16 -0500
Subject: [nycphp-talk] OT - MySQL select question
In-Reply-To: <002e01c71a13$2793d8d0$b265a8c0@andyabs>
References: <002e01c71a13$2793d8d0$b265a8c0@andyabs>
Message-ID: <45783478.1060004@beaffinitive.com>
I'm pretty sure the subquery is redundant... I think this will work...
SELECT * FROM table_name GROUP BY field_name HAVING COUNT(*) > 1
Andy Dirnberger wrote:
> SELECT * FROM table_name WHERE field_name IN (SELECT field_name FROM
> table_name GROUP BY field_name HAVING COUNT(*) > 1)
>
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
> Behalf Of Aaron Fischer
> Sent: Thursday, December 07, 2006 10:10 AM
> To: NYPHP Talk
> Subject: [nycphp-talk] OT - MySQL select question
>
> Greetings,
>
> I'm not sure how to do the following, any tips?
>
> I have a column in a MySQL table that contains varchars. I would like
> to select all records where there are instances of more than one record
> for any given varchar.
>
> So in plain language, the SQL statement would look something like:
>
> select * from table where the occurence of each unique varchar in column
> A is greater than one.
>
> Thoughts? Thanks!
>
> -Aaron
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
From dirn at dirnonline.com Thu Dec 7 10:41:00 2006
From: dirn at dirnonline.com (Andy Dirnberger)
Date: Thu, 7 Dec 2006 10:41:00 -0500
Subject: [nycphp-talk] OT - MySQL select question
In-Reply-To: <45783478.1060004@beaffinitive.com>
Message-ID: <003a01c71a16$1946edf0$b265a8c0@andyabs>
You know, I thought that too. I had an Oracle window open at the time and
not a MySQL one. Oracle won't let you do it, but I just checked and MySQL
will.
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Rob Marscher
Sent: Thursday, December 07, 2006 10:34 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] OT - MySQL select question
I'm pretty sure the subquery is redundant... I think this will work...
SELECT * FROM table_name GROUP BY field_name HAVING COUNT(*) > 1
Andy Dirnberger wrote:
> SELECT * FROM table_name WHERE field_name IN (SELECT field_name FROM
> table_name GROUP BY field_name HAVING COUNT(*) > 1)
>
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On
> Behalf Of Aaron Fischer
> Sent: Thursday, December 07, 2006 10:10 AM
> To: NYPHP Talk
> Subject: [nycphp-talk] OT - MySQL select question
>
> Greetings,
>
> I'm not sure how to do the following, any tips?
>
> I have a column in a MySQL table that contains varchars. I would like
> to select all records where there are instances of more than one record
> for any given varchar.
>
> So in plain language, the SQL statement would look something like:
>
> select * from table where the occurence of each unique varchar in column
> A is greater than one.
>
> Thoughts? Thanks!
>
> -Aaron
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
From tboyden at supercoups.com Thu Dec 7 10:44:26 2006
From: tboyden at supercoups.com (Timothy Boyden)
Date: Thu, 7 Dec 2006 10:44:26 -0500
Subject: [nycphp-talk] OT - MySQL select question
In-Reply-To: <45782EE1.2060805@email.smith.edu>
Message-ID:
I don't have a code solution for you, but Google the CHECK and UNIQUE
predicates for the SQL language, I believe your answer lies within...
Also a good SQL reference book that has been a trusty partner for me is
the SQL Instant Reference by Sybex.
---------------------------
Timothy Boyden
Network Administrator
tboyden at supercoups.com
SuperCoups(r) | 350 Revolutionary Drive | E. Taunton, MA 02718
508-977-2034 | www.supercoups.com
---------------------------
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Aaron Fischer
Sent: Thursday, December 07, 2006 10:10 AM
To: NYPHP Talk
Subject: [nycphp-talk] OT - MySQL select question
Greetings,
I'm not sure how to do the following, any tips?
I have a column in a MySQL table that contains varchars. I would like
to select all records where there are instances of more than one record
for any given varchar.
So in plain language, the SQL statement would look something like:
select * from table where the occurence of each unique varchar in column
A is greater than one.
Thoughts? Thanks!
-Aaron
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
From edwardpotter at gmail.com Thu Dec 7 10:51:19 2006
From: edwardpotter at gmail.com (edward potter)
Date: Thu, 7 Dec 2006 10:51:19 -0500
Subject: [nycphp-talk] OT - MySQL select question
In-Reply-To:
References: <45782EE1.2060805@email.smith.edu>
Message-ID:
yipes! Kung Fu programming!
"I believe your answer lies within..."
:-) ed
On 12/7/06, Timothy Boyden wrote:
> I don't have a code solution for you, but Google the CHECK and UNIQUE
> predicates for the SQL language, I believe your answer lies within...
>
> Also a good SQL reference book that has been a trusty partner for me is
> the SQL Instant Reference by Sybex.
>
>
> ---------------------------
> Timothy Boyden
> Network Administrator
> tboyden at supercoups.com
>
> SuperCoups(r) | 350 Revolutionary Drive | E. Taunton, MA 02718
> 508-977-2034 | www.supercoups.com
> ---------------------------
>
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
> On Behalf Of Aaron Fischer
> Sent: Thursday, December 07, 2006 10:10 AM
> To: NYPHP Talk
> Subject: [nycphp-talk] OT - MySQL select question
>
> Greetings,
>
> I'm not sure how to do the following, any tips?
>
> I have a column in a MySQL table that contains varchars. I would like
> to select all records where there are instances of more than one record
> for any given varchar.
>
> So in plain language, the SQL statement would look something like:
>
> select * from table where the occurence of each unique varchar in column
> A is greater than one.
>
> Thoughts? Thanks!
>
> -Aaron
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
--
the Blog: http://www.utopiaparkway.com
the Karma: http://www.coderswithconscience.com
the Projects: http://flickr.com/photos/86842405 at N00/
the Store: http://astore.amazon.com/httpwwwutopic-20
From danielc at analysisandsolutions.com Thu Dec 7 10:54:06 2006
From: danielc at analysisandsolutions.com (Daniel Convissor)
Date: Thu, 7 Dec 2006 10:54:06 -0500
Subject: [nycphp-talk] BC Date Recording
In-Reply-To: <20061204160723.26F11CACEC@mail2.panix.com>
References: <20061204160723.26F11CACEC@mail2.panix.com>
Message-ID: <20061207155406.GA14627@panix.com>
Hi Phil:
On Mon, Dec 04, 2006 at 11:06:27AM -0500, Phil Duffy wrote:
> I understand that MySQL does not have the ability to store B.C. dates, but
> that PostgreSQL does.
This may be helpful to you or others:
http://www.analysisandsolutions.com/code/dates.htm
> However, I have not been able to determine how PHP
> facilitates the recording, editing and display of B.C. dates for the
> PostgreSQL query.
They are strings.
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
From agfische at email.smith.edu Thu Dec 7 11:13:39 2006
From: agfische at email.smith.edu (Aaron Fischer)
Date: Thu, 07 Dec 2006 11:13:39 -0500
Subject: [nycphp-talk] OT - MySQL select question
In-Reply-To: <45783478.1060004@beaffinitive.com>
References: <002e01c71a13$2793d8d0$b265a8c0@andyabs>
<45783478.1060004@beaffinitive.com>
Message-ID: <45783DB3.3040702@email.smith.edu>
That did it, thanks Rob and Andy.
Rob's query did the trick. I was getting a MySQL error with Andy's that
I hadn't been able to figure out.
Cheers,
-Aaron
Rob Marscher wrote:
> I'm pretty sure the subquery is redundant... I think this will work...
>
> SELECT * FROM table_name GROUP BY field_name HAVING COUNT(*) > 1
>
>
>
> Andy Dirnberger wrote:
>
>> SELECT * FROM table_name WHERE field_name IN (SELECT field_name FROM
>> table_name GROUP BY field_name HAVING COUNT(*) > 1)
>>
From rmarscher at beaffinitive.com Thu Dec 7 11:26:45 2006
From: rmarscher at beaffinitive.com (Rob Marscher)
Date: Thu, 07 Dec 2006 11:26:45 -0500
Subject: [nycphp-talk] OT - MySQL select question
In-Reply-To: <45783DB3.3040702@email.smith.edu>
References: <002e01c71a13$2793d8d0$b265a8c0@andyabs> <45783478.1060004@beaffinitive.com>
<45783DB3.3040702@email.smith.edu>
Message-ID: <457840C5.7060709@beaffinitive.com>
If you're using a MySQL version earlier than 4.1, subqueries aren't
available. Maybe that's why you got an error with Andy's query.
That's interesting about the query not working in Oracle. I wonder if
it's because field_name isn't specifically listed in the SELECT - like
it doesn't like the "GROUP BY field_name" when * is used for the field
list? I've read that MySQL allows you to GROUP BY fields not listed in
the field list, but other DBs give errors.
-Rob
Aaron Fischer wrote:
> That did it, thanks Rob and Andy.
>
> Rob's query did the trick. I was getting a MySQL error with Andy's
> that I hadn't been able to figure out.
>
> Cheers,
>
> -Aaron
>
>
> Rob Marscher wrote:
>> I'm pretty sure the subquery is redundant... I think this will work...
>>
>> SELECT * FROM table_name GROUP BY field_name HAVING COUNT(*) > 1
>>
>>
>>
>> Andy Dirnberger wrote:
>>
>>> SELECT * FROM table_name WHERE field_name IN (SELECT field_name FROM
>>> table_name GROUP BY field_name HAVING COUNT(*) > 1)
>>>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
From dirn at dirnonline.com Thu Dec 7 11:33:37 2006
From: dirn at dirnonline.com (Andy Dirnberger)
Date: Thu, 7 Dec 2006 11:33:37 -0500
Subject: [nycphp-talk] OT - MySQL select question
In-Reply-To: <457840C5.7060709@beaffinitive.com>
Message-ID: <000001c71a1d$73250c10$b265a8c0@andyabs>
That's exactly why it doesn't work in Oracle. I'm working against 9i right
now. Maybe they added that ability in 10g.
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Rob Marscher
Sent: Thursday, December 07, 2006 11:27 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] OT - MySQL select question
If you're using a MySQL version earlier than 4.1, subqueries aren't
available. Maybe that's why you got an error with Andy's query.
That's interesting about the query not working in Oracle. I wonder if
it's because field_name isn't specifically listed in the SELECT - like
it doesn't like the "GROUP BY field_name" when * is used for the field
list? I've read that MySQL allows you to GROUP BY fields not listed in
the field list, but other DBs give errors.
-Rob
Aaron Fischer wrote:
> That did it, thanks Rob and Andy.
>
> Rob's query did the trick. I was getting a MySQL error with Andy's
> that I hadn't been able to figure out.
>
> Cheers,
>
> -Aaron
>
>
> Rob Marscher wrote:
>> I'm pretty sure the subquery is redundant... I think this will work...
>>
>> SELECT * FROM table_name GROUP BY field_name HAVING COUNT(*) > 1
>>
>>
>>
>> Andy Dirnberger wrote:
>>
>>> SELECT * FROM table_name WHERE field_name IN (SELECT field_name FROM
>>> table_name GROUP BY field_name HAVING COUNT(*) > 1)
>>>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
From tedd at sperling.com Thu Dec 7 11:45:10 2006
From: tedd at sperling.com (tedd)
Date: Thu, 7 Dec 2006 11:45:10 -0500
Subject: [nycphp-talk] BC Date Recording
In-Reply-To: <20061207155406.GA14627@panix.com>
References: <20061204160723.26F11CACEC@mail2.panix.com>
<20061207155406.GA14627@panix.com>
Message-ID:
On Mon, Dec 04, 2006 at 11:06:27AM -0500, Phil Duffy wrote:
> I understand that MySQL does not have the ability to store B.C. dates, but
> that PostgreSQL does.
Considering the history of calendars, I wonder how they did that?
It's one thing to estimate that 2000 years ago was 0006 -- but, it's
a completely different thing to claim that 2000 years ago today was
December 7, 0006.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
From ken at secdat.com Thu Dec 7 11:56:32 2006
From: ken at secdat.com (Kenneth Downs)
Date: Thu, 07 Dec 2006 11:56:32 -0500
Subject: [nycphp-talk] BC Date Recording
In-Reply-To:
References: <20061204160723.26F11CACEC@mail2.panix.com> <20061207155406.GA14627@panix.com>
Message-ID: <457847C0.2020908@secdat.com>
tedd wrote:
> On Mon, Dec 04, 2006 at 11:06:27AM -0500, Phil Duffy wrote:
>> I understand that MySQL does not have the ability to store B.C.
>> dates, but
>> that PostgreSQL does.
>
> Considering the history of calendars, I wonder how they did that?
>
> It's one thing to estimate that 2000 years ago was 0006 -- but, it's a
> completely different thing to claim that 2000 years ago today was
> December 7, 0006.
>
> Cheers,
>
> tedd
One of Joe Celko's books gives a pretty thorough run-down of the
variations that have to be accommodated, including such things as the
days that happened more than once and the days that never happened, and
so forth.
Compared to what's happened in AD-land, the BC stuff is easy :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ken.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: not available
URL:
From agfische at email.smith.edu Thu Dec 7 12:00:41 2006
From: agfische at email.smith.edu (Aaron Fischer)
Date: Thu, 07 Dec 2006 12:00:41 -0500
Subject: [nycphp-talk] OT - MySQL select question
In-Reply-To: <457840C5.7060709@beaffinitive.com>
References: <002e01c71a13$2793d8d0$b265a8c0@andyabs> <45783478.1060004@beaffinitive.com> <45783DB3.3040702@email.smith.edu>
<457840C5.7060709@beaffinitive.com>
Message-ID: <457848B9.6070802@email.smith.edu>
I did a mysql_get_server_info and it returns as 3.23.58, so I guess
that's why Andy's query was returning errors.
I guess 3.23.58 is a bit older? Seems like most people are on version 4
and some are on version 5?
-Aaron
Rob Marscher wrote:
> If you're using a MySQL version earlier than 4.1, subqueries aren't
> available. Maybe that's why you got an error with Andy's query.
>
> That's interesting about the query not working in Oracle. I wonder if
> it's because field_name isn't specifically listed in the SELECT - like
> it doesn't like the "GROUP BY field_name" when * is used for the field
> list? I've read that MySQL allows you to GROUP BY fields not listed in
> the field list, but other DBs give errors.
>
> -Rob
>
> Aaron Fischer wrote:
>
>> That did it, thanks Rob and Andy.
>>
>> Rob's query did the trick. I was getting a MySQL error with Andy's
>> that I hadn't been able to figure out.
>>
>> Cheers,
>>
>> -Aaron
>>
>>
From jkelly at sussex.edu Thu Dec 7 11:59:11 2006
From: jkelly at sussex.edu (jessica kelly)
Date: Thu, 07 Dec 2006 11:59:11 -0500
Subject: [nycphp-talk] BC Date Recording
Message-ID: <4578020F0200008A00000483@webmail.SUSSEX.EDU>
Ted here is a site that has a brief mention of the two calendars.
http://www.kencollins.com/calendar.htm
As you may/may not know the system was changes somewhere in the ?1600's?
or so. One October lost several days when the change over occured from
Julian to Georgian so you need to take that into condideration so
research well!
Jessica Kelly
>>> tedd 12/07/06 11:45 AM >>>
On Mon, Dec 04, 2006 at 11:06:27AM -0500, Phil Duffy wrote:
> I understand that MySQL does not have the ability to store B.C.
dates, but
> that PostgreSQL does.
Considering the history of calendars, I wonder how they did that?
It's one thing to estimate that 2000 years ago was 0006 -- but, it's
a completely different thing to claim that 2000 years ago today was
December 7, 0006.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
From edwardpotter at gmail.com Thu Dec 7 12:05:15 2006
From: edwardpotter at gmail.com (edward potter)
Date: Thu, 7 Dec 2006 12:05:15 -0500
Subject: [nycphp-talk] BC Date Recording
In-Reply-To: <457847C0.2020908@secdat.com>
References: <20061204160723.26F11CACEC@mail2.panix.com>
<20061207155406.GA14627@panix.com>
<457847C0.2020908@secdat.com>
Message-ID:
It's great working with the Intelligent Design people, you don't have
to worry about dates before 6000 BC. What a relief. Save all those
zeros.
:-) ed
On 12/7/06, Kenneth Downs wrote:
> tedd wrote:
> > On Mon, Dec 04, 2006 at 11:06:27AM -0500, Phil Duffy wrote:
> >> I understand that MySQL does not have the ability to store B.C.
> >> dates, but
> >> that PostgreSQL does.
> >
> > Considering the history of calendars, I wonder how they did that?
> >
> > It's one thing to estimate that 2000 years ago was 0006 -- but, it's a
> > completely different thing to claim that 2000 years ago today was
> > December 7, 0006.
> >
> > Cheers,
> >
> > tedd
> One of Joe Celko's books gives a pretty thorough run-down of the
> variations that have to be accommodated, including such things as the
> days that happened more than once and the days that never happened, and
> so forth.
>
> Compared to what's happened in AD-land, the BC stuff is easy :)
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
>
--
the Blog: http://www.utopiaparkway.com
the Karma: http://www.coderswithconscience.com
the Projects: http://flickr.com/photos/86842405 at N00/
the Store: http://astore.amazon.com/httpwwwutopic-20
From rmarscher at beaffinitive.com Thu Dec 7 12:17:24 2006
From: rmarscher at beaffinitive.com (Rob Marscher)
Date: Thu, 07 Dec 2006 12:17:24 -0500
Subject: [nycphp-talk] OT - MySQL select question
In-Reply-To: <457848B9.6070802@email.smith.edu>
References: <002e01c71a13$2793d8d0$b265a8c0@andyabs> <45783478.1060004@beaffinitive.com> <45783DB3.3040702@email.smith.edu> <457840C5.7060709@beaffinitive.com>
<457848B9.6070802@email.smith.edu>
Message-ID: <45784CA4.6090207@beaffinitive.com>
Yeah... support for 4.0 was just dropped, so 4.1 is now the oldest
current version. 5.1 is now available. Version 5 adds many features
(triggers, views, stored procedures, etc) that makes it more similar to
Oracle. I've heard there's a little performance loss between 4.1 and 5,
however.
-Rob
Aaron Fischer wrote:
> I did a mysql_get_server_info and it returns as 3.23.58, so I guess
> that's why Andy's query was returning errors.
>
> I guess 3.23.58 is a bit older? Seems like most people are on version
> 4 and some are on version 5?
>
> -Aaron
>
>
> Rob Marscher wrote:
>> If you're using a MySQL version earlier than 4.1, subqueries aren't
>> available. Maybe that's why you got an error with Andy's query.
>>
>> That's interesting about the query not working in Oracle. I wonder
>> if it's because field_name isn't specifically listed in the SELECT -
>> like it doesn't like the "GROUP BY field_name" when * is used for the
>> field list? I've read that MySQL allows you to GROUP BY fields not
>> listed in the field list, but other DBs give errors.
>>
>> -Rob
>>
>> Aaron Fischer wrote:
>>
>>> That did it, thanks Rob and Andy.
>>>
>>> Rob's query did the trick. I was getting a MySQL error with Andy's
>>> that I hadn't been able to figure out.
>>>
>>> Cheers,
>>>
>>> -Aaron
>>>
>>>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
From tedd at sperling.com Thu Dec 7 13:11:37 2006
From: tedd at sperling.com (tedd)
Date: Thu, 7 Dec 2006 13:11:37 -0500
Subject: [nycphp-talk] BC Date Recording
In-Reply-To: <4578020F0200008A00000483@webmail.SUSSEX.EDU>
References: <4578020F0200008A00000483@webmail.SUSSEX.EDU>
Message-ID:
At 11:59 AM -0500 12/7/06, jessica kelly wrote:
>Ted here is a site that has a brief mention of the two calendars.
>http://www.kencollins.com/calendar.htm
>
>As you may/may not know the system was changes somewhere in the ?1600's?
>or so. One October lost several days when the change over occured from
>Julian to Georgian so you need to take that into condideration so
>research well!
Yes, that's a good link and the "system" did change in the 1600's,
namely October 4, 1582 (a Thursday btw).
Prior to that, the day of the week cannot be calculated easily. In
order to understand why, we need to look at the calendar history.
Prior to Julius ruling Rome (BC 46) the Roman year was 354 days. When
Julius came to power, one of his first challenge was to appease the
farmers who complained because according to their calendar, spring
time and the time to sow/plant, was actually mid winter. Julius hired
a mathematician (Sosigenes) to figure out what went wrong.
Sosigenes suggested that the length of the year was wrong. It should
have been 365.25 days. The extra .25 day after four years became the
extra day added in February. However, Julius made a mess of 46 BC by
adding a couple of months making the year 445 days long!
Of course, Sosigenes, not having a calculator, didn't realize that a
solar year is really 365.2428935. His fix was off by 10 minutes and
some seconds in a year --not bad for manual computation! This error
over 1600 years, adds up to about 11 days.
This error was detected by astronomers who noticed that the vernal
equinox (when light and dark periods are equal length) occurring on
March 21 was becoming earlier and earlier and in 1582 it was on March
10. So, Christopher Clarius, an astronomer, went to Pope Gregory XIII
and addressed the issue.
After seeing all the calculations for 7 months, pope Gregory knocked
off 11 days on October 4 1582. The next day, he decreed to be October
15 (so October 5-14 in the year 1582 didn't exist), but to not upset
the Jews with their Sabbath, the day of the week was NOT changed. Had
Pope Gregory deleted the days properly (along with the dates), then
the next day (October 15) would have been a Monday and this would
have resulted in Jewish citizens working more than ten days before
being able to observe their Sabbath. This of course would have been
unacceptable, not even animals nor slaves can be put to work on the
Lord's Sabbath (Exo 20:9,31:13,Lev 23:3 etc.)
To avoid the leap-year error again, Pope Gregory, decreed that every
4 years a day will be added. However, on a turn of the century, it
will only be added if it's divisible by 400. Hence, although year
2000 was a leap year, while 1900 was not.
So, considering the history of calendars, I again state that I wonder
how PostgreSQL has the ability to store B.C. dates?
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
From agfische at email.smith.edu Thu Dec 7 13:47:02 2006
From: agfische at email.smith.edu (Aaron Fischer)
Date: Thu, 07 Dec 2006 13:47:02 -0500
Subject: [nycphp-talk] OT - MySQL select question
In-Reply-To:
References:
Message-ID: <457861A6.4080306@email.smith.edu>
Thanks Timothy, I'll check out that book. The next thing(s) to add to
my library is one or two good books on SQL/MySQL.
Sounds like a good holiday present to myself!
Cheers,
-Aaron
Timothy Boyden wrote:
> I don't have a code solution for you, but Google the CHECK and UNIQUE
> predicates for the SQL language, I believe your answer lies within...
>
> Also a good SQL reference book that has been a trusty partner for me is
> the SQL Instant Reference by Sybex.
>
>
From tacofighter at gmail.com Thu Dec 7 14:34:54 2006
From: tacofighter at gmail.com (Aaron Deutsch)
Date: Thu, 7 Dec 2006 14:34:54 -0500
Subject: [nycphp-talk] server mappings
Message-ID:
I'm trying to figure out how to map servers in such a way so I can use a php
script on one server to manipulate files on another without using ftp
functions. For example: I have a file upload form on one server that will
use move_uploaded_file and put it on another server. I'm not the
networking guy so I'm not sure what to tell them to do. I was told about SMB
web client (http://smbwebclient.sourceforge.net/), but I haven't tried to
set it up yet. Any recommendations?
Our servers are windows 2000, and running php 4.3
thanks,
aaron d.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From dmintz at davidmintz.org Thu Dec 7 15:20:50 2006
From: dmintz at davidmintz.org (David Mintz)
Date: Thu, 7 Dec 2006 15:20:50 -0500 (EST)
Subject: [nycphp-talk] OT - MySQL select question
In-Reply-To: <45783DB3.3040702@email.smith.edu>
References: <002e01c71a13$2793d8d0$b265a8c0@andyabs>
<45783478.1060004@beaffinitive.com>
<45783DB3.3040702@email.smith.edu>
Message-ID:
The MySQL Cookbook (O'Reilly) is also loads of fun.
---
David Mintz
http://davidmintz.org/
En Nueva York el tr?nsito de la belleza a la desolaci?n sucede
siempre expeditivamente, como si el principio universal
de m?xima eficiencia hubiera aconsejado la supresi?n de
gradaciones intermedias.
-- Antonio Mu?oz Molina, Ventanas de Manhattan
From agfische at email.smith.edu Thu Dec 7 16:00:55 2006
From: agfische at email.smith.edu (Aaron Fischer)
Date: Thu, 07 Dec 2006 16:00:55 -0500
Subject: [nycphp-talk] OT - MySQL select question
In-Reply-To:
References: <002e01c71a13$2793d8d0$b265a8c0@andyabs> <45783478.1060004@beaffinitive.com> <45783DB3.3040702@email.smith.edu>
Message-ID: <45788107.2050105@email.smith.edu>
I'll check that out too, thanks David!
-A
David Mintz wrote:
> The MySQL Cookbook (O'Reilly) is also loads of fun.
>
> ---
> David Mintz
> http://davidmintz.org/
>
> En Nueva York el tr?nsito de la belleza a la desolaci?n sucede
> siempre expeditivamente, como si el principio universal
> de m?xima eficiencia hubiera aconsejado la supresi?n de
> gradaciones intermedias.
>
> -- Antonio Mu?oz Molina, Ventanas de Manhattan
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
From chsnyder at gmail.com Thu Dec 7 17:00:53 2006
From: chsnyder at gmail.com (csnyder)
Date: Thu, 7 Dec 2006 17:00:53 -0500
Subject: [nycphp-talk] server mappings
In-Reply-To:
References:
Message-ID:
On 12/7/06, Aaron Deutsch wrote:
> I'm trying to figure out how to map servers in such a way so I can use a php
> script on one server to manipulate files on another without using ftp
> functions. For example: I have a file upload form on one server that will
> use move_uploaded_file and put it on another server. I'm not the
> networking guy so I'm not sure what to tell them to do. I was told about SMB
> web client ( http://smbwebclient.sourceforge.net/), but I
> haven't tried to set it up yet. Any recommendations?
>
> Our servers are windows 2000, and running php 4.3
>
> thanks,
> aaron d.
Windows comes with filesharing, you don't need a separate client.
Create a shared folder on the storage host. Map it as a network drive
on the web host. The web host can now write files to it as if it was a
local drive. You don't need anything beyond plain old Windows
networking.
--
Chris Snyder
http://chxo.com/
From r.mariotti at fdcx.net Thu Dec 7 17:04:52 2006
From: r.mariotti at fdcx.net (R. Mariotti)
Date: Thu, 07 Dec 2006 17:04:52 -0500
Subject: [nycphp-talk] Re: talk Digest, Vol 2, Issue 7
In-Reply-To: <200612071551.kB7Fpd3g026821@post.ntplx.net>
References: <200612071551.kB7Fpd3g026821@post.ntplx.net>
Message-ID: <45789004.9060006@fdcx.net>
>
> Message: 2
> Date: Thu, 7 Dec 2006 01:38:05 -0600
> From: "Anthony Papillion"
> Subject: Re: [nycphp-talk] xAjax anyone?
> To: "NYPHP Talk"
> Message-ID: <001201c719d2$a2f1ca50$6901a8c0 at NITRO>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi Susan,
>
> I've just started looking into using xAJAX and absolutely love it. Granted, I've not done anything useful with it yet but it seems to hav a LOT of promise. Looks like it might have really nailed the "easy to use" thing on the head.
>
> Anthony Papillion
> Advanced Data Concepts
> Ph (918) 926-0139
I came across a "framework" for integrating ajax that works very well.
It's worth taking a look at.
"myBIC"
bobmct
From evdo.hsdpa at gmail.com Thu Dec 7 19:22:34 2006
From: evdo.hsdpa at gmail.com (Robert Kim Wireless Internet Advisor)
Date: Thu, 7 Dec 2006 16:22:34 -0800
Subject: [nycphp-talk] server mappings
In-Reply-To:
References:
Message-ID: <1ec620e90612071622w7b79d8c4rba708349a6c90d7a@mail.gmail.com>
Aaron, et al,
Does nyphp need a digg.com style social news and voting
site? lemme know.. i'd be happy to build one for our community.
see: http://digg.com and
http://wimax-coverage.com
and
http://iptv-coverage.com
On 12/7/06, Aaron Deutsch wrote:
> I'm trying to figure out how to map servers in such a way so I can use a php
> script on one server to manipulate files on another without using ftp
> functions. For example: I have a file upload form on one server that will
> use move_uploaded_file and put it on another server. I'm not the
> networking guy so I'm not sure what to tell them to do. I was told about SMB
> web client ( http://smbwebclient.sourceforge.net/), but I
> haven't tried to set it up yet. Any recommendations?
>
--
Robert Q Kim, Wireless Internet Provider
http://evdo-coverage.com/satellite-wireless-internet.html
http://evdo-coverage.com
2611 S. Pacific Coast Highway 101
Suite 203
Cardiff by the Sea, CA 92007
206 984 0880
From jface at mercenarylabs.com Thu Dec 7 22:58:47 2006
From: jface at mercenarylabs.com (jface at mercenarylabs.com)
Date: Thu, 7 Dec 2006 22:58:47 -0500
Subject: [nycphp-talk] freeing sql results
Message-ID: <3d672dbb43a242d9f3e63bcf1a50209b@localhost>
After a lot of trial and error I've narrowed down the offending query in my problem with sql results not freeing themselves up:
$query = mysql_query("SELECT activeID FROM activeAI WHERE locationID='$locationID' AND activeID <> '$activeID' AND isUndead=0");
$numOtherAI = mysql_num_rows($query);
mysql_free_result($query);
When I comment out this query, the error(s) go away. Variables $locationID and $activeID are both properly set.
Is there something horribly wrong with this query? Is m_f_r() just not working? Too many ANDs?
Jonathan
On Tue, 5 Dec 2006 22:45:34 -0500, Jon Baer wrote:
> Add a debug_print_backtrace() before the free result or query. I
> find it to be very handy in PHP5, although I wish there was a way to
> dump the results to a UDP port for catching it as well.
>
> - Jon
>
> On Dec 5, 2006, at 8:39 PM,
> wrote:
>
>> I have a very complex app I've been working on currently at about
>> three thousand lines of code. All of a sudden it started spitting
>> out the following warning:
>>
>> Warning: Unknown: 2 result set(s) not freed. Use mysql_free_result
>> to free result sets which were requested using mysql_query() in
>> Unknown on line 0
>>
>> So I went through it line-by-line and added a mysql_free_result()
>> after EVERY query, to no avail.
>>
>> The worst thing about this error is that it doesn't give me a valid
>> line number, so it's impossible to tell exactly where the bad
>> queries are.
>>
>> This is occurring on a php5/mysql5/apache setup.
>>
>> Anyone have any suggestions? I'm out of ideas.
>>
>> Jonathan
>>
>> _______________________________________________
>> New York PHP Community Talk Mailing List
>> http://lists.nyphp.org/mailman/listinfo/talk
>>
>> NYPHPCon 2006 Presentations Online
>> http://www.nyphpcon.com
>>
>> Show Your Participation in New York PHP
>> http://www.nyphp.org/show_participation.php
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
From kenrbnsn at rbnsn.com Thu Dec 7 22:34:04 2006
From: kenrbnsn at rbnsn.com (Ken Robinson)
Date: Thu, 07 Dec 2006 22:34:04 -0500
Subject: [nycphp-talk] freeing sql results
In-Reply-To: <3d672dbb43a242d9f3e63bcf1a50209b@localhost>
References: <3d672dbb43a242d9f3e63bcf1a50209b@localhost>
Message-ID: <7.0.1.0.2.20061207223059.09e70d38@rbnsn.com>
At 10:58 PM 12/7/2006, jface at mercenarylabs.com wrote:
>After a lot of trial and error I've narrowed down the offending
>query in my problem with sql results not freeing themselves up:
>
>$query = mysql_query("SELECT activeID FROM activeAI WHERE
>locationID='$locationID' AND activeID <> '$activeID' AND isUndead=0");
>$numOtherAI = mysql_num_rows($query);
>mysql_free_result($query);
>
>When I comment out this query, the error(s) go away. Variables
>$locationID and $activeID are both properly set.
You really should check for errors when doing a mysql_query. Putting
the query in a separate string helps.
$q = "SELECT activeID FROM activeAI WHERE locationID='$locationID'
AND activeID <> '$activeID' AND isUndead=0";
$rs = mysql_query($q) or die("Problem with the query: $q " . mysql_error());
$numOtherAl = mysql_num_rows($rs);
mysql_free_result($rs);
Ken
From jface at mercenarylabs.com Thu Dec 7 23:39:41 2006
From: jface at mercenarylabs.com (jface at mercenarylabs.com)
Date: Thu, 7 Dec 2006 23:39:41 -0500
Subject: [nycphp-talk] freeing sql results
In-Reply-To: <7.0.1.0.2.20061207223059.09e70d38@rbnsn.com>
References: <7.0.1.0.2.20061207223059.09e70d38@rbnsn.com>
Message-ID: <8555ef43b3aa87129948548c50ef4c52@localhost>
I did include "or die()"s, just neglected to put them into the email. No SQL syntax errors come back.
The only kinds of errors I'm getting are that sql results are not being freed.
Tried passing the SQL into mysql_query as a separate string, too. No luck.
On Thu, 07 Dec 2006 22:34:04 -0500, Ken Robinson wrote:
> At 10:58 PM 12/7/2006, jface at mercenarylabs.com wrote:
>>After a lot of trial and error I've narrowed down the offending
>>query in my problem with sql results not freeing themselves up:
>>
>>$query = mysql_query("SELECT activeID FROM activeAI WHERE
>>locationID='$locationID' AND activeID <> '$activeID' AND isUndead=0");
>>$numOtherAI = mysql_num_rows($query);
>>mysql_free_result($query);
>>
>>When I comment out this query, the error(s) go away. Variables
>>$locationID and $activeID are both properly set.
>
> You really should check for errors when doing a mysql_query. Putting
> the query in a separate string helps.
>
> $q = "SELECT activeID FROM activeAI WHERE locationID='$locationID'
> AND activeID <> '$activeID' AND isUndead=0";
> $rs = mysql_query($q) or die("Problem with the query: $q " .
> mysql_error());
> $numOtherAl = mysql_num_rows($rs);
> mysql_free_result($rs);
>
> Ken
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
From cliff at pinestream.com Fri Dec 8 08:20:24 2006
From: cliff at pinestream.com (Cliff Hirsch)
Date: Fri, 8 Dec 2006 08:20:24 -0500
Subject: [nycphp-talk] Does anyone have Ioncube experience?
Message-ID: <20061208132024.M70796@pinestream.com>
I am integrating a commercial php shopping cart that uses Ioncube to protect
some of the source. I've already encountered one problem where Ioncube is not
compatible with the Zend Studio Server debugger and wonder how it will work
with Zend Optimizer and opcode caching software like APC.
I'm wondering whether anyone has had experience with Ioncube -- good, bad or
ugly. Any other unexpected gotchas that I should know about before deploying
this in a production enviroment?
Cliff
--
Pinestream Communications, Inc.
Publisher of Semiconductor Times & Telecom Trends
52 Pine Street, Weston, MA 02493 USA
Tel: 781.647.8800, Fax: 781.647.8825, www.pinestream.com
From dcech at phpwerx.net Fri Dec 8 09:13:18 2006
From: dcech at phpwerx.net (Dan Cech)
Date: Fri, 08 Dec 2006 09:13:18 -0500
Subject: [nycphp-talk] Does anyone have Ioncube experience?
In-Reply-To: <20061208132024.M70796@pinestream.com>
References: <20061208132024.M70796@pinestream.com>
Message-ID: <457972FE.7090304@phpwerx.net>
Cliff Hirsch wrote:
> I am integrating a commercial php shopping cart that uses Ioncube to protect
> some of the source. I've already encountered one problem where Ioncube is not
> compatible with the Zend Studio Server debugger and wonder how it will work
> with Zend Optimizer and opcode caching software like APC.
It will work ok with Zend Optimizer, just make sure that you're using
the latest versions of both Optimizer and the IONCube loader.
If you're installing the IONCube loader via php.ini, I believe it should
be initialized before Zend, the majority of my experience has been with
loading it dynamically.
>
> I'm wondering whether anyone has had experience with Ioncube -- good, bad or
> ugly. Any other unexpected gotchas that I should know about before deploying
> this in a production enviroment?
The only other oddity I've seen was one machine which experienced random
segfaults when using Zend Optimizer together with IONCube.
The solution turned out to be changing from using AddType in the
httpd.conf to AddHandler, since the change there have been no more
segfaults.
Dan
From r.mariotti at fdcx.net Fri Dec 8 09:56:40 2006
From: r.mariotti at fdcx.net (R. Mariotti)
Date: Fri, 08 Dec 2006 09:56:40 -0500
Subject: [nycphp-talk] OT: revisiting window close methods?
Message-ID: <45797D28.3020103@fdcx.net>
Gentlemen;
As most of the php we create and maintain deals with browser
interaction, one of those actions is to close the current window if/when
the user click on the appropriate supplied button.
I have such a button on my page(s) that contains a tag that reads:
onclick="window.close();"
and I've tried numerous variations of the same such as:
document.close()
close()
javascript:window.close()
windowClose()
and others that I have seen referenced.
However, nothing happens when this is clicked in my particular app. The
button animates as expected but nothing happens.
The browsers tested with are all mozilla/firefox are varying versions
older to current and I'm sure it is important to note that the window I
am trying to close it the ONLY open window in the browser. My research
shows that this should close but possibly display a
warning/acknowledgment message first. I've also check through the
preferences to see if there were any suppression settings and I've found
none.
Can someone please advise as to how one should accomplish this task?
Thanks,
bobmct
From tedd at sperling.com Fri Dec 8 10:23:20 2006
From: tedd at sperling.com (tedd)
Date: Fri, 8 Dec 2006 10:23:20 -0500
Subject: [nycphp-talk] OT: revisiting window close methods?
In-Reply-To: <45797D28.3020103@fdcx.net>
References: <45797D28.3020103@fdcx.net>
Message-ID:
At 9:56 AM -0500 12/8/06, R. Mariotti wrote:
>Gentlemen;
>
>As most of the php we create and maintain deals with browser
>interaction, one of those actions is to close the current window
>if/when the user click on the appropriate supplied button.
>
>I have such a button on my page(s) that contains a tag that reads:
>
>onclick="window.close();"
>
>and I've tried numerous variations of the same such as:
>-snip-
>
>Can someone please advise as to how one should accomplish this task?
A javascript list might be better. But try:
Close Window
Also review:
http://www.sitepoint.com/article/pop-ups-dead-links
hth's
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
From r.mariotti at fdcx.net Fri Dec 8 10:38:27 2006
From: r.mariotti at fdcx.net (R. Mariotti)
Date: Fri, 08 Dec 2006 10:38:27 -0500
Subject: [nycphp-talk] OT anyone interested in collaborating to use php to
program Dymo printer?
Message-ID: <457986F3.6020505@fdcx.net>
Slightly OT - but...
I have several web projects where some of the results is to print
formatted labels (not necessarily address) on a local or remote attached
small label printer. Of those that are available, I've selected the
Dymo because its "supported" by cups and it can connect via USB.
I CAN get output to this printer by opening a pipe to "lp" and passing
various parameters and then outputing my text. However, I cannot send
ANY formatting instructions or the printer stops printing. It advances
but nothing prints.
Seeing how Dymo doesn't support Linux and none of the other hardware
related forums are interested... I was wondering if anyone in this
group has any interest in collaborating towards developing a method to
get the control programming through to this type of printer.
Perhaps the ultimate goal would be to develop a module that would be
available to all as has been done with many other tasks.
If anyone is interested, has access to or wishes to purchase and work
with one of these inexpensive printers for this purpose, I would be most
interested to hear from you.
Thanks to anyone who responds.
bobmct
From arzala at gmail.com Fri Dec 8 11:18:10 2006
From: arzala at gmail.com (Anirudh Zala)
Date: Fri, 8 Dec 2006 21:48:10 +0530
Subject: [nycphp-talk] OT: revisiting window close methods?
In-Reply-To: <45797D28.3020103@fdcx.net>
References: <45797D28.3020103@fdcx.net>
Message-ID: <200612082148.10778.arzala@gmail.com>
On Friday 08 December 2006 20:26, R. Mariotti wrote:
Hi R. Mariotti
I think script mostly cannot close any browser window that was not opened by
it. At least this is true for Mozilla based browsers. So please research
again. In Firefox 2.0 you will get following message (not warning)
"Scripts may not close windows that were not opened by script."
Anirudh Zala
(Building standards)
> Gentlemen;
>
> As most of the php we create and maintain deals with browser
> interaction, one of those actions is to close the current window if/when
> the user click on the appropriate supplied button.
>
> I have such a button on my page(s) that contains a tag that reads:
>
> onclick="window.close();"
>
> and I've tried numerous variations of the same such as:
>
> document.close()
> close()
> javascript:window.close()
> windowClose()
>
> and others that I have seen referenced.
>
> However, nothing happens when this is clicked in my particular app. The
> button animates as expected but nothing happens.
>
> The browsers tested with are all mozilla/firefox are varying versions
> older to current and I'm sure it is important to note that the window I
> am trying to close it the ONLY open window in the browser. My research
> shows that this should close but possibly display a
> warning/acknowledgment message first. I've also check through the
> preferences to see if there were any suppression settings and I've found
> none.
>
> Can someone please advise as to how one should accomplish this task?
>
> Thanks,
>
> bobmct
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
From cliff at pinestream.com Fri Dec 8 12:47:31 2006
From: cliff at pinestream.com (Cliff Hirsch)
Date: Fri, 8 Dec 2006 12:47:31 -0500
Subject: [nycphp-talk] Does anyone have Ioncube experience?
In-Reply-To: <457972FE.7090304@phpwerx.net>
Message-ID: <000f01c71af0$f1a64f30$12a8a8c0@HirschLaptop>
Dan:
Thanks. Sounds like it's not a showstopper. Certainly not worth
abandoning this shopping cart because of it...yet...
Cliff
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Dan Cech
Sent: Friday, December 08, 2006 9:13 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Does anyone have Ioncube experience?
Cliff Hirsch wrote:
> I am integrating a commercial php shopping cart that uses Ioncube to
protect
> some of the source. I've already encountered one problem where Ioncube
is not
> compatible with the Zend Studio Server debugger and wonder how it will
work
> with Zend Optimizer and opcode caching software like APC.
It will work ok with Zend Optimizer, just make sure that you're using
the latest versions of both Optimizer and the IONCube loader.
If you're installing the IONCube loader via php.ini, I believe it should
be initialized before Zend, the majority of my experience has been with
loading it dynamically.
>
> I'm wondering whether anyone has had experience with Ioncube -- good,
bad or
> ugly. Any other unexpected gotchas that I should know about before
deploying
> this in a production enviroment?
The only other oddity I've seen was one machine which experienced random
segfaults when using Zend Optimizer together with IONCube.
The solution turned out to be changing from using AddType in the
httpd.conf to AddHandler, since the change there have been no more
segfaults.
Dan
From edwardpotter at gmail.com Fri Dec 8 13:25:41 2006
From: edwardpotter at gmail.com (edward potter)
Date: Fri, 8 Dec 2006 13:25:41 -0500
Subject: [nycphp-talk] OT anyone interested in collaborating to use php to
program Dymo printer?
In-Reply-To: <457986F3.6020505@fdcx.net>
References: <457986F3.6020505@fdcx.net>
Message-ID:
Can you create a pdf and then just push that out?
:-) ed
On 12/8/06, R. Mariotti wrote:
> Slightly OT - but...
>
> I have several web projects where some of the results is to print
> formatted labels (not necessarily address) on a local or remote attached
> small label printer. Of those that are available, I've selected the
> Dymo because its "supported" by cups and it can connect via USB.
>
> I CAN get output to this printer by opening a pipe to "lp" and passing
> various parameters and then outputing my text. However, I cannot send
> ANY formatting instructions or the printer stops printing. It advances
> but nothing prints.
>
> Seeing how Dymo doesn't support Linux and none of the other hardware
> related forums are interested... I was wondering if anyone in this
> group has any interest in collaborating towards developing a method to
> get the control programming through to this type of printer.
> Perhaps the ultimate goal would be to develop a module that would be
> available to all as has been done with many other tasks.
>
> If anyone is interested, has access to or wishes to purchase and work
> with one of these inexpensive printers for this purpose, I would be most
> interested to hear from you.
>
> Thanks to anyone who responds.
>
> bobmct
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
--
the Blog: http://www.utopiaparkway.com
the Karma: http://www.coderswithconscience.com
the Projects: http://flickr.com/photos/86842405 at N00/
the Store: http://astore.amazon.com/httpwwwutopic-20
From rolan at omnistep.com Fri Dec 8 14:17:03 2006
From: rolan at omnistep.com (Rolan Yang)
Date: Fri, 08 Dec 2006 14:17:03 -0500
Subject: [nycphp-talk] OT anyone interested in collaborating to use php
to program Dymo printer?
In-Reply-To: <457986F3.6020505@fdcx.net>
References: <457986F3.6020505@fdcx.net>
Message-ID: <4579BA2F.6000207@omnistep.com>
Do you have the technical reference manual for the printer? url?
If the printer is form feeding or spitting out garbage, there might be
an error in the control code's you're feeding to it.
~Rolan
R. Mariotti wrote:
> Slightly OT - but...
>
> I have several web projects where some of the results is to print
> formatted labels (not necessarily address) on a local or remote
> attached small label printer. Of those that are available, I've
> selected the Dymo because its "supported" by cups and it can connect
> via USB.
>
> I CAN get output to this printer by opening a pipe to "lp" and passing
> various parameters and then outputing my text. However, I cannot
> send ANY formatting instructions or the printer stops printing. It
> advances but nothing prints.
>
> Seeing how Dymo doesn't support Linux and none of the other hardware
> related forums are interested... I was wondering if anyone in this
> group has any interest in collaborating towards developing a method to
> get the control programming through to this type of printer.
> Perhaps the ultimate goal would be to develop a module that would be
> available to all as has been done with many other tasks.
>
> If anyone is interested, has access to or wishes to purchase and work
> with one of these inexpensive printers for this purpose, I would be
> most interested to hear from you.
>
> Thanks to anyone who responds.
>
> bobmct
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
From codebowl at gmail.com Fri Dec 8 14:33:00 2006
From: codebowl at gmail.com (Joseph Crawford)
Date: Fri, 8 Dec 2006 14:33:00 -0500
Subject: [nycphp-talk] OT anyone interested in collaborating to use php to
program Dymo printer?
In-Reply-To: <4579BA2F.6000207@omnistep.com>
References: <457986F3.6020505@fdcx.net> <4579BA2F.6000207@omnistep.com>
Message-ID: <8d9a42800612081132m2f42c23h7a4d0db007f4c74b@mail.gmail.com>
you know i should look into this one day, i have never had the need or want
to push anything to a printer via php but it's a cool concept and i am sure
it can be accomplished.
On 12/8/06, Rolan Yang wrote:
>
> Do you have the technical reference manual for the printer? url?
> If the printer is form feeding or spitting out garbage, there might be
> an error in the control code's you're feeding to it.
>
> ~Rolan
>
> R. Mariotti wrote:
> > Slightly OT - but...
> >
> > I have several web projects where some of the results is to print
> > formatted labels (not necessarily address) on a local or remote
> > attached small label printer. Of those that are available, I've
> > selected the Dymo because its "supported" by cups and it can connect
> > via USB.
> >
> > I CAN get output to this printer by opening a pipe to "lp" and passing
> > various parameters and then outputing my text. However, I cannot
> > send ANY formatting instructions or the printer stops printing. It
> > advances but nothing prints.
> >
> > Seeing how Dymo doesn't support Linux and none of the other hardware
> > related forums are interested... I was wondering if anyone in this
> > group has any interest in collaborating towards developing a method to
> > get the control programming through to this type of printer.
> > Perhaps the ultimate goal would be to develop a module that would be
> > available to all as has been done with many other tasks.
> >
> > If anyone is interested, has access to or wishes to purchase and work
> > with one of these inexpensive printers for this purpose, I would be
> > most interested to hear from you.
> >
> > Thanks to anyone who responds.
> >
> > bobmct
> > _______________________________________________
> > New York PHP Community Talk Mailing List
> > http://lists.nyphp.org/mailman/listinfo/talk
> >
> > NYPHPCon 2006 Presentations Online
> > http://www.nyphpcon.com
> >
> > Show Your Participation in New York PHP
> > http://www.nyphp.org/show_participation.php
> >
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
--
Joseph Crawford Jr.
Zend Certified Engineer
Codebowl Solutions, Inc.
http://www.codebowl.com/
Blog: http://www.josephcrawford.com/
1-802-671-2021
codebowl at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From 1j0lkq002 at sneakemail.com Fri Dec 8 15:34:44 2006
From: 1j0lkq002 at sneakemail.com (inforequest)
Date: Fri, 08 Dec 2006 12:34:44 -0800
Subject: [nycphp-talk] Does anyone have Ioncube experience?
In-Reply-To: <20061208132024.M70796@pinestream.com>
References: <20061208132024.M70796@pinestream.com>
Message-ID: <30711-33212@sneakemail.com>
Cliff Hirsch cliff-at-pinestream.com |nyphp dev/internal group use| wrote:
>I am integrating a commercial php shopping cart that uses Ioncube to protect
>some of the source. I've already encountered one problem where Ioncube is not
>compatible with the Zend Studio Server debugger and wonder how it will work
>with Zend Optimizer and opcode caching software like APC.
>
>I'm wondering whether anyone has had experience with Ioncube -- good, bad or
>ugly. Any other unexpected gotchas that I should know about before deploying
>this in a production enviroment?
>
>Cliff
>--
>Pinestream Communications, Inc.
>Publisher of Semiconductor Times & Telecom Trends
>52 Pine Street, Weston, MA 02493 USA
>Tel: 781.647.8800, Fax: 781.647.8825, www.pinestream.com
>
I would review the license to see how it tries to restrict you from
decoding and viewing/modifying the encoded portions. This becomes an
issue when time has passed, they no longer support the product or
perhaps are no longer responsive, or you have other problems you cannot
resolve (such as phone home or security flaws).
It's a fact of life that encryption engines get cracked eventually, and
when your competitors (including hackers) know better than you what your
code is doing, you have an issue.
Currently the hottest area of search engine spamming is the CMS exploit
- using security flaws in popular CMSs to insert back links onto
people's web sites without their knowledge nor consent.
-=john andrews
Competitive Webmaster and Search Optimizer
--
-------------------------------------------------------------
Your web server traffic log file is the most important source of web business information available. Do you know where your logs are right now? Do you know who else has access to your log files? When they were last archived? Where those archives are? --John Andrews Competitive Webmaster and SEO Blogging at http://www.johnon.com
From rolan at omnistep.com Fri Dec 8 18:48:03 2006
From: rolan at omnistep.com (Rolan Yang)
Date: Fri, 08 Dec 2006 18:48:03 -0500
Subject: [nycphp-talk] freeing sql results
In-Reply-To: <3d672dbb43a242d9f3e63bcf1a50209b@localhost>
References: <3d672dbb43a242d9f3e63bcf1a50209b@localhost>
Message-ID: <4579F9B3.3070603@omnistep.com>
Try
$query = mysql_query("SELECT count(*) FROM activeAI WHERE locationID='$locationID' AND activeID <> '$activeID' AND isUndead=0");
list($numOtherAI)=mysql_fetch_row($query);
mysql_free_result($query);
It should conserve memory since MySql will be returning a single integer instead of the entire list of activeID's.
~Rolan
jface at mercenarylabs.com wrote:
> After a lot of trial and error I've narrowed down the offending query in my problem with sql results not freeing themselves up:
>
> $query = mysql_query("SELECT activeID FROM activeAI WHERE locationID='$locationID' AND activeID <> '$activeID' AND isUndead=0");
> $numOtherAI = mysql_num_rows($query);
> mysql_free_result($query);
>
> When I comment out this query, the error(s) go away. Variables $locationID and $activeID are both properly set.
>
> Is there something horribly wrong with this query? Is m_f_r() just not working? Too many ANDs?
>
> Jonathan
>
> On Tue, 5 Dec 2006 22:45:34 -0500, Jon Baer wrote:
>
>> Add a debug_print_backtrace() before the free result or query. I
>> find it to be very handy in PHP5, although I wish there was a way to
>> dump the results to a UDP port for catching it as well.
>>
>> - Jon
>>
>> On Dec 5, 2006, at 8:39 PM,
>> wrote:
>>
>>
>>> I have a very complex app I've been working on currently at about
>>> three thousand lines of code. All of a sudden it started spitting
>>> out the following warning:
>>>
>>> Warning: Unknown: 2 result set(s) not freed. Use mysql_free_result
>>> to free result sets which were requested using mysql_query() in
>>> Unknown on line 0
>>>
>>> So I went through it line-by-line and added a mysql_free_result()
>>> after EVERY query, to no avail.
>>>
>>> The worst thing about this error is that it doesn't give me a valid
>>> line number, so it's impossible to tell exactly where the bad
>>> queries are.
>>>
>>> This is occurring on a php5/mysql5/apache setup.
>>>
>>> Anyone have any suggestions? I'm out of ideas.
>>>
>>> Jonathan
>>>
>>> _______________________________________________
>>> New York PHP Community Talk Mailing List
>>> http://lists.nyphp.org/mailman/listinfo/talk
>>>
>>> NYPHPCon 2006 Presentations Online
>>> http://www.nyphpcon.com
>>>
>>> Show Your Participation in New York PHP
>>> http://www.nyphp.org/show_participation.php
>>>
>> _______________________________________________
>> New York PHP Community Talk Mailing List
>> http://lists.nyphp.org/mailman/listinfo/talk
>>
>> NYPHPCon 2006 Presentations Online
>> http://www.nyphpcon.com
>>
>> Show Your Participation in New York PHP
>> http://www.nyphp.org/show_participation.php
>>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
From tedd at sperling.com Fri Dec 8 22:30:39 2006
From: tedd at sperling.com (tedd)
Date: Fri, 8 Dec 2006 22:30:39 -0500
Subject: [nycphp-talk] OT anyone interested in collaborating to use php
to program Dymo printer?
In-Reply-To: <8d9a42800612081132m2f42c23h7a4d0db007f4c74b@mail.gmail.com>
References: <457986F3.6020505@fdcx.net> <4579BA2F.6000207@omnistep.com>
<8d9a42800612081132m2f42c23h7a4d0db007f4c74b@mail.gmail.com>
Message-ID:
At 2:33 PM -0500 12/8/06, Joseph Crawford wrote:
>you know i should look into this one day, i have never had the need
>or want to push anything to a printer via php but it's a cool
>concept and i am sure it can be accomplished
I don't push anything through a printer, but when I have to create
something that will work on most/all printers, I generate a PDF file
and let the user print it.
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
From Bob at madison-atlantic.com Sat Dec 9 12:22:07 2006
From: Bob at madison-atlantic.com (Bob Paul)
Date: Sat, 9 Dec 2006 12:22:07 -0500
Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions
Message-ID: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD>
Hello,
I am totally new to PHP and NYPHP. I've been trying for several days now to
install PHP, Apache and MySQL on my Win/XP system.
The Apache web server is functioning but I'm lost in the PHP configuration
files and have not a clue how to activate PHP. The Apache web server
totally ignores the PHP script inside my little HelloWorld.php -
PHP Test
Hello World from HTML
Hello World from PHP
'; ?>
I'm about to start searching through the NYPHP message archives, but if you
happen to know a link that will help me, I'd greatly appreciate hearing
about it.
All the best,
Bob
_____
Bob Paul
Madison-Atlantic Software
607.562.8921 (voice)
607.562.7248 (fax)
607.259.0583 (cell)
www.madison-atlantic.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From tgales at tgaconnect.com Sat Dec 9 13:01:59 2006
From: tgales at tgaconnect.com (Tim Gales)
Date: Sat, 09 Dec 2006 13:01:59 -0500
Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions
In-Reply-To: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD>
References: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD>
Message-ID: <457AFA17.6090005@tgaconnect.com>
Bob Paul wrote:
{snip]
> I'm lost in the PHP
> configuration files and have not a clue how to activate PHP.
in httpd.conf file be sure to include
LoadModule php5_module "C:/your/installation/php5apache2.dll"
and
AddType application/x-httpd-php .php
Then (after restarting) apache, try
http://your.server.com/info.php
(contents of info.php: )
and see what happens...
--
T. Gales & Associates
'Helping People Connect with Technology'
http://www.tgaconnect.com
From susan_shemin at yahoo.com Sat Dec 9 13:22:47 2006
From: susan_shemin at yahoo.com (Susan Shemin)
Date: Sat, 9 Dec 2006 10:22:47 -0800 (PST)
Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions
Message-ID: <20061209182247.26365.qmail@web50204.mail.yahoo.com>
just a suggestion, you can go to www.sokkit.net and its Sokkit utility has Apache, PHP and MySql all configured properly and you can be up and running in minutes
----- Original Message ----
From: Tim Gales
To: NYPHP Talk
Sent: Saturday, December 9, 2006 1:01:59 PM
Subject: Re: [nycphp-talk] Newbie seeks PHP installation help / suggestions
Bob Paul wrote:
{snip]
> I'm lost in the PHP
> configuration files and have not a clue how to activate PHP.
in httpd.conf file be sure to include
LoadModule php5_module "C:/your/installation/php5apache2.dll"
and
AddType application/x-httpd-php .php
Then (after restarting) apache, try
http://your.server.com/info.php
(contents of info.php: )
and see what happens...
--
T. Gales & Associates
'Helping People Connect with Technology'
http://www.tgaconnect.com
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Bob at madison-atlantic.com Sat Dec 9 15:58:14 2006
From: Bob at madison-atlantic.com (Bob Paul)
Date: Sat, 9 Dec 2006 15:58:14 -0500
Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions
Message-ID: <001801c71bd4$c1f45360$6601a8c0@ARCHIBALD>
I think I'm making progress, but I'm not there yet.
I'm running PHP 4.4.4 and Apache 2.2.3. This to get the best compatibility
with my two live sites at my web hosting service, where they run PHP 4.4.1
(one site) and 4.4.2 (the other site). Apache is listed as 2.0.
I changed the httpd.conf as follows, but now Apache fails to start -
* LoadModule php4_module "C:/PHP/php4apache2.dll" - added among other
load module statements (C:\PHP is where the .dll is located).
* PHPIniDir "C:/PHP" - added after DocumentRoot and before
* AddType application/x-httpd-php .php - added after "TypesConfig
conf/mime.types" in
Apache will start OK with the AddType statement, but not with LoadModule or
PHPIniDir.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From 1j0lkq002 at sneakemail.com Sat Dec 9 16:02:21 2006
From: 1j0lkq002 at sneakemail.com (inforequest)
Date: Sat, 09 Dec 2006 13:02:21 -0800
Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions
In-Reply-To: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD>
References: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD>
Message-ID: <23000-36149@sneakemail.com>
Bob Paul Bob-at-madison-atlantic.com |nyphp dev/internal group use| wrote:
> Hello,
>
> I am totally new to PHP and NYPHP. I've been trying for several days
> now to install PHP, Apache and MySQL on my Win/XP system.
>
> The Apache web server is functioning but I'm lost in the PHP
> configuration files and have not a clue how to activate PHP. The
> Apache web server totally ignores the PHP script inside my little
> HelloWorld.php -
>
>
>
> PHP Test
>
>
>
Hello World from HTML
> Hello World from PHP'; ?>
>
>
>
> I'm about to start searching through the NYPHP message archives, but
> if you happen to know a link that will help me, I'd greatly appreciate
> hearing about it.
>
> All the best,
> Bob
>
If you go the prepackaged LAMP route, there is also EasyPHP, XAMPP, and
WAMP for windows. All good installers, none good for a public machine
(security reasons).
Since your test file is HTML with embedded PHP, I assume it is named
something.html or something.htm? In that case Apache will not pass it to
the PHP engine by default. Check by looking at the source of the output
page.. if you see the embedded PHP code that's what happened.
Rename it something.php and try again.
If you want to pass your .html files through PHP (some people do), you
need to modify Apache's httpd.conf or use an htaccess file to add the
.html extension as a PHP application file type. For .php and .html the
line looks like this:
AddType application/x-httpd-php .php .html
For edumacational purposes, the best test file might be one like this:
PHP test Fle
This is HTML, and what follows is my php configuration:
-=john andrews
--
-------------------------------------------------------------
Your web server traffic log file is the most important source of web business information available. Do you know where your logs are right now? Do you know who else has access to your log files? When they were last archived? Where those archives are? --John Andrews Competitive Webmaster and SEO Blogging at http://www.johnon.com
From ramons at gmx.net Sat Dec 9 17:16:53 2006
From: ramons at gmx.net (David Krings)
Date: Sat, 09 Dec 2006 17:16:53 -0500
Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions
In-Reply-To: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD>
References: <001201c71bb6$90ad41e0$6601a8c0@ARCHIBALD>
Message-ID: <457B35D5.8000905@gmx.net>
Hi,
when I started with Apache and later with PHP I went through the same
problems....but didn't know of NYHP. I use XAMPP from apachefriends.org
for development, testing, and also as production server. I never had a
problem with installation or security. Apachefriend's XAMPP is really a
nice package and darn easy to install on either Windope or Linux.
Since then I never had a problem and now even EngInSite PHP Editor works
with Apachefriend's XAMPP. It can't get any better!!!
I really recommend to just download the XAMPP and start with
PHP....unless you really do want to get through all the manual
configuration. I recommend to reserve that for a later point.
David
Bob Paul wrote:
> Hello,
>
> I am totally new to PHP and NYPHP. I've been trying for several days
> now to install PHP, Apache and MySQL on my Win/XP system.
>
> The Apache web server is functioning but I'm lost in the PHP
> configuration files and have not a clue how to activate PHP. The
> Apache web server totally ignores the PHP script inside my little
> HelloWorld.php -
>
>
>
> PHP Test
>
>
>
Hello World from HTML
> Hello World from PHP'; ?>
>
>
>
> I'm about to start searching through the NYPHP message archives, but
> if you happen to know a link that will help me, I'd greatly appreciate
> hearing about it.
>
> All the best,
> Bob
>
> ------------------------------------------------------------------------
>
> Bob Paul
> Madison-Atlantic Software
> 607.562.8921 (voice)
> 607.562.7248 (fax)
> 607.259.0583 (cell)
> www.madison-atlantic.com
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
From Bob at madison-atlantic.com Sat Dec 9 17:33:58 2006
From: Bob at madison-atlantic.com (Bob Paul)
Date: Sat, 9 Dec 2006 17:33:58 -0500
Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions
Message-ID: <001d01c71be2$21529e90$6601a8c0@ARCHIBALD>
There are really good ideas here, both to patch the config files, and to
start from scratch with a preconfig such as XAMPP. Thank you.
I'm very much inclined to go the preconfig route at this point, but would
appreciate your thoughts about the PHP version. The web sites I support are
PHP 4.4.1 & 4.4.2 on Linux. I was hoping to use my Win/XP to test my
scripts locally before moving them to the live sites.
Any thoughts on compatibility issues if I develop in v5 for deployment on
v4.4?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From Bob at madison-atlantic.com Sat Dec 9 23:10:57 2006
From: Bob at madison-atlantic.com (Bob Paul)
Date: Sat, 9 Dec 2006 23:10:57 -0500
Subject: [nycphp-talk] Newbie seeks PHP installation help / suggestions
Message-ID: <000001c71c11$34e47e40$6601a8c0@ARCHIBALD>
I just want to thank you all. I dropped back and loaded XAMPP and things
are working much better. I still have a lot of tinkering and learning
ahead, but that's something I can handle.
I was concerned about compatibility with my live web sites (PHP 4.4), but it
turns out that XAMPP offers both PHP 4.4 and 5.0, so I should be OK.
Thanks again for all your help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From cmerlo at ncc.edu Sun Dec 10 17:20:45 2006
From: cmerlo at ncc.edu (Christopher R. Merlo)
Date: Sun, 10 Dec 2006 17:20:45 -0500
Subject: [nycphp-talk] New IT Courses at Nassau CC
Message-ID: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com>
Hello friends. My apologies for the cross-posting, but I'm sending the same
request to all groups.
We are developing two new web programming courses at NCC, and we need some
statements from people in management and leadership positions in IT to
support the need for these courses, which will teach HTML, JavaScript, CSS,
PHP, JSP, and RDBMS interaction with MySQL. If you feel you can help,
please e-mail me, and I'll send you the proposed course outlines.
Thanks in advance,
-c
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From laeeq38 at yahoo.com Sun Dec 10 18:44:25 2006
From: laeeq38 at yahoo.com (Laeeq Ahmed)
Date: Sun, 10 Dec 2006 15:44:25 -0800 (PST)
Subject: [nycphp-talk] unsubscribe
Message-ID: <20061210234425.55634.qmail@web56409.mail.re3.yahoo.com>
----- Original Message ----
From: Christopher R. Merlo
To: NYPHP Talk ; Long Island PHP Users' Group ; LILUG Mailing List
Sent: Sunday, December 10, 2006 10:20:45 PM
Subject: [nycphp-talk] New IT Courses at Nassau CC
Hello friends. My apologies for the cross-posting, but I'm sending the same request to all groups.
We are developing two new web programming courses at NCC, and we need some statements from people in management and leadership positions in IT to support the need for these courses, which will teach HTML, JavaScript, CSS, PHP, JSP, and RDBMS interaction with MySQL. If you feel you can help, please e-mail me, and I'll send you the proposed course outlines.
Thanks in advance,
-c
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
____________________________________________________________________________________
Any questions? Get answers on any topic at www.Answers.yahoo.com. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From ken at secdat.com Mon Dec 11 07:53:53 2006
From: ken at secdat.com (Kenneth Downs)
Date: Mon, 11 Dec 2006 07:53:53 -0500
Subject: [nycphp-talk] New IT Courses at Nassau CC
In-Reply-To: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com>
References: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com>
Message-ID: <457D54E1.3010800@secdat.com>
Christopher R. Merlo wrote:
> Hello friends. My apologies for the cross-posting, but I'm sending
> the same request to all groups.
>
> We are developing two new web programming courses at NCC, and we need
> some statements from people in management and leadership positions in
> IT to support the need for these courses, which will teach HTML,
> JavaScript, CSS, PHP, JSP, and RDBMS interaction with MySQL. If you
> feel you can help, please e-mail me, and I'll send you the proposed
> course outlines.
Something that I notice is often missing in whole or in part is an
appreciation of architecture-level concerns. In other words, people are
often taught how to code, but not *what* to code or *where*. The
critical issues of where to place code between the tiers, and how to
make such judgements, are often lacking.
Another factor that often seems to be missing, strange as it seems, is
the simple idea that all programs serve human goals. In other words,
some person somewhere is committing time and money to a system, and
almost always it is for the purpose of gain. While a good programmer
will take pride in the quality of his craftsmanship, it often seems to
be missing to take pride in serving the needs of the non-programmer who
is depending on you. While this may seem a "soft" issue compared to the
nuts-and-bolts of PHP or SQL, it separates a useful employee from a
useless one.
With those two ideas in mind, a personal beef of mine is the lack of
understanding of what a database is and what it can do, so I'm always in
favor of more emphasis in that area.
Finally, and this may seem strangest of all, the three most productive
employees I've ever had knew nothing of our particular technology when I
hired them. In each case I hired and attitude and an aptitude and then
showed them the language we were using and put them to work. None of
them was uneducated, I'm not suggesting no education was needed, but all
of them were well grounded in general principles. It seems the course
outline suggested above would be a wonderful cornerstone for teaching a
lot of very basic CS concepts, which might then produce some
general-thinking employment candidates.
>
> Thanks in advance,
> -c
> ------------------------------------------------------------------------
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ken.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: not available
URL:
From cderr at simons-rock.edu Mon Dec 11 08:30:20 2006
From: cderr at simons-rock.edu (charlie derr)
Date: Mon, 11 Dec 2006 08:30:20 -0500
Subject: [nycphp-talk] New IT Courses at Nassau CC
In-Reply-To: <457D54E1.3010800@secdat.com>
References: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com>
<457D54E1.3010800@secdat.com>
Message-ID: <457D5D6C.8000407@simons-rock.edu>
Kenneth Downs wrote:
> Christopher R. Merlo wrote:
>> Hello friends. My apologies for the cross-posting, but I'm sending
>> the same request to all groups.
>>
>> We are developing two new web programming courses at NCC, and we need
>> some statements from people in management and leadership positions in
>> IT to support the need for these courses, which will teach HTML,
>> JavaScript, CSS, PHP, JSP, and RDBMS interaction with MySQL. If you
>> feel you can help, please e-mail me, and I'll send you the proposed
>> course outlines.
>
> Something that I notice is often missing in whole or in part is an
> appreciation of architecture-level concerns. In other words, people are
> often taught how to code, but not *what* to code or *where*. The
> critical issues of where to place code between the tiers, and how to
> make such judgements, are often lacking.
>
> Another factor that often seems to be missing, strange as it seems, is
> the simple idea that all programs serve human goals. In other words,
> some person somewhere is committing time and money to a system, and
> almost always it is for the purpose of gain. While a good programmer
> will take pride in the quality of his craftsmanship, it often seems to
> be missing to take pride in serving the needs of the non-programmer who
> is depending on you. While this may seem a "soft" issue compared to the
> nuts-and-bolts of PHP or SQL, it separates a useful employee from a
> useless one.
>
> With those two ideas in mind, a personal beef of mine is the lack of
> understanding of what a database is and what it can do, so I'm always in
> favor of more emphasis in that area.
>
> Finally, and this may seem strangest of all, the three most productive
> employees I've ever had knew nothing of our particular technology when I
> hired them. In each case I hired and attitude and an aptitude and then
> showed them the language we were using and put them to work. None of
> them was uneducated, I'm not suggesting no education was needed, but all
> of them were well grounded in general principles. It seems the course
> outline suggested above would be a wonderful cornerstone for teaching a
> lot of very basic CS concepts, which might then produce some
> general-thinking employment candidates.
>
>>
>> Thanks in advance,
>> -c
>> ------------------------------------------------------------------------
I concur completely. One thing that would have made it obvious that the things you speak of had been considered is if UML had
been listed prominently (alongside the programming languages & html).
~c
From mailinglists at caseysoftware.com Mon Dec 11 08:45:58 2006
From: mailinglists at caseysoftware.com (Keith Casey)
Date: Mon, 11 Dec 2006 08:45:58 -0500
Subject: [nycphp-talk] New IT Courses at Nassau CC
In-Reply-To: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com>
References: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com>
Message-ID:
On 12/10/06, Christopher R. Merlo wrote:
> We are developing two new web programming courses at NCC, and we need some
> statements from people in management and leadership positions in IT to
> support the need for these courses, which will teach HTML, JavaScript, CSS,
> PHP, JSP, and RDBMS interaction with MySQL. If you feel you can help,
> please e-mail me, and I'll send you the proposed course outlines.
Personally, I'd like to see new developers have a sense of version
control, what it's used for, what it's not good for, etc. I've seen a
stunning number of developers - new and old - who don't have clue or
have the slightest motivation to use any of them... and this is a
problem I've seen in the PHP, Java, and asp worlds.
kc
--
D. Keith Casey Jr.
CEO, CaseySoftware, LLC
http://CaseySoftware.com
From edwardpotter at gmail.com Mon Dec 11 09:51:02 2006
From: edwardpotter at gmail.com (edward potter)
Date: Mon, 11 Dec 2006 09:51:02 -0500
Subject: [nycphp-talk] New IT Courses at Nassau CC
In-Reply-To: <457D54E1.3010800@secdat.com>
References: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com>
<457D54E1.3010800@secdat.com>
Message-ID:
Some good points, I think it would be cool to glue all these
applications into what could be a real project. A web site based on
the technologies that drives a Wiki that provides online disaster
relief updates from volunteers in the field. They need databases,
communications needs, online revenue generating models, communications
links, etc. You need to scan RSS feeds, how to write scripts that can
chat with a satellite, real time api-google mapping, custom blogs,
etc.
All the programming languages you are teaching here can be
Incorporated into something like that.
:-) ed
On 12/11/06, Kenneth Downs wrote:
>
> Christopher R. Merlo wrote:
> Hello friends. My apologies for the cross-posting, but I'm sending the same
> request to all groups.
>
>
> We are developing two new web programming courses at NCC, and we need some
> statements from people in management and leadership positions in IT to
> support the need for these courses, which will teach HTML, JavaScript, CSS,
> PHP, JSP, and RDBMS interaction with MySQL. If you feel you can help,
> please e-mail me, and I'll send you the proposed course outlines.
>
> Something that I notice is often missing in whole or in part is an
> appreciation of architecture-level concerns. In other words, people are
> often taught how to code, but not *what* to code or *where*. The critical
> issues of where to place code between the tiers, and how to make such
> judgements, are often lacking.
>
> Another factor that often seems to be missing, strange as it seems, is the
> simple idea that all programs serve human goals. In other words, some
> person somewhere is committing time and money to a system, and almost always
> it is for the purpose of gain. While a good programmer will take pride in
> the quality of his craftsmanship, it often seems to be missing to take pride
> in serving the needs of the non-programmer who is depending on you. While
> this may seem a "soft" issue compared to the nuts-and-bolts of PHP or SQL,
> it separates a useful employee from a useless one.
>
> With those two ideas in mind, a personal beef of mine is the lack of
> understanding of what a database is and what it can do, so I'm always in
> favor of more emphasis in that area.
>
> Finally, and this may seem strangest of all, the three most productive
> employees I've ever had knew nothing of our particular technology when I
> hired them. In each case I hired and attitude and an aptitude and then
> showed them the language we were using and put them to work. None of them
> was uneducated, I'm not suggesting no education was needed, but all of them
> were well grounded in general principles. It seems the course outline
> suggested above would be a wonderful cornerstone for teaching a lot of very
> basic CS concepts, which might then produce some general-thinking employment
> candidates.
>
>
>
> Thanks in advance,
> -c
> ________________________________
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
>
--
the Blog: http://www.utopiaparkway.com
the Karma: http://www.coderswithconscience.com
the Projects: http://flickr.com/photos/86842405 at N00/
the Store: http://astore.amazon.com/httpwwwutopic-20
From cmerlo at ncc.edu Mon Dec 11 10:40:49 2006
From: cmerlo at ncc.edu (Christopher R. Merlo)
Date: Mon, 11 Dec 2006 10:40:49 -0500
Subject: [nycphp-talk] New IT Courses at Nassau CC
In-Reply-To:
References: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com>
<457D54E1.3010800@secdat.com>
Message-ID: <946586480612110740le385f5cs54e0a98fdd924972@mail.gmail.com>
On 12/11/06, edward potter wrote:
Some good points, I think it would be cool to glue all these
> applications into what could be a real project. A web site based on
> the technologies that drives a Wiki that provides online disaster
> relief updates from volunteers in the field. They need databases,
> communications needs, online revenue generating models, communications
> links, etc. You need to scan RSS feeds, how to write scripts that can
> chat with a satellite, real time api-google mapping, custom blogs,
> etc.
I greatly appreciate all the points you have all raised regarding these
classes. Just as a point of information, I think you should all know that
the first of these two classes will not be the students' first programming
course. It's the third, actually, if I have the prerequisites right in my
head.
-c
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From tedd at sperling.com Mon Dec 11 14:25:03 2006
From: tedd at sperling.com (tedd)
Date: Mon, 11 Dec 2006 14:25:03 -0500
Subject: [nycphp-talk] New IT Courses at Nassau CC
In-Reply-To:
References: <946586480612101420p1bb4daf1g63fb875225ec505e@mail.gmail.com>
Message-ID:
At 8:45 AM -0500 12/11/06, Keith Casey wrote:
>On 12/10/06, Christopher R. Merlo wrote:
>>We are developing two new web programming courses at NCC, and we need some
>>statements from people in management and leadership positions in IT to
>>support the need for these courses, which will teach HTML, JavaScript, CSS,
>>PHP, JSP, and RDBMS interaction with MySQL. If you feel you can help,
>>please e-mail me, and I'll send you the proposed course outlines.
>
>Personally, I'd like to see new developers have a sense of version
>control, what it's used for, what it's not good for, etc. I've seen a
>stunning number of developers - new and old - who don't have clue or
>have the slightest motivation to use any of them... and this is a
>problem I've seen in the PHP, Java, and asp worlds.
>
>kc
That's what the time/date stamp is for, isn't it? :-)
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
From dkov at optonline.net Mon Dec 11 22:49:13 2006
From: dkov at optonline.net (dkov at optonline.net)
Date: Tue, 12 Dec 2006 03:49:13 +0000 (GMT)
Subject: [nycphp-talk] Cakephp
Message-ID:
Does anyone use the Cakephp framework? If you do, I have tried using thier session component to create and manage sessions. I have read every bit of information I can find on the internet. I still can't get my sessions working correctly. Please teach me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From nate at cakephp.org Tue Dec 12 12:11:35 2006
From: nate at cakephp.org (Nate Abele)
Date: Tue, 12 Dec 2006 12:11:35 -0500
Subject: [nycphp-talk] Re: Cakephp
In-Reply-To: <20061212165622.8299C10A806D@cakephp.org>
References: <20061212165622.8299C10A806D@cakephp.org>
Message-ID: <9C848869-DE27-469D-8B43-70A2D16FEA0F@cakephp.org>
Yes, I use the CakePHP framework ;-)
Exactly what kind of trouble are you having? Getting errors? Things
just aren't saving? Can you paste some code samples? By default,
the Session class acts as a wrapper for the $_SESSION variable, so
you may want to check and see if that works, because it could just be
a PHP problem. Also, FYI, Cake has it's own mailing list (http://
groups.google.com/group/cake-php/) and IRC channel (#cakephp on
freenode.net) where you may get more mileage faster (not that this
mailing list isn't excellent ;-)).
> Date: Tue, 12 Dec 2006 03:49:13 +0000 (GMT)
> From: dkov at optonline.net
> Subject: [nycphp-talk] Cakephp
>
> Does anyone use the Cakephp framework? If you do, I have tried
> using thier session component to create and manage sessions. I
> have read every bit of information I can find on the internet. I
> still can't get my sessions working correctly. Please teach me.
From chsnyder at gmail.com Tue Dec 12 12:41:12 2006
From: chsnyder at gmail.com (csnyder)
Date: Tue, 12 Dec 2006 12:41:12 -0500
Subject: [nycphp-talk] Zend IDE slooooow
Message-ID:
Any other Windows Zend Studio users experience a marked slowdown in
the last couple weeks?
Closing open files, for instance, takes seconds per file.
Something has definitely changed on my system, but other apps don't
seem to be affected. Just wondering if anyone else has experienced
this.
--
Chris Snyder
http://chxo.com/
From chsnyder at gmail.com Tue Dec 12 13:01:01 2006
From: chsnyder at gmail.com (csnyder)
Date: Tue, 12 Dec 2006 13:01:01 -0500
Subject: [nycphp-talk] Zend IDE slooooow
In-Reply-To: <20061212125105.37d7f95c@bjarne>
References:
<20061212125105.37d7f95c@bjarne>
Message-ID:
On 12/12/06, Craig Thomas wrote:
> On Tue, 12 Dec 2006 12:41:12 -0500
> csnyder wrote:
>
> > Any other Windows Zend Studio users experience a marked slowdown in
> > the last couple weeks?
>
> Since yesterday my windows install of Zend Studio wont
> even start....(but it's not the only app, Homesite too, so figuring the
> box has got something else wrong.)
>
Sometimes when the IDE won't start, you need to remove the file named
"port" in your Documents and Settings\ZDE folder.
If the IDE crashes and doesn't remove this file, it can hang on next startup.
--
Chris Snyder
http://chxo.com/
From cliff at pinestream.com Tue Dec 12 13:03:32 2006
From: cliff at pinestream.com (Cliff Hirsch)
Date: Tue, 12 Dec 2006 13:03:32 -0500
Subject: [nycphp-talk] Zend IDE slooooow
In-Reply-To:
Message-ID: <000001c71e17$d6c208b0$12a8a8c0@HirschLaptop>
I have had this problem on a randomly recurring basis for ages.
Sometimes it does take a while for Studio to close and once in a while
it does seem to take a few seconds to "think" between key clicks.
When I looked into it a while back, I thought it might have something to
do the number of classes and methods that have "awareness" in a project.
Try working on a single file, without opening a project, to see if the
problem persists.
Another thing I've tried when I want to get some serious coding (e.g.
coding, not debugging) done, is to shut down every background (and
foreground) process I can -- little ones like itunes stuff and Quickbook
updaters, but more importantly Apache and MySQL. Does make using the
debugger a bit tough though! Running Apache, MySQL, Outlook, FileMaker,
Fireworks, Word, etc. while running Zend Studio is a surefire disaster.
My two cents...
Cliff
P.S. I'm using Studio 5.1
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of csnyder
Sent: Tuesday, December 12, 2006 12:41 PM
To: NYPHP Talk
Subject: [nycphp-talk] Zend IDE slooooow
Any other Windows Zend Studio users experience a marked slowdown in
the last couple weeks?
Closing open files, for instance, takes seconds per file.
Something has definitely changed on my system, but other apps don't
seem to be affected. Just wondering if anyone else has experienced
this.
--
Chris Snyder
http://chxo.com/
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
From skyline at publicmine.com Tue Dec 12 13:26:18 2006
From: skyline at publicmine.com (Ben Sgro (sk))
Date: Tue, 12 Dec 2006 13:26:18 -0500
Subject: [nycphp-talk] Zend IDE slooooow
References: <000001c71e17$d6c208b0$12a8a8c0@HirschLaptop>
Message-ID: <008101c71e1b$06b935e0$6401a8c0@gamebox>
Hello All,
I experianced this problem often when working with projects. It seemed to
consume A TON (dont' remember the #'s) of memory till it choked itself.
If i opened files and not projects it seemed to last longer. I tried a bunch
of different things back then and now I just dont use Zend IDE. I dont like
it.
Give me Emacs and a few putty windows.
Heh, well good luck!
- Ben
----- Original Message -----
From: "Cliff Hirsch"
To: "'NYPHP Talk'"
Sent: Tuesday, December 12, 2006 1:03 PM
Subject: RE: [nycphp-talk] Zend IDE slooooow
>I have had this problem on a randomly recurring basis for ages.
> Sometimes it does take a while for Studio to close and once in a while
> it does seem to take a few seconds to "think" between key clicks.
>
> When I looked into it a while back, I thought it might have something to
> do the number of classes and methods that have "awareness" in a project.
> Try working on a single file, without opening a project, to see if the
> problem persists.
>
> Another thing I've tried when I want to get some serious coding (e.g.
> coding, not debugging) done, is to shut down every background (and
> foreground) process I can -- little ones like itunes stuff and Quickbook
> updaters, but more importantly Apache and MySQL. Does make using the
> debugger a bit tough though! Running Apache, MySQL, Outlook, FileMaker,
> Fireworks, Word, etc. while running Zend Studio is a surefire disaster.
>
> My two cents...
>
> Cliff
>
> P.S. I'm using Studio 5.1
>
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
> On Behalf Of csnyder
> Sent: Tuesday, December 12, 2006 12:41 PM
> To: NYPHP Talk
> Subject: [nycphp-talk] Zend IDE slooooow
>
> Any other Windows Zend Studio users experience a marked slowdown in
> the last couple weeks?
>
> Closing open files, for instance, takes seconds per file.
>
> Something has definitely changed on my system, but other apps don't
> seem to be affected. Just wondering if anyone else has experienced
> this.
>
> --
> Chris Snyder
> http://chxo.com/
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
From cliff at pinestream.com Tue Dec 12 13:32:09 2006
From: cliff at pinestream.com (Cliff Hirsch)
Date: Tue, 12 Dec 2006 13:32:09 -0500
Subject: [nycphp-talk] Zend IDE slooooow
In-Reply-To: <008101c71e1b$06b935e0$6401a8c0@gamebox>
Message-ID: <001101c71e1b$d52d8930$12a8a8c0@HirschLaptop>
I agree that it is probably a memory hog (combined with Java, don't
forget), but I do use it successfully on a lowly Pentium III with just
256M of memory.
Cliff
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Ben Sgro (sk)
Sent: Tuesday, December 12, 2006 1:26 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Zend IDE slooooow
Hello All,
I experianced this problem often when working with projects. It seemed
to
consume A TON (dont' remember the #'s) of memory till it choked itself.
If i opened files and not projects it seemed to last longer. I tried a
bunch
of different things back then and now I just dont use Zend IDE. I dont
like
it.
Give me Emacs and a few putty windows.
Heh, well good luck!
- Ben
----- Original Message -----
From: "Cliff Hirsch"
To: "'NYPHP Talk'"
Sent: Tuesday, December 12, 2006 1:03 PM
Subject: RE: [nycphp-talk] Zend IDE slooooow
>I have had this problem on a randomly recurring basis for ages.
> Sometimes it does take a while for Studio to close and once in a while
> it does seem to take a few seconds to "think" between key clicks.
>
> When I looked into it a while back, I thought it might have something
to
> do the number of classes and methods that have "awareness" in a
project.
> Try working on a single file, without opening a project, to see if the
> problem persists.
>
> Another thing I've tried when I want to get some serious coding (e.g.
> coding, not debugging) done, is to shut down every background (and
> foreground) process I can -- little ones like itunes stuff and
Quickbook
> updaters, but more importantly Apache and MySQL. Does make using the
> debugger a bit tough though! Running Apache, MySQL, Outlook,
FileMaker,
> Fireworks, Word, etc. while running Zend Studio is a surefire
disaster.
>
> My two cents...
>
> Cliff
>
> P.S. I'm using Studio 5.1
>
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org]
> On Behalf Of csnyder
> Sent: Tuesday, December 12, 2006 12:41 PM
> To: NYPHP Talk
> Subject: [nycphp-talk] Zend IDE slooooow
>
> Any other Windows Zend Studio users experience a marked slowdown in
> the last couple weeks?
>
> Closing open files, for instance, takes seconds per file.
>
> Something has definitely changed on my system, but other apps don't
> seem to be affected. Just wondering if anyone else has experienced
> this.
>
> --
> Chris Snyder
> http://chxo.com/
From craig at juxtadigital.com Tue Dec 12 12:51:05 2006
From: craig at juxtadigital.com (Craig Thomas)
Date: Tue, 12 Dec 2006 12:51:05 -0500
Subject: [nycphp-talk] Zend IDE slooooow
In-Reply-To:
References:
Message-ID: <20061212125105.37d7f95c@bjarne>
On Tue, 12 Dec 2006 12:41:12 -0500
csnyder wrote:
> Any other Windows Zend Studio users experience a marked slowdown in
> the last couple weeks?
Since yesterday my windows install of Zend Studio wont
even start....(but it's not the only app, Homesite too, so figuring the
box has got something else wrong.)
From rolan at omnistep.com Tue Dec 12 14:46:04 2006
From: rolan at omnistep.com (Rolan Yang)
Date: Tue, 12 Dec 2006 14:46:04 -0500
Subject: [nycphp-talk] Zend IDE slooooow
In-Reply-To: <20061212125105.37d7f95c@bjarne>
References:
<20061212125105.37d7f95c@bjarne>
Message-ID: <457F06FC.70305@omnistep.com>
Odd to see this happening to everyone at the same time. Try setting the
date on your computer back 1 month and see what happens.
~Rolan
Craig Thomas wrote:
> On Tue, 12 Dec 2006 12:41:12 -0500
> csnyder wrote:
>
>
>> Any other Windows Zend Studio users experience a marked slowdown in
>> the last couple weeks?
>>
>
> Since yesterday my windows install of Zend Studio wont
> even start....(but it's not the only app, Homesite too, so figuring the
> box has got something else wrong.)
> ___
From dmintz at davidmintz.org Tue Dec 12 15:24:48 2006
From: dmintz at davidmintz.org (David Mintz)
Date: Tue, 12 Dec 2006 15:24:48 -0500 (EST)
Subject: [nycphp-talk] Zend IDE slooooow
In-Reply-To: <20061212125105.37d7f95c@bjarne>
References:
<20061212125105.37d7f95c@bjarne>
Message-ID:
You guys are talking about Windows and I am using Fedora Core IV, but...
ZDE has always been a PITA: slowing down, hanging, suspected of hanging
the whole system. I am using 5.1.0. I keep wondering if throwing more
memory and CPU at it would help. (Are you listening, Santa Claus?)
Good thing (or is it bad?) that its many virtues still persuade me to stay
with the program.
---
David Mintz
http://davidmintz.org/
En Nueva York el tr?nsito de la belleza a la desolaci?n sucede
siempre expeditivamente, como si el principio universal
de m?xima eficiencia hubiera aconsejado la supresi?n de
gradaciones intermedias.
-- Antonio Mu?oz Molina, Ventanas de Manhattan
From jbaer at VillageVoice.com Tue Dec 12 15:31:29 2006
From: jbaer at VillageVoice.com (Baer, Jon)
Date: Tue, 12 Dec 2006 15:31:29 -0500
Subject: [nycphp-talk] Zend IDE slooooow
In-Reply-To:
Message-ID: <4D2FAD9B00577645932AD7ED5FECA24503E6418B@mail>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I would not even be on a Workstation w/ Zend studio < 1 gig of ram.
Ive noticed a few hangups w/ networked mounts and SVN repositories. But all in all nothing Im not used to on Windows.
I wonder if the latest round of MS problems would not grind networking to a halt on a few networked apps.
- - Jon
- -----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On Behalf Of David Mintz
Sent: Tuesday, December 12, 2006 3:25 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Zend IDE slooooow
You guys are talking about Windows and I am using Fedora Core IV, but...
ZDE has always been a PITA: slowing down, hanging, suspected of hanging the whole system. I am using 5.1.0. I keep wondering if throwing more memory and CPU at it would help. (Are you listening, Santa Claus?)
Good thing (or is it bad?) that its many virtues still persuade me to stay with the program.
- ---
David Mintz
http://davidmintz.org/
En Nueva York el tr?nsito de la belleza a la desolaci?n sucede siempre expeditivamente, como si el principio universal de m?xima eficiencia hubiera aconsejado la supresi?n de gradaciones intermedias.
-- Antonio Mu?oz Molina, Ventanas de Manhattan
_______________________________________________
New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
iD8DBQFFfxGh99e5DI8C/rsRAga/AKDN0QDUvBcvA/+QqVAK5nI8A+PECwCfT35V
Z3JjJVGVO/F+sJjDkxGLb40=
=BbI5
-----END PGP SIGNATURE-----
From chsnyder at gmail.com Tue Dec 12 16:38:23 2006
From: chsnyder at gmail.com (csnyder)
Date: Tue, 12 Dec 2006 16:38:23 -0500
Subject: [nycphp-talk] Re: Zend IDE slooooow
In-Reply-To:
References:
Message-ID:
Thanks for everyone's responses, this is just something that happened
in the last couple weeks. I've seen the stability probs on Linux, it
feels like a Java app, etc. I can live with all that because it does
what I need it to do, and I have plenty of memory for it to play in.
It sounds as if it's local to my workstation. I don't know if that
changes my approach to the problem, but at least I can rule out
waiting on bugfix release.
--
Chris Snyder
http://chxo.com/
From craig at juxtadigital.com Tue Dec 12 20:06:54 2006
From: craig at juxtadigital.com (Craig Thomas)
Date: Tue, 12 Dec 2006 20:06:54 -0500
Subject: [nycphp-talk] Zend IDE slooooow
In-Reply-To:
References:
<20061212125105.37d7f95c@bjarne>
Message-ID: <20061212200654.57ede0f1@localhost.localdomain>
On Tue, 12 Dec 2006 15:24:48 -0500 (EST)
David Mintz wrote:
>
> You guys are talking about Windows and I am using Fedora Core IV,
> but... ZDE has always been a PITA: slowing down, hanging, suspected
> of hanging the whole system. I am using 5.1.0. I keep wondering if
> throwing more memory and CPU at it would help. (Are you listening,
> Santa Claus?)
Hm, I use Zend Studio with Fedora Core 6 and it works great(hate
to work w/o it...)...I have a P4/1GB ram, so nothing special.
> Good thing (or is it bad?) that its many virtues still persuade me to
> stay with the program.
IMHO, it's a 'good thing' this ZDE. Eclipse has a long way to go
to catch up (but it will surpass, in time, I think)...now if Zend Studio
could just generate getters and setters!
From ramons at gmx.net Tue Dec 12 21:07:01 2006
From: ramons at gmx.net (David Krings)
Date: Tue, 12 Dec 2006 21:07:01 -0500
Subject: [nycphp-talk] Zend IDE slooooow
In-Reply-To: <20061212200654.57ede0f1@localhost.localdomain>
References: <20061212125105.37d7f95c@bjarne>
<20061212200654.57ede0f1@localhost.localdomain>
Message-ID: <457F6045.10303@gmx.net>
Hi,
for those who look for a good alternative IDE, try Luckasoft's EngInSite
PHP Editor. A professional IDE and not even expensive. I tried many PHP
IDEs and find EngInSite to be the best. Agreed, there are some things
that could be better, but Mr. Lucka is very responsive when it comes to
improving the Editor.
Just my 2 cents....
David
From dmintz at davidmintz.org Tue Dec 12 21:13:20 2006
From: dmintz at davidmintz.org (David Mintz)
Date: Tue, 12 Dec 2006 21:13:20 -0500 (EST)
Subject: [nycphp-talk] OT (totally): why the Edvard Munch on Google?
Message-ID:
Anybody know why Google has The Scream up there today?
---
David Mintz
http://davidmintz.org/
En Nueva York el tr?nsito de la belleza a la desolaci?n sucede
siempre expeditivamente, como si el principio universal
de m?xima eficiencia hubiera aconsejado la supresi?n de
gradaciones intermedias.
-- Antonio Mu?oz Molina, Ventanas de Manhattan
From jay at wnymusic.com Tue Dec 12 21:16:51 2006
From: jay at wnymusic.com (Jay)
Date: Tue, 12 Dec 2006 21:16:51 -0500
Subject: [nycphp-talk] OT (totally): why the Edvard Munch on Google?
In-Reply-To:
References:
Message-ID:
>From the first hit on Google:
http://www.ibiblio.org/wm/paint/auth/munch/
Edvard Munch
b. Dec. 12, 1863, L?ten, Nor.--d. Jan. 23, 1944, Ekely, near Oslo
It's good old Edvard's b-day!
On 12/12/06, David Mintz wrote:
>
> Anybody know why Google has The Scream up there today?
>
> ---
> David Mintz
> http://davidmintz.org/
>
> En Nueva York el tr?nsito de la belleza a la desolaci?n sucede
> siempre expeditivamente, como si el principio universal
> de m?xima eficiencia hubiera aconsejado la supresi?n de
> gradaciones intermedias.
>
> -- Antonio Mu?oz Molina, Ventanas de Manhattan
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
From jonbaer at jonbaer.com Tue Dec 12 23:54:30 2006
From: jonbaer at jonbaer.com (Jon Baer)
Date: Tue, 12 Dec 2006 23:54:30 -0500
Subject: [nycphp-talk] [ot] Nice little reference site
Message-ID: <9B3B2B1F-D516-4F00-9AE2-2CC0E38D5676@jonbaer.com>
For when one reference/cheatsheet is just not enough ...
http://www.gotapi.com
- Jon
From cliff at pinestream.com Wed Dec 13 10:43:58 2006
From: cliff at pinestream.com (Cliff Hirsch)
Date: Wed, 13 Dec 2006 10:43:58 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment
platforms
Message-ID: <000e01c71ecd$81b68560$2b00000a@HirschLaptop>
After this flurry of ZEND IDE problems, my laptop's 10 minute battery
life, 256M of RAM, overheating, etc., I'm thinking it's finally time to
get a new laptop. And I'm thinking of bailing Windows to get a Macbook
pro or just a regular macbook.
Is anyone using Zend on an Intel-based Macbook? Any problems? Good
development environment? Any comments regarding the Macbook vs Mackbook
pro?
Chanukah is only two days away.
Cliff
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jeff.knight at gmail.com Wed Dec 13 11:05:22 2006
From: jeff.knight at gmail.com (Jeff Knight)
Date: Wed, 13 Dec 2006 10:05:22 -0600
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment
platforms
In-Reply-To: <000e01c71ecd$81b68560$2b00000a@HirschLaptop>
References: <000e01c71ecd$81b68560$2b00000a@HirschLaptop>
Message-ID: <2ca9ba910612130805y7f4cd2d0m7e4a8588f00c8dcd@mail.gmail.com>
I'm running it on a Mac Pro desktop and was just mocking Snyder
because 5.5 runs fast and smoothly for me.
On 12/13/06, Cliff Hirsch wrote:
>
>
>
>
> After this flurry of ZEND IDE problems, my laptop's 10 minute battery life,
> 256M of RAM, overheating, etc., I'm thinking it's finally time to get a new
> laptop. And I'm thinking of bailing Windows to get a Macbook pro or just a
> regular macbook.
>
>
>
> Is anyone using Zend on an Intel-based Macbook? Any problems? Good
> development environment? Any comments regarding the Macbook vs Mackbook pro?
>
>
>
> Chanukah is only two days away?
>
>
>
> Cliff
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
From phplists at jellyandcustard.com Wed Dec 13 11:08:06 2006
From: phplists at jellyandcustard.com (Khalid Hanif)
Date: Wed, 13 Dec 2006 16:08:06 +0000
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment
platforms
In-Reply-To: <000e01c71ecd$81b68560$2b00000a@HirschLaptop>
References: <000e01c71ecd$81b68560$2b00000a@HirschLaptop>
Message-ID:
Hi Cliff,
I have been using Zend IDE for a few years now on OS X on a
powerbook, and more recently, a Mac Pro and a Macbook Pro. On the Mac
Pro, the IDE is lightning fast (as one would expect). On the 2ghz
Intel Core Duo Macbook Pro, the IDE is a delight to work with, and no
noticeable problems. I have 1gb Ram, and usually have Mail, Firefox,
iTunes, Transmit (FTP), Adium (MSN Chat) and a few other small
programs running alongside it. Zend is also saving/opening files over
an NFS mount on a local network.
Java support on the Apple Mac is a lot better / faster in my
experience over windows.
Rgds,
Khalid
On 13 Dec 2006, at 15:43, Cliff Hirsch wrote:
> After this flurry of ZEND IDE problems, my laptop?s 10 minute
> battery life, 256M of RAM, overheating, etc., I?m thinking it?s
> finally time to get a new laptop. And I?m thinking of bailing
> Windows to get a Macbook pro or just a regular macbook.
>
>
>
> Is anyone using Zend on an Intel-based Macbook? Any problems? Good
> development environment? Any comments regarding the Macbook vs
> Mackbook pro?
>
>
>
> Chanukah is only two days away?
>
>
>
> Cliff
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jonbaer at jonbaer.com Wed Dec 13 11:07:35 2006
From: jonbaer at jonbaer.com (Jon Baer)
Date: Wed, 13 Dec 2006 11:07:35 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment
platforms
In-Reply-To: <000e01c71ecd$81b68560$2b00000a@HirschLaptop>
References: <000e01c71ecd$81b68560$2b00000a@HirschLaptop>
Message-ID: <3D00A091-8B4B-4C7F-92C1-2632F3A0C8BE@jonbaer.com>
The 'coherence mode' in the new Parallels desktop alone is worth a
Macbook Pro. Zend Studio on the Mac is pretty much all the same (w/
the exception of Aqua-ized scrollbars). You may need to update to
latest JVM when you get it though, I believe Studio requires the latest.
- Jon
On Dec 13, 2006, at 10:43 AM, Cliff Hirsch wrote:
> After this flurry of ZEND IDE problems, my laptop?s 10 minute
> battery life, 256M of RAM, overheating, etc., I?m thinking it?s
> finally time to get a new laptop. And I?m thinking of bailing
> Windows to get a Macbook pro or just a regular macbook.
>
>
>
> Is anyone using Zend on an Intel-based Macbook? Any problems? Good
> development environment? Any comments regarding the Macbook vs
> Mackbook pro?
>
>
>
> Chanukah is only two days away?
>
>
>
> Cliff
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From pyurt at yahoo.com Wed Dec 13 11:07:48 2006
From: pyurt at yahoo.com (P Yurt)
Date: Wed, 13 Dec 2006 08:07:48 -0800 (PST)
Subject: [nycphp-talk] Re: Zend IDE slooooow
Message-ID: <836103.96974.qm@web52213.mail.yahoo.com>
I did read somewhere that Preferences "OS Look and Feel" can
cause extreme
slowdown. Try switching it.
Explore the Evolving Web
www.2.0websites.com
Paul Yurt, Publisher
paul(@)2.0websites.com
480-585-0007
-----Original Message-----
From: talk-bounces at lists.nyphp.org
[mailto:talk-bounces at lists.nyphp.org] On
Behalf Of csnyder
Sent: Tuesday, December 12, 2006 2:38 PM
To: NYPHP Talk
Subject: [nycphp-talk] Re: Zend IDE slooooow
Thanks for everyone's responses, this is just something that
happened
in the last couple weeks. I've seen the stability probs on
Linux, it
feels like a Java app, etc. I can live with all that because it
does
what I need it to do, and I have plenty of memory for it to play
in.
It sounds as if it's local to my workstation. I don't know if
that
changes my approach to the problem, but at least I can rule out
waiting on bugfix release.
--
Chris Snyder
http://chxo.com/
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
From mwithington at PLMresearch.com Wed Dec 13 11:10:18 2006
From: mwithington at PLMresearch.com (Mark Withington)
Date: Wed, 13 Dec 2006 11:10:18 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment
platforms
In-Reply-To: <000e01c71ecd$81b68560$2b00000a@HirschLaptop>
References: <000e01c71ecd$81b68560$2b00000a@HirschLaptop>
Message-ID: <491198290612130810l72da85a8o2a386c2339c8e98a@mail.gmail.com>
Cliff, I'm about 3 weeks ahead of you. The MacBook Pro is great! Run it
with Parallels and you can develop in both Windoz and OSX (nice for browser
output comparison). OSX comes with PHP 4.x so you'll have to upgrade if you
want 5.x - mysql needs to be installed. OSX also comes with Apache 1.x.
I'm in the process of installing Zend (appears to work w/out a problem).
Note: OSX is a gui friendly version of FreeBSD. The upside is it's Unix,
the downside is there a learning curve if you're not a Unix guy.
In general - jump in, the water is great!
On 12/13/06, Cliff Hirsch wrote:
>
> After this flurry of ZEND IDE problems, my laptop's 10 minute battery
> life, 256M of RAM, overheating, etc., I'm thinking it's finally time to get
> a new laptop. And I'm thinking of bailing Windows to get a Macbook pro or
> just a regular macbook.
>
>
>
> Is anyone using Zend on an Intel-based Macbook? Any problems? Good development
> environment? Any comments regarding the Macbook vs Mackbook pro?
>
>
>
> Chanukah is only two days away?
>
>
>
> Cliff
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
--
Mark
--------------------------
Mark L. Withington
PLMresearch
PO Box 1354
Plymouth, MA 02362
o: 800-310-3992 ext. 704
f: 508-746-4973
v: 508-746-2383
m: 508-801-0181
Skype: 508-570-2285
http://www.PLMresearch.com
AIM/MSN/Skype: PLMresearch
mwithington at plmresearch.com
Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc
Calendar: http://www.plmresearch.com/calendar.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From cliff at pinestream.com Wed Dec 13 11:22:39 2006
From: cliff at pinestream.com (Cliff Hirsch)
Date: Wed, 13 Dec 2006 11:22:39 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as
develomentplatforms
In-Reply-To:
Message-ID: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop>
I'm almost sold. Last question:
Be cheap and get the MacBook or spring for the Pro?
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Khalid Hanif
Sent: Wednesday, December 13, 2006 11:08 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Zend IDE problems and the Apple MACs as
develomentplatforms
Hi Cliff,
I have been using Zend IDE for a few years now on OS X on a powerbook,
and more recently, a Mac Pro and a Macbook Pro. On the Mac Pro, the IDE
is lightning fast (as one would expect). On the 2ghz Intel Core Duo
Macbook Pro, the IDE is a delight to work with, and no noticeable
problems. I have 1gb Ram, and usually have Mail, Firefox, iTunes,
Transmit (FTP), Adium (MSN Chat) and a few other small programs running
alongside it. Zend is also saving/opening files over an NFS mount on a
local network.
Java support on the Apple Mac is a lot better / faster in my experience
over windows.
Rgds,
Khalid
On 13 Dec 2006, at 15:43, Cliff Hirsch wrote:
After this flurry of ZEND IDE problems, my laptop's 10 minute battery
life, 256M of RAM, overheating, etc., I'm thinking it's finally time to
get a new laptop. And I'm thinking of bailing Windows to get a Macbook
pro or just a regular macbook.
Is anyone using Zend on an Intel-based Macbook? Any problems? Good
development environment? Any comments regarding the Macbook vs Mackbook
pro?
Chanukah is only two days away.
Cliff
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jeff.knight at gmail.com Wed Dec 13 11:40:52 2006
From: jeff.knight at gmail.com (Jeff Knight)
Date: Wed, 13 Dec 2006 10:40:52 -0600
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as
develomentplatforms
In-Reply-To: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop>
References:
<001801c71ed2$ed8a55a0$2b00000a@HirschLaptop>
Message-ID: <2ca9ba910612130840o781d7dc2la01705466959bc9b@mail.gmail.com>
Its your money, but I'd say spring. While I don't have any personal
experience with either of the current models, historically their
consumer models have never been quite worth it.
On 12/13/06, Cliff Hirsch wrote:
> I'm almost sold. Last question:
> > Be cheap and get the MacBook or spring for the Pro?
From mwithington at PLMresearch.com Wed Dec 13 12:04:14 2006
From: mwithington at PLMresearch.com (Mark Withington)
Date: Wed, 13 Dec 2006 12:04:14 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as
develomentplatforms
In-Reply-To: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop>
References:
<001801c71ed2$ed8a55a0$2b00000a@HirschLaptop>
Message-ID: <491198290612130904i50bfd00ak43cb4eb53c2ddffb@mail.gmail.com>
Go Pro. It's about the same amount once you get it configured with ram,
hard disk, etc.
On 12/13/06, Cliff Hirsch wrote:
>
> I'm almost sold. Last question:
>
>
>
> Be cheap and get the MacBook or spring for the Pro?
>
>
>
>
>
> -----Original Message-----
> *From:* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
> *On Behalf Of *Khalid Hanif
> *Sent:* Wednesday, December 13, 2006 11:08 AM
> *To:* NYPHP Talk
> *Subject:* Re: [nycphp-talk] Zend IDE problems and the Apple MACs as
> develomentplatforms
>
>
>
> Hi Cliff,
>
>
>
> I have been using Zend IDE for a few years now on OS X on a powerbook, and
> more recently, a Mac Pro and a Macbook Pro. On the Mac Pro, the IDE is
> lightning fast (as one would expect). On the 2ghz Intel Core Duo Macbook
> Pro, the IDE is a delight to work with, and no noticeable problems. I have
> 1gb Ram, and usually have Mail, Firefox, iTunes, Transmit (FTP), Adium (MSN
> Chat) and a few other small programs running alongside it. Zend is also
> saving/opening files over an NFS mount on a local network.
>
>
>
> Java support on the Apple Mac is a lot better / faster in my experience
> over windows.
>
>
>
> Rgds,
>
> Khalid
>
>
>
> On 13 Dec 2006, at 15:43, Cliff Hirsch wrote:
>
>
>
> After this flurry of ZEND IDE problems, my laptop's 10 minute battery
> life, 256M of RAM, overheating, etc., I'm thinking it's finally time to get
> a new laptop. And I'm thinking of bailing Windows to get a Macbook pro or
> just a regular macbook.
>
>
>
> Is anyone using Zend on an Intel-based Macbook? Any problems? Good
> development environment? Any comments regarding the Macbook vs Mackbookpro?
>
>
>
> Chanukah is only two days away?
>
>
>
> Cliff
>
> _______________________________________________
>
> New York PHP Community Talk Mailing List
>
> http://lists.nyphp.org/mailman/listinfo/talk
>
>
>
> NYPHPCon 2006 Presentations Online
>
> http://www.nyphpcon.com
>
>
>
> Show Your Participation in New York PHP
>
> http://www.nyphp.org/show_participation.php
>
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
--
Mark
--------------------------
Mark L. Withington
PLMresearch
PO Box 1354
Plymouth, MA 02362
o: 800-310-3992 ext. 704
f: 508-746-4973
v: 508-746-2383
m: 508-801-0181
Skype: 508-570-2285
http://www.PLMresearch.com
AIM/MSN/Skype: PLMresearch
mwithington at plmresearch.com
Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc
Calendar: http://www.plmresearch.com/calendar.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From chsnyder at gmail.com Wed Dec 13 12:23:47 2006
From: chsnyder at gmail.com (csnyder)
Date: Wed, 13 Dec 2006 12:23:47 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment
platforms
In-Reply-To: <2ca9ba910612130805y7f4cd2d0m7e4a8588f00c8dcd@mail.gmail.com>
References: <000e01c71ecd$81b68560$2b00000a@HirschLaptop>
<2ca9ba910612130805y7f4cd2d0m7e4a8588f00c8dcd@mail.gmail.com>
Message-ID:
On 12/13/06, Jeff Knight wrote:
> I'm running it on a Mac Pro desktop and was just mocking Snyder
> because 5.5 runs fast and smoothly for me.
I don't feel mocked. I noticed the slowdown at work because I use ZDE
on a MacBook Pro at home. A much better experience, imho, except that
I use a custom key mapping because the default shortcuts are different
between platforms.
--
Chris Snyder
http://chxo.com/
From cliff at pinestream.com Wed Dec 13 13:01:17 2006
From: cliff at pinestream.com (Cliff Hirsch)
Date: Wed, 13 Dec 2006 13:01:17 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as
develomentplatforms
In-Reply-To: <491198290612130810l72da85a8o2a386c2339c8e98a@mail.gmail.com>
Message-ID: <000001c71ee0$b04f8ee0$12a8a8c0@HirschLaptop>
Is Parallels the way to go to run Windows on a MAC? Don't bother with
the Apple or any other solution?
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Mark Withington
Sent: Wednesday, December 13, 2006 11:10 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Zend IDE problems and the Apple MACs as
develomentplatforms
Cliff, I'm about 3 weeks ahead of you. The MacBook Pro is great! Run
it with Parallels and you can develop in both Windoz and OSX (nice for
browser output comparison). OSX comes with PHP 4.x so you'll have to
upgrade if you want 5.x - mysql needs to be installed. OSX also comes
with Apache 1.x. I'm in the process of installing Zend (appears to work
w/out a problem).
Note: OSX is a gui friendly version of FreeBSD. The upside is it's
Unix, the downside is there a learning curve if you're not a Unix guy.
In general - jump in, the water is great!
On 12/13/06, Cliff Hirsch wrote:
After this flurry of ZEND IDE p roblems, my lap top 's 10 minute battery
life, 256M of RAM, overheating, etc., I'm thinking it's finally time to
get a new lapto p. And I'm thinking of bailing Windows to get a Macbook
p ro or just a regular macbook.
Is anyone using Zend on an Intel-based Macbook? Any p roblems? Good
develop ment environment? Any comments regarding the Macbook vs Mackbook
p ro?
Chanukah is only two days away.
Cliff
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
--
Mark
--------------------------
Mark L. Withington
PLMresearch
PO Box 1354
Plymouth, MA 02362
o: 800-310-3992 ext. 704
f: 508-746-4973
v: 508-746-2383
m: 508-801-0181
Skype: 508-570-2285
http://www.PLMresearch.com
AIM/MSN/Skype: PLMresearch
mwithington at plmresearch.com
Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc
Calendar: http://www.plmresearch.com/calendar.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From mwithington at PLMresearch.com Wed Dec 13 13:13:48 2006
From: mwithington at PLMresearch.com (Mark Withington)
Date: Wed, 13 Dec 2006 13:13:48 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as
develomentplatforms
In-Reply-To: <000001c71ee0$b04f8ee0$12a8a8c0@HirschLaptop>
References: <491198290612130810l72da85a8o2a386c2339c8e98a@mail.gmail.com>
<000001c71ee0$b04f8ee0$12a8a8c0@HirschLaptop>
Message-ID: <491198290612131013q25521619j158b1db3c7c28401@mail.gmail.com>
I'm told you can boot-up in Windows, parallels let's you run them both (osx
and win) at the same time - which is nice when you're doing gui stuff and
want to see what it looks like on ie, safari, etc.
On 12/13/06, Cliff Hirsch wrote:
>
> Is Parallels the way to go to run Windows on a MAC? Don't bother with the
> Apple or any other solution?
>
>
>
> -----Original Message-----
> *From:* talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
> *On Behalf Of *Mark Withington
> *Sent:* Wednesday, December 13, 2006 11:10 AM
>
> *To:* NYPHP Talk
> *Subject:* Re: [nycphp-talk] Zend IDE problems and the Apple MACs as
> develomentplatforms
>
>
>
> Cliff, I'm about 3 weeks ahead of you. The MacBook Pro is great! Run it
> with Parallels and you can develop in both Windoz and OSX (nice for browser
> output comparison). OSX comes with PHP 4.x so you'll have to upgrade if
> you want 5.x - mysql needs to be installed. OSX also comes with Apache
> 1.x. I'm in the process of installing Zend (appears to work w/out a
> problem).
>
> Note: OSX is a gui friendly version of FreeBSD. The upside is it's Unix,
> the downside is there a learning curve if you're not a Unix guy.
>
> In general - jump in, the water is great!
>
> On 12/13/06, *Cliff Hirsch* wrote:
>
> After this flurry of ZEND IDE p roblems, my lap top 's 10 minute battery
> life, 256M of RAM, overheating, etc., I'm thinking it's finally time to get
> a new lapto p. And I'm thinking of bailing Windows to get a Macbook p ro or
> just a regular macbook.
>
>
>
> Is anyone using Zend on an Intel-based Macbook? Any p roblems? Good
> develop ment environment? Any comments regarding the Macbook vs Mackbook p
> ro?
>
>
>
> Chanukah is only two days away?
>
>
>
> Cliff
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
>
>
> --
> Mark
>
> --------------------------
> Mark L. Withington
> PLMresearch
> PO Box 1354
> Plymouth, MA 02362
> o: 800-310-3992 ext. 704
> f: 508-746-4973
> v: 508-746-2383
> m: 508-801-0181
> Skype: 508-570-2285
> http://www.PLMresearch.com
> AIM/MSN/Skype: PLMresearch
> mwithington at plmresearch.com
> Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc
> Calendar: http://www.plmresearch.com/calendar.php
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
--
Mark
--------------------------
Mark L. Withington
PLMresearch
PO Box 1354
Plymouth, MA 02362
o: 800-310-3992 ext. 704
f: 508-746-4973
v: 508-746-2383
m: 508-801-0181
Skype: 508-570-2285
http://www.PLMresearch.com
AIM/MSN/Skype: PLMresearch
mwithington at plmresearch.com
Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc
Calendar: http://www.plmresearch.com/calendar.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From tim at tmcode.com Wed Dec 13 13:27:48 2006
From: tim at tmcode.com (Tim McEwen)
Date: Wed, 13 Dec 2006 13:27:48 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as
develomentplatforms
In-Reply-To: <000001c71ee0$b04f8ee0$12a8a8c0@HirschLaptop>
References: <000001c71ee0$b04f8ee0$12a8a8c0@HirschLaptop>
Message-ID: <4B8DBCAE-8C98-45AC-93B4-5B2D9761A220@tmcode.com>
With the latest Parallels you can actually use the same partition/
windows install for Bootcamp and Parallels. That way you can stay in
osx most of the time and only reboot into Bootcamp if you need better
hardware support (games?)
Personally, I have parallels open all the time (testing soap
compatibility between .Net and PHP) and rarely reboot into
bootcamp. Visual studio runs great and everything feels snappy in
windows.
If you are going to use several os x apps (specially ZDE, mail and
firefox) at the same times at parallels you really need 2 gigs of ram.
-Tim
On Dec 13, 2006, at 1:01 PM, Cliff Hirsch wrote:
> Is Parallels the way to go to run Windows on a MAC? Don?t bother
> with the Apple or any other solution?
>
>
>
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org [mailto:talk-
> bounces at lists.nyphp.org] On Behalf Of Mark Withington
> Sent: Wednesday, December 13, 2006 11:10 AM
> To: NYPHP Talk
> Subject: Re: [nycphp-talk] Zend IDE problems and the Apple MACs as
> develomentplatforms
>
>
>
> Cliff, I'm about 3 weeks ahead of you. The MacBook Pro is great!
> Run it with Parallels and you can develop in both Windoz and OSX
> (nice for browser output comparison). OSX comes with PHP 4.x so
> you'll have to upgrade if you want 5.x - mysql needs to be
> installed. OSX also comes with Apache 1.x. I'm in the process of
> installing Zend (appears to work w/out a problem).
>
> Note: OSX is a gui friendly version of FreeBSD. The upside is
> it's Unix, the downside is there a learning curve if you're not a
> Unix guy.
>
> In general - jump in, the water is great!
>
> On 12/13/06, Cliff Hirsch wrote:
>
> After this flurry of ZEND IDE p roblems, my lap top 's 10 minute
> battery life, 256M of RAM, overheating, etc., I'm thinking it's
> finally time to get a new lapto p. And I'm thinking of bailing
> Windows to get a Macbook p ro or just a regular macbook.
>
>
>
> Is anyone using Zend on an Intel-based Macbook? Any p roblems? Good
> develop ment environment? Any comments regarding the Macbook vs
> Mackbook p ro?
>
>
>
> Chanukah is only two days away?
>
>
>
> Cliff
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
>
>
> --
> Mark
>
> --------------------------
> Mark L. Withington
> PLMresearch
> PO Box 1354
> Plymouth, MA 02362
> o: 800-310-3992 ext. 704
> f: 508-746-4973
> v: 508-746-2383
> m: 508-801-0181
> Skype: 508-570-2285
> http://www.PLMresearch.com
> AIM/MSN/Skype: PLMresearch
> mwithington at plmresearch.com
> Public Key: http://www.plmresearch.com/keys/MLW_public_key.asc
> Calendar: http://www.plmresearch.com/calendar.php
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From tboyden at supercoups.com Wed Dec 13 13:37:28 2006
From: tboyden at supercoups.com (Timothy Boyden)
Date: Wed, 13 Dec 2006 13:37:28 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs
asdevelomentplatforms
In-Reply-To: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop>
Message-ID:
The main differences between the Macbook and Macbook Pro is:
Screen size: 13" vs. 15"
Video Card: Intel integrated vs. ATI Radeon Mobility
Price: $1499 vs. $1999
If you don't need the extra 40 GB of HD space or the Black color, you
can save another $200 with the mid-range Macbook.
I definitely recommend maxing out the RAM to 2 GB with the Macbook if
you're going to use Parallels. Get the extra RAM via aftermarket - it's
less expensive.
I run a Black Macbook though not with Zend, and it's noticeably faster
then even some of the newer Dell Dimension desktops with Core 2 Duo
processors. Sure it maybe a little slower for games or high-end work in
Photoshop with the integrated graphics card, but for programming, you
won't even notice it. Plus when Apple switches platforms in another 3
years again you won't be pissed you spent the extra money on the thing!
;-p
-Tim
---------------------------
Timothy Boyden
Network Administrator
tboyden at supercoups.com
SuperCoups(r) | 350 Revolutionary Drive | E. Taunton, MA 02718
508-977-2034 | www.supercoups.com
---------------------------
________________________________
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Cliff Hirsch
Sent: Wednesday, December 13, 2006 11:23 AM
To: 'NYPHP Talk'
Subject: RE: [nycphp-talk] Zend IDE problems and the Apple MACs
asdevelomentplatforms
I'm almost sold. Last question:
Be cheap and get the MacBook or spring for the Pro?
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of Khalid Hanif
Sent: Wednesday, December 13, 2006 11:08 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Zend IDE problems and the Apple MACs as
develomentplatforms
Hi Cliff,
I have been using Zend IDE for a few years now on OS X on a powerbook,
and more recently, a Mac Pro and a Macbook Pro. On the Mac Pro, the IDE
is lightning fast (as one would expect). On the 2ghz Intel Core Duo
Macbook Pro, the IDE is a delight to work with, and no noticeable
problems. I have 1gb Ram, and usually have Mail, Firefox, iTunes,
Transmit (FTP), Adium (MSN Chat) and a few other small programs running
alongside it. Zend is also saving/opening files over an NFS mount on a
local network.
Java support on the Apple Mac is a lot better / faster in my experience
over windows.
Rgds,
Khalid
On 13 Dec 2006, at 15:43, Cliff Hirsch wrote:
After this flurry of ZEND IDE problems, my laptop's 10 minute battery
life, 256M of RAM, overheating, etc., I'm thinking it's finally time to
get a new laptop. And I'm thinking of bailing Windows to get a Macbook
pro or just a regular macbook.
Is anyone using Zend on an Intel-based Macbook? Any problems? Good
development environment? Any comments regarding the Macbook vs Mackbook
pro?
Chanukah is only two days away...
Cliff
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jeff.loiselle at gmail.com Wed Dec 13 14:29:47 2006
From: jeff.loiselle at gmail.com (Jeff Loiselle)
Date: Wed, 13 Dec 2006 14:29:47 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as
develomentplatforms
In-Reply-To: <001801c71ed2$ed8a55a0$2b00000a@HirschLaptop>
References:
<001801c71ed2$ed8a55a0$2b00000a@HirschLaptop>
Message-ID: <4b1887110612131129o5f7638fckea90ef630d9a477a@mail.gmail.com>
I don't mean to rain on everyone's parade.. but I've had my MacBook
Pro since April and it's already been in the shop twice in the last 4
weeks for broken fans. I love the thing and all, but is literally the
first laptop I've owned that I've ever had to send in for service.
Surf YouTube for MacBook pro noises to hear the wails and screams that
some of them make.
Otherwise, I'd say go for it. Zend works great when the fans aren't
eroding the inner casing.
From mailinglists at caseysoftware.com Wed Dec 13 14:32:26 2006
From: mailinglists at caseysoftware.com (Keith Casey)
Date: Wed, 13 Dec 2006 14:32:26 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as develoment
platforms
In-Reply-To: <3D00A091-8B4B-4C7F-92C1-2632F3A0C8BE@jonbaer.com>
References: <000e01c71ecd$81b68560$2b00000a@HirschLaptop>
<3D00A091-8B4B-4C7F-92C1-2632F3A0C8BE@jonbaer.com>
Message-ID:
On 12/13/06, Jon Baer wrote:
> The 'coherence mode' in the new Parallels desktop alone is worth a Macbook
> Pro. Zend Studio on the Mac is pretty much all the same (w/ the exception
> of Aqua-ized scrollbars). You may need to update to latest JVM when you get
> it though, I believe Studio requires the latest.
Java 6 (or 1.6 if you're keeping track) was released two days ago...
anyone try it with that yet? All of my Java apps (servlets on Tomcat)
are already running 20-40% faster. It'd be nice if the Zend IDE was
the same...
keith
--
D. Keith Casey Jr.
CEO, CaseySoftware, LLC
http://CaseySoftware.com
From chsnyder at gmail.com Wed Dec 13 18:01:51 2006
From: chsnyder at gmail.com (csnyder)
Date: Wed, 13 Dec 2006 18:01:51 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs as
develomentplatforms
In-Reply-To: <4b1887110612131129o5f7638fckea90ef630d9a477a@mail.gmail.com>
References:
<001801c71ed2$ed8a55a0$2b00000a@HirschLaptop>
<4b1887110612131129o5f7638fckea90ef630d9a477a@mail.gmail.com>
Message-ID:
On 12/13/06, Jeff Loiselle wrote:
> I don't mean to rain on everyone's parade.. but I've had my MacBook
> Pro since April and it's already been in the shop twice in the last 4
> weeks for broken fans. I love the thing and all, but is literally the
> first laptop I've owned that I've ever had to send in for service.
>
> Surf YouTube for MacBook pro noises to hear the wails and screams that
> some of them make.
>
> Otherwise, I'd say go for it. Zend works great when the fans aren't
> eroding the inner casing.
Fewer problems with more recent units, but Apple's quality control is
obviously not what it once was.
I highly recommend smcFanControl to set a minimum threshold fan speed
on your MacBook Pro. Apple _should_ provide a control panel for it,
but they don't. Real shame, too, because the motherboard is apparently
capable of much fine tuning when it comes to power consumption, chip
speed, temperature and the like.
--
Chris Snyder
http://chxo.com/
From paul at devonianfarm.com Wed Dec 13 18:10:48 2006
From: paul at devonianfarm.com (Paul Houle)
Date: Wed, 13 Dec 2006 18:10:48 -0500
Subject: [nycphp-talk] Cakephp
In-Reply-To:
References:
Message-ID: <45808878.5040108@devonianfarm.com>
dkov at optonline.net wrote:
> Does anyone use the Cakephp framework? If you do, I have tried using
> thier session component to create and manage sessions. I have read
> every bit of information I can find on the internet. I still can't
> get my sessions working correctly. Please teach me.
I avoid session variables -- most applications that use session
variables are "broken by design". If you do manage to get sessions to
work, the next thing you'll be asking us is how to disable the back button.
The "stateless" paradigm of web programming is responsible for many
of it's advantages: the reasons why we're writing web-based business
apps instead of other applications.
It turns out that the behavior of cookies in mainstream web browsers
are largely undocumented; it's bad enough if you've got control of the
cookies that you're sticking on people, but things get really
mysterious when some library you don't control is doing it.
PHP locks the $_SESSION variable when it's in use -- this causes
lots of problems for apps that have multiple frames, use AJAX, etc.
If you want to write reliable web apps, keep your "session" state
in well-engineered database tables, and use signed cookies to attach a
session id to users. You'll spend a less time dealing with mysterious
behavior on the part of the $_SESSION object.
From cliff at pinestream.com Wed Dec 13 18:06:02 2006
From: cliff at pinestream.com (Cliff Hirsch)
Date: Wed, 13 Dec 2006 18:06:02 -0500
Subject: [nycphp-talk] Zend IDE problems and the Apple MACs
asdevelomentplatforms
In-Reply-To:
Message-ID: <000701c71f0b$42ca1630$12a8a8c0@HirschLaptop>
Or you can do what I do for my wintel machine. I bought a case of
instant coldpaks!
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org]
On Behalf Of csnyder
Sent: Wednesday, December 13, 2006 6:02 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] Zend IDE problems and the Apple MACs
asdevelomentplatforms
On 12/13/06, Jeff Loiselle wrote:
> I don't mean to rain on everyone's parade.. but I've had my MacBook
> Pro since April and it's already been in the shop twice in the last 4
> weeks for broken fans. I love the thing and all, but is literally the
> first laptop I've owned that I've ever had to send in for service.
>
> Surf YouTube for MacBook pro noises to hear the wails and screams that
> some of them make.
>
> Otherwise, I'd say go for it. Zend works great when the fans aren't
> eroding the inner casing.
Fewer problems with more recent units, but Apple's quality control is
obviously not what it once was.
I highly recommend smcFanControl to set a minimum threshold fan speed
on your MacBook Pro. Apple _should_ provide a control panel for it,
but they don't. Real shame, too, because the motherboard is apparently
capable of much fine tuning when it comes to power consumption, chip
speed, temperature and the like.
--
Chris Snyder
http://chxo.com/
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
From chsnyder at gmail.com Wed Dec 13 18:12:38 2006
From: chsnyder at gmail.com (csnyder)
Date: Wed, 13 Dec 2006 18:12:38 -0500
Subject: [nycphp-talk] Re: Zend IDE slooooow
In-Reply-To: <836103.96974.qm@web52213.mail.yahoo.com>
References: <836103.96974.qm@web52213.mail.yahoo.com>
Message-ID:
On 12/13/06, P Yurt wrote:
> I did read somewhere that Preferences "OS Look and Feel" can
> cause extreme
> slowdown. Try switching it.
>
+1 good tip.
Didn't speed up the ops that got slower recently, but sped everything
else up so I don't really notice any more.
From jonbaer at jonbaer.com Wed Dec 13 23:18:33 2006
From: jonbaer at jonbaer.com (Jon Baer)
Date: Wed, 13 Dec 2006 23:18:33 -0500
Subject: [nycphp-talk] Zend Studio 5.5 on JSE6 (fast)
Message-ID:
http://developer.apple.com/java/
I just downloaded Java SE 6.0 Release 1 Developer Preview 6 from the
ADC, symlinked it to Current version and have to say that Zend Studio
is running much faster even on just a PowerBookG4, can only imagine
what it feels like on Intel.
It has that fast no-lag non-aliased Windows feel. Im impressed.
Going to try out Eclipse and RadRails as well. Thanks for the tip!
- Jon
From ashaw at polymerdb.org Thu Dec 14 11:44:16 2006
From: ashaw at polymerdb.org (Allen Shaw)
Date: Thu, 14 Dec 2006 10:44:16 -0600
Subject: [nycphp-talk] session variables "evil"? (was: re: Cakephp)
In-Reply-To: <45808878.5040108@devonianfarm.com>
References:
<45808878.5040108@devonianfarm.com>
Message-ID: <45817F60.5080900@polymerdb.org>
Paul Houle wrote:
> most applications that use session variables are "broken by design".
>
Really? That's a surprising assertion, though I'll agree my surprise
probably comes more from my own lack of insight than a flaw in your
argument. Of course a quick google shows a few people hold that session
vars are "evil," but I can't find much to back up the idea.
Can you elaborate, or give us a few links on the topic?
(BTW, Paul, I'm sure you're not speaking without experience, just want
to clarify my own understanding a little more.)
- Allen
--
Allen Shaw
Polymer (http://polymerdb.org)
slidePresenter (http://slides.sourceforge.net)
From support at dailytechnology.net Thu Dec 14 11:49:22 2006
From: support at dailytechnology.net (Brian Dailey)
Date: Thu, 14 Dec 2006 11:49:22 -0500
Subject: [nycphp-talk] session variables "evil"?
In-Reply-To: <45817F60.5080900@polymerdb.org>
References: <45808878.5040108@devonianfarm.com>
<45817F60.5080900@polymerdb.org>
Message-ID: <45818092.4040409@dailytechnology.net>
I've been writing PHP for years now, and this is the first time I've
been aware of anyone complaining about oddities with $_SESSION (granted,
I use it for little else than tracking user information). What sort of
"oddities" have you seen?
- Brian
Allen Shaw wrote:
> Paul Houle wrote:
>> most applications that use session variables are "broken by design".
>>
>
> Really? That's a surprising assertion, though I'll agree my surprise
> probably comes more from my own lack of insight than a flaw in your
> argument. Of course a quick google shows a few people hold that session
> vars are "evil," but I can't find much to back up the idea.
>
> Can you elaborate, or give us a few links on the topic?
>
> (BTW, Paul, I'm sure you're not speaking without experience, just want
> to clarify my own understanding a little more.)
>
> - Allen
>
From stephen at capellic.com Thu Dec 14 11:55:45 2006
From: stephen at capellic.com (Stephen Musgrave)
Date: Thu, 14 Dec 2006 11:55:45 -0500
Subject: [nycphp-talk] Deep Linking with AJAX?
Message-ID:
I have a designer who would like to have links on the subnav to NOT
refresh the page. This could be done with iFrames, but best if done
with a DIV using AJAX.
However, from a usability perspective, I am concerned that the URL
displayed on the Location string is not the page they are looking at
after they have loaded an AJAX page. If the user does a copy/paste
into an email to send to somebody, they will not arrive at the
intended page.
I have looked at Christian Cantrell's article
on the topic (though that's over a year old now) and the work-arounds
were less than convincing.
Does anybody know of a better technique to do this or is the
consensus that if I want the URL to reflect the actual page I am
viewing, it should be the old fashion way with page refreshes?
Thanks!
From tedd at sperling.com Thu Dec 14 12:01:04 2006
From: tedd at sperling.com (tedd)
Date: Thu, 14 Dec 2006 12:01:04 -0500
Subject: [nycphp-talk] session variables "evil"? (was: re: Cakephp)
In-Reply-To: <45817F60.5080900@polymerdb.org>
References:
<45808878.5040108@devonianfarm.com> <45817F60.5080900@polymerdb.org>
Message-ID:
Paul Houle wrote:
>most applications that use session variables are "broken by design".
Well then, most of my applications are broke. What other methods do
you suggest for communication between stateless applications?
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
From support at dailytechnology.net Thu Dec 14 12:01:11 2006
From: support at dailytechnology.net (Brian Dailey)
Date: Thu, 14 Dec 2006 12:01:11 -0500
Subject: [nycphp-talk] Deep Linking with AJAX?
In-Reply-To:
References:
Message-ID: <45818357.2080605@dailytechnology.net>
I'm not quite sure I get your intent fully, but I think what you're
going to want to do is include the actual URL in the link, and then do a
javascript "return false" onclick. Add javascript to observe clicks on
that link (by element id) and perform the ajax function using that.
I prefer to do this with scriptaculous - it ends up looking something
like this
link
Stephen Musgrave wrote:
> I have a designer who would like to have links on the subnav to NOT
> refresh the page. This could be done with iFrames, but best if done
> with a DIV using AJAX.
>
> However, from a usability perspective, I am concerned that the URL
> displayed on the Location string is not the page they are looking at
> after they have loaded an AJAX page. If the user does a copy/paste into
> an email to send to somebody, they will not arrive at the intended page.
>
> I have looked at Christian Cantrell's article
>
> on the topic (though that's over a year old now) and the work-arounds
> were less than convincing.
>
> Does anybody know of a better technique to do this or is the consensus
> that if I want the URL to reflect the actual page I am viewing, it
> should be the old fashion way with page refreshes?
>
> Thanks!
>
>
>
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
From shiflett at php.net Thu Dec 14 12:11:44 2006
From: shiflett at php.net (Chris Shiflett)
Date: Thu, 14 Dec 2006 12:11:44 -0500
Subject: [nycphp-talk] Deep Linking with Ajax?
In-Reply-To:
References:
Message-ID: <458185D0.3010702@php.net>
Stephen Musgrave wrote:
> I have a designer who would like to have links on the subnav to
> NOT refresh the page.
Ugh. Why not? Navigation links go to different pages (with presumably
different content), therefore the URL should change. I'm sure you can
manage to use Ajax and other client-side technologies to mimic going to
a different page (changing the URL and such), but this is a perfect
example of misusing Ajax.
Just so it doesn't sound like I'm anti-Ajax, there are situations where
it can be useful. One example is a comment form with a preview. To
display the preview, you could use Ajax to exchange the minimum amount
of information with the server as necessary (to process the comment
using whatever filtering/formatting is already in place on the server)
and display the preview on the current page. The URL would not change,
but from a user's perspective, the page hasn't changed either, so it's OK.
That's my opinion. :-)
Chris
--
Chris Shiflett
http://shiflett.org/
From nate at cakephp.org Thu Dec 14 12:31:58 2006
From: nate at cakephp.org (Nate Abele)
Date: Thu, 14 Dec 2006 12:31:58 -0500
Subject: [nycphp-talk] Re: Cakephp
In-Reply-To: <20061214165607.EC2FA10A806D@cakephp.org>
References: <20061214165607.EC2FA10A806D@cakephp.org>
Message-ID: <5A875E29-BAA3-4E0B-AAA9-D6F57C08F2C2@cakephp.org>
Hey Paul, don't get me wrong, because I completely agree about the
statelessness of the web being critical for RESTfulness and whatnot,
but seriously, any app that uses $_SESSION is broken? I'm sure I'm
not the only one who would beg to differ on that one, especially
since there are many good JavaScript-based methods for overcoming
session issues where users are browsing using multiple tabs or Ajax
apps.
But regardless of all that, please refer to the following: app/config/
core.php:
define("CAKE_SESSION_SAVE", "database");
> Date: Wed, 13 Dec 2006 18:10:48 -0500
> From: Paul Houle
> Subject: Re: [nycphp-talk] Cakephp
>
> dkov at optonline.net wrote:
>> Does anyone use the Cakephp framework? If you do, I have tried using
>> thier session component to create and manage sessions. I have read
>> every bit of information I can find on the internet. I still can't
>> get my sessions working correctly. Please teach me.
> I avoid session variables -- most applications that use session
> variables are "broken by design". If you do manage to get sessions to
> work, the next thing you'll be asking us is how to disable the
> back button.
>
> The "stateless" paradigm of web programming is responsible for
> many
> of it's advantages: the reasons why we're writing web-based business
> apps instead of other applications.
>
> It turns out that the behavior of cookies in mainstream web
> browsers
> are largely undocumented; it's bad enough if you've got control of
> the
> cookies that you're sticking on people, but things get really
> mysterious when some library you don't control is doing it.
>
> PHP locks the $_SESSION variable when it's in use -- this causes
> lots of problems for apps that have multiple frames, use AJAX, etc.
>
> If you want to write reliable web apps, keep your "session" state
> in well-engineered database tables, and use signed cookies to
> attach a
> session id to users. You'll spend a less time dealing with mysterious
> behavior on the part of the $_SESSION object.
From dell at sala.ca Thu Dec 14 12:33:02 2006
From: dell at sala.ca (Dell Sala)
Date: Thu, 14 Dec 2006 12:33:02 -0500
Subject: [nycphp-talk] Deep Linking with Ajax?
In-Reply-To: <458185D0.3010702@php.net>
References:
<458185D0.3010702@php.net>
Message-ID: <26E3A32F-77C3-4CAF-9C57-CE598E7BFCC7@sala.ca>
I understand your concerns here, but I don't think Stephen has given
us enough information here to make a judgement one way or another. It
really depends on the usability requirements for each specific case.
I've been amazed how avoiding page reloads can improve user
experience, and even make the developers life easier, especially when
designing web apps with complex user interaction and state requirements.
That being said, if it is just a case of a sub-nav for displaying
nested, non-interactive content, AJAX is probably overkill.
***
The issue of "accurate" URLs, and possible solutions are documented
well on ajaxpaterns.org:
http://ajaxpatterns.org/Unique_URLs
-- Dell
On Dec 14, 2006, at 12:11 PM, Chris Shiflett wrote:
> Stephen Musgrave wrote:
>> I have a designer who would like to have links on the subnav to
>> NOT refresh the page.
>
> Ugh. Why not? Navigation links go to different pages (with presumably
> different content), therefore the URL should change. I'm sure you can
> manage to use Ajax and other client-side technologies to mimic
> going to
> a different page (changing the URL and such), but this is a perfect
> example of misusing Ajax.
>
> Just so it doesn't sound like I'm anti-Ajax, there are situations
> where
> it can be useful. One example is a comment form with a preview. To
> display the preview, you could use Ajax to exchange the minimum amount
> of information with the server as necessary (to process the comment
> using whatever filtering/formatting is already in place on the server)
> and display the preview on the current page. The URL would not change,
> but from a user's perspective, the page hasn't changed either, so
> it's OK.
>
> That's my opinion. :-)
>
> Chris
>
> --
> Chris Shiflett
> http://shiflett.org/
From rmarscher at beaffinitive.com Thu Dec 14 13:24:08 2006
From: rmarscher at beaffinitive.com (Rob Marscher)
Date: Thu, 14 Dec 2006 13:24:08 -0500
Subject: [nycphp-talk] Deep Linking with Ajax?
In-Reply-To: <26E3A32F-77C3-4CAF-9C57-CE598E7BFCC7@sala.ca>
References: <458185D0.3010702@php.net>
<26E3A32F-77C3-4CAF-9C57-CE598E7BFCC7@sala.ca>
Message-ID: <458196C8.1020901@beaffinitive.com>
There's a proposal out there for DOM additions that would make this kind
of thing easier:
http://whatwg.org/specs/web-apps/current-work/#pushstate
I would guess it's a long way from being a reality and you'd probably
still have to have the anchor method (with hacks for Safari) to support
old browsers...
-Rob
Dell Sala wrote:
> I understand your concerns here, but I don't think Stephen has given
> us enough information here to make a judgement one way or another. It
> really depends on the usability requirements for each specific case.
> I've been amazed how avoiding page reloads can improve user
> experience, and even make the developers life easier, especially when
> designing web apps with complex user interaction and state requirements.
>
> That being said, if it is just a case of a sub-nav for displaying
> nested, non-interactive content, AJAX is probably overkill.
>
> ***
>
> The issue of "accurate" URLs, and possible solutions are documented
> well on ajaxpaterns.org:
>
> http://ajaxpatterns.org/Unique_URLs
>
> -- Dell
>
>
> On Dec 14, 2006, at 12:11 PM, Chris Shiflett wrote:
>
>> Stephen Musgrave wrote:
>>> I have a designer who would like to have links on the subnav to
>>> NOT refresh the page.
>>
>> Ugh. Why not? Navigation links go to different pages (with presumably
>> different content), therefore the URL should change. I'm sure you can
>> manage to use Ajax and other client-side technologies to mimic going to
>> a different page (changing the URL and such), but this is a perfect
>> example of misusing Ajax.
>>
>> Just so it doesn't sound like I'm anti-Ajax, there are situations where
>> it can be useful. One example is a comment form with a preview. To
>> display the preview, you could use Ajax to exchange the minimum amount
>> of information with the server as necessary (to process the comment
>> using whatever filtering/formatting is already in place on the server)
>> and display the preview on the current page. The URL would not change,
>> but from a user's perspective, the page hasn't changed either, so
>> it's OK.
>>
>> That's my opinion. :-)
>>
>> Chris
>>
>> --Chris Shiflett
>> http://shiflett.org/
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
From stephen at capellic.com Thu Dec 14 17:52:09 2006
From: stephen at capellic.com (Stephen Musgrave)
Date: Thu, 14 Dec 2006 17:52:09 -0500
Subject: [nycphp-talk] Deep Linking with Ajax?
In-Reply-To: <26E3A32F-77C3-4CAF-9C57-CE598E7BFCC7@sala.ca>
References:
<458185D0.3010702@php.net>
<26E3A32F-77C3-4CAF-9C57-CE598E7BFCC7@sala.ca>
Message-ID: <562373C2-4A15-4303-9FF6-F3B2B5C3A967@capellic.com>
> That being said, if it is just a case of a sub-nav for displaying
> nested, non-interactive content, AJAX is probably overkill.
This is exactly what it is. And I agree with you, it is overkill.
However, the designer comes from a Flash background and would like to
do it - so I said I'd explore it.
Thanks for the replies!
From ken at secdat.com Thu Dec 14 20:34:47 2006
From: ken at secdat.com (Kenneth Downs)
Date: Thu, 14 Dec 2006 20:34:47 -0500
Subject: [nycphp-talk] Cakephp
In-Reply-To: <45808878.5040108@devonianfarm.com>
References:
<45808878.5040108@devonianfarm.com>
Message-ID: <4581FBB7.6030005@secdat.com>
Paul Houle wrote:
> dkov at optonline.net wrote:
>> Does anyone use the Cakephp framework? If you do, I have tried using
>> thier session component to create and manage sessions. I have read
>> every bit of information I can find on the internet. I still can't
>> get my sessions working correctly. Please teach me.
> I avoid session variables -- most applications that use session
> variables are "broken by design". If you do manage to get sessions to
> work, the next thing you'll be asking us is how to disable the back
> button.
I'm always on the lookout to improve my techniques, perhaps you can help
here. When you say "manage to get sessions to work", what exactly do
you mean? We wrote two routines for ourselves, SessionSet() and
SessionGet(), which worked fine when coded and have done so ever since.
Do I misunderstand you here?
>
> The "stateless" paradigm of web programming is responsible for many
> of it's advantages:
Name two.
It does force us into a transactional mode of thinking, which is a good
thing anyway. So that's one. I never noticed any more than that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ken.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: not available
URL:
From tedd at sperling.com Fri Dec 15 10:17:17 2006
From: tedd at sperling.com (tedd)
Date: Fri, 15 Dec 2006 10:17:17 -0500
Subject: [nycphp-talk] Deep Linking with Ajax?
In-Reply-To: <458185D0.3010702@php.net>
References:
<458185D0.3010702@php.net>
Message-ID:
At 12:11 PM -0500 12/14/06, Chris Shiflett wrote:
>Stephen Musgrave wrote:
>> I have a designer who would like to have links on the subnav to
>> NOT refresh the page.
>
>Ugh. Why not? Navigation links go to different pages (with presumably
>different content), therefore the URL should change. I'm sure you can
>manage to use Ajax and other client-side technologies to mimic going to
>a different page (changing the URL and such), but this is a perfect
>example of misusing Ajax.
>
>Just so it doesn't sound like I'm anti-Ajax, there are situations where
>it can be useful. One example is a comment form with a preview. To
>display the preview, you could use Ajax to exchange the minimum amount
>of information with the server as necessary (to process the comment
>using whatever filtering/formatting is already in place on the server)
>and display the preview on the current page. The URL would not change,
>but from a user's perspective, the page hasn't changed either, so it's OK.
>
>That's my opinion. :-)
>
>Chris
Hi Chris:
Not that I disagree with you, but I think the direction the web is
taking is similar to desktop applications, which is refresh when you
need a new window -- otherwise keep the one you have.
As an experiment, I set up this reader to illustrate my point:
http://xn--ovg.com/ajax_page
This is simply a text reader and there is no real reason to refresh
each page. While the page is providing unique content each time it is
"turned" (i.e., navigation), is still just the same window without a
refresh.
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
From ps at pswebcode.com Fri Dec 15 11:43:45 2006
From: ps at pswebcode.com (Peter Sawczynec)
Date: Fri, 15 Dec 2006 11:43:45 -0500
Subject: [nycphp-talk] Deep Linking with AJAX?
In-Reply-To:
Message-ID: <002901c72068$30026760$3675b948@SUNCODE1>
It is worth noting that Flash (and similarly PDFs, video files,
typically any streaming media) have all suffered from this
lack of deep linking right from the get go --
and all of these 'alternative to XHTML' products have prospered
and their web penetration is so significant that it is
these 'hampered' alternative web presentation vehicles that
are muscling the Internet up to the next level of
profound usage.
Personally, I have already completely adapted to any web sites
with powerful "on-demand" page(s)/section(s) that don't bookmark.
The connection is so fast and the web application interfaces so
finely tooled and responsive that I barely notice that I need to
"run the interface again". Indeed all the sites I use that need
me to "run the interface again" provide me only the most current,
Critically accurate results and I desire that more than I want
handy dandy bookmarks.
I feel that this URL issue that AJAX raises is important and
timely. The inability to deep link an AJAXed page is
telling the developer something. It is saying that this
data/content/page is too time-sensitive to bookmark and the
AJAX usage may need to be rejiggered.
I believe as Chris notes further down in the thread that if
you are experiencing an AJAX deep linking issue then you
may not be putting AJAX (or Flash) to the best use.
Use AJAX to update portions of pages with critical dynamic changeable
content segments that likely should not be bookmarked.
Tell your client that AJAX interfaces when properly used on their
site project an impression of powerful "on-demand" data return
and presentation output. And this is more valuable to the power user
than linking convenience.
Warmest regards,
Peter Sawczynec
Technology Dir.
Sun-code.com
Web related services
646.316.3678
ps at sun-code.com
-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Stephen Musgrave
Sent: Thursday, December 14, 2006 11:56 AM
To: talk at lists.nyphp.org
Subject: [nycphp-talk] Deep Linking with AJAX?
I have a designer who would like to have links on the subnav to NOT
refresh the page. This could be done with iFrames, but best if done
with a DIV using AJAX.
However, from a usability perspective, I am concerned that the URL
displayed on the Location string is not the page they are looking at
after they have loaded an AJAX page. If the user does a copy/paste
into an email to send to somebody, they will not arrive at the
intended page.
I have looked at Christian Cantrell's article
on the topic (though that's over a year old now) and the work-arounds
were less than convincing.
Does anybody know of a better technique to do this or is the
consensus that if I want the URL to reflect the actual page I am
viewing, it should be the old fashion way with page refreshes?
Thanks!
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
From lk613m at yahoo.com Fri Dec 15 11:56:41 2006
From: lk613m at yahoo.com (LK)
Date: Fri, 15 Dec 2006 08:56:41 -0800 (PST)
Subject: [nycphp-talk] session variables "evil"?
Message-ID: <20061215165642.22990.qmail@web53307.mail.yahoo.com>
Just as I was reading this thread on sesion variables I was having a problem with my session variables getting changed on the fly seemingly for no reason. I've isolated this problem and condensed it to the bare minimum for you to see and comment upon:
1. Create a file x.php:
Go to y.php
2. Create a file y.php
"; // outputs session variables are GOOD
$x = "session variables are EVIL";
echo $_SESSION['x']; // outputs session variables are EVIL
?>
Point your browser to x.php and click on the link "Go to y.php" to invoke the y.php file.
File x.php simply sets a session variable $_SESSION['x'].
File y.php assigns an internal variable $x, and that all by itself blows away $_SESSION['x'].
The _GET and _POST variables do not have this problem.
It's an easy fix simply to use a different name instead of $x, but still... this is not a nice behaviour, if not an outright bug.
- Leo.
----- Original Message ----
From: Brian Dailey
To: NYPHP Talk
Sent: Thursday, December 14, 2006 11:49:22 AM
Subject: Re: [nycphp-talk] session variables "evil"?
I've been writing PHP for years now, and this is the first time I've
been aware of anyone complaining about oddities with $_SESSION (granted,
I use it for little else than tracking user information). What sort of
"oddities" have you seen?
- Brian
Allen Shaw wrote:
> Paul Houle wrote:
>> most applications that use session variables are "broken by design".
>>
>
> Really? That's a surprising assertion, though I'll agree my surprise
> probably comes more from my own lack of insight than a flaw in your
> argument. Of course a quick google shows a few people hold that session
> vars are "evil," but I can't find much to back up the idea.
>
> Can you elaborate, or give us a few links on the topic?
>
> (BTW, Paul, I'm sure you're not speaking without experience, just want
> to clarify my own understanding a little more.)
>
> - Allen
>
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk
NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com
Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From sean712 at gmail.com Fri Dec 15 11:58:46 2006
From: sean712 at gmail.com (Sean)
Date: Fri, 15 Dec 2006 11:58:46 -0500
Subject: [nycphp-talk] session variables "evil"?
In-Reply-To: <20061215165642.22990.qmail@web53307.mail.yahoo.com>
References: <20061215165642.22990.qmail@web53307.mail.yahoo.com>
Message-ID:
Do you have register globals on?
On 12/15/06, LK wrote:
>
> Just as I was reading this thread on sesion variables I was having a
> problem with my session variables getting changed on the fly seemingly for
> no reason. I've isolated this problem and condensed it to the bare minimum
> for you to see and comment upon:
>
> 1. Create a file x.php:
>
> session_start();
> $_SESSION['x'] = "session variables are GOOD";
> ?>
>
>
>
> Go to y.php
>
>
> 2. Create a file y.php
>
> session_start();
>
> echo $_SESSION['x']." "; // outputs session variables are GOOD
>
> $x = "session variables are EVIL";
>
> echo $_SESSION['x']; // outputs session variables are EVIL
> ?>
> Point your browser to x.php and click on the link "Go to y.php" to invoke
> the y.php file.
>
> File x.php simply sets a session variable $_SESSION['x'].
>
> File y.php assigns an internal variable $x, and that all by itself blows
> away $_SESSION['x'].
>
> The _GET and _POST variables do not have this problem.
>
> It's an easy fix simply to use a different name instead of $x, but
> still... this is not a nice behaviour, if not an outright bug.
>
> - Leo.
>
>
>
> ----- Original Message ----
> From: Brian Dailey
> To: NYPHP Talk
> Sent: Thursday, December 14, 2006 11:49:22 AM
> Subject: Re: [nycphp-talk] session variables "evil"?
>
> I've been writing PHP for years now, and this is the first time I've
> been aware of anyone complaining about oddities with $_SESSION (granted,
> I use it for little else than tracking user information). What sort of
> "oddities" have you seen?
>
> - Brian
>
> Allen Shaw wrote:
> > Paul Houle wrote:
> >> most applications that use session variables are "broken by design".
> >>
> >
> > Really? That's a surprising assertion, though I'll agree my surprise
> > probably comes more from my own lack of insight than a flaw in your
> > argument. Of course a quick google shows a few people hold that session
> > vars are "evil," but I can't find much to back up the idea.
> >
> > Can you elaborate, or give us a few links on the topic?
> >
> > (BTW, Paul, I'm sure you're not speaking without experience, just want
> > to clarify my own understanding a little more.)
> >
> > - Allen
> >
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From jface at mercenarylabs.com Fri Dec 15 12:06:01 2006
From: jface at mercenarylabs.com (Jonathan Face)
Date: Fri, 15 Dec 2006 12:06:01 -0500
Subject: [nycphp-talk] session variables "evil"?
In-Reply-To:
References: <20061215165642.22990.qmail@web53307.mail.yahoo.com>
Message-ID: <4582D5F9.4090107@mercenarylabs.com>
I just copied recreated your files and got:
session variables are GOOD
session variables are GOOD
You can see it here:
http://www.jonathanface.com/x.php
Sean wrote:
> Do you have register globals on?
>
> On 12/15/06, *LK* > wrote:
>
> Just as I was reading this thread on sesion variables I was having
> a problem with my session variables getting changed on the fly
> seemingly for no reason. I've isolated this problem and condensed
> it to the bare minimum for you to see and comment upon:
>
> 1. Create a file x.php:
>
> session_start();
> $_SESSION['x'] = "session variables are GOOD";
> ?>
>
>
>
> Go to y.php
>
>
> 2. Create a file y.php
>
> session_start();
>
> echo $_SESSION['x']." "; // outputs session variables are
> GOOD
>
> $x = "session variables are EVIL";
>
> echo $_SESSION['x']; // outputs session variables are EVIL
> ?>
> Point your browser to x.php and click on the link "Go to y.php" to
> invoke the y.php file.
>
> File x.php simply sets a session variable $_SESSION['x'].
>
> File y.php assigns an internal variable $x, and that all by itself
> blows away $_SESSION['x'].
>
> The _GET and _POST variables do not have this problem.
>
> It's an easy fix simply to use a different name instead of $x, but
> still... this is not a nice behaviour, if not an outright bug.
>
> - Leo.
>
>
>
> ----- Original Message ----
> From: Brian Dailey < support at dailytechnology.net
> >
> To: NYPHP Talk >
> Sent: Thursday, December 14, 2006 11:49:22 AM
> Subject: Re: [nycphp-talk] session variables "evil"?
>
> I've been writing PHP for years now, and this is the first time I've
> been aware of anyone complaining about oddities with $_SESSION
> (granted,
> I use it for little else than tracking user information). What
> sort of
> "oddities" have you seen?
>
> - Brian
>
> Allen Shaw wrote:
> > Paul Houle wrote:
> >> most applications that use session variables are "broken by
> design".
> >>
> >
> > Really? That's a surprising assertion, though I'll agree my
> surprise
> > probably comes more from my own lack of insight than a flaw in your
> > argument. Of course a quick google shows a few people hold that
> session
> > vars are "evil," but I can't find much to back up the idea.
> >
> > Can you elaborate, or give us a few links on the topic?
> >
> > (BTW, Paul, I'm sure you're not speaking without experience,
> just want
> > to clarify my own understanding a little more.)
> >
> > - Allen
> >
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>New York PHP Community Talk Mailing List
>http://lists.nyphp.org/mailman/listinfo/talk
>
>NYPHPCon 2006 Presentations Online
>http://www.nyphpcon.com
>
>Show Your Participation in New York PHP
>http://www.nyphp.org/show_participation.php
>
From ashaw at polymerdb.org Fri Dec 15 12:14:56 2006
From: ashaw at polymerdb.org (Allen Shaw)
Date: Fri, 15 Dec 2006 11:14:56 -0600
Subject: [nycphp-talk] session variables "evil"?
In-Reply-To: <20061215165642.22990.qmail@web53307.mail.yahoo.com>
References: <20061215165642.22990.qmail@web53307.mail.yahoo.com>
Message-ID: <4582D810.5030800@polymerdb.org>
LK wrote:
> Just as I was reading this thread on sesion variables I was having a
> problem with my session variables getting changed on the fly seemingly
> for no reason. I've isolated this problem and condensed it to the bare
> minimum for you to see and comment upon:
> ...
>
> this is not a nice behaviour, if not an outright bug.
Hi Leo,
That looks like pretty odd behavior. What version of PHP is it?
This may be relevant, from the PHP manual
http://www.php.net/manual/en/ref.session.php :
session.bug_compat_42 boolean
PHP versions 4.2.3 and lower have an undocumented feature/bug that
allows you to initialize a session variable in the global scope, albeit
register_globals is disabled. PHP 4.3.0 and later will warn you, if this
feature is used, and if session.bug_compat_warn is also enabled. This
feature/bug can be disabled by disabling this directive.
session.bug_compat_warn boolean
PHP versions 4.2.3 and lower have an undocumented feature/bug that
allows you to initialize a session variable in the global scope, albeit
register_globals is disabled. PHP 4.3.0 and later will warn you, if this
feature is used by enabling both session.bug_compat_42 and
session.bug_compat_warn.
Looks like the PHP developers agree with you, at least half-admitting
that it's a bug.
--
Allen Shaw
Polymer (http://polymerdb.org)
slidePresenter (http://slides.sourceforge.net)
From ken at secdat.com Fri Dec 15 17:35:18 2006
From: ken at secdat.com (Kenneth Downs)
Date: Fri, 15 Dec 2006 17:35:18 -0500
Subject: [nycphp-talk] Help with a basic mod_rewrite issue?
Message-ID: <45832326.7040800@secdat.com>
I'm guessing that this must be a common trick, but googling it did not
come up with an example that I could figure out.
Basically I'd like to put a link to what looks like an MP3 file, but
which is redirected to a script. The script determines if the person is
subscribed to that particular issue. If they are, it does a readfile(),
otherwise it does not.
I cannot do a simple force of mp3 files to be handled by PHP, or at
least I don't want to, because then I would need a file for every mp3,
and as the list comes out of a database, this would be troublesome.
The basic problem I have is, not being familiar with mod_rewrite, I find
myself in the endless maze that everybody warns you about, fiddling
around and smashing fists on the table wondering why the simplest
!)(#(*#@ expression won't work.
What I'm looking for is for a URL like this:
http://www.example.com/path/path/somefile.mp3
to become:
http://www.example.com/path/path/index.php?gp_page=media&file=somefile.mp3
Can anybody give me a clue here? Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ken.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: not available
URL:
From dell at sala.ca Fri Dec 15 18:06:23 2006
From: dell at sala.ca (Dell Sala)
Date: Fri, 15 Dec 2006 18:06:23 -0500
Subject: [nycphp-talk] Help with a basic mod_rewrite issue?
In-Reply-To: <45832326.7040800@secdat.com>
References: <45832326.7040800@secdat.com>
Message-ID: <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca>
mod_rewrite seems like a messy business. How about naming your php
script without a .php extension and just have that be parsed with
php? Then, whatever path is appending to the script name that is
requested just acts as a query string/argument.
your php script would be
http://domain.com/mp3handler
and full requests would look like this
http://domain.com/mp3handler/music.mp3
mp3handler would just parse the full request string to find out what
mp3 was requested
your .htaccess file would be something like this:
ForceType application/x-httpd-php
I've found this to be an effective technique for creating clean urls.
-- Dell
On Dec 15, 2006, at 5:35 PM, Kenneth Downs wrote:
> I'm guessing that this must be a common trick, but googling it did
> not come up with an example that I could figure out.
>
> Basically I'd like to put a link to what looks like an MP3 file,
> but which is redirected to a script. The script determines if the
> person is subscribed to that particular issue. If they are, it does
> a readfile(), otherwise it does not.
>
> I cannot do a simple force of mp3 files to be handled by PHP, or at
> least I don't want to, because then I would need a file for every
> mp3, and as the list comes out of a database, this would be
> troublesome.
>
> The basic problem I have is, not being familiar with mod_rewrite, I
> find myself in the endless maze that everybody warns you about,
> fiddling around and smashing fists on the table wondering why the
> simplest !)(#(*#@ expression won't work.
>
> What I'm looking for is for a URL like this:
>
> http://www.example.com/path/path/somefile.mp3
>
> to become:
>
> http://www.example.com/path/path/index.php?
> gp_page=media&file=somefile.mp3
>
> Can anybody give me a clue here? Thanks.
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
From chsnyder at gmail.com Fri Dec 15 18:10:32 2006
From: chsnyder at gmail.com (csnyder)
Date: Fri, 15 Dec 2006 18:10:32 -0500
Subject: [nycphp-talk] Help with a basic mod_rewrite issue?
In-Reply-To: <45832326.7040800@secdat.com>
References: <45832326.7040800@secdat.com>
Message-ID:
On 12/15/06, Kenneth Downs wrote:
>
> What I'm looking for is for a URL like this:
>
> http://www.example.com/path/path/somefile.mp3
>
> to become:
>
> http://www.example.com/path/path/index.php?gp_page=media&file=somefile.mp3
>
> Can anybody give me a clue here? Thanks.
>
No clues on Friday. The following is completely off the top of my head
and probably won't work, but maybe it will lead you to something that
does?
RewriteRule ^/path/path/(.*mp3)$ /path/path/index.php?blah&file=$1
When debugging rewrite issues, use of RewriteLog and RewriteLogLevel 3
are invaluable.
--
Chris Snyder
http://chxo.com/
From chsnyder at gmail.com Fri Dec 15 18:13:12 2006
From: chsnyder at gmail.com (csnyder)
Date: Fri, 15 Dec 2006 18:13:12 -0500
Subject: [nycphp-talk] Help with a basic mod_rewrite issue?
In-Reply-To: <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca>
References: <45832326.7040800@secdat.com>
<5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca>
Message-ID:
On 12/15/06, Dell Sala wrote:
> mod_rewrite seems like a messy business. How about naming your php
> script without a .php extension and just have that be parsed with
> php? Then, whatever path is appending to the script name that is
> requested just acts as a query string/argument.
Oh, now that's the smarter solution!
Careful, next thing you know you'll have an MVC interface... :-)
From ken at secdat.com Fri Dec 15 18:24:35 2006
From: ken at secdat.com (Kenneth Downs)
Date: Fri, 15 Dec 2006 18:24:35 -0500
Subject: [nycphp-talk] Help with a basic mod_rewrite issue?
In-Reply-To: <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca>
References: <45832326.7040800@secdat.com>
<5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca>
Message-ID: <45832EB3.80809@secdat.com>
Dell Sala wrote:
> mod_rewrite seems like a messy business. How about naming your php
> script without a .php extension and just have that be parsed with php?
> Then, whatever path is appending to the script name that is requested
> just acts as a query string/argument.
>
> your php script would be
>
> http://domain.com/mp3handler
>
> and full requests would look like this
>
> http://domain.com/mp3handler/music.mp3
>
> mp3handler would just parse the full request string to find out what
> mp3 was requested
>
> your .htaccess file would be something like this:
>
>
> ForceType application/x-httpd-php
>
>
> I've found this to be an effective technique for creating clean urls.
This looks interesting, can you give me some details here:
1) The intent is to redirect to music.mp3, which is actually a php
script, right?
2) But then the rule is on "mp3handler", which is constant so it can't
be a parameter?
3) So what is the parameter? How do I tell a single script to handle
multiple files?
What I'm aiming at is to have a single script that takes a parm. If I
understand your example above, it requires a separate script for each
possible mp3 file, which may as well just be this:
ForceType application/x-httpd-php
...which requires me again to have one script per mp3.
Am I missing something?
>
> -- Dell
>
>
> On Dec 15, 2006, at 5:35 PM, Kenneth Downs wrote:
>
>> I'm guessing that this must be a common trick, but googling it did
>> not come up with an example that I could figure out.
>>
>> Basically I'd like to put a link to what looks like an MP3 file, but
>> which is redirected to a script. The script determines if the person
>> is subscribed to that particular issue. If they are, it does a
>> readfile(), otherwise it does not.
>>
>> I cannot do a simple force of mp3 files to be handled by PHP, or at
>> least I don't want to, because then I would need a file for every
>> mp3, and as the list comes out of a database, this would be troublesome.
>>
>> The basic problem I have is, not being familiar with mod_rewrite, I
>> find myself in the endless maze that everybody warns you about,
>> fiddling around and smashing fists on the table wondering why the
>> simplest !)(#(*#@ expression won't work.
>>
>> What I'm looking for is for a URL like this:
>>
>> http://www.example.com/path/path/somefile.mp3
>>
>> to become:
>>
>> http://www.example.com/path/path/index.php?gp_page=media&file=somefile.mp3
>>
>>
>> Can anybody give me a clue here? Thanks.
>>
>> _______________________________________________
>> New York PHP Community Talk Mailing List
>> http://lists.nyphp.org/mailman/listinfo/talk
>>
>> NYPHPCon 2006 Presentations Online
>> http://www.nyphpcon.com
>>
>> Show Your Participation in New York PHP
>> http://www.nyphp.org/show_participation.php
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ken.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: not available
URL:
From dell at sala.ca Fri Dec 15 18:57:01 2006
From: dell at sala.ca (Dell Sala)
Date: Fri, 15 Dec 2006 18:57:01 -0500
Subject: [nycphp-talk] Help with a basic mod_rewrite issue?
In-Reply-To: <45832EB3.80809@secdat.com>
References: <45832326.7040800@secdat.com>
<5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca>
<45832EB3.80809@secdat.com>
Message-ID: <63FCF8E6-A766-44EE-A7D5-42BFFDF288DE@sala.ca>
I think this is exactly what you're looking for.
mp3handler is a php script, just named without a ".php" extension.
if you force apache to treat mp3handler as a php script, you can
create urls that access mp3handler, but appear to to be accessing a
more deeply nested file or resource.
a request like http://domain.com/mp3handler/somefile.mp3 will cause
apache to execute the mp3handler script, and the rest of the request
is just ignored by apache. Then, inside mp3hanlder you can manually
parse $_SERVER['PATH_INFO'] to retrieve your "argument" which is /
somefile.mp3.
I started using this technique after seeing it in a great article in
PHP|Architect. Volume 5, Issue 3 "Frameworks: what's the big deal" by
Darryl Patterson.
-- Dell
On Dec 15, 2006, at 6:24 PM, Kenneth Downs wrote:
> Dell Sala wrote:
>> mod_rewrite seems like a messy business. How about naming your php
>> script without a .php extension and just have that be parsed with
>> php? Then, whatever path is appending to the script name that is
>> requested just acts as a query string/argument.
>
> This looks interesting, can you give me some details here:
>
> 1) The intent is to redirect to music.mp3, which is actually a php
> script, right?
> 2) But then the rule is on "mp3handler", which is constant so it
> can't be a parameter?
> 3) So what is the parameter? How do I tell a single script to
> handle multiple files?
>
> What I'm aiming at is to have a single script that takes a parm.
> If I understand your example above, it requires a separate script
> for each possible mp3 file, which may as well just be this:
>
>
> ForceType application/x-httpd-php
>
>
> ...which requires me again to have one script per mp3.
>
> Am I missing something?
From greg.rundlett at gmail.com Fri Dec 15 23:12:58 2006
From: greg.rundlett at gmail.com (Greg Rundlett)
Date: Fri, 15 Dec 2006 23:12:58 -0500
Subject: [nycphp-talk] Help with a basic mod_rewrite issue?
In-Reply-To: <45832EB3.80809@secdat.com>
References: <45832326.7040800@secdat.com>
<5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca>
<45832EB3.80809@secdat.com>
Message-ID: <5e2aaca40612152012u2b1df7adh23b7768db9c12662@mail.gmail.com>
On 12/15/06, Kenneth Downs wrote:
> Dell Sala wrote:
> > mod_rewrite seems like a messy business. How about naming your php
> > script without a .php extension and just have that be parsed with php?
> > Then, whatever path is appending to the script name that is requested
> > just acts as a query string/argument.
Ken, I think you're missing a fine point in Dell's explanation. To be
explicit, the reason Dell's solution works is because Apache works it
way down the request path (moving from left to right) until it finds
something it can return. Apache does not look at the URI and work
it's way "backward". So, if you have a script||directory||symbolic
link named 'jukebox' accessible at http://mysite.org/jukebox/ then
Apache will serve it up even if the request is for
http://mysite.org/jukebox/clapton/heaven.mp3. Of course not only will
Apache serve up the 'jukebox' script, but since it's a mod-PHP script,
it is well aware of the full $_SERVER['REQUEST_URI'] which the script
can use to determine what exactly to do with the request.... like go
get a song from the database.
> > your php script would be
> >
> > http://domain.com/mp3handler
> >
> > and full requests would look like this
> >
> > http://domain.com/mp3handler/music.mp3
> >
> > mp3handler would just parse the full request string to find out what
> > mp3 was requested
> >
> > your .htaccess file would be something like this:
> >
> >
> > ForceType application/x-httpd-php
> >
> >
> > I've found this to be an effective technique for creating clean urls.
>
> This looks interesting, can you give me some details here:
>
> 1) The intent is to redirect to music.mp3, which is actually a php
> script, right?
> 2) But then the rule is on "mp3handler", which is constant so it can't
> be a parameter?
> 3) So what is the parameter? How do I tell a single script to handle
> multiple files?
>
> What I'm aiming at is to have a single script that takes a parm. If I
> understand your example above, it requires a separate script for each
> possible mp3 file, which may as well just be this:
>
>
> ForceType application/x-httpd-php
>
>
> ...which requires me again to have one script per mp3.
>
> Am I missing something?
>
> >
> > -- Dell
> >
> >
> > On Dec 15, 2006, at 5:35 PM, Kenneth Downs wrote:
> >
> >> I'm guessing that this must be a common trick, but googling it did
> >> not come up with an example that I could figure out.
> >>
> >> Basically I'd like to put a link to what looks like an MP3 file, but
> >> which is redirected to a script. The script determines if the person
> >> is subscribed to that particular issue. If they are, it does a
> >> readfile(), otherwise it does not.
> >>
> >> I cannot do a simple force of mp3 files to be handled by PHP, or at
> >> least I don't want to, because then I would need a file for every
> >> mp3, and as the list comes out of a database, this would be troublesome.
> >>
> >> The basic problem I have is, not being familiar with mod_rewrite, I
> >> find myself in the endless maze that everybody warns you about,
> >> fiddling around and smashing fists on the table wondering why the
> >> simplest !)(#(*#@ expression won't work.
> >>
> >> What I'm looking for is for a URL like this:
> >>
> >> http://www.example.com/path/path/somefile.mp3
> >>
> >> to become:
> >>
> >> http://www.example.com/path/path/index.php?gp_page=media&file=somefile.mp3
> >>
> >>
> >> Can anybody give me a clue here? Thanks.
> >>
> >> _______________________________________________
> >> New York PHP Community Talk Mailing List
> >> http://lists.nyphp.org/mailman/listinfo/talk
> >>
> >> NYPHPCon 2006 Presentations Online
> >> http://www.nyphpcon.com
> >>
> >> Show Your Participation in New York PHP
> >> http://www.nyphp.org/show_participation.php
> >
> > _______________________________________________
> > New York PHP Community Talk Mailing List
> > http://lists.nyphp.org/mailman/listinfo/talk
> >
> > NYPHPCon 2006 Presentations Online
> > http://www.nyphpcon.com
> >
> > Show Your Participation in New York PHP
> > http://www.nyphp.org/show_participation.php
>
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
>
--
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
From greg.rundlett at gmail.com Fri Dec 15 23:34:55 2006
From: greg.rundlett at gmail.com (Greg Rundlett)
Date: Fri, 15 Dec 2006 23:34:55 -0500
Subject: [nycphp-talk] Deep Linking with Ajax?
In-Reply-To: <562373C2-4A15-4303-9FF6-F3B2B5C3A967@capellic.com>
References:
<458185D0.3010702@php.net>
<26E3A32F-77C3-4CAF-9C57-CE598E7BFCC7@sala.ca>
<562373C2-4A15-4303-9FF6-F3B2B5C3A967@capellic.com>
Message-ID: <5e2aaca40612152034n54349bdcj8a472cb7c3eb53c1@mail.gmail.com>
On 12/14/06, Stephen Musgrave wrote:
>
> > That being said, if it is just a case of a sub-nav for displaying
> > nested, non-interactive content, AJAX is probably overkill.
>
> This is exactly what it is. And I agree with you, it is overkill.
> However, the designer comes from a Flash background and would like to
> do it - so I said I'd explore it.
>
> Thanks for the replies!
If all you want is to display multiple pieces of content inside a
single page, you could also do good old-fashioned DHTML. Single page
loads all content, and various nav/tab/link elements cause the content
to display dynamically without the 'complexity' of AJAX.
--
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
From shadab_w at yahoo.co.in Sat Dec 16 00:28:17 2006
From: shadab_w at yahoo.co.in (Shadab Wadiwala)
Date: Sat, 16 Dec 2006 05:28:17 +0000 (GMT)
Subject: [nycphp-talk] Creating thumbnails images of videos using PHP.
Message-ID: <330932.74048.qm@web8709.mail.in.yahoo.com>
HI,
I would like to create a still thumbnail image out of movie when i upload thru a form.
do any one know how to do such things.
I have several movies to list out with thumbnails and when u click , run them in windows media player within browser.
Also I wanna know how to embed windows media player inside a webpage for playing videos.
Thanks in advance,
Shadab .I. Wadiwala
---------------------------------
Find out what India is talking about on - Yahoo! Answers India
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From codebowl at gmail.com Sat Dec 16 08:23:47 2006
From: codebowl at gmail.com (Joseph Crawford)
Date: Sat, 16 Dec 2006 08:23:47 -0500
Subject: [nycphp-talk] Reading Photo Information
Message-ID: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com>
Guys,
I saw a script called Andromeda a while back that would allow you to read
the ID3 tag data from an MP3 file. My question is can the same be done with
JPG files?
I am thinking i would want to read some information that is stored in the
photo such as which camera took the photo, date, etc.
Thanks,
--
Joseph Crawford Jr.
Zend Certified Engineer
Codebowl Solutions, Inc.
http://www.codebowl.com/
Blog: http://www.josephcrawford.com/
1-802-671-2021
codebowl at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From dcech at phpwerx.net Sat Dec 16 08:35:26 2006
From: dcech at phpwerx.net (Dan Cech)
Date: Sat, 16 Dec 2006 08:35:26 -0500
Subject: [nycphp-talk] Reading Photo Information
In-Reply-To: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com>
References: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com>
Message-ID: <4583F61E.1090807@phpwerx.net>
Joseph Crawford wrote:
> I saw a script called Andromeda a while back that would allow you to read
> the ID3 tag data from an MP3 file. My question is can the same be done
> with
> JPG files?
> I am thinking i would want to read some information that is stored in the
> photo such as which camera took the photo, date, etc.
http://php.net/exif
Dan
From ken at secdat.com Sat Dec 16 09:04:14 2006
From: ken at secdat.com (Kenneth Downs)
Date: Sat, 16 Dec 2006 09:04:14 -0500
Subject: [nycphp-talk] Help with a basic mod_rewrite issue?
In-Reply-To: <5e2aaca40612152012u2b1df7adh23b7768db9c12662@mail.gmail.com>
References: <45832326.7040800@secdat.com> <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca> <45832EB3.80809@secdat.com>
<5e2aaca40612152012u2b1df7adh23b7768db9c12662@mail.gmail.com>
Message-ID: <4583FCDE.2060101@secdat.com>
Greg and Dell,
Problem Solved!
Thanks very much for the idea, and also for the detailed explanation.
Problem is now solved and I know a little more about Apache than I did
yesterday.
> On 12/15/06, Kenneth Downs wrote:
>> Dell Sala wrote:
>> > mod_rewrite seems like a messy business. How about naming your php
>> > script without a .php extension and just have that be parsed with php?
>> > Then, whatever path is appending to the script name that is requested
>> > just acts as a query string/argument.
>
> Ken, I think you're missing a fine point in Dell's explanation. To be
> explicit, the reason Dell's solution works is because Apache works it
> way down the request path (moving from left to right) until it finds
> something it can return. Apache does not look at the URI and work
> it's way "backward". So, if you have a script||directory||symbolic
> link named 'jukebox' accessible at http://mysite.org/jukebox/ then
> Apache will serve it up even if the request is for
> http://mysite.org/jukebox/clapton/heaven.mp3. Of course not only will
> Apache serve up the 'jukebox' script, but since it's a mod-PHP script,
> it is well aware of the full $_SERVER['REQUEST_URI'] which the script
> can use to determine what exactly to do with the request.... like go
> get a song from the database.
>
>> > your php script would be
>> >
>> > http://domain.com/mp3handler
>> >
>> > and full requests would look like this
>> >
>> > http://domain.com/mp3handler/music.mp3
>> >
>> > mp3handler would just parse the full request string to find out what
>> > mp3 was requested
>> >
>> > your .htaccess file would be something like this:
>> >
>> >
>> > ForceType application/x-httpd-php
>> >
>> >
>> > I've found this to be an effective technique for creating clean urls.
>>
>> This looks interesting, can you give me some details here:
>>
>> 1) The intent is to redirect to music.mp3, which is actually a php
>> script, right?
>> 2) But then the rule is on "mp3handler", which is constant so it can't
>> be a parameter?
>> 3) So what is the parameter? How do I tell a single script to handle
>> multiple files?
>>
>> What I'm aiming at is to have a single script that takes a parm. If I
>> understand your example above, it requires a separate script for each
>> possible mp3 file, which may as well just be this:
>>
>>
>> ForceType application/x-httpd-php
>>
>>
>> ...which requires me again to have one script per mp3.
>>
>> Am I missing something?
>>
>> >
>> > -- Dell
>> >
>> >
>> > On Dec 15, 2006, at 5:35 PM, Kenneth Downs wrote:
>> >
>> >> I'm guessing that this must be a common trick, but googling it did
>> >> not come up with an example that I could figure out.
>> >>
>> >> Basically I'd like to put a link to what looks like an MP3 file, but
>> >> which is redirected to a script. The script determines if the person
>> >> is subscribed to that particular issue. If they are, it does a
>> >> readfile(), otherwise it does not.
>> >>
>> >> I cannot do a simple force of mp3 files to be handled by PHP, or at
>> >> least I don't want to, because then I would need a file for every
>> >> mp3, and as the list comes out of a database, this would be
>> troublesome.
>> >>
>> >> The basic problem I have is, not being familiar with mod_rewrite, I
>> >> find myself in the endless maze that everybody warns you about,
>> >> fiddling around and smashing fists on the table wondering why the
>> >> simplest !)(#(*#@ expression won't work.
>> >>
>> >> What I'm looking for is for a URL like this:
>> >>
>> >> http://www.example.com/path/path/somefile.mp3
>> >>
>> >> to become:
>> >>
>> >>
>> http://www.example.com/path/path/index.php?gp_page=media&file=somefile.mp3
>>
>> >>
>> >>
>> >> Can anybody give me a clue here? Thanks.
>> >>
>> >> _______________________________________________
>> >> New York PHP Community Talk Mailing List
>> >> http://lists.nyphp.org/mailman/listinfo/talk
>> >>
>> >> NYPHPCon 2006 Presentations Online
>> >> http://www.nyphpcon.com
>> >>
>> >> Show Your Participation in New York PHP
>> >> http://www.nyphp.org/show_participation.php
>> >
>> > _______________________________________________
>> > New York PHP Community Talk Mailing List
>> > http://lists.nyphp.org/mailman/listinfo/talk
>> >
>> > NYPHPCon 2006 Presentations Online
>> > http://www.nyphpcon.com
>> >
>> > Show Your Participation in New York PHP
>> > http://www.nyphp.org/show_participation.php
>>
>>
>>
>> _______________________________________________
>> New York PHP Community Talk Mailing List
>> http://lists.nyphp.org/mailman/listinfo/talk
>>
>> NYPHPCon 2006 Presentations Online
>> http://www.nyphpcon.com
>>
>> Show Your Participation in New York PHP
>> http://www.nyphp.org/show_participation.php
>>
>>
>>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ken.vcf
Type: text/x-vcard
Size: 273 bytes
Desc: not available
URL:
From cliff at pinestream.com Sat Dec 16 09:05:25 2006
From: cliff at pinestream.com (Cliff Hirsch)
Date: Sat, 16 Dec 2006 09:05:25 -0500
Subject: [nycphp-talk] image symbol in browser url address window
Message-ID: <000601c7211b$3c250080$12a8a8c0@HirschLaptop>
Ok, this is a little off base, but how do you make an image symbol
appear in the url address window in FireFox?
I'm guessing it has something to do with this:
Cliff
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From kenneth at ylayali.net Sat Dec 16 09:20:42 2006
From: kenneth at ylayali.net (Kenneth Dombrowski)
Date: Sat, 16 Dec 2006 09:20:42 -0500
Subject: [nycphp-talk] image symbol in browser url address window
In-Reply-To: <000601c7211b$3c250080$12a8a8c0@HirschLaptop>
References: <000601c7211b$3c250080$12a8a8c0@HirschLaptop>
Message-ID: <20061216142042.GE8943@ylayali.net>
http://en.wikipedia.org/wiki/Favicon
On 06-12-16 09:05 -0500, Cliff Hirsch wrote:
> Ok, this is a little off base, but how do you make an image symbol
> appear in the url address window in FireFox?
>
> I'm guessing it has something to do with this:
>
>
>
> Cliff
From ken at secdat.com Sat Dec 16 09:26:07 2006
From: ken at secdat.com (Kenneth Downs)
Date: Sat, 16 Dec 2006 09:26:07 -0500
Subject: [nycphp-talk] Help with a basic mod_rewrite issue?
In-Reply-To: <63FCF8E6-A766-44EE-A7D5-42BFFDF288DE@sala.ca>
References: <45832326.7040800@secdat.com> <5DE31525-6732-4388-ACD9-A21A41CFD80B@sala.ca> <45832EB3.80809@secdat.com>
<63FCF8E6-A766-44EE-A7D5-42BFFDF288DE@sala.ca>
Message-ID: <458401FF.7070803@secdat.com>
Dell Sala wrote:
> I think this is exactly what you're looking for.
>
> mp3handler is a php script, just named without a ".php" extension.
>
> if you force apache to treat mp3handler as a php script, you can
> create urls that access mp3handler, but appear to to be accessing a
> more deeply nested file or resource.
>
> a request like http://domain.com/mp3handler/somefile.mp3 will cause
> apache to execute the mp3handler script, and the rest of the request
> is just ignored by apache. Then, inside mp3hanlder you can manually
> parse $_SERVER['PATH_INFO'] to retrieve your "argument" which is
> /somefile.mp3.
>
> I started using this technique after seeing it in a great article in
> PHP|Architect. Volume 5, Issue 3 "Frameworks: what's the big deal" by
> Darryl Patterson.
>
Aha, so then this also provides a way to use the universal dispatch
method and "friendly" URLs without resorting to mod_rewrite. I can
create a script called "pages" and invoke it like so:
ForceType application/x-httpd-php
...and then generate URLs like so:
http://www.example.com/pages/pagename/parm/value/parm/value
and then just parse out the URI into parm-value pairs.
Nice!
> -- Dell
>
>
> On Dec 15, 2006, at 6:24 PM, Kenneth Downs wrote:
>
>> Dell Sala wrote:
>>> mod_rewrite seems like a messy business. How about naming your php
>>> script without a .php extension and just have that be parsed with
>>> php? Then, whatever path is appending to the script name that is
>>> requested just acts as a query string/argument.
>>
>> This looks interesting, can you give me some details here:
>>
>> 1) The intent is to redirect to music.mp3, which is actually a php
>> script, right?
>> 2) But then the rule is on "mp3handler", which is constant so it
>> can't be a parameter?
>> 3) So what is the parameter? How do I tell a single script to
>> handle multiple files?
>>
>> What I'm aiming at is to have a single script that takes a parm. If
>> I understand your example above, it requires a separate script for
>> each possible mp3 file, which may as well just be this:
>>
>>
>> ForceType application/x-httpd-php
>>
>>
>> ...which requires me again to have one script per mp3.
>>
>> Am I missing something?
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ken.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: not available
URL:
From jeff.knight at gmail.com Sat Dec 16 11:58:50 2006
From: jeff.knight at gmail.com (Jeff Knight)
Date: Sat, 16 Dec 2006 08:58:50 -0800
Subject: [nycphp-talk] Reading Photo Information
In-Reply-To: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com>
References: <8d9a42800612160523o3712ac67i4a8f8b9a43bd3eb1@mail.gmail.com>
Message-ID: <2ca9ba910612160858p65e4c1d2uf084f38d7ba5f14b@mail.gmail.com>
http://www.nyphp.org/content/presentations/GDintro/gd27.php
On 12/16/06, Joseph Crawford wrote:
> Guys,
>
> I saw a script called Andromeda a while back that would allow you to read
> the ID3 tag data from an MP3 file. My question is can the same be done with
> JPG files?
> I am thinking i would want to read some information that is stored in the
> photo such as which camera took the photo, date, etc.
>
From chsnyder at gmail.com Sat Dec 16 16:59:27 2006
From: chsnyder at gmail.com (csnyder)
Date: Sat, 16 Dec 2006 16:59:27 -0500
Subject: [nycphp-talk] Creating thumbnails images of videos using PHP.
In-Reply-To: <330932.74048.qm@web8709.mail.in.yahoo.com>
References: <330932.74048.qm@web8709.mail.in.yahoo.com>
Message-ID:
On 12/16/06, Shadab Wadiwala wrote:
> HI,
>
> I would like to create a still thumbnail image out of movie when i upload
> thru a form.
>
> do any one know how to do such things.
>
> I have several movies to list out with thumbnails and when u click , run
> them in windows media player within browser.
>
> Also I wanna know how to embed windows media player inside a webpage for
> playing videos.
>
> Thanks in advance,
>
>
> Shadab .I. Wadiwala
If you like browsing MSDN, you'll find relevant info here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmpsdk11/mmp_sdk/usingtheplayercontrolinawebpage.asp
Frankly, it might be easier to find an example of an embedded player
somewhere that matches what you want to do, and then use the same
technique.
MS lost a patent dispute last winter, and rather than pay some
ridiculous amount in licensing fees they decided to break the