config.php ( edited but still have same problems ):
<?
$judul ="my site title";
?>
my index.php:
<?php
session_start();
include('config.php');
mysql_connect($server,$login,$pass) or die("Nggak bisa koneksi");
mysql_select_db($db);
$fail = " ";
?>
<title><? echo "$judul"; ?></title>
</head>
the result is my website title is
<? echo "judul; ?>
not like i want to...
Is there anything that I should change?
the goal is:
I want to put some variable like footer copyright title inside config.php
so if I need to edit it's only need to edit config.php
----edited---- by the way thank you for all answer it is work now
i use @Tanuel comment
once again thankyou
i vote answer ( green checklist ) based on the first answer, since i use syntax from comment