?? ? ?? ????? ??? HTTP ??? Guzzle? ??????. 2. CSS ???? ???? Symfony Domcrawler? ????? HTML? ?? ?????. 3. PHP Exec ()? ?? ???? ???? ???? ????? JavaScript? ?? ???? ?????. 4. robots.txt? ????, ??? ????, ??? ????? ?????, ???? ???? ??? ?????. 5. ??? ? ??? ?? CSV ?? MySQL? ?? ??????? ???? ??????. ??? ??? ?? PHP? ? ???? ? ??? ??? ???? ????? ?????.
??? ???? ? ? ???? ?? PHP? ???? ?? ?? ????? ?? ?? ???? ?? ? ????. Plython? ?? BeautifulSoup ? Selenium? ?? ??? ??????? ????. ??? PHP? ????? ?????. ??? ?????? ?? ??? ?? PHP? ? ???? ??? ????? ???? ?? ??? ????? ? ????? ??? ? ???? ?? ? ? ????.

??? ???? ? ? ???? PHP? ????? ???? ??? ??? ????.
1. HTTP ??? Guzzle? ??????
?????? ?? ? ???? ???????. file_get_contents()
??? ??? ????? Guzzle? ??? ??? ?? ? ??? ??? HTTP ????????.

???? ?? ??????.
???? guzzlehttp/guzzle? ?????
? : ? ???? ?? ????

$ client = new \ guzzlehttp \ client (); $ response = $ client-> get ( 'https://example.com'); $ html = (???) $ response-> getbody ();
Guzzle? ??, ??, ??, ???? ? ?? ??? ?????. ??? ??? ?? ????? ???? ? ??????.
2. Symfony Domcrawler? HTML? ?? ?????
HTML? ??? ???? ???????. Symfony Domcrawler ?? ??? DOM Traversal? ?? jQuery? ???? ????.
?? :
???? Symfony/Dom-Crawler? ?????
? : ?? ??? ??????
Symfony \ Component \ domcrawler \ Crawler? ??????. $ Crawler = New Crawler ($ HTML); $ links = []; $ crawler-> ?? ( 'a')-> ? (?? ($ node) ?? (& $ links) { $ links [] = [ 'href'=> $ node-> attr ( 'href'), 'text'=> $ node-> text () ]; });
CSS ???? ???, ?? ??, ???? ????? ?? ??, ?? ?? ?? ???? ????? ??? ??? ???? ? ? ????.
3. ???? ???? (Puppeteer PHP)??? JavaScript? ?? ???? ?????.
PHP ??? JavaScript? ??? ? ???? ???? JS (? : React ?? Angular Apps)? ?? ???????? ??? HTTP Fetching? ???? ????.
??? : Puppeteer (node.js)? ?? ???? ????? ???? PHP? ?? ??????.
????:
- ???????? ??? ? HTML????? ??? ????? ??????.
-
exec()
?? REST API? ???? PHP?? ??????.
Puppeteer ???? ( scrape.js
) ?? :
const puppeteer = require ( 'puppeteer'); const fs = ?? ?? ( 'fs'); (async () => { Const Browser = Await Puppeteer.launch (); const page = browser.newpage (); Await Page.goto (process.argv [2]); AWAIT Page.Waitfortimeout (3000); // JS??? ? ??? ????? const html = await page.content (); fs.writefilesync ( 'output.html', html); Await Browser.close (); }) ();
PHP?? ?? :
exec ( "?? scrape.js https://example.com"); $ html = file_get_contents ( 'output.html');
? ????? ??? ???? PHP? ??? ???? ??????? ?? ? ??? ??? ?? ? ? ????.
4. Robots.txt? ???? ?? ??? ?????
??? ????? IP? ?? ? ? ????. ???:
- check
robots.txt
(? :https://example.com/robots.txt
) - ?? ??? ??? ?????
- ??? ????? ??????
- ??? ????? ???? ??????
?? ? :
?? (2); // ?? ??? 2 ?? ?????
???? ??? ????? ??????.
$ client-> get ( 'https://example.com', [ '??'=> [ '??? ????'=> 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebkit/537.36' ]] ]);
5. ???? ?? ???? ??????
?? ??? PHP? ?????? ? ?? ??? ? ?????.
CSV? ?? :
$ fp = fopen ( 'products.csv', 'w'); foreach ($ data as $ row) { fputcsv ($ fp, $ row); } fclose ($ fp);
?? mysql? ?? :
$ stmt = $ pdo-> ?? ( "??? ?? (??, ??) ? (?,?)"); $ stmt-> execute ([$ name, $ price]);
?? ??
PHP? ??????? ?? ??? ?? ??? ???? Guzzle , Domcrawler ? Puppeteer ? ?? ???? ??? ???? ???? ?? ??? ?????. ?? Laravel ?? WordPress? ?? PHP ???? ?? ?????? ??.
Python? ???? ?? ??? PHP? ??? ? ? ? ? ??? ?? ?? ????.
????? : ???? ????, ???? ?? ????, ??? ? JS? ?????, ?? ????? ?????.
? ??? ??? ???? ? ? ???? PHP ??? ?? ?????. ??? ??? 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)

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

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

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

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

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

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

PHP? ??? ??? (? : ???? ??, ??? ??) ? ?? ??? ???? AI ??? ?? ?? ??? ?????. 2. CURL ?? GRPC? ???? AI ??? ???? ??? ? ??? ?? ??? ?????. 3. ??? ?? ?? ?? ??, ?? ??? ? ?? ??? ???? ?????. 4. A/B ? ??? ???? ?? ?? ?? ??? ????? ?? ??? ???? ??? ??????. 5. PHP? ???? ??? ?? ? ??? ??? ?????? Googleads? ?? ?? API? ???? ?? ?? ? ???? ??? ???? ???? ????? CTR ? CVR? ???? CPC? ??? AI ?? ?? ???? ?? ??? ??? ?????.

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