Welcome Guest, Not a member yet? Register   Sign In
Check if Image exists in folder
#2

[eluser]Glen Swinfield[/eluser]
Code:
if(!file_exists($file)){
   // display alternative
}else{
   // display file
}

Hope this helps - there may be a CI alternative - but what's the point when there's a native php function.


Messages In This Thread
Check if Image exists in folder - by El Forum - 07-10-2007, 05:14 AM
Check if Image exists in folder - by El Forum - 07-10-2007, 06:07 AM
Check if Image exists in folder - by El Forum - 07-10-2007, 07:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB