Page 1 of 1

PHP editing PHP files --- Please help my live site is down.

Posted: Mon Feb 04, 2008 3:00 pm
by tecktalkcm0391
Hello,

My live site is down because my ISP decided last night to move to a new server locationa and all of my requires/includes are not pointed to the correct file. I have like 250 PHP files with the includes/requires in them. Is there a way for my to have PHP run and edit any filetype I want (so an array of like ".htm", ".html", ".php") and replace the require/include beginning?

It needs to change from /home/[site]/ to /home/users/[myusername]/[site]/

Thanks!
Chris

Re: PHP editing PHP files --- Please help my live site is down.

Posted: Mon Feb 04, 2008 3:22 pm
by alex.barylski
Can't you copy files locally and run a quick search and replace on your includes?

Re: PHP editing PHP files --- Please help my live site is down.

Posted: Mon Feb 04, 2008 3:27 pm
by tecktalkcm0391
yeah, but there are so many files. i just thought one script, let it run. it would all get done.