Habe jetzt beides getestet einmal mit dem Link auf pear in /usr/share und auch mit dem Standard openbase Pfad.
Dieser sollte ja normalerweise auch die Folder /tmp, backup oberhalb /htdocs miteinschliessen, hierbei fängt er wieder an zu meckern über openbase restrictions:
Code: Select all
open_basedir = "/var/www/virtual/web.tld/:/usr/share/php/"
anscheinend muss ich jeden einzelen Ordner auch Subfolder eir /tmp/sync extra aufführen ...
Code: Select all
open_basedir = "/var/www/virtual/web.tld/:/usr/share/php:/var/www/virtual/web.tld/files:/var/www/virtual/web.tld/backups:/var/www/virtual/web.tld/tmp:/var/www/virtual/web.tld/tmp/sync"
Laut EGW soll beim Aufruf von:
http://web.tld/phpgwapi/inc/horde/Horde/RPC/syncml.php
keine Fehlermeldung erfolgen hier bekomme ich folgendes:
Code: Select all
od_fcgid: stderr: PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'Horde/SyncML.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/virtual/web.tld/htdocs/phpgwapi/inc/horde/Horde/RPC/syncml.php on line 3
also wieder include_path='.:/usr/share/php:/usr/share/pear
und in /usr/share/pear ist kein pear das wäre in /usr/share/php
aber auch mit der Verlinkung dorthin gleiche Fehlermeldung ...
in Zeile 3 syncml.php:
include_once 'Horde/SyncML/Command.php';
Command.php siehe ganz unten >
Existiert /usr/share/php/PEAR/Horde/SyncML.php denn? Darf der PHPuser auch darauf lesend zugreifen?
Nein - diese liegt im Web unter:
/var/www/virtual/web.tld/htdocs/phpgwapi/inc/horde/Horde/RPC/syncml.php
Habt Ihr noch eine Idee?
Gruss
comand.php
Code: Select all
<?php
include_once 'Horde/SyncML/State.php';
/**
* The Horde_SyncML_Command class provides a super class fo SyncBody commands.
*
* $Horde: framework/SyncML/SyncML/Command.php,v 1.4 2004/07/03 15:26:46 chuck Exp $
*
* Copyright 2003-2004 Anthony Mills <amills@pyramid6.com>
*
* See the enclosed file COPYING for license information (LGPL). If you
* did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
*
* @author Anthony Mills <amills@pyramid6.com>
* @version $Revision: 18844 $
* @since Horde 3.0
* @package Horde_SyncML
*/
class Horde_SyncML_Command {
var $_cmdID;
var $_xmlStack;
var $_chars;
function &factory($command, $params = null)
{
include_once 'Horde/SyncML/Command/' . $command . '.php';
$class = 'Horde_SyncML_Command_' . $command;
if (class_exists($class)) {
return $cmd = &new $class($params);
} else {
Horde::logMessage('SyncML: Class definition of ' . $class . ' not found.', __FILE__, __LINE__, PEAR_LOG_ERR);
require_once 'PEAR.php';
return PEAR::raiseError('Class definition of ' . $class . ' not found.');
}
}
function output($currentCmdID, $output)
{
}
function startElement($uri, $localName, $attrs)
{
$this->_xmlStack++;
}
function endElement($uri, $element)
{
switch ($this->_xmlStack) {
case 2:
if ($element == 'CmdID') {
$this->_cmdID = intval(trim($this->_chars));
}
break;
}
if (isset($this->_chars)) {
unset($this->_chars);
}
$this->_xmlStack--;
}
function characters($str)
{
$tempValue = trim($str);
if(empty($tempValue)) return;
if (isset($this->_chars)) {
$this->_chars = $this->_chars . $str;
} else {
$this->_chars = $str;
}
}
}