This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{Form::open(array('url'=>'/login'))}} | |
{{ Form::email('email', $value = null, $attributes = array())}} | |
{{ Form::password('password', $value = null, $attributes = array())}} | |
{{ Form::submit('Login', $attributes = array('class'=>'button tiny radius'))}} | |
{{Form::close()}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$w = new WhatsProt($userPhone, $userIdentity, $userName, $debug); | |
$w->Connect(); | |
$w->LoginWithPassword($password); | |
$w->sendMessage($destinationPhone_new, $msgbody);//Send Message Here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
#get_post_meta($post->ID, 'SeoHead', true) | |
$seo_box = 'H1 Headline: Keyword1, Keyword2, Keyword3, Keyword4, Keyword5'; | |
$meta_values = explode(':',$seo_box); | |
if(isset($meta_values[1])){ | |
$keywords = explode(',',$meta_values[1]); | |
$seo_box = '<ul>'; | |
foreach($keywords as $keyword){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, "example.com"); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); | |
$output = curl_exec($ch); | |
curl_close($ch); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$con = mysql_connect("localhost", "root", ""); | |
if(!$con){ | |
die(mysql_error()); | |
} | |
mysql_select_db('myconference') or die(mysql_error()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include_once 'db.php'; | |
global $con; | |
define('ERROR','404');//Define Your Error message HERE | |
define('REQADDR', '127.0.0.1');//Define your REQUESTIN SERVER ADDR | |
if($_SERVER['REMOTE_ADDR']=='127.0.0.1'){ | |
//process it | |
if(isset($_GET['q'])){ | |
$q=mysql_real_escape_string($_GET['q']);//TO get rid of SQL Enjection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$words ="dilli%20bharat%20ki%20rajdhani%20hey"; | |
$file = "sample.wav"; | |
if (!file_exists($file)) { | |
$mp3 = file_get_contents('http://translate.google.com/translate_tts?tl=hi&q='.$words); | |
file_put_contents($file, $mp3); | |
} | |
?> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
header('Content-Description: File Transfer'); | |
header('Content-Type: application/octet-stream'); | |
header('Content-Disposition: attachment; filename='.basename($destination_name_ulaw)); | |
header('Content-Transfer-Encoding: binary'); | |
header('Expires: 0'); | |
header('Cache-Control: must-revalidate'); | |
header('Pragma: public'); | |
header('Content-Length: ' . filesize($destination_name_ulaw)); | |
ob_clean(); | |
flush(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$m = new MongoClient(); | |
// select a database | |
$db = $m->seq; | |
// select a collection (analogous to a relational database's table) | |
$collection = $db->counters; | |
$user_collection = $db->user; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once('phpagi.php'); | |
$agi = new AGI(); | |
$clid = $agi->request['agi_callerid']; // -Caller ID | |
$dest = $agi->request['agi_dnid']; // -Destination id | |
$uid = $agi->request['agi_uniqueid']; | |
$rdnis =$agi->request['agi_rdnis']; //Redirected Dialed Number Information Service |
OlderNewer