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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:18:09+00:00 2026-05-11T02:18:09+00:00

I have a template I made that sets variables that rarely change, call my

  • 0

I have a template I made that sets variables that rarely change, call my headers, calls my banner and sidebar, loads a variable which shows the individual pages, then calls the footer. In one of my headers, I want the URL of the page in the user’s address bar. Is there a way to do this?

Currently:

<?php $title = 'MySite - Contacts'; include('header.php'); . . . ?> 
  • 1 1 Answer
  • 1 View
  • 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. 2026-05-11T02:18:10+00:00Added an answer on May 11, 2026 at 2:18 am

    The main variables you’ll be intersted in is:

    $_SERVER['REQUEST_URI'] Holds the path visited, e.g. /foo/bar $_SERVER['PHP_SELF'] is the path to the main PHP file (NOT the file you are in as that could be an include but the actual base file)

    There are a ton of other useful variables worth remembering in $_SERVER, so either just:

    print_r($_SERVER); 

    or just visit the doc at http://php.net/manual/en/reserved.variables.server.php

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

Sidebar

Related Questions

I have a recursive template definition (I just made up that term). I think
I have a template class that I have made called hash . My template
I have a pre-made Word Template that has a table. I would like to
i have made a template that look like this : <ControlTemplate x:Key=onoffValue TargetType={x:Type Control}>
I have made a custom suface button according this example: <Button> <Button.Template> <ControlTemplate TargetType=Button>
I have template that looks like this: 100 template<size_t A0, size_t A1, size_t A2,
I have a template class method like that: template<class T> static tmpClass<T>* MakeInstance(T value)
I have a option in my Wordpress theme options panel that I made to
I have a made a simple program that reproduces the problem: #include <boost/archive/text_oarchive.hpp> #include
I have a self made data structure (for example linked list) that works well,

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.