Jump to content


Photo

include problem


  • Please log in to reply
4 replies to this topic

#1 desithugg

desithugg
  • Members
  • PipPipPip
  • Advanced Member
  • 281 posts
  • LocationScarborough

Posted 13 August 2006 - 04:27 PM

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
a friend told me to use but im still having some problems
<? include_BASEDIR_ .("file.php"); ?>

can an1 help im not sure what to do

#2 desithugg

desithugg
  • Members
  • PipPipPip
  • Advanced Member
  • 281 posts
  • LocationScarborough

Posted 13 August 2006 - 04:27 PM

and yes im sure the file exsists

#3 whare

whare
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 13 August 2006 - 04:30 PM

try
<? include ('file.php'); ?>

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

[edit]

and just make use the path is right

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

#4 desithugg

desithugg
  • Members
  • PipPipPip
  • Advanced Member
  • 281 posts
  • LocationScarborough

Posted 13 August 2006 - 04:41 PM

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

#5 whare

whare
  • Members
  • PipPipPip
  • Advanced Member
  • 75 posts

Posted 13 August 2006 - 04:43 PM

can you post all the code and its relative location to the file that is calling it

Thanx




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users