Skip to content

Tag: php

How to precompile php opcache using command line?

I’m trying to warm up opcache via opcache.file_cache feature using console command. My opcache.ini: before I start my php-fpm process I compile files by executing scrpt from clommand line: This script generates compiled files to specified (/tmp/.opcache) directory. Then I start php-fpm process, but no p…

Get position of Jira ticket within swimlane

I’m using the Atlassian REST API to fetch data regarding Jira tickets. PHP code (snippet): How do I get the current position of a ticket within its column/swimlane of the kanban board? Answer Sort the tickets by Rank. Ideally using ORDER BY Rank ASC in your JQL. This should return your issues in the ord…

How can I show images from a Google Drive folder?

I am building a testing website. In login confirmation, I have to show the examinee their pictures, which is already saved in Google Drive Folder. This is what I used to get the file ID. Now in order to preview the image to the page, do I have to download the image (then delete it later) in order to show