Web Server directory:

Posted on 2009-04-26
Last Modified: 2012-05-06

I have a hard time to enter a right path in a PHP file.

Path A:   /public_html / folderA /  folderAA /  fileA.php

Path B:  /public_html / FolderA / fileB.php

I need to include fileA.php in fileB.php.
 Is the following  command right?

include ( "/folderAA/ fileA.php ) ;

Thanks a lot!

Question by:duta
    LVL 14

    Expert Comment


    include ( "./folderAA/ fileA.php ) ;
    LVL 14

    Expert Comment


    Also I think the FolderA  adn folderA are same.
    LVL 14

    Accepted Solution


    If FolderA and folderA are different:

    include ( "../folderA /  folderAA /  fileA.php" ) ;

    Author Comment

    Thank you very much for your kind, prompt tip.

    Yes,  folderA in both paths are the same folder.

    Still I experience the same problem.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Scale it in WD Gold

    With up to ten times the workload capacity of desktop drives, WD Gold hard drives employ advanced technology to deliver among the best in reliability, capacity, power efficiency and performance.

    Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
    Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now