having some trouble
im getting this every time i go to dload.php
Warning: fopen(pafiledb/explain/e2.html): failed to open stream: Permission denied in /home/hfm/public_html/board/pafiledb/includes/functions.php on line 1048
Warning: fwrite(): supplied argument is not a valid stream resource in /home/hfm/public_html/board/pafiledb/includes/functions.php on line 1049
Warning: fwrite(): supplied argument is not a valid stream resource in /home/hfm/public_html/board/pafiledb/includes/functions.php on line 1051
Warning: fclose(): supplied argument is not a valid stream resource in /home/hfm/public_html/board/pafiledb/includes/functions.php on line 1052
here is the code that this error pertains too
Code: Select all
$fp = fopen('pafiledb/explain/e' . $userdata['user_id'] . '.html', 'wt');
fwrite($fp, $pafiledb_sql_report);
$str = "<pre><b>The pafiledb Mod generated " . $pafiledb_num_queries . " queries,\nspending " . $pafiledb_sql_time . ' doing MySQL queries and ' . ($totaltime - $pafiledb_sql_time) . ' doing PHP things.</b></pre>';
fwrite($fp, $str);
fclose($fp);
@chmod('pafiledb/explain/e' . $userdata['user_id'] . '.html', 0777);
}
if on line 1048 i change
$fp = fopen('pafiledb/explain/e' . $userdata['user_id'] . '.html', 'wt');
to $fp = fopen('pafiledb/explain/
e2' . $userdata['user_id'] . '.html', 'wt');
or
$fp = fopen('pafiledb/explain/
e-1' . $userdata['user_id'] . '.html', 'wt');
it works..........BUT... which one should i use