Archivio per la categoria "Programmazione"

Sulle nuove tecnologie

Once a new technology starts rolling, if you’re not part of the steamroller, you’re part of the road.
Stewart Brand
Ovvero: quando una nuova tecnologia comincia ad “avanzare” o sei parte dello schiacciasassi o sei parte della strada…

5 Commenti
, ,

10 links per creare il tuo tema WordPress

Ecco 10 links utili per cominciare a “smanettare” con i temi per WordPress. Creare un tema non è poi così difficile. Volete mettere poi la soddisfazione che si ricava dal creare un tema tutto nostro?

Free Blank WordPress Themes - Temi “vuoti”, per chi non vuole partire proprio da zero, ma modificare un template già [...]

5 Commenti
, , , , ,

Creare un log delle visite di GoogleBot

Volete sapere istante per istante se GoogleBot passa per il vostro sito web? In PHP è tutto molto facile, basterà aggiungere alle pagine che volete monitorare queste poche righe di codice:
// Controlla che lo user agent sia quello di GoogleBot
if (strpos( $_SERVER[’HTTP_USER_AGENT’], ‘Googlebot’ ) !== false )
{
// Apro file precedentemente creato, se non lo trova [...]

1 Commento
, , , ,

Sulla scoperta del debug

As soon as we started programming, we found to our surprise that it wasn’t as easy to get programs right as we had thought. Debugging had to be discovered. I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding [...]

Nessun Commento
, ,

Generare una password casuale in PHP

I vostri utenti sono troppo pigri per creare una password “seria”? Generatela voi per loro!
La funzione generaPassword() accetta come parametro la lunghezza della password, che di default è impostata ad 8 caratteri. Se volete aggiungere caratteri speciali come “@” o altri ancora basterà modificare la stringa $possibili
function generaPassword($lunghezza = 10)
{
$password = "";
$possibili = "0123456789abcdefghijklmnopqrstuvwxyz()#";
$i = [...]

2 Commenti
, , ,



Chiudi
Invia e-mail