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.

Developing in cPanel with PHP

Discussion in 'cPanel Developers' started by gregoryheath14, Jan 24, 2012.

  1. gregoryheath14

    gregoryheath14 Registered

    Joined:
    Jan 24, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Excuse me if I have the wrong forum or post title but I am currently looking for some information and it would be great if someone could point me in the right direction..!

    Essentially I am trying to:
    1.Develop a facebook app by..
    2.Hosting a .php file (the source/script code) in cPanel (located on the domain) and
    3.Develop that .php file from a client using eclipse

    Could anyone give me pointers as to the mechanisms i need to use to do this?

    Any help is appreciated!

    Thanks

    Greg
     
  2. charsleysa

    charsleysa Active Member

    Joined:
    Jul 18, 2011
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Palmerston North, New Zealand
    cPanel Access Level:
    Root Administrator
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Actually, if you're not integrating with the actual features of cPanel&WHM but just want to create a PHP app, there's no need to use our APIs nor the SDK.

    You would just need to build this like you would a typical PHP app.
     
  4. KostonConsulting

    KostonConsulting Well-Known Member

    Joined:
    Jun 17, 2010
    Messages:
    255
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    San Francisco, CA
    cPanel Access Level:
    Root Administrator
    Greg,
    The process is quite simple. Once you create your PHP code, simply upload it to anywhere within your public_html directory and it will be executed when going to the URL. For a facebook app, you just need to point the canvas URL to the page on your site.

    For example, if you wrote the following code:

    Code:
    <?php
        echo "This is where my facebook app will go";
    ?>
    
    and your site was Myfacebookapp.com, upload the file to public_html/facebook.php and your canvas URL would be www .myfacebookapp.com/facebook.php

    You'll want to take a look at the Facebook authentication for PHP and/or Javascript. That part is a bit more challenging. Here's a tutorial: How to Authenticate Users With Facebook Connect | Nettuts+
     
Loading...

Share This Page