路径

 

<?php
define('CMDPATH', 'wD:\cmd\\');
echo CMDPATH;
die();

 

php cmd   不能利用$_COOKIE 的处理  通过文件来暂存字符串

 

broswer 路径无问题

php cmd   不能利用$_COOKIE 的处理  通过文件来暂存字符串

w

读 用

<?php

$wfile = 'D:\cmd\wfonen.html';
$handle = fopen($wfile,'r');
$contents = fread($handle,filesize($wfile));
fclose($handle);
var_dump($contents);

 

php cmd   不能利用$_COOKIE 的处理  通过文件来暂存字符串

 

存 更新

<?php
$wfile = fopen('D:\cmd\wfonen.html', 'w');
var_dump($wfile);
fwrite($wfile, 'w');
unset($wfile);
$wfile = fopen('D:\cmd\wfonen3.html', 'w');
fwrite($wfile, 'w');
var_dump($wfile);


die();

 

 

 

php cmd   不能利用$_COOKIE 的处理  通过文件来暂存字符串

 

<?php
$wfile = fopen('D:\cmd\wfonen.html', 'w');
var_dump($wfile);
fwrite($wfile, '232323');
unset($wfile);
$wfile = fopen('D:\cmd\wfonen3.html', 'w');
fwrite($wfile, '232323');
var_dump($wfile);

 

php cmd   不能利用$_COOKIE 的处理  通过文件来暂存字符串

相关文章:

  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2021-07-04
猜你喜欢
  • 2022-02-02
  • 2021-10-22
  • 2021-12-14
  • 2021-06-10
  • 2021-12-19
相关资源
相似解决方案