Jump to content

[SOLVED] page include not working


aniesh82

Recommended Posts

Hi,

 

I have created a page and it includes another page from the same directory.. But it doesn't executes and returns fatal error... The error returned is below:

 

Warning:  require(1) [function.require]: failed to open stream: No such file or directory in /home/.dorkis/msavery/mcat-prep.com/_members/test9.php on line 2

 

Fatal error:  require() [function.require]: Failed opening required '1' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.dorkis/msavery/mcat-prep.com/_members/test9.php on line 2

 

 

Is it due to any setting in php.ini ?

 

 

Link to comment
Share on other sites

no it only means u have placed a file which doesnt exist

 

Warning:  require(1) [function.require]: failed to open stream: No such file or directory in /home/.dorkis/msavery/mcat-prep.com/_members/test9.php on line 2

 

it should be

 

../dorkis/........

 

not a single dot go to test9.php line two n make sure its the correct path

 

Link to comment
Share on other sites

Thank you for your reply..

 

Below the page, which includes the page ttt.php

<?php

include('ttt.php') or die('Could not found');

echo "FOUND";

?>

 

 

Error Returned:

**************

 

 

Warning: include(1) [function.include]: failed to open stream: No such file or directory in /home/.dorkis/msavery/mcat-prep.com/_members/test9.php on line 1

 

Warning: include() [function.include]: Failed opening '1' for inclusion (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.dorkis/msavery/mcat-prep.com/_members/test9.php on line 1

FOUND

 

 

I have uploaded both the pages to same directory and when I executes the that includes the second one, it returns the following error.. I am fully confused and think that, it is because of some php.ini settings.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.