>
you need some error-checking
if ($H === false) die("Unable to open $value.");
(snip)
Hi Pedro..
Thanks for your advise.
Problem is not that fopen($value) returns an 'false' $H rather return
it an $H that is not legal for the e.g feof($H)
If i put an '&' reference on fopen($value) it works fine so it must be
an problem with the reference model.
The test if($H === false) solve not the problem that $H is not legal.
maybe is it my system:
HP ia64 / debian / PHP/4.1.2
Im new in PHP (not in programming) and it took me some time to
encircle the problem. There are some other nasty things with deduced
classes and it is for sure the distribution of PHP for my system.
maybe can you check the following on your system (i have PHP only on
the ia64):
class A
{
function A()
{
print get_class($this);
}
}
class B extends A
{
function B()
{
$this->A();
}
}
$bla = new B();
It should print "B" but the $this is empty in A and it print nothing.
Only if i put an:
var $bla = NULL; in B it works how it should. The fact is only that
is no var declaration in B value or name are unimportant.
good luck
robert
PS: sorry for my crummy english