PHP – Get files modified on a particular date

| By Webner

Solution: In following example we have filtered files which are modified on current date (today’s date): $source= “C:\wamp\www\Files\”; $files = scandir($source); $archiveFiles = array(); foreach($files as $file) { if (!in_array($file,array(“.”,”..”))) { $lastModified = date(‘d/m/y’,filemtime($source . ‘/’ .$file)); IF($lastModified==date(“d/m/y”)) { array_push($archiveFiles, $file);

Salesforce | Uploading and using images in Visualforce page

| By Webner

When there is requirement of displaying images in a Visualforce page, following methods can be adopted: Method 1: If the image is present on another website/server. Use this code: <apex:image url=”Paste URL of the image” styleClass=”imageStyle”/> Method 2: Uploading image in “Static