Tutorial To Install the Nusoap.php Class With Your PHP Scripts
- Tutorial To Install the Nusoap.php Class With Your PHP Scripts
This Support Page Will Show You The Installation Steps For Installing Nusoap.php Class In Your Scripts. Will also show you the website where you can download and then install it in your PHP script using simple PHP code. , Last Updated: Sun Mar 01, 2020
Sun Jan 17, 2010
if you have been following our tutorial, we need to install nusoap.php because we got the folloing error on our SOAP script:
Warning: main(nusoap.php) [function.main]: failed to open stream: No such file or directory in /var/www/testscripts/SOAP/testsoap.php on line 7
Fatal error: main() [function.require]: Failed opening required 'nusoap.php' (include_path='.;/var/www/testscripts/SOAP/testsoap.php on line 7
NuSOAP is a rewrite of SOAPx4, provided by NuSphere and Dietrich Ayala. It is a set of PHP classes - no PHP extensions required - that allow developers to create and consume web services based on SOAP 1.1, WSDL 1.1 and HTTP 1.0/1.1.
in my example, i was running a script called testsoap.php, this file was located in my web directory at: /var/www/testscripts/SOAP/testsoap.php and to open this file, the url was: http://localhost/testscripts/SOAP/testsoap.php
follow these steps to install nusoap.php
1. Donwnload the current version. The current version at this momment is: nusoap-0.7.3.zip (175.9 KB)
2. once you have downloaded the zip file, extract all the files in the same directory where you are running your script from. in my example, the PHP file is testsoap.php which is located in my directory: /var/www/testscripts/SOAP/ so i will extract it in the SOAP/ folder (if you have windows server, the probably might look like this: C:\inetpub\wwwroot\testscripts)
3. you should have all two directories in the nusoap-0.7.3 Directory:
im not going to list the samples file, but as you can see from the lib directory, we have a file called nusoap.php so now go we edit our script and change:
save the changes and try again your script, now you shouldn't get the error: Fatal error: main() [function.require]: Failed opening required 'nusoap.php'