What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-14 20:20:08
php get final redirect url
/** * get_redirect_url() * Gets the address that the provided URL redirects to, * or FALSE if there's no redirect. * * @param string $url * @return string */ function get_redirect_url($url){ $redirect_url = null; $url_parts = @parse_url(... Add solution -
PHP 2021-11-14 06:27:08
login with facebook php
/login.php session_start(); $fb = new Facebook\Facebook([ 'app_id' => '{app-id}', // Replace {app-id} with your app id 'app_secret' => '{app-secret}', 'default_graph_version' => 'v3.2', ]); $helper = $fb->getRedirectLoginHelper(); ... Add solution -
PHP 2021-11-13 21:41:09
how to add recaptcha validation in php
index.html <html> <head> <title>Google recapcha demo - Codeforgeek</title> <script src='https://www.google.com/recaptcha/api.js'></script> </head> <body> <h1>Google reCAPTHA Demo<... Add solution -
Javascript 2021-11-13 21:08:11
wordpress ajax filter code
add_action('wp_ajax_myfilter', 'misha_filter_function'); // wp_ajax_{ACTION HERE} add_action('wp_ajax_nopriv_myfilter', 'misha_filter_function'); function misha_filter_function(){ $args = array( 'orderby' => 'date', // we will sort posts by ... Add solution -
PHP 2021-11-13 19:52:26
php pdo image upload
<?php require_once "connection.php"; if(isset($_REQUEST['btn_insert'])) { try { $name = $_REQUEST['txt_name']; //textbox name "txt_name" $image_file = $_FILES["txt_file"]["name"]; $type = $_FILES[... Add solution -
Other 2021-11-11 21:27:22
woocommerce profile photo upload
// Add field function action_woocommerce_edit_account_form_start() { ?> <p class="woocommerce-form-row woocommerce-form-row--wide form-row form-row-wide"> <label for="image"><?php esc_html_e( 'Image', ... Add solution