Recent Solutions: Aktuelle Lösungen:


Contact Kontakt

Search Suche

(English only) (Nur Englisch)


RSS-Feed

Danltn.com Solutions Danltn.com Solutions

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. Willkommen in Danltn.com - Die persönliche Website von Daniel Neville - Diese Website ermöglicht es Ihnen, gemeinsame Lösungen für viele PHP-Probleme, die Seite ist fast fertig, und es gibt einen RSS-Feed, wenn Sie möchten, melden Sie sich an.

Solutions Lösungen

Remove slashes from multidimensional GET and POST Entfernen Sie Schrägstriche von mehrdimensionalen GET und 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... Dies ist die gleiche wie die letzten Beitrag (siehe dass für Details.) Mit der Ausnahme, dass diese Arbeit wird für mehrdimensionale Arrays, wird man wahrscheinlich nicht brauchen es für die meisten Seiten, aber einige könnten ... So here it is. Also hier ist es.
URL: Download URL: Download

PHP Version: Any - Posted by Danltn - Sat, 12 Jul 08 PHP Version: Jeder - Geschrieben von Danltn - Sa, 12. Jul 08


Remove slashes from GET and POST Entfernen Sie Schrägstriche von GET und 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 ". Viele Menschen klagen häufig über die Tatsache, dass ihre GET-und POST-Arrays oft Rückkehr Daten, die Backslashes Infront von Zeichen wie "und".

This is because of a "feature" (notice the quotations) called magic quotes. Dies liegt daran, dass der ein "Feature" (beachten Sie die Notierungen) namens Magic Quotes.

The download link shows a small snippet on how to remove these for none-multidimensional arrays (most aren't). Der Download-Link zeigt einen kleinen Ausschnitt auf, wie Sie diese für keines-mehrdimensionale Arrays (die meisten sind nicht).
URL: Download URL: Download

PHP Version: Any - Posted by Danltn - Fri, 11 Jul 08 PHP Version: Jeder - Geschrieben von Danltn - Fr, 11. Jul 08


Check if today is Christmas Day Prüfen Sie, ob heute ist Weihnachten

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()) { ... Diese Funktion ist sehr einfach, aber dennoch Spaß, alle es mit einfachen Mitteln wird sagen Ihnen, ob heute (oder das Datum, an dem Sie nähere Angaben) ist Weihnachten, wenn es dann liefert (boolean) true, andernfalls liefert (boolean) falsch, eine einfache Nutzung von wäre es, wenn (is_christmas ()) (... } )

Not made for anything serious just have fun with it. Nicht für alles, was schwerwiegende nur viel Spaß mit ihm.
URL: Download URL: Download

PHP Version: 4.3+ - Posted by Danltn - Fri, 11 Jul 08 PHP-Version: 4.3 + - Geschrieben von Danltn - Fr, 11. Jul 08