ginoplusio


Member since 11/07/2008

Website: http://www.barattalo.it

39 snippets

8325 profile views

6 Comment(s) Posted

View their favorites

Profile

Achievement

You have not received any achievements.

ginoplusio's Recent PHP Snippets



« Prev 1 2
Here is a function that read the number of times a url is shared on twitter.
1 844 posted 11 years ago by ginoplusio
I will show you how to crate an app for facebook to handle the facebook connect process on your web site. Then I will show you the php code to perform the login on facebook and retrieve the informations you need for your site. The last suggestion w...
0 868 posted 11 years ago by ginoplusio
When you add facebook like button to your site, probably, you also want to save the number of likes of your pages to your database.These data are very useful and very important because they tell you which of your articles are better than others. More...
0 1102 posted 11 years ago by ginoplusio
Thanks to followgram.me you can read a public feed with your photos. Use this code to retrieve your Instagr.am photos and use them on your web.
0 968 posted 12 years ago by ginoplusio
I’ve made this function that receive the input $video string that contains the dirty embed code as it is from youtube. The second parameter $new_width (if specified) permits to resize the embed code proportionally to the width you need for your tem...
0 1009 posted 13 years ago by ginoplusio
Since the 31 of august 2010, twitter made its API more secure, stopping basic authentication calls. So, if you used basic authentication you have to change your code and implement oAuth authentication model or you can follow this link and found a mi...
1 1230 posted 13 years ago by ginoplusio
If you need to add some content to your pages without having that content in your database you can use Wikipedia API. You can, for example, need to add automatically a simple description to a city name, or to a band name. Or you could need to add the...
1 763 posted 13 years ago by ginoplusio
This simply php function will retrieve the links of the images from Google Images searched with a keyword. The function just calls images.google.it and parse the html to find the url of the images, in this case the urls are stored in the javascript,...
0 2623 posted 14 years ago by ginoplusio
This small function receive a text as input and returns an html text with links if the source text contains urls (http://www… but also ftp://… and every other protocol), emails, twitter’s usernames (with @ at the beginning) and also twitter tag...
0 933 posted 14 years ago by ginoplusio
Changing Facebook Status with PHP, download the Mini Bot PHP class from the blog http://www.barattalo.it
1 930 posted 14 years ago by ginoplusio
PHP function of mini bot class that lets you retrieve twitter infos from twitter nickname. ($this->attr method is part of the Mini Bot Class)
2 765 posted 14 years ago by ginoplusio
This function calls pingomatic rpc service to increase traffic to your site. More info and instructions on [Barattalo blog](http://www.barattalo.it/2010/02/24/ping-pingomatic-com-services-with-php/ "read this post"). .
1 1125 posted 14 years ago by ginoplusio
1 1290 posted 14 years ago by ginoplusio
Function to fix char set and collation on mysql tables, see [this link](http://www.barattalo.it/2010/02/11/php-function-to-fix-collation-on-database-fields-of-mysql/ "Fix encoding on db") for examples and more infos.
1 911 posted 14 years ago by ginoplusio
This PHP class lets you clean and repair html code. WHAT IT DOES: delete closed tags without their opening tag, fix open tag without close, closing them automatically, check bad nesting and fix them, fix bad quotes in attributes, merge different styl...
2 2005 posted 14 years ago by ginoplusio
1 667 posted 14 years ago by ginoplusio
1 918 posted 14 years ago by ginoplusio
Used to copy the user avatar from Facebook to your community in this [Facebook Connect Tutorial](http://www.barattalo.it/facebook-connect-tutorial/ "Tutorial").
1 750 posted 14 years ago by ginoplusio
This is a tutorial I've found for integrate Facebook Connect function with your web community.
1 796 posted 14 years ago by ginoplusio
The first function make short urls. The second function decode a short url with CURL. It gets the http header of the short url page. If the header contains a "Location:" header, then it's a redirect, and the decoded url is the url in the "Location"...
1 1231 posted 14 years ago by ginoplusio
This function validate a mail address in a smart way: if the address to validate has a correct syntax (checked with regular expression), it tries to connect to the mx server of the address. This means that the program have to use the smtp protocol to...
3 882 posted 14 years ago by ginoplusio
I’ve made this class that can use normal session variables, or cookies. This class can use cookies in two ways: store a single variable in each cookie, or pack many variables, encrypt, and store them into cookies. Now I always use this class whe...
2 804 posted 14 years ago by ginoplusio
Function to detect user language in php.
2 660 posted 14 years ago by ginoplusio
« Prev 1 2