Below I check for file existence and its exists.
$path = libraries_get_path('nusoap') . '/nusoap.php';
if(file_exists($path)) {
print file_get_contents($path);
die;
}
But when I try to include it I get 500 Internal server error
.
$path = libraries_get_path('nusoap') . '/nusoap.php';
if(file_exists($path)) {
require_once $path;
}
Owner and Group of all files are www-data
EDIT
[Mon Dec 24 12:59:12 2012] [error] [client 2.146.17.144] PHP Fatal error: Cannot redeclare class XMLSchema in /sites/all/modules/fedora_store/nusoap/nusoap.php on line 2049, referer: http://127.0.0.1/fedora/store/transaction/2/mellat
/var/log/apache2/error.log
or something like that. «Owner and Group of all files are www-data» — please take a look at these documents: drupal.org/node/244924, lullabot.com/articles/keeping-drupals-files-safe