Vairable Question |
Hello
I have a function and its called delete. When i delete my file it deletes it from two places, image/cache and another the saved cached image displays like a&t_logo-100x100.jpg 100x100 means width and height. currently on this line $cached_image = FCPATH . 'image/cache/' . utf8_substr($path, 0, utf8_strrpos($path, '.')) . '-' . 100 . 'x' . 100 . '.' . $extension; I have to enter the width and height manually. I would like to be able to do this $width & $height replacing the manually entered width and height. $cached_image = FCPATH . 'image/cache/' . utf8_substr($path, 0, utf8_strrpos($path, '.')) . '-' . $width . 'x' . $height . '.' . $extension; How can I make it so when I enter in $width & $height variables that it would pick width and height up automatic. utf8 is a custom helper that's autoloaded PHP Code: <?php In stead of having the width and height in image name should I just have it normal a&t_logo.jpg That I can do what would your thoughts be on that?
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Messages In This Thread |
Vairable Question - by wolfgang1983 - 04-15-2015, 03:59 AM
RE: Vairable Question - by CroNiX - 04-15-2015, 07:53 AM
RE: Vairable Question - by wolfgang1983 - 04-15-2015, 09:09 AM
|