$pathinfo = pathinfo("data.txt"); echo "Dir name: $pathinfo[dirname]\n"; echo "Base name: $pathinfo[basename] \n"; echo "Extension: $pathinfo[extension] \n";?>