Hi everyone,
I recently began working on a script that uses the mime_content_type function while listing a directory of files. However, whenever I try using this function, my script stops and it is hard to find the solution without an explanation of the error.
This is my line of code:
$type = mime_content_type($filepath . "/" . $file);
I've heard PHP does not have a debugging tool built in. Does anyone have any suggestions? I'd be looking for something that doesn't require a lot of installation work on every server I work with.
Thanks,
- Matt.
I recently began working on a script that uses the mime_content_type function while listing a directory of files. However, whenever I try using this function, my script stops and it is hard to find the solution without an explanation of the error.
This is my line of code:
$type = mime_content_type($filepath . "/" . $file);
I've heard PHP does not have a debugging tool built in. Does anyone have any suggestions? I'd be looking for something that doesn't require a lot of installation work on every server I work with.
Thanks,
- Matt.