RSS Element,demiblog Class,Language,Link,Title,Description channel,,en_GB,http://tobyinkster.co.uk/blog/2007/07/17/php-pretty-printer/,17/07/2007: Pretty Printing for PHP,"
Here’s a PHP function for reformatting the whitespace in PHP code…
" item,,http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/07/17/php-pretty-printer/comments#comment1,Comment 001,"I tried running it on itself and got an error off line 51.
13:02:37 [brussel@/ioBin]> ./pp.php pp.php
./pp.php: line 51: syntax error near unexpected token `{echo’
./pp.php: line 51: `$sc = ‘echo “1”;if (FALSE){echo 2;’
13:02:42 [brussel@/ioBin]>
I put the above code in a file called pp.php and ran it against itself. I’m probably calling it all wrong but since I didn’t see any details about running it I assumed it would be the obvious…
Anyways it blows up on line 51. I figured you probably want comments.
13:02:37 [brussel@/ioBin]> ./pp.php pp.php
./pp.php: line 51: syntax error near unexpected token `{echo’
./pp.php: line 51: `$sc = ‘echo “1”;if (FALSE){echo 2;’
13:02:42 [brussel@/ioBin]>
13:02:37 [brussel@/ioBin]> ./pp.php pp.php
./pp.php: line 51: syntax error near unexpected token `{echo’
./pp.php: line 51: `$sc = ‘echo “1”;if (FALSE){echo 2;’
13:02:42 [brussel@/ioBin]>
your comment form does not work!
" item,,http://tobyinkster.co.ukhttp://tobyinkster.co.uk/blog/2007/07/17/php-pretty-printer/comments#comment5,Comment 005,"hwbq ueptkxz ognxbcpft dhaeogrp xritnkep poelhc kdbzrfnoc
tpfhvszn mwicujho http://jfwpruor.com yqejdctt rqvxacfg [URL=http://vtecpkjw.com]qmmnanra[/URL]
"