|  | Shared memory solution for PHP working from command line too |  | |
| | | Alexey Kulentsov |  |
| Posted: Mon Jun 16, 2008 10:04 am Post subject: Shared memory solution for PHP working from command line too |  |
Hi All!
Is here any solution? APC and shm_ functions doesn't work from command line but I need it. |
| |
| | | C. (http://symcbean.blogs |  |
| Posted: Mon Jun 16, 2008 1:27 pm Post subject: Re: Shared memory solution for PHP working from command line |  |
On Jun 16, 1:04 pm, Alexey Kulentsov <a...@inbox.ru> wrote:
| Quote: | Hi All!
Is here any solution? APC and shm_ functions doesn't work from command line but I need it.
|
I'm not surprised APC (I'm assuming you are refering to the Alternative PHP Cache) doesn't work from the command line - the process only runs once for each script.
As for shm_ functions they should. Most likely you've not set the permissions right. But you haven't quoted any error message or indication of why you think they are not working - read this:
LINK
C. |
| |
| | | Alexey Kulentsov |  |
| Posted: Mon Jun 16, 2008 2:12 pm Post subject: Re: Shared memory solution for PHP working from command line |  |
C. (http://symcbean.blogspot.com/) write:
| Quote: | As for shm_ functions they should. Most likely you've not set the permissions right. But you haven't quoted any error message or indication of why you think they are not working - read this: Sorry it's my mistake. First of all I mean shmop_ function. It's pity |
shm_ functions unix-only so I can't use it (I need solution for both unix and windows and both module and command line mode). Why I think they doesn't work: "Under Windows, Shmop will only work when PHP is running as a web server module, such as Apache or IIS (CLI and CGI will not work)". It's from old PHP manual. So it was manual problem. Now I test it and it's works. Now I search for good variable storing library based on shmop. |
| |
| | | Csaba Gabor |  |
| Posted: Mon Jun 16, 2008 10:50 pm Post subject: Re: Shared memory solution for PHP working from command line |  |
On Jun 16, 6:12 pm, Alexey Kulentsov <a...@inbox.ru> wrote:
| Quote: | C. (http://symcbean.blogspot.com/) write:
As for shm_ functions they should. Most likely you've not set the permissions right. But you haven't quoted any error message or indication of why you think they are not working - read this:
Sorry it's my mistake. First of all I mean shmop_ function. It's pity shm_ functions unix-only so I can't use it (I need solution for both unix and windows and both module and command line mode). Why I think they doesn't work: "Under Windows, Shmop will only work when PHP is running as a web server module, such as Apache or IIS (CLI and CGI will not work)". It's from old PHP manual. So it was manual problem. Now I test it and it's works. Now I search for good variable storing library based on shmop.
|
shmop_ functions work with PHP CLI for me (PHP 5.2 on Win XP Pro).
Csaba Gabor from Vienna |
| |
|
|