onemind Posted July 28, 2006 Share Posted July 28, 2006 Hi,I found a script that i run locally but my php installation doesn't recognize <? as the start of a script so i have to go through and change them all to <?php Is there a way to make it accept <?Thanks Link to comment https://forums.phpfreaks.com/topic/15857-php-doesnt-recognie/ Share on other sites More sharing options...
bpops Posted July 28, 2006 Share Posted July 28, 2006 I haven't even seen it done like that ( <? ) before. Though I am somewhat of a newbie to php myself.I'd suggest just opening up wordpad or your favorite IDE and do a "Find & Replace". Link to comment https://forums.phpfreaks.com/topic/15857-php-doesnt-recognie/#findComment-64997 Share on other sites More sharing options...
onemind Posted July 28, 2006 Author Share Posted July 28, 2006 Thanks but there is over 100 pages and i would like it canged for future scripts that use the shortcut Link to comment https://forums.phpfreaks.com/topic/15857-php-doesnt-recognie/#findComment-64998 Share on other sites More sharing options...
bpops Posted July 28, 2006 Share Posted July 28, 2006 I checked in My "PHP & MySQL for Dummies" book, (hehe) and they talk about this <? ?> command. It's referred to as "short tags".. A quick google search:http://www.google.com/search?q=php+short+tags&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:officialReveals that it is something apparently set by your server (in the php installation). However, I see on some other forums people saying they can be turned on in the php.ini. Hope what little I offered can help ya. Link to comment https://forums.phpfreaks.com/topic/15857-php-doesnt-recognie/#findComment-65002 Share on other sites More sharing options...
redarrow Posted July 28, 2006 Share Posted July 28, 2006 do not chage the php.ini to shortcut the ?> becouse you need to lern this <?php becouse as php gets even better like version 6 the shortcut may not exist ok. Link to comment https://forums.phpfreaks.com/topic/15857-php-doesnt-recognie/#findComment-65008 Share on other sites More sharing options...
onemind Posted July 28, 2006 Author Share Posted July 28, 2006 Thanks, I enabled short tags in my php.iniDont worry, i will keep using <?php just turn it on for other peoples code. Link to comment https://forums.phpfreaks.com/topic/15857-php-doesnt-recognie/#findComment-65019 Share on other sites More sharing options...
redarrow Posted July 28, 2006 Share Posted July 28, 2006 ok mate good luck Link to comment https://forums.phpfreaks.com/topic/15857-php-doesnt-recognie/#findComment-65021 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.