Hi
Need a help here and thanks in advance. 😉
Trying to rename an image where the fields that changed in the new image name go in the $fotoName variable. I wrote:
rename('"../images/folder/".$campos["foto"]', '"../images/folder/".$fotoName');
Error: Renanme failed. No such file or directory in...
I wrote a script that saves the following image: ../images/folder/photo_cid_1_1.gif WHERE the numbers refer to a page_ID and position_ID.
When in backoffice mode, if I try to change anything (text, descriptions, etc.) except the page_ID and position_ID, the script works BUT if i just change the page_ID and/or position_ID the image file name changes in the database but not in the folder, for example:
../images/folder/photo_cid_1.1.gif should be renamed to ../images/folder/photo_cid_1_2.gif if I change the position_ID, which corresponds to the second digit of the image name and also change its reference name in the database to photo_cid_1_2.gif