making sentances into words...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qwe
    Confirmed User
    • Jul 2003
    • 2109

    #31
    yah, i down sized file like 10x smaller, and it worked....

    Comment

    • ProG
      Confirmed User
      • Apr 2009
      • 1319

      #32
      You know, if you have 6gb of RAM you can use it all. Change the memory_limit to 512MB or 1024MB.
      History will be kind to me for I intend to write it.

      Comment

      • qwe
        Confirmed User
        • Jul 2003
        • 2109

        #33
        Originally posted by ProG
        You know, if you have 6gb of RAM you can use it all. Change the memory_limit to 512MB or 1024MB.
        cool, i also switched 30seconds to 200 seconds for script execution ;>

        Comment

        • ProG
          Confirmed User
          • Apr 2009
          • 1319

          #34
          Yes, that too. I usually set my localhost to 300 seconds (5 minutes).
          History will be kind to me for I intend to write it.

          Comment

          • qwe
            Confirmed User
            • Jul 2003
            • 2109

            #35
            Originally posted by ProG
            Yes, that too. I usually set my localhost to 300 seconds (5 minutes).
            sweet thanks again

            Comment

            • qwe
              Confirmed User
              • Jul 2003
              • 2109

              #36
              one more thing, in php.ini should it be

              memory_limit = 1024M OR memory_limit = 1024

              does it need to have M at the end ? thx

              Comment

              • ProG
                Confirmed User
                • Apr 2009
                • 1319

                #37
                I am not 100% sure but I believe it works on a system like "100K", "100M", "100G", so the "M" would be necessary. Sorry I'm a programmer not a system admin.
                History will be kind to me for I intend to write it.

                Comment

                • qwe
                  Confirmed User
                  • Jul 2003
                  • 2109

                  #38
                  Originally posted by ProG
                  I am not 100% sure but I believe it works on a system like "100K", "100M", "100G", so the "M" would be necessary. Sorry I'm a programmer not a system admin.
                  gotchya, thanks

                  Comment

                  • qwe
                    Confirmed User
                    • Jul 2003
                    • 2109

                    #39
                    hey ProG, anyway you can make me another simple script? to check for any empty lines and lines that start with 0-9 or some weird symbols (such as -,---,===,%---, etc, etc) and remove those lines ? basically to remove any empty lines and lines that start with anything other then a valid character (a-z or A-Z)
                    Last edited by qwe; 05-03-2009, 10:52 PM.

                    Comment

                    • d-null
                      . . .
                      • Apr 2007
                      • 13724

                      #40
                      Originally posted by qwe
                      hey ProG, anyway you can make me another simple script? to check for any empty lines and lines that start with 0-9 or some weird symbols (such as -,---,===,%---, etc, etc) and remove those lines ? basically to remove any empty lines and lines that start with anything other then a valid character (a-z or A-Z)

                      if I understand what you are asking for, this will do it nicely:

                      Code:
                      <?php 
                      if ( ( $file = file( "file.txt" ) ) !== false ) 
                      { 
                          foreach( $file as $line ) 
                          { 
                              if (ctype_alpha($line{0}))
                      		
                              { 
                                    echo $line . "<br>"; 
                                   
                              } 
                          } 
                      } 
                      ?>

                      __________________

                      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 Suite

                      Comment

                      • d-null
                        . . .
                        • Apr 2007
                        • 13724

                        #41
                        also note that I used <br> for html output instead of \n so if you need it for your text file use then you should change that part

                        __________________

                        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 Suite

                        Comment

                        • ExLust
                          Confirmed User
                          • Aug 2008
                          • 3223

                          #42
                          Good luck!

                          BE A PARTNER

                          Comment

                          • voa
                            Too lazy to set a custom title
                            • Nov 2006
                            • 16532

                            #43
                            im not sure that something like that is exist

                            Comment

                            • d-null
                              . . .
                              • Apr 2007
                              • 13724

                              #44
                              Originally posted by voa
                              im not sure that something like that is exist

                              __________________

                              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 Suite

                              Comment

                              • Scootermuze
                                Confirmed User
                                • Dec 2001
                                • 4513

                                #45
                                Sentances?

                                Might wanna incorporate a spell checker into this thing too..

                                Sorry.. had to be said..

                                Comment

                                Working...