The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

About header scripts on php code

Discussion in 'cPanel Developers' started by webstyler, Mar 12, 2013.

  1. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    Hello

    I'm writing WHM plugin with PHP

    at this time all works but not understand how to add in the first line the right code for generate page template, cpanel support label, ..

    check other perl plugin see code as:

    ..
    use lib '/usr/local/cpanel';
    use Whostmgr::HTMLInterface ();
    ..
    print "Content-type: text/html\r\n\r\n";
    ..
    Whostmgr::HTMLInterface::defheader("My New Script",'','/cgi/addon_mynewscript.cgi');
    ..

    HOW to call this on php ?

    Thanks
     
Loading...

Share This Page