Category Archives: php

WSO2 Web Services Framework for PHP 2.1.0 Released

WSO2 just released a newer version of the popular web services framework for php (WSF/PHP). It has lot of bug fixes + performance improvement.  And it now support PHP 5.3. So you can use wsf/php with the latest php version. … Continue reading

Posted in php, web services, wsf/php, wso2 | Tagged , , | 2 Comments

WSF/PHP Code First Approach: Returning an Array of String

Here is a problem that many people have asked me how to do it. “Returning an array of string” with the code first approach. The API or WSDL generation annotation guide, http://wso2.org/project/wsf/php/2.0.0/docs/wsdl_generation_api.html contain all the things required in details. Here … Continue reading

Posted in php, SOA, Tutorial/Guide, WSDL, wsf/php, wso2, xml, xml schema | Tagged , , , | 2 Comments

Getting the size of BLOB in MySql

If you want to store binary in database, you can use BLOB as the data type of that column. In Mysql you can use TINYBLOB, BLOB, MEDIUMBLOB, LONGBLOB depending on your space requirement. Here is an example of database table … Continue reading

Posted in database, php, Tutorial/Guide | Tagged , , , , | Leave a comment

Case Study – PHP Data Services To Extract Content from Drupal Database

In this case study “ PHP Data Services Extract Content from Drupal Database“, I intended to present how Data Service concepts can be applied to extract data with marketing value from  a CMS database and publish it as web services.  … Continue reading

Posted in case study, data services, drupal, mashup server, php, SOA, wsf/php, wso2 | Tagged , , , | Leave a comment

Article Introducing PHP Data Services

Now you can view the article I wrote titling “Introduction to PHP Data Services“. There I explain how you can design and implement Data Services in PHP using WSF/PHP Data Services Library. This article covers, Designing your Data Service API. … Continue reading

Posted in database, DataServices, design, php, REST, RESTful, SOA, SQL, Tutorial/Guide, web services, WSDL, wsf/php, wso2, xml | Tagged , , , , , , , , , , , | Leave a comment

RESTful PHP Web Services – Book Review

PHP is one of the famous choice, when it comes to develop a web site. As the web evolve with the emerge of web service, REST (REpresentational State Transfer) concepts, the PHP language is also adapted to the new requirements … Continue reading

Posted in design, php, REST, RESTful, review, SOA, web services, wsf/php, wso2, xml | Tagged , , , , , , , , | 1 Comment

PHP Web Services – Authentication Based on Client’s IP

Explains with code samples how a PHP web service can be written to authenticate clients based on their IPs. Continue reading

Posted in php, SOA, Tutorial/Guide, web services, wsf/php, wso2 | Tagged , , , , , , | 6 Comments

WordPress Database – Relationship with Tags, Catagories and Posts

WordPress has a very simple database schema. And it is well documented. You can access the complete description of the wordpress core database from here, http://codex.wordpress.org/Database_Description. Anyway first time I looked at the database I was confused with the term … Continue reading

Posted in database, design, php, Tutorial/Guide, wordpress | Tagged , , , , , , | 9 Comments

Data Services Best Practices

In simple term, data services are exposing data as web services. Anyway it is not a complete definition. Actually there are situations where we use data services not only to read data, but also to create, update or delete data. … Continue reading

Posted in data services, DataServices, design, php, SOA, SQL, Tutorial/Guide, web services, wso2 | Tagged , , , , , | 8 Comments

Sending Encrypted Binary Messages With PHP Web Services

Web services has made the communication between heterogeneous environments (say PHP with .NET  or Java) a reality. It has defines standards for communicate not only with texts but also with binaries. And more importantly you can keep these communication confidential … Continue reading

Posted in php, security, SOA, Tutorial/Guide, web services, wsf/php, wso2 | Tagged , , , , , , , | 2 Comments