Page 1 of 1

<?=$tmp?>

PostPosted: 20. June 2010 16:46
by x_mysterious_x
hi,

why this method does not work in XAMPP?
Code: Select all
<?$tmp?>

or
Code: Select all
<?
echo "hello world";
?>


instead this works fine.
Code: Select all
<?php

echo "hello world";

?>


I have downloaded many scripts and they all use <?$abc?> this method. xampp does not show any result for this script. How can i put it to work??

Re: <?=$tmp?>

PostPosted: 20. June 2010 16:56
by Altrea
x_mysterious_x wrote:why this method does not work in XAMPP?
Code: Select all
<?$tmp?>

[...]
I have downloaded many scripts and they all use <?$abc?> this method. xampp does not show any result for this script. How can i put it to work??

This will never work. Not in XAMPP not elsewhere.

<? $tmp ?> is the expression for <?php $tmp ?>. What should that be?

Why <?= and <? doesn't work: Keyword short_open_tags.

Solved a million times before here in this forum.

I think you can try the forum search.