Re: [nyphp-talk] Blog Posts with Embedded Content

2008-10-07 Thread John Campbell
On Tue, Oct 7, 2008 at 5:27 PM, Hans Zaunere <[EMAIL PROTECTED]> wrote: > In one part of the application, they want to show only the first X number of > characters, before forcing a user to login. So we need to cut the submitted > text at this character count, yet, of course, not cut in the middle

Re: [nyphp-talk] front end list address

2008-10-07 Thread Kristina Anderson
Thanks Michael! > Kristina Anderson wrote: > > Anyone remember the email address for that "front end dev/CSS" list > > that's been mentioned? > > http://lists.nyphp.org/mailman/listinfo > > > > -- > = > Michael Southwell > Vice President, Education > NYPHP TRAINING: http://

[nyphp-talk] Blog Posts with Embedded Content

2008-10-07 Thread Hans Zaunere
Hello, So people post blogs, which may include a youtube link or image or href embedded. In one part of the application, they want to show only the first X number of characters, before forcing a user to login. So we need to cut the submitted text at this character count, yet, of course, not cut

Re: [nyphp-talk] [OT] notebook recommendations - last call, Lenovo T400 or T61??

2008-10-07 Thread inforequest
Hans Zaunere lists-at-zaunere.com |nyphp MAIN ONE dev/internal group use| wrote: On the (excellent) advice of the PHP community almost 4 years ago, I bought a Thinkpad t42p. I still love it but it's time to plan retirement. Can anyone recommend the Lenovo t61p as a replacement, or is there som

Re: [nyphp-talk] cURL question

2008-10-07 Thread Elijah Insua
Rahmin, As best practice you should secure your login data by sending it over https. Curl handles cookies rather well and should work for your needs. Regards, Elijah Insua I'm currently building an API to connect to an HTTPS server. My first script POSTs login data as cleartext by way

Re: [nyphp-talk] front end list address

2008-10-07 Thread Michael Southwell
Kristina Anderson wrote: Anyone remember the email address for that "front end dev/CSS" list that's been mentioned? http://lists.nyphp.org/mailman/listinfo -- = Michael Southwell Vice President, Education NYPHP TRAINING: http://nyphp.com/Training/Indepth

Re: [nyphp-talk] Timing an Input Form Entry

2008-10-07 Thread David Krings
Brent Baisley wrote: If you put a time stamp in the form, you should also include a "check" to make sure the time was not changed and/or forged (which is very easy to do). I think this is just for test metrics. While it is right that one can do that I doubt it applies in this case. David ___

[nyphp-talk] front end list address

2008-10-07 Thread Kristina Anderson
Anyone remember the email address for that "front end dev/CSS" list that's been mentioned? Thanks. -- Kristina ___ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyp

[nyphp-talk] cURL question

2008-10-07 Thread Rahmin Pavlovic
Hi, all: I'm wondering what the best way to do this is (may not be cURL): I'm currently building an API to connect to an HTTPS server. My first script POSTs login data as cleartext by way of cURL. The HTTPS server throws a secure cookie back at me, set to expire within 24 hours. So far,

RE: [nyphp-talk] new vs clone Performance

2008-10-07 Thread Hans Zaunere
> > Out of curiosity, I wanted to get some benchmarks on using the new operator > > vs cloning. I wrote a simple script, attached, which is fun to play with. > > Upshot: clone is faster if used correctly (and depending on the object's > > operations). Also some interesting observations in the sc

Re: [nyphp-talk] new vs clone Performance

2008-10-07 Thread csnyder
On Tue, Oct 7, 2008 at 12:35 PM, Hans Zaunere <[EMAIL PROTECTED]> wrote: > > Out of curiosity, I wanted to get some benchmarks on using the new operator > vs cloning. I wrote a simple script, attached, which is fun to play with. > Upshot: clone is faster if used correctly (and depending on the ob

[nyphp-talk] new vs clone Performance

2008-10-07 Thread Hans Zaunere
Hi all, Out of curiosity, I wanted to get some benchmarks on using the new operator vs cloning. I wrote a simple script, attached, which is fun to play with. Upshot: clone is faster if used correctly (and depending on the object's operations). Also some interesting observations in the script it

Re: [nyphp-talk] E-Commerce Shopping Carts

2008-10-07 Thread PaulCheung
Hi Michele Thanks for your help, it was and still is very much appreciated. Just to let you know I am using a UK providor named PROTX and they have thing called VSPx-KIT which follows a lot of what you discribe plus lots of PHPcoded examples of all the bits and bobs needed for the shopping

Re: [nyphp-talk] Timing an Input Form Entry

2008-10-07 Thread tedd
At 9:03 AM +0800 10/7/08, [EMAIL PROTECTED] wrote: Hello NYPHP, Greetings to All, I need to time how long it takes to fill out a registration form, from when it is called to submission. I am trying to compare the time frame difference between the form being manually filled out versus an autom

Re: [nyphp-talk] Timing an Input Form Entry

2008-10-07 Thread Elijah Insua
store the time in the users session and check it on post/get On Tue, Oct 7, 2008 at 5:42 AM, Brent Baisley <[EMAIL PROTECTED]> wrote: > If you put a time stamp in the form, you should also include a "check" > to make sure the time was not changed and/or forged (which is very > easy to do). > An e

Re: [nyphp-talk] Timing an Input Form Entry

2008-10-07 Thread Brent Baisley
If you put a time stamp in the form, you should also include a "check" to make sure the time was not changed and/or forged (which is very easy to do). An easy way to do this is to include another hidden field that is an md5 hash of the time plus a secret pass phrase that only resides on the server.

RE: [nyphp-talk] Timing an Input Form Entry

2008-10-07 Thread tedd
At 9:43 PM -0400 10/6/08, Hans Zaunere wrote: > > Isn't there one equal sign too many for value? That's the short tag syntax we all love: Count me out of that "love". I hate seeing that in code because I always have to change it to what's correct. Cheers, tedd -- --- http://sper