Stay organized with collections
Save and categorize content based on your preferences.
Your PHP 5 app requires a properly configured Google Cloud Storage
bucket. Fortunately, each app can easily gain access to such a bucket if you do
the following:
Enable billing for your project, if you haven't already done so.
Click Create bucket in the Storage Browser for your project.
When using a default bucket, you don't actually need to know your bucket name:
you can use #default# and this will be replaced at runtime by the name of the default bucket.
For example, you would write to the default bucket using the App Engine
stream wrapper for Cloud Storage:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["This API supports first-generation runtimes and can be used when upgrading to corresponding second-generation runtimes."],["PHP 5 apps require a configured Google Cloud Storage bucket, accessible by enabling billing and creating a bucket in the Storage Browser."],["Each project has a default bucket that includes 5GB of free storage and a free quota for I/O operations, which might incur additional costs."],["When using a default bucket, you can use `#default#` in place of the bucket name, which will be replaced at runtime, or find it programmatically with `CloudStorageTools::getDefaultGoogleStorageBucketName()`."],["You can write to the default bucket using the App Engine stream wrapper, which will leverage functions such as `file_put_contents` and `fwrite`."]]],[]]