Archive

Archive for the ‘Beginners’ Category

Mobile platforms to develope applications

January 29th, 2010 Jigish Thakar No comments

its been long time.. i dont even remember when last i posted articel. so today i ll discuss about three big mobile brands platform for development

smartphones lg 292x300 Mobile platforms to develope applications

Note: this article will just guide u which mobile platform is easy/ userfriendly to start with. no development code is discussed here :(

so the mobile platforms on which i am preparing myself are

  • iPhone
  • android
  • blackberry

so lets start with my most unlikable i.e. BlackBerry Read more…

Twitter like loading (Load More)

December 3rd, 2009 Jigish Thakar No comments

twitter t 300x249 Twitter like loading (Load More)

basically this is the most simplest way to load data in twitter way (Load more). for this i have not used jquery, mootools or any other fancy javascript framework. to use this you need very basic knowledge of javascript along with little ajax & php that’s it, so here we start

step 1: you html base

again i have kept this very simple.. just one div where you want to show your twitts. now heart of this code will be your javascript functions here we will use 2 javascript functions one to send request (AJAX) and another one to load your resulting twitts… also i have used 1 javascript variables to trace my twitts (pages)


i.e.

var page = 1;

lets start with first function

function getData(){

	document.getElementById("div-Loading").className = "show";
	document.getElementById("div-button").className = "hide";
	remoteCall("php/ajax.php","page="+page,"loadData");
}

below two lines are just hide the load more button and show loading image.

	document.getElementById("div-Loading").className = "show";
	document.getElementById("div-button").className = "hide";

and this are simple Stylesheet classes to show and hide the content. Read more…

how to use generated slug (using .htaccess)

November 27th, 2009 Jigish Thakar 2 comments
illu htaccess1 how to use generated slug (using .htaccess)

As one of my friend & reader asked question on one of my post PHP: Generate Slug,

The BookWorm: Does google read it in the new fashion then? Or the old fashioned way as a regular query string?

Lemme know this, coz I need to kinda implement this on my site too
Also, when it converts it into the new url, can I still access them via $_GET[]?

so the answer is that function was just to generate the slug but not seo friendly URL, and now here we will talk about how to use it for SEO friendly Urls.

first consider you have one social networking site with name “technoreaders.com”
and you have many modules in it e.g. blogs, forums, groups, messaging… etc Read more…

PHP: copying content of folder to folder

November 16th, 2009 Jigish Thakar No comments
Linux File Transfer Methods 2 PHP: copying content of folder to folder

Below is a function to copy the contnent of one folder to another.. so what this function does is it takes files from source folder and one by one copythem in recursive method.. how?
so

  • first it takes all the files from source and destination
  • it comapares files and copy thme if its not exsisting
  • and if this folder contains some other child folder in it, then it ll call the function recursively for that child folders
function recurse_copy($src,$dst) {
$dir = opendir($src);
@mkdir($dst);
while(false !== ( $file = readdir($dir)) ) {
if (( $file != '.' ) && ( $file != '..' )) {
if ( is_dir($src . '/' . $file) ) {
recurse_copy($src . '/' . $file,$dst . '/' . $file);
}
else {
copy($src . '/' . $file,$dst . '/' . $file);
}
}
}
closedir($dir);
}

PHP AJAX: yahoo tag suggestion

November 8th, 2009 Jigish Thakar No comments

Note: code of the below post is taken from one of the very famous WordPress plug-in Simple Tags.

during my first few post, i was so much confused about what and how i ll write.. and that time there was one more difficulty. how i ll give tags to my post which ll result in some traffic..

so then i got Simple Tag and that day i decided when ever i ll develop blog or anything similar i ll surely develop this feature in it, and i did it.

so now how does it work..

first write your article and then on some event we will send your article to yahoo API and in response it will return us tags. for this your server must support cURL those who don’t know what it is please click here. most of the time it is available on Linux servers and for if you are windows user and wanna know how to install in on WAMP or XAMPP please click here.

moving back to main topic so here is server side code. Read more…