Hi,
You may need to open individual files by using some for loop and after
reading all the contents of a single fine in a string, try applying a
regular expression something like this -
$FileContent =~ s/\.html/.php/g;
Once regular expression succesully applied, write back the string into the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Mário Gamito wrote:
> My question is how do i change all ocorrences of the string ".html" to
> ".php" inside all the files to change the links for all pages in a snap ?
Awww, use Perl to change the links, but use PHP for server-side
scripting, huh? :(
Hi,
I have thos huge site that is (was) all in .html files.
I've made it dinamyc in PHP and changed all the filename extensions from
.html to .php
My question is how do i change all ocorrences of the string ".html" to
".php" inside all the files to change the links for all pages in a snap ?
I've
Hi,
I have thos huge site that is (was) all in .html files.
I've made it dinamyc in PHP and changed all the filename extensions from
.html to .php
My question is how do i change all ocorrences of the string ".html" to
".php" inside all the files to change the links for all pages in a snap ?
I've