so i'm working a php site. about 3 days ago some image display scripts stopped working.
I discovered today that it is because a space is being output at front of every page.
I have a lot of php files since I am working in an MVC framework.
How can I check every file in the root directory and see if the first char is a space?
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
it might be hard to see above but just before the <!DOCTYPE there is space.
I have hunted for the thing for 3 hours.
any suggestions on how to find it?
Thanks,
C