Class 'WSClient' not found PHP

2.1k Views Asked by At

I'm using wsf/php/2.1.0 using wamp 2.2, I've loaded and enabled wsf.dll and php_xsl.dll and configured my php.ini but still I 'm getting this fatal error.

Fatal error: Class 'WSClient' not found

modification in php.ini and httpd.config

[wsf]
wsf.home="C:\wamp\www\wsf\wsf_c"
wsf.log_path="C:\wamp\www\wsf\wsf_c\wsf_c\logs"
wsf.log_level=3
wsf.rm_db_dir="C:\wamp\www\wsf\wsf_c\wsf_c"



PHPIniDir "C:/wamp/bin/apache/Apache2.2.21/bin/php.ini"
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

I've defined that wsf folder in envoirmental variable so this folder can be access from anywhere, and also included

ini_set("include_path","C:\wamp\www\wsf\scripts\\");

Can anyone tell me how to make this thing run??

Thanks

2

There are 2 best solutions below

0
On

to use WSF/PHP with WAMP, let me advice you this tutorial. You need to follow this tuto until the end (4.b). Once finished, you follow the installation guide here.

For me, after several attempts, I have finally succeed in using this WSF/PHP API.

Of course, if you encounter some issues again, don't hesitate to post here.

0
On

I remind this bug (seems so) as well. The obvious cure was to copy/symlink the wsf PHP API directory to the working directory of the script.