Slashdot Mirror


User: GreySkull

GreySkull's activity in the archive.

Stories
0
Comments
2
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 2

  1. PHP Shared Memory on More Effective Use of Shared Memory on Linux · · Score: 1, Offtopic

    Hi!
    I have a prob with shared memory in PHP and C++ I thought the /. crowd would help me...

    I have a server written in C++ and my webpages are in PHP. The PHP has to communicate with the server using shared memory. This was working fine on the server running FC-1 with php-4.3.8. We recently migrated to CentOS 4.1 (Equivalent to RHEL 4.1) running php-4.3.9. The error it displays is as follows:

    shmop_open(): unable to attach or create shared memory segment in /var/www/html/sharedmem.php on line 2

    The server opens the shm in 666 (originally was 644) even then it was not working. I can see the shared mem open using 'ipcs' command.

    The source code of PHP is as follows:

    "; // These are fine

    # print $shm_key;

    $shm_id = shmop_open($shm_key, "a",0,0) or die("FATAL ERROR:: Unable to Access Shared Memory"); /*$shm_size = shmop_size($shm_id);
    DEBUG:: print ("Shared Memory Block Size: " . $shm_size."\n");
    */ // Now lets read the string back
    $data = shmop_read($shm_id, 0, $shm_size);
    if (!$data) {
    echo "FATAL ERROR:: Couldn't read from shared memory\n";
    exit;
    }
    ?>

    Both the configs say that 'shmop' is enabled.

    Can some one help me with this, I am in desperate need of this, if this fails I might have to search for an alternative and the project has to go live in a week or so. I am in desperate need of help, can any one help pls?

    Regards,
    Yaswanth

  2. Maxthon popup blocker has stopped it... on New Vulnerability Affects All Browsers · · Score: 1

    I guess it didnt work for maxthon...the popup blocker didnt block citibank's popup but did block all the others the Secunia was trying to open.