alin19 Posted February 10, 2009 Share Posted February 10, 2009 how is it called the section from where can i change to work the php scripts with bouth of those start tags? Link to comment https://forums.phpfreaks.com/topic/144593--/ Share on other sites More sharing options...
Daniel0 Posted February 10, 2009 Share Posted February 10, 2009 It's called short_open_tag in php.ini. Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758773 Share on other sites More sharing options...
killah Posted February 10, 2009 Share Posted February 10, 2009 google 'short open tags' i think it's called that. In php.ini look for something like: short_open_tags off change off to on Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758775 Share on other sites More sharing options...
waynew Posted February 10, 2009 Share Posted February 10, 2009 You'll go to hell for using them. Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758780 Share on other sites More sharing options...
coder_ Posted February 10, 2009 Share Posted February 10, 2009 You'll go to hell for using them. True!! hehe Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758785 Share on other sites More sharing options...
Prismatic Posted February 10, 2009 Share Posted February 10, 2009 It should be removed Really, what's 3 more characters? Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758795 Share on other sites More sharing options...
gevans Posted February 10, 2009 Share Posted February 10, 2009 Also if you're using xml with php, even along with your DOCTYPE; <?xml version="1.0" encoding="UTF-8"?> Disabling short tags will allow you to use that code without php thinknig you're openning a php script. Of course you can just go <?php echo '<?xml version="1.0" encoding="UTF-8"?>' ?> But flexibility of code is wonderful Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758811 Share on other sites More sharing options...
PFMaBiSmAd Posted February 10, 2009 Share Posted February 10, 2009 Even php.net recommends against using them - ; NOTE: Using short tags should be avoided when developing applications or ; libraries that are meant for redistribution, or deployment on PHP ; servers which are not under your control, because short tags may not ; be supported on the target server. For portable, redistributable code, ; be sure not to use short tags. You cannot guarantee that you will always be on a server where you will have the ability to turn on the short_open_tag setting. Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758853 Share on other sites More sharing options...
printf Posted February 10, 2009 Share Posted February 10, 2009 You'll go to hell for using them. love it, he he! Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758856 Share on other sites More sharing options...
premiso Posted February 10, 2009 Share Posted February 10, 2009 The key here is that, <?php will always work (unless something changes). Where as <? will not always work. Go with the sure thing and save yourself future headaches. Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758864 Share on other sites More sharing options...
Daniel0 Posted February 10, 2009 Share Posted February 10, 2009 You'll go to hell for using them. So what happens you you enable the asp style tags? Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758870 Share on other sites More sharing options...
printf Posted February 10, 2009 Share Posted February 10, 2009 This one just kills me, yuck.. (and it still will not be removed in PHP 6) <script language='php'> echo 'hi'; </script> Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758871 Share on other sites More sharing options...
premiso Posted February 10, 2009 Share Posted February 10, 2009 So what happens you you enable the asp style tags? LIMBO!!!! AHHHHHHHH!!! Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758873 Share on other sites More sharing options...
coder_ Posted February 10, 2009 Share Posted February 10, 2009 You'll go to hell for using them. So what happens you you enable the asp style tags? Someone comes and cuts of your hands so you cant do programming anymore... haha Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758874 Share on other sites More sharing options...
alin19 Posted February 10, 2009 Author Share Posted February 10, 2009 You'll go to hell for using them. So what happens you you enable the asp style tags? this is the problem i have to fix o php code and it has: short tags turned on register_long_arrays = On and i have to find all those that he had set on on his computer Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758888 Share on other sites More sharing options...
Maq Posted February 10, 2009 Share Posted February 10, 2009 This one just kills me, yuck.. (and it still will not be removed in PHP 6) <br /> echo 'hi';<br /> I'm going to start using those tags in all of my examples just to bother you now Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758897 Share on other sites More sharing options...
Daniel0 Posted February 10, 2009 Share Posted February 10, 2009 <script language="php"> printf('hello printf'); </script> Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758900 Share on other sites More sharing options...
killah Posted February 10, 2009 Share Posted February 10, 2009 <script language="php"> $val = isset($t) ? 'World' : 'printf'; printf('Hello %d', $val); </script> Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758913 Share on other sites More sharing options...
coder_ Posted February 10, 2009 Share Posted February 10, 2009 woooow!! I think we got the point of the discussion.. hehehehe Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758914 Share on other sites More sharing options...
Daniel0 Posted February 10, 2009 Share Posted February 10, 2009 <script language="php"> $var = 'printf'; $var('hello %s', $var); </script> I win. Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758916 Share on other sites More sharing options...
printf Posted February 10, 2009 Share Posted February 10, 2009 I'm just laughing my butt off... you guys are awesome! Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758927 Share on other sites More sharing options...
PFMaBiSmAd Posted February 10, 2009 Share Posted February 10, 2009 You could probably put a variable variable into that as well. Link to comment https://forums.phpfreaks.com/topic/144593--/#findComment-758930 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.