What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Help me please with script

Help me please with script
Author: Message:
segosa
Community's Choice
*****


Posts: 1407
Reputation: 92
Joined: Feb 2003
RE: Help me please with script
You need your pages to be .php ones.. and in the place you want it to appear you put..
code:
<?php
function count_files( $dir )
{
     $retval = 0;
     if( $dir && is_dir( $dir ) )
     {
          if( ($d = opendir( $dir )) !== false )
          {
               while( ($f = readdir( $d )) !== false )
               {
                    if( is_file( $dir . "/" . $f ) ) ++$retval;
               }
               closedir( $d );
          }
     }
     return $retval;
}

echo "We have ".count_files( "/soundpacks" )." sound packs..";
?>

or whatever..
The previous sentence is false. The following sentence is true.
04-26-2005 09:05 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Help me please with script - by absorbation on 04-26-2005 at 06:04 PM
RE: Help me please with script - by Eljay on 04-26-2005 at 06:12 PM
RE: Help me please with script - by absorbation on 04-26-2005 at 08:46 PM
RE: Help me please with script - by segosa on 04-26-2005 at 09:05 PM
RE: Help me please with script - by absorbation on 04-26-2005 at 09:31 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On