27.12.2014 Views

QLogic OFED+ Host Software User Guide, Rev. B

QLogic OFED+ Host Software User Guide, Rev. B

QLogic OFED+ Host Software User Guide, Rev. B

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8–gPXE<br />

Netbooting Over InfiniBand<br />

The following is an example of a uniboot.php file:<br />

<<br />

header ( 'Content-type: text/plain' );<br />

function strleft ( $s1, $s2 ) {<br />

return substr ( $s1, 0, strpos ( $s1, $s2 ) );<br />

}<br />

function baseURL() {<br />

$s = empty ( $_SERVER["HTTPS"] ) '' :<br />

( $_SERVER["HTTPS"] == "on" ) "s" : "";<br />

$protocol = strleft ( strtolower (<br />

$_SERVER["SERVER_PROTOCOL"] ), "/" ).$s;<br />

$port = ( $_SERVER["SERVER_PORT"] == "80" ) "" :<br />

( ":".$_SERVER["SERVER_PORT"] );<br />

return $protocol."://".$_SERVER['SERVER_NAME'].$port;<br />

}<br />

$baseurl = baseURL();<br />

$selfurl = $baseurl.$_SERVER['REQUEST_URI'];<br />

$dirurl = $baseurl.( dirname ( $_SERVER['SCRIPT_NAME'] )<br />

);<br />

$kver = "2.6.18-164.11.1.el5";<br />

echo

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!