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
PHP editing PHP files --- Please help my live site is down.
Moderator: General Moderators
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: PHP editing PHP files --- Please help my live site is down.
Can't you copy files locally and run a quick search and replace on your includes?
- tecktalkcm0391
- DevNet Resident
- Posts: 1030
- Joined: Fri May 26, 2006 9:25 am
- Location: Florida
Re: PHP editing PHP files --- Please help my live site is down.
yeah, but there are so many files. i just thought one script, let it run. it would all get done.