Jump to content

[SOLVED] include/require question


Yeodan

Recommended Posts

will this work?

 

require $location . "/link.php";

 

if not will it work if I do this:

 

require "" . $location . "/link.php";

 

if not how can I make this work?

 

 

Both will work provided the variable

$location

has some valid path in it. include/require will fail if it sees

include "/link.php"

. Both of them cannot refer to a relative path.

 

Hope this will help.

 

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.