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:
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
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
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
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
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?
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
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.
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,
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
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
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
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:
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
]
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
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
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
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
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
/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
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
]
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
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 Im 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 Im choking the poor thing, but I cant
afford a new
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
* 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 Im 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
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
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
* 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
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
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:
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:
* 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
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
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:
* 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
52 matches
Mail list logo