- if i'm in a Subfolder i need to include a file from the main folder
i'm using $path = $_SERVER['DOCUMENT_ROOT'];
but on my pc there's more than one website therefor i have to add
an additional folder to that path
$path ="$path/MYwebsite/";
everything is good but every time i edit those files and i have to upload it
on a server, i have to remove that last code.
is there an easier way?

- what's the difference between die() and exit?

-If i have a few queries but i want to execute all of them only if none of them
fails, is there a way of doing that? for example if i create many database
tables but i don't want the script to run if it fails creating one of those tables.
(without adding a code for removing all tables if one query failed)