Jump to content
Larry Ullman's Book Forums

Search the Community

Showing results for tags 'base_uri'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Single Editions
    • Modern Javascript: Develop and Design
    • The Yii Book
    • Effortless Flex 4 Development
    • Building a Web Site with Ajax: Visual QuickProject
    • Ruby: Visual QuickStart Guide
    • C++ Programming: Visual QuickStart Guide
    • C Programming: Visual QuickStart Guide
    • Adobe AIR: Visual QuickPro Guide
  • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (5th Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (4th Edition)
    • PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide (3rd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (2nd Edition)
    • PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide (1st Edition)
  • PHP for the Web: Visual QuickStart Guide
    • PHP for the Web: Visual QuickStart Guide (5th Edition)
    • PHP for the Web: Visual QuickStart Guide (4th Edition)
    • PHP for the Web: Visual QuickStart Guide (3rd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (2nd Edition)
    • PHP for the World Wide Web: Visual QuickStart Guide (1st Edition)
  • Effortless E-commerce with PHP and MySQL
    • Effortless E-Commerce with PHP and MySQL (2nd Edition)
    • Effortless E-Commerce with PHP and MySQL
  • PHP Advanced: Visual QuickPro Guide
    • PHP Advanced and Object-Oriented Programming: Visual QuickPro Guide (3rd Edition)
    • PHP 5 Advanced: Visual QuickPro Guide (2nd Edition)
    • PHP Advanced: Visual QuickPro Guide
  • MySQL: Visual QuickStart Guide
    • MySQL: Visual QuickStart Guide (2nd Edition)
    • MySQL: Visual QuickStart Guide (1st Edition)
  • Other
    • Announcements
    • Newsletter, Blog, and Other Topics
    • Forum Issues
    • Social

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 3 results

  1. I am finalizing the coding from Chapter 3 and cannot get the Account and Admin drop downs to display properly. One possible cause may be that I haven't correctly configured the BASE_URI and BASE_URL settings in the config file. Is there a quick way to check to see that I have configured these properly? Note: I can successfully connect to the DB, and the $_SESSION['user_id'] is set. Thanks!
  2. I have been reading through all the URI based posts but I still can’t get the Coffee site example working on my local machine. I have my site located here: C:\apache\htdocs\eCom01\ I have the following setup in my config.php file: define('BASE_URI','C:/apache/htdocs/eCom01/'); define('BASE_URL','http://localhost:8080/ecom01/'); define('MYSQL','includes/mysql.inc.php'); When I view http://localhost:8080/ecom01/shop.php all images display and data is being pulled from the database. Here’s what the relative links look on this shop.php file: require('./includes/config.php'); include('./includes/header.html'); require(MYSQL); Inside my header.html file I have tried to setup the links 2 different ways: <li><a href="/shop/coffee/">Coffee</a></li> <li><a href="./shop/goodies/">Goodies</a></li> When I click the Coffee link, I get a NOT FOUND error (The requested URL /shop/coffee/ was not found on this server.) Somehow it is dropping the “/eCom01/” folder… When I click the Goodies link, the page displays all the content from the database, but does not display the css file or any of the pictures. I have been trying to trouble shoot this, but cannot come up with a fix. I have tried defining the BASE_URI and BASE_URL to many different values, but no matter what I set those to, I get the same results. I also added an echo $_SERVER['DOCUMENT_ROOT'] ; command on the shop.php file. This always displays “C:/apache/htdocs” I am assuming this issue has something to do with setting the BASE_URI and URL items, but I can’t figure it out. Even if I comment out those 2 lines, the mySql connection still works. Is there some setting I have change in my apache configuration file to allow these changes? When I change these URI and URL variables, shouldn’t the $_SERVER[‘DOCUMENT_ROOT’] reflect them? Any and all help is appreciated.
  3. Greetings, I apoligize for jumping in the middle of this conversation but I too am going crazy trying to get the app started. I am running Win 7 Professional SP1, installed xampp (Version 1.8.0) from ApacheFriends many months ago and have been using it for various other projects so I am comfortable w/ the installation. MySQL v 5.5.25a; Apache 2.4.2; PHP 5.4.4. Apache is running as a service on Port 80 and 443. MySQL is running as a service on Port 3306. Therefore, DOCUMENT_ROOT is c:/xampp/htdocs. The first exercise is in a directory under DOCUMENT_ROOT in a directory called /ecommerce1. config.inc.php and mysql.inc.php are in the includes directory under ecommerce1. So, my question is 2 fold: What exactly does BASE_URI and BASE_URL represent or mean? Looking at the previous question and answer under "Base URL and URI, I am lead to believe that BASE_URI would be 'c:/xampp/htdocs/ecommerce1/' and BASE_URL would be 'localhost/'? Is this a correct assumption? Now the bigger problem!! When trying to execute "http://localhost/ecommerce/index.php" after completing chapter 3 using FireFox, I get severe errors. To remove any of my mistakes, I have substituted the author's code for config.inc.php, mysql.inc.php, index.php, header.php, footer.php & styles.css. config.inc.php has 'BASE_URI', 'c:/xampp/htdocs/ecommerce1/'; 'BASE_URI', 'localhost/', MYSQL, BASE_URI . 'includes/mysql.inc.php' config.inc.php is in the includes directory. Chapter 4 code at the end of this module has been commented out. mysql.inc.php defines have been changed to reflect my DB_USER, PASSWORD parameters. line 42 of the footer.php has been commented out (require ('includes/login_form.inc.php'); Now this is what I am getting when I run localhost/ecommerce1/index.php!! Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at postmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4 Server at localhost Port 80 The Apache Error Log: [Fri Sep 14 04:56:41.851393 2012] [core:error] [pid 2748:tid 1724] [client 127.0.0.1:50235] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Fri Sep 14 04:56:41.851393 2012] [core:error] [pid 2748:tid 1724] [client 127.0.0.1:50235] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Fri Sep 14 05:18:52.937697 2012] [core:error] [pid 2748:tid 1724] [client 127.0.0.1:50661] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Fri Sep 14 05:18:52.937697 2012] [core:error] [pid 2748:tid 1724] [client 127.0.0.1:50661] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Fri Sep 14 14:33:44.195647 2012] [mpm_winnt:notice] [pid 2128:tid 392] AH00422: Parent: Received shutdown signal -- Shutting down the server. [Fri Sep 14 14:33:46.223650 2012] [mpm_winnt:notice] [pid 2748:tid 268] AH00364: Child: All worker threads have exited. [Fri Sep 14 14:40:22.228474 2012] [core:warn] [pid 2796:tid 392] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Fri Sep 14 14:40:22.602875 2012] [ssl:warn] [pid 2796:tid 392] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Sep 14 14:40:24.537278 2012] [mpm_winnt:notice] [pid 2796:tid 392] AH00455: Apache/2.4.2 (Win32) OpenSSL/1.0.1c PHP/5.4.4 configured -- resuming normal operations [Fri Sep 14 14:40:24.537278 2012] [mpm_winnt:notice] [pid 2796:tid 392] AH00456: Server built: May 13 2012 14:10:15 [Fri Sep 14 14:40:24.537278 2012] [core:notice] [pid 2796:tid 392] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache' [Fri Sep 14 14:40:24.537278 2012] [mpm_winnt:notice] [pid 2796:tid 392] AH00418: Parent: Created child process 2648 [Fri Sep 14 14:40:26.736882 2012] [ssl:warn] [pid 2648:tid 268] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache] [Fri Sep 14 14:40:26.783682 2012] [mpm_winnt:notice] [pid 2648:tid 268] AH00354: Child: Starting 150 worker threads. [Fri Sep 14 19:09:28.865456 2012] [core:error] [pid 2648:tid 1728] [client 127.0.0.1:50528] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Fri Sep 14 19:09:28.870456 2012] [core:error] [pid 2648:tid 1728] [client 127.0.0.1:50528] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. Any suggestions? Thx John
×
×
  • Create New...