473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Fatal error: require_once() [function.require]: Failed opening required

i have a program in webserver. i run smooth before. but dunno why it sudden prompt out the error below?


Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/var/www/vhosts/db2020.co.uk/application/application/config/admin/config.live.php) is not within the allowed path(s): (/var/www/vhosts/db2020.co.uk/subdomains/admin/httpdocs:/tmp) in /var/www/vhosts/db2020.co.uk/subdomains/admin/httpdocs/index.php on line 11

Warning: require_once(/var/www/vhosts/db2020.co.uk/application/application/config/admin/config.live.php) [function.require-once]: failed to open stream: Operation not permitted in /var/www/vhosts/db2020.co.uk/subdomains/admin/httpdocs/index.php on line 11

Fatal error: require_once() [function.require]: Failed opening required '/var/www/vhosts/db2020.co.uk/application/application/config/admin/config.live.php' (include_path='.:') in /var/www/vhosts/db2020.co.uk/subdomains/admin/httpdocs/index.php on line 11





please help...
Oct 25 '10 #1
1 4793
Hi Kinhoe,

I too have the same problem. Here is the error I get and the code causing it.

Warning: require_once(Company.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/33/3497533/html/lib/config.php on line 134

Fatal error: require_once() [function.require]: Failed opening required 'Company.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/33/3497533/html/lib/config.php on line 134

This is the routine in config.php

}
/**
* Instance the main database connection.
*/
$GLOBALS['tax_mdb2'] = new PDO("mysql:host=".$db_host.";dbname=".$db_name, $db_user, $db_pass);
$conn=mysql_connect($db_host,$db_user,$db_pass) or die("Failed to Connect with Database.");
$out=mysql_select_db($db_name,$conn) or die(mysql_error($conn));

/**
* PHP 5 magic function - to load automaticaly classes. The file, that contain the
* requested class, must be named in the same way as the class itself.
*
* @param string $className
*/
function __autoload($className){

require_once $className.'.php';
}

At this point, I kinda stuck - if anyone has an answer, that would help.

Thanks
Oct 25 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: bettina | last post by:
My Website works pretty good, except when it remains some minutes open without that any click will be made. For example, I'm in breweries.php (a subpage from index.php) and I make nothing except...
2
by: Maximus | last post by:
I installed PEAR HTTP_Upload to my new server and now im getting this error when runnign the script. any help?
1
by: joe10001 | last post by:
Hi all, I just installed CRELoaded (oscommerce fork) on my server and all work fine except that I have a little message at the bottom of the main page : Fatal error: main() : Security alert:...
3
by: Bhavesh1978 | last post by:
does any1 here know why i got this error message when i try to run my program in php Warning: require_once(http://localhost/own work/sql.inc.php) : failed to open stream: HTTP request failed!...
3
by: sadique | last post by:
Hello, Sadique here I've been installing a free source hotel booking system and I encountered an error while trying to go to the second step in the installation process. Fatal error:...
4
by: Z.K. | last post by:
I just create a simple C++.NET Forms project with a simple form and nothing on it. When it compiles, I get this error: fatal error LNK1256: ALINK operation failed (8013144E) : Unexpected...
8
by: dreamer247 | last post by:
hi i am working on a intranet project for last 10 days.the project was previously under someone else... technologies used are php,zope plone mssql in winxp pro. the project in a different server...
3
by: big.sexy.jcw | last post by:
Okay, I just set up my first dedicated server and everything is running fine, except one script that calls a file on another server. Failed opening required 'http://www.example.com/...
10
by: hannoudw | last post by:
Hi there i'm having this error Warning: require_once(C:\wamp\www ours\connection.php) : failed to open stream: Invalid argument in C:\wamp\www\tours\header.php on line 2 Fatal error:...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.