Re: Is echo tag reasonably portable?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Nov 15, 2005, at 8:39 AM, Greg Donald wrote:

On Tue, 15 Nov 2005, Jim Moseby wrote:

It will be when you have to sort through 1,000,000 lines of code in 400 files to change '<?' to '<?PHP'. Better to save the grief and do it right
to start with, no?

for file in *.php; do
cp $file $file.tmp
sed -e "s/<?$/<?php/g" $file.tmp >$file
rm $file.tmp
done

... Wouldn't catch this case:

<? echo $foo ?>

 -dan

--
Black holes are where God divided by zero.  -Steven Wright

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux