I'm trying to determine why my terminal is only displaying one column of data. There's a file named "marketplace_storefronts_client_products_moreinfo.htm". Please note the extension. There's nothing in Apache config stating that htm should be parsed by PHP. However, within this file is the following:
$i = $_GET[id];
$file = fopen('prod',"r");
$id = 0;
while (! feof($file)) {
$string = fgets($file);
if(preg_match("/$i/", $string)) {
$arr = explode("\t",$string);
if($arr[0] == $i) $id = $arr[1];
if($id > 0) break;
}
}
fclose($file);
Note now that we're opening a file named 'prod'. This file contains 548 lines like the following:
3671 266
1000 224
1032 96
1033 100
This file is used to redirect a browser request to another page. This file is read and parsed, one line at a time, *every* single time the browser requests the page that redirects here. Or, it would, if it weren't being returned directly to the browser :(