recursively copy php.ini to www directories
My web host allows me to modify server parameters like register globals by writing a php.ini with, for instance,
register_globals = off and only that! The server takes all my host's php.ini as default except for the directory where that php.ini instructs to switch register globals off. The problem is that if I want to set that parameter for all my web site I would have to copy my small php.ini to every directory in the www tree . I can't do that. How can I copy my php.ini to all my directories? Although I can request ssh access to my host, is there a way to achieve this whenever I need it, with, for instance a simple ftp client? |
find /path/to/htdocs -type d -exec cp /path/to/php.ini {} \;
HIH! :) Thx for the affero, btw :} |
Well, the OP is asking for a ftp solution, while Tinkster one requires shell access ...
I guess they can be reconciled by using LUFS ftpfs. |
Tinkster, your tip worked in my local server :)
jlliagre, I tried to install lufs following your suggestions but I bumped into a series of install problems, probably related to the kernel. I won't request shell access to my host yet; I may try a php script at http://tips-scripts.com/?tip=php.ini_copy#tip instead |
All times are GMT -5. The time now is 03:39 AM. |