php-general Digest 26 Mar 2008 16:57:51 -0000 Issue 5369

2008-03-26 Thread php-general-digest-help
php-general Digest 26 Mar 2008 16:57:51 - Issue 5369 Topics (messages 272106 through 272131): Re: Cookie Trouble: getting the information back out... 272106 by: Mark Weaver 272112 by: tedd 272113 by: Mark Weaver 272114 by: tedd 272121 by: Richard

[PHP] optimilize web page loading

2008-03-26 Thread Alain Roger
Hi, i would like to know if there is a way to know how long does a web page need to be loaded into browser ? this is interesting fact for me, as i will optimilize my PHP code in order to reduce this time to minimum. i was thinking to use some timestamp but as it will be in PHP, it mean that it

Re: [PHP] optimilize web page loading

2008-03-26 Thread Paul Scott
On Wed, 2008-03-26 at 09:25 +0100, Alain Roger wrote: i would like to know if there is a way to know how long does a web page need to be loaded into browser ? this is interesting fact for me, as i will optimilize my PHP code in order to reduce this time to minimum. Try using microtime()

Re: [PHP] optimilize web page loading

2008-03-26 Thread Aschwin Wesselius
Alain Roger wrote: Hi, i would like to know if there is a way to know how long does a web page need to be loaded into browser ? this is interesting fact for me, as i will optimilize my PHP code in order to reduce this time to minimum. i was thinking to use some timestamp but as it will be in

RE: [PHP] optimilize web page loading

2008-03-26 Thread dhorton
Get hold of Steve Souders: High Performance Web Sites: 14 Rules for Faster Pages http://www.oreilly.com/catalog/9780596529307/index.html#details There is a video at http://www.oreillynet.com/fyi/blog/2007/09/steve_souders_high_performance.html Browse the links from which you can see what he is

Re: [PHP] Beware of round() function

2008-03-26 Thread tedd
At 10:55 AM -0600 3/25/08, [EMAIL PROTECTED] wrote: Thanks for the info, Jeremy. Regardless of the technical details, my code still broke. I am little discouraged that an operation that should be so simple has these sorts of gotchas. Not that this helps/hurts your observation. What I find

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-26 Thread tedd
Mark: You said: I'm gonna shit and go blind cause I haven't got a clue... and The only thing preventing me from gouging out my eyes right now is ... Are you sure that programming is right for you? It sounds like you're going to hurt yourself. This was just a cookie. :-) Cheers,

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-26 Thread Mark Weaver
tedd wrote: Mark: You said: I'm gonna shit and go blind cause I haven't got a clue... and The only thing preventing me from gouging out my eyes right now is ... Are you sure that programming is right for you? It sounds like you're going to hurt yourself. This was just a cookie. :-)

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-26 Thread tedd
At 8:37 AM -0400 3/26/08, Mark Weaver wrote: I really enjoy programming. It satisfies a creative bent in me, but from time to time I do get very frustrated with it. Especially when, as in this case, it's only a cookie and an easy concept. What frustrates me is I know I'm missing something, but

Re: [PHP] loosing session in new window (IE only)

2008-03-26 Thread Lamp Lists
- Original Message From: Hélio Rocha [EMAIL PROTECTED] To: Lamp Lists [EMAIL PROTECTED] Sent: Wednesday, March 26, 2008 5:14:40 AM Subject: Re: [PHP] loosing session in new window (IE only) If u open the link in the same window, what's the behaviour? On Tue, Mar 25, 2008 at 7:49 PM,

Re: [PHP] loosing session in new window (IE only)

2008-03-26 Thread Lamp Lists
- Original Message From: Hélio Rocha [EMAIL PROTECTED] To: Lamp Lists [EMAIL PROTECTED] Sent: Wednesday, March 26, 2008 5:14:40 AM Subject: Re: [PHP] loosing session in new window (IE only) If u open the link in the same window, what's the behaviour? On Tue, Mar 25, 2008 at 7:49 PM,

