tamir_malas Posted September 3, 2007 Share Posted September 3, 2007 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? Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted September 3, 2007 Share Posted September 3, 2007 ...You could start by trying with <?php Quote Link to comment Share on other sites More sharing options...
madspof Posted September 3, 2007 Share Posted September 3, 2007 I have the same problem, I think i was told it was something to do with the phi.ini but am not sure what it is exactly. Quote Link to comment Share on other sites More sharing options...
tamir_malas Posted September 3, 2007 Author Share Posted September 3, 2007 the problem is that the code is too large to rewrite it again using "<?php" i need help to run the site using "<?" Quote Link to comment Share on other sites More sharing options...
madspof Posted September 3, 2007 Share Posted September 3, 2007 I am sorry but i cannot help you with this problem, you can try and load your code in to notepad and tell it to search for all the <? and go sistaumaticaly changing each one or you can wait for a guru to sign on Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted September 3, 2007 Share Posted September 3, 2007 <? 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 Quote Link to comment Share on other sites More sharing options...
jitesh Posted September 3, 2007 Share Posted September 3, 2007 <? is sort tag <?php is full tag if in php.ini "sort_open_tag" is on then you can use <?. better to pratice to write <?php. Quote Link to comment Share on other sites More sharing options...
tamir_malas Posted September 3, 2007 Author Share Posted September 3, 2007 thank you all, problem solved. Quote Link to comment Share on other sites More sharing options...
Azu Posted September 3, 2007 Share Posted September 3, 2007 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.