Jump to content

Archived

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

3s2ng

Whats the meaning of this...

Recommended Posts

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 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

Share this post


Link to post
Share on other sites
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

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.