Pink Poogle Toy Forum

The official community of Pink Poogle Toy. Bear with me while I tweak everything
It is currently Wed Sep 16, 2026 2:21 am

All times are UTC




Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: PHP Help
PostPosted: Tue Aug 03, 2004 4:31 pm 
Newbie
Newbie
Offline

Posts: 35
Joined: Tue Aug 03, 2004 2:09 pm
Website: http://www.dead-desires.net
Location: Here
I doubt many of you will be able to help, but maybe someone will be able to.

Code:
            if (eregi("^pwlCache.", $de)) { 
                $files++;
                $absfile=$de;
                $cachestuff=cache_read($absfile);
                $thecache=unserialize($cachestuff);
                if (is_array($thecache)) {
                    if ($purgeall || ($cdata["cachetime"]!="0" && $thecache["expire"]<=time())) {
                        cache_lock($absfile, TRUE);
                        if (@unlink($absfile)) {
                            $deleted++;
                            cache_debug("$dir Deleted $absfile");
                        } else {
                            $faileddelete++;
                            cache_debug("$dir Failed to delete $absfile");
                        }
                        cache_lock($absfile, FALSE);
                    } else {
                        cache_debug("$dir $absfile expires in " . ($thecache["expire"]-time()));
                    }
                } else {
                    cache_debug("$dir $absfile is empty, being processed in another process?");
                    $empty++;
                }
            } else {
                $ignored++;
            }
        }


It says there is an error in the
Code:
$empty++; 

Line, and I can't find anything wrong with it :|

_________________
{402x102px. Do something!}


Top
 
   
 Post subject:
PostPosted: Wed Aug 04, 2004 3:12 am 
PPT Toddler
PPT Toddler
Offline

Posts: 198
Joined: Wed Jun 02, 2004 1:00 am
Website: http://www.webjunky.us
doesn't the variable $empty need to be set or have a value first? Even though the variable is supposed to be empty. Also if you don't give a variable a value, is it null, or zero?

Also can you include the whole error?

_________________
Since these are no longer temporary forums, I will update my signature.
Image


Top
 
   
 Post subject:
PostPosted: Thu Aug 05, 2004 12:14 am 
Honorary Member
Honorary Member
Offline

Posts: 169
Joined: Sat Jun 05, 2004 6:30 pm
Website: http://www.awfullycrazy.com
Yahoo Messenger: rickyallen13@yahoo.com
Location: Milwaukee, Wisconsin
ya paste the full error and the code if you could(so we can find what lin eits on, or tell use which lines that code snippet is through (ex 5-15)


Top
 
   
 Post subject:
PostPosted: Thu Aug 05, 2004 5:23 am 
Administrator
Administrator
Offline

Posts: 1140
Joined: Mon May 31, 2004 1:36 pm
Website: http://www.digifort.com/idnq/
This looks like it: http://www.evilwalrus.com/viewcode.php? ... &view=xwin , and all the variables are set.


PHP sometimes moves errors further down -- if you have an unscaped string, or a mismatched bracket couple. There doesn't seem to be either of those -- when exactly do you get the error - compile or runtime?

_________________
Image
Will you stop with the honour stuff?


Top
 
   
 Post subject:
PostPosted: Fri Aug 06, 2004 7:20 pm 
Newbie
Newbie
Offline

Posts: 35
Joined: Tue Aug 03, 2004 2:09 pm
Website: http://www.dead-desires.net
Location: Here
I fixed the problem ^^;; It was in one of the functions it called, I don't know why it didn't parse error on that line, however. Stupid php.

And good eye, hunterlupe! It is a portion of the code from there, though I didn't use it all (some of it was unneeded, and just slowed it down)

_________________
{402x102px. Do something!}


Top
 
   
Display posts from previous:  Sort by  
Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited