Skip to content

Instantly share code, notes, and snippets.

$client = new SoapClient("http://footballpool.dataaccess.eu/data/info.wso?wsdl");
$result = $client->TopGoalScorers(array('iTopN'=>5));
<xs:element name="TopGoalScorers">
<xs:complexType>
<xs:sequence>
<xs:element name="iTopN" type="xs:int" />
</xs:sequence>
</xs:complexType>
</xs:element>
<message name="TopGoalScorersSoapRequest">
<part name="parameters" element="tns:TopGoalScorers" />
</message>
<operation name="TopGoalScorers">
<documentation>
Returns an array with the top N goal scorers and their current score. Pass 0 as TopN and you get them all.
</documentation>
<input message="tns:TopGoalScorersSoapRequest"/>
<output message="tns:TopGoalScorersSoapResponse"/>
</operation>
package actions;
import java.awt.Color;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
/**
* This KMeansAction performs a K-means clustering action on a BufferedImage
* @author Patrick van Kouteren
*
[root@server usr]# lynx -source http://pear.php.net/go-pear | php
Welcome to go-pear!
Go-pear will install the 'pear' command and all the files needed by
it.  This command is your tool for PEAR installation and maintenance.
Go-pear also lets you download and install the following optional PEAR
packages: PEAR_Frontend_Web-beta, PEAR_Frontend_Gtk2, MDB2.
<?php
class ArrayFunctions {
public static function toString($array){
$result = array();
$depth = 0;
foreach($array as $k => $v) {
$show_val = ( is_array($v) ? "" : $v );
// show the indents
$result []= str_repeat(" ", $depth);
/usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats: line 1: ?php: No such file or directory
/usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats: line 2: syntax error near unexpected token `"The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk 9 distribution. It cannot be run outside of Plesk 9 environment.\n"'
/usr/local/psa/libexec/modules/watchdog/cp/pack-sysstats: line 2: ` die("The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk 9 distribution. It cannot be run outside of Plesk 9 environment.\n");'
ERROR: WDExc
Error occurred while processing database query: 'MySQL query failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group by service_id, type, round(unix_timestamp(time) / 200, 0) having count(val' at line 3'
0: wdlib.php:1089
wd__db_query(string 'select service_id, type, unix_timestamp(min(time)) as min_time, unix_timestamp(max(time)) as max_time, avg(value) as avg
from module_watchdog_sys_stat where