Changed php snippets