Files
html/api/ambre-sse2.php
2026-04-22 11:05:01 +02:00

16 lines
540 B
PHP

<?php
header("Content-Type: text/plain");
$c = @file_get_contents("/var/www/html/wevia.html");
echo "size: " . strlen($c) . "\n";
echo "Claude count: " . substr_count($c, "Claude") . "\n";
echo "WEVIA-pattern: " . preg_match_all("/WEVIA[- ]?[pP]attern/", $c) . "\n";
// Find around "phase" type handling
$pos = strpos($c, "type === 'header'");
if ($pos === false) $pos = strpos($c, 'type==="header"');
if ($pos === false) $pos = strpos($c, "'header'");
echo "header pos: $pos\n";
if ($pos !== false) {
echo substr($c, $pos, 2500);
}