Search the Community
Showing results for tags 'config'.
-
Hi, I bought this book effortless ecommecre 2nd edition and downloaded the source code from this website. The first pdf example worked but the coffee ecommerce script isn't working properly. First, I am using xampp and the directory i stored the code for coffee ecom is at "c:/xampp/htdocs/ullman". what should be my base uri and base url. I did "define('BASE_URI', 'c:/xampp/htdocs/ullman/'), define('BASE_URL', 'localhost/ullman/');" which made the site work partially. For instance, the Home, Coffee, Goodies, Sales, Wish List, Cart works but the css for pages having url "http://localhost/ullman/shop/" like Coffee, Goodies and Sales isn't working. The page shows the content but no design. Why? Second, on cart.php there are two options, Update quantity and checkout. The checkout takes me to "https://localhost/ullman/checkout.php" (which works partially, again there is no css design) but when I try to update the quantity there is a 404-object not found error with url becoming "http://localhost/cart.php". Can anyone guide what is wrong that I am doing. Thanks.
-
Please see below: I am copying the information from the book, but for some reason I keep getting errors for the following 2 lines. Any suggestions? ** Error on this line** - function my_error_handler($e_number, $e_message, $e_file, –$e_line, $e_vars){ $message = "An error occurred in script '$e_file' on line $e_line:\n$e_message\n"; $message .= "<pre>" .print_r(debug_backtrace(), 1) . "</pre>\n"; if (!LIVE){ echo 'div class="alert alert-danger">' .nl2br($message) . '/div'; }else{ error_log($message, 1, CONTACT_EMAIL, ** Error on this line** – 'From:admin@example.com'); if ($e_number !=E_NOTICE){ echo '<div class="alert alert-danger">A system error occurred. We apologize for the inconvenience.</div>'; } }//End of $live IF-ELSE. return true; }//End of my_error_handler() definition.
-
Hi, On page 49 instructions are given for the setting up of the BASE_URI constant for both a development environment and a production environment. In my production site, I have access to a folder named httpdocs within which is the opening index.php script. To get to this httpdocs folder I use the site IP address or to start the website I use the www.... site URL. Can you please advise exactly what I need to put in the production BASE_URI constant? Many thanks in anticipation.