PHP's filesystem extension in JavaScript basename dirname file_get_contents pathinfo realpath « More PHP functions