Jump to content

Change word through out 100 file's with php


killah

Recommended Posts

.htaccess is a apache configuration file. It can't do anything of the sort.

 

ssh is a protocol used to connect to a remote shell instance, it can't do anything of the sort either.

 

php probably isn't the best solution to this problem, find & sed on the other hand are. You should be able to execute shell commands via php's shell_exec function.

 

find . -type f -exec sed -i -e 's/crystals/diamonds/g' {} \;

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.