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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:48:36+00:00 2026-06-09T22:48:36+00:00

So basically all of my files have include(‘http://website.com/static/header.php’) nav.php, and footer.php. It worked on

  • 0

So basically all of my files have include('http://website.com/static/header.php') nav.php, and footer.php. It worked on my host, but now I’m hosting it myself on Ubuntu. It’s not working at all! In php.ini allow_url_include = On Can and yes the files are all there, and the cases are proper.

  • 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-09T22:48:37+00:00Added an answer on June 9, 2026 at 10:48 pm

    There is absolutely no need to include a file from a remote server for what you are trying to do. I would go as far as tell you to not do it. If you need some random banner as you state in your question just include the local file:

    main.php

    <?php
    // some php code...
    
    include('/path/to/file/banner.php');
    

    banner.php

    <?php
    
    $banners = array('banner1.jpg', 'banner2.jpg');
    
    echo '<img src="' . $banners[mt_rand(0, 1)] . '" alt="some banner">';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a php file and a bunch of HTML elements that include: header
I'm trying to understand the asset_pipeline. I basically have all my website-wide code in
Hey all, basically i have an empty AS3 fla file with just the following
I'm looking to parse some CXML in PHP...basically all I'm looking to get the
I'm trying to emmulate the following: Any ideas how? Basically all photos have the
All, I've got the following JS Fiddle: http://jsfiddle.net/HHtBX/11/ I'm trying to basically close all
I started working with php and mysql today. Basically, what I have, is an
I'm building the basic framework for my website and I have a config.php file
I have a working setup, where all files are in the same directory (Desktop).
Basically I want to read and write to a file then save all 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.