Category : php

I would like to modify TinyFileManager.php from https://tinyfilemanager.github.io/ to accept a URL parameter to replace the hard coded "$root_path = ”; and the "$root_path = ”;. I have tried replacing it with $root_path = $_GET[‘myRoot’]; and using domain.com/tinyfilemanager.php?myRoot=/rfq_documents/2071 as the url. I also modified the ‘//always use ?p lines to be: // always use ?p= ..

Read more

How do I repeat the serial numbers from 000 to 999 in php and save it in a txt file For example, I have this code <?php $bb=fopen(‘log.txt’,’w’); for ($i=0;$i<=999;$i++) echo str_pad($i,5,"0",STR_PAD_LEFT),"n","<br/>"; fwrite($bb,"$i"); fclose($bb); ?> I want to make it like this <?php $bb=fopen(‘log.txt’,’w’); for ($i=0;$i<=999;$i++) $mm = str_pad($i,5,"0",STR_PAD_LEFT),"n","<br/>"; fwrite($bb,"$mm"); fclose($bb); ?> Sourc..

Read more