eSnippets.net, a code gallery for creating, saving and sharing all kinds of code snippets.

Snippets Tagged "php" 2 results found

Adjust Server Time PHP 1119
Author: rpjs Posted On: Saturday, May 17, 2014

Sometimes the time set on your server isn't accurate to what your local time is. If you can't change it, you can adjust it yourself. If your server thought it was 12 midnight, but it was really 7 pm, this will roll the $today variable back five hours to be correct.

URL Validation PHP 1234
Author: rpjs Posted On: Saturday, May 10, 2014

Snippet to validate a url