I am getting this error in php that says
A non-numeric value encountered in file.php on line 180
Here is my code
$path = $pth + '/logo.png';
if(file_exists($path)){
echo 'yes';
}
else{
echo 'no';
}
I also got this error with other file operations also like copy()
and mkdir()
. Removing .
and /
makes them work fine.
Any way to solve this error. Thanks in advance :)