Edit on GitHub
Report issue
Page history

Author(s): @{[ username ]}  Published: {[ TutorialCtrl.tutorial.date_published | date:'mediumDate' ]}

System V IPC family

PHP has a wrapper for System V IPC family of functions including semaphores, shared memory and inter-process messaging. For more details, visit the official documentation.

Our PHP runtime provides these features out of the box, so you can immediately start using them on App Engine flexible environment. We'll walk through a small demo app to learn how to use them.


  1. Create a project in the Google Cloud Platform Console.
  2. Enable billing for your project.
  3. Install the Google Cloud SDK.

Simple counter with the shared memory

  1. Create a directory

    mkdir myapp
    cd myapp
  2. Create an app.yaml file:

    runtime: php
    env: flex
        instances: 1
  3. Create an index.php file:

See more by @{[ username ]} and more tagged {[ tag ]}{[ $last ? '' : ', ' ]}

Submit a Tutorial

Share step-by-step guides


Request a Tutorial

Ask for community help


GCP Tutorials

Tutorials published by GCP


Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see our Site Policies. Java is a registered trademark of Oracle and/or its affiliates.