[PHP-DB] Re: Writing Problems

2014-08-27 Thread Jim Giner
On 8/26/2014 8:44 PM, Ethan Rosenberg wrote: ini_set('display_startup_errors', 'on'); error_reporting(E_ALL | E_NOTICE); ini_set('display_errors','1'); error_reporting(1); No errors. What is wrong?? What is wrong here is your error reporting code. This is NOT what I gave you two months ago.

Re: [PHP-DB] Writing Problems

2014-08-27 Thread Matt Pelmear
/***/ $fp = fopen('filename.txt', 'a+'); // The correct thing to do is: if (! $fp) throw new Exception( 'Something went wrong opening the file' ); // Otherwise, you can also check with: if (! is_resource($fp)) throw new Exception( 'Something went wr