Hi all i have this file ---- ip.txt [------------------------------------------------------------] Windows IP Configuration Ethernet adapter Local Area Connection: Connection-specific DNS Suffix . : IP Address. . . . . . . . . . . . : 192.168.1.68 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.254 [------------------------------------------------------------] i want to extract the IP address 192.168.1.68 from this file ... how can i ? this is the first time i deal with file ( reading and writing ) in php . i hope u can help me.. thanks --