View Full Version : 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. :)
Kevin
04-13-2007, 02:47 AM
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/
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?
GeorgeA
04-14-2007, 02:13 PM
Shouldn't the path be given as a parameter to the function include? As in:
<?php include("config.php");
include('/hsphere/local/home/kryzzie/youslayme.net/admin/show_stats.php');?>
Shouldn't the path be given as a parameter to the function include? As in:
<?php include("config.php");
include('/hsphere/local/home/kryzzie/youslayme.net/admin/show_stats.php');?>
Im not sure what you mean?
ManagerJosh
05-04-2007, 03:14 AM
If you edit a htaccess to not suppress PHP errors, it could give you an idea what you are doing wrong.
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.
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.
Justec
05-29-2007, 10:12 AM
http://us2.php.net/error_reporting
<?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);
?>
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.