Skip to content

Instantly share code, notes, and snippets.

View php.ini
; About php.ini ;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
miku3920 / phpcs.xml
Last active Feb 24, 2021
View phpcs.xml
<?xml version="1.0"?>
<ruleset xmlns:xsi="" name="PSR12" xsi:noNamespaceSchemaLocation="../../../phpcs.xsd">
<description>My coding standard.</description>
<arg name="tab-width" value="4"/>
<!-- 檢查陣列縮排 -->
<rule ref="Generic.Arrays.ArrayIndent"/>
<!-- 警告參數未使用 -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<!-- 禁止省略大括號 -->
miku3920 / Firebase.php
Created Sep 29, 2019
Firebase using php curl
View Firebase.php
function exec_curl_request($handle) {
$response = curl_exec($handle);
if ($response === false) {
$errno = curl_errno($handle);
$error = curl_error($handle);