Find and replace text in all files using PHP -
hi everyone,
i have list of php files in project.if want replace index.php
text home.php
, save it. change in php file in directory how can code this.
i can find , replace in single file don't know way search in whole directory , replace kindly me know way. im new section.thanks in advance.
you can use glob files in directory, glob(__dir__.'/*.php')
give php files in current directory. if need in production server use if can run command line function since web server not should have write access files
Comments
Post a Comment