Page 1 of 1

going back a directory to retrieve image?

Posted: Wed Jun 19, 2002 11:17 am
by Patriot
how do you do this in php?
like if you want to include a file in previous directory.
pretend your file is in /tutorials and you want to include the file in the root, how would you? i can't move it, because the file is a pollbooth, and needs alot of others

Posted: Wed Jun 19, 2002 11:53 am
by twigletmac

Code: Select all

include '../thisfile.php';
Put as many ../ as you have folders to go back.

Mac