iPXE/PHP
|
2012-09-17, 11:15
Post: #1
|
|||
|
|||
iPXE/PHP
Hi!
I am pretty new to iPXE, but fell in love when I could build dynamic around my menus. As of $NOW I have a working installmenu /dynamic, which allows reinstall, based on if we can find our MACADDRESS in a hostfile together with a HOSTNAME, that sets this hostname together with a bunch of other variables. If its a new computer we have a password protected menu, and hostname as input (we dont allow our users to install new computers, for that we use our IT-personell). I have som simple problems with PHP in my iPXE menu (which I have ignored (found other solutions), but I dont understanda why PHP is behaving the way it does (I am testing my PHP scripts in a browser before I try on the iPXE menu). * How does actually PHP work together with iPXE? * Can I do everything in iPXE with PHP as I can do on a website with a browser reading? * Some simple logic in my menu like turning on and off a variable does not work (instead iPXE runs brutally over the variables, and sets them instead of checking, even if I use "===" my If/elseif it is not working as it should (the logic is working correctly in my browser ![]() Everything in iPXE with PHP is running on the server right? I can use shell_exec and use the output to something useful. Like ls and get back a filelist on the server. Read and write files on the server. $_SERVER variables is also giving me the server IP ![]() For instance (atm) I am using the "login" menu to check username/password, with iseq (what bothers me is that this password is in clear text if anyone tries to read this menu with a browser, if they know the filename of course ![]() Why is PHP in iPXE not always working as PHP does on my browser... Its hard to find some documents around this, so any input/advice etc? Regards, Torgeir (When I am doneTweaking/optimizing the menu, Ill be happy to share my findings/solutions. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
iPXE/PHP - Torgeir - 2012-09-17 11:15
RE: iPXE/PHP - robinsmidsrod - 2012-09-17, 11:55
RE: iPXE/PHP - Torgeir - 2012-09-17, 13:44
RE: iPXE/PHP - Torgeir - 2012-09-18, 07:29
RE: iPXE/PHP - Torgeir - 2012-09-18, 11:52
|
User(s) browsing this thread: 1 Guest(s)