rkovacic
-
Posts
4 -
Joined
-
Last visited
Posts posted by rkovacic
-
-
Turns out the mysql.inc file is not in the 'includes' folder........problem solved.
-
I am getting similar errors when trying to connect to MYSQL (constant):
An error occured in script '/Applications/MAMP/htdocs/phase 1/html/index.php' on line 20:
require(includes/mysql.inc.php): failed to open stream: No such file or directoryWhen I alter the file path, I get -
An error occured in script '/Applications/MAMP/htdocs/phase 1/html/index.php' on line 20:
require(./includes/mysql.inc.php): failed to open stream: No such file or directoryI get the same error messages whether I call the Constant, or use the actual file path.
Help???
-
I am using the eCommerce book as a text in an Advanced Dreamweaver for eCommerce class.
My students have some questions about the definitions of constants on page 58, as follows:
// ************ CONSTANTS *********** //
// Determine location of files and the URL of the site:
define ('BASE_URI', '/path/to/dir/');
define ('BASE_URL', 'www.example.com/');
define ('PDFS_DIR', BASE_URI . 'pdfs/');
define ('MYSQL', BASE_URI . 'mysql.inc.php');Larry, could you define exact values for file & folder paths of these constants for students using WAMP and MAMP localhost testing environments.
Thanks,
--RKaye
Errors With $Dbc Variable
in Effortless E-Commerce with PHP and MySQL
Posted
We are using the exercises in the eCommerce book for an advanced web development course.
We continually have problems with the $dbc variable throwing errors, example:
"An error occurred in script '/includes/footer.html' on line 43:
Undefined variable: dbc"
(this error is not exclusive to the footer.html file, errors have occurred when loading other files as well)
This variable is defined early on in the dynamic processes, as a global variable, in the 'mysql.inc' file.
So I don't understand why other files don't recognize this variable.
Any help troubleshooting is appreciated.
--RK