Results 1 to 4 of 4

Thread: Developing in cPanel with PHP

  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    1
    cPanel/WHM Access Level

    Website Owner

    Default Developing in cPanel with PHP

    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. #2
    Member
    Join Date
    Jul 2011
    Location
    Palmerston North, New Zealand
    Posts
    41
    cPanel/WHM Access Level

    Root Administrator

    Default re: Developing in cPanel with PHP

    Please begin here: cPanel & WHM's SDK

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default re: Developing in cPanel with PHP

    Quote Originally Posted by gregoryheath14 View Post
    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
    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. #4
    Member This forum account has been confirmed by cPanel staff to represent a vendor. KostonConsulting's Avatar
    Join Date
    Jun 2010
    Location
    Austin, TX
    Posts
    148
    cPanel/WHM Access Level

    Root Administrator

    Default re: Developing in cPanel with PHP

    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+
    Dave Koston
    Koston Consulting
    http://www.kostonconsulting.com

Similar Threads

  1. New Video: Developing cPanel Applications
    By cPanelDavidG in forum cPanel Announcements
    Replies: 0
    Last Post: 12-23-2010, 09:31 AM
  2. I need help developing password protected directories!
    By irrumate in forum cPanel Developers
    Replies: 3
    Last Post: 01-26-2008, 04:37 PM
  3. Developing ON cPanel server with Zend Framework
    By jap in forum cPanel Developers
    Replies: 2
    Last Post: 05-17-2007, 05:51 PM
  4. Developing for Whm/Cpanel
    By PuReWebDev in forum cPanel Developers
    Replies: 1
    Last Post: 07-17-2005, 01:33 PM
  5. curiosity : who is developing cpanel
    By Radio_Head in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 07-04-2002, 01:16 PM