I am useing Bluehost web hosting and the website that I am building is located in the subdomain, every time when I try to use
require_once("Connectdb.php") or die ("require fail!");
the web page shows nothing, just a blank page.
I tried using
require_once(dirname(dirname(__FILE__))."/Connectdb.php");
but still, a blank page is returned…
Your script is “white screening” because it has an error but your server has errors turned off so there’s no output. Put these at the top of the very first file (possibly index?)
And normal errors should show on the page. A fatal error (like require_once) will still stop the script from executing though.