Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

About header scripts on php code

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

  1. webstyler

    webstyler Well-Known Member

    Nov 20, 2003
    Likes Received:
    Trophy Points:

    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 ?

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice