added some php and js snippets