SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2011
    0 Post(s)
    0 Thread(s)

    Chapter 3 page 110

    I am learning PHP from Kevin Yank's book Build your own Database Driven Web Site using PHP & MYSQL.

    my question is when I do step 5
    include 'welcome.html.php';

    i get an error function.include failed to open stream (file not found)

    I am reading the directions and I cannot find anywhere in the chapter that tells me to create this file 'welcome.html.php'.

    I have created all the 'welcome 1-8' and they all seem to work except for this last one.
    Am I missing something?
    can someone help me on this?

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    West Springfield, Massachusetts
    194 Post(s)
    2 Thread(s)
    Hi magdam1, welcome to the forums,

    The book is a bit out of sync. The author didn't figure on someone wanting to try it before they read the explanation of what the code is doing.

    If you look on page 112 you'll see:
    All thatís left is to write the welcome.html.php template. Here it is:
    followed by the code example, then
    Thatís it! Fire up your browser and point it at http://localhost/welcome/ (or
    http://localhost:8080/welcome/ or similar if you need to specify a port number for
    your web server). Youíll be prompted for your name, and when you submit the
    form, youíll see the appropriate welcome message. The URL should stay the same
    throughout this process.
    I'm the same way, always wanting to test things. I don't let reading get in the way of the fun stuff except as a last resort!


Posting Permissions

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