sandy1028 Posted April 3, 2012 Share Posted April 3, 2012 <?php> $filename='http://www.example.com/polopoly_fs/1.1034350!/img/httpImage/image.jpg'; $size = getimagesize($filename); print $size; </php> If the image has symbol "!", it takes long time to execute the script. Please tell me how can we avoid this. Quote Link to comment https://forums.phpfreaks.com/topic/260240-special-characters-in-image-url/ Share on other sites More sharing options...
dragon_sa Posted April 3, 2012 Share Posted April 3, 2012 what is creating the directories with the special characters in it? I would always avoid making directories with names like this 1.1034350! Quote Link to comment https://forums.phpfreaks.com/topic/260240-special-characters-in-image-url/#findComment-1333841 Share on other sites More sharing options...
sandy1028 Posted April 3, 2012 Author Share Posted April 3, 2012 It is the client who is creating this. Can you please tell how can we make the execution faster with these special characters. Quote Link to comment https://forums.phpfreaks.com/topic/260240-special-characters-in-image-url/#findComment-1333845 Share on other sites More sharing options...
dragon_sa Posted April 3, 2012 Share Posted April 3, 2012 if the client is creating directories with names like this, I would be cleansing their data(removing special characters) in your scripts that allow them to create such directory names, then you will not have this issue. To fix it now you will have to manually change the directory names and the links that refer to these directories, and fix your scripts that allow them to create directories and file names. Quote Link to comment https://forums.phpfreaks.com/topic/260240-special-characters-in-image-url/#findComment-1333849 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.