Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2005
    Posts
    4

    Default remote key php

    i was looking at the account creation php script
    PHP Code:
    $response createacct("rdfdfc.co.uk","root",$rak,0,"redfmdfked.co.uk","tdft","tdfdftp","shop"); 
    i was wondering whether someone could explain all this to me

    the first bit, which i have as r4c.co.uk - is this the hosts domain?

    i think the second bit, which i have as root is the hosts username?

    the third i know is the remote acces key

    the third - the domain the new account is asociated with?

    the next two are the user name and password of the new account?

    and the last is the package of the new account?

    the main question is why would you put YOUR domain at the start when creating new accounts?

    thanks.

  2. #2
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default I have an idea . . .

    Hi Dave,

    I reckon I'm about as new to this as you are, however I've been looking around for documentaion on this topic and I might have found something useful.

    There appears to be a forum that is detailing the development of something that uses the PHP accounting functions that mentions something on the subject.

    The URL of the relevant post is: http://forums.seraphistudios.com/sho...?p=257#post257

    To answer your question, the impression I get is that the first parameter of createacct() specifies the server on which to create the account.

    I suppose this is because you could (not necessarily saying would) choose to use this functon to create an account on any server to which you had access.

    Without this option, you would be limited to only being able to create accounts on the server that is holding Accounting.php.inc that you would be including.

    I suppose the chances of needing to create an account of a different server are remote (Is that a pun?), since if a server is running Cpanel it should have local access to Accounting.php.inc. Nevertheless, someone might want to do it.

    Well, that's my thinking. I might be wrong, as I often am.

  3. #3
    Member
    Join Date
    Jan 2005
    Posts
    1,880

    Default In case it helps

    Apparently this first parameter of createacct() can just be "localhost" if you're only interested in creating accounts on the server executing your script, which I expect it the case.

    If so, it might be best to stick with "localhost" incase you ever need to change your domain name.

    Out of interest, I'd be interested in knowing how things go.

Similar Threads & Tags
Similar threads

  1. Remote Access Key help
    By svr2009wwe in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-05-2009, 03:29 PM
  2. Remote Access Key
    By Znuke in forum cPanel and WHM Discussions
    Replies: 24
    Last Post: 01-29-2007, 11:31 AM
  3. Remote key
    By pva in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-09-2005, 12:55 PM
  4. PHP 4.3.10 Remote Access Key troubles... (i think)
    By listenmirndt in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-11-2005, 08:00 PM
  5. remote key?!
    By Sinewy in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-26-2004, 03:34 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube