Jump to content

Simple Include Question


Northern Flame

Recommended Posts

hello,

this is a simple question about using include,

 

whenever I try to include a file located in a directory

before the current directory, it wont let me unless i use the entire path,

such as http://domain.com/file.php

 

an example of what im talking about:

 

I am at

http://domain.com/directory/file.php

 

and i want to include

http://domain.com/include.php

 

other than writing

include('http://domain.com/include.php');

is there an easier way to include a file in the previous directory?

Link to comment
https://forums.phpfreaks.com/topic/72160-simple-include-question/
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.