Do you know what does URI, URL and URN means? I bet you will say that I know about URL but what about URI and URN! Here is a good description on Wikipedia and that is enough to understand these three:
URI tells a unique path to a resource on the Internet. This image will give [...]
Recently I need to use file for caching little bit of data. Then I thought of concurrency problem can arise in File based structure due to read/write issue. For small data and that also if not so useful , usage of Database can be avoided. Though Database can handle any kind of conflict and other [...]
Here is a script for getting file extension. It will take care of the file name like this: yourfilename.inc.php etc and not only filename.inc or fileename.php. It will get your last part of file irrespective of how many dots in file.
<?php
// will get the file name out of whole path (path/to/file.inc.php)
$filename = basename($filePath);
// split it [...]
Finding the correct relative path for use in you php page for include/require.
I need to get all the parent folders of a File for a work. I searched on net to find easy solution for this and also to find some tips for my work. As, my work was heavily dependent on this logic, so I have given some time to it. But whatever I have found [...]
We require unique identifier for dynamically created file, folder, invoice etc. This post is related to getting unique id for these kind of work.