Hey,

I was tinkering with ZF 1.8 and the performance guide.

Specifically:

C.2.2.1. Strip require_once calls with find and sed.

The sed/find commands here have changed I noticed.  When I run these new
commands I get the following error:

-bash: syntax error near unexpected token `('


I took a look at the commands again and I thought I found a missing ' error
so I tried the revised commands:

find . -name '*.php' -not -wholename '*/Loader/Autoloader.php' -print0 | \
xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g'

(I added a ' after Autoloader.php).

That looked like it worked. But now when I browse to my website, I get a
blank page.


I am not sure if what I did fixed anything or what..

Anyone have any suggestions?

Thanks
-- 
View this message in context: 
http://www.nabble.com/ZF-1.8-and-Performance-Guide-%28using-find-sed-to-remove-require-once-calls%29-tp23340034p23340034.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to