Browse Source

php - spelling etc

master
kanoi 10 years ago
parent
commit
0377adc8a1
  1. 7
      pool/db.php
  2. 4
      pool/socket.php

7
pool/db.php

@ -3,11 +3,10 @@
include_once('socket.php');
include_once('base.php');
#
# List of db fucntions to call and get the results
# back from ckdb
# From homeInfo and the rest after that
# List of db functions to call and get the results back from ckdb
# From homeInfo() and the rest after that
# The result is an array of all ckdb result field names and their values
# Also is included:
# Also included:
# ['ID'] the id sent
# ['STAMP'] the ckdb reply timestamp
# ['STATUS'] the ckdb reply status (!'ok' = error)

4
pool/socket.php

@ -1,5 +1,7 @@
<?php
#
# See function sendsockreply($fun, $msg) at the end
#
# Note that $port in AF_UNIX should be the socket filename
function _getsock($fun, $port, $unix=true)
{
@ -144,10 +146,12 @@ function sendsock($fun, $msg)
}
return $ret;
}
#
# This is the only function in here you call
# You pass it a string $fun for debugging
# and the data $msg to send to ckdb
# and it returns $ret = false on error or $ret = the string reply
#
function sendsockreply($fun, $msg)
{
$ret = false;

Loading…
Cancel
Save