file_exists() acting weird

You are using get_template_directory_uri(), that’s URL, not PATH.

Instead use get_template_directory(), that’ll return PATH. Like:

$csv = get_template_directory() . '/report/report.csv';

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)