Re: call to undefined function php5
- From: "Ksu" <turt@xxxxx>
- Date: 28 Feb 2006 13:40:54 -0800
class FileIO{
private $filename;
private $mode;
private $filePointer;
private $dictionary;
public function __construct($filename = null, $mode = 'w+'){
//not r!!! r - is read w - is write w+ - can create file
$this->filename = $filename;
$this->mode = $mode;
$this->filePointer = $this->openFile();
$this->dictionary = array();
}
public function openFile(){
return fopen($this->filename, $this->mode);
}
public function Write(){
return fwrite($this->filePointer,$content);
}
//create new function for writing or use standart - but use it
RIGHT!!!!
public function writeURL($name, $url){
$content = $name . " $ " . $url. "\n";
$this->Write($content);
}
}
$myFileIO = new FileIO('siv.txt');
$myFileIO->writeURL("siv", "nibbler.no");
.
- References:
- call to undefined function php5
- From: Cruella DeVille
- call to undefined function php5
- Prev by Date: Re: call to undefined function php5
- Next by Date: Re: Cannot instantiate non-existent class
- Previous by thread: Re: call to undefined function php5
- Next by thread: Include path issues
- Index(es):
Relevant Pages
|