Ask a Question related to PHP Programming, Design and Development.
-
mtoohee at gmail dot com #1
#38816 [Opn]: PHP code that was working perfectly recently stopped working.
ID: 38816
User updated by: mtoohee at gmail dot com
-Summary: PHP code that was working perfectly recently stopped.
Reported By: mtoohee at gmail dot com
Status: Open
Bug Type: *General Issues
Operating System: winxp
PHP Version: 4.4.4
New Comment:
c
Previous Comments:
------------------------------------------------------------------------
[2006-09-13 21:40:57] mtoohee at gmail dot com
Description:
------------
Hi. I am the author of a quiz done in flash which uses php to keep
track of a scoreboard. I got the php code off a nice guy on the
internet. Anyway the scoreboard was working perfect for a year but then
recently it just stiopped working. And when I try to view the score
board in html
([url]http://quiz.thedrunkenclam.com/scores.php?filename=scores/fgquiz3586.sco&scoresize=50&action=VIEW&viewtype=H TML[/url])
I get the following error message:
Warning: fclose(): supplied argument is not a valid stream resource in
/home/hogie/public_html/quiz/scores.php on line 9
I'm wondering if this is a bug to do with a newer version of php as I
have not touched the php code since I implemented it about a year ago.
A quick answer would be greatly appreciated. It's justy annoying that
something works well for a year and then all of a sudden stops working.
Okay thanks for listening.
Reproduce code:
---------------
Here's the first few lines of code where the error occurs:
<?php
$winscore = (int)$winscore;
// Create a Blank File if it doesn't already exist
if (!file_exists($filename))
{
$file=fopen($filename, "w");
fclose ($file);
}
// Read the file in
$oscores = file ($filename);
$numreadin = count($oscores);
Expected result:
----------------
A scoreboard list of fifty people and they're respective scores.
Actual result:
--------------
Warning: fclose(): supplied argument is not a valid stream resource in
/home/hogie/public_html/quiz/scores.php on line 9
------------------------------------------------------------------------
--
Edit this bug report at [url]http://bugs.php.net/?id=38816&edit=1[/url]
mtoohee at gmail dot com Guest
-
#38816 [NEW]: PHP code that was working perfectly recently stopped.
From: mtoohee at gmail dot com Operating system: winxp PHP version: 4.4.4 PHP Bug Type: *General Issues Bug description: ... -
css tags have stopped working
Up until Thursday, my css tags worked. Today they don't. Since Thursday I have loaded no new programs but have uploaded a couple of Microsoft... -
CFmail stopped working
CFmail has been working fine until today. I've changed nothing in the Cold Fusion setup or config screens, but now I'm getting the following error... -
ASP stopped working in IIS 5
Take a look at the thread with almost the same subject from about an hour prior to yours. Also take a look at http://www.aspfaq.com/2109. Ray at... -
My PE2 stopped working on my E-Mac
Hi can someone help out there ? I have E-mac with 768 MB RAM. My PE2 has approximately 5400 pictures and I have been tranferring this pictures to...



Reply With Quote

