Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

I get the following message at the top of my page that is doing the domain search:

 

Warning: fclose(): supplied argument is not a valid stream resource in /hsphere/local/home/admin/domain-names-and-hosting.net/catalog/domain_search1.php on line 76

 

here is the code.....

 

//>---------------------------------------------------------------------------<

//> To use images other than gifs, you will need to modify the file extension <

//> after the $showdig variable in the following loop.                        <

//>---------------------------------------------------------------------------<



for ($a=0;; $a++) {

       if ($a == $actdigits) {

               break;

               } else {

               $showdig = substr($newcount, $a, 1);

               $img[$digits - $actdigits + $a] = "$imagedirectory";

               $img[$digits - $actdigits + $a] .= "$showdig.gif";

               }

       }



$displayblock = "";

for ($a=0; $a < $digits; $a++){

       $displayblock .= "<td><img src=$img[$a]></td>";

       }



$opennewcount = @fopen($counterfile,"w");

@fwrite($opennewcount, $newcount);

fclose ($opennewcount);



?>

 

Can someone help? The fclose statement is the line in question.

 

thanks

Greyson Schwing

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...