Jump to content


  • Posts

  • Joined

  • Last visited

Funker_joe's Achievements


Newbie (1/7)



  1. If you type www. in my site's URL, it no longer works.However, if you only have http:// it will work.If you have both: http://www. it will not work.Does anyone know why this is?My Webpage - Click here to test if you want to try it yourself.
  2. You should add Notepad++ to that list.
  3. Funker_joe

    File Count

    I used the second code aliendisaster posted.Also, the php version installed is: 4.3.11<?php $totalFiles = 0;$dirname = "test01";if(!($dh=opendir($dirname))) die("Couldn't find ".$dirname);while (!(($file = readdir($dh)) === false)){ if (is_file("$test01/$file")){ $totalFiles ++; }}closedir($dh);?> I changed it to that.Then, I made the index file have: <a href="01122.htm"><?php echo "$totalFiles"; ?></a> Everything seems to be fine, but the link always shows up as 0, no matter if I add files to the dir or not.
  4. Funker_joe

    File Count

    I get this error:Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/profile/public_html/watm/php/01.php on line 5
  5. Funker_joe

    File Count

    Hello,I was wondering how I would go about having a number readout of how many files are in a given directory. Then that number would be displayed in the htm document.Sorry if this sound stupid, but I've never typed anything in PHP before.Thanks,-Joe
  • Create New...