php-windows Digest 7 Oct 2003 17:47:02 -0000 Issue 1945
Topics (messages 21705 through 21716):
Re: timeout question
21705 by: J.Veenhuijsen
21712 by: Disko_kex
Re: Problem with my PHPNuke Site
21706 by: Wolfgang Schneider
IRC & SOCKETS
21707 by: Paulo Nunes
21708 by: Rahman Haqparast
Problem with special characters
21709 by: ojje johansson
Re: Every 1008th character is missing???
21710 by: Disko_kex
21711 by: Disko_kex
21713 by: Svensson, B.A.T. (HKG)
21714 by: Charles P. Killmer
Session Managment
21715 by: Kevin
21716 by: Rahman Haqparast
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
see in php.ini
max_execution_time = 30 ; Maximum execution time of each script, in
seconds
or
set_time_limit (PHP 3, PHP 4 )
limit the maximum execution time
void set_time_limit (int seconds)
Set the number of seconds a script is allowed to run. If this is
reached, the script returns a fatal error.
The default limit is 30 seconds or, if it exists, the max_execution_time
value defined in the configuration
file. If seconds is set to zero, no time limit is imposed.
When called, set_time_limit() restarts the timeout counter from zero. In
other words, if the timeout is
the default 30 seconds, and 25 seconds into script execution a call such
as set_time_limit(20) is made,
the script will run for a total of 45 seconds before timing out.
Note that set_time_limit() has no effect when PHP is running in safe
mode. There is no workaround
other than turning off safe mode or changing the time limit in the
configuration file.
Jochem
David Coleman wrote:
I have a PHP page that for some reason is taking an ungodly long time to
execute. I suspect that this is simply b/c I’m running Apache 1.3 /
MySQL 4.013-nt, PHP 4, Zend studio 3.0, and MySQL GUI on a 266 MhZ win2K
server. (Yes people, I know I’m choking the poor thing, but I can’t
afford a new server right now.)
My question to the group is:
Does anyone know how I can increase my timeouts on page generation?
Halfway through the rowset, the page stops generating and returns to the
browser cut off at whatever point the server (apache, PHP or MySQL, I
dunno which) gave up and decided the page was taking too long. It seems
to be a 90 second html response timeout imbedded somewhere in my
configuration, but I have no idea where to look to change this value to
unlimited, or maybe to 600 seconds or something more reasonable for the
hideous rowsets that my project is dealing with.
I don’t know if this is a PHP question, but I’m trying PHP, Apache, and
MySQL in case there is a cursor timeout or something…
Anyone feel like sharing some nifty tricks to help me tweak my
performance? I don’t care if the page takes 10 hours to generate, I’m
on a local secure network and I want my connections open that long.
(I’d also like to know if there’s any tricks to not using cursors and
loading re-usable recordset-style objects into mysql_result variables,
so I don’t have to hit the db every time I want to re-use a loaded
rowset. But let’s get my pages to finish generating first.
:-)
Thanks a bunch everyone!
Dave Coleman
Software Engineer
TeraByte Software Solutions LLC
[EMAIL PROTECTED]
Thanx everyone,
Dave
--- End Message ---
--- Begin Message ---
I had that problem too.
set_time_limit = 0 ; in php.ini
and
Timeout 0 # in httpd.conf
// jocke
-----Original Message-----
From: J.Veenhuijsen [mailto:[EMAIL PROTECTED]
Sent: den 7 oktober 2003 06:55
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: timeout question
see in php.ini
max_execution_time = 30 ; Maximum execution time of each script, in
seconds
or
set_time_limit (PHP 3, PHP 4 )
limit the maximum execution time
void set_time_limit (int seconds)
Set the number of seconds a script is allowed to run. If this is
reached, the script returns a fatal error.
The default limit is 30 seconds or, if it exists, the max_execution_time
value defined in the configuration
file. If seconds is set to zero, no time limit is imposed.
When called, set_time_limit() restarts the timeout counter from zero. In
other words, if the timeout is
the default 30 seconds, and 25 seconds into script execution a call such
as set_time_limit(20) is made,
the script will run for a total of 45 seconds before timing out.
Note that set_time_limit() has no effect when PHP is running in safe
mode. There is no workaround
other than turning off safe mode or changing the time limit in the
configuration file.
Jochem
David Coleman wrote:
> I have a PHP page that for some reason is taking an ungodly long time
to
> execute. I suspect that this is simply b/c I'm running Apache 1.3 /
> MySQL 4.013-nt, PHP 4, Zend studio 3.0, and MySQL GUI on a 266 MhZ
win2K
> server. (Yes people, I know I'm choking the poor thing, but I can't
> afford a new server right now.)
>
> My question to the group is:
>
> Does anyone know how I can increase my timeouts on page generation?
> Halfway through the rowset, the page stops generating and returns to
the
> browser cut off at whatever point the server (apache, PHP or MySQL, I
> dunno which) gave up and decided the page was taking too long. It
seems
> to be a 90 second html response timeout imbedded somewhere in my
> configuration, but I have no idea where to look to change this value
to
> unlimited, or maybe to 600 seconds or something more reasonable for
the
> hideous rowsets that my project is dealing with.
>
> I don't know if this is a PHP question, but I'm trying PHP, Apache,
and
> MySQL in case there is a cursor timeout or something.
>
> Anyone feel like sharing some nifty tricks to help me tweak my
> performance? I don't care if the page takes 10 hours to generate, I'm
> on a local secure network and I want my connections open that long.
> (I'd also like to know if there's any tricks to not using cursors and
> loading re-usable recordset-style objects into mysql_result variables,
> so I don't have to hit the db every time I want to re-use a loaded
> rowset. But let's get my pages to finish generating first.
>
> :-)
>
> Thanks a bunch everyone!
>
> Dave Coleman
> Software Engineer
> TeraByte Software Solutions LLC
> [EMAIL PROTECTED]
>
>
>
> Thanx everyone,
> Dave
>
>
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On Mon, 6 Oct 2003 18:07:52 -0500, Charlie Brewer wrote:
Hi
>I have a PHPNuke website, with PHPbb forums. The problem is, it doesnt
> matter what I set the Forum font color to, its automatically overridden by the
> website font color. Now I dont want the forums to have the same font color
> as the rest of the site, is there any way to fix this
where are you setting the forums font color ? within phpbb forum's
administrative panel and the managing of "styles"?
God bless you with His grace and peace
Wolfgang
Looking for Biblical information? COME AND SEE!
Biblical studies ... www.bibelcenter.de
Christian Bookstore www.christianbook.com/Christian/Books/home?event=AFF&p=1009812
--- End Message ---
--- Begin Message ---
I am trying to implement a chat to my page. Using reloading is out of the
question.
I was indicated this technology, iFrame, wich i am liking (does anyone knows
better?).
But my problem is: how do i manage that everyone sees what user X just wrote
and sent? I was checking socket functions, but i am a litle lost in here.
Could anyone help me?
Thanks a lot!!!
--- End Message ---
--- Begin Message ---
use a temporary table in a mySQL database.
"Paulo Nunes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am trying to implement a chat to my page. Using reloading is out of the
> question.
> I was indicated this technology, iFrame, wich i am liking (does anyone
knows
> better?).
> But my problem is: how do i manage that everyone sees what user X just
wrote
> and sent? I was checking socket functions, but i am a litle lost in here.
> Could anyone help me?
> Thanks a lot!!!
--- End Message ---
--- Begin Message ---
Anyone having ide why special characters suddenly doesnt work on my apache
(on win2k). I wont return letter like "'e" and swedish characters öåä from
mssql 2000. It worked before but after i have unistalled zonealarm and run
windows update, and installed win 2000 server client tool's php wont
recognize those characters right. The characters im talking about is stored
on a windows 2000 server (on win 2000), see function downbelow. Can the
windows update change the unicode on the webserver?
Here is a function that is used to store the special characters:
function changeCharSweToDb($string){
$string = ereg_replace ("å", "†", $string);
$string = ereg_replace ('ä', '„', $string);
$string = ereg_replace ('ö', '”', $string);
$string = ereg_replace ("Å", "¸", $string);
$string = ereg_replace ("Ä", "ˇ", $string);
$string = ereg_replace ("Ö", "™", $string);
$string = str_replace ('"', '"', $string);
return $string;
}
Any ideas?
/orjan
_________________________________________________________________
Lättare att hitta drömresan med MSN Resor http://www.msn.se/resor/
--- End Message ---
--- Begin Message ---
I tried with 4.3.2 and 4.3.3 and its not working, but with php 5 is
working, but then I cant get my mysql to work with php 5. What server
are you using? And ideas why some characters is missing?
-----Original Message-----
From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
Sent: den 6 oktober 2003 15:56
To: Disko_kex; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Every 1008th character is missing???
I just tried it on my server with both PHP 4.3.2 and 4.3.3 and I got the
last 5. The only thing I changed was the email address to send to.
Charles
-----Original Message-----
From: Disko_kex [mailto:[EMAIL PROTECTED]
Sent: Monday, October 06, 2003 8:19 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Every 1008th character is missing???
Why is every 1008th character missing when Im tring to send an email?
mail("[EMAIL PROTECTED]", "test","
123456789012345678901234567890123456789012345678901234567890123456789012
345678901234567890123456789012345678901234567890123456789123456789012345
678901234567890123456789012345678901234567890123456789012345678901234567
890123456789012345678901234567890123456789123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789012
345678901234567890123456789123456789012345678901234567890123456789012345
678901234567890123456789012345678901234567890123456789012345678901234567
890123456789123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789012345678901234567890123456789123
456789012345678901234567890123456789012345678901234567890123456789012345
678901234567890123456789012345678901234567890123456789123456789012345678
901234567890123456789012345678901234567890123456789012345678901234567890
123456789012345678901234567890123456789123456789012345678901234567890123
456789012345678901234567890123456789012345678901234567890123456789012345
", "From: Redaktionen <[EMAIL PROTECTED]>\r\n"
."MIME-Version: 1.0\r\n"
."Content-type: text/html; charset=iso-8859-1\r\n"
."Reply-To: [EMAIL PROTECTED]"
."X-Mailer: PHP/" . phpversion());
The last "5" is missing. Im tring to send newletters to my customers
thru HTML formated emils, and because 1008th character is missing the
source gets pretty fuckt up.
Anyone got any ideas what I should do??
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Yes I did that, I noticed that "!" appered after some chars. But I still
don't have a clue about the missing chars. :/
-----Original Message-----
From: Andrei Popovici [mailto:[EMAIL PROTECTED]
Sent: den 7 oktober 2003 15:15
To: Disko_kex
Subject: Re: [PHP-WIN] Every 1008th character is missing???
Try adding an "\r\n" at the end of every line of HTML code.
I had the same problem and that worked for me.
----- Original Message -----
From: "Disko_kex" <[EMAIL PROTECTED]>
To: "'Charles P. Killmer'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, October 07, 2003 1:46 PM
Subject: RE: [PHP-WIN] Every 1008th character is missing???
> I tried with 4.3.2 and 4.3.3 and its not working, but with php 5 is
> working, but then I cant get my mysql to work with php 5. What server
> are you using? And ideas why some characters is missing?
>
>
>
> -----Original Message-----
> From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
> Sent: den 6 oktober 2003 15:56
> To: Disko_kex; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Every 1008th character is missing???
>
> I just tried it on my server with both PHP 4.3.2 and 4.3.3 and I got
the
> last 5. The only thing I changed was the email address to send to.
>
> Charles
>
> -----Original Message-----
> From: Disko_kex [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 06, 2003 8:19 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Every 1008th character is missing???
>
>
> Why is every 1008th character missing when Im tring to send an email?
>
> mail("[EMAIL PROTECTED]", "test","
>
123456789012345678901234567890123456789012345678901234567890123456789012
>
345678901234567890123456789012345678901234567890123456789123456789012345
>
678901234567890123456789012345678901234567890123456789012345678901234567
>
890123456789012345678901234567890123456789123456789012345678901234567890
>
123456789012345678901234567890123456789012345678901234567890123456789012
>
345678901234567890123456789123456789012345678901234567890123456789012345
>
678901234567890123456789012345678901234567890123456789012345678901234567
>
890123456789123456789012345678901234567890123456789012345678901234567890
>
123456789012345678901234567890123456789012345678901234567890123456789123
>
456789012345678901234567890123456789012345678901234567890123456789012345
>
678901234567890123456789012345678901234567890123456789123456789012345678
>
901234567890123456789012345678901234567890123456789012345678901234567890
>
123456789012345678901234567890123456789123456789012345678901234567890123
>
456789012345678901234567890123456789012345678901234567890123456789012345
> ", "From: Redaktionen <[EMAIL PROTECTED]>\r\n"
> ."MIME-Version: 1.0\r\n"
> ."Content-type: text/html; charset=iso-8859-1\r\n"
> ."Reply-To: [EMAIL PROTECTED]"
> ."X-Mailer: PHP/" . phpversion());
>
>
> The last "5" is missing. Im tring to send newletters to my customers
> thru HTML formated emils, and because 1008th character is missing the
> source gets pretty fuckt up.
>
> Anyone got any ideas what I should do??
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Was the e-mail address shortened by 5 chars?
On Tue, 2003-10-07 at 13:46, Disko_kex wrote:
> I tried with 4.3.2 and 4.3.3 and its not working, but with php 5 is
> working, but then I cant get my mysql to work with php 5. What server
> are you using? And ideas why some characters is missing?
>
>
>
> -----Original Message-----
> From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
> Sent: den 6 oktober 2003 15:56
> To: Disko_kex; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Every 1008th character is missing???
>
> I just tried it on my server with both PHP 4.3.2 and 4.3.3 and I got the
> last 5. The only thing I changed was the email address to send to.
>
> Charles
>
> -----Original Message-----
> From: Disko_kex [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 06, 2003 8:19 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Every 1008th character is missing???
>
>
> Why is every 1008th character missing when Im tring to send an email?
>
> mail("[EMAIL PROTECTED]", "test","
> 123456789012345678901234567890123456789012345678901234567890123456789012
> 345678901234567890123456789012345678901234567890123456789123456789012345
> 678901234567890123456789012345678901234567890123456789012345678901234567
> 890123456789012345678901234567890123456789123456789012345678901234567890
> 123456789012345678901234567890123456789012345678901234567890123456789012
> 345678901234567890123456789123456789012345678901234567890123456789012345
> 678901234567890123456789012345678901234567890123456789012345678901234567
> 890123456789123456789012345678901234567890123456789012345678901234567890
> 123456789012345678901234567890123456789012345678901234567890123456789123
> 456789012345678901234567890123456789012345678901234567890123456789012345
> 678901234567890123456789012345678901234567890123456789123456789012345678
> 901234567890123456789012345678901234567890123456789012345678901234567890
> 123456789012345678901234567890123456789123456789012345678901234567890123
> 456789012345678901234567890123456789012345678901234567890123456789012345
> ", "From: Redaktionen <[EMAIL PROTECTED]>\r\n"
> ."MIME-Version: 1.0\r\n"
> ."Content-type: text/html; charset=iso-8859-1\r\n"
> ."Reply-To: [EMAIL PROTECTED]"
> ."X-Mailer: PHP/" . phpversion());
>
>
> The last "5" is missing. Im tring to send newletters to my customers
> thru HTML formated emils, and because 1008th character is missing the
> source gets pretty fuckt up.
>
> Anyone got any ideas what I should do??
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
No it was lengthened by 12 characters. And I checked and the email did
contain 1008 characters. So it didn't miss any in my test.
-----Original Message-----
From: Svensson, B.A.T. (HKG) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 07, 2003 8:49 AM
To: Disko_kex
Cc: Charles P. Killmer; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] Every 1008th character is missing???
Was the e-mail address shortened by 5 chars?
On Tue, 2003-10-07 at 13:46, Disko_kex wrote:
> I tried with 4.3.2 and 4.3.3 and its not working, but with php 5 is
> working, but then I cant get my mysql to work with php 5. What server
> are you using? And ideas why some characters is missing?
>
>
>
> -----Original Message-----
> From: Charles P. Killmer [mailto:[EMAIL PROTECTED]
> Sent: den 6 oktober 2003 15:56
> To: Disko_kex; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Every 1008th character is missing???
>
> I just tried it on my server with both PHP 4.3.2 and 4.3.3 and I got
> the last 5. The only thing I changed was the email address to send
> to.
>
> Charles
>
> -----Original Message-----
> From: Disko_kex [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 06, 2003 8:19 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Every 1008th character is missing???
>
>
> Why is every 1008th character missing when Im tring to send an email?
>
> mail("[EMAIL PROTECTED]", "test","
> 1234567890123456789012345678901234567890123456789012345678901234567890
> 12
>
345678901234567890123456789012345678901234567890123456789123456789012345
>
678901234567890123456789012345678901234567890123456789012345678901234567
>
890123456789012345678901234567890123456789123456789012345678901234567890
>
123456789012345678901234567890123456789012345678901234567890123456789012
>
345678901234567890123456789123456789012345678901234567890123456789012345
>
678901234567890123456789012345678901234567890123456789012345678901234567
>
890123456789123456789012345678901234567890123456789012345678901234567890
>
123456789012345678901234567890123456789012345678901234567890123456789123
>
456789012345678901234567890123456789012345678901234567890123456789012345
>
678901234567890123456789012345678901234567890123456789123456789012345678
>
901234567890123456789012345678901234567890123456789012345678901234567890
>
123456789012345678901234567890123456789123456789012345678901234567890123
>
456789012345678901234567890123456789012345678901234567890123456789012345
> ", "From: Redaktionen <[EMAIL PROTECTED]>\r\n"
> ."MIME-Version: 1.0\r\n"
> ."Content-type: text/html; charset=iso-8859-1\r\n"
> ."Reply-To: [EMAIL PROTECTED]"
> ."X-Mailer: PHP/" . phpversion());
>
>
> The last "5" is missing. Im tring to send newletters to my customers
> thru HTML formated emils, and because 1008th character is missing the
> source gets pretty fuckt up.
>
> Anyone got any ideas what I should do??
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I have setup a php page to use mysql and PHP's session handling. The logon
page displays just fine but when I try and log into the page IE give me the
page can not be displayed. I have the session.save_handler set to files and
the session save path set to C:\tmp. Any ideas what I am doing wrong?
--- End Message ---
--- Begin Message ---
Does your C:\tmp exist?
"Kevin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have setup a php page to use mysql and PHP's session handling. The logon
> page displays just fine but when I try and log into the page IE give me
the
> page can not be displayed. I have the session.save_handler set to files
and
> the session save path set to C:\tmp. Any ideas what I am doing wrong?
>
--- End Message ---