I get these errors:

Warning: fopen(tmp/::name.hsh) [function.fopen]: failed to open stream: Invalid argument in ...

Warning:fwrite() expects parameter 1 to be resource, boolean given in...

Warning: fclose() expects parameter 1 to be resource, boolean given in ...

Can anyone advise me what is the problem? Tough is a permission problem but permissions look fine

The fopen failed, which when that happens it returns false which is causing the other two errors. As for the first one we would need to see some code to see what's going wrong, the error alone doesn't tell us much.

here is some code:

if (!file_exists($File)) {
        $Handle = fopen($FileHash, 'w');
        fwrite ($Handle, $audio_hash.$LINE_BRK);
        fwrite ($Handle, $playlist.$LINE_BRK);
        fclose ($Handle);

    $Handle = fopen($File, 'w');
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.