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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

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

Post 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
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.

Post by alex.barylski »

Can't you copy files locally and run a quick search and replace on your includes?
User avatar
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.

Post by tecktalkcm0391 »

yeah, but there are so many files. i just thought one script, let it run. it would all get done.
Post Reply