here is a simple function that iterates a directory recursively and returns as array. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 function directory_map($source_dir, $top_level_only [...]
25
Feb
here is a simple function that iterates a directory recursively and returns as array. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 function directory_map($source_dir, $top_level_only [...]
18
Feb
PHP byte conversion function Generelly we need to display the file size in file sharing applications. Here we use below function to display the size in bytes with filesize function. function byte_convert($bytes) { $symbol = array(’B', ‘KB’, ‘MB’, ‘GB’, ‘TB’, ‘PB’, ‘EB’, ‘ZB’, ‘YB’); $exp = 0; $converted_value = 0; if( $bytes > 0 [...]
17
Feb
A simple command promt windows password hack cmd.exe or command prompt is the command-line interpreter on OS/2, Windows CE and on Windows NT-based operating systems (including Windows 2000, XP, Vista, 7, Server 2003 and Server 2008).At operating system starting a series of commonds and some applications will be invoked by it. logon.scr is the one [...]
4
Feb
Setup Cron Job with PHP without crontab that runs every minute. Cron job is scheduling some tasks with in regular interval on server.To setup cron job we must know about the cron tab commonds and shell access to remote server. generelly every hosting providers provide some programs like cPanel. Here we run a cron job [...]
Tags: curl