Possible Duplicate:
How to extract a file extension in PHP ?
For example if i have a path (generated by my torrent_info_gen)-
Driver Genius Professional Edition 10.0.0.526/Driver Genius Professional Edition 10.0.0.526.exe
How should i get the extension of the file in the path! I also want to have the path and filename to be shown differently in this way:
Path: (Path of the file)
Filename: (Name of the file)
Extension: (Extension of the file)
Can someone help me! Please!!!!!
Thanks in advance!
the obvious solution is already posted so here is smthing different
Documentation on pathinfo.
What about this:
Gives: