<?php print_r(pathinfo('http://w...content-available-to-author-only...e.com/foo.jpg'));
Standard input is empty
Array ( [dirname] => http://w...content-available-to-author-only...e.com [basename] => foo.jpg [extension] => jpg [filename] => foo )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!