Programming

PHP: Read, Write And Compress files with Zlib Extension

PHP: Read, Write And Compress files with Zlib Extension

The zlib extension contains versions of many file-access functions, such asfopen(), fread(), and fwrite() (called gzopen(), gzread(), gzwrite(), etc.) that transparently compress data when writing and uncompress data when reading. The compression algorithm that zlib uses is compatible with the gzip and gunzip utilities. Use PHP's zlib extension to read or…

Category : Programming   29-06-2013   by admin admin

Jquery: Get URL,Parameters and HashTag

Jquery: Get URL,Parameters and HashTag

While dealing with current URL, many time you want to know what is the current URL path, What are the parameters, and what is the hash tag on URL. Hash tag is pretty important, if you are implementing tab structure using HTML and JQuery. Now, both JavaScript and JQuery…

Category : Programming   27-06-2013   by admin admin

Get Disqus Comments With Php

Get Disqus Comments With Php

This script will create a configurable widget that will display the latest Disqus comments from your site.   Note: You need to signup with Disqus and register a new application in order to use this script. Using the Script This script should work on any server running PHP v5+.I haven't tested it on PHPv4,…

Category : Programming   27-06-2013   by admin admin

PHP Recursive Backup of Directories

PHP Recursive Backup of Directories

This script can be used to make backup of entire directories and subdirectories in our servers, you can use the script in conjunction with cronjobs //specify the source dir and target dir $src = $_SERVER.'/test/backup/dir1'; $dst = $_SERVER.'/test/backup/dir2'; function recurse_copy($src,$dst) { $dir = opendir($src); @mkdir($dst); while(false !== ( $file = readdir($dir)) ) { if…

Category : Programming   24-06-2013   by admin admin

How to protect Javascript code from copying by Ajax method

How to protect Javascript code from copying by Ajax method

Today, in this mini tutorial we will introduce a simple method to protect javascript code from copying. IMPORTANT: We are not sure this method will protect javascript 100% but it will be better than do nothing ;-D As we said, this method is very simple: basically we have to combine AJAX method…

Category : Programming   24-06-2013   by admin admin

The HTML5 Full-Screen API

The HTML5 Full-Screen API

How to Launch the Fullscreen Mode The fullscreen API's requestFullScreen method is still prefixed in some browsers, so we'll need to do a bit ofsearching to find it: // Find the right method, call on correct elementfunction launchFullScreen(element) { if(element.requestFullScreen) { element.requestFullScreen(); } else if(element.mozRequestFullScreen) { element.mozRequestFullScreen(); } else if(element.webkitRequestFullScreen) { element.webkitRequestFullScreen(); }} // Launch fullscreen How to…

Category : Programming   20-06-2013   by admin admin

Content Experiments API implementation: Google Analytics becomes A Robust A/B Testing Platform

Content Experiments API implementation: Google Analytics becomes A Robust A/B Testing Platform

Google Analytics renovate Content Experiments last summer. Now, an year later, Google Team announced new improvements, including API calls. Google announced the launch of an API for Content Experiments. The same tool that allows users to use A/B content tests on their site is now available through an API. The new content experiments API allows developers to…

Category : Programming   12-06-2013   by admin admin

Google Launches Maps Engine API

Google Launches Maps Engine API

Yesterday, Google is adding more functionality to his platform, Google’s Maps Engine, by launching an API for Maps Engine that allows developers to take their custom data, import it into Maps Engine and then use it in their own applications. The basic idea is to let organizations use Google’s fast mapping cloud infrastructure…

Category : Programming   05-06-2013   by admin admin

8 Lessons in Mobile Usability Testing

8 Lessons in Mobile Usability Testing

Mobile web browsing is expected to turn into the next major Internet platform. Designing for mobile devices needs to be simpler than its standard website and more task-based to get the job done because users look for something specific and urgent. To aid you in creating website that is accessible not just on desktop…

Category : Programming   30-05-2013   by admin admin

10 most used PHP features

10 most used PHP features

