What shall i add in Apache in order php files see new paths?
Posted: Fri May 28, 2010 3:15 am
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
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
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
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 ...
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 ...
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