register_global=off

bamdaddk

New Member
آقا يكي كمك كنه . من اين سپوال رو قبلا مطرح كردم و فقط يك نفر زحمت كشيدن و جواب دادن و لي هنوز مشكلم پا برجاست . من توي php مي خواهم يك فرم را هندل كنم متغير ها جواب نمي دهند مشكل اينجاست كه تازماني register_global=off اين مشكل وجود داره و سرويس دهنده من هم بنابه مساپل امنيتي حاضر نيست اين متغير را در php.ini خود تغيير بده . از روش global $PHP_SELF هم استفاده كردم ولي اين هم نياز داره كه اين متغير on باشد . ميگين چكار كنم كه مشكلم براي هندذل يك فرم حل بشه
 

Dark Man

Member
وقتي رجيستر گلوبال افف باشه بايد از يه سري متغير هاي ديگه استفاده كني :
PHP:
$_COOKIE
 Contains keys and values set as browser cookies
 
$_ENV
 Contains keys and values set by the script's shell context
 
$_FILES
 Contains information about uploaded files
 
$_GET
 Contains keys and values submitted to the script using the HTTP get method
 
$_POST
 Contains keys and values submitted to the script using the HTTP post method
 
$_REQUEST
 A combined array containing values from the $_GET, $_POST, and $_COOKIES superglobal arrays
 
$_SERVER
 Variables made available by the server
 
$GLOBALS
 Contains all global variables associated with the current script
 
آخرین ویرایش توسط مدیر:

جدیدترین ارسال ها

بالا