- Joined
- Mar 30, 2007
- Messages
- 101
- Reaction score
- 0
Hello,
When i created a website i always used a config for the basic site configurations like
then on the index page i did this:
This should echo $site_name
But i reinstalled my pc and downloaded Xampp again i coulnd use <? ?> and <?= anymore i had to use <?php ?>
Do i have some settings wrong or did the php devs drop <? ?> out?
EDIT!!!:::
Fixed already
i just looked thru some topics in Coders Paradise someone had a link to w3schools and there was it:
On servers with shorthand support enabled you can start a scripting block with <? and end with ?>.
so i enabled it
thx for reading tho
When i created a website i always used a config for the basic site configurations like
PHP:
$site_name = "Site name";
then on the index page i did this:
PHP:
<title><?=$site_name;?></title>
This should echo $site_name
But i reinstalled my pc and downloaded Xampp again i coulnd use <? ?> and <?= anymore i had to use <?php ?>
Do i have some settings wrong or did the php devs drop <? ?> out?
EDIT!!!:::
Fixed already

On servers with shorthand support enabled you can start a scripting block with <? and end with ?>.
so i enabled it

thx for reading tho

Last edited: