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

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.