[ipxe-devel] boot.php
Andrew Bobulsky
rulerof at gmail.com
Fri Nov 2 16:07:26 UTC 2012
Hello Franck,
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:
#!ipxe
command1
command2
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.
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 ;)
Cheers,
Andrew Bobulsky
[1] I usually get plaintext output by putting, I think, '
Header("Content-type: text/plain"); ' in my PHP file.
On Nov 2, 2012, at 11:07 AM, E-Blokos <infos at e-blokos.com> wrote:
Hi,
just discovered ipxe which is a very interesting project.
I compiled undionly.kpxe with EMBED=demo.ipxe
with this code inside demo.ipxe
#!ipxe
dhcp
chain http://myserver/ipxe/boot.php
But I don't understand what to put in boot.php
my wish would be to have directly a menu with choice of booting
on Live cd or anything else directly
is it possible and how ?
Thanks
Franck
_______________________________________________
ipxe-devel mailing list
ipxe-devel at lists.ipxe.org
https://lists.ipxe.org/mailman/listinfo.cgi/ipxe-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20121102/e67f160c/attachment.htm>
More information about the ipxe-devel
mailing list