Please Login or Register

How to copy PHP.INI to all folders

Within public_html create a file with the following syntax included within it:

<pre><?php system("find * -type d|xargs -i cp --verbose php.ini {}/."); ?></pre>COMPLETE!

So, if you labeled the file "copyphpini.php" within public_html and you already have the initial PHP.INI file there, you would go to http://www.maindomain.com/copyphpini.php. This will copy the file to every folder below public_html and should there be any problems, reporting the errors verbosely.

Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Allow_url_include (Views: 323)

awards_sum