?? ??? ?? ?? ??: PHP ? JS? ???? ?? ??? ??? ??? ?????.
Dec 17, 2023 pm 06:55 PM?? ??? ?? ?? ??: PHP ? JS?? ?? ??? ??? ??? ?????. ???? ?? ??? ?????.
???? ??? ??? ???? ?? ??? ?? ????? ??? ?? ? ??? ?????. ???. ????? ???? ????? ?? ??? ???? ????? ??? ??? ?? ?????. PHP? JS? ???? ?? ??? ??? ??? ??? ???? ? ?? ??? ??? ? ??? ?? ?? ???? ??? ?? ? ????.
?? ??? ??? ?? ???? ???? ?? ?????. ??? ??, ??, ??, ??? ???? ?? ??? ?? ?? ??? ?????. ? ? ???? ??? ????? ???, ??? ??? ???? ???. ?? ??? ??? ??? ??? ?????. ?? ??, ??, ???, ???? ?? ???.
?? ???? ???? ???. ?? ??? ??? ??? ??? ?????. ??? ? ???? ??, ?? ??, ?? ??, ?? ??, ?? ??? ?? ??? ???? ????.
$stocks = [ ['date' => '2021/01/01', 'open' => 100, 'close' => 120, 'high' => 130, 'low' => 90], ['date' => '2021/01/02', 'open' => 130, 'close' => 150, 'high' => 160, 'low' => 120], // 更多股票數(shù)據(jù)... ];
???? PHP? ???? ?? ??? ?? ? ????. PHP? gd, ImageMagick ?? ?? ??? ? ?? ??? ??? ?????? ?????. ???? PHP? gd ?????? ???? ?????.
?? ? ???? ??? ???? ??? ??? ?????.
$width = 800; $height = 400; $image = imagecreatetruecolor($width, $height);
?? ?? ???, ?? ? ?? ??? ??? ???? ? ?? ?? ??? ?????.
$red = imagecolorallocate($image, 255, 0, 0); $green = imagecolorallocate($image, 0, 255, 0);
???? ?? ??? ??? ???? ? ??? ??? ??? ???? ??? ????? ?????? ?? ??? ?????.
foreach ($stocks as $key => $stock) { $x = $key * ($width / count($stocks)); $y1 = $height - ($stock['open'] - min($stock['low'], $stock['high'])) * ($height / (max($stock['high'], $stock['low']) - min($stock['low'], $stock['high']))); $y2 = $height - ($stock['close'] - min($stock['low'], $stock['high'])) * ($height / (max($stock['high'], $stock['low']) - min($stock['low'], $stock['high']))); $y3 = $height - ($stock['low'] - min($stock['low'], $stock['high'])) * ($height / (max($stock['high'], $stock['low']) - min($stock['low'], $stock['high']))); $y4 = $height - ($stock['high'] - min($stock['low'], $stock['high'])) * ($height / (max($stock['high'], $stock['low']) - min($stock['low'], $stock['high']))); if ($stock['close'] >= $stock['open']) { imagefilledrectangle($image, $x, $y2, $x + 10, $y1, $green); imageline($image, $x + 5, $y3, $x + 5, $y4, $green); } else { imagefilledrectangle($image, $x, $y1, $x + 10, $y2, $red); imageline($image, $x + 5, $y3, $x + 5, $y4, $red); } }
????? ???? ??? ?????.
imagepng($image, 'candlestick.png'); imagedestroy($image);
?? ???? ???? ??????. ? ??? ???? ?? ????? candlestick.png?? ??? ??? ????, ???? ?? ?? ??? ??? ?????.
PHP ??? JS? ???? ? ???? ???? ??? ? ?? ?? ??? ?? ?? ????. ??? HTML, CSS, JavaScript? ???? ????? ??? ?? ?????.
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Candlestick Chart</title> <style> #chart { width: 800px; height: 400px; border: 1px solid black; } </style> </head> <body> <div id="chart"></div> <script> var stocks = [ {date: '2021/01/01', open: 100, close: 120, high: 130, low: 90}, {date: '2021/01/02', open: 130, close: 150, high: 160, low: 120}, // 更多股票數(shù)據(jù)... ]; var chart = document.getElementById('chart'); var ctx = chart.getContext('2d'); var width = chart.width; var height = chart.height; stocks.forEach(function(stock, index) { var x = index * (width / stocks.length); var y1 = height - (stock.open - Math.min(stock.low, stock.high)) * (height / (Math.max(stock.high, stock.low) - Math.min(stock.low, stock.high))); var y2 = height - (stock.close - Math.min(stock.low, stock.high)) * (height / (Math.max(stock.high, stock.low) - Math.min(stock.low, stock.high))); var y3 = height - (stock.low - Math.min(stock.low, stock.high)) * (height / (Math.max(stock.high, stock.low) - Math.min(stock.low, stock.high))); var y4 = height - (stock.high - Math.min(stock.low, stock.high)) * (height / (Math.max(stock.high, stock.low) - Math.min(stock.low, stock.high))); if (stock.close >= stock.open) { ctx.fillStyle = 'green'; ctx.fillRect(x, y2, 10, y1 - y2); ctx.strokeStyle = 'green'; ctx.beginPath(); ctx.moveTo(x + 5, y3); ctx.lineTo(x + 5, y4); ctx.stroke(); } else { ctx.fillStyle = 'red'; ctx.fillRect(x, y1, 10, y2 - y1); ctx.strokeStyle = 'red'; ctx.beginPath(); ctx.moveTo(x + 5, y3); ctx.lineTo(x + 5, y4); ctx.stroke(); } }); </script> </body> </html>
? ??? ?????? ?? ? ????? ?? ??? ??? ? ? ????.
?????, PHP? JS? ???? ?? ??? ??? ??? ??? ?? ?? ??? ??????. ?? ?? ??? ??? ??? ??? ?????? ???? ?? ???? ? ? ?? ? ???? ?? ??? ???? ???? ???? ? ????.
? ??? ?? ??? ?? ?? ??: PHP ? JS? ???? ?? ??? ??? ??? ?????.? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ?? ??? ??? ?? JavaScript? MediareCorder API? ?? PHP ???? ???? ?????. 2. PHP? ???? ?? ??? ???? STTAPI (? : Google ?? Baidu ?? ??)? ???? ???? ?????. 3. PHP? ???? AI ??? (? : OpenAigpt)? ????. 4. ?? ?? PHP? TTSAPI (? : Baidu ?? Google ?? ??)? ???? ??? ?? ??? ?????. 5. PHP? ?? ??? ??? ??? ??? ?? ?? ??? ?????. ?? ????? PHP? ?? ???? ?? ?? ?? ??? ??? ?????.

PHP?? ?? ?? ??? ???? ?? ??? ? ???? ?? ??? ???? ?? ??? ???? ???? ????. 1. ?? ?? ??? ?? ??? URL ? ?? ??? ????. 2. UrlenCode? ???? ?? ??? ???????. 3. ? ???? ????? ?? ?? ??? ? ?? ??? ?????. 4. ???? ???? ?? ? ? ??? ??? ??? ??? ?????. 5. ??? ?? ??? ????? ?? ????? OG ??? ???? ?????. 6. XSS ??? ???? ?? ??? ??? ?????. ? ???? ??? ??? ???? ??? ?? ?? ??? ??? ???? ??? ?? ??? ?????.

AI? ??? ??? ?? ?? ? ?? ???? ????? ?? ??? ??????. 1. Baidu, Tencent API ?? ?? ?? NLP ?????? ?? ??? AI ?? ?? API? ??????. 2. PHP? ? ?? guzzle? ?? API? ???? ?? ??? ??????. 3. ?? ????? ?? ?? ??? ???? ???? ???? ??? ??? ? ????. 4. ?? ?? ? ?? ???? ?? PHP-L ? PHP_CODESNIFFER? ??????. 5. ???? ????? ???? ?? ?? ??? ?????? ??? ??????. AIAPI? ??? ? ???, ?? ??, ?? ? PHP ?? ??? ??? ???. ?? ???? PSR ??? ???, ??? ????? ????, ?? ??? ???, ????? ??? ????, X? ???????.

1. ?? ???? ??? ??? ?????? ?? ?? ??? ??, ??? ?? ???? ??? (? : ?? ???, ? ? ??), ?? ??? ?? ???? ???? ? ?? ?? ??? ??? ?? ??? ????????. 2. ?? ??? ??? ?? ? ??? ???? ?? ?? ?? ???? ?? ? ?? AUDIT ?? ??? ??? ? ????? ????? ??? ???????. 3. ?? ?? ??? ?? ??? ???????. Recaptchav3 ???? ??, ??? ?? ?? ?? ?? ??, IP ? ?? ??? ??? ??? ?? ???? ??? ?? ??? ????? ??? ???? ????? ??? ?????.

PHP? AI ??? ??? ?? ????? ??? API? ?? ?????. ??? ??? ????? ? ??? ???? ?????. API ??? ?? ?? ??? ???? ??? ??? ???? ???? ? ????. 2. ?? ?? ???? guzzle ?? curl? ???? HTTP ??? ???, JSON ??? ??? ? ???, API ? ?? ??, ??? ? ?? ??? ???? ??, ??? ?? ?? ? ? ?? ????, ??? ?? ? ?????? ?????. 3. ???? ???? ?? ???? API ??, ?? ? ??? ?? ??, ??? ?? ??, ?? ?? ? ??? ??? ??? ?????. ?? ??? ??? ??? ? ??? ???? Propt ?? ? ?? ?? ??, ??? ?? ? ?? ????, ?? ?? ?? ???? ? ??? ?? ? ???? ????? ?????.

PHP? ?????? ????? ?? ?? ?? ???? ???? ?? ???? ???? ?? ?? ???? ?????. 2. ?? ??? ???? ???? ?? ??? ?? ? ??? ??? ???? ?? API/Webhook ??? ??? ?? ???? ??? ??? ??? ??? ?????. 3. ?? ????? ?? ??, ??/???? ????, ???? ??, ???? ? ??? ?????? ????? ?? ??? ???? ???? ?? Dingtalk, SMS ?? ??? ???? ??? ?????? ???? ?? ? ??? ??? ????? ?? ??? ???? ???????.

PhpisstillRelevantinmodernenterpriseenvironments.1. Modernphp (7.xand8.x)? ??? ??, ??? ??, jitcompilation ? modernsyntax, mateitsuilableforlarge-scalepplications

??? AI ?? ?? ???? ???? PHPSDK? ??????. 2. PHP? ???? FFMPEG? ???? ???? API ?? ?? (? : WAV)?? ?????. 3. ??? ???? ????? ????? API ???? ??? ??????. 4. NLP ??? ???? JSON ??? ???? ???? ?????. 5. ?? ??? ???? ???? ?? ?? ?? ?? ?? ??? ?????. ?? ????? ?? ?? ? ??? ???? ?? ??? ???, ??? ?? ? ??? ???????.