Re: [PHP] loosing session in new window (IE only)

2008-03-26 Thread Richard Lynch
On Tue, March 25, 2008 4:07 pm, Lamp Lists wrote: - Original Message From: Andrew Ballard [EMAIL PROTECTED] To: PHP General list php-general@lists.php.net Sent: Tuesday, March 25, 2008 3:41:35 PM Subject: Re: [PHP] loosing session in new window (IE only) On Tue, Mar 25, 2008 at

Re: [PHP] session var not changed if file not found error

2008-03-26 Thread Richard Lynch
On Tue, March 25, 2008 8:29 pm, Eric Wood wrote: This has baffled me all day on my FC6 php-5.1.6 based server. On a normal working page, I set a session variable at the top and another session variable in the middle of the page/script. This page has no errors nor missing links. So

[PHP] Re: Beware of round() function

2008-03-26 Thread Colin Guthrie
[EMAIL PROTECTED] wrote: Thanks for the info, Jeremy. Regardless of the technical details, my code still broke. I am little discouraged that an operation that should be so simple has these sorts of gotchas. There can also be some surprisingly awkward to find bugs that are not even deliberate

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-26 Thread Richard Lynch
On Tue, March 25, 2008 8:11 pm, Mark Weaver wrote: I suspect I already know part of the answer to this, but I'm not sure which way to go with it. I've got a project I'm working on and one of the things it's got to do is set cookies and then read them later. When the app was first written I

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-26 Thread Daniel Brown
On Tue, Mar 25, 2008 at 9:49 PM, Andrew Ballard [EMAIL PROTECTED] wrote: On Tue, Mar 25, 2008 at 9:31 PM, Daniel Brown [EMAIL PROTECTED] wrote: Is this block of code executed immediately after the cookie is set? Sometimes PHP works too fast for its own good and the client

Re: [PHP] loosing session in new window (IE only)

2008-03-26 Thread Lamp Lists
--- Richard Lynch [EMAIL PROTECTED] wrote: On Tue, March 25, 2008 4:07 pm, Lamp Lists wrote: - Original Message From: Andrew Ballard [EMAIL PROTECTED] To: PHP General list php-general@lists.php.net Sent: Tuesday, March 25, 2008 3:41:35 PM Subject: Re: [PHP] loosing session in

Re: [PHP] Cookie Trouble: getting the information back out...

2008-03-26 Thread Daniel Brown
On Tue, Mar 25, 2008 at 10:22 PM, Mark Weaver [EMAIL PROTECTED] wrote: Geez! now my $_SESSION isn't persisting to the next page when the screen refreshes. The only thing preventing me from gouging out my eyes right now is that I know I'll get this stuff. It's just a matter of time...

Re: [PHP] Array and Object

2008-03-26 Thread Nathan Nobbe
On Mon, Mar 24, 2008 at 11:23 AM, VamVan [EMAIL PROTECTED] wrote: Well anyways please let me handle the problems with decoding. I just want to know if there is a way that I could traverse through all the elements of the simplexmlobject and still keep the same structure of the array. What I

Re: [PHP] optimilize web page loading

2008-03-26 Thread Philip Thompson
On Mar 26, 2008, at 3:40 AM, Aschwin Wesselius wrote: Alain Roger wrote: Hi, i would like to know if there is a way to know how long does a web page need to be loaded into browser ? this is interesting fact for me, as i will optimilize my PHP code in order to reduce this time to minimum.

Re: [PHP] loosing session in new window (IE only)

2008-03-26 Thread Stefan Langwald
href=person.php?id=123SESSIONID=... maybe.. ev0l but works.. 2008/3/26, Lamp Lists [EMAIL PROTECTED]: --- Richard Lynch [EMAIL PROTECTED] wrote: On Tue, March 25, 2008 4:07 pm, Lamp Lists wrote: - Original Message From: Andrew Ballard [EMAIL PROTECTED] To: PHP

