Recent Solutions: Recenti Soluzioni:


Contact Contatto

Search Ricerca

(English only) (Solo in inglese)


Feed RSS

Danltn.com Solutions Danltn.com Soluzioni

Welcome to Danltn.com - The personal website of Daniel Neville - This site allows you to find common solutions to many PHP problems, the site is nearly finished and there is an RSS feed if you wish to subscribe. Benvenuti a Danltn.com - Il sito personale di Daniele Neville - Questo sito ti permette di trovare soluzioni comuni a molti problemi di PHP, il sito è quasi finito e non vi è un feed RSS, se si desidera abbonarsi.

Solutions Soluzioni

Remove slashes from multidimensional GET and POST Rimuovere barre da multidimensionale GET e POST

This is the same as the last post (see that for details.) With the exception that this will work for multidimensional arrays, you probably won't need it for most sites, but some might... Questo è lo stesso come l'ultimo post (cfr. che per i dettagli.) Con l'eccezione che questo lavoro per gli array multidimensionali, probabilmente non ne ha bisogno per la maggior parte dei siti, ma alcuni potrebbero ... So here it is. Così qui è.
URL: Download URL: Scarica

PHP Version: Any - Posted by Danltn - Sat, 12 Jul 08 PHP Versione: Qualsiasi - Inviato da Danltn - sab, 12 luglio 08


Remove slashes from GET and POST Rimuovere barre da GET e POST

A lot of people often complain about the fact that their GET and POST arrays often return data which has backslashes infront of characters such as ' and ". Un sacco di persone spesso si lamentano del fatto che la loro GET e POST, spesso ritorno array di dati che ha backslash Infront di caratteri come 'e ".

This is because of a "feature" (notice the quotations) called magic quotes. Questo è a causa di una "caratteristica" (bando di gara le quotazioni) ha chiesto magia virgolette.

The download link shows a small snippet on how to remove these for none-multidimensional arrays (most aren't). Il link di download mostra un piccolo frammento di codice su come rimuovere questi per nessuno-array multidimensionali (la maggior parte non sono).
URL: Download URL: Scarica

PHP Version: Any - Posted by Danltn - Fri, 11 Jul 08 PHP Versione: Qualsiasi - Inviato da Danltn - ven, 11 luglio 08


Check if today is Christmas Day Controlla se oggi è il giorno di Natale

This function is extremely simple but fun nonetheless, all it does in simple terms is tell you whether today (or the date you specified) is Christmas day, if it is then it returns (boolean) true, otherwise it returns (boolean) false, a simple usage of it would be if(is_christmas()) { ... Questa funzione è estremamente semplice ma divertente, tuttavia, tutto ciò che fa, in termini semplici, è dirvi se oggi (o la data in cui è specificato) è il giorno di Natale, se è poi ritorna (booleano) vero, altrimenti si ritorna (booleano) false, un semplice utilizzo del sarebbe se (is_christmas ()) (... } )

Not made for anything serious just have fun with it. Non per nulla grave solo divertirsi con essa.
URL: Download URL: Scarica

PHP Version: 4.3+ - Posted by Danltn - Fri, 11 Jul 08 PHP Version: 4.3 + - Inviato da Danltn - ven, 11 luglio 08