43        if (!file_exists($file)) {
 
   46        $fh = fopen($file, 
'r');
 
   62        if (!file_exists($file)) {
 
   66        $fh = fopen($file, 
'r');
 
   93            if ($line === 
false) {
 
   96            $line = rtrim($line, 
"\n\r");
 
   97            if (!
$state && $line === 
'') {
 
  100            if ($line === 
'----') {
 
  103            if (strncmp(
'--#', $line, 3) === 0) {
 
  106            } elseif (strncmp(
'--', $line, 2) === 0) {
 
  108                $state = trim($line, 
'- ');
 
  115                if (strpos($line, 
':') !== 
false) {
 
  117                    list(
$state, $line) = explode(
':', $line, 2);
 
  131        } 
while (!feof($fh));
 
if(!array_key_exists('stateid', $_REQUEST)) $state
Handle linkback() response from LinkedIn.
An exception for terminatinating execution or to throw for unit testing.
Parses string hash files.
parseHandle($fh)
Internal parser that acepts a file handle.
parseMultiFile($file)
Parses a file that contains multiple string-hashes delimited by '-—'.
parseFile($file)
Parses a file that contains a single string-hash.