$ _session, $ _cookie ? Browser ?? ????? ???? ??????.
Apr 02, 2025 pm 05:37 PM?? ? ???? ? ?? ???? ????? ??? ?? ??? ????. 1. $ \ _ ?? : ?? ?? ???? ???? ? ?????, ?? ?? ????? ?? ??? ??? ? ? ????. 2. $ \ _ ?? : ?????? ???? ??? ??? ??? ? ?? ? ?? ??? ????. 3. ?? ???? : ????? ??? ???? ??? ? ???? ?? ??? ??? ??? ??? ???? ?? ???? ???? ??? ????.
??
???? ? ???? ??? ?? ? ??? ?? ???? ?????. ??? ??? ????? ??? ??? ? ?? ???? ???? $_SESSION
, $_COOKIE
? ???? Local Storage
? ??? ????. ? ??? ?? ?? ???? ????? ??? ?? ?? ?????? ??? ?? ? ?? ??? ??? ? ????.
?? ?? ??
???? ?? ??? ??? ??? ?? ??? ??? ???. $_SESSION
? $_COOKIE
PHP ??? ??? ???? ??? ??????? ???? ???? ? ?????. Local Storage
? HTML5?? ?? ? ????? ???? ????? ???? ?? ??? ? ????.
?? ?? ?? ?? ??
$_SESSION
? ?? ? ??
$_SESSION
?? ???? ???? ???? ? PHP? ???? ? ?? ?????. ?? ??? ?? ??? ???? ???? ?? ??? ???? ????. ?? ??, ???? ????? ???? ID? $_SESSION
? ???? ?? ???? ???? ?? ? ? ????.
// ??? ?????? ?? _start (); // ?? ?? ?? $ _session [ 'user_id'] = 123; // ?? ??? ??? ? ? ????. echo $ _session [ 'user_id'];
$_SESSION
? ??? ?? ?? ???? ??? ? ??? ????. ?? ? ??? ???? ?? ???? ????? ??? ?? ???? ???? ?? ??? ??? ? ? ????.
$_COOKIE
? ?? ? ??
$_COOKIE
HTTP ??? ??????? PHP? ? ?? ? ?? ?????. ??? ???? ??? ???? ???? ????? ??? ? ??? HTTP ????? ??? ??? ?? ?????.
// ??? ????? setCookie ( 'username', 'john_doe', time () 3600); // ??? ?????? echo $ _cookie [ 'username'];
$_COOKIE
? ??? ?????? ?? ? ? ??? ????. ?? ??? ??? ????? ?????? ?? ? ? ??? ???? ?????? ???? ??? ??? ????? ?? ?? ?? (????? 4KB)? ????.
???? Local Storage
? ?? ? ??
Local Storage
? HTML5?? ?? ? ????? ?? ??????, ? ? ? ???? ????? ??? ? ????. $_COOKIE
? ????? ???? HTTP ????? ??? ???? ??? ???? ??? ? ??? (????? 5MB ?? 10MB).
// ?? ????? ????? localStorage.setItem ( '??', '??'); // ?? ????? ?????? Theme = LocalStorage.getItem ( '??'); Console.log (??);
Local Storage
? ??? ?? ??? ??? ??? ??? ? ????? ?? ?? ?? ???? ??? ? ??? ????. ??? ???? ?? ???? ???? ??? ????.
??? ?
?? ??
??? ???? ??? ?? ?? ?????? ??? ????? ?? ?????.
$_SESSION
? ?? ??
session_start (); $ _session [ 'user_id'] = 123; if (isset ($ _ session [ 'user_id'])) { Echo "??? ID :". $ _session [ 'user_id']; }
$_COOKIE
? ?? ??
setCookie ( 'username', 'john_doe', time () 3600); if (isset ($ _ ?? [ 'username'])) { Echo "??? ?? :". $ _cookie [ '??? ??']; }
Local Storage
? ?? ??
localStorage.setItem ( '??', '??'); Theme = LocalStorage.getItem ( '??'); if (??) { Console.log ( "?? :"??); }
?? ??
?? ?? ????? ? ?? ??? ????? ??? ? ????.
$_SESSION
?? ??
session_start (); $ _session [ '???'] = [ 'ID'=> 123, '??'=> 'John Doe', '???'=> 'john@example.com' ]; // ??? if (isset ($ _ session [ 'user']) && time () - $ _session [ 'last_activity'] {3600)? ????? ??????. session_unset (); Session_Destroy (); } ? ?? { $ _session [ 'last_activity'] = time (); }
$_COOKIE
?? ??
// ?? ??? ????? setCookie ( 'username', 'john_doe', time () 3600); setCookie ( '??', '??', time () 3600 * 24 * 30); // ??? ????? ???? (isset ($ _ ?? [ 'username']) && isset ($ _ ?? [ '??']) { Echo "??? ?? :". $ _cookie [ '??? ??']. ", ??: " . $ _cookie [ '??']; }
Local Storage
? ?? ??
// ??? ??? ?? ??? = { ID : 123, ?? : 'John Doe', ??? : 'john@example.com' }; localStorage.setitem ( '???', json.stringify (user)); // ??? ???? ?? ?? ?? ? ? ????. if (StoredUser) { Console.log ( "??? ID :"StoredUser.Id); Console.log ( "??? ?? :"StoredUser.name); Console.log ( "??? ??? :"StoredUser.Email); }
???? ?? ? ??? ?
??? ??? ??? ??? ? ??? ??? ? ?? ???? ??? ????.
$_SESSION
?? ??
- ?? ?? :
session_start()
??? ?????? ?? ????? ???? ??? ??????. - ?? ?? : ?? ??? ?? ??? ??? ??? ?? ??? ????? ??? ? ????.
$_COOKIE
???? ??
- ?? ?? ?? : ?? ???? 4KB? ???? ???????.
- ?? ?? : ??? ??? ????? ??
httpOnly
?secure
???? ??????.
Local Storage
???? ??
- ??? ?? ?? : ??? ???? ??? ?
JSON.stringify
?JSON.parse
???????. - ?? ?? ?? : ??? ???? ??? ??? ??? ??
Local Storage
? ?? ????? ???? ?? ?????? ?????.
?? ??? ? ?? ??
?? ?? ???? ??? ??? ??? ??? ????? ??? ??????
$_SESSION
?? ???
- ?? ??? ?? : ?? ??? ??? ??? ??? ?? ??? ??? ??? ?? ??????.
- ?????? ???? ?? : ?? ????? ??? ???? ?? ?? ?? ?????? ??? ??????.
$_COOKIE
?? ???
- ?? ?? ??? : HTTP ??? ??? ??? ??? ??? ??? ?? ??? ???????.
- ?? ??? ?? ?? : ???? ??? ??? ??? ?? ??? ?? ??? ????? ??????.
Local Storage
?? ???
- ???? ?? : ??? ????? ???? ?? ???? ?? ?????
Local Storage
???? ??? ??? ?? ? ????. - ??? ?? : ??? ???? ????? ??? ?? ??? ???? ?? ??? ?? ? ????.
?? ??
- ?? : ?? ? ???? ??? ???? ??? ??? ??? ??? ?? ??? ?????? ??????.
- ?? ??? : ??? ???? ?? ??? ??? ???? ??? ???? ?? ??? ??????.
- ?? ???? : ?? ????? ??? ????? ?????? ?? ?? ??? ?? ???? ?????.
? ??? ??? ?? $_SESSION
, $_COOKIE
? Local Storage
? ?? ? ?? ???? ?? ???????? ??? ??? ??? ???? ??? ? ??? ????.
? ??? $ _session, $ _cookie ? Browser ?? ????? ???? ??????.? ?? ?????. ??? ??? 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)