Re: [PHP] optimilize web page loading

2008-03-26 Thread Richard Lynch
You can use onload and XmlHttpRequest to send back the desktop client computer date/time and compare that with your start time. Note that you'll need to test on [a] computer[s] where you know the date/time is set correctly, which is not true of the general visitor. On Wed, March 26, 2008 3:25

Re: [PHP] Date math

2008-03-26 Thread Richard Lynch
On Sun, March 23, 2008 11:17 pm, Ron Piggott wrote: I have this math equation this list helped me generate a few weeks ago. The purpose is to calculate how many days have passed between 2 dates. Right now my output ($difference) is 93.958333 days. I am finding this a little weird. Does

Re: [PHP] optimilize web page loading

2008-03-26 Thread Wolf
Alain Roger [EMAIL PROTECTED] wrote: Hi, i would like to know if there is a way to know how long does a web page need to be loaded into browser ? this is interesting fact for me, as i will optimilize my PHP code in order to reduce this time to minimum. i was thinking to use some

[PHP] PHP Book

2008-03-26 Thread alexus
What's the good PHP book to learn PHP? -- http://alexus.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Book

2008-03-26 Thread Wolf
alexus [EMAIL PROTECTED] wrote: What's the good PHP book to learn PHP? -- http://alexus.org/ STFA - this was gone over last week -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Book

2008-03-26 Thread Daniel Brown
On Wed, Mar 26, 2008 at 1:01 PM, Wolf [EMAIL PROTECTED] wrote: alexus [EMAIL PROTECTED] wrote: What's the good PHP book to learn PHP? -- http://alexus.org/ STFA - this was gone over last week STFU would be better. ;-P He was the same one who posted the same

[PHP] Quick email address check

2008-03-26 Thread Al
I'm scripting a simple registry where the user can input their name and email address. I'd like to do a quick validity check on the email address they just inputted. I can check the syntax, etc. but want check if the address exists. I realize that servers can take a long time to bounce etc.

[PHP] Re: optimilize web page loading

2008-03-26 Thread Al
You are really asking an HTML question, if you think about it. At the PHP level, either use output buffering or assemble all your html string as a variable and then echo it. The goal is to compress the string into the minimum number of packets. Alain Roger wrote: Hi, i would like to know

Re: [PHP] Quick email address check

2008-03-26 Thread Eric Butera
On Wed, Mar 26, 2008 at 1:28 PM, Al [EMAIL PROTECTED] wrote: I'm scripting a simple registry where the user can input their name and email address. I'd like to do a quick validity check on the email address they just inputted. I can check the syntax, etc. but want check if the address

[PHP] date CDT CST UTC

