Sunday, December 30, 2018

PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in C:apache2triadhtdocsimagedisplay.php on line 28

hi i am getting an error during my execution of the code : PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in C:\apache2triad\htdocs\imagedisplay.php on line 28




$dir= "C:\apache2triad\htdocs\phppgadmin\images\phpimages";


$file_display= array('jpg', 'jpeg', 'png', 'gif');

if(file_exists($dir)== false)
{
echo "directory x not found";
}
else
{
$dir_content= scandir($dir);


foreach($dir_content as $file)
{
$file_type = strtolower(end(explode('.', $file)));

// echo "$file
";

if($file !=='.' && $file !=='..')
{
//echo "$file
";

echo "', $file, '";
}
}
}
?>


please help

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...