old php snippets