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
On Wed, Sep 14, 2011 at 4: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.
>
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
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
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 rec
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 wrote:
> On 9/13/2011 11:58 AM, Alex Nikitin wrote:
> > On Tue, Sep 1
On 9/13/2011 11:58 AM, Alex Nikitin wrote:
> On Tue, Sep 13, 2011 at 11:44 AM, Jim Lucas 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.
>>> Becau
On Tue, Sep 13, 2011 at 11:44 AM, Jim Lucas 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 to ask a n
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 loade
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 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 f
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
On Tue, Sep 13, 2011 at 4:01 AM, 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 e
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 13 September 2011 13:05, Marco Lanzotti 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 send any data
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
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 a
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 doesn
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, whic
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 t
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 (a
On Wed, Mar 10, 2010 at 14:41, 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()
>> );
>>
>> Currently PH
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:
system;
/**
* You should add some handling here to make sure that
*
2010/3/10 Andrew Ballard :
> On Wed, Mar 10, 2010 at 9:54 AM, Bruno Fajardo wrote:
> [snip]
>> 2010/3/10 Auke van Slooten :
>>> 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
On Wed, Mar 10, 2010 at 9:54 AM, Bruno Fajardo wrote:
[snip]
> 2010/3/10 Auke van Slooten :
>> 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 calls into a single request
2010/3/10 Auke van Slooten :
> Bruno Fajardo wrote:
>>
>> 2010/3/10 Auke van Slooten
>>>
>>> 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()
>>
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 v
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(),
>>>
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
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
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
Bruno Fajardo wrote:
2010/3/10 Auke van Slooten
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
$client->met
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
>
2010/3/10 Auke van Slooten
>
> 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 __ge
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
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:
/dev/null 2>/dev/null &');
echo 'Script ended';
?>
This tiny sample should end immediately, and the sleep comm
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
> > post
>
> > 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:
>
> exec('sleep 5 > /dev/null 2>/dev/null &');
>echo 'Script ended';
> ?>
>
> This tiny sample should end immed
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
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.
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
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:
> 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:
/dev/null 2>/dev/null &');
echo 'Script ended';
?>
This tiny sample should end immediately, and the s
> 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:
/dev/null 2>/dev/null &');
echo 'Script ended';
?>
This tiny sample should end immediately, and the sleep command should
ru
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
ngs in php configuration to be able to use php in the short
>>>> format?
>>>>
>>>> Thanks !
>>> To use your 'short way' you need register_globals=on which is a security
>>> risk/bad practice. You can use a 'shorter than the
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
sub
n't work on my server? Do I have to
>> set
>> some settings in php configuration to be able to use php in the short
>> format?
>>
>> Thanks !
>
> To use your 'short way' you need register_globals=on which is a security
> risk/bad practice. You ca
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:
Your order"; // Star
hop";
?>
I want to use the short way, why doesn't work on my server? Do I have to set
some settings in php configuration to be able to use php in the short
format?
Thanks !
--
View 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
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 qu
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 cal
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 of
[EMAIL 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
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
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 = number_format(($
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] + $time_start[0]
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.";
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 ·
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 ful
---John 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
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
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
>
>
&g
Hello All
I have a problem with the execution time. I use PHP to update database,
but it could not perform well due to the limited execution time. How
could I extend the execution time? Here is my error:
Fatal error: Maximum execution time of 30 seconds exceeded in
d:\inetpub\wwwroot\cgi-bin\
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; // s
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
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:
Bottom:
Similar things could be done with MySQL quereies, but I haven't looked into
it.
Justin Fr
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 am
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 d
>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 workin
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:
";
echo $output;
echo "";
?>
And I get nothing :(. Script like below:
";
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: [E
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 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 only updates a portion of it before it stops execution.
>
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
Sent: Friday 27 July 2001 ?. 3: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
d
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
> 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
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 al
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 installat
;Jeff" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 15, 2001 10:43 AM
Subject: [PHP] automatic php execution
> Is there any way to get a php script to automatically run, say every
> night at 2am?
>
> Thanks,
> Jeff
>
>
> --
> PH
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 soon.
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 PROT
85 matches
Mail list logo