Big Error_log file - problem opening

Hi

My php website has started producing some errors which are getting logged in error_log file.

Its grown upto 40mb.

I downloaded it from server but i am not able to open it.

Dreamweaver hangs while opening it.

How can i open it ??

Otherwise how to know errors ?

Thanks
vineet

See if you can open it with wordpad.

Sounds like you’ve got some serious work ahead of you if you are planning on fixing all the errors but it is well worth it in the long run.

Start with a clean slate and watch your errors grow :slight_smile:



// Create new error_log file
   $fNewError = getcwd() .'/error_log.php';
   
   echo '<br />', ini_get('error_log'); // show location of OLD error_log file
   ini_set('error_log', $fNewError);   // CREATE NEW ERROR LOG IN THIS FOLDER
   echo '<br />', ini_get('error_log'); // show location of NEW error_log file

  echo '<br />'. filesize($fNewError);  
  echo $nonExistentVariable / 5;      // FORCE error

  echo '<br />'. filesize($fNewError);  


Hi

Thanks to both of you.

I was able to open it with wordpad and was able to find the error.

It was one same error getting logged everytime.

its now solved.

thanks
VINEET