call to undefined function php5
- From: "Cruella DeVille" <siv.hansen@xxxxxxxxx>
- Date: 28 Feb 2006 13:31:52 -0800
I'm writing a class to handle reading/writing from/to files like this
(shortened)
lass FileIO{
private $filename;
private $mode;
private $filePointer;
private $dictionary;
public function __construct($filename = null, $mode = 'r+'){
$this->filename = $filename;
$this->mode = $mode;
$this->filePointer = $this->openFile();
$this->dictionary = array();
}
public function openFile(){
return fopen($this->filename, $this->mode);
}
public function writeURL($name, $url){
$content = $name . " $ " . $url. "\n";
$this->fwrite($this->filePointer, $content);
}
when I try to call my writeURL(string, string) method the parser
returns an error of "call to undefined function)
my call:
include_once('FileIO.php');
$myFileIO = new FileIO('siv.txt');
$myFileIO.writeURL("siv", "nibbler.no");
this is copy/paste, so there's no typing error in the methodcall
(writeURL())
What am I doing wrong?
.
- Follow-Ups:
- Re: call to undefined function php5
- From: Ksu
- Re: call to undefined function php5
- From: kay
- Re: call to undefined function php5
- Prev by Date: Re: help starting w/ user, group mgmt and mvc's
- Next by Date: Re: Cannot instantiate non-existent class
- Previous by thread: Glue together variable and string
- Next by thread: Re: call to undefined function php5
- Index(es):
Relevant Pages
|