Monkuar Posted February 27, 2009 Share Posted February 27, 2009 Ok, i need a php script that only accept's a user that input's .jpg/.gif .png url's. and if user is trying to post a different url then it echo's a error thanks guys PLZ! Link to comment https://forums.phpfreaks.com/topic/147116-how-do-i-add-a-replacement-thingi/ Share on other sites More sharing options...
phpdragon Posted February 27, 2009 Share Posted February 27, 2009 Please check this link for your answer http://au2.php.net/manual/en/function.image-type-to-extension.php Link to comment https://forums.phpfreaks.com/topic/147116-how-do-i-add-a-replacement-thingi/#findComment-772360 Share on other sites More sharing options...
Monkuar Posted February 27, 2009 Author Share Posted February 27, 2009 no sir i jsut want to do a preg(replace if a user does anything that doesnt have a image extension at the end, i got the variables to fit it in i jsut need th ecode, thanks sir love u! Link to comment https://forums.phpfreaks.com/topic/147116-how-do-i-add-a-replacement-thingi/#findComment-772367 Share on other sites More sharing options...
Monkuar Posted February 27, 2009 Author Share Posted February 27, 2009 bump mlk Link to comment https://forums.phpfreaks.com/topic/147116-how-do-i-add-a-replacement-thingi/#findComment-772579 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.