Jump to content
Larry Ullman's Book Forums

Base_Uri Connection Failure


Recommended Posts

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

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

 Share

×
×
  • Create New...