We have compiled a selection of top 10 PHP native functions, classes and features. We know first-hand how invaluable these features are, so we hope you find them to be useful too. 1. PDO Class We use the PDO (PHP Data Object) exclusively for connecting to our MySQL databases. PDO provides a nice abstraction layer…

Category : Programming   22-05-2013   by admin admin

Jquery: Manage Cookies easily with Jquery.Cookies

Jquery: Manage Cookies easily with Jquery.Cookies

Jquery.Cookie is A simple, lightweight jQuery plugin for reading, writing and deleting cookies. Let's start with it, first of all include script after the jQuery library (unless you are packaging scripts somehow else): Note:The plugin can also be loaded as AMD module. Usage To Create permanent session cookie use $.cookie: $.cookie('the_cookie', 'the_value'); If you want…

Category : Programming   21-05-2013   by admin admin

A collection of must-have front-end developer tools

A collection of must-have front-end developer tools

PREPROCESSORS For years, the front-end community debated over whether CSS preprocessing was necessary. The language is a simple one; why are we complicating it? Thankfully, over time, and as the web stack matured, the majority of front-end developers came to terms with the fact that, until the language itself matures a…

Category : Programming   20-05-2013   by admin admin

Company Logos in Google Search Results, Thanks to New schema.org Markup

Company Logos in Google Search Results, Thanks to New schema.org Markup

Since announcing the schema.org project two years ago, little has changed with the markup. That changes today as Google announced a new schema that supports company logos. The logo designation is part of the Organization markup within schema.org. Using it will allow Google algorithms to understand which image on your server is your preferred logo. If you used…

Category : Programming   16-05-2013   by admin admin

Microsoft to web developers: For everything you've done, thank you

Microsoft to web developers: For everything you've done, thank you

Microsoft has been working hard to boost the profile of its Internet Explorer 10 browser. From its 'browser you love to hate' campaign to talking up the advantages of touch in IE10, the company has extensively focused on transforming perceptions about Internet Explorer, in the hope that more people will adopt it as their…

Category : Programming   10-05-2013   by admin admin

Mozilla launches Firefox OS Simulator 3.0

Mozilla launches Firefox OS Simulator 3.0

Mozilla on Thursday announced the release of Firefox OS Simulator 3.0, polishing all the features in the preview release as well as making a few more improvements. You can download version 3.0 now for Windows, Mac, and Linux from Mozilla Add-Ons. The simulator installs as an extension in Firefox, so you’ll need Mozilla’s browser to use…

Category : Programming   03-05-2013   by admin admin

Google Summer of Code 2013.

Google Summer of Code 2013.

Propose a project for approval by a mentoring open source organization Code the summer away Achieve Ultimate Glory(and get a nice paycheck)   Google Summer of Code is a global program that offers student developers stipends to write code for various open source software projects. We work with many open source, free software, and technology-related groups…

Category : Programming   02-05-2013   by admin admin

Setting headers for dynamic images with PHP

Setting headers for dynamic images with PHP

PHP provides an amazing library called Graphics Draw ( GD ) to generate images. You can create and output the images directly to the browser or you can store it as a image file. For example Google Charts API generates QR Code images and outputs it directly to the browser.…

Category : Programming   30-04-2013   by admin admin

Php: Automatic Site/Directory Backup via FTP with PHP

Php: Automatic Site/Directory Backup via FTP with PHP

In this tutorial we are going to make a PHP script that archives your website into a .tar file, then automatically moves it to an external FTP server for safe keeping. We can then setup a cron for this script which will execute it automatically every day/week/month , however…

Category : Programming   29-04-2013   by admin admin

How to Write a Chrome App for your Website in 5 Minutes

How to Write a Chrome App for your Website in 5 Minutes

Write a Chrome App for your Website This is easy. Download the sample chrome-app.zip file to your desktop, extract the archive and open the included manifest.json file in Notepad or any other text editor. You need to make a few changes to the file. Add your website name in Line #2, put a short…

Category : Programming   24-04-2013   by admin admin

6 Things to Consider when Choosing a Framework

6 Things to Consider when Choosing a Framework

You’ve decided that it makes sense to use a framework when writing your next new application, and chances are that if you’re already familiar with a specific framework, then you’ll probably be leaning towards using that one when you start. But are you sure it’s really the most appropriate for…

