PHP Learning notes


========June/30=========

Chapter 1
1.reigister_globals= off in php.ini and set default value in variables

when definition.
2.safe_mode(directive option)= On in php.ini, PHP only limit PHP file,

not against external application execute by PHP, so it needs store these

applictions into security folder.
3.safe_mode_gid=On used to set user group check not single user ID
  also use safe_mode_include_dir="/path1:/path2:/path3" to set specific  

  folders(limit file  read)
4.safe_mode_allowed_env_vars=[string] used to enable the environment

variables change and read
  safe_mode_protected_evn_vars=[string] used to disable the environment

variables change and read
5.safe_mode_exec_dir=[string]
6.disable_function=[string]
7.Magic Quotes Function:magic_quotes_gpc
8.phpinfo();
9.ini_get_all();
10.ini_set(string varname,string newvalue),except register_globals,
   expose_php and allow_url_fopen

Chapter 2

1.string system(string command[,int & return_var])
  system("dir c",$retval)   
2.string exec(string command[,array& output[,int & retun_val]])
3.void passthru(string command[,int& return)
4.shell_exec(string cmd)
5."``"
  $output=`dir c`
6. Command injection through URL
7. eval injection
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值