iPXE and calling PHP
|
2019-02-26, 00:33
Post: #1
|
|||
|
|||
iPXE and calling PHP
I'd like to be able to run a php function to write the MAC and serial to a database. This is working, however when calling the php file ipxe exits and returns to the boot selection menu or boots the hard drive (depending on machine). Ideally I'd like to boot a new computer, call a function to write serial and mac to a database (using php i presume), then be able to continue in the ipxe menu to make a different boot selection.
From my testing it appears as long as php is 'ipxe compliant' and finishes running without error, it will return to ipxe menu, however because the php is running its own functions ipxe crashes with an error. menu.ipxe Code: :prestage index.php - example code 'ipxe compliant' - returns to ipxe successfully Code: <?php index.php - example code - breaks with error Code: <?php index.php - actual code works for purposes of writing database but crash exits Code: <?php Do I need to compile ipxe binary with a different option? |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
iPXE and calling PHP - ndog - 2019-02-26 00:33
RE: iPXE and calling PHP - NiKiZe - 2019-02-26, 00:55
RE: iPXE and calling PHP - ndog - 2019-02-27, 04:36
RE: iPXE and calling PHP - NiKiZe - 2019-02-27, 08:11
RE: iPXE and calling PHP - ndog - 2019-02-27, 20:59
|
User(s) browsing this thread: 1 Guest(s)