2008-03-26 Thread Dee Ayy
Today, we are in Central Daylight Time CDT in Dallas, Texas, USA -- yes? date on: mail server: Wed Mar 26 11:45:00 CDT 2008 (CORRECT) web server: Wed Mar 26 11:45:00 CST 2008 Note CDT versus CST. date -u mail server: Wed Mar 26 16:45:00 UTC 2008 (CORRECT at 11:45 AM local time [Central Daylight

Re: [PHP] Quick email address check

2008-03-26 Thread Richard Lynch
On Wed, March 26, 2008 12:28 pm, Al wrote: Is there a better way than simply sending a test email to see if it bounces? Yes. Force the user to click on a link to prove that they actually CHECK that email address. Just because it doesn't bounce doesn't mean it's a valid email address. --

Re: [PHP] date CDT CST UTC

2008-03-26 Thread Richard Lynch
On Wed, March 26, 2008 12:50 pm, Dee Ayy wrote: Today, we are in Central Daylight Time CDT in Dallas, Texas, USA -- yes? date on: mail server: Wed Mar 26 11:45:00 CDT 2008 (CORRECT) web server: Wed Mar 26 11:45:00 CST 2008 Note CDT versus CST. date -u mail server: Wed Mar 26 16:45:00 UTC

Re: [PHP] Re: optimilize web page loading

2008-03-26 Thread Andrew Ballard
On Wed, Mar 26, 2008 at 1:18 PM, Al [EMAIL PROTECTED] wrote: You are really asking an HTML question, if you think about it. At the PHP level, either use output buffering or assemble all your html string as a variable and then echo it. The goal is to compress the string into the minimum

Re: [PHP] Quick email address check

2008-03-26 Thread Per Jessen
Al wrote: I'm scripting a simple registry where the user can input their name and email address. I'd like to do a quick validity check on the email address they just inputted. I can check the syntax, etc. but want check if the address exists. I realize that servers can take a long time to

[PHP] Re: Quick email address check

2008-03-26 Thread Shawn McKenzie
Al wrote: I'm scripting a simple registry where the user can input their name and email address. I'd like to do a quick validity check on the email address they just inputted. I can check the syntax, etc. but want check if the address exists. I realize that servers can take a long time to

[PHP] Re: Quick email address check

2008-03-26 Thread Al
All good suggestions guys. Richard's has the advantage of solving the potential for a delay by the user's email server. I'll have the user submit and tell'm to wait while I check the email address for them. Solves several problems. Al wrote: I'm scripting a simple registry where the user

Re: [PHP] character encoding

2008-03-26 Thread Zoltán Németh
2008. 03. 26, szerda keltezéssel 15.57-kor Bill ezt írta: Hi LAMP A column in a table has Brbeuf in it. (3rd caracter is eacute;) I use that table to send emails. In the body that column shows Brébeuf in Windows Outlook. How could I translate to the correct encoding so that

Re: [PHP] character encoding

2008-03-26 Thread Bill
Hi Zoltan, A column in a table has Brbeuf in it. (3rd caracter is eacute;) In the body that column shows Brébeuf in Windows Outlook. How could I translate to the correct encoding so that accents show correctly in Outlook ? based on the encoding of your e-mail, my guess is that your

Re: [PHP] character encoding

2008-03-26 Thread Zoltán Németh
2008. 03. 26, szerda keltezéssel 18.04-kor Bill ezt írta: Hi Zoltan, A column in a table has Brbeuf in it. (3rd caracter is eacute;) In the body that column shows Brbeuf in Windows Outlook. How could I translate to the correct encoding so that accents show correctly in Outlook ?

[PHP] APC FastCGI != upload progress ?

2008-03-26 Thread steve
We can get upload progress to work with the APC extension for PHP 5.2.x only on machines that are not using FastCGI. (Apache2.2 if it matters). Does anyone have a suggestion where to look? Will it even be possible? Thanks in advance, -s -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: optimilize web page loading

2008-03-26 Thread Al
Depends on the server and it's load. I've strung together some rather large html strings and they aways take far less time than the transient time on the internet. I used to use OB extensively until one day I took the time to measure the difference. I don't recall the numbers; but, I do recall

[PHP] Re: Quick email address check

2008-03-26 Thread Manuel Lemos
Hello, on 03/26/2008 02:28 PM Al said the following: I'm scripting a simple registry where the user can input their name and email address. I'd like to do a quick validity check on the email address they just inputted. I can check the syntax, etc. but want check if the address exists. I

[PHP] Re: character encoding

2008-03-26 Thread Manuel Lemos
Hello, on 03/26/2008 04:57 PM Bill said the following: A column in a table has Brébeuf in it. (3rd caracter is eacute;) I use that table to send emails. In the body that column shows Brébeuf in Windows Outlook. How could I translate to the correct encoding so that accents show

Re: [PHP] APC FastCGI != upload progress ?

2008-03-26 Thread Jim Lucas
steve wrote: We can get upload progress to work with the APC extension for PHP 5.2.x only on machines that are not using FastCGI. (Apache2.2 if it matters). Does anyone have a suggestion where to look? Will it even be possible? Thanks in advance, -s I built a work around. It requires