Top Menu

Category Archives Php

Send sms without page refresh, the help of cUrl. Instigate sms Api Easley . sms API makes it easy for developers to send  SMS messages from any website. Code  <?php$urltopost="http://txtji.com/sms_api_send";$datatopost = array (    "akey" => "XNLp9tQlbc5W5yK6YdLxFh84VpnWaTo7jmgVlyLe-u6nwsFwPqAhrpXbZ-I8SKOKm83fGOq13Hq0BnXe1jw2VQ",    "message" => "JAFAR ",    "recipient" => "9451293997"    );$ch = curl_init ($urltopost);curl_setopt ($ch, CURLOPT_POST, true);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt ($ch, CURLOPT_POSTFIELDS, $datatopost);curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);$returndata = curl_exec ($ch);curl_close($ch);echo…

php - Run a url to send sms in the background<?php$url="http://domain_Name.com/pushsms.php?username=XXXXXX&api_password=XXXXXXX&sender=dataman&to=9451293997&message=Verified%20Sucessfully&priority=1=1";$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); $result = curl_exec($ch);$info = curl_getinfo($ch); //Some information on the fetch//print_r($result);curl_close($ch);?>

Here you can Encrypt URL with the help of  urlencode($string) and  urldecode( $string)Is there a way I can encrypt a page URL and hide the data source url? There are times when you need to to hide the real path, web address or URL to a file that you  sell for profit – ebooks, mp3′s, software  etc (digital products) –…

Here you do the change date format with this function.Code :public function todayDDMMMYY($dt,$format='d-M-Y') {        date_default_timezone_set('Asia/Calcutta');//// Change according itself country Zone         return date($format,strtotime($dt));    }

On keyup this text box sends a request to PHP and a value is returned.html codeSend request to server without page refresh . Got it result on same page    test.html (file Name)<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html>    <head>        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />        <title>Ajax With Jquery</title>               <style type="text/css" media="screen">            #display{       …

Check file Size Validation on PhpCheck file Size Validation on Phpdefine("MAX_SIZE",20000);$target_path='fileUpload/';if($_FILES["fileUp"]["size"] < MAX_SIZE){    if(move_uploaded_file($_FILES['fileUp']['tmp_name'], $target_path)) {    echo "The file has been uploaded";    } else{    echo "Error Uploading!";    }}else{echo "Large size!";}

This class allows you to create highly dyanamic tables easily and quickly. It hasfull support for anything you can throw at it. It supporst CSS, and all other tagsyou may want, even ones you make up. It can handle truly dynamic tables. You cancreate a single 'layout structure' and it can handle dynamic col and row spans, changingin the number…

Create a sortable table with multi-column sorting capabilities.A simple Table Sorter.tablesorter is a jQuery plugin for turning a standard HTML table with THEAD and TBODY tags into a sortable table without page refreshes. tablesorter can successfully parse and sort many types of data including linked data in a cell. It has many useful features including: Multi-column sortingParsers for sorting text,…

Set timezone in PHPHere is a example how you can set time zone in php.Time zone functionally is very important in auction sites, freelance based sites, product base sites, but many programmer don’t care about time zone.due to this lake of programming visitor face problems and sites goes to down.Here is an example how we can solve time zone issue…

Close