Re: [PHP] php.ini in php5.2.1

2007-12-28 Thread Jochem Maas
jekillen schreef: > Hello; > I have not had the necessity to deal with php.ini files for some time. > Now, because I switch from Sendmail to Postfix on one system I > need to adjust the sendmail path variable. are you sure you need to change it? doesn't postfix come with some kind of compatibilit

[PHP] php.ini in php5.2.1

2007-12-28 Thread jekillen
Hello; I have not had the necessity to deal with php.ini files for some time. Now, because I switch from Sendmail to Postfix on one system I need to adjust the sendmail path variable. I cannot find a php.ini file in the specified location. That is not a problem because I can use ini_set(). What is

Re: [PHP] Sayonara PHP

2007-12-28 Thread Martin Alterisio
2007/12/26, Andrés Robinet <[EMAIL PROTECTED]>: > > Well, my fellow countryman... one of my classmates at college had a > saying: > "el hombre es un animal de costumbres" (translate it "you gringos" :) - no > offense). And I guess it's most of the time like that... we learn > something, > we are ne

Re: [PHP] Re: [PHP-DEV] Sayonara PHP

2007-12-28 Thread Martin Alterisio
2007/12/26, Colin Guthrie <[EMAIL PROTECTED]>: > > Hi, > > While I'll admit I've not fully read your mail due to it's relatively > in-depth and technical nature that I'm not really up-to-speed with > regarding the internals of PHP, it did strike me when skimming the mail, > that you've not really c

Re: [PHP] when does php stop php executing when user clicks stop

2007-12-28 Thread Eric Wood
Eric Wood wrote: > If database operations are underway when a user accesses a web page, > then user clicks stop on the browser, does the php stop immediately too? > > I'd rather the php continue behind the scenes to fullfill all the > actions I need it do to whether the user wants to see if happen

[PHP] when does php stop php executing when user clicks stop

2007-12-28 Thread Eric Wood
If database operations are underway when a user accesses a web page, then user clicks stop on the browser, does the php stop immediately too? I'd rather the php continue behind the scenes to fullfill all the actions I need it do to whether the user wants to see if happen or not. Overall I wonder

[PHP] Re: fopen() for http:// sometimes working, sometimes not

2007-12-28 Thread Dan
""Albert Wiersch"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I noticed my script at http://onlinewebcheck.com was sometimes (fairly often) failing to open some URLs that users have entered. fopen() returns false very quickly, but when tried again with the same URL, sometimes

Re: [PHP] Re: fopen() for http:// sometimes working, sometimes not

2007-12-28 Thread Albert Wiersch
"Wolf" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > DNS issues I think I've solved this. I found a problem with resolv.conf that contained some outdated DNS servers. After changing that and rebooting the server it seems to be working. It didn't seem to work after just changing

Re: [PHP] Unix date (even more bazaar)

