Current location: Hot Scripts Forums » General Community » Script Requests » Looking for a line counter php script


Looking for a line counter php script

Reply
  #1 (permalink)  
Old 07-20-04, 07:26 PM
blasto333 blasto333 is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Looking for a line counter php script

I need a line counter script that will look through a directory and subdirectories and count the number of lines in each text file and output a final number. I could probably make the script but I would rather just download one that is ready to go.

I seach all categories for

"Line counter"

The only one I found was

http://www.hotscripts.com/Detailed/19508.html

but it was in perl which I can't run.

Thanks,

Chris
Reply With Quote
  #2 (permalink)  
Old 07-20-04, 08:11 PM
infinitylimit's Avatar
infinitylimit infinitylimit is offline
Code Guru
 
Join Date: Jun 2004
Location: Oregon
Posts: 758
Thanks: 0
Thanked 0 Times in 0 Posts
What language, and what type of delimter (CR,LF,CRLF)?
__________________
Hawk Enterprises -- Home to PHP games, open-source code, tutorials and free downloads
Reply With Quote
  #3 (permalink)  
Old 07-20-04, 08:45 PM
blasto333 blasto333 is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
PHP for the language and I am not sure what you mean by delimter. I just want a script that counts the number of lines in each file within a directory. The files would be .php files.
Reply With Quote
  #4 (permalink)  
Old 07-20-04, 09:30 PM
kvnband kvnband is offline
Wannabe Coder
 
Join Date: Jun 2003
Posts: 242
Thanks: 0
Thanked 0 Times in 0 Posts
So the delimiter is probably \n
Reply With Quote
  #5 (permalink)  
Old 07-21-04, 02:00 PM
ermau's Avatar
ermau ermau is offline
Wannabe Coder
 
Join Date: Aug 2003
Location: Florida, USA
Posts: 240
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by infinitylimit
What language, and what type of delimter (CR,LF,CRLF)?
If you use file() it wouldn't be an issue..
__________________
PHP / mySQL Developer
Reply With Quote
  #6 (permalink)  
Old 07-21-04, 02:02 PM
blasto333 blasto333 is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks

I ended up making it in java, it only took about 4 hours as I had to learn certain things along the way. It was very fun! It does all I want and it feels much better when you use your own program!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Redirection back to a page from form submit DAL Perl 11 03-21-05 02:45 PM
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 12:12 AM
Run PHP Script Within PHP Script Reg PHP 1 06-29-04 09:09 AM
asp-iis-Server error nsuresh_rasr ASP.NET 3 02-08-04 12:47 AM
Affiliate script (PHP) whtiebear Job Offers & Assistance 2 12-21-03 12:12 AM


All times are GMT -5. The time now is 10:47 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.