Recent Solutions: Soluciones recientes:


Contact Contacto

Search Búsqueda

(English only) (Inglés solamente)


RSS

Danltn.com Solutions Soluciones Danltn.com

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. Bienvenido a Danltn.com - El sitio web personal de Daniel Neville - Este sitio le permite encontrar soluciones comunes a muchos problemas de PHP, el sitio está casi terminado y hay un feed RSS si desea suscribirse.

Solutions Soluciones

Remove slashes from multidimensional GET and POST Eliminar barras multidimensional de GET y 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... Esto es lo mismo que el último puesto (que para más detalles.) Con la salvedad de que esto funcionará para matrices multidimensionales, probablemente no lo necesitan para la mayoría de los sitios, pero algunos podrían ... So here it is. Así que aquí está.
URL: Download URL: Descargar

PHP Version: Any - Posted by Danltn - Sat, 12 Jul 08 PHP versión: Cualquiera - Publicado por Danltn - Sábado, 12 julio 08


Remove slashes from GET and POST Eliminar barras de GET y 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 ". Una gran cantidad de personas se quejan a menudo el hecho de que su GET y POST arrays retorno a menudo los datos que se enfrente barras de caracteres como "y".

This is because of a "feature" (notice the quotations) called magic quotes. Esto se debe a una "característica" (anuncio de las cotizaciones) llamado magia comillas.

The download link shows a small snippet on how to remove these for none-multidimensional arrays (most aren't). El enlace de descarga muestra un pequeño fragmento sobre la forma de eliminar ninguno de estos-arrays multidimensional (la mayoría no son).
URL: Download URL: Descargar

PHP Version: Any - Posted by Danltn - Fri, 11 Jul 08 PHP versión: Cualquiera - Publicado por Danltn - Viernes, 11 julio 08


Check if today is Christmas Day Compruebe si hoy es el día de Navidad

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()) { ... Esta función es extremadamente simple, pero divertido, sin embargo, no todo lo que en términos simples, es decir que si hoy (o la fecha en la que se especifique lo contrario) es día de Navidad, si se devuelve (boolean) verdadero, de lo contrario devuelve (boolean) falsa, un simple uso de la misma sería si (is_christmas ()) (... } )

Not made for anything serious just have fun with it. No hizo nada grave simplemente divertirse con ella.
URL: Download URL: Descargar

PHP Version: 4.3+ - Posted by Danltn - Fri, 11 Jul 08 PHP versión: 4.3 + - Enviado por Danltn - Viernes, 11 julio 08