470,866 Members | 1,808 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,866 developers. It's quick & easy.

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.
Jun 27 '08 #1
3 2117
On Jun 16, 1:04 pm, Alexey Kulentsov <a...@inbox.ruwrote:
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:

http://catb.org/~esr/faqs/smart-questions.html

C.
Jun 27 '08 #2
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.
Jun 27 '08 #3
On Jun 16, 6:12 pm, Alexey Kulentsov <a...@inbox.ruwrote:
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
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Google Mike | last post: by
11 posts views Thread by Michael Schuler | last post: by
5 posts views Thread by Jim | last post: by
4 posts views Thread by Zeya | last post: by
6 posts views Thread by Jeff | last post: by
3 posts views Thread by wolverine | last post: by
2 posts views Thread by fahad.usman | last post: by
2 posts views Thread by S S | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.