If it was working, it was a temporary configuration error that allowed it to work. Remote MySQL connections are not allowed on Free Hosting (inbound or outbound); the MySQL server is only supposed to be accessible as "localhost".
Please don't post new questions into existing threads.
Nothing "above" your document root (public_html or www) is accessible via HTTP; you need to use the filesystem on the server. (On a general note, including anything local via URIs is a bad idea; it invokes an unnecessary loop-back and will probably return the results of running the file, assuming that the file has a .php extension. Oh, and it's usually a good idea to use require or require_once rather than include for something upon which the rest of the page depends. If an include goes missing, you won't notice until you try to use it, which can result in some pretty nasty and confusing error messages going out to the user (or quickly filling your error log file). When a require goes missing, you get an immediate error telling you exacctly what the problem is.)
Your document root (/home/webjusti/public_html) is accessible using $_SERVER['DOCUMENT_ROOT']. To get from there to your user home directory, use the dot-dot directory, then work downward from there if needed. So:
Thank you essellar. I understood everything you said. I wasn't sure but I thought now that the thread is started here then I'm going to finish it here. I changed from include to: require_once $_SERVER['DOCUMENT_ROOT'] . '/../wp-config.php'; and it works fine but only on servers that are not localhost unlike webjustice.x10.mx . I have the same website in another hosting that does not use localhost. webjustice.t15.org they use mysql.freehostingnoads.net for MySQL host. My main objective however is to be able to use the localhost of XAMPPLITE ENVIROMENT (DESKTOP SERVER APP FOR CREATING A LOCAL ENVIROMENT OF WORDPRESS.) Or if you are no t familiar with XAMPPLITE to at least be able to use it on localhost of webjustice.x10.mx Thanks in advance again . Note: usually when I do something wrong with the require_once I get an error on the page that points to the line number of the error. But in the localhost it wont even give me any errors or parse the information at all.
It works just fine with "localhost" as the database server (both on various local stacks, like XAMPP and WampServer, as well as on x10Hosting servers). Are you sure that wp-config.php lives where you think it does?
Seeing the page isn't the same ting as seeing the code. I can see parse errors (it appears that the PHP tags are being closed prematurely), but there's absolutely no way for me to tell what the real problem is. Please not that this may have little to do with the include, and a LOT to do with different PHP versions/settings.
HANG ON A MINUTE...
You're issuing the PHP. And you're doing that because you're using .htm as the page's file extension. Only pages that use .php as a file extension are parsed and executed as PHP by default. If you want to run PHP on pages having different file extensions, you need to set that in your .htaccess file.