Replace title tag on a php website

Posted on 2007-08-01
Last Modified: 2013-12-13
I have a php website that has a title tag that I want to change. The title tag is the same for all the web pages. In each php file, the title is listed as  <?php echo TITLE; ?>. Could you please let me know which file I have to change so that I would replace the whole website with a new title tag?
Question by:cscg1976
    LVL 40

    Accepted Solution

    I suspect that in all of the php files, you have a line near the top like ...

    require_once '';
    include_once '';
    require '';
    include '';

    something like that.

    The config file may have a different name.

    In that file there should be a line like ...

    define('TITLE', 'your current title is here');

    sort of thing.

    Edit that and you should be done.

    LVL 10

    Expert Comment

    What editor do you use? Just open every document, and run a FIND/REPLACE and REPLACE ALL
    LVL 23

    Expert Comment

    by:Stacy Spear
    A decent IDE (I know, hated word) will let you search for that in any files in the project.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    A colleague recently asked me about how to give his client a small part of the web site that could be completely under the client's control.  Since I have done this sort of thing before to add emergency banners to a web site, I decided I would creat…
    Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
    The viewer will learn how to count occurrences of each item in an array.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now