Is there a way to get the absolute path of a file while having it included in another script? So I'm trying to include a file that's in folder A while I'm in folder B but it keeps trying to refer to
Well with what i haven given you, you should be able to get what you’ll need. What you can do with out the above is making the following.
Code:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
upload it to where your own file is and you will get the path where the file is being executed from so if it says /home/site/public_html/dir1/dir2/phpinfo.php your own file would be /home/site/public_html/dir1/dir2/ourownfile.php. If it includes files then you will need to read the above link because there many paths that can be used but you could need or want a specific path.
Hmmmm well thats the problem as i can not find the file.
Ok let me try to explain............
I made a new page in socialengine php " layout editor " and now the page is done i will like to password it but cannot find the root to it if that helps?
Login to your SocialEngine admin panel
Under the Layout menu, click the Layout Manager link
From the Layout Manager page, click the New Page link
Specify a title for the page and click Create Page
Click the Edit Page Info link and specify a value for the PAGE URL option.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.