Il 14/09/2011 19:34, Alex Nikitin ha scritto:
Perhaps if I, or we can understand your application a little better,
we could suggest better solutions, just remember that you are not the
first person to have to solve these similar issues. I can help you if
you want, glimpse over your database
Il 13/09/2011 20:58, Alex Nikitin ha scritto:
Correction on Marco's post. You can absolutely stop a mysql query
I know I can stop a query, but I don't know how to realize HTTP client
has closed connection during query execution.
My query count how many records match selected fields in a 50M
On 9/14/2011 1:04 AM, Marco Lanzotti wrote:
Il 13/09/2011 20:58, Alex Nikitin ha scritto:
Correction on Marco's post. You can absolutely stop a mysql query
I know I can stop a query, but I don't know how to realize HTTP client
has closed connection during query execution.
My query count
Il 14/09/2011 17:35, Jim Lucas ha scritto:
SELECT ... FROM ... WHERE ... AND (1=1 OR 'unique value');
add 'unique value' to your session data and then, when the person changes the
selected fields and starts to execute another query, first, you could search
to
see if an SQL statement is
On Wed, Sep 14, 2011 at 4:04 AM, Marco Lanzotti ma...@lanzotti.com wrote:
Il 13/09/2011 20:58, Alex Nikitin ha scritto:
Correction on Marco's post. You can absolutely stop a mysql query
I know I can stop a query, but I don't know how to realize HTTP client
has closed connection during query
Il 12/09/2011 21:32, Al ha scritto:
See http://us2.php.net/manual/en/function.connection-aborted.php
As I wrote, PHP doesn't detect that client aborted connection until it
send some data.
During query the script doesn't send any data to client, so it doesn't
detect client aborted connenction.
I
On 13 September 2011 13:05, Marco Lanzotti ma...@lanzotti.com wrote:
Il 12/09/2011 21:32, Al ha scritto:
See http://us2.php.net/manual/en/function.connection-aborted.php
As I wrote, PHP doesn't detect that client aborted connection until it
send some data.
During query the script doesn't
Il 13/09/2011 09:39, vikash.i...@gmail.com ha scritto:
You can use ob_start() to start output buffering and ob_end_flush() to send
some data in the middle of script - that way your php script will send
some data to the client earlier than finishing execution and hence detect
the aborted
On Tue, Sep 13, 2011 at 4:01 AM, Marco Lanzotti ma...@lanzotti.com wrote:
Il 13/09/2011 09:39, vikash.i...@gmail.com ha scritto:
You can use ob_start() to start output buffering and ob_end_flush() to send
some data in the middle of script - that way your php script will send
some data to
You can use ajax.
Date: Tue, 13 Sep 2011 09:22:54 -0400
From: eric.but...@gmail.com
To: ma...@lanzotti.com
CC: php-general@lists.php.net
Subject: Re: [PHP] Re: Stop PHP execution on client connection closed
On Tue, Sep 13, 2011 at 4:01 AM, Marco Lanzotti ma...@lanzotti.com wrote:
Il
On 13/09/2011 09:01, Marco Lanzotti wrote:
Il 13/09/2011 09:39, vikash.i...@gmail.com ha scritto:
You can use ob_start() to start output buffering and ob_end_flush() to send
some data in the middle of script - that way your php script will send
some data to the client earlier than finishing
Il 13/09/2011 15:22, Eric Butera ha scritto:
Flush all buffers you have. Sometimes you have to do nasty hacks like
send a certain number of characters.
I'm looking for a way to send some characters during query execution.
You might have better luck if you search for 'comet' or 'long polling.'
On 9/12/2011 7:40 AM, Marco Lanzotti wrote:
Hi all, I'm new in the list and I already have a question for you.
I'm running an heavy query on my DB in a PHP script called by AJAX.
Because client often abort AJAX connection to ask a new query, I need to
stop query because DB will be too loaded.
On Tue, Sep 13, 2011 at 11:44 AM, Jim Lucas li...@cmsws.com wrote:
On 9/12/2011 7:40 AM, Marco Lanzotti wrote:
Hi all, I'm new in the list and I already have a question for you.
I'm running an heavy query on my DB in a PHP script called by AJAX.
Because client often abort AJAX connection
On 9/13/2011 11:58 AM, Alex Nikitin wrote:
On Tue, Sep 13, 2011 at 11:44 AM, Jim Lucas li...@cmsws.com wrote:
On 9/12/2011 7:40 AM, Marco Lanzotti wrote:
Hi all, I'm new in the list and I already have a question for you.
I'm running an heavy query on my DB in a PHP script called by AJAX.
Absolutely, it was only a minor correction of a sub-point.
--
The trouble with programmers is that you can never tell what a programmer is
doing until it’s too late. ~Seymour Cray
On Tue, Sep 13, 2011 at 3:20 PM, Jim Lucas li...@cmsws.com wrote:
On 9/13/2011 11:58 AM, Alex Nikitin wrote:
Hi all, I'm new in the list and I already have a question for you.
I'm running an heavy query on my DB in a PHP script called by AJAX.
Because client often abort AJAX connection to ask a new query, I need to
stop query because DB will be too loaded.
When AJAX connection is aborted, PHP script
See http://us2.php.net/manual/en/function.connection-aborted.php
On 9/12/2011 10:40 AM, Marco Lanzotti wrote:
Hi all, I'm new in the list and I already have a question for you.
I'm running an heavy query on my DB in a PHP script called by AJAX.
Because client often abort AJAX connection to ask
Jochem Maas wrote:
Op 3/10/10 1:29 PM, Auke van Slooten schreef:
Hi,
In a hobby project I'm relying on the order in which the following piece
of PHP code is executed:
$client-system-multiCall(
$client-methodOne(),
$client-methodTwo()
);
but who cares. the code is full of magic, which
Hi,
In a hobby project I'm relying on the order in which the following piece
of PHP code is executed:
$client-system-multiCall(
$client-methodOne(),
$client-methodTwo()
);
Currently PHP always resolves $client-system (and executes the __get on
$client) before resolving the arguments to
2010/3/10 Auke van Slooten a...@muze.nl
Hi,
In a hobby project I'm relying on the order in which the following piece of
PHP code is executed:
$client-system-multiCall(
$client-methodOne(),
$client-methodTwo()
);
Currently PHP always resolves $client-system (and executes the __get on
From: Auke van Slooten
In a hobby project I'm relying on the order in which the following
piece
of PHP code is executed:
$client-system-multiCall(
$client-methodOne(),
$client-methodTwo()
);
Currently PHP always resolves $client-system (and executes the __get
on
$client)
Bruno Fajardo wrote:
2010/3/10 Auke van Slooten a...@muze.nl
Hi,
In a hobby project I'm relying on the order in which the following piece of PHP
code is executed:
$client-system-multiCall(
$client-methodOne(),
$client-methodTwo()
);
Can't you call the methods $client-methodOne() and
2010.03.10. 14:41 keltezéssel, Bob McConnell írta:
From: Auke van Slooten
In a hobby project I'm relying on the order in which the following
piece
of PHP code is executed:
$client-system-multiCall(
$client-methodOne(),
$client-methodTwo()
);
Currently PHP always
On Wed, 2010-03-10 at 15:20 +0100, Sándor Tamás wrote:
2010.03.10. 14:41 keltezéssel, Bob McConnell írta:
From: Auke van Slooten
In a hobby project I'm relying on the order in which the following
piece
of PHP code is executed:
$client-system-multiCall(
Bob McConnell wrote:
From: Auke van Slooten
In a hobby project I'm relying on the order in which the following
piece
of PHP code is executed:
$client-system-multiCall(
$client-methodOne(),
$client-methodTwo()
);
Think about it from the parser's point of view. It has to evaluate
From: Sándor Tamás
2010.03.10. 14:41 keltezéssel, Bob McConnell írta:
From: Auke van Slooten
In a hobby project I'm relying on the order in which the following
piece
of PHP code is executed:
$client-system-multiCall(
$client-methodOne(),
$client-methodTwo()
);
Auke van Slooten wrote:
Bob McConnell wrote:
From: Auke van Slooten
In a hobby project I'm relying on the order in which the following
piece
of PHP code is executed:
$client-system-multiCall(
$client-methodOne(),
$client-methodTwo()
);
Think about it from the parser's point of
2010/3/10 Auke van Slooten a...@muze.nl:
Bruno Fajardo wrote:
2010/3/10 Auke van Slooten a...@muze.nl
Hi,
In a hobby project I'm relying on the order in which the following piece
of PHP code is executed:
$client-system-multiCall(
$client-methodOne(),
$client-methodTwo()
);
Can't
On Wed, Mar 10, 2010 at 9:54 AM, Bruno Fajardo bsfaja...@gmail.com wrote:
[snip]
2010/3/10 Auke van Slooten a...@muze.nl:
This is not what I meant. I should perhaps mention that it's an xml-rpc
client and the method calls are remote method calls. The multiCall method
gathers multiple method
2010/3/10 Andrew Ballard aball...@gmail.com:
On Wed, Mar 10, 2010 at 9:54 AM, Bruno Fajardo bsfaja...@gmail.com wrote:
[snip]
2010/3/10 Auke van Slooten a...@muze.nl:
This is not what I meant. I should perhaps mention that it's an xml-rpc
client and the method calls are remote method calls.
Andrew Ballard wrote:
I'm not sure you would want to assign null to $client-system. After
all, __set() might not be defined.
I agree with Rob here. If order is really crucial, then call the
statements in the correct order:
?php
/**
* causes $client to call __get() in order to resolve
*
Op 3/10/10 1:29 PM, Auke van Slooten schreef:
Hi,
In a hobby project I'm relying on the order in which the following piece
of PHP code is executed:
$client-system-multiCall(
$client-methodOne(),
$client-methodTwo()
);
Currently PHP always resolves $client-system (and executes the
You may not care about this, but from a readability perspective, i
think relying on $client-system being as special as you describe, is
not very readable.
If i'd had to read code that does what you describe, i'd be much
happier to see a datastructure be passed as was suggested elsewhere in
this
On Sat, Jul 5, 2008 at 12:28 PM, Daniel Brown [EMAIL PROTECTED] wrote:
On Sat, Jul 5, 2008 at 6:01 AM, Waynn Lue [EMAIL PROTECTED] wrote:
I have a system where a user clicks on a button which causes rows to
be inserted in to the database. I'd also like to run some lengthier
Waynn Lue wrote:
and exec/shell (but that
doesn't seem to be asynchronous), but neither seems optimal.
It can be if you redirect the output streams and put an ampersand after it:
?php
exec('sleep 5 /dev/null 2/dev/null ');
echo 'Script ended';
?
This tiny sample should end
and exec/shell (but that
doesn't seem to be asynchronous), but neither seems optimal.
It can be if you redirect the output streams and put an ampersand after it:
?php
exec('sleep 5 /dev/null 2/dev/null ');
echo 'Script ended';
?
This tiny sample should end immediately, and
I have a system where a user clicks on a button which causes rows to
be inserted in to the database. I'd also like to run some lengthier
post-processing on those rows, but don't want to put it in the
critical path of the rows being inserted and returning to the user.
What's the best way to either
and exec/shell (but that
doesn't seem to be asynchronous), but neither seems optimal.
It can be if you redirect the output streams and put an ampersand after it:
?php
exec('sleep 5 /dev/null 2/dev/null ');
echo 'Script ended';
?
This tiny sample should end immediately, and the
Richard Heyes wrote:
and exec/shell (but that
doesn't seem to be asynchronous), but neither seems optimal.
It can be if you redirect the output streams and put an ampersand after it:
?php
exec('sleep 5 /dev/null 2/dev/null ');
echo 'Script ended';
?
This tiny sample should end
Also:
exec('sleep 5 /dev/null ');
Maybe?
Two ampersands you mean? Why - what does it do? You're also not
redirecting STDERR.
--
Richard Heyes
Employ me:
http://www.phpguru.org/cv
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Heyes wrote:
Also:
exec('sleep 5 /dev/null ');
Maybe?
Two ampersands you mean? Why - what does it do? You're also not
redirecting STDERR.
My bad. I was trying to shorten your command. redirects stdout and
stderr, unfortunately in c shell though.
-Shawn
--
PHP General
Richard Heyes wrote:
Also:
exec('sleep 5 /dev/null ');
Maybe?
Two ampersands you mean? Why - what does it do? You're also not
redirecting STDERR.
I can't always remember because I think some things that are in c shell
but aren't available in bourne have been incorpoated into bash. So
On Sat, Jul 5, 2008 at 6:01 AM, Waynn Lue [EMAIL PROTECTED] wrote:
I have a system where a user clicks on a button which causes rows to
be inserted in to the database. I'd also like to run some lengthier
post-processing on those rows, but don't want to put it in the
critical path of the rows
this message in context:
http://www.nabble.com/Problem-with-php-execution-and-variables-tp17816172p17816172.html
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
SenTnel wrote:
Hello!
Im new to programing and this is the situation I have with a first level
basic php tutorial: One of the samples uses a simple order form that submits
to this page and is supposed to return the values entered on that form. This
is the code not working:
?
echo pYour
://www.nabble.com/Problem-with-php-execution-and-variables-tp17816172p17824587.html
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
SenTnel wrote:
Thank you Shawn!
Just to make sure, the long way IS the correct way?
Thanks again!
Shawn McKenzie wrote:
SenTnel wrote:
Hello!
Im new to programing and this is the situation I have with a first level
basic php tutorial: One of the samples uses a simple order form that
://www.php.net/unsub.php
:handshake::handshake::handshake::handshake::rules:
--
View this message in context:
http://www.nabble.com/Problem-with-php-execution-and-variables-tp17816172p17825702.html
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General Mailing List
Hello everyone.
This may seem as a silly question, but I went through the
documentation and it wasn't explicit on this issue, at least for me.
Let's say that I'm on an 128kb/s upload. I need to upload an 100mb
file through a POST. PHP has, by default, 90 seconds execution limit
time.
So, the
Hi all
We develop our software with built-in debug handlers that are very talkative.
Each class registers itself to a central debug handler. When a conditional
define NODEBUG is set, that debughandler just does a return null but
obviously it takes time to perform that call.
We are thinking
Andy Pieters wrote:
Hi all
We develop our software with built-in debug handlers that are very talkative.
Each class registers itself to a central debug handler. When a conditional
define NODEBUG is set, that debughandler just does a return null but
obviously it takes time to perform that
Best groupmember,
How do I find the execution time for a php-script on a webserver? ms?
--
- Best Of Times
/Peter Lauri
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PROTECTED]
Sent: Wednesday, December 01, 2004 7:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Execution time?
Best groupmember,
How do I find the execution time for a php-script on a webserver? ms?
--
- Best Of Times
/Peter Lauri
--
PHP General Mailing List (http://www.php.net
Hi all,
We are debugging some web applications to try to determine where the
problems with long execution time is.
Is it possible to log the execution time of each script executed to a
logfile? The PHP processes are run as FastCGI under Zeus.
Regards
--
Lasse Laursen VP, Hosting Technology
I use this:
function getmicrotime()
{
list($usec, $sec) = explode( ,microtime());
return ((float)$usec + (float)$sec*1000);
}
// Start script
$time=getmicrotime();
...
...
...
// Script finished
echo Page was generated in
.sprintf(%01.7f,((getmicrotime()-$time)/1000)). seconds.;
You
I use this function:
function echo_pt($add='') {
static $pt = 0;
if($pt==0) {
$pt = miro_time();
return;
}
$time_start = explode(' ', $pt);
$time_end = explode(' ', microtime());
$parse_time = number_format(($time_end[1] + $time_end[0] -
($time_start[1] +
On Jul 14, 2003, Marek Kilimajer claimed that:
|I use this function:
|function echo_pt($add='') {
| static $pt = 0;
| if($pt==0) {
| $pt = miro_time();
| return;
| }
| $time_start = explode(' ', $pt);
| $time_end = explode(' ', microtime());
| $parse_time =
I've got a CallerID program that I've found on Freshmeat.net (elcid, for
those keeping track)...
I've edited the reporting functions so that instead of throwing it up on
the console like it normally does, it instead calls lynx with the -dump
parameter to the PHP page, and that in turn puts the
Holmes...
-Original Message-
From: Jason Young [mailto:jason1;erols.com]
Sent: Friday, November 08, 2002 1:36 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Lynx/Apache PHP execution vs. PHP interpreter
I've got a CallerID program that I've found on Freshmeat.net (elcid,
for
those keeping
On Fri, 8 Nov 2002, Jason Young wrote:
I've edited the reporting functions so that instead of throwing it up on
the console like it normally does, it instead calls lynx with the -dump
parameter to the PHP page, and that in turn puts the variables into a
DB... (Basically I can access my full
Edit your php.ini, change max_execution_time to something greater than
30.
Mark
-Original Message-
From: Pong-TC [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 04, 2002 2:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Execution Time
Hello All
I have a problem
I have seen it on many sites now and since I have been using PHP for so long and done
a huge amount of coding with it I thought it would add a nice touch and it could be
used for statistical purposes to assist me in database effeciency and so forth.
The idea is a page execution timer.. or a
Easy,
Put a code to the beginning of the page that takes the unix time stamp,
and another one to the end. The difference is the execution time at the
server side...
-=[ Julien Bonastre ]=- wrote:
I have seen it on many sites now and since I have been using PHP for so long and done
a huge
on 20/09/02 12:03 AM, WEB MASTER ([EMAIL PROTECTED]) wrote:
Easy,
Put a code to the beginning of the page that takes the unix time stamp,
and another one to the end. The difference is the execution time at the
server side...
microtime workds better, because most pages execute in under a
on 19/09/02 11:37 PM, -=[ Julien Bonastre ]=- ([EMAIL PROTECTED])
wrote:
I just want to know what function or module covers this feature.. If it is at
all possible..
Top of your script:
?
$timerOn = 1; // set to 0 if you want to turn it off
$timestart = getmicrotime();
?
Bottom:
?
Here is a function I sometimes use to log that will show you the time
that has passed since the last log entry. I find it very useful, so that
you can test a section of code's execution time simply by surrounding it
with calls to this function.
Maybe it will be useful to you.
Chris
function
This function:
function getmicrotime()
{
list($usec, $sec) = explode( ,microtime());
return ((float)$usec + (float)$sec);
}
is provided on this page:
http://www.php.net/manual/en/function.microtime.php
and is needed for the code below to work properly.
Beau
?
$timerOn = 1; //
Hello php-general,
I finally finish my work on one of the projects. I got a question
how PHP executes a script.
Let's say i got a little script but it takes him a long time to work
(don't blame me please) If a user stops loading page of will close
the window. Will Script continue
Hello php-general,
I finally finish my work on one of the projects. I got a question
how PHP executes a script.
Let's say i got a little script but it takes him a long time to work
(don't blame me please) If a user stops loading page of will close
the window. Will Script continue
Hello php-general,
Hello php-general,
Dear php list,
I've got completely lost in program execution under php.
I need to run a command grab it's output for the next processing,
So I wrote a script:
?
$output = shell_exec(uudeview -i /bla/bla.txt -p /bla/bla/);
echo pre;
echo $output;
echo
Somebody knows as doing an execution of a program in real time, in the
moment
what this being executed in the system?
[]s
Breno Cardoso Perucchi
[EMAIL PROTECTED]
Consultor - Omega Tecnologia
http://www.omegatec.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Somebody knows as doing an execution of a program in real time, in the
moment what this being executed in the system?
[]s
Breno Cardoso Perucchi
[EMAIL PROTECTED]
Consultor - Omega Tecnologia
http://www.omegatec.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
I have a slight problem and was wondering if anyone could help.
I have a php script that runs every 30 minutes. It takes the contents of a
directory (which is constantly being updated) and dumps them into a mysql
database. Recently this directory has become increasingly large and the php
script
:03 PM
Subject: [PHP] execution time
I have a slight problem and was wondering if anyone could help.
I have a php script that runs every 30 minutes. It takes the contents of a
directory (which is constantly being updated) and dumps them into a mysql
database. Recently this directory has
execution a call such as set_time_limit(20) is made, the script will
run for a total of 45 seconds before timing out.
Wagner Tomy
Editus S.A.
- Original Message -
From: Pétur Björn Thorsteinsson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, July 27, 2001 2:03 PM
Subject: [PHP
Hello all,
I'm discovering the joys of PHP as supplied by RH on their 7.1 release.
Actually, everything about it is SO much nicer than ASP or pure Perl. (Not
to take anything away from either--PHP's just a LOT easier to get hold of!)
I'm running PHP as an Apache module (default RedHat
check http://www.php.net/manual/en/features.safe-mode.php I suspect that
the problem is that the files you are trying to run are not owned by the
same user as the webserver user... that page should give you details on
this.
Good luck,
Ben
On Tue, 24 Jul 2001 [EMAIL PROTECTED] wrote:
Hello
I'm discovering the joys of PHP as supplied by RH on their 7.1 release.
Actually, everything about it is SO much nicer than ASP or pure Perl. (Not
to take anything away from either--PHP's just a LOT easier to get hold of!)
I'm running PHP as an Apache module (default RedHat installation)
Is there any way to get a php script to automatically run, say every
night at 2am?
Thanks,
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL
Read about CRON, here's a couple nice descriptions :
http://www.faqts.com/knowledge_base/view.phtml/aid/1005/fid/436
http://schvin.net/writings/crontab.html
faqts.com has a few php specific cron replies too which basically say "use
wget or lynx to dump it" but it'll all make sense
81 matches
Mail list logo