This Example, shows you how to rename file or images name within folder. You can use this code and execute this code according to your need. Now, Go through this code.
Syntax: - opendir('foldername1/') opening given folder where all file or image exists.
Syntax: - readdir($dir_handle) Reading the folder or Directory for file.
Note Here: - File name should not contain (.) Dot.
Note => "folder_name1" is the folder where your all images placed.
And "folder_name2" is the folder where you will find the images after renaming or changing the file-name.
folder_name1 -- Images should be in this folder.
folder_name2 -- Keep this folder blank or empty.
Don't forget to give feedback and keep visiting.
if you have any query about Google Adsense or blogging the contact me through contact form. Response you back as soon as possible. Thanks,
'; rename( "folder_name1/$acctual_file","folder_name2/$Change_image_Name"); } closedir($dir_handle); } ?>
Syntax: - opendir('foldername1/') opening given folder where all file or image exists.
Syntax: - readdir($dir_handle) Reading the folder or Directory for file.
Note Here: - File name should not contain (.) Dot.
Note => "folder_name1" is the folder where your all images placed.
And "folder_name2" is the folder where you will find the images after renaming or changing the file-name.
folder_name1 -- Images should be in this folder.
folder_name2 -- Keep this folder blank or empty.
Don't forget to give feedback and keep visiting.
if you have any query about Google Adsense or blogging the contact me through contact form. Response you back as soon as possible. Thanks,
0 comments :
Post a Comment