I am totally a newbie.. here is the code i have it working on another site or two but now it won't work here.. what am I doing wrong?
<?php
//we need to set a var to find what page we are on
$pageOn = basename($_SERVER);
//this is used for the title bar
$mItem = $pageOn;
?>
<title>new|innovative technology | HVAC systems|VairTEX Canada Inc| <?=$mItem;?></title>
{headtag}

<body>
<?php
echo $pageOn;
?>

Member Avatar for diafol

Looks like you're using short tags. They don't work on every server - depends on the php settings.

<?=$mItem;?>

Do

<?php echo $mItem;?>

Instead.

I don't understand why you're doing this:

$mItem = $pageOn;

Why not just use $pageOn?

Thanks I figured out I was actually using 2 parts of different php bits.. duh.. blonde moment..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.