[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 136
  • Last Modified:

Web Server directory:


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!


0
duta
Asked:
duta
  • 3
1 Solution
 
shobinsunCommented:
Hi,

include ( "./folderAA/ fileA.php ) ;
0
 
shobinsunCommented:
Hi,

Also I think the FolderA  adn folderA are same.
0
 
shobinsunCommented:
Hi,

If FolderA and folderA are different:

include ( "../folderA /  folderAA /  fileA.php" ) ;
0
 
dutaAuthor Commented:
Thank you very much for your kind, prompt tip.

Yes,  folderA in both paths are the same folder.

Still I experience the same problem.

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now