Banner
Saturday, 21 March 2015
Technology
Our main focus is PHP, but we also work with other related technologies that make up the web application stack (traditionally LAMP - however the number of tools that are used in modern PHP is far greater than just Linux, Apache, MySQL and PHP). We use a variety of PHP frameworks, depending on the project and have solid experience in Zend Framework, Symfony2, CodeIgniter, and many popular PHP libraries. We also regularly deliver large-scale projects using Drupal, SilverStripe and other open source content management systems.
PHP
PHP is a general purpose, server side scripting language originally designed for use in web development to produce pages with dynamic content. The PHP Project was started in 1994 by Rasmus Lerdorf - however today, it is made up of many open source contributors from around the world and has evolved significantly into a fully fledged programming language. It’s low barrier to entry has contributed to it’s success over the years and it powers a huge proportion of web sites. As specialists in PHP, Inviqa make extensive use of the language to deliver complex web applications. Discover the benefits of PHP.
In addition to PHP development, Inviqa also provide PHP training, consulting and support.
JavaScript
JavaScript is an essential component of modern web application development. It first appeared at around the same time as PHP as part of the Netscape, but it has since been adopted by all major browser vendors. It is most commonly executed in the browser rather than server side (although server side JavaScript is becoming more common due to the popularisation of node.js).
Thursday, 19 March 2015
Creating Web Service Using PHP
Step 1: You will download the library from http://sourceforge.net/projects/nusoap/.
Step 2: Run WAMP server, then you will go to www root folder location.
Step 3: Create folder, it’s called “WebServiceSOAP” into www root folder.
Step 4: Paste "lib" folder inside your "www/WebServiceSOAP/" location from Step 1 download files.
Step 5: Create two files “server.php” and “client.php” into WebServiceSOAP folder location.
Step 6: Inside “server.php”, please write the code lines given below:
Step 8: Create "client.php" file into WebServiceSOAP folder location. Please find the following code lines:
Step 2: Run WAMP server, then you will go to www root folder location.
Step 3: Create folder, it’s called “WebServiceSOAP” into www root folder.
Step 4: Paste "lib" folder inside your "www/WebServiceSOAP/" location from Step 1 download files.
Step 5: Create two files “server.php” and “client.php” into WebServiceSOAP folder location.
Step 6: Inside “server.php”, please write the code lines given below:
Hide Copy Code
<?php
//call library
require_once ('lib/nusoap.php');
//using soap_server to create server object
$server = new soap_server;
//register a function that works on server
$server->register('get_message');
// create the function
function get_message($your_name)
{
if(!$your_name){
return new soap_fault('Client','','Put Your Name!');
}
$result = "Welcome to ".$your_name .". Thanks for Your First Web Service Using PHP with SOAP";
return $result;
}
// create HTTP listener
$server->service($HTTP_RAW_POST_DATA);
exit();
?>
Step 7: After creating “server.php” file, now we will test this server function. Please go to URL & type http://localhost/WebServiceSOAP/server.php?wsdl. Step 8: Create "client.php" file into WebServiceSOAP folder location. Please find the following code lines:
Hide Copy Code
<?php
require_once ('lib/nusoap.php');
//Give it value at parameter
$param = array( 'your_name' => 'Monotosh Roy');
//Create object that referer a web services
$client = new soapclient('http://localhost/WebServiceSOAP/server.php');
//Call a function at server and send parameters too
$response = $client->call('get_message',$param);
//Process result
if($client->fault)
{
echo "FAULT: <p>Code: (".$client->faultcode."</p>";
echo "String: ".$client->faultstring;
}
else
{
echo $response;
}
?>
Step 9: Save all codes, then please go to URL and type http://localhost/WebServiceSOAP/client.php.Thursday, 12 March 2015
Subscribe to:
Posts (Atom)