Jump to content


Photo

sipmle question


  • Please log in to reply
4 replies to this topic

#1 Gruzin

Gruzin
  • Members
  • PipPipPip
  • Advanced Member
  • 448 posts
  • LocationGeorgia

Posted 20 July 2006 - 02:29 PM

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

<?php
require ("../eng/include.php");
?>
I don't need your script, I'll try to write it myself

#2 ChaosXero

ChaosXero
  • Members
  • PipPipPip
  • Advanced Member
  • 80 posts

Posted 20 July 2006 - 02:31 PM

But..? What seems to be the problem?

#3 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 20 July 2006 - 02:32 PM

but ... what?

The syntax is right, so if the file isn't being included then the relative addressing is incorrect.
Legend has it that reading the manual never killed anyone.
My site

#4 Gruzin

Gruzin
  • Members
  • PipPipPip
  • Advanced Member
  • 448 posts
  • LocationGeorgia

Posted 20 July 2006 - 02:33 PM

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

???
I don't need your script, I'll try to write it myself

#5 wildteen88

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

Posted 20 July 2006 - 03:46 PM

If your are getting that error then either your relative addressing is wrong, or the file your are including doesnt exist.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users