Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6682853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:45:14+00:00 2026-05-26T04:45:14+00:00

I restructured my already working code. My earlier directory structure was as follows: web

  • 0

I restructured my already working code. My earlier directory structure was as follows:

  • web
    • css
      • style.css
    • model
      • db_functions.inc
    • view
      • view_functions.inc
    • controller
    • index.php

Here is the code snippet which was working:

<?php
    $pageTitle = "Citee.me";

    //include view functions
    include ('view/view_functions.inc');
    //incldue db functions
    include ('model/db_functions.inc');
    doHtmlHeader($pageTitle);
    doBody();
    testMySQL();
    doHtmlFooter();
?>

I now restructured the code to be:

  • web
    • model
      • db_functions.inc
    • view
      • view_functions.inc
    • controller
  • public
    • css
      • style.css
    • js
    • images
    • index.php

Now I modified my index.php code to be as follows (i commented out the db functions to narrow down the problem):

 <?php
    $pageTitle = "Citee.me";

    //include view functions
    include ('/citee/web/view/view_functions.inc');
    //incldue db functions
    //include ('./model/db_functions.inc');
    doHtmlHeader($pageTitle);
    //doBody();
    //testMySQL();
    doHtmlFooter();
?>

I get the error:

PHP Warning:  include(/citee/web/view/view_functions.inc): failed to open stream: No such file or directory in /Library/WebServer/Documents/citee/public/index.php on line 6

PHP Warning:  include(): Failed opening '/citee/web/view/view_functions.inc' for inclusion (include_path='.:/usr/lib/php') in /Library/WebServer/Documents/citee/public/index.php on line 6

PHP Fatal error:  Call to undefined function doHtmlHeader() in /Library/WebServer/Documents/citee/public/index.php on line 9

Not sure why I am getting this error. Is my include path wrong? I tried different combinations but did not help.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T04:45:14+00:00Added an answer on May 26, 2026 at 4:45 am

    PHP complains that the path /citee/web/view/view_functions.inc doesn’t exist, and I also doubt it. Can you cd /citee/web/view/? I bet not.

    If you are trying to access it, you can do it (and is a better practice, thinking about future deployments to different structured server file-systems in the future) with a relative file path.

    So, instead of /citee/web/view/view_functions.inc, you can work from the path of index.php toward the correct relative path: ../web/view/view_functions.inc (.. stands for “go up a directory in the tree”, meaning it will go into your “citee” folder, and then access the “web” folder, and so on.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Following on from my query yesterday , I've restructured my recipe database as follows:
I'm working on research model which outputs results to matlab's .mat file format, and
If the base table underlying a view is restructured, eg. attributes are added, does
Basically I want my HTML structure to be restructured when window gets smaller than
I recently restructured some data in a game I'm working on by making the
In restructured text, how do I write: Chapter 1: Section 1: Some section 1
I'm in the process of converting some LaTeX documentation to restructured text and having
MAJOR EDIT I have restructured my question to be more appropriate and less arbitrary,
We are using TFS Continuous Development model Main Trunk -> Various Development branches ->
I'm tweaking a gallery plugin for a site that I'm working on, so that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.