大家好!很简单的一行代码!结果却是大不一样,我不知道是什么原因!请求大家帮忙解决下!
如下:
我建了一个文件cheshi.php
在其中输入如下代码:
print_r($_GET);
print_r($_POST);
print_r($_REQUEST);
?>
输出结果为:$_GET、$_POST为空,$_REQUEST输出如下:
Array
(
[CNZZDATA4212761] => cnzz_eid=792289677-1386735817-http%3A%2F%2Flocalhost&ntime=1386735817&cnzz_a=28<ime=1386736989461
[bdshare_firstime] => 1386988923534
[ECS] => Array
(
[visit_times] => 8
)
[CNZZDATA1670348] => cnzz_eid=262288638-1386581204-http%3A%2F%2Flocalhost&ntime=1387258320&cnzz_a=177&sin=none<ime=1387247284046&rtime=6
[CNZZDATA3203633] => cnzz_eid=239809964-1387289862-http%3A%2F%2Flocalhost%2F&ntime=1387289862&cnzz_a=9&sin=none<ime=1387289857885
[CNZZDATA4844992] => cnzz_eid=880915059-1387289981-http%3A%2F%2Flocalhost%2F&ntime=1387289981&cnzz_a=43&sin=none<ime=1387290575798
[sYQDUGqqzHrefersh_time] => 0
[DedeUserID] => 1
[DedeUserID__ckMd5] => 650e0b627c089b98
[last_vtime] => 1387416855
[last_vtime__ckMd5] => 303054e738d2f36d
[last_vid] => admin
[last_vid__ckMd5] => 9fa4781db73e162f
[PHPSESSID] => t4sr7oc4v0tfosklcv050riuk3
[DedeLoginTime] => 1387456002
[DedeLoginTime__ckMd5] => e539663bd26b3136
)
问题是:这些信息代表了什么!希望得到详细回答!谢谢大家了!
为什么$_REQUEST会有?
回复讨论(解决方案)
在线等待中....!
自己看看吧
http://php.net/manual/zh/reserved.variables.request.php
别发那些说明文档,看不懂!
自己看看吧
http://php.net/manual/zh/reserved.variables.request.php
别发那些说明文档!思想有隔阂发了也看不懂!直白的解释下!深入浅出的那种!追主要的就是解释那些输出是什么!
很明显,除了get,post之外,还有coockie。
print_r($_COOKIE);
看看是不是和print_r($_REQUEST);一样?
CNZZ站长统计 百度分享 DEDE CMS的登录信息 具体意思会英文就明白
默认情况下包含了 $_GET,$_POST 和 $_COOKIE 的数组。
[cc lang='ini']
; This directive describes the order in which PHP registers GET, POST, Cookie,
; Environment and Built-in variables (G, P, C, E & S respectively, often
; referred to as EGPCS or GPC). Registration is done from left to right, newer
; values override older values.
variables_order = “EGPCS”
[/cc]
这个EGPCS就是说明用$_REQUEST数组获取内容的优先级,其字母的含义分别代表为:E代表$_ENV,G代表$_GET,P代表$_POST,C代表$_COOKIE,S代表$_SESSION。后面出现的数据会覆盖前面写入的数据,其默认的数据写入方式就是EGPCS

ThebestapproachforsendingemailsinPHPisusingthePHPMailerlibraryduetoitsreliability,featurerichness,andeaseofuse.PHPMailersupportsSMTP,providesdetailederrorhandling,allowssendingHTMLandplaintextemails,supportsattachments,andenhancessecurity.Foroptimalu

使用依賴注入(DI)的原因是它促進了代碼的松耦合、可測試性和可維護性。 1)使用構造函數注入依賴,2)避免使用服務定位器,3)利用依賴注入容器管理依賴,4)通過注入依賴提高測試性,5)避免過度注入依賴,6)考慮DI對性能的影響。

phpperformancetuningiscialbecapeitenhancesspeedandeffice,whatevitalforwebapplications.1)cachingwithapcureduccureducesdatabaseloadprovesrovessetimes.2)優化

ThebestpracticesforsendingemailssecurelyinPHPinclude:1)UsingsecureconfigurationswithSMTPandSTARTTLSencryption,2)Validatingandsanitizinginputstopreventinjectionattacks,3)EncryptingsensitivedatawithinemailsusingOpenSSL,4)Properlyhandlingemailheaderstoa

TOOPTIMIZEPHPAPPLICITIONSFORPERSTORANCE,USECACHING,數據庫imization,opcodecaching和SererverConfiguration.1)InlumentCachingWithApcutCutoredSatfetchTimes.2)優化的atabasesbasesebasesebasesbasesbasesbaysbysbyIndexing,BeallancingAndWriteExing

依賴性注射inphpisadesignpatternthatenhancesFlexibility,可檢驗性和ManiaginabilybyByByByByByExternalDependencEctenceScoupling.itallowsforloosecoupling,EasiererTestingThroughMocking,andModularDesign,andModularDesign,butquirscarecarefulscarefullsstructoringDovairing voavoidOverOver-Inje

PHP性能優化可以通過以下步驟實現:1)在腳本頂部使用require_once或include_once減少文件加載次數;2)使用預處理語句和批處理減少數據庫查詢次數;3)配置OPcache進行opcode緩存;4)啟用並配置PHP-FPM優化進程管理;5)使用CDN分發靜態資源;6)使用Xdebug或Blackfire進行代碼性能分析;7)選擇高效的數據結構如數組;8)編寫模塊化代碼以優化執行。

opcodecachingsimplovesphperforvesphpermance bycachingCompiledCode,reducingServerLoadAndResponSetimes.1)itstorescompiledphpcodeinmemory,bypassingparsingparsingparsingandcompiling.2)useopcachebachebachebachebachebachebachebysettingparametersinphametersinphp.ini,likeememeryconmorysmorysmeryplement.33)


熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

Dreamweaver CS6
視覺化網頁開發工具

SAP NetWeaver Server Adapter for Eclipse
將Eclipse與SAP NetWeaver應用伺服器整合。

mPDF
mPDF是一個PHP庫,可以從UTF-8編碼的HTML產生PDF檔案。原作者Ian Back編寫mPDF以從他的網站上「即時」輸出PDF文件,並處理不同的語言。與原始腳本如HTML2FPDF相比,它的速度較慢,並且在使用Unicode字體時產生的檔案較大,但支援CSS樣式等,並進行了大量增強。支援幾乎所有語言,包括RTL(阿拉伯語和希伯來語)和CJK(中日韓)。支援嵌套的區塊級元素(如P、DIV),

記事本++7.3.1
好用且免費的程式碼編輯器

禪工作室 13.0.1
強大的PHP整合開發環境