gricewill
-
Posts
2 -
Joined
-
Last visited
Posts posted by gricewill
-
-
In Script 8.1, some of the functions seem not to be directly defined. For example, the write function is: function write($data) { if (@!fwrite($this->_fp, $data . "\n")) {throw new Exception(...); }
It seems like it should say positively to execute "fwrite($this->_fp, $data)", but instead it just says if it doesn't do this, then throw an exception. It seems like the conditional would always be true since the script never told the computer to do it. What am I missing?
Script 8.1 - Functions only defined in conditional statements
in PHP Advanced and Object-Oriented Programming: Visual QuickPro Guide (3rd Edition)
Posted
Thanks!