How to make PHP application working multi-threaded? [duplicate] - php

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Multithreading/Parallel Processing in PHP
I need to make application which work 10 simultaneously like multi-threading .

If you application is running on the CLI, you can use pcntrl_fork:
http://www.php.net/manual/en/function.pcntl-fork.php

Related

Get information about php [duplicate]

This question already has answers here:
Where does phpinfo() get its info?
(5 answers)
Closed 2 years ago.
I just started with programing in PHP
And i have a problem:
I'm just experimenting and discovering the language. I tried compressing a string and display the output. I get an some zlib error. I am just wondering if there is a function that returns information about extensions?
You should use
phpinfo();
to display the PHP configuration.

Can we make EXE equivalent for PHP code so that the code can be protected? [duplicate]

This question already has answers here:
Best solution to protect PHP code without encryption
(11 answers)
Can you "compile" PHP code and upload a binary-ish file, which will just be run by the byte code interpreter?
(14 answers)
Closed 9 years ago.
Not sure if this has been discussed before.
I was looking for a solution that can protect the PHP code.
So even if I put the code on my client's server if they decide to put another developer on it or try to resell my code they should not be able to do so.
Is that even remotely possible?
The .exe versions of desktop application thingy is something I am looking for, but for PHP.
There are options to "compile" code like phpcompiler also read another thread about this on stackoverflow

How can I test what is slowing down my php code? [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
php-cgi running very slowly on windows
I'm running wordpress on a windows server, and for some reason the php code is executing very slowly. How would I be able to trace exactly the part of the code that is slowing the server down?
Try to start with xdebug php extension. It could give you a lot of information.

converting using ffmpeg in background [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Asynchronous shell exec in PHP
i'm witing a php script which convert video into FLV.when the converting is in progress the user has to wait for completion of converting but What I want to do is when the converting is in process the script continue the next lines after shell_exec .How should I do that?
Thanks
As Jared said, try looking at Asynchronous shell exec in PHP

HTTP server written on php [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicates:
PHP web server in PHP?
http server in php
I want to use HTTP server written on PHP instead of Apache. Who knows solutions? Best is one php file.
It was done once for some kind of a proof of concept we did, as PHP is faster to develop in than, say CPP. but in no way it is a solution for a production environment.
Others have done so too http://nanoweb.si.kz/ is one for example.

Categories