3s2ng Posted September 5, 2006 Share Posted September 5, 2006 Hello Freaks,I'm just a noob in PHP and I'm wondering whats the meaning of these.[code]include ( "./defaults.php" );[/code]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 oneWarning: 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 44ThanksMARK Quote Link to comment https://forums.phpfreaks.com/topic/19824-whats-the-meaning-of-this/ Share on other sites More sharing options...
wildteen88 Posted September 5, 2006 Share Posted September 5, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/19824-whats-the-meaning-of-this/#findComment-86748 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.