drdhaval2785 / SanskritSorting

Codes written by Dr. Dhaval Patel for Sanskrit Natural Language Programming
2 stars 1 forks source link

Include config.php #12

Closed gasyoun closed 9 years ago

gasyoun commented 9 years ago

After each download of the sorting script I have to find the string that are responsible for variables such as $test = file("C:\devanagari.txt"); $fileopen=file("c:\\devanagarisorted.txt"); $outfile2=fopen("C://devanagarisorted1.html","w+"); And as my C disk on my laptop does not likes these operations, I always have to change it to D. If the file is a separate one, than I have to show the path only once, after that no need to open the updated script itself. I experimented with https://github.com/drdhaval2785/SanskritSorting/blob/master/conf.php Please see http://stackoverflow.com/questions/1712973/how-to-include-config-php-efficiently for reference.

drdhaval2785 commented 9 years ago

Done. Now you can change file locations in conf.php

gasyoun commented 9 years ago

My vision of it. Now I have to change only a single place, not 5 lines. Inspired by BASE_PATH.