Google
 
Webnews.only-4-geeks.com
Interesting places
news.only-4-geeks.com Forum Index » PHP

Shared memory solution for PHP working from command line too

 
Jump to:  
 
Alexey Kulentsov
PostPosted: 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
PostPosted: 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
PostPosted: 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
PostPosted: 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
 

Page 1 of 1 .:.

Google
 
Webnews.only-4-geeks.com

Windows Update | C++ | C | PHP | JavaScript | Photoshop | Programming | Windows 2000 | Python | Windows XP | Object | Flash | Flash - ActionScript | Paint Shop Pro | Excel | PowerPoint | Access | Word | Windows 98 | Internet Explorer 6.0 | CorelDraw12 | Java | XML | asm x86 | Linux Mandrake | Linux RedHat | Outlook |  | news from newsgroups |_ | s

Web Templates

Awesome Website Templates ©

homeopatia vichy Makumba - Big Cyc projekty domów nowe projekty domów nacjonalizmy w tatrach