tag:blogger.com,1999:blog-6207583460783647164.post3029158477365315602..comments2024-03-28T06:49:40.733+00:00Comments on Cron's Web Tech Blog: PHP: How to Compare Directory Attributes & all files withinAnonymoushttp://www.blogger.com/profile/17117578848941456417noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-6207583460783647164.post-27637071016242932652023-08-18T08:09:30.442+01:002023-08-18T08:09:30.442+01:00salt likit
salt likit
dr mood likit
big boss likit...<a href="https://bit.ly/salt-likit" title="salt likit" rel="nofollow">salt likit</a><br /><a href="https://esaltlikit.com/" title="salt likit" rel="nofollow">salt likit</a><br /><a href="https://esaltlikit.com/urun-kategori/dr-mood/" rel="nofollow">dr mood likit</a><br /><a href="https://esaltlikit.com/urun-kategori/big-boss-likit/" rel="nofollow">big boss likit</a><br /><a href="https://esaltlikit.com/urun-kategori/dl-likit/" rel="nofollow">dl likit</a><br /><a href="https://esaltlikit.com/urun-kategori/dark-likit/" rel="nofollow">dark likit</a><br />NUDRahminoreply@blogger.comtag:blogger.com,1999:blog-6207583460783647164.post-64516708716931515522022-11-27T06:22:07.510+00:002022-11-27T06:22:07.510+00:00광양출장샵
광양출장샵
상주출장샵
진안출장샵
상주출장샵
전북출장샵
전북출장샵<br /><a href="https://www.cpanma.com/77" rel="nofollow">광양출장샵</a><br /><a href="https://www.cpcz88.com/77" rel="nofollow">광양출장샵</a><br /><a href="https://www.ssculzang.com/sangjuculzang" rel="nofollow">상주출장샵</a><br /><a href="https://www.wpwz77.com/78" rel="nofollow">진안출장샵</a><br /><a href="https://www.gogocallgirl.net/sangjucallgirl" rel="nofollow">상주출장샵</a><br /><a href="https://www.cpanma.com/78" rel="nofollow">전북출장샵</a><br /><a href="https://www.cpcz88.com/78" rel="nofollow">전북출장샵</a><br /><br /><br /><a href="https://www.ssculzang.com/">심심출장마사지</a> <a href="https://www.cpanma.com/">총판출장마사지</a>https://www.blogger.com/profile/06428859328169466535noreply@blogger.comtag:blogger.com,1999:blog-6207583460783647164.post-50315927919161548332021-10-25T16:14:04.139+01:002021-10-25T16:14:04.139+01:00It turns out PHP alters the modified time on files...It turns out PHP alters the modified time on files when moving them so checking the modified time in this case is not accurate to tell if two files are the same. To fix this, simply remove these two lines from the function:<br /><br />else if(filemtime($path1)!=filemtime($path2)){//check file modified time:<br />return array('path1'=>$path1,'path2'=>$path2,'status'=>'modified');<br />}<br /><a href="https://www.protruckingcompanysandiego.com/freight-shipping-san-diego" rel="nofollow">We are a reliable and afforadable trucking comapany.</a>Mikoshiba Sanaehttps://www.blogger.com/profile/16483859925793871638noreply@blogger.comtag:blogger.com,1999:blog-6207583460783647164.post-39869274189008569552013-09-25T08:01:09.933+01:002013-09-25T08:01:09.933+01:00You can check filesize first; then crc32/md5/sha. ...You can check filesize first; then crc32/md5/sha. I would not rely on dates.Salman Arshadhttps://www.blogger.com/profile/10950335822003436316noreply@blogger.comtag:blogger.com,1999:blog-6207583460783647164.post-54177255784088914112011-07-11T14:04:01.185+01:002011-07-11T14:04:01.185+01:00This comment has been removed by the author.phanisatyamhttps://www.blogger.com/profile/11463282864049928012noreply@blogger.comtag:blogger.com,1999:blog-6207583460783647164.post-68360797377593651532011-02-11T16:54:52.088+00:002011-02-11T16:54:52.088+00:00Thanks Marc - looks like this is a compatibility i...Thanks Marc - looks like this is a compatibility issue with PHP5. I've updated the function above but anyone using PHP4 will likely need to revert to the old line:<br />array_merge($returnarray,$tempresults);Anonymoushttps://www.blogger.com/profile/17117578848941456417noreply@blogger.comtag:blogger.com,1999:blog-6207583460783647164.post-4454183907288885442011-02-09T02:35:10.072+00:002011-02-09T02:35:10.072+00:00Recursive results didn't seem to make it up th...Recursive results didn't seem to make it up the chain, so I changed this line<br /><br />array_merge($returnarray,$tempresults);<br /><br />to <br /><br />$returnarray = array_merge($returnarray,$tempresults);<br /><br />Now, recursive results show up in the final array.<br /><br />Excellent function, by the way. <br /><br />Best Regards,<br /><br />MarcPhilosopherhttps://www.blogger.com/profile/05299860402096569579noreply@blogger.comtag:blogger.com,1999:blog-6207583460783647164.post-13036710839547358432009-11-27T12:47:09.198+00:002009-11-27T12:47:09.198+00:00It turns out PHP alters the modified time on files...It turns out PHP alters the modified time on files when moving them so checking the modified time in this case is not accurate to tell if two files are the same. To fix this, simply remove these two lines from the function:<br /><br />else if(filemtime($path1)!=filemtime($path2)){//check file modified time:<br /> return array('path1'=>$path1,'path2'=>$path2,'status'=>'modified');<br /> }Anonymoushttps://www.blogger.com/profile/17117578848941456417noreply@blogger.com