Page 1 of 1

SOAP/Client.php not reachable

PostPosted: 09. November 2005 16:03
by hakaa
Why do the system not find the "SOAP-client.php" program ?

Are trying to learn php and Web services with PEAR without much success !

Through XAMPP's phpinfo() I can see that my php.ini is at C:\Programfiler\xampp\apache\bin\php.ini

phpinfo() shows that "Soap Client" and "Soap Server" are enabled and that

include_path .;C:\Programfiler\xampp\php\pear\SOAP

I have seen that the Client.php program exist in this directory, but the system seems to ignore the include_path.

I got following error using " require_once('SOAP/Client.php');" in my program :

Content-type: text/html
X-Powered-By: PHP/5.0.4

Fatal error: main() [function.require]: Failed opening required 'SOAP/Client.php' (include_path='.;C:\php5\pear') in C:\XAMPP PHP\ex\pearsoap-hello-client.php on line 4
(Are using last version of Zend Development Environment)


Can anyone explain why ?

PostPosted: 09. November 2005 16:04
by Wiedmann
include_path .;C:\Programfiler\xampp\php\pear\SOAP

Why have you changed the include_path?

PostPosted: 09. November 2005 22:53
by Wiedmann
I start the program with:
<?php
/* Comment : */
/* Include PEAR::SOAP's SOAP_Client class: */
include_Path == '.\;C:\Programfiler\xampp\php\pear\SOAP';
require_once('SOAP/Client.php');

But it makes no difference if i drop :
include_Path == '.\;C:\Programfiler\xampp\php\pear\SOAP';

1st: don't change the default include_path (it's allready set for PEAR)
2nd: PEAR::SOAP is not includes in the XAMPP package
--> just install it yourself

(BTW: there was the same discussion some weeks before in the german part)