Jump to content

including file from different directory


e1seix

Recommended Posts

home/shop/main.php
home/images/logo.jpg
home/security.php

 

3 directory addresses. to include "logo.jpg" within "main.php" i can use

 

include("../images/logo.jpg");

 

but what can i use to include "security.php" i can't get the full stops correct. i've tried both

 

include("security.php");
include(".security.php");
include("/security.php");
include(".security.php");

 

nothing appears to work. any ideas guys?

 

cheers!

Link to comment
https://forums.phpfreaks.com/topic/136961-including-file-from-different-directory/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.