I want to check exact filename while uploading the file. because i have diffent table for each and every file so before inserting i want to check the file name is proper or not.
so if my file name is like this
then i want to check ipc_details.csv file every time so user can not dump wrong file(say abc.csv) into it.$a ='c:/Program Files/../../../../files/ipc_details.csv';
May be i have to use preg_match here. but how can we check only last part of file path that is ipc_details.csv?
please tell me.
Thnaks in advance