Convert <? to <?php
Posted: Thu Feb 18, 2010 4:41 am
Hi,
I have a kind of large website which I used php all over the place. and some of the code is not mine, and I do not have any idea how they work.
They are ALL work the way the need. However, some used "<?php" and some use "<?" I am not sure where they are.
I know I did not do the right thing, and ask the admin of the website to reset the php setting to SHORT so <? be ok. and I forget about it.
However, after a year, he needs to turn the switch off. So all my php codes which started with <? will fail!!
IF I do not have access to the admin, and I need to convert all my codes to <?php, WHAT SHOULD I DO?
I was thinking to make a macro/function or something which reset the setting to SHORT(SO <? be fine) for the current page and by using "shh" put it to the top of all php files! and forget about it!
I am not even sure this might work, but PLEASE HELP ME
THANKS
I have a kind of large website which I used php all over the place. and some of the code is not mine, and I do not have any idea how they work.
They are ALL work the way the need. However, some used "<?php" and some use "<?" I am not sure where they are.
I know I did not do the right thing, and ask the admin of the website to reset the php setting to SHORT so <? be ok. and I forget about it.
However, after a year, he needs to turn the switch off. So all my php codes which started with <? will fail!!
IF I do not have access to the admin, and I need to convert all my codes to <?php, WHAT SHOULD I DO?
I was thinking to make a macro/function or something which reset the setting to SHORT(SO <? be fine) for the current page and by using "shh" put it to the top of all php files! and forget about it!
I am not even sure this might work, but PLEASE HELP ME
THANKS