top-image

Archivio di settembre 22nd, 2009

Classe php per conoscere programmi canali mediaset
  < ? /* Mediaset TV.   //channel = 4,5,6 or "rete4","canale5","italia1" (noncaps sensitive) Mediaset( (int|string) channel )   //time = "21.00", day = 0 (0 today, 1 tomorrow, 2 the day after tomorrow, 3 tomorrow after tomorrow... Mediaset::get( (string) time )   Example: $time = '22.00'; $obj = new Mediaset(6); list($name, $start, $end, $date, $channel) = $obj->get($time,1); ...leggi tutto»
Una semplice funzione che mostra il tuo status su twitter
  function view_twitter_status($username) { $twitter_url = "http://twitter.com/statuses/user_timeline/".$username.".xml?count=1"; // Twitter API Url $buffer = file_get_contents($twitter_url); // Using the Twitter API Url retrieve the contents. // Create a new SimpleXMLElement using the contents retrieved from Twitter. $xml = new SimpleXMLElement($buffer); // So now we need to get to obtaining the information we want. $status_item = $xml->status; $status = $status_item->text; // Return $status which has the current status in it. return $status; }   //ESEMPIO APPLICATO echo view_twitter_status("nome_utente_twitter");   fonte: www.sastgroup.com ...leggi tutto»
Creare un bellissimo effetto slow motion con photoshop!
Link al tutorial: http://www.pxleyes.com/tutorial/photoshop/1402/Create-A-Slow-Motion-Bullet-Shot-Effect.html fonte: www.sastgroup.com ...leggi tutto»
Flip menu con jquery!
Demo: http://www.queness.com/resources/html/flipping/index.html Codice Sorgente: http://www.queness.com/resources/archives/jquery-flipping.zip fonte: www.sastgroup.com ...leggi tutto»
8 eleganti figure astratte con photoshop!
Link al tutorial: http://www.psdvault.com/resources/8-elegant-really-cool-abstract-photoshop-tutorials-to-beautify-your-design/ fonte: www.sastgroup.com ...leggi tutto»
[php] limitare il numero di download per client
  < ?php // change this value below $cs_conn = mysql_connect('localhost', 'db_user', 'password'); mysql_select_db('db_name', $cs_conn);   mysql_query("CREATE TABLE IF NOT EXISTS `downloaded` ( `filepath` varchar(255) NOT NULL, `ipadres` varchar(15) NOT NULL, `last_access` datetime NOT NULL, UNIQUE KEY `filepath` (`filepath`,`ipadres`), KEY `ipadres` (`ipadres`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;");   $path = addslashes($_SERVER['REQUEST_URI']); $ip = addslashes($_SERVER['REMOTE_ADDR']); $dl = false;   $sql = sprintf("SELECT UNIX_TIMESTAMP(last_access) last_time FROM downloaded WHERE filepath = '%s' AND ipadres = '%s' ORDER BY last_access DESC", $path, $ip); $res = mysql_query($sql); if (mysql_num_rows($res) > 0) { $last_xs = mysql_result($res, 0, 'last_time')+3600; if ($last_xs < time()) { mysql_query(sprintf("REPLACE downloaded SET filepath = '%s', ipadres = '%s', last_access = NOW()", $path, $ip)); $dl = true; } } else ...leggi tutto»
Pagina 2 di 2:« 1 2
bottom-img