It looks like you have gone one too many directories up. I presume the “db” folder is inside of the “masterasp” folder? If so, then try the following:
<?php
include './db/conn.php';
include '/db/conn.php'; #should also work
include 'db/conn.php'; #should again work
?>
By deleting one of the front periods, we are now searching for the “db” folder inside of the current directory, rather than heading one directory up into the main domain folder when searching for you “db” folder.
You could also use an absolute path, instead of calculating the whereabouts of the connection file relative to the file system you are working in.
The code you have given shows that you are looking at the next directory up from the “providers” folder, into “masterasp” (where the “inc” folder exists). Am I missing something?
Also, please note that it’s not the best idea in the world to make files with db credentials etc world viewable; better to put them somewhere above the document root.
If you have to put them there, make sure to add a .htaccess file in the directory that denies direct access via web (php will still be able to read files in that directory no problem)