User Profile

Collapse

Profile Sidebar

Collapse
s4ndr0ck
s4ndr0ck
Last Activity: Apr 18 '08, 01:12 PM
Joined: Feb 13 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • please correct me if i'm wrong,
    [PHP]<? substr($line,0, 3) == Cpu ?>[/PHP]
    is to read $line from 1st character to 3rd character, and compare it to string 'Cpu'

    It works, thank you...
    See more | Go to post

    Leave a comment:


  • I'm sorry...

    I have this line from a text file:
    Code:
    Cpu(s):(B(B 1.4%(Bus,(B(B 1.6%(Bsy,(B(B 0.0%(Bni,(B(B 96.3%(Bid,(B(B 0.4%(Bwa,(B(B 0.3%(Bhi,(B(B 0.1%(Bsi,(B(B 0.0%(Bst(B
    and...
    See more | Go to post

    Leave a comment:


  • s4ndr0ck
    started a topic Parsing a delimited text file into mysql database
    in PHP

    Parsing a delimited text file into mysql database

    Alrights....the delimited text in the topic is like this :



    I would like to get the string with % in the line start with CPU(s) (shown Bold) and put them into a variables..

    Would someone be kind enough to write a php file which will do that?
    Because i know nothing about this parsing things, and just a very little knowledge about php. So the code would need to be complete i hope.....
    See more | Go to post
No activity results to display
Show More
Working...