This file contains 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
https://www.androidhive.info/2012/01/android-login-and-registration-with-php-mysql-and-sqlite/ |
This file contains 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
// Add this code in etc/phpmyadmin/config.inc.php file of lamp | |
$i++; | |
$cfg['Servers'][$i]['host'] = 'yourhostname'; | |
$cfg['Servers'][$i]['port'] = '3306'; | |
$cfg['Servers'][$i]['verbose'] = 'SERVER_NAME'; | |
$cfg['Servers'][$i]['connect_type'] = 'tcp'; | |
$cfg['Servers'][$i]['extension'] = 'mysql'; | |
$cfg['Servers'][$i]['compress'] = TRUE; |
This file contains 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 | |
/** | |
* find the longest palindrome in a string | |
* website : neerusite.wordpress.com | |
* Auther : Devdutt Sharma | |
*/ | |
function longestPalindrome($string = ''){ | |
$strArr = array(); |
This file contains 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
public function getresultTree(array $elements, $parentId = 0) { | |
$branch = array(); | |
foreach ($elements as $element) { | |
if ($element['parent_id'] == $parentId) { | |
$children = getresultTree($elements, $element['id']); | |
if ($children) { | |
This file contains 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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Template | |
{ | |
var $ci; | |
function __construct() | |
{ | |
$this->ci =& get_instance(); | |
} |
This file contains 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
/********************************** example **************************************/ | |
var base_url = 'http://people.cs.uct.ac.za/~swatermeyer/VulaMobi/'; | |
function example() | |
{ | |
var response = ""; | |
var form_data = { | |
username: username, | |
password: password |