that's what i though...
but i can't explain this:
i have a class that's working using the first version above like this:
class Info {
var $file;
//Class constructor
function info() {
$this->file = "";
}
if (!($fp = fopen($this->file, "r"))) {
die("could not open input");
print "uhh... opened....";
}
}
and then calling it:
newInfo = new Info();
newInfo->file="somefile.txt";
this prints "uhh... opened..."....
i don't pass it here like new Info('somefile.txt')
how's this working?!... or why?....