armlocker Posted November 4, 2012 Share Posted November 4, 2012 Hi there - just trying to test the index.php in web browser via FTP but keep getting the folling message: An error occurred in script '/hermes/waloraweb004/b1384/moo.laissezfairelondonco/wolfcut/index.php' on line 15: require(/WEBSITES/ex1/mysql.inc.php) [function.require]: failed to open stream: No such file or directory The corresponding line of error is: [1] => require(/WEBSITES/ex1/mysql.inc.php) [function.require]: failed to open stream: No such file or directory I have a feeling it has something to do with this BASE_URI I have entered below: define ('BASE_URI', '/WEBSITES/ex1/'); define ('BASE_URL', 'http://www.wolfcut.co.uk/'); define ('PDFS_DIR', BASE_URI . 'pdfs/'); define ('MYSQL', BASE_URI . 'mysql.inc.php'); Any help most appreciated Link to comment Share on other sites More sharing options...
Antonio Conte Posted November 4, 2012 Share Posted November 4, 2012 The file mysql.inc.php is not found in the BASE_URI directory. Double check what the file is named, if you forgot to upload it, or if it's in another directory. 1 Link to comment Share on other sites More sharing options...
armlocker Posted November 4, 2012 Author Share Posted November 4, 2012 Hi, the mysql.inc.php is indeed in the BASE_URI directory as that was the structure of the code that I downloaded from this site. I think I am stuck on the naming of the location of BASE_URI. I've tried every cominbination under the sun, currently it looks like this: define ('BASE_URI', '/My_Passport/WEBSITES/ex1/'); define ('BASE_URL', 'http://www.wolfcut.co.uk/ex1'); The My_Passport is just an external hard drive with all the files in ex1 under the folder WEBSITES The BASE URK is just a hosting name I am using to test everything in. Any ideas where I am going wrong? Link to comment Share on other sites More sharing options...
Antonio Conte Posted November 5, 2012 Share Posted November 5, 2012 As said, the file does simply not exist where the script looks. This is what the error message says, and from expirence, these errors always comes from stupid mistakes... Try echo out the MYSQL constant or throw in a file_exists() there. In other words; do some simple debugging steps. 1 Link to comment Share on other sites More sharing options...
armlocker Posted November 6, 2012 Author Share Posted November 6, 2012 PROBLEM SOLVED. Because I am testing the site live via my hosting provider - FatCow - I simply asked them the path to my folder. Thanks Antonio for the assistance. 1 Link to comment Share on other sites More sharing options...
Recommended Posts