Jump to content


Photo

Whats the meaning of this...


  • Please log in to reply
1 reply to this topic

#1 3s2ng

3s2ng
  • Members
  • PipPipPip
  • Advanced Member
  • 45 posts

Posted 05 September 2006 - 10:08 PM

Hello Freaks,

I'm just a noob in PHP and I'm wondering whats the meaning of these.

include ( "./defaults.php" );

As you noticed before defaults.php that it has "./" in it. What probably the meaning of it?

Becuase When I try to run the above code an error like this one

Warning: include(C:/apache/htdocs/directory./template/default/header.php) [function.include]: failed to open stream: No such file or directory in c:\apache\htdocs\directory\index.php on line 44

Thanks
MARK



#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 05 September 2006 - 10:24 PM

Well the ./ tells PHP to look in the current working directory.

I have no idea why it is failing. Does it work if you remove ./ from the include statement




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users