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 9241991
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:29:10+00:00 2026-06-18T08:29:10+00:00

Possible Duplicate: What is .inc and why to use it? I am working on

  • 0

Possible Duplicate:
What is .inc and why to use it?

I am working on a project which is partially developed by someone else. He has defined some inc files and some funcitons inside the files. Now i need to use those functions. For that, i need to know the below details. I tried some links by googling it. But i still can’t get clear idea. My doubts are,

1) what is .inc file?

2) Is there any difference between .inc file and .php file?

3) How to include an inc file inside a php file?

4) How to access the functions defined in .inc file inside php file?

Anyone help me by providing the details.

  • 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-06-18T08:29:11+00:00Added an answer on June 18, 2026 at 8:29 am
    1. An inc file is just a file that contains some stuff (functions, classes, constants) that you want to be able to include in other files.

    2. There is no difference between an inc file and a php file, except that unless specifically configured to do so, your server won’t execute the php in an inc file unless it is included in a php file.

    3. You can include the file like this:

      include “directory/file.inc”;

    4. Once you’ve included the file, you can consider its content to be part of the file you are in, so you can access the contents as you would if they were in your file.

    Note: There is no special meaning to the .inc extension – you could call it a .bunnyrabbit file, and it would work exactly the same.

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

Sidebar

Related Questions

Possible Duplicate: How to use include within a function? i have two file inc.php
Possible Duplicate: Use of var keyword in C# Which one is better? using var
Possible Duplicate: Use of var keyword in C# Which declaration should be accepted ?
Possible Duplicate: What are the point of header files in C? I am working
Possible Duplicate: When to Use Static Classes in C# Questions in the title..........i would
Possible Duplicate: Issue while saving image using savefiledialog I use windows forms in C#.
Possible Duplicate: Is there any reason to use the 'auto' keyword in C /
Possible Duplicate: What is the use of ## preprocessor in C From Fun with
Possible Duplicate: In C#, should I use string.Empty or String.Empty or “” ? Is
Possible Duplicate: Use XML Literals in C#? I can do this in Visual Basic,

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.