php-general Digest 16 Sep 2012 20:33:49 -0000 Issue 7965
Topics (messages 319092 through 319094):
Re: PHP Threading on Windows
319092 by: Joe Watkins
319093 by: Adam Richardson
bucle while for to msqyl
319094 by: El Ale...
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
On 14/09/2012 04:42, tamouse mailing lists wrote:
On Thu, Sep 13, 2012 at 9:32 PM, admin <ad...@buskirkgraphics.com> wrote:
It has been suggested:
That because php does not support PCNTL threading on Windows that
multiple services of php are an alternative.
I am interested in this theory, if anyone is currently working on a project
that (forks) processes off to another instance or service of PHP on windows
please let me know.
In some of my latest development I have some rather large processes that
consume the single instance of PHP, threading these off would be ideal.
Example:
$tmpsrv=win32_query =win32_create_service(array(
'params' => __FILE__." install",
'service' => 'Name_of_the_service',
'display' => 'Name of service to be displayed in the service list'
));
Any windows php developers have ideas, comments on this suggestion?
I'm interested in the answer to this as well.
https://github.com/krakjoe/pthreads
Windows Download on downloads page, it's a couple of days behind. Keep
watching ... enough to get you started ...
Sorry if this gets sent twice, the news server or my internet connection
dropped out ...
Enjoy
--- End Message ---
--- Begin Message ---
On Fri, Sep 14, 2012 at 9:40 PM, Joe Watkins <joe.watk...@live.co.uk> wrote:
> https://github.com/krakjoe/pthreads
>
> Windows Download on downloads page, it's a couple of days behind. Keep
> watching ... enough to get you started ...
That's pretty slick, Joe. Nice work!
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com
--- End Message ---
--- Begin Message ---
hi! im new in this forum, i not speak very good english, apologise im
spanish.
I have a problem, need one infinit bucle to mysql only "true" if "false"
break this, for example:
prueba.php:
<?
include("conexion.php");
do {
echo "$numero";
sleep(1);
if ($numero == 1)
reset;
continue;
break;
} while (true);
?>
############################################################3
connect to mysql
conexion.php:
<?
$conexion = mysql_connect("localhost", "alexis", "123456");
mysql_select_db("probando", $conexion);
$queEmp = "SELECT n FROM numero WHERE n LIKE 1";
$resEmp = mysql_query($queEmp, $conexion) or die(mysql_error());
$totEmp = mysql_num_rows($resEmp);
if ($totEmp> 0) {
while ($rowEmp = mysql_fetch_assoc($resEmp)) {
$numero = $rowEmp['n'];
}
echo "$numero";
}
mysql_close($conexion);
?>
What I do is to run the loop as long as the value "$ number" is equal to
"1" in mysql I have a single field called "n" with the value "1" and runs,
now the problem is the next, I run the loop with the value "1" in mysql and
it runs fine but when I go to mysql and change the value to "2" (which
would be an incorrect and should leave) the loop ignores him and continues
running, I was reading a lot about the loops but I can not make it work in
this way could you please give me a hand with this? or if I'm wrong What
else I can do an infinite command if it fulfills a function and if they do
not?.
Best regards
--- End Message ---