What shall i add in Apache in order php files see new paths?

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
g_p
Forum Newbie
Posts: 13
Joined: Sun Jan 25, 2009 9:49 am

What shall i add in Apache in order php files see new paths?

Post by g_p »

Hello,

i have a web application which consists of php files and images.
in my php files i refer to a file image like this

Code: Select all


"../".$my_root_site."images/thumbs/".$_SESSION['res'] etc ...

I have a problem now because i changed the location(path) of my images and the php files cannot find the
new location unless i modify all of my files (and they are many!!!) and do

Code: Select all


"../../".$my_root_site."images/thumbs/".$_SESSION['res'] etc ...

My images now are up one level now.

I'm studying for Apache alias and i saw redirect and alias. What am i supposed to add in Apache in order
for my php files to see the new path and not the old path. Shall i use regex?

Please, any advice would be very helpful!!!

Thanks
Brenden
Forum Newbie
Posts: 12
Joined: Fri May 28, 2010 2:12 am

Re: What shall i add in Apache in order php files see new pa

Post by Brenden »

If you have Dreamweaver you can do a folder-wide find/replace
Post Reply