Difference between revisions of "PHP Native API"

From ScarletDME
Jump to navigation Jump to search
(added "Just Click" Note)
(Updated Feature list + Layout changes)
Line 3: Line 3:
 
This single library file can be dropped in on any PHP compatible web server and allow developer to use a series of function calls to access a QM Database with all the functionality that the QMClient API allows.
 
This single library file can be dropped in on any PHP compatible web server and allow developer to use a series of function calls to access a QM Database with all the functionality that the QMClient API allows.
  
 +
It is currently in the Alpha stages:
 +
 +
==News==
 
<strike>'''Warning''' Active bug found, i believe username padding is not working, some odd length usernames may cause a QMERROR 3000 for line 902, when trying to write to $LOGINS. I'm working on it. [[User:Diccon|Diccon]] 19:36, 27 January 2009 (UTC)</strike>
 
<strike>'''Warning''' Active bug found, i believe username padding is not working, some odd length usernames may cause a QMERROR 3000 for line 902, when trying to write to $LOGINS. I'm working on it. [[User:Diccon|Diccon]] 19:36, 27 January 2009 (UTC)</strike>
  
 
'''Solved''' Fixed this, not 100% sure what was really happening, but i rewrote the way the login packet is constructed, to make it clearer. This fixed it. Go, Play [[User:Diccon|Diccon]] 18:41, 16 February 2009 (UTC)
 
'''Solved''' Fixed this, not 100% sure what was really happening, but i rewrote the way the login packet is constructed, to make it clearer. This fixed it. Go, Play [[User:Diccon|Diccon]] 18:41, 16 February 2009 (UTC)
  
It is currently in the Alpha stages:
+
==Supported Features==
It supports:
+
QMPHPClient supports (24/46);
* Logon
+
* Qm Quit
 +
* GetError
 
* Set account
 
* Set account
 
* Open
 
* Open
 
* Close
 
* Close
 
* Read
 
* Read
* ReadLW (Untested)
+
* ReadL (Untested)
* Write
+
* ReadLW (Untested/partial)
* Delete
+
* ReadU (Untested)
* qmQuit
+
* ReadUL(Untested/partial)
* GetError
 
 
* Select
 
* Select
 
* ReadNext
 
* ReadNext
 
* ClearSelect
 
* ClearSelect
 +
* ReadList
 +
* Release
 +
* Write
 +
* WriteU
 +
* Delete
 +
* DeleteU
 
* Execute
 
* Execute
 +
* Respond
 +
* Logon
  
 +
==Download==
 
If you want a copy, it is released under the LGPL (i.e. can be used within commercial products, but is GPL itself). It is available on the gpl.openqm Subversion repository; ''(Just click the link people, its not scairy, you just download the file[s])''
 
If you want a copy, it is released under the LGPL (i.e. can be used within commercial products, but is GPL itself). It is available on the gpl.openqm Subversion repository; ''(Just click the link people, its not scairy, you just download the file[s])''
  
Line 29: Line 41:
  
  
===Todo Shortlist===
+
==Todo Shortlist==
 
# Design and handle Conditional Execution, eg ELSE, LOCKED, ERROR, etc
 
# Design and handle Conditional Execution, eg ELSE, LOCKED, ERROR, etc
 
# Finish implimenting all simple commands/function (24/46 Done)
 
# Finish implimenting all simple commands/function (24/46 Done)
 
# Clean up error reporting
 
# Clean up error reporting

Revision as of 13:09, 25 February 2009

The PHP native API uses a socket connection to directly connect to an open and functioning QM API socket.

This single library file can be dropped in on any PHP compatible web server and allow developer to use a series of function calls to access a QM Database with all the functionality that the QMClient API allows.

It is currently in the Alpha stages:

News

Warning Active bug found, i believe username padding is not working, some odd length usernames may cause a QMERROR 3000 for line 902, when trying to write to $LOGINS. I'm working on it. Diccon 19:36, 27 January 2009 (UTC)

Solved Fixed this, not 100% sure what was really happening, but i rewrote the way the login packet is constructed, to make it clearer. This fixed it. Go, Play Diccon 18:41, 16 February 2009 (UTC)

Supported Features

QMPHPClient supports (24/46);

  • Qm Quit
  • GetError
  • Set account
  • Open
  • Close
  • Read
  • ReadL (Untested)
  • ReadLW (Untested/partial)
  • ReadU (Untested)
  • ReadUL(Untested/partial)
  • Select
  • ReadNext
  • ClearSelect
  • ReadList
  • Release
  • Write
  • WriteU
  • Delete
  • DeleteU
  • Execute
  • Respond
  • Logon

Download

If you want a copy, it is released under the LGPL (i.e. can be used within commercial products, but is GPL itself). It is available on the gpl.openqm Subversion repository; (Just click the link people, its not scairy, you just download the file[s])

http://gpl.openqm.com/svn/qmvdb/PHPQMLib/trunk/


Todo Shortlist

  1. Design and handle Conditional Execution, eg ELSE, LOCKED, ERROR, etc
  2. Finish implimenting all simple commands/function (24/46 Done)
  3. Clean up error reporting