Skip to content

Commit

Permalink
removed erroneous relative include
Browse files Browse the repository at this point in the history
minor style changes


git-svn-id: http://svn.php.net/repository/pear/packages/Text_LanguageDetect/trunk@204583 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Nicholas Pisarro committed Jan 5, 2006
1 parent 094a72c commit 05c915d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/example_clui.php
Expand Up @@ -7,24 +7,24 @@
* @version CVS: $Id$
*/

require_once '../Text/LanguageDetect.php';
require_once 'Text/LanguageDetect.php';

$l = new Text_LanguageDetect;

$stdin = fopen('php://stdin','r');
$stdin = fopen('php://stdin', 'r');

echo "supported languages:\n";
echo "Supported languages:\n";
$langs = $l->getLanguages();
if (PEAR::isError($langs)) {
die($langs->getMessage());
}
sort($langs);
echo join(', ',$langs);
echo join(', ', $langs);

echo "\ntotal ", count($langs), "\n\n";

while ($line = fgets($stdin)) {
print_r($l->detect($line,4));
print_r($l->detect($line, 4));
}

fclose($stdin);
Expand Down

0 comments on commit 05c915d

Please sign in to comment.