+ Reply to Thread
Results 1 to 5 of 5

Thread: how to access file in root directory

  1. #1
    phuhuyenhnsg
    Guest

    how to access file in root directory

    my structure is like >>



    home >> index.html,login-user.php, login(folder for scripts) >>(subfolder under login folder) myaccount.php, checkuser.php, login.php



    now from login.php i want to access login-user.php which is in above level..



    what would be the url ....????

    More:


  2. #2
    mochu
    Guest

    you can reference the file location absolute or relative



    absolute would be something like /var/www/html/login-user.php or similar

    relative would be easier, ../login-user.php



    the double .. means to traverse up the hierarchy one step

  3. #3
    LeonSting
    Guest


    Quote:







    relative would be easier, ../login-user.php


    yes this is the easiest way it search in all folders and sub-folders for the name of the page

  4. #4
    inter462
    Guest

    thanx brothers

+ Reply to Thread

Similar Threads

  1. [Plesk] How to enable root access??
    I like to see what's in folder /home/httpd/vhosts//conf/ but i get permission denied and i need to be login as root. nvermind I need to add...
  2. how to change root directory
    i have this code define('ROOT', slash(dirname(__FILE__))); but i get a error like this Warning:...
  3. How to install control Panel in layered tech VPS with only root access
    Today I have received a free VPS from layered tech. As my VPS details I have only received an IP address, user name and password. Now I want to set...
  4. What are some shell/root access programs you use?
    I have not accessed the shell or root of my server in a very long time...and have misplaced the software I use to use. I was thinking it was called...
  5. Directory or SubDomain? Redirect or root?
    Hello I searched the forum about these questions but I didn't found a specific solution: From a SEO point of view: It is better to install your...

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Welsh Yiddish