<html><head></head><body bgcolor="#FFFFFF"><div>Hello Franck,</div><div><br></div><div>All you need to do is return plaintext[1] from your PHP code, formatted as an iPXE script file, just like the one you embedded:</div><div>
<br></div><div>#!ipxe</div><div>command1</div><div>command2</div><div><br></div><div>And so on. If you don't do much with PHP, you can just put a text file on your web server instead, of course, and edit it as needed to include new content or updated paths. Naturally, if you want to, for example, enumerate a directory and generate a menu from it, PHP or some other server side scripting language is the way to go.</div>
<div><br></div><div>To get an idea of how to structure menus, just take a look at the menu documentation on the website. It'll get you going. If you need some samples to work with, there are plenty available; I just don't have the links handy here on my phone ;)</div>
<div><br></div><div>Cheers,</div><div>Andrew Bobulsky</div><div><br></div><div>[1] I usually get plaintext output by putting, I think, ' Header("Content-type: text/plain"); ' in my PHP file.</div><div><br>
</div><div><br><br>On Nov 2, 2012, at 11:07 AM, E-Blokos <<a href="mailto:infos@e-blokos.com">infos@e-blokos.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>
<meta content="text/html; charset=windows-1252" http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.19328">
<style></style>
<div><font>Hi,</font></div>
<div><font></font> </div>
<div><font>just discovered ipxe which is a very interesting
project.</font></div>
<div><font>I compiled undionly.kpxe with EMBED=demo.ipxe</font></div>
<div><font>with this code inside demo.ipxe</font></div>
<div><font></font> </div>
<div><pre class="code"> #!ipxe
dhcp
chain <a href="http://myserver/ipxe/boot.php">http://myserver/ipxe/boot.php</a></pre><pre class="code">But I don't understand what to put in boot.php</pre><pre class="code">my wish would be to have directly a menu with choice of booting</pre>
<pre class="code">on Live cd or anything else directly</pre><pre class="code">is it possible and how ?</pre><pre class="code"> </pre><pre class="code">Thanks</pre><pre class="code"> </pre><pre class="code">Franck</pre><pre class="code">
</pre></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>ipxe-devel mailing list</span><br><span><a href="mailto:ipxe-devel@lists.ipxe.org">ipxe-devel@lists.ipxe.org</a></span><br>
<span><a href="https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel">https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel</a></span><br></div></blockquote></body></html>