The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP not loading all lines
2014-07-24, 12:26 (This post was last modified: 2014-07-24 12:27 by jhonny.)
Post: #1
PHP not loading all lines
Hi Guys,

Me again, with some more PHP woes...

Just wondering, i've got iPXE booting into a php file ...

Code:
    if ($job==03)
    {
    print "echo Job 03 Found... Launching Job 03 (Automatic) "."\n";
    print "sleep 5"."\n";
    echo "append initrd http://192.168.0.1/initrd.img\n";
    echo "kernel http://192.168.0.1/vmlinuz initrd=initrd.img rw root=/dev/ram0 ramdisk_size=1105536 init=/bin/init loglevel=3 ide=nodma ide=noraid nopat pnpbios=off vga=791 splash=silent\n";
    }

The problem is only the first 3 lines of code in the IF statement execute and then ipxe exits out to ipxe menu.
The last line of code including the echo "kernel.." doesn't run.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
PHP not loading all lines - jhonny - 2014-07-24 12:26



User(s) browsing this thread: 1 Guest(s)