SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2009
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Build your own database driven website using php and mysql chapter 6

    On chapter 6 page 191-194 the whole script wont work and keep getting errors. I have looked at the files for the book and also tried running them off that and keep getting same error:

    See below


    Warning: include_once(H:/xampplite/htdocs/includes/magicquotes.inc.php) [function.include-once]: failed to open stream: No such file or directory in H:\xampplite\htdocs\chapter6\jokes-helpers\index.php on line 2

    Warning: include_once() [function.include]: Failed opening 'H:/xampplite/htdocs/includes/magicquotes.inc.php' for inclusion (include_path='.;H:\xampplite\php\PEAR') in H:\xampplite\htdocs\chapter6\jokes-helpers\index.php on line 2

    Warning: include(H:/xampplite/htdocs/includes/db.inc.php) [function.include]: failed to open stream: No such file or directory in H:\xampplite\htdocs\chapter6\jokes-helpers\index.php on line 46

    Warning: include() [function.include]: Failed opening 'H:/xampplite/htdocs/includes/db.inc.php' for inclusion (include_path='.;H:\xampplite\php\PEAR') in H:\xampplite\htdocs\chapter6\jokes-helpers\index.php on line 46

    Warning: mysqli_query() expects parameter 1 to be mysqli, null given in H:\xampplite\htdocs\chapter6\jokes-helpers\index.php on line 48

    Warning: mysqli_error() expects parameter 1 to be mysqli, null given in H:\xampplite\htdocs\chapter6\jokes-helpers\index.php on line 51

    Error fetching jokes:


    Any help anyone can give me will be greatly appreciated

    Justin

  2. #2
    SitePoint Zealot atetlaw's Avatar
    Join Date
    Feb 2007
    Location
    Melbourne, Australia
    Posts
    171
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The script is looking for two files:

    H:/xampplite/htdocs/includes/magicquotes.inc.php
    H:/xampplite/htdocs/includes/db.inc.php

    and cannot find them at the location above.

    Just check that those files are in the H:/xampplite/htdocs/includes dirtectory.

  3. #3
    SitePoint Member
    Join Date
    Nov 2009
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    all fixed its ok. all it was, was that I had put the includes folder in the chapter directory.

    Thanks

    Justin


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •