Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

七月 26, 2022 • 沒有評論 Firebase SDK PHP Basic Get and Set Operations

<?php // https://github.com/ktamas77/firebase-php require './vendor/autoload.php'; use Firebase\FirebaseLib; const URL = 'https://your-firebase-account.firebaseio.com/'; const TOKEN = 'your-firebase-token';...

閱讀內文
七月 4, 2022 • 沒有評論 MySQL Group By Month of Date

SELECT DATE_FORMAT(`INVOICE_DATE`, '%Y-%m') AS Month, SUM(TOTAL_COST), SUM(TOTAL_PROFIT), SUM(TOTAL_PROFIT) - SUM(TOTAL_COST) AS Profit FROM `invoice_table` WHERE...

閱讀內文
六月 24, 2022 • 沒有評論 PHP Snappy Starter Sample Code on Windows XAMPP

<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); require 'vendor/autoload.php'; use Knp\Snappy\Pdf; $snappy = new Pdf('C:\"Program Files"\wkhtmltopdf\bin\wkhtmltopdf.exe');…

閱讀內文
六月 23, 2022 • 沒有評論 WordPress Ajax Get Remote Image Hook

<?php function ajax_get_remote_image(){ // Endpoint: /wp-admin/admin-ajax.php?action=ajax_get_remote_image&q= $tmphtml = ''; if ( !isset($_GET["q"]) ) exit; $url...

閱讀內文