So, here is how you set it correctly…
Let’s say this is your site:
http://cfa-football.com/
So, the ROOT is that… http://cfa-football.com/
If you store your code under ROOT/HTML/ as you showed in the last post, your page is something like:
http://cfa-football.com/html/NCFA.php But, this depends on what you are using for a server and how it is
set up for the defaults to the site. Sometimes that your domain and PUBLIC_HTML or whatever. SO, it is
normally set up as most sites are laid out loosely like this…
ROOT
—Libraries
------Javascript
------Includes
—Images
—Data
------PDFs
—Uploads
—ETC
Basically any website has special folders that are used for various reasons. You have to know your layout
of your site. If your PHP code page is stored at level 2 (in a folder that is inside of the ROOT), then, any
pointers to a level 2 folder (another folder in the ROOT) would need to use “…/” to point it back one level
to level 1 (ROOT) then to the needed folder. If the code page is in a level 2 folder and needs to access a
level 3 folder not inside the current folder, it would need something like this:
“…/” get back to level 1 or ROOT…
“…/Libraries” Go to the level 2 folder
“…/Libraries/Includes/” Go to the level 3 folder
Your code in any folder can access any other folder, but, has to be pointed in the correct order.
Hope that makes sense…