Search results

  1. Porsche_maniak

    PHP Scan dir for idetical files

    How do i do this loop array man ? And isn't if($i == 10) break; doing the job for limiting to 10 ? I've tried google but nothing substantially...
  2. Porsche_maniak

    PHP Scan dir for idetical files

    litewarez can you give some piece of code how to do it... My current one,which is not calculating the duplicates (with no $total++ for every duplicate) function RecurseFolderLister($d) { $BasePath = realpath($d); $Storage = array(); if(is_dir($BasePath))...
  3. Porsche_maniak

    PHP in HTML problem

    i found the solution.. I had to add addtype application/x-httpd-php .html addtype application/x-httpd-php .htm to apache conf !
  4. Porsche_maniak

    PHP in HTML problem

    Nooo.. it has to be .html as in my cases i don't have other option. There must be a setting somewhere...
  5. Porsche_maniak

    PHP in HTML problem

    Nothing... Or if i try more complicated php it just shows the code from somewhere in text...
  6. Porsche_maniak

    PHP in HTML problem

    Hi there ! I am with php 5.3.1.0 and it seems that i can't add php code in html pages. I tried <html> <?php echo 'test'; ?> </html> but nothing happens. It is from the php.ini or what ?
  7. Porsche_maniak

    PHP Scan dir for idetical files

    Hmm i was thinking if array_unque may do all of the work. But i can't translate it - Count every done array_unique and add 1 to some $value
  8. Porsche_maniak

    PHP Scan dir for idetical files

    Currently fixing other issue.. Will write after 30 mins.
  9. Porsche_maniak

    PHP Scan dir for idetical files

    It might work but how will i remove the duplicate... Because i will get SAME(2) SAME(2) OTHER(1) So only one SAME(2) have to stay.
  10. Porsche_maniak

    PHP Scan dir for idetical files

    I can't think of a way using preg_match or strstr in this case.
  11. Porsche_maniak

    PHP Scan dir for idetical files

    The txt files was empty so sorry for that.. But if i change to $filename it proving my above post... C:\xampp\htdocs\downloads\fav\Administrator/entry100620-034822.txt(1)C:\xampp\htdocs\downloads\fav\New Folder/a.txt(1)C:\xampp\htdocs\downloads\fav\New Folder/entry100620-034822.txt(1)...
  12. Porsche_maniak

    PHP Scan dir for idetical files

    $entry_arrayz[ 'entry' ] is the field where everything will print. I am using now : function RecurseFolderLister($d) { $BasePath = realpath($d); $Storage = array(); if(is_dir($BasePath)) { $resource = opendir($BasePath); while(false...
  13. Porsche_maniak

    PHP Scan dir for idetical files

    How should i add $Storage = RecurseFolderLister('fav'); asort($Storage); $i = 0; foreach( array_reverse($Storage) as $filename => $total ) { echo file_get_contents($filename) . '('.$total.')' $i++; if($i == 10) break; } in $entry_arrayz[ 'entry' ] ?
  14. Porsche_maniak

    PHP Scan dir for idetical files

    This.. at the bottom of the page I think you will see the others 10 most... Thats how i want to look the last one (10 most favourited)
  15. Porsche_maniak

    PHP Scan dir for idetical files

    I've tried $entry_arrayz[ 'entry' ] = RecurseFolderLister('fav'); var_dump($entry_arrayz['entry']); but it's the same... Btw read my prev post if haven't (i edited it)..
  16. Porsche_maniak

    PHP Scan dir for idetical files

    So far so good... I used : $entry_arrayz[ 'entry' ] .= $Storage = RecurseFolderLister('fav'); asort($Storage); var_dump($Storage); where $entry_arrayz[ 'entry' ] is the place where sorted $storage will show,but i get : array(1) { ["entry100620-034822.txt"]=> int(1) } Array How...
  17. Porsche_maniak

    PHP Scan dir for idetical files

    error without last slash Warning: opendir(fav....................................................................................................................................................................................................................................New Text...
  18. Porsche_maniak

    PHP Scan dir for idetical files

    I tried everything and gives errors. Also i saw that it finds files in fav folder which are outside it (one level down). Btw the folder is just 'fav/' and i want to be sorted in numeric and show the most 10.. opendir(fav/..login.php) [function.opendir]: failed to open dir: No such file or...
  19. Porsche_maniak

    JS how to unpack a packed one..

    Go to this website and check the bottom of the page ! Works great !
  20. Porsche_maniak

    Hit counter script needed

    Sponge Bob, usually most of the free stats websites support this.. Like this one. You'll see the pages from which the users come..
Back
Top