Get file name with php

$full_path = '/swf/myflashfile.swf';
$file = basename($full_path); // $file is "myflashfile.swf'"
$dir = dirname($full_path); // $dir is "/swf/myflashfile.swf'"

0 Comments

You must be logged in to post a comment.