[Last Call] Learn how to a build a cloud-first strategyRegister Now


Replace title tag on a php website

Posted on 2007-08-01
Medium Priority
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

Richard Quadling earned 1500 total points
ID: 19607196
I suspect that in all of the php files, you have a line near the top like ...

require_once 'config.inc';
include_once 'config.inc';
require 'config.inc';
include 'config.inc';

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

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

Expert Comment

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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this. Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it i…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month18 days, 1 hour left to enroll

829 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