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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:17:55+00:00 2026-05-26T11:17:55+00:00

There’s a site I’m developing, and I don’t really understand the problem that is

  • 0

There’s a site I’m developing, and I don’t really understand the problem that is occurring…

There’s a link inside a table in the Home page. When I click on it, It is supposed to provide some GET parameters to the hyperlinked page. The receiving page processes it, updates the database and redirects to the Home Page.

I’ve included some necessary php files as “require_once()” in the Home page. But I can’t do it on the processing page. It gives some warnings. I don’t really understand why and I don’t know the solution to this problem. Please help!

Code in the Home page:

<?php require_once("includes/db_connection_open.php"); ?>
<?php require_once("includes/functions.php"); ?>
<?php include("includes/header_main.php"); ?>

<?php
 echo "<td><a href='includes/process.php?id=".$arr['id']."'>Process</a></td>";
?>

<?php include("includes/body_footer_main.php"); ?>
<?php require_once("includes/db_connection_close.php"); ?>

Code in the Processing Page:

<?php require_once("includes/db_connection_open.php"); ?>
<?php require_once("includes/functions.php"); ?>

//Processing codes

<?php require_once("includes/db_connection_close.php"); ?>

The warnings I’m getting are:

Warning: require_once(includes/db_connection_open.php)
[function.require-once]: failed to open stream: No such file or
directory in C:\xampp\htdocs\MySite\includes\process.php on line 1

Fatal error: require_once() [function.require]: Failed opening
required ‘includes/db_connection_open.php’
(include_path=’.;C:\xampp\php\PEAR’) in
C:\xampp\htdocs\MySite\includes\process.php on line 1

  • 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-26T11:17:56+00:00Added an answer on May 26, 2026 at 11:17 am

    It seems like you are currently in the includes directory because your error says ‘in C:\xampp\htdocs\MySite\includes\process.php on line 1’.

    However you are still trying to require within includes/ so you end up in includes/includes/ where your files aren’t at.

    If you are having troubles finding the correct path because you have a file that is loaded through inclusion as well as AJAX for example you can use __DIR__ (or dirname(__FILE__) in older PHP installations) to make sure you have the correct path.

    So in process.php that would be for example:

    require_once __DIR__.'/db_connection_open.php';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is a field in my company's Contacts table. In that table, there is
There is a class that's a fully fledged UIViewController and when that page loads
There are several tabs in GUI runner of NUnit: I understand that using Console.WriteLine
There is a conversion process that is needed when migrating Visual Studio 2005 web
That's pretty much it. I'm using Nokogiri to scrape a web page what has
There is one table T ( id integer, primary key ( id). I want
There's a thrird party app that needs to get information via custom http headers,
There's a column on one of my tables that's being updated by various INSERT/DELETE
There can only be one IDENTITY column per table Why is it so? Take
There are a lot of example implementations of daemons on the net. Most 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.