I need a very big help and is urgent. I have a big "permission" problem when i run this module and I get ths 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 ...
The code is
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');
As I understand sayes that cant write in temp folder because isnt writible. Its a module in Joomla.
I have run it in xamp under localhost and under real server but it is the same error. At xamp joomla sayes that logandtemp directories are writible but at real server sayes they are not writable.
With the standard procedure i have given permissions 756 and 777 but i still get thesame error. The path for tmp folder is regular as i can see. All my effords are useless and cant see why fopen doesnt open the tmp folder when the path is ok. is it the problem in xamp or server instead of the code or is the code.
Why the 756 and 777 permissions doesnt have effects in xamp and server with joomla?
Any advice about permissions for fopen and xamp server or joomla permissions and how the path should look, are welcome. Thanks.