Jump to content

What is the differance between "<?" and "<?php"?


tamir_malas

Recommended Posts

<? is the short tag opening effort (which in my opinion should be removed in php 6).

 

it causes problems when you are using xml on your site and is an all round pain in the backside...

 

if you have dreamweaver you can do a site wide search and replace - which would be my advice.

 

alternatively you could set the short_open_tag setting in your php.ini file to On

 

but you REALLY should use <?php

Hi, what is the differance between using "<?" or using "<?php" when writing php code?

because iam using a code that uses "<?" on the localhost and it is not working.

 

what should i do?

They are exactly the same except the "<?" must be enabled in the ini to work, where as the "<?php" is enabled by default.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.