2011/6/2 Merlin Morgenstern :
> Hi there,
>
> I am working on a pretty huge site with thousands of files with php code.
> Unfortunatelly the app throws a ton of notices du to missing '' in arrays.
> Of course I could simply disable the output on the dev server to surpress
> notices, but I would rat
On Wed, Jun 1, 2011 at 6:26 PM, Merlin Morgenstern wrote:
> Hi there,
>
> I am working on a pretty huge site with thousands of files with php code.
> Unfortunatelly the app throws a ton of notices du to missing '' in arrays.
> Of course I could simply disable the output on the dev server to surpre
I was thinking about this a little more and thought that the method I sent
before will work, but it has the potential of clobbering variables that are
not related to this warning/notice. Best bet would be to create a list of
file names that contain the offending variables then feed that to sed usi
You can put an @ symbol in front each item that is throwing the error.
That may take some time though. You could use something like
find /htdocs_folder -name \*.php -print | xargs sed -i
s/\$array_name/@$array_name/g
That might get you what you're looking for. But be cautious because this
meth
> I am working on a pretty huge site with thousands of files with php code.
> Unfortunatelly the app throws a ton of notices du to missing '' in arrays. Of
> course I could simply disable the output on the dev server to surpress
> notices, but I would rather like to get it fixed.
>
> Has somebo
Hi there,
I am working on a pretty huge site with thousands of files with php
code. Unfortunatelly the app throws a ton of notices du to missing '' in
arrays. Of course I could simply disable the output on the dev server to
surpress notices, but I would rather like to get it fixed.
Has someb
6 matches
Mail list logo