????? ??? ????? ????? ??? ??? ???????. ?? ?? ??? ??? ????. 1. ??? 8 ?? ?????. 2. ??? ???, ??? ? ??? ?????. 3. ?? ?? ??? ?? ? ? ????. ?? ??? ????, ??? ???? ?? ? ??/?? ???? ?????, ?? PHP ?? ??? ?????. ???, ?????? ???? ?? ? 123456? ?? ???? ?? ??? ????????. ????? ?? ???? ????? ?? ZXCVBN ?????? ???? ?? ????.

PHP ?? ??? ?? ???? ?? ? ????? ??? ?????. 1. ?? ??? ??? ??? ??? ? ? ??? ??? ??? ?? ?? ??? ???? ???????. 2. ?? ??? ???? ???? ? ?? ????? ?? ?? ?? ??? ?????. 3. $ _get ? $ _post? ?? Hyperglobal ??? ?? ???? ?? ??? ? ??? ??? ??????? ???????. 4. ?? ?? ?? ???? ?? ?? ?? ??? ?????? ?? ??? ??? ?? ??? ???????. ??? ??? ????? ??? ??? ?? ???? ????? ? ??? ? ? ????.

PHP ?? ???? ???? ????? ?? ? ??? ???? ?? ?? ? ??? ???? ?? ??? ?????? ??? ??? ? ? ???????. 1. ??? ?? CSRF? ???? ?? ??? ??? ???? ?????? ??? ???? FINFO_FILE? ?? ?? MIME ??? ?????. 2. ??? ??? ??? ???? ??? ?? ??? ?? ? WEB ????? ??? ???? ??????. 3. PHP ?? ??? ?? ? ?? ???? NGINX/APACHE? ??? ????? ?? ???? ?????. 4. GD ?????? ??? ? ?? ???? ??? ?? ??? ?? ????.

PHP ?? ???? ? ?? ???? ??? ????. 1. // ?? #? ???? ? ?? ??? ???? // ???? ?? ????. 2. ?? /.../ ?? ?? ?? ??? ????? ?? ? ?? ??? ?? ? ? ????. 3. ?? ?? ?? / if () {} /? ?? ?? ??? ????? ??? ?? ?? ?? ??? ???? ????? ???? ??? ?? ???? ???? ??? ? ??? ??????.

Ageneratorinphpisamemory- ???? Way-Erate-Overgedatasetsetsbaluesoneatimeatimeatimeatimallatonce.1.generatorsuseTheyieldKeywordTocroadtOpvaluesondemand, RetingMemoryUsage.2

PHP ??? ???? ??? ??? ??? ????? ????. ??? ????? ?? ???? ??? "?? ? ?"??? "?"? ???????. 1. ??? ? ??? ??? DocBlock (/*/)? ?? ?? ??? ???? ??? ? ?? ???? ??????. 2. JS ??? ???? ?? ???? ??? ?? ??? ??? ?????. 3. ??? ?? ?? ?? ??? ???? ????? ????? ???? ?? ????? ???? ? ??????. 4. Todo ? Fixme? ????? ???? ? ? ??? ??? ???? ?? ?? ? ??? ???????. ??? ???? ?? ??? ??? ?? ?? ?? ???? ???? ? ????.

toinstallphpquickly, usexampponwindowsorhomebrewonmacos.1. ??, downloadandinstallxAmpp, selectComponents, startApache ? placefilesinhtdocs.2

tolearnpheffectical, startBysetTupaloCalserErverEnmentUsingToolslikexamppandacodeeditor -likevscode.1) installxamppforapache, mysql, andphp.2) useacodeeditorforsyntaxsupport.3)) 3) testimplephpfile.next, withpluclucincludechlucincluclucludechluclucled
