[PHP] running python in php timeout

2008-12-29 Thread brad
Hi, I'm executing a python script from php that runs quite a long time (15+ minutes) and ends up timing out. Is there a way I can execute the python code and move on executing the remaining php code on the page? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] running python in php timeout

2008-12-29 Thread Lars Torben Wilson
2008/12/29 brad bradcau...@gmail.com: Hi, I'm executing a python script from php that runs quite a long time (15+ minutes) and ends up timing out. Is there a way I can execute the python code and move on executing the remaining php code on the page? Thanks! Hi Brad, It's a little tough to

Re: [PHP] Timeout while waiting for a server-client transfer to start (large files)

2008-02-04 Thread szalinski
Well thanks again, but I already know what the problem is, it is the response headers being added to the ouput file. I just tried with a different code and it seems to output the file ok, so i must be going wrong somewhere in the order in which i output headers and so on. i'm gonna keep

Re: [PHP] Timeout while waiting for a server-client transfer to start (large files)

2008-02-04 Thread Richard Lynch
On Fri, February 1, 2008 7:45 pm, szalinski wrote: On Thu, 31 Jan 2008 07:13:55 -, Per Jessen [EMAIL PROTECTED] wrote: Well I got it to work, much thanks to Richard Lynch, but now everytime I download a file, it is corrupt. For example, when I download small .rar file, just to test, it

Re: [PHP] Timeout while waiting for a server-client transfer to start (large files)

2008-02-03 Thread szalinski
Thanks I have already another post dealing with this issue. (check newsgroup for Server to client file transfer always corrupt). I had figured out the problem that was corrupting the file, it is the response headers that are being added to the file when it is downloaded, and i don't know

Re: [PHP] Timeout while waiting for a server-client transfer to start (large files)

2008-02-01 Thread szalinski
On Thu, 31 Jan 2008 07:13:55 -, Per Jessen [EMAIL PROTECTED] wrote: Richard Lynch wrote: Your script is reading the whole file, 64 measly bytes at a time, into a monstrous string $tmp. Then, finally, when you've loaded the whole [bleep] file into RAM in $tmp, you just echo it out, right?

Re: [PHP] Timeout while waiting for a server-client transfer to start (large files)

2008-02-01 Thread Casey
On Feb 1, 2008, at 5:45 PM, szalinski [EMAIL PROTECTED] wrote: On Thu, 31 Jan 2008 07:13:55 -, Per Jessen [EMAIL PROTECTED] wrote: Richard Lynch wrote: Your script is reading the whole file, 64 measly bytes at a time, into a monstrous string $tmp. Then, finally, when you've loaded

Re: [PHP] Timeout while waiting for a server-client transfer to start (large files)

