Have a Snippet?

Keep, track and share your code snippets with your friends



Category "PHP" (56)


PHP: Force the browser to download the file Share on Vkontakte

Force the browser to download the file instead of opening it ... Reveal Code



PHP: Determination of the country by IP Share on Vkontakte

Determination of the country by IP using geoplugin.net OR ipinfodb.com. Will return the country code in "Alpha-2 ISO 3166-1" format (a two-char code) ... Reveal Code


PHP: Determination of the browser and its version Share on Vkontakte

Determination of the browser and its version by user-agent string. ... Reveal Code


PHP: Game server information Share on Vkontakte

Информация о игровом сервере на примере Counter strike сервера ... Reveal Code


PHP: Единая страница ошибок Share on Vkontakte

сохраняем как error.phprn а в делаем метку на нашу страницу ошибокrnrnrnrn ErrorDocument 400 / error.phprn ErrorDocument 401 / error.phprn ErrorDocument 403 / error.phprn ErrorDocument 404 / error.phprn ErrorDocument 500 / error.phprnrn ... Reveal Code


PHP: doctrine sample Share on Vkontakte

debug doctrine count querys ... Reveal Code


PHP: php: get JSON request Share on Vkontakte

php: get JSON request ... Reveal Code


PHP: Make a thumbnail screenshot of the video Share on Vkontakte

Make a thumbnail screenshot of the video using ffmpeg ... Reveal Code


PHP: french months Share on Vkontakte

an array to store french months ... Reveal Code


PHP: Test a Password Strength Share on Vkontakte

Test a Password Strength. Will return number (1-10), or a word ("Weak", "Normal", "Good", "Awesome"). ... Reveal Code


PHP: wow class api Share on Vkontakte

wow class api ... Reveal Code


PHP: wow api race Share on Vkontakte

wow api race ... Reveal Code




PHP: Get the user's age Share on Vkontakte

Get the user's age by date of birth ... Reveal Code


PHP: Remove an empty array elements Share on Vkontakte

Remove an empty array elements ... Reveal Code


PHP: Get zodiac sign Share on Vkontakte

Get zodiac sign by birth date ... Reveal Code


PHP: Расстояние между двумя точками Share on Vkontakte

Вычисление расстояния между двумя точками, в зависимости от их координат. ... Reveal Code


PHP: Convert the timestamp to human-readable format Share on Vkontakte

Convert the timestamp to human-readable format like XX minutes ago or XX days ago. Was found here: http://stackoverflow.com/questions/2915864/php-how-to-find-the-time-elapsed-since-a-date-time ... Reveal Code