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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:00:57+00:00 2026-06-06T04:00:57+00:00

I have a page that uses another page via the include() function. The page

  • 0

I have a page that uses another page via the include() function. The page that requests and uses this external page has some html embeded as well as some output using the echo function. Here is an example of what I am referring to.

page Apple.php contains:

 <html>
 <head></head>
 <body>

<h1>I have some content here.</h1>

 <div id="format" style=" width:20px; height:20px;"><?php include("Orange.php") ?></div>

 <h2>Some more content here.</h2>
 </body>
 <html>

page Orange.php contains:

  <?php
     $astringA='blue';
     $astringB='berry';
     include("someExternalPage.php");
     echo "fruit is ".$astringA.$astringB.$externalVariable;
     ?>

Whenever the Apple.php is viewed in browser, only the top part of its body is shown(the part above the include function) and everything below the div box is lost and filled with whitespace. In addition the included file ignores all style that the div box has. The same is true for the Orange.php; all output below the include() function is lost. How can I fix this so that the included file will conform to the style I want for it and also to continue to output the rest of the content on the pages?

I also notice that even if I try outputing the rest of the page through php such as
echo “>h2>Some more content here.”; (I deliberately inverted the first “>” in the line above so that I illustrate the code here)
the included still takes precedence over the current page and thus the output is never shown.

  • 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-06T04:00:59+00:00Added an answer on June 6, 2026 at 4:00 am

    Smells like you have a hidden fatal error here.

    Try using error_reporting(E_ALL) and run the page to see if you have an error…

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

Sidebar

Related Questions

I have an HTML page that uses AJAX to retrieve messages from a server.
I have a page that uses multiple dialogs for different things. Some dialogs may
I have a simple html page that only uses PHP in two places <?php
I have a website on Domain A that has a page with an html
I have an ASP.NET page that uses a repeater nested within another repeater to
I have a php page that uses CURL to log in to another page,
I have a page that uses an iframe that is displaying content from another
The situation is that I have a page that uses some AJAX calls to
I have a page that uses jQuery with a small glitch. I managed to
I have a page that uses a background image to do rounded corners, and

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.