Replacing short tags with proper PHP tags 1
This is a little script I made to get rid of those damned short tags. [php] <?php while ($file = trim(fgets(STDIN))) { $content = file_get_contents($file); $search = array('/<\?=/', '/<\?(?!php|xml)/'); $replace = array('<?php echo ', '<?php '); if ($content != ($new_content =...
Thursday 29 January 2009 10:37