|
Posted by Rik on 06/01/06 01:19
lawrence k wrote:
> My system has 1800 PHP files. I can't go through them one at a time
> looking for white space.
900
450
225
123
62
31
16
8
4
2
1
That's the road to take when searching for this, 11 easy steps, unless the
problem is in more then one document. Also, a real editor could search files
for input before '<?'.
You could offcourse make PHP do the work for you:
$files = array of files included/'on your system'
Loop through the text equivalent of your files with a regular expression
like (.+)<? on the beginning of every file.
Or use ob_start()
And 1800 if(ob_get_contents()!='') echo "problem is
before".__FILE__','__LINE__;'s
And it's not a matter of "your system", it's a matter of files that are
included before the header call().
If that's indeed > 1800 files:
- I'm very curious on what bases you put code in different files, and what
the exact goal of your script actually is to include that many.
- I'd suggest a more sensible grouping then "1800 files", so you can exclude
groups (maybe fake output) of files in this kind of troubleshooting.
Grtz,
--
Rik Wasmus
[Back to original message]
|