Jump to content

Archived

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

desithugg

include problem

Recommended Posts

[code]for some reason when i try to include something in my base dierectory by using
code]
<? include("/file.php"); ?>[
Warning: main(/file.php): failed to open stream: No such file or directory in /usr/home/osiris/domains/x3teamz.net/public_html/aai/members/forums.php on line 3[/code]
a friend told me to use but im still having some problems
[code]
<? include_BASEDIR_ .("file.php"); ?>
[/code]

can an1 help im not sure what to do

Share this post


Link to post
Share on other sites
try
[code]<? include ('file.php'); ?>[/code]

Note that i did not use the begining / [slash]

[edit]

and just make use the path is right

like <? include ('folder/flie.php'); ?>

Share this post


Link to post
Share on other sites
umm didnt work but when i did
<? include ('.../flie.php'); ?>
it worked i say this once in a code example

Share this post


Link to post
Share on other sites
can you post all the code and its relative location to the file that is calling it

Thanx

Share this post


Link to post
Share on other sites

×

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.