The path to the pictures is recorded in the database. I bring them through the function from different pages located in the root directory and from different level folders.
How to write the address of these pictures in the database? Relative or absolute?
With relative problems there, but only from certain pages. Each time to determine where the request came from and to change the name of the picture is somehow not serious. I register the absolute address of the http://site.ru/forum/arhiv/1.jpg type, but after that the files are not displayed.