Flask ?? Fastapi? ?? Python?? ??? ???? Curl ?? Guzzle? ???? PHP?? ???? PHP ? ML ??? ???? ?? REST API? ??????. 2. ???? ???? ?? ?? ??? ?? exec () ?? shell_exec ()? ???? PHP?? Python ????? ?? ?????,? ???? ?? ? ?? ??? ????. 3. PHP ?? ??? ??? ???? ???? ?? ?????? ?? Redis? ?? ?? ????? ???? ?? ?? ??? ????? ????? ?????. 4. ??? ?? ??? ?? TensorFlow.js??? JavaScript ?? ML? ???? PHP? ????? ?? Node.js? ??? ?????? ?? ???? ?? ? ? ????. PHP? ML ?? ?? ???? ??? ???? ?? ?? ??? ???? ML ??? ????, ?? ??? ????, ??? ????????.
ML (Machine Learning) ??? PHP? ???? ?? ?? ???? ?? ??? ????, ML ??? ?????. ??? ?? ??? PHP ?? ?????? WordPress? ?? CMS ????? ?? ? ? ???? ???? ??? ?????. ?? ?????? PHP? ML ??? ????? ???? ??? ??? ????.

1. REST API? ???? PHP ? ML ??? ??????.
?? ????? ?? ??? ??? Flask ?? Fastapi? ?? ??? ??? ???? Python?? ?? ? REST API? ?? ML ??? ????? cURL
?? GuzzleHTTP
???? PHP?? ???? ????.
??? ???? ?? :
- ML ?? (?? ? ??)? Tensorflow, Pytorch ?? Scikit-Learn? ?? ?????? ????? ?? ? ?????.
- PHP? ? ??, ??? ?? ? ?????? ?????. ???? ??? ?????.
? : ??? ???? API
???? ?? ?? ?????? ??, jsonify joblib ?? ?? app = flask (__ name__) model = joblib.load ( 'model.pkl') @app.route ( '/predict', methods = [ 'post'])) def predict () : data = request.json ?? = [data [ 'feaction1'], data [ 'feaction2']] ?? = model.predict ([featsage]) [0] return jsonify ({ 'prediction': int (prediction)}) __name__ == '__main__': app.run (port = 5000)
PHP?? ??????
$ data = [ 'feaction1'=> 5.1, 'feaction2'=> 3.5]; $ ch = curl_init ( 'http : // localhost : 5000/predict'); curl_setopt ($ ch, curlopt_returntransfer, true); curl_setopt ($ ch, curlopt_postfields, json_encode ($ data)); curl_setopt ($ ch, curlopt_httpheader, [ 'content-type : application/json']); $ response = curl_exec ($ ch); $ result = json_decode ($ response, true); curl_close ($ ch); ?? "?? :". $ ?? [ '??'];
??? ?? ????? ??? ??/???? ???? ??? ? ????? ?????.

2. PHP?? ?? Python ???? ?? (??? ??)
??? ?? ?? ?? ??? ?? exec()
, shell_exec()
?? proc_open()
???? PHP?? ?? ??? ????? ??? ? ????.
?:
$ output = shell_exec ( 'python3 predict.py 5.1 3.5'); echo $ output;
??? predict.py
:

SYS ?? ?? joblib ?? ?? model = joblib.load ( 'model.pkl') feaction1 = float (sys.argv [1]) feaction2 = float (sys.argv [2]) ?? = model.predict ([[feaction1, feaction2]]) [0] ?? (??)
?? :
- ?? ?? ??? ??? ???? ?? ??.
- ???? ???? ?? ???.
- ??? ? ??? ? ?????.
?? ?? ?? ???? ?? ??????? ?? ?????.
3. ?? ???? ?? (??, ??????, Redis)
?? ????? ?????? ?? ??? PHP ?? ?? ???? ??? ??? ?? ??? Python ??? ?? ????? ? ????. ??? ???? ??? ?????.
?? ?? :
- PHP? "?? ?"?????
predictions_queue
???? ???? ?????. - ??? ??? ???? ???? ??? ???? ?? ? ??? ???????.
- PHP? ??? ??? ??? ????? (? : Ajax ?? ??? ??).
??? ?? ?? ?? ?? ?? ??? ?????.
4. ?? ???? ?? ML ???? (??? ?? ??)
??? ?? ? ??? ?? TensorFlow.js? ??????. Python?? ??? ???? Tensorflow.js ???? ???? ???? ?? Node.js?? ?? ??? ??? ? ????.
PHP? ??? ?? ? ??? ???? ????? ??? ????? ? ?? Node.js ???? ???? ?? ?????.
????? ?? ?
- PHP?? ?? ???? ?? ??? ????? ???? .
- ML ?? ???? ???? ?? ??? ???? ???? ????? .
- ?? ??? ??? ?? ??? ?? ?? ?? (? : Redis ??).
- ??????? JSON? ?????? . ??? ????? ?????.
- ??? ?? - ML ??? ?? ??? ? ? ????.
??
PHP? ????? ML ??? ????? ???? ? ????? ??? API ?? ???? ? ??? ?? ? ?????. ??? ? ??? ??? ??? ???? ? ??? : ? ?? ? PHP, ?? ?? ? Python. ??? API ?? ???? ? ??? ???? ?? ? ? ????.
????? ??? ????? ???? ???? ????? PHP? ??? ?? ? ???? ??????.
? ??? ?? ?? ??? 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)

