Jump to content

parse text file and compare


crispweasel

Recommended Posts

i want to be able to have a tab delimited text file with numbers that are blocked. i have this much right now

 

// Parse text file for blocked numbers
$handle = fopen("blocked.txt", "r");
	if $number = a number in the text file	// unsure how to do this
		$error = "That number is blocked on this system";
fclose($handle);

 

how do i compare finish this off?

Link to comment
https://forums.phpfreaks.com/topic/125802-parse-text-file-and-compare/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.