2007-12-28 Thread Daniel Brown
Yeah, and to what bazaar are you going, old man? Look, I'm so loopy right now, I'm top-posting. How bizarre HAPPY NEW YEAR TO ALL, AND TO ALL SHUT THE HELL UP! Be safe, happy, and healthy into 2008! On Dec 28, 2007 6:16 PM, Dan <[EMAIL PROTECTED]> wrote: > "tedd" <[

Re: [PHP] Unix date

2007-12-28 Thread Daniel Brown
On Dec 28, 2007 5:48 PM, tedd <[EMAIL PROTECTED]> wrote: [snip!] > Here is the code and demo: > > http://webbytedd.com/c/unix-time1/index.php > > It works for me on my server. [snip!] Well, if you don't want to change the timezone at runtime like I suggested this morning, you could do somethin

Re: [PHP] Unix date

2007-12-28 Thread Børge Holen
On Friday 28 December 2007 23:48:21 tedd wrote: > At 7:45 PM +0100 12/28/07, Børge Holen wrote: > >On Friday 28 December 2007 16:46:46 tedd wrote: > > > So, what's the best method in keeping things consistent across > >> > >> servers? Is there one? > > > >I almost took to a baseballbat, till I re

Re: [PHP] Unix date (even more bazaar)

2007-12-28 Thread Dan
"tedd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi gang: This really bazaar Here's the code and demo: http://webbytedd.com/c/unix-time1/index.php If I cut/paste the following string "as-is" into the "Input Date" portion of the form: 10-18-2009 00:00:00 It works and retu

[PHP] Re: Unix date

2007-12-28 Thread Dan
The problem is indeed time zones, daylight savings time, etc. Unless your two servers are in the same place you can't really make the times the same without making them wrong in one place. The best thing I can think of to do is specify a timezone, and daylight savings time value, that way you

Re: [PHP] Unix date (even more bazaar)

2007-12-28 Thread tedd
At 6:01 PM -0500 12/28/07, tedd wrote: Hi gang: This really bazaar Here's the code and demo: http://webbytedd.com/c/unix-time1/index.php If I cut/paste the following string "as-is" into the "Input Date" portion of the form: 10-18-2009 00:00:00 It works and returns a UNIX timestamp of 1255

Re: [PHP] Unix date (even more bazaar)

2007-12-28 Thread tedd
Hi gang: This really bazaar Here's the code and demo: http://webbytedd.com/c/unix-time1/index.php If I cut/paste the following string "as-is" into the "Input Date" portion of the form: 10-18-2009 00:00:00 It works and returns a UNIX timestamp of 1255885200 However, if I cut/paste the foll

Re: [PHP] Unix date

2007-12-28 Thread tedd
At 7:45 PM +0100 12/28/07, Børge Holen wrote: On Friday 28 December 2007 16:46:46 tedd wrote: > So, what's the best method in keeping things consistent across servers? Is there one? I almost took to a baseballbat, till I remembered to change php.ini to co run two servers. Of course doing thi

[PHP] Re: Unix date

2007-12-28 Thread Al
date_default_timezone_set ( string $timezone_identifier ) tedd wrote: Hi gang: Using: $unix_in = 1255845600; echo(date("M d, Y h:i:s a",$unix_in)); On one sever, produces: Oct 18, 2009 02:00:00 am But on another sever, produces: Oct 18, 2009 12:00:00 am This difference appears to be a com

Re: [PHP] Unix date

2007-12-28 Thread Jochem Maas
tedd schreef: > Hi gang: > > Using: > > $unix_in = 1255845600; > > echo(date("M d, Y h:i:s a",$unix_in)); > > On one sever, produces: Oct 18, 2009 02:00:00 am > > But on another sever, produces: Oct 18, 2009 12:00:00 am > > This difference appears to be a combination of "time-zone" and > "day

Re: [PHP] Re: fopen() for http:// sometimes working, sometimes not

2007-12-28 Thread Wolf
DNS issues Albert Wiersch wrote: > I'm now using PHP 5.2.5. > > Well, it seems to still be happening. This describes the problem but I > haven't found a solution that works for me yet: > http://bugs.php.net/bug.php?id=11058 > > Is it a PHP problem or DNS? It works sometimes but not other times.

Re: [PHP] Unix date

2007-12-28 Thread Børge Holen
On Friday 28 December 2007 16:46:46 tedd wrote: > Hi gang: > > Using: > > $unix_in = 1255845600; > > echo(date("M d, Y h:i:s a",$unix_in)); > > On one sever, produces: Oct 18, 2009 02:00:00 am > > But on another sever, produces: Oct 18, 2009 12:00:00 am > > This difference appears to be a combinati

[PHP] Re: fopen() for http:// sometimes working, sometimes not

2007-12-28 Thread Albert Wiersch
I'm now using PHP 5.2.5. Well, it seems to still be happening. This describes the problem but I haven't found a solution that works for me yet: http://bugs.php.net/bug.php?id=11058 Is it a PHP problem or DNS? It works sometimes but not other times.. something strange is going on. Example m

RE: [PHP] Unix date

2007-12-28 Thread bruce
i'm pretty sure you can sync/link to a ntp server to accurately track the time... -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Friday, December 28, 2007 7:47 AM To: PHP Subject: [PHP] Unix date Hi gang: Using: $unix_in = 1255845600; echo(date("M d, Y h:i:s a",$unix_

Re: [PHP] Unix date

2007-12-28 Thread Nathan Nobbe
On Dec 28, 2007 10:46 AM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > Using: > > $unix_in = 1255845600; > > echo(date("M d, Y h:i:s a",$unix_in)); > > On one sever, produces: Oct 18, 2009 02:00:00 am > > But on another sever, produces: Oct 18, 2009 12:00:00 am > > This difference appears to be

Re: [PHP] Unix date

2007-12-28 Thread Daniel Brown
On Dec 28, 2007 10:46 AM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > Using: > > $unix_in = 1255845600; > > echo(date("M d, Y h:i:s a",$unix_in)); > > On one sever, produces: Oct 18, 2009 02:00:00 am > > But on another sever, produces: Oct 18, 2009 12:00:00 am > > This difference appears to be a

[PHP] Unix date

2007-12-28 Thread tedd
Hi gang: Using: $unix_in = 1255845600; echo(date("M d, Y h:i:s a",$unix_in)); On one sever, produces: Oct 18, 2009 02:00:00 am But on another sever, produces: Oct 18, 2009 12:00:00 am This difference appears to be a combination of "time-zone" and "daylight-savings" considerations. In other

RE: [PHP] socket_read can not read the whole HTTP page?

2007-12-28 Thread ked
Wow, That's correct answer! Thank to Eddie Dunckley ! scheme: $in .= "GET {$file} HTTP/1.0\r\n"; //--- $in .= "Accept: text/html\r\n"; $in .= "Accept-Language: zh-cn\r\n"; $in .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 2.0.50727)\r\n"; $in .= "Host: {$h

[PHP] Re: Asynchronous socket connection timing issue.

2007-12-28 Thread Nicolas Le Gland
Having succeeded in writing the same code using the BSD sockets extension without any such delay, I filled a bug concerning stream implementation. http://bugs.php.net/?id=43695 Feel free to reply there. -- Nicolas Le Gland -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] Re: Asynchronous socket connection timing issue.

2007-12-28 Thread Nicolas Le Gland
Having succeeded in writing the same code using the BSD sockets extension without any such delay, I filled a bug concerning stream implementation. http://bugs.php.net/?id=43695 Feel free to reply there. -- Nicolas Le Gland -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi