php - URL in get parameters returns page not found error -
i trying use timthumb.php image processing on site. when try pass image url timthumb.php using: <img src="'.home_url().'/timthumb.php?src='.$image_attributes[0].'&w=200"/> returns page not found error.
$image_attributes[0] absolute url of image.
when logged in using user account, works non-logged in users returns page not found error.
if pass else except url or if remove http://, returns without issue. need pass image url can generate thumbnails not working guest users.
the issue absolute url not passing parameter, there nothing wrong timthum. changed url converting character of url while passing using str_replace() , again, changed passed parameter url in timthumb.php. works nicely.
Comments
Post a Comment