$ _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)

??? ??











TOSECURELYHANDLEAUSTENCENDACTIONANDACTERIZINGINPHP, FORCUCTSESTEPS : 1. ALWAYSHASHPASSWORTHPASSWORD_HASH () ? VERVERIFYUSINGPANSWORD_VERIFY (), usePREPAREDSTATEMENTSTOPREVENTSQLINGERGED, andSTOREUSERSESSEATAIN $ _SESSIONSAFTERLOGIN.2.impleplempletrole ?? ACCESSC

PHP?? ?? ???? ???? ????? ??? ?? ??? ???? ?? ??? ??? ??? ???? ????. 1. finfo_file ()? ???? ?? ?? ??? ???? ???/jpeg? ?? ?? ?? ? ?????. 2. uniqid ()? ???? ??? ?? ??? ???? ? Web ?? ????? ??????. 3. php.ini ? html ??? ?? ?? ??? ???? ???? ??? 0755? ?????. 4. Clamav? ???? ???? ???? ??? ??????. ??? ??? ?? ???? ????? ???? ?? ??? ????? ???? ??? ? ??? ?????.

PHP?? ==? ==? ?? ???? ?? ??? ??????. == ?? ??? ?? ?? ?????. ?? ??, 5 == "5"? true? ????, ?? ??? ???? ?? ?? ??? ????? ????? (? : 5 === "5"? false? ?????. ?? ?????? ===? ? ???? ?? ?????? == ?? ??? ??? ???? ?????.

PHP?? ?? ??? ??? ???? ??? ??? ????. 1. ?? ??? ?? ? ?? ??? ??? ???? ???? ??? ? ????. ??? ??? ???? ????? ????? ???? ????. 2. ?? ?? ?? - ??, ??? ???? ?? ??? ?????. 3. ?? ???? ??? ??? ???? ??? ??? ?????. 4. Division? / ??? ???? 0?? ??? ?? ????? ??? ?? ??? ?? ? ? ????. 5. ???? ??? ???? ?? ?? ? ?? ??? ???? ? ??? ? ???, ??? ?? ? ? ??? ??? ???? ?????. ? ???? ???? ???? ??? ??? ??? ???? ?? ??? ? ??????? ????.

?, PHP? ?? ?? ?? ?????? ?? MongoDB ? Redis? ?? NOSQL ??????? ?? ??? ? ????. ?? MongoDBPHP ???? (PECL ?? Composer? ?? ??)? ???? ????? ????? ??? ?????? ? ???? ????? ??, ??, ?? ? ?? ??? ?????. ??, Predis ????? ?? Phpredis ??? ???? Redis? ???? ?? ? ?? ? ??? ???? ??? ????? Phpredis? ???? ?? Predis? ?? ??? ?????. ? ? ?? ??? ???? ? ????? ????.

tostaycurrentwithphpdevelopments ? bestpractices, followkeynewssources lifephp.netandphpweekly, adgytwithcommunitiesonforumsandconferences, readlingupdated andgrad indewfeatures, andreadorcontributetoopensourceproceprosts.first

phpbecamepupularforwebdevelopmentduetoiteofleneflening, whithhtml, wididepreadhostingsupport, andalargeecosystemincludingframeworkslikelaravelandcmsplatformsformslikewordpress.itexcelsinhandlingformsubmissions, managingussess, interptisussivers, ?? ???

TOSETTHERIGHTTIMEZONEINPHP, usedate_default_timezone_set () functionattStartOfyourscriptwitHavalidInlifiersuchas'America/new_york'.1.edate_default_timezone_set () beforeanydate/timeFunctions.2
