ID:               40951
 Updated by:       [EMAIL PROTECTED]
 Reported By:      zirephoenix at rogers dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: Linux
 PHP Version:      4.4.6
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:
------------------------------------------------------------------------

[2007-03-29 17:57:30] zirephoenix at rogers dot com

This bug was only for FireFox 1.5.x.  Seems to be gone in 2.

------------------------------------------------------------------------

[2007-03-29 17:25:49] zirephoenix at rogers dot com

Description:
------------
Without the header() and imagegif() functions, the code is basically a
hit counter script.  However, with the combination of those two lines of
code, the hit counter will increment by 2.  Something is causing the
script to run twice.

Reproduce code:
---------------
<?php

$site="test.txt";
$imageFile="image/metro.gif";
$hits=0;

if (file_exists($site)) {
        $temp=file($site);
        $hits=$temp[0];
}

$hits++;
        
$fileHandle=fopen($site, "w");
fputs($fileHandle, $hits);
fclose($fileHandle);

header("Content-type: image/gif");
imagegif(imagecreatefromgif($imageFile));
?>

Expected result:
----------------
test.txt should increment by 1 every time the script is accessed

Actual result:
--------------
test.txt increments by 2 every time the script is accessed


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40951&edit=1

Reply via email to