phpc常用代码

 

1:$fp=fopen("tmpvcode.txt",'w');  fwrite($fp, $vcode); fclose($fp);

 

2://创建php文件

fopen($newsUrl,"x");
file_put_contents($newsUrl,$htmlContent);

2:

年月日
<?echo date('Y年m月d日', time()-60*60*24);?>
 

 

 

你可能感兴趣的:(PHP)