Jump to content

Archived

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

Gruzin

sipmle question

Recommended Posts

I'am trying to include file from other folder, but....

<?php
require ("../eng/include.php");
?>

Share this post


Link to post
Share on other sites
but ... what?

The syntax is right, so if the file isn't being included then the relative addressing is incorrect.

Share this post


Link to post
Share on other sites
Warning: main(): Unable to access ../eng/include.php in /users/3d_cn/html/test/index.php on line 2

Warning: main(../eng/include.php): failed to open stream: No such file or directory in /users/3d_cn/html/test/index.php on line 2

Fatal error: main(): Failed opening required '../eng/include.php' (include_path='./:/apache/php/lib') in /users/3d_cn/html/test/index.php on line 2

???

Share this post


Link to post
Share on other sites
If your are getting that error then either your relative addressing is wrong, or the file your are including doesnt exist.

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.