-
PHP Shorthand
$get_name = (isset($_GET["name"])) ? $_GET["name"] : ""; Related Keywords: Developer, How-to, Solved, PHP Shor…
閱讀全文 → -
Linux Command to Setup Proxy Server in Ubuntu
apt-get update sudo apt-get install tinyproxy vim /etc/tinyproxy/tinyproxy.conf #Add These Lines To File End…
閱讀全文 → -
WordPress System Default Email Templates
[{{site_name}}] New User Registration (Admin Email) Hook: wp_new_user_notification_email_admin New user regist…
閱讀全文 → -
Access Ubuntu (WSL) Files in Windows 10
In the File Explorer Bar, type \\wsl$ Related Keywords: Developer, How-to, Solved, Windows Access Linux Ubuntu…
閱讀全文 → -
WordPress Do WP_Query via Custom Ajax Function
<?php // functions.php function do_wp_query_via_ajax(){ //ini_set('display_errors', 1); //ini_…
閱讀全文 → -
WordPress Get / Check User Roles
<?php // functions.php function imnobby_check_user_roles(){ $user_id = get_current_user_id(); …
閱讀全文 → -
WordPress Get List of Username with User Role
<?php // functions.php function imnobby_get_users_with_role($role){ $args = array( 'role' => $r…
閱讀全文 → -
Container Wrapper, Carousel Items, Background Overlay Sample Template
<style> #{page}-{section}-container .item-link .overlay { position: absolute; width: 100%; height…
閱讀全文 → -
Instagram Basic Display API Allowed Use Cases for instagram_graph_user_media Permission
Creating physical or digital books from the app user’s photos, including exporting photos for printing. …
閱讀全文 → -
Firebase SDK PHP Basic Get and Set Operations
<?php // https://github.com/ktamas77/firebase-php require './vendor/autoload.php'; use Firebase\Fire…
閱讀全文 → -
Linux MySQL Change Password Command
sudo mysql -u root -p // MYSQL Command SET PASSWORD FOR 'db_user_name_here'@'localhost' = PASSWORD('db_new…
閱讀全文 → -
WordPress Reset Home URL with SQL Statement
// RESET WP_HOME BY SQL COMMAND update wp_options set option_value='https://www.imnobby.com' where option_nam…
閱讀全文 → -
WordPress WP_Query Date Query
<?php $date_after = strtotime("-1 day"); $date_after = strtotime("-1 week"); $date_after = strtotime("…
閱讀全文 → -
MySQL Group By Month of Date
SELECT DATE_FORMAT(`INVOICE_DATE`, '%Y-%m') AS Month, SUM(TOTAL_COST), SUM(TOTAL_PROFIT), SUM(TOTAL_PROFIT…
閱讀全文 → -
HTTP Basic Header Authentication with PHP
<?php $valid_passwords = array ("username_one" => "password_one", "username_two" => "password_two"…
閱讀全文 → -
List of Files Scanned by Hacking Robots (i.e. Potential Exploits)
When you see any of these file names in the list below in your server, your files may have already been inject…
閱讀全文 → -
HTML PDF Pixel Perfect Starter Template for Snappy
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="v…
閱讀全文 → -
PHP Snappy Starter Sample Code on Windows XAMPP
<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); r…
閱讀全文 → -
WordPress Stage Download Image Screenshot Shortcode
<?php function do_stage($attr){ $tmphtml = ''; // $tmphtml .= $attr["id"]; $tmphtml .= '<…
閱讀全文 → -
WordPress Ajax Get Remote Image Hook
<?php function ajax_get_remote_image(){ // Endpoint: /wp-admin/admin-ajax.php?action=ajax_get_remot…
閱讀全文 →