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!

3rdparty Perl Scripts and cpanel variables

Discussion in 'General Discussion' started by powerhouse, Jun 2, 2004.

  1. powerhouse

    powerhouse Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    306
    Location:
    Ok
    I am trying to build a perl script which will check the users domain, however, the cpanel print="domain"> tag does not seem to work in there...

    How can I get the domain name of the user, in a 3rd Party perl script?

    Thanks,
    Richard
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. powerhouse

    powerhouse Well-Known Member

    Joined:
    Nov 5, 2001
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    306
    Location:
    Ok
    One more thing....

    Can I not use CGI to redirect from 3rdparty?

    I put in the script, thus far, if the domain is this, then do this:

    print redirect(-uri=>$_oldway);

    if it is a different domain then

    print redirect(-uri=>$_newway);

    But when I run the script with a static domain called, since I cannot yet figure out how to get the domain name, I get this:

    Status: 302 Moved Location: http://blahblahblah

    I changed the domain name, but that is what happens. Do I have to use a metatag to do a redirect??

    Thanks!
    Richard
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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