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.

Problem when deleting forwarder

Discussion in 'General Discussion' started by oldunis, Feb 25, 2005.

  1. oldunis

    oldunis Registered

    Joined:
    Jun 11, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I've got a problem trying to delete a forwarder with PHP... I use the same script for adding forwarder and subdomain, which works. But when i try to do it to delete email forwarder, even if i make it show what it receieve (success in this case), the forwarder is still there and just won't be deleted...

    I've updated to latest STABLE version... still doesn't work

    Don't know what to do, hope you could help!
     
    #1 oldunis, Feb 25, 2005
    Last edited: Feb 25, 2005
  2. macooper

    macooper Member

    Joined:
    May 3, 2004
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    Can't really say why your version doesn't work, but I just tried the followinh PHP, and it works fine on 9.9.8-RELEASE 5. This is using the X theme.

    PHP:
    $request "/frontend/x/mail/dodelfwd.html?email=test@example.com=me@example.com";

    $username 'myusername';
    $password 'mypassword';
    $host 'www.example.com';

    $ch curl_init();
    curl_setopt($chCURLOPT_SSL_VERIFYPEER,0);
    curl_setopt($chCURLOPT_SSL_VERIFYHOST,0);
    curl_setopt($chCURLOPT_RETURNTRANSFER1);

    curl_setopt($chCURLOPT_URL"https://$host:2083" $request);  

    curl_setopt($chCURLOPT_USERPWD"$username:$password");

    $result curl_exec($ch);  
    curl_close($ch);
    echo 
    $result;
    HTH,
    Martin
     
  3. PHPEcono

    PHPEcono Active Member

    Joined:
    Apr 3, 2006
    Messages:
    29
    Likes Received:
    0
    Trophy Points:
    0
    Sorry wroung post
     
    #3 PHPEcono, Nov 19, 2008
    Last edited: Nov 19, 2008
Loading...

Share This Page