You can reset the index of an array in PHP very easily, index is nothing but the element stored place. The array index is also called as array keys. In Array the index will start with zero. (more…)
Youtube video can be paused using the jquery. It will will useful for you when youtube video is showin in sliders. First embed the youtube video in your iframe tag and set paramerters for the video. (more…)
You can remove the Non ASCII or Non printable characters in string using the php regular expression. Follow the below code to how to remove the special characters from the string other than the ASCII. (more…)
Get the Facebook Like Share Comment Count for the Given URL in PHP using the Facebook Query Language (FQL). Sometimes we need to find like,share,comment count for show a snippet at out web page.By using the following code you can get the facebook fan page count too.The following code very simple and just pass the url of the web page to function, then it will return you the values in the json format.
You can Generate XML file from PHP array using SimpleXMLElement in php language, which will be easy to read data from the xml formatted data.just take the whole list to an array & by using SimpleXMLElement the data will generated in an xml format. (more…)
Today I will show you how to fetch facebook Open Graph(OG) meta tags with php script. Open Graph meta tags are used in html page of website to generate previews of content.when your page is shared on facebook it will capture the og meta tags and generate the snippet.Meta tags are added inside the head tag. (more…)
Google URL Shortener API provide a service to short the long urls to short and vice versa. Get an API key from google to use this api by signup. Here i am giving a class to perform shorten url function. Just copy and paste the API Key in the following code & Make sure that curl is enabled in PHP. Then the script will send a curl request to google api and shorten or expand the given url.
Most of the people are using Airtel Broadband Services, While browsing we found one tab will opens and display about the statistics of balance quota remaining for the bill cycle. Its fine with the details displayed. But when you want to check it manually.. (more…)
Few days back I installed Adobe Dreamweaver in my PC, when i am using dreamweaver php code hints not working, then I searched for the solution over the internet I just found one. Just follow the below steps to enable the code hints.