N 1 ?? ??? ??? ?? ???? ?????? ?????? ?? ?? ????. 2. ???? ???? ???? ?? ??? ???????? ??? ??? ?? ? ??????. 3. ??? 2 ? ?? ?? Redis ?? ??? ?? ??? ?? ?? ??? ????? ??????. 4. ??? ????? ????? ????? Clear ()? ???? ???? ?????? ??? ????? ?????. 5. ?????? ??? ????? ???? ???? ? ??? ??? ?? ?? ? SQL ?? ??????. 6. ?? ??? ???? ?? ?????? ?? ?? ??? ?????? ?? ?? ?? ??? ???? ??? ??????. ORM? ???? ????? ?? ??? ????? ?? ???? ??? ???? ?? SQL ????, ??, ?? ?? ? ??? ???? ???????.

readOnlyPropertiesInphp8.2CanonlyBeassignedOnedOneDonceIntheConstructorAratDeclarationandCannotBemodififificificificifified

Laravel? ?? SQL ??? ??? ????? ??? ???? ?? ?? ?? ???? ????????. 1. DB :: SELECT ()? ???? SQL ??? ???? ?? ?? ?? ????? ?? ??? ?????. 2. DB :: Update ()? ???? ???? ??? ???? ????? ? ?? ?????. 3. db :: insert ()? ???? ???? ??????. 4. db :: delete ()? ???? ???? ?????. 5. db :: statement ()? ???? ??, Alter ?? ?? ?? ???? SQL ?? ??????. 6. QueryBuilder? WhereRaw, Selectraw ? ?? ??? ???? ?? ???? ???? ??? ????? ?? ????.

JWT? ??? ??? ????? ?? ?????. Java??? JJWT ?????? ?? ?? ? ??? ?? ? ????. 1. 2. ??? ??, ?? ?? ? ??? jwtutil ?? ???? ????. 3. JWTFILTER? ??? ?? ?? ?? ?? ???? BearerTokens? ?????. 4. ??? ??? ???? ?? ??? ??? ??? ??????. 5. ???? ??? ? JWT? ???? ?? ??? ?????? ?????. 6. ?? ? ?????? ??? ??? ?? ??? ?? ???? ??? ID ? ??? ?? ????? ?? ???? ??? ??? ? ?? ??? ?? ????? ?????.

Go Generics? 1.18 ?? ???? ??-??? ?? ?? ??? ???? ? ?????. 1. ?? ?? printslice [tany] (s [] t)? [] int ?? [] String? ?? ?? ??? ????? ?? ? ? ????. 2. ?? ?? ?? ??? ?? int ? float? ?? ?? ???? ??? ?????. Sum [tnumber] (slice [] t) t ??? ??? ?????. 3. ?? ?? ?? ?? [tany] struct {valuet}? ?? ?? ?? ????? Newbox [tany]*box [t] ???? ?? ??? ? ????. 4. ?? (vt)? ???? () t ???? [t]?? [t]? ????

??? ?? ?? : ?? ? ??? ????? ??? ??? ??? ??? ?? ? ?? ?? ? ?? ?? ??? ? ?? ????????. 1. ??? ?? ?? ?? : ??? ??? ???? ?????. 2. ? ?? ? Th/td? ?? ?? ? ?? ??? ?????. 3. ?? ?? ?? : Nowrap, Overflow : ??? ??? ?? ??? : ??? ?? ???? ?????? ??; 4. ???? ???? ? ??? ???? ??? ?? ??, ??? ??? ? ?? ????? ????? ???? ??? ????? ???? ??? ???? ???? ? ????.

Junit5? Mockito? ???? ?? ???? ?? ????? ???? ??????. 1. @Mock? ?? Mock Object? ????. @InjectMocks ??? ? ????? ?????. 2. ????? ??? ???? ?? (). 3. ?? ????? ??????? ?? ??? ??? ? ????. 4. ??? ??? ????, ??? ?????? ???, ?? ???? ?????. 5. AsserTall ()? ???? ?? ?? ???? @nested? ??? ??? ? ???? ????? ?? ??? ????? ?????.

Suchassinglefield, chooreseappreptriptriptriptribledexTypebaseNoSecase, suchassinglefield, ???, ?? ?, ???, ?? ??, orttlindexes.2.applySeRruleWhencreatingCompoundEdexesByOrdedSaseQuality, ??, thenRange.3
