include("header.inc"); if (!isset($_GET['prod']) || (!file_exists("WSFILES/" . $_GET['prod'] . "_n"))){ //Product bestaat niet... ?>
$file = fopen("WSFILES/" . $_GET['prod'] . "_p", "r");
$q = "";
while (!feof($file)){
$q .= fgets($file, 1024);
}
fclose($file);
if (!file_exists("WSFILES/" . $_GET['prod'] . ".bmp")){
echo ' '; echo " € " . number_format($q, 2, ",", ".") . " "; ?> } else { echo ' '; echo " € " . number_format($q, 2, ",", ".") . " "; ?> } $file = fopen("WSFILES/" . $_GET['prod'] . "_k", "r"); $q = ""; while (!feof($file)){ $q .= fgets($file, 1024); } fclose($file); echo " | " . $q . " "; $file = fopen("WSFILES/" . $_GET['prod'] . "_g", "r"); $q = ""; while (!feof($file)){ $q .= fgets($file, 1024); } fclose($file); echo $q . " |