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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:55:48+00:00 2026-05-20T20:55:48+00:00

Well this question maybe asked for hunderds time. But I could not make it

  • 0

Well this question maybe asked for hunderds time. But I could not make it work.
There is my directory list:

--main/
---- Zend/
---- dir1/
---- dir2/

And this is my set include path configuration:

set_include_path(PATH_SEPARATOR
            . dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Zend' . PATH_SEPARATOR
            . get_include_path());

I also try adding all directories seperatly to the path.
But apache insists on giving these error:

Warning: require_once(Zend/Loader.php): failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\main\Zend\Translate.php on line 25 Fatal error: require_once(): Failed opening required ‘Zend/Loader.php’ (include_path=’;C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\main\Zend;.;C:\php\pear’) in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\main\Zend\Translate.php on line 25

Which is thrown from the php file which is in dir1 on these lines:

include_once '../Zend/Locale.php';
include_once '../Zend/Translate.php'; //this is the line

How can I solve this problem?

  • 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-20T20:55:49+00:00Added an answer on May 20, 2026 at 8:55 pm

    As you have a relative to current file include path, one of the two Zend classes, which is running:

    require_once 'Zend/Loader.php';
    

    is resolving to htdocs\main\Zend\Zend\Loader.php

    To fix, remove the DIRECTORY_SEPARATOR . ‘Zend’, then also your include_once’s can be

    require_once 'Zend/Locale.php';
    require_once 'Zend/Translate.php';
    

    Note I changed to require_once as include_once will carry on the script even if the include fails, which is not recommended.

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

Sidebar

Related Questions

I hope this question is not considered too basic for this forum, but we'll
maybe this is a stupid question but : i run perl 5.8.8 and i
This question would probably apply equally as well to other languages with C-like multi-line
A Java version of this question was just answered, and, well, I don't know
I have two tables (well, two relevant for this question) : Bets (holds the
Ok another WPF question, well I guess this is just general .NET. I have
this is my first question here so I hope I can articulate it well
I am using Delphi TApplication.OnException Event to catch unhandled exceptions This works well but
earlier today I asked this question . So since moq creates it's own class
This is related to this question I asked a while back. The end game

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.