+ Reply to Thread
Results 1 to 9 of 9

Thread: path issues

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Location
    Nashville, TN
    Posts
    8

    Default path issues

    Hello all,

    Im just wondering whats the absolute path url for subdomains on here (this server)? Should it be like /hsphere/local/home/blah/blah.com/blah (subdomain)/admin/affiliates/ or /hsphere/local/home/blah/blah.blah.com/admin/affiliates/. Im awfully confused about the path issues here instead of regular home/public_html stuff. Let me know.. any help could be appreicated.

  2. #2
    I love LAMP.
    Join Date
    Jul 2004
    Location
    Chicago, Illinois, United States
    Posts
    201

    Default

    Subdomains are handled as if they are regular domains in H-Sphere. Each domain in your account has a document root of its own, such as:

    /hsphere/local/home/username/domain.com/

    A subdomain of domain.com would look like this:

    /hsphere/local/home/username/sub.domain.com/
    Kevin Stange
    Chief Technology Officer
    Steadfast Networks
    http://steadfast.net
    kevin@steadfast.net

  3. #3
    Junior Member
    Join Date
    Jan 2007
    Location
    Nashville, TN
    Posts
    8

    Default

    Okay.. thats what I thought.. What Im tryin to do is to directly connect each file on the domain and subdomain.. it wont work (show up blank).. for example..

    <?php include 'config.php';
    include '/hsphere/local/home/kryzzie/youslayme.net/admin/show_stats.php'; ?>

    The config.php is currently on the fans.youslayme.net subdomain in 'aladdin' folder... path would be like /hsphere/local/home/kryzzie/fans.youslayme.net/aladdin/config.php...

    It just seems that it wont connect to each other or something like that.. What I think its the path issue stuff?

  4. #4
    What do I do with this ?
    Join Date
    Jan 2007
    Posts
    58

    Default

    Shouldn't the path be given as a parameter to the function include? As in:
    Code:
    <?php include("config.php");
    include('/hsphere/local/home/kryzzie/youslayme.net/admin/show_stats.php');?>

  5. #5
    Junior Member
    Join Date
    Jan 2007
    Location
    Nashville, TN
    Posts
    8

    Default

    Quote Originally Posted by GeorgeA View Post
    Shouldn't the path be given as a parameter to the function include? As in:
    Code:
    <?php include("config.php");
    include('/hsphere/local/home/kryzzie/youslayme.net/admin/show_stats.php');?>
    Im not sure what you mean?

  6. #6
    Moderator
    Join Date
    Mar 2007
    Location
    Southern California
    Posts
    150

    Default

    If you edit a htaccess to not suppress PHP errors, it could give you an idea what you are doing wrong.
    All the best,
    ManagerJosh
    Gaming Hosting Director of
    SimGames.net, Owned and Operated by Steadfast Networks

  7. #7
    Junior Member
    Join Date
    Jan 2007
    Location
    Nashville, TN
    Posts
    8

    Default

    Quote Originally Posted by ManagerJosh View Post
    If you edit a htaccess to not suppress PHP errors, it could give you an idea what you are doing wrong.
    Im not sure exactly how to do that, though... If you could look at this link: codegrrl.com/forums/index.php?showtopic=15691 from another forum about the issue that I have. Im hoping someone would be able to figure out the problem... the post was made by tinkerbell.. another host client on here.

  8. #8
    Ray
    Ray is offline
    I can't do everything.
    Join Date
    Jun 2004
    Location
    Plymouth, WI
    Posts
    134

    Default

    Kryz,

    You can enable php error reporting by adding the following line into the .htaccess file at or above the directory of that installation:

    php_flag display_errors on

    If you don't have a .htaccess file already, you can create it. As this is a hidden file, some ftp clients may not be able to see it. I usually create this file through shell login, as it's easier to deal with.

    This should display errors as to what's going on with it.
    Ray Tetzloff


  9. #9
    Happy Steadfast Client
    Join Date
    Jan 2006
    Location
    Miami, Fl
    Posts
    125

    Default

    http://us2.php.net/error_reporting

    Code:
    <?php
    // Report all PHP errors (bitwise 63 may be used in PHP 3)
    error_reporting(E_ALL);
    
    // Same as error_reporting(E_ALL);
    ini_set('error_reporting', E_ALL);
    ?>
    [ JUSTIN ]
    [ justechnology llc ]
    [ WEB DESIGN / DEVELOPMENT, TECHNICAL CONSULTING, & BUSINESS WEB HOSTING
    ]
    [ when will apple? ]
    [ GUESS THE RELEASE DATE AND GET THE SCOOP ON APPLE'S NEW PRODUCTS
    ]

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts