473,563 Members | 2,884 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2302
On Jun 16, 1:04 pm, Alexey Kulentsov <a...@inbox.ruw rote:
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.ruw rote:
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3881
by: Google Mike | last post by:
I'm using PHP 4.2.2 on RH9 Linux (with Progeny.com updates, in case you're wondering). I was using shared memory (shm* API) a great deal in my web applications because I have 1GB of RAM on this system. By using shared memory, I can optimize web pages a little by not having to hit the database every time I want to regurgitate a somewhat-static...
0
2260
by: Phil | last post by:
I realize this is the php group, but I have a question that recurses back to my php install. My objective is a pure 64 bit shared object installation of php 5.0 on UltraSparc Solaris 9 compiled with the Sun Compiler version 8. My problem is that EVERYTHING builds great EXCEPT that the 6b distribution of JPEG will NOT build a shared...
11
4874
by: Michael Schuler | last post by:
The use of STL in shared memory poses a real problem since (non-smart) pointers are not allowed there. Is there any solution for containers in shared memory using smart pointers? Where can I find templates?
5
7056
by: Jim | last post by:
Hello, I have a broken server that we are going to be moving off to a new server with a new version of DB2 but here is what I have right now: RedHat 7.0 (2.2.24smp) DB2 v6.1.0.40 I am getting this error when I try to run the command 'db2 "backup database dbname online to /opt/BACKUP"' on my 3 databases: SQL1042C An unexpected system...
4
1978
by: Zeya | last post by:
I am executing OSQL using System.Diagnostic.Process with the following parameters: -S <servername> -E -Q "BACKUP DATABASE <databasename> to DISK='E:\Temp\Now.bak'" This works from command line but when I execute this from my ASP.Net app it shows this error: SSL Security error
6
14838
by: Jeff | last post by:
Hi - I understand how to create a directory folder, but how can I programatically create a _shared_ directory folder and set its permissions?? (I'm using VB.NET.) Thanks for your help. - Jeff
3
2020
by: wolverine | last post by:
Hi Let me first of all tell that this problem is not specific to a compiler like gcc. It even comes in windows. So please dont regard the question as off topic. I am posting a code using stl. I viewed the memory for program by giving top command eg: top -d 0.2 -p 'pid' The pid will be printed out by the program itself.
2
2529
by: fahad.usman | last post by:
I am making an application in which if the second instance of the same application is launched, it checks its command-line arguments and passes them to the already running instance. I have been told by someone that using named pipes is one of the most commonly used ways of doing this. But I did it in a simpler way; I saved the command-line...
2
2620
by: S S | last post by:
Hi I have my shared (.so) library which uses our own memory manager. 32 bit lib was working fine, but when we switched to 64 bit library, as our own defined small pointer can not handle big addresses. I am facing trouble as our memory manager do not handle big memory requests but passes it on to system malloc() and malloc returns out of...
0
7664
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7583
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7885
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7638
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7948
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5213
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.