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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:22:25+00:00 2026-06-18T06:22:25+00:00

I have two php files feed.php and main.php. In main.php, I am using feed.php.

  • 0

I have two php files feed.php and main.php.

In main.php, I am using feed.php.

feed.php

class RSSFeed {

    var $channel_url;
    var $channel_title;
    var $channel_description;
    var $channel_lang;
};

main.php

<html>
<body>

<?php include 'feed.php'; ?>
<h1>Welcome to my home page!</h1>
<p>Some text.</p>

</body>
</html>

when I run main.php, I got the following output

class RSSFeed {

    var $channel_url;
    var $channel_title;
    var $channel_description;
    var $channel_lang;

}

Welcome to my home page!

Some text.

I am not able to understand why I see the contents of RSSFeed class when I display the main.php in browser?

  • 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-18T06:22:26+00:00Added an answer on June 18, 2026 at 6:22 am

    Because you forgot to put <?php and ?> on feed.php. That file is treated like plain text and is displayed in the HTML.

    <?php
    class RSSFeed {
    
        var $channel_url;
        var $channel_title;
        var $channel_description;
        var $channel_lang;
    };
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two php files: main.class.php form.class.php in these files there are two class
I have two PHP files: template.php template.html.php The first is the class definition for
I have two files 1 - index.php 2 - main.php index.php call to main.php
I have three files in a folder 'test' one.php two.php print.html And i have
I have two PHP files located on different servers, one at http://www.mysite.com/main.php , the
I have two files: index.php /lib/user.php Index contains the form: <div class=<? echo $msgclass;
I have two php files in the same directory: test.tattler.php class.tattler_stats.php My test.tattler is
I have two files: template.php: <div><?php echo $myVar; ?></div> controller class MyClass extends Base
I have two files: html php where html file is calling the php file
I have two files, csform.php and process.php. Csform.php is the main page with the

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.