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

  • Home
  • SEARCH
  • 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 5999255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:31:36+00:00 2026-05-23T00:31:36+00:00

I have a web server that is running PHP 5.3.6 non thread safe (VC9),

  • 0

I have a web server that is running PHP 5.3.6 non thread safe (VC9), running on a server 2008 R2 (iis 7.5) using FastCGI.

I am getting several errors like the one below:

 PHP Warning:  include_once(\\DB-FUNCTIONS.PHP): failed to open stream: No such file or directory in M:\Depts\uc\uc-template\resources\library\faq-functions.php on line 3
 PHP Warning:  include_once(): Failed opening 'db-functions.php' for inclusion (include_path='.;D:\php5\extras;D:\php5\pear;D:\php5;N:\orgs;T:\Users;M:\depts;L:\Departments;M:\depts\include;') in M:\Depts\uc\uc-template\resources\library\faq-functions.php on line 3

The file is calling like so: <?php ... include("DB-FUNCTIONS.PHP"); ... ?>

the file exists in the folder, the permissions are set correctly, other include files are working.

I have tracked the problem down to the following

say you have the following folder structure:

/includes
– inc.php
– db.php
-index.php

if index.php includes /includes/inc.php and inc.php calls include(“db.php”) (no include/) then the file will not be found. if you put all the files in one folder it will find them.

is anyone else running into this problem?

I am pasting in a cleaned up version of my php.ini file but i think that everything is set correctly. (sorry for the double spacing … it would all run together otherwise. in order to make the file shorter i have only included variables different that what the default php.ini is set to.)

[PHP]

extension_dir         ="D:\PHP5\ext"
short_open_tag        = On
asp_tags              = Off
register_globals      = On
register_long_arrays  = On
register_argc_argv    = On
post_max_size         = 8M
magic_quotes_gpc      = On
include_path          = ".;D:\php5\extras;D:\php5\pear;D:\php5;M:\depts;M:\depts\include;"
cgi.force_redirect    = 0
cgi.fix_pathinfo      =1
fastcgi.impersonate   = 1;
allow_url_fopen       = On
allow_url_include     = On
fastcgi.logging       =0
extension             =php_sqlsrv_53_nts_vc9.dll
extension             =php_curl.dll
extension             =php_gd2.dll
extension             =php_imap.dll
extension             =php_oci8.dll
extension             =php_openssl.dll

I have looked at several different sites and couldn’t find anything really similar to this problem. This code did work on version 4.4.7 (the web sites were migrated from a 2k3 server runnning iis6 with 4.4.7 in isapi mode)

  • 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-23T00:31:37+00:00Added an answer on May 23, 2026 at 12:31 am

    The include behaviour is expected.

    The . in PHP’s include path only refers to the outermost PHP file, usually the one invoked by the request.

    If you want to include a file relative to the file doing the including, use the __DIR__ magic constant, eg

    include __DIR__ . '/DB-FUNCTIONS.php';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web application that needs to fire off a long-running SQL Server
I have created a PHP-script to update a web server that is live inside
Suppose I have some PHP code running inside a web server, for example, running
I have a script which uploads data to my web server running Apache/PHP 5.3,
I currently have a web server running PHP 5.2.13 and have recently been told:
I have a PHP web application (running on Apache/Linux) that, among other things, allows
I have a Php application running on my Server A that consumes a .NET
I have a web server that runs my web application. If I want to
I have a web-server, that serves different domain-names, but has only one IP-address assigned.
I have a very fast web server (IIS6, ASP.NET) that I want to use

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.