Why do I get the following error;
The script I am using is;
Please note, I AM a PHP Newbie, so please point out any stupid things I have done, and any ways you can think of doing the job better.
Thanks
Andy
Code:
Warning: file("Resource id #1") - No such file or directory in /home/ace-inst/public_html/portal/html/acecounter.php on line 20
The script I am using is;
Code:
<?php
/*
By using this script you agree to take all responsibility for any
damages that it may occure to your server. Any legal fees or costs
that may occur from the use of this script are solely the
responsability of yourself or your company.
This script was provided by Ace-Installer ([URL unfurl="true"]http://www.ace-installer.com)[/URL]
and is provided 'as-is' without warrenty. For free support please visit
[URL unfurl="true"]http://www.ace-installer.com/forum/[/URL]
Thanks for choosing our script, and updates can be found at our site
([URL unfurl="true"]http://www.ace-installer.com).[/URL]
*/
// open a handle for the file
$handle = fopen("counter.count",'r+') or error("Unable to open counter.count. <BR><BR>Please check permissons");
$counter = file($handle);
echo $counter;
fclose($handle);
// a sub so we can catch errors and report them back to the user.
function error($error) {
echo "There was an error. It was: <BR>";
echo $error;
exit;
} // end the error sub
?>
Please note, I AM a PHP Newbie, so please point out any stupid things I have done, and any ways you can think of doing the job better.
Thanks
Andy