Can I use <? echo 'somethig'; ?> instead of <?php echo 'something'; ?>.
<? ?> tags(without php keyword) working in apache2triad but not in wamp or xampp servers.Why is that.How can I make wamp or xampp to run php codes with <? ?>.

Thanks.

In the PHP.INI is a setting short_open_tag. If you enable that, it'll work.

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.