Category : google-cloud-platform

Currently, I’m working on an application created in PHP using CodeIgniter framework version 4. Locally, there is no issue with launching the application. However, when I deploy the same code to Google App Engine, CodeIgniter framework throws a CacheException given in the image below. When I search for it in the Internet, there is not ..

Read more

I try save date in firestore but every time was saved like string or number, I need save as timestamp date( ‘U’, strtotime( ‘-4 HOUR’ ) ); // result something like 1605958160 Example of PHP $docRef = $db->collection(‘users’)->document(‘lovelace’); $docRef->set([ ‘first’ => ‘Ada’, ‘last’ => ‘Lovelace’, ‘born’ => date( ‘U’, strtotime( ‘-4 HOUR’ ) ) ]); ..

Read more

I have a YouTube channel with [email protected] as the manager. I have set up a Google Cloud account for my domain ssss.org (Free trial). I have written OAuth code to access the YT API and activated YT APIs. I run the code and authenticate as [email protected] I called: $youtube = new Google_Service_YouTube($client); try { $channel ..

Read more

I’m trying to detect an intent from a text message sent via Messenger. If I call the method detectIntent from the official PHP DialogFlow library google-cloud-php-dialogflow, the code is somehow "stuck" and I never get the control back: <?php $sessionsClient = new SessionsClient(); try { $logger->info(‘try’); $formattedSession = $sessionsClient->sessionName(getenv(‘GCP_PROJECT_ID’), ‘123456’); $textInput = new TextInput(); $textInput->setText($message); ..

Read more

I am trying to deploy a Laravel web application to Google Cloud Platform: I followed the instructions here: https://cloud.google.com/community/tutorials/run-laravel-on-appengine-standard When I try the gcloud app deploy command, I get this error message: ERROR: (gcloud.app.deploy) PERMISSION_DENIED: The caller does not have permission The project owner gave me an Editor access to the project in the Google ..

Read more

Thank you in advance I have deployed the project over google cloud APP ENGINE, seems everything working Generally laravel stores cached file and sessions file at /storage/framework/cache and /storage/framework/sessions, but for google cloud, we use app.yaml file for the configuration (Seems same as .env), so in app.yaml looks like below runtime: php env: flex runtime_config: ..

Read more