Good Morning
I have the following directory structurein a folder named testing in the root.
Database (dir)
--MySQL.php (file in dir)
dkAdmin(dir)
--siteadmin.php (file in dir)
Includes(dir)
--constants.php (file in dir)
--dbknx.php (file in dir)
------------------------------------------------------------------
My db connection class is placed before the header and is:
<?php
// Include DBKNX
require_once ('Includes/dbknx.php');
?>
The above is the only php on the page.
I get these errors:
Warning: main(Includes/dbknx.php) [function.main]: failed to open stream: No such file or directory in D:\inetpub\websites\********\testing\dkAdmin\siteadmin.php on line 3
Fatal error: main() [function.require]: Failed opening required 'Includes/dbknx.php' (include_path='.;C:\php5\pear') in D:\inetpub\websites\***********\testing\dkAdmin\siteadmin.php on line 3
There is an index.php that sits at /testing/index.php and it uses the same:
<?php
// Include DBKNX
require_once ('Includes/dbknx.php');
?>
and returns no errors.
This must be some path issue - not sure?





Bookmarks