Category : Programming   22-04-2013   by admin admin

Learn Php Handy Functions for beginners

Learn Php Handy Functions for beginners

  If you’re new to PHP language, we’ll introduce you to seven really handy PHP functions in this quick tip!     Function 1 : isset     Check if a variable has been set. You just pass it a variable name, and it will return true if that variable exists, and is set to something other…

Category : Programming   11-04-2013   by admin admin

PHP get DNS Nameserver , Cname , MX , A records of a domain

PHP get DNS Nameserver , Cname , MX , A records of a domain

  PHP has a useful function called dns_get_record that can be used to get different types of records for a give domain , very easily. Nameserver - NS Records : $ php -a Interactive shell php > print_r(dns_get_record('www.binarytides.com' , DNS_NS)); Array ( => Array ( => binarytides.com => NS => omikro1.allwebserver.com => IN => 86140 ) => Array ( =>…

Category : Programming   11-04-2013   by admin admin

24 great PHP libraries and classes you should know about

24 great PHP libraries and classes you should know about

  It is an exciting time to be a PHP developer. There are lots of useful libraries released every day, and with the help of Composer and Github, they are easy to discover and use. Here are 24 of the coolest that I’ve come across. Your favorite is not on the list? Share it in…

Category : Programming   11-04-2013   by admin admin

5 tools for better PHP

5 tools for better PHP

When we work on our applications, whatever our language of choice, sometimes we can focus too much on the code itself. A really good development lifecycle is about so much more than the code, it brings in a selection of supporting tools to ensure quality and reliability of the application,…

Category : Programming   11-04-2013   by admin admin

SEOStats Php class to get Seo Statistics

SEOStats Php class to get Seo Statistics

  SEOstats is a powerful open source PHP library to request a bunch of SEO relevant metrics such as detailed backlink analyses, keyword and traffic statistics, website trends, page authority, the Google Pagerank, the Alexa Trafficrank and much more. SEOstats offers over 50 different methods and gathers data from Google, Yahoo, Bing,…

Category : Programming   11-04-2013   by admin admin

20 Useful and Amazing CSS3 Tutorials

20 Useful and Amazing CSS3 Tutorials

We have listed 20 Amazing CSS3 tutorials, which show you how to develop some top notch CSS3 effects for your websites and personal blogs. Enjoy! 1. Create a Stunning Menu in CSS3 In this tutorial you will learn how to develop a white stunning drop down menu using CSS3. You can download…

Category : Programming   11-04-2013   by admin admin

PHP JSON: An Example Javascript JSON Client With PHP Server

PHP JSON: An Example Javascript JSON Client With PHP Server

While JSON has many uses, probably the most common use is to pass data structures to Javascript. JSON is simply a standard format for data structures. In this example we’ll use a PHP page as a JSON server; we’ll use an HTML page with embedded javascript to contact the server, retrieve…

Category : Programming   11-04-2013   by admin admin

Six Useful PHP code snippets

Six Useful PHP code snippets

Here’s a mini list of  useful PHP code snippets that we find using on a weekly basis. You could use these as is or expand them as part of other applications or add them to a php class.   Adjust server time Useful if you have a server in a different timezone, like…

Category : Programming   11-04-2013   by admin admin

Learning Loops in Php: FOR

Learning Loops in Php: FOR

Loops come in several different flavors in PHP: for, while, do-while, and foreach. We will introduce you to each of them in 3 lessons and we will show you how they can making repetitive tasks straightforward and easy to maintain.   Lesson #1: The for Loop  The syntax of a for loop is: for (expr1; expr2; expr3) statement The first expression (expr1) is evaluated…

Category : Programming   11-04-2013   by admin admin

A More Efficient Embedding Method for YouTube Videos

A More Efficient Embedding Method for YouTube Videos

When you embed any YouTube video on a website using standard IFRAME tags, you’ll be surprised to know how many extra pounds that video adds to your page. The web page has to download additional ~400 kB of resources (CSS, JavaSript and Image files) for rendering the video player alone and…

Category : Programming   11-04-2013   by admin admin