Skip to content

Instantly share code, notes, and snippets.

$(document).ready(function(){
function loadjson(url,lang,next){
var j;
if(next<=0||next=='undefined'){
next='null';
}
$.ajax({
url:url,
type:'POST',
data:{lang:lang,next:next},
$(document).ready(function(){
//ajax form
$('#submit').click(function(e){
e.preventDefault();
$(this).text('Sending...');
//$(this).prop('disabled',false);
console.log('Clicked');
var
fname=$('#fname').val(),
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>RISE-Multipurpose Html Template</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@Anan5a
Anan5a / google-recaptcha-verifier.php
Last active November 29, 2016 13:08
A function to verify Google reCAPTCHA response.
<?php
$response=$_POST['g-recaptcha-response'];
$secret='your_secret_key';
$json=g_rec_verify($response,$secret);
/*
function
*/
<?php
//option one
$rand = substr(str_shuffle('a-Z strings'),5,5);
//2nd loop
for($i=0;$i<=5;$i++){
$rand .= chr(rand(99,155));
}
root@localhost:~/php7# ./cmd.sh
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking target system type... armv7l-unknown-linux-gnueabihf
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
<?php
function get_html($url)
{
$ch=curl_init($url);
$c_o_a=array(
CURLOPT_USERAGENT=> 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)',
CURLOPT_RETURNTRANSFER=>true,
CURLOPT_FOLLOWLOCATION=>1,
CURLOPT_AUTOREFERER=>false,
<?php
/**
*
*/
$host="127.0.0.1"; // Host name
$username="root"; // Mysql username
$password=""; // Mysql password
$db_name="test"; // Database name
$tbl_name="student"; // Table name
<!DOCTYPE HTML>
<html>
<head>
<!--This is a html comment-->
</head>
<body>
<h1>I'm html !</h1>
</body>
</html>
<!DOCTYPE HTML>
<html>
<head>
<!--This is a html comment-->
<title>Page title</title>
</head>
<body>
<h1>I'm html !</h1>
</body>
</html>