• 10

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

name Punditsdkoslkdosdkoskdo

Cloud Storage access from PHP aplication

We configure PHP applications on 2 servers with databases in CloudSQL, they require read /write static content in a CloudStorage bucket from PHP applications.

What I did was install GCS Fuse to mount the CloudStorage bucket as a shared folder on a server but PHP applications do not see the bucket files. Review service account, API access is enabled and can be viewed with GSUTIL. In the support forums mention some bookstores but I really do not understand, they also mention solutions in App Engine but it does not apply in this case.

The question is if there is another way to connect PHP applications with Cloud Storage?

You can take advantage of the usual GCS connectivity, if you configure a Google Cloud Storage properly. Once this is done, you may write from your PHP app with lines analogous to: file_put_contents("gs://${my_bucket}/hello.txt", $newFileContent);

  • 0
Reply Report

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags