|
hi there
i'm making a php-mysql web application and it works fine, EXCEPT... my php include(), require(), etc. doesnt work!! it works fine on the local machine but once its up on the server, it just disappears.. the url is http://www.hygree.com/ . can you tell me what EXACTLY i have to write within the include() to make this thing work. the hosting pricks wouldnt gimme access to change the php.ini file but you can see it here:
http://brainpulse.info/phpinfo.php
you'll notice that its a linux system and the include_path is .:/usr/share/pear . now i'm not much of a linux user so i have NO clue if pear refers to the fruit we all enjoy eating or someone's SICK idea of a joke. yes i'm frustrated. i've been trying i tell you. could use some help here. and please, don't be vague! thanks in advance..
Php include_path, require, HELP!!!!!!!?
You should use the relative-to-script path to the file, or you can use an absolute path, as you would in any other HTTP document.
Suppose, for example, the root directory of your Web site is named public_html; that is, your home page, named index.php, is in public_html.
Suppose you have a subdirectory named includes, and a file in there named header.php.
To include that file in your index.php, you could do it one of two ways:
1. path relative to document: require_once( "includes/header.php" );
2. path relative to root: require_once( "/includes/header.php" );
|