Here I want to explain how to convert text file data into array. In this article I am explain process of convert text file to array. below show basic simple steps to convert text file into array. you can just follow below steps and see results.
Here I am explain major GIT Commands list and their usage and short description. you can use below git commands and going with git in your projects.
List of GIT Commands :
- git config
git config command used to set configuration values for user name, email, key, preferred algorithm, file formats and more in your project.
12345//For configure your usernamegit config --global user_name "John Doe"//For configure your emailgit config --global user_email firstname.lastname@example.org
ON/OFF iOS Style Switch Button using CSS and jquery and with the help of CSS :before and :after Element. Now this time everyone want to convert web application into mobile application or application style platform. so here I want to explain how to make iOS style switch button using CSS and Jquery.
Wall post like Facebook using Jquery and Ajax it contains update post, like post, comment on post by different users. In this post I want to explain how to integrate and how to implement wall post application like Facebook.
Below show the preview of demo application and you want to integrate please follow simple steps.
As google api documentation “Google Cloud Messaging(GCM)” is service to send notifications from servers to their applications on Android devices. Using GCM service you can send notification to your application when you add/update data. Integrating GCM in your android application for enhances experience and saves lot of battery power.
Creating MySQL Database Table for store user device ids
- create database table for store user information and GCM Device ID.
PHP123456789101112////Create Table QueryCREATE TABLE IF NOT EXISTS `tbl_users` (`user_id` int(11) NOT NULL AUTO_INCREMENT,`name` varchar(255) NOT NULL,`email` varchar(255) NOT NULL,`password` varchar(255) NOT NULL,`phone_number` varchar(12) NOT NULL,`gcm_device_id` text NOT NULL,`created_date` datetime NOT NULL,PRIMARY KEY (`user_id`)) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
- After create above table you will store user information and user device GCM id.
1234567891011////User Information$name = "John Smith";$email = "email@example.com";$password = MD5("123456");$phone_number = "7894561230";$gcm_device_id = "APA91bEcgM5efMleJigr6MKSO0ERtraIUrYWZp9f7ZS7yLdo34";$created_date = date("Y-m-d h:i:s");//Insert user information with GCM device id$result = mysql_query("INSERT INTO tbl_users(name, email, password, phone_number,gcm_device_id,created_date) VALUES('$name', '$email', '$password', '$phone_number', '$gcm_device_id','$created_date')");