Script for visitors email account facilities signup automatically

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • atcohaz
    New Member
    • Dec 2006
    • 8

    Script for visitors email account facilities signup automatically

    Hi everybody,

    I have a personal server (I learning) with Linux
    with using Cpanel

    I only need such script which enables me to create email accounts without logging into cPanel. And in which I can provide our visitors email account facilities with script and User cans signup automatically and I can specific quota, username & password length etc. (and which don’t show my Cpanel username and password to users)

    I have tried script


    But coming up this error:
    Warning: fopen(http://...@mail.hazratsultanbahu.com...sword&quota=20) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.0 401 Access Denied Still Working in /home/mailhaz/public_html/cpemail.php on line 50
    Cannot create email account. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode

    If you can help me I can send you my Cpanel username and password

    Some one can help me then I shall add his name in this script as script other?????????? ?

    Thanks!

    Yours truly,
    M Farooq
    Webmaster


    P.S. If possible sent me your answer at atco nospam at azratsultanbahu nospam dot com
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    When you are running in SAFE mode, you are in for some trouble here. Advise to read the php documentation on safe mode HERE before you continue.

    Originally posted by PHP doc
    resource fopen ( string filename, string mode [, bool use_include_pat h [, resource context]] )

    fopen() binds a named resource, specified by filename, to a stream. If filename is of the form "scheme://...", it is assumed to be a URL and PHP will search for a protocol handler (also known as a wrapper) for that scheme. If no wrappers for that protocol are registered, PHP will emit a notice to help you track potential problems in your script and then continue as though filename specifies a regular file.

    If PHP has decided that filename specifies a local file, then it will try to open a stream on that file. The file must be accessible to PHP, so you need to ensure that the file access permissions allow this access. If you have enabled safe mode, or open_basedir further restrictions may apply.
    Ronald :cool:

    Comment

    • atcohaz
      New Member
      • Dec 2006
      • 8

      #3
      I know nothing zero about PHP I need your amended script for current way and result

      If you can help me I can send you my Cpanel username and password

      On your help we shall add your name in this script as script author?

      Thanks!

      Yours truly,
      M Farooq
      Webmaster
      www.mail.hazrat sultanbahu.com

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        This has nothing to do with your script, but with the SETUP of your PHP environment on the server!

        Please consult your server administrator for these settings of the PHP environment.

        Ronald :cool:

        Comment

        • atcohaz
          New Member
          • Dec 2006
          • 8

          #5
          Which change I need to request our server administrator for PHP environment .for solution

          Yours truly,
          M Farooq
          Webmaster
          www.mail.hazrat sultanbahu.com

          Comment

          • ronverdonk
            Recognized Expert Specialist
            • Jul 2006
            • 4259

            #6
            Originally posted by ronverdonk
            When you are running in SAFE mode, you are in for some trouble here. Advise to read the php documentation on safe mode HERE before you continue.

            Ronald :cool:
            Ask him why you run in safe mode and to change it.

            Ronald :cool:

            Comment

            • atcohaz
              New Member
              • Dec 2006
              • 8

              #7
              It was not due to safe mode problem but some mistakes were in script and I have got corrected script and it is working well now you can see and visit


              It is working well but it is simple script

              We need securities like yahoo or hotmail password forgot secrete question as well as user information's in record can you make these changes in it or can you provide me such advance script?

              Yours truly,
              M Farooq
              Webmaster
              www.mail.hazrat sultanbahu.com

              Comment

              Working...