ipxe

Boot iPXE from harddisc (Network booting from GRUB using iPXE)

<?php
$URL="https://raw.githubusercontent.com/panticz/preseed/master/ipxe/scripts/install_grub_ipxe.sh";
echo "wget -q $URL -O - | bash -";
echo "

";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
echo htmlspecialchars(curl_exec($c));
curl_close($c);
echo "

";
?>

Links
http://packages.ubuntu.com/de/vivid/grub-ipxe
http://ipxe.org/embed