Funker_joe
-
Posts
5 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Funker_joe
-
-
You should add Notepad++ to that list.
- 2
-
File Count
in PHP
I used the second code aliendisaster posted.Also, the php version installed is: 4.3.11What code did you use?<?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.
-
File Count
in PHP
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
-
File Count
in PHP
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
URL Problems
in Web Services
Posted
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.