How to change twitter status with php and curl without oAuth

9 settembre 2010 - Fonte: http://www.barattalo.it
Twitter api authentication 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 (you can read about oAuth on Wikipedia). The oAuth authentication model Using oAuth means that you have to register [...] Related posts:
  1. PHP curl bot to update Facebook status
  2. href="http://www.barattalo.it/...

    Leggi il seguito »

PHP bot to get wikipedia definitions

29 agosto 2010 - Fonte: http://www.barattalo.it
Wikipedia, the collaborative and multilingual encyclopedia project, has a lot of usefull terms defined in its database, you can find informations on artists, cities, medical terms, cars, brands… quite everything. If you need to add some content to your pages without having that content in your database you can use Wikipedia API or Google define [...] Related posts:
  1. Tiny url encode and decode with PHP
  2. href="http://www.barattalo.it/PHP to get twitter infos and avatar
  3. href="http://www.barattalo.it/...

    Leggi il seguito »

PHP to post on a Facebook page

28 luglio 2010 - Fonte: http://www.barattalo.it
Hi, I’ve modified the Mini Bot Class, I’ve fixed the Facebook status update and I’ve implemented the function to post on the wall of a facebook page: suppose you have a page of a brand, and you need to update it regularly with a cron job… Very, very usefull, isn’t it? Nothing more to say. Just [...] Related posts:
  1. PHP curl bot to update Facebook status
  2. href="http://www.barattalo.it/PHP Web page to text function
  3. href="http://www.barattalo.it/...

    Leggi il seguito »

Conversione di valuta utilizzando PHP, Google e CURL

22 luglio 2010 - Fonte: http://mondojava.altervista.org

php

Solo poche persone sanno che Google ha una calcolatrice e un convertitore di valute integrato.
Per testare ciò basta digitare nella barra di ricerca 100$ to €, in automatico verrà effettuata la conversione di valuta.

Questa calcolatrice funziona molto bene, quindi cosa ne dite di integrare questa funzionalità nelle vostre applicazioni web?

function currency($from_Currency,$to_Currency,$amount)...

Leggi il seguito »

ForumCommunity SpamBot (Scopo informativo)

29 marzo 2010 - Fonte: http://blog.mirkoweb.org

Per cominciare, comunico che i sorgenti pubblicati in questo articolo sono al puro scopo informativo e didattico. Non mi assumo alcuna responsabilità per quanto riguarda l’utilizzo.

Beh detto ciò, vorrei esporvi un sorgente (PHP) scritto alle 2:30 di notte (quindi potete ben capire come stavo combinato mentalmente). Tale script mostrerà per lo più l’utilità di  un captcha su certe piattaforme così oramai famose. :P
I sorgenti li potrete trovare qui:

http://mirkoweb.org/view.php?id=58

Lo script si basa sulla libreria cURL principalmente.

Commentate...

Leggi il seguito »

[Pillola PHP] Convertire un URL lungo in uno breve (TinyURL)

28 marzo 2010 - Fonte: http://www.xoen.org
Trasformare un URL normale in uno breve

L’altro giorno m’è servito convertire un URL in URL breve in uno script PHP, ecco a voi una piccola funzione per risolvere il problema.

Esistono diversi siti ormai che convertono URL lunghi in URL brevi, due esempi su tutti sono http://ur1.ca (servizio aperto offerto da StatusNET, società dietro identi.ca) e TinyURL (uno dei primi siti ad offrire questo tipo di servizio, se non il primo). In questo esempio utilizzerò TinyURL per semplicità poichè tramite una pagina è possibile ricevere direttamente in output l’URL breve.

Se andate...

Leggi il seguito »

PHP curl bot to update Facebook status

1 marzo 2010 - Fonte: http://www.barattalo.it
I’ve found this great mini bot from Alste blog, and I’ve decided to add it to the mini bot class. This bot uses curl to connect to facebook mobile (m.facebook.com) and perform the login. Then it saves the cookies received from mobile facebook and go to the facebook mobile homepage where it sets the status [...] Related posts:
  1. Test if a remote url exists with PHP and CURL
  2. href="http://www.barattalo.it/PHP to get twitter infos and avatar
  3. ...

    Leggi il seguito »

PHP to get twitter infos and avatar

1 marzo 2010 - Fonte: http://www.barattalo.it
I’ve just updated the Mini Bot Php Class with an improved version of the twitterInfo function, here is the code of the new function, I’ve added the avatar image url: /* this function is part of the Mini Bot Class */ // // get twitter infos from nickname // and get avatar url public function twitterInfo($nick) { $user_agent = "Mozilla/4.0 (compatible; [...] Related posts:
  1. Bot that retrieves url meta data and other infos
  2. href="http://www.barattalo.it/...

    Leggi il seguito »

Consumiamo i servizi dell’Agenzia delle Entrate: Partite IVA Comunitarie

11 febbraio 2010 - Fonte: http://musarra.wordpress.com
Spesso le aziende che sono alla ricerca di possibili clienti[1] utilizzano una serie di sofisticati strumenti informatici con la finalità di attirare “le prede” verso la propria rete. Uno degli strumenti utili alla “certificazione” della preda (una volta entrata nella rete) è il controllo dei dati, uno di questi dati è la Partita IVA. Esistono diversi [...]...

Leggi il seguito »

New version of Mini Bots PHP Class (v.1.4)

20 gennaio 2010 - Fonte: http://www.barattalo.it
I’ve added three more bots to the Mini Bots Php Class, now the version number is 1.4 and it has these new features. Follow the link, watch demos and download the class from the Mini Bots Php Class page: addeded twitterInfo method to retrieve the numbers of following, followers, and lists. addeded url2pdf method to convert and save [...] Related posts:
  1. PHP Web page to text function
  2. href="http://www.barattalo.it/PHP bot to grab meteo information from Google
  3. href="http://www.barattalo.it/...

    Leggi il seguito »