php scripts to fetch url preview