how 1 generate successful php
require statement path if 2 files being joined have different directories? want able able use of data in 1 file in another. file want include/require located in desktop > pushchatserver > api > api.php
. when setting local server had put paths of pushchatservers contents in applications/mamp/conf/apache/httpd.conf
file server reach it.
//this require statement located in php file wants use data api.php require("/what/should/the/path/be?/api.php");
also, if helps, url app uses communicate pushchatserver's contents @ run-time #define serverapiurl @"http://192.168.1.5:44447/api.php"
question : url work path? there seem lot of different options. know path successful type of require statement?
the require path relative list of directories defined in include_path ini file setting. hence not end full path rather relative path include_path value. note can set include_path setting in php within httpd.conf file if have done php_flag setting in example.
i can barely read screen shot think spoon-feeding answer is:
add line apache config:
php_value "include_path" "/users/ratthijs/desktop/pushchatserver/api"
and say:
require_once('api.php');
Comments
Post a Comment