{"id":223,"date":"2008-12-30T22:58:00","date_gmt":"2008-12-30T22:58:00","guid":{"rendered":"http:\/\/blog.trungson.com\/?p=223"},"modified":"2008-12-30T22:58:00","modified_gmt":"2008-12-30T22:58:00","slug":"2-tips-check-php-syntax-and-svn-move-multiple-files","status":"publish","type":"post","link":"http:\/\/blog.trungson.com\/?p=223","title":{"rendered":"2 tips &#8211; Check PHP syntax and SVN move multiple files"},"content":{"rendered":"<p>This is what I have in my .bash_profile. It check for all the PHP files, recursively, for any syntax error.<\/p>\n<pre>\nalias php_check_syntax='find . -type f -name \\*.php -exec php -l {} \\;'\n<\/pre>\n<p>This other tip is to move multiple files in SVN. You can make it a script if you want.<\/p>\n<pre>\nfor i in *.test.php ; do svn move $i tests\/ ; done\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This is what I have in my .bash_profile. It check for all the PHP files, recursively, for any syntax error. alias php_check_syntax=&#8217;find . -type f -name \\*.php -exec php -l {} \\;&#8217; This other tip is to move multiple files in SVN. You can make it a script if you want. for i in *.test.php [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/223"}],"collection":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=223"}],"version-history":[{"count":0,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/223\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}