Posted by Andy Hassall on 03/01/06 00:59
On 28 Feb 2006 13:31:52 -0800, "Cruella DeVille" <siv.hansen@gmail.com> wrote:
>include_once('FileIO.php');
>$myFileIO = new FileIO('siv.txt');
>$myFileIO.writeURL("siv", "nibbler.no");
"." is the string concatenation operator.
You want "->", which can be used to call object methods (and dereference
object variables).
WHat you've written tries to string concatenate $myFileIO with the results of
a call to the global-scope function "writeURL" - which doesn't exist - and then
it ignores the actual result as it's not assigned to anything.
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|