[J1.5] Problem with is_dir
Posted: Fri Feb 22, 2008 4:32 pm
Hey,
i'm just starting programming with php and am trying to convert a plugin. i have a problem with is_dir. my code:although my path exists i get the message "Path is not a directory: http://localhost/joomla/images/stories/fruit/"
can anybody please help me?
i'm just starting programming with php and am trying to convert a plugin. i have a problem with is_dir. my code:
Code: Select all
$path = 'images/stories/fruit';
$fullpath = JURI::base() . $path."/";
if ( is_dir($fullpath))
{
.....
}
else die ("Path is not a directory: " .$fullpath);
can anybody please help me?