2008-01-30 Thread Richard Lynch
On Tue, January 29, 2008 12:45 pm, Barney Tramble wrote: I have a script that I am trying to figure out to allow a remote file to be sent to a client's browser. It works ok for small files, but it keeps timing out for large files. I don't think it should even take as long as it does (i.e.

Re: [PHP] Timeout while waiting for a server-client transfer to start (large files)

2008-01-30 Thread Per Jessen
Richard Lynch wrote: Your script is reading the whole file, 64 measly bytes at a time, into a monstrous string $tmp. Then, finally, when you've loaded the whole [bleep] file into RAM in $tmp, you just echo it out, right? Don't do that. :-) while (!feof($fp)){ echo fread($fp,

[PHP] Timeout while waiting for a server-client transfer to start (large files)

2008-01-29 Thread Barney Tramble
Hey I have a script that I am trying to figure out to allow a remote file to be sent to a client's browser. It works ok for small files, but it keeps timing out for large files. I don't think it should even take as long as it does (i.e. about 10seconds) before it pops up a dialog box for

Re: [PHP] Timeout while waiting for a server-client transfer to start (large files)

2008-01-29 Thread Chris
Barney Tramble wrote: Hey I have a script that I am trying to figure out to allow a remote file to be sent to a client's browser. It works ok for small files, but it keeps timing out for large files. I don't think it should even take as long as it does (i.e. about 10seconds) before it pops

Re: [PHP] Timeout for fopen ?

2007-10-14 Thread Gal
You can use the CURL module, which has support for timeout. http://www.php.net/manual/en/ref.curl.php debussy007 wrote: Hello, I want to use fopen to open an URL, but is it possible to add a timeout ? This to avoid that fopen slows down my script ? Because if site I access takes 10 secs to

[PHP] Timeout for fopen ?

2007-10-13 Thread debussy007
Hello, I want to use fopen to open an URL, but is it possible to add a timeout ? This to avoid that fopen slows down my script ? Because if site I access takes 10 secs to respond, I suppose my script will just wait fopen returns something. Thank you. -- View this message in context:

Re: [PHP] Timeout for fopen ?

2007-10-13 Thread heavyccasey
You could use Javascript/XMLHTTP to call a PHP script that opens the file. On 10/13/07, debussy007 [EMAIL PROTECTED] wrote: Hello, I want to use fopen to open an URL, but is it possible to add a timeout ? This to avoid that fopen slows down my script ? Because if site I access takes 10 secs

Re: [PHP] PHP timeout

2004-02-03 Thread Mario
] Sent: Friday, January 30, 2004 3:28 PM Subject: Re: [PHP] PHP timeout it looks like it has nothing to do with MySQL and just with php I'm running a simple script like $x=23; echo $x; and it displays the number 23 properly, but the page keeps loading like there is something else to load

[PHP] PHP timeout

2004-01-30 Thread Mario
Hi all I have a winXP machine on a network running IIS (PHP and MySQL is installed) I have recently moved from one machine to another and after setting up IIS and the rest and try to run few PHP scripts they just run forever or timeout. I believe the problem is with the security permission on

Re: [PHP] PHP timeout

2004-01-30 Thread Raditha Dissanayake
Mario, Please don't reply to a message when you want to ask a question compose a new thread instead. Anyway from what you have described it sounds like you have a firewall that's blocking the mysql port. Somefirewalls just drop the packets instead of denying the connection. That way the

Re: [PHP] PHP timeout

2004-01-30 Thread Mario
PROTECTED] Sent: Friday, January 30, 2004 12:14 PM Subject: Re: [PHP] PHP timeout Mario, Please don't reply to a message when you want to ask a question compose a new thread instead. Anyway from what you have described it sounds like you have a firewall that's blocking the mysql port

Re: [PHP] PHP timeout

2004-01-30 Thread Raditha Dissanayake
Well the situation you have described are the typical symptoms of a firewall eating up packets. (Simple scripts running fine and those that connect to networking timing out) How about installing both the php engine and mysql on the same machine for testing? Mario wrote: thanks for the reply

Re: [PHP] PHP timeout

2004-01-30 Thread Mario
/h3brDescription: . mysql_error()); ? - Original Message - From: Raditha Dissanayake [EMAIL PROTECTED] To: Mario [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, January 30, 2004 1:01 PM Subject: Re: [PHP] PHP timeout Well the situation you have described are the typical symptoms

Re: [PHP] PHP timeout

2004-01-30 Thread Raditha Dissanayake
Hi, Make sure the mysql service is started and make sure that there isn't anything else competing for the same port (3306) beyond that i am afraid i cannot help as i am not a windows expert. Mario wrote: both php and mysql is on the same machine. even running the following timesout: ?php if

Re: [PHP] PHP timeout

2004-01-30 Thread Mario
] To: Mario [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, January 30, 2004 1:33 PM Subject: Re: [PHP] PHP timeout Hi, Make sure the mysql service is started and make sure that there isn't anything else competing for the same port (3306) beyond that i am afraid i cannot help as i am

[PHP] timeout question

2003-10-06 Thread David Coleman
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

RE: [PHP] timeout question

2003-10-06 Thread Vail, Warren
http://www.php.net/manual/en/function.set-time-limit.php Warren Vail -Original Message- From: David Coleman [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: [PHP] timeout question I have a PHP page that for some reason is taking

Re: [PHP] timeout question

2003-10-06 Thread Curt Zirzow
* Thus wrote David Coleman ([EMAIL PROTECTED]): 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

[PHP] Timeout and fsockopen

2003-09-16 Thread uros . gruber
Hello! I'm trying to find if some host is up or not. For example $fp = @fsockopen ('www.damirjosar.com', 80, $errno, $errstr, 1); because this url is expired it takes about 10 seconds to get response from DNS, but with fsockopne it take 62 seconds. but i set timeout to 1. I also try

[PHP] PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
I am trying to communicate with an API of a vendors of ours. They provide a Perl example that works fast and well. I am trying to do the same thing with a PHP class. The response takes over a minute before the response comes back. I see from the response text that the API is running on Apache

Re: [PHP] PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Curt Zirzow
* Thus wrote Robert Fitzpatrick ([EMAIL PROTECTED]): I am trying to communicate with an API of a vendors of ours. They provide a Perl example that works fast and well. I am trying to do the same thing with a PHP class. The response takes over a minute before the response comes back. I see from

Re: [PHP] PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
if (!fputs($fp, $op, strlen($op))) { which HTTP version are you requesting? I know that if you send a HTTP/1.1 then a lot of servers send the data in chunks, thus your retrieval code needs to be different. If it is HTTP/1.1 try using HTTP/1.0 instead. Same difference with the 1.0, I was

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
Sorry, the correct request and response is below, the one I copied before was from the browser: Request: Request:brPOST /XMLCommunicationServlet HTTP/1.0 Content-Type: application/x-www-form-urlencoded User-Agent: PHP XMLRPC Host: api.newedgenetworks.com:80 Connection: keep-alive Content-Length:

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Peter Clarke
Robert Fitzpatrick wrote: Sorry, the correct request and response is below, the one I copied before was from the browser: Request: Request:brPOST /XMLCommunicationServlet HTTP/1.0 Content-Type: application/x-www-form-urlencoded User-Agent: PHP XMLRPC Host: api.newedgenetworks.com:80 Connection:

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Curt Zirzow
* Thus wrote Robert Fitzpatrick ([EMAIL PROTECTED]): Sorry, the correct request and response is below, the one I copied before was from the browser: I tested it here: http://zirzow.dyndns.org/php/fread/timeout.php Appears to work ok. Curt -- I used to think I was indecisive, but now I'm not

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
Try not having the connection kept alive. (just a thought) Same long reponse :( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Robert Fitzpatrick
I tested it here: http://zirzow.dyndns.org/php/fread/timeout.php Thanks, I took your source and pasted it in my debugger and ran it fine like on your server. I narrowed down the, evidently significant, difference. Your content is has crlf line endings, hence, the 'Missing query parameters:

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Curt Zirzow
* Thus wrote Robert Fitzpatrick ([EMAIL PROTECTED]): I tested it here: http://zirzow.dyndns.org/php/fread/timeout.php Thanks, I took your source and pasted it in my debugger and ran it fine like on your server. I narrowed down the, evidently significant, difference. Your content is

Re: [PHP] REVISED: PHP timeout doing fread from Apache Coyote

2003-07-24 Thread Curt Zirzow
Ok, I've got it working now, it looks like you have to make your script more complient to HTTP specs, it seems this server is very picky on how you read the data. which is very odd.. got it working at: http://zirzow.dyndns.org/php/fread/timeout.php funny though you should be able to do a

[PHP] Timeout during SMTP operation.

2003-01-02 Thread gilrain
Hi all, I've just finished a PHP/MySQL mailing list. Basically, I'm having problems with my sendmail function. It takes an array of e-mail addresses ($addresses) and loops through it, e-mailing each one using an SMTP class I found (the only identifying comment in it is SMTP Class By TOMO

Re: [PHP] Timeout during SMTP operation.

2003-01-02 Thread Chris Hewitt
gilrain wrote: Hi all, I've just finished a PHP/MySQL mailing list. Basically, I'm having problems with my sendmail function. It takes an array of e-mail addresses ($addresses) and loops through it, e-mailing each one using an SMTP class I found (the only identifying comment in it is SMTP Class

Re: [PHP] Timeout during SMTP operation.

2003-01-02 Thread gilrain
Okay, that does sound more efficient. I'd love to give this a try, but to be completely honest I haven't done much from the shell other than basic commands and managing MySQL. I do know that my host allows me to use crontab, though, and most other common *nix programs. Could you (or any of the

Re: [PHP] Timeout during SMTP operation.

2003-01-02 Thread Michael J. Pawlowsky
Am I happy I'm not your hosting provider! :-) They will probably flip if they see you send out 7000 e-mails. Anyways crontab -e from a shell allows you to create a cronjob. from a shell just man crontab Cheers, Mike *** REPLY SEPARATOR *** On 02/01/2003 at 4:39 PM

[PHP] timeout

2002-10-04 Thread lallous
Hello, if i set set_time_limit(0) will my script still timeout and see in the browser: Page timed out and cannot be displayed? is there is anything I can do to prevent a script that takes an hour to finish processing from being killed when timeout occurs? Thanks, Elias -- PHP General

Re: [PHP] timeout

2002-10-04 Thread Rasmus Lerdorf
If you set_tiome_limit(0) your script will not be timed out as long as it keeps sending something every now and then. If it just sits there without outputting anything, then Apache will kill it off eventually. On Fri, 4 Oct 2002, lallous wrote: Hello, if i set set_time_limit(0) will my

Re: [PHP] timeout

2002-10-04 Thread lallous
so do you suggest that I send space-characters and then do a flush() ? Thanks, Elias Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If you set_tiome_limit(0) your script will not be timed out as long as it keeps sending something every now and

Re: [PHP] timeout

2002-10-04 Thread Marek Kilimajer
Is this true? I haven't heard about this. I thought it's the browser that closes conection a thus terminates the script, but this can be avoided using ignore_user_abort(false); Rasmus Lerdorf wrote: If you set_tiome_limit(0) your script will not be timed out as long as it keeps sending

[PHP] PHP timeout

2002-06-15 Thread Kim Bauters
I'm running PHP script that check for the existance of certain pages on the web. The problem is that fopen to check for the existance of a page and this seems to consume time. It has to check for a nuber of pages, conforming to a certain pattern. This pattern is Ab# What I want to do is

Re: [PHP] PHP timeout

2002-06-15 Thread Nathan Taylor
a look at FoxServ, it is a very good server that auto configures itself on your machine with apache and the whole lot. www.foxserv.net - Original Message - From: Kim Bauters Sent: Saturday, June 15, 2002 5:55 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP timeout I'm running PHP

Re: [PHP] PHP timeout

2002-06-15 Thread Stuart Dallas
On Saturday, June 15, 2002 at 10:52:14 AM, Kim Bauters wrote: In the file php.ini, the 2 timeout settings are both changed from 30 to 300, but I keep on getting an error like CGI script Timeout. I think you'll find that's the IIS CGI timeout, not PHPs. You can find that setting in the site

Re: [PHP] PHP timeout

2002-06-15 Thread Kim Bauters
Hi, indeed, it is a IIS CGI timeout. However, when I take a look at the tab you gave me, I can only seem to find the tabs called App Mappings, App Options and App Debugging. Is this the right place and is the tab just missing or is there a problem on my behalf? thx Stuart Dallas [EMAIL

Re[2]: [PHP] PHP timeout

2002-06-15 Thread Stuart Dallas
On Saturday, June 15, 2002 at 11:43:05 AM, Kim Bauters wrote: indeed, it is a IIS CGI timeout. However, when I take a look at the tab you gave me, I can only seem to find the tabs called App Mappings, App Options and App Debugging. Is this the right place and is the tab just missing or is

Re: Re[2]: [PHP] PHP timeout

2002-06-15 Thread Kim Bauters
hi, My IIS version is 5.0 Stuart Dallas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Saturday, June 15, 2002 at 11:43:05 AM, Kim Bauters wrote: indeed, it is a IIS CGI timeout. However, when I take a look at the tab you gave me, I can only seem to find

Re[4]: [PHP] PHP timeout

2002-06-15 Thread Stuart Dallas
On Saturday, June 15, 2002 at 11:58:44 AM, Kim Bauters wrote: My IIS version is 5.0 Hmm, same as mine. Have a look in the master properties of the server. If it's not there then I suggest you search the MS site for help. -- Stuart -- PHP General Mailing List (http://www.php.net/) To

[PHP] Timeout features of PHP

2001-07-20 Thread BlackLord
Hi, instead of max_execution_time, what are the other features of PHP to time out running PHP script ? For example, does keep-alive feature related with running of PHP script? I want to disable all timeout features so that my script will run hours and hours... Thanks... -- PHP General