Forum Moderators: coopster
PHP Warning: include() [<a href='function.include'>function.include</a>]: open_basedir restriction in effect. File(../includes/templates.php) is not within the allowed path(s): (/var/www/vhosts/example.com/httpdocs:/tmp) in /var/www/vhosts/example.com/httpdocs/includes/right_navigation.php on line 1
/httpdocs
___/somefiles/
______index.html (<?php include ("../includes/templates.php");?> this how I am using it in the main index.html in my root folder, by the way this does not work, works only if <?php include ("../includes/111.php");?> or<?php include ("../includes/222.php");?> and so on.)
___/someotherfiles/
______index.html (same as above)
___/includes/
______templates.php (see content of this file below)
______right_navigation.php (see content of this file below)
______111.php
______222.php
______333.php
______aaa.php
______bbb.php
______ccc.php
___/images/
___/JavaScripts/
___index.html (<?php include ("includes/templates.php");?> this how I am using it in the main index.html in my root folder, by the way this does not work, works only if <?php include ("includes/111.php");?> or<?php include ("includes/222.php");?> and so on.)
___contact_us.html
"please do not pay attention to the underscore (___) lines before file names, this is just to show the structure"
<?php include ("../includes/111.php");?>
<?php include ("../includes/222.php");?>
<?php include ("../includes/333.php");?>
<?php include ("../includes/aaa.php");?>
<?php include ("../includes/bbb.php");?>
<?php include ("../includes/ccc.php");?>
s there potential risk of security in the method that you suggested?
This has been fixed in PHP 4.2+ if I'm not mistaking.