Skip to content

Instantly share code, notes, and snippets.

HackerRahul hackerrahul

Block or report user

Report or block hackerrahul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View success.json
"status": 200,
"status_message": "sms_success",
"data": {
"balance": "Updated Balance",
"number": "Mobile number",
"txn_id": "Transaction Id",
"message_body": "Message Body"
View sendemail.php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
include_once "PHPMailer/PHPMailer.php";
include_once "PHPMailer/Exception.php";
include_once "PHPMailer/SMTP.php";
function send_mail($to,$subject,$body){
View edit_these.php
//Server settings
$mail->SMTPDebug = 0; // Enable verbose debug output
$mail->isSMTP(); // Set mailer to use SMTP
$mail->Host = 'YOUR_HOST_HERE'; // Specify main and backup SMTP servers
$mail->SMTPAuth = true; // Enable SMTP authentication
$mail->Username = 'YOUR_SMTP_USERNAME'; // SMTP username
$mail->Password = 'YOUR_SMTP_PASSWORD'; // SMTP password
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted
$mail->Port = 587; // TCP port to connect to
View sendemail_demo.php
include 'sendemail.php';
$to = '';
$subject = 'Subject for PHPMailer';
$body = 'here is the demo body for email';
$send = send_mail($to,$subject,$body);
if($send == 1){
echo 'Mail Sent!';
View index.php
include 'upload.php';
<!DOCTYPE html>
<title>Imgur Image upload in php</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="//">
View upload.php
function upload_to_imgur($image){
$image = file_get_contents($image);
$curl = curl_init();
curl_setopt_array($curl, array(
View create_request.php
$amount = $_POST['amount']; // this is dynamic
$name = $_POST['name']; // this is dynamic
$number = $_POST['number']; // this is dynamic
$email = $_POST['email']; // this is dynamic
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://'.$mode.'');
View instamojo_js_sdk.php
<script src=""></script>
View insert.php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
View appen_data.js
<script type="text/javascript">
var start = 0;
type : "GET",
url : "get_data.php",
data : {
'offset' : 0,
'limit' : 5
You can’t perform that action at this time.