Skip to content

Instantly share code, notes, and snippets.

View php.ini
[PHP]
;;;;;;;;;;;;;;;;;;;
; 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
miku3920 / phpcs.xml
Last active Feb 24, 2021
一些中文註釋
View phpcs.xml
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PSR12" xsi:noNamespaceSchemaLocation="../../../phpcs.xsd">
<description>My coding standard. https://github.com/squizlabs/PHP_CodeSniffer/wiki/Customisable-Sniff-Properties</description>
<arg name="tab-width" value="4"/>
<!-- 檢查陣列縮排 -->
<rule ref="Generic.Arrays.ArrayIndent"/>
<!-- 警告參數未使用 -->
<rule ref="Generic.CodeAnalysis.UnusedFunctionParameter"/>
<!-- 禁止省略大括號 -->
@miku3920
miku3920 / Firebase.php
Created Sep 29, 2019
Firebase using php curl
View Firebase.php
<?php
define('FIREBASE_HOST','https://?????????????????.firebaseio.com');
define('FIREBASE_AUTH','????????????????????????????????????????');
function exec_curl_request($handle) {
$response = curl_exec($handle);
if ($response === false) {
$errno = curl_errno($handle);
$error = curl_error($handle);