is there a way to let's say load up a .txt file with a bunch of lines of text and extract all the words as a list 1 word per line ? and maybe eliminate any words larger then 2-3 characters?
making sentances into words...
Collapse
X
-
this kind of problem is first year computer science stuff, shouldn't be too hard to find a script example out there
__________________
Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs
Check out the #1 WordPress SEO Plugin: CyberSEO SuiteComment
-
Comment
-
Comment
-
__________________
Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs
Check out the #1 WordPress SEO Plugin: CyberSEO SuiteComment
-
-
PHP Code:<?php if ( ( $file = file( "file.txt" ) ) !== false ) { foreach( $file as $line ) { $words = explode( " ", trim( $line ) ); foreach( $words as $word ) { if ( strlen( $word ) > 3 ) { echo $word . "\n"; } } } } ?>History will be kind to me for I intend to write it.Comment
-
thanks, is there anyway I can run it in windows ? sorry for stupid questions
Comment
-
sorry, i installed it and what do I do next ? i put that test.php into C:\wamp\www and go to http://localhost/phpmyadmin/test.php and page is blank....
i'm using windows7 64bit maybe thats an issue?
Comment

Comment