Logging Visitor IPs with Cloudflare in PHP When using Cloudflare, it’s important to properly log...
閱讀內文When it comes to building modern web applications and APIs, choosing the right micro-framework can...
閱讀內文<?php $csv_file = "https://example.com/filename.csv?" . time(); $data_list = array(); if (($handle = fopen($csv_file, "r")) !==...
閱讀內文$get_name = (isset($_GET["name"])) ? $_GET["name"] : ""; Related Keywords: Developer, How-to, Solved, PHP Shorthand, Single-Line,...
閱讀內文[{{site_name}}] New User Registration (Admin Email) Hook: wp_new_user_notification_email_admin New user registration on your site {{site_name}}: Username:...
閱讀內文<?php // functions.php function do_wp_query_via_ajax(){ //ini_set('display_errors', 1); //ini_set('display_startup_errors', 1); //error_reporting(E_ALL); // Endpoint: /wp-admin/admin-ajax.php?action=do_wp_query_via_ajax…
閱讀內文<?php // functions.php function imnobby_check_user_roles(){ $user_id = get_current_user_id(); $user_info = get_userdata( $user_id ); //$user_roles =...
閱讀內文<?php // functions.php function imnobby_get_users_with_role($role){ $args = array( 'role' => $role, ); $users = get_users(...
閱讀內文<?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';...
閱讀內文<?php $date_after = strtotime("-1 day"); $date_after = strtotime("-1 week"); $date_after = strtotime("-2 weeks"); $date_after =...
閱讀內文<?php $valid_passwords = array ("username_one" => "password_one", "username_two" => "password_two"); $valid_users = array_keys($valid_passwords); $user =...
閱讀內文When you see any of these file names in the list below in your server,...
閱讀內文<?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');…
閱讀內文<?php function do_stage($attr){ $tmphtml = ''; // $tmphtml .= $attr["id"]; $tmphtml .= '<!-- html2canvas.js Library...
閱讀內文<?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...
閱讀內文<?php function imnobby_redirect_attachment_page() { if ( is_attachment() ) { global $post; if ( $post &&...
閱讀內文<?php function imnobby_translate_ninja_forms_my_list( $data, $field_id ){ // Label Change //$data['label'] = __($data['label']); // Default Value...
閱讀內文<?php echo do_shortcode('[ninja_forms id=1]'); $tmphtml = ""; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $ninja_form_id = $_POST["_form_id"];...
閱讀內文<?php $post_array = array("name" => "imnobby", "year" => 2022); $url = "https://www.imnobby.com/"; echo imnobby_simple_http_curl($url); //...
閱讀內文<?php // WordPress $items_per_page = 10; $page = isset( $_GET['cpage'] ) ? abs( (int) $_GET['cpage']...
閱讀內文