Greetings,
The below code is simplistic however after even after revamping filenames, filepaths from those that retained spaces and then underscores the code still doesn't work? You'll note that there is a image statement and I cleanup the spaces and proper case letters all to lower case but the file_exist ignores the file an reports no existence while the image statement loads the constructed file path with the image file that I have provided?...any ideas?
<?php
$test_company=$_REQUEST['domainid'];
$fixed=str_replace(" ","",$test_company);
$fixed2=strtolower($fixed);
$dfile='/'.$fixed2.'/'.$fixed2.'.gif';
echo $dfile;
if (file_exists($dfile)){
echo "The file $dfile exists";}
else{
echo "The file $dfile does not exist";}
?>
<img src='<?php echo $dfile; ?>' alt='Member Services' width='345' height='35'>