📌  相关文章
📜  在 wordpress 中以编程方式创建文本文件 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:50.930000             🧑  作者: Mango

代码示例1
$time = date( "F jS Y, H:i", time()+25200 );
$ban = "#$time\r\n$location\r\n"; 
$file = dirname(__FILE__) . "/post_data.txt_$time"; 
$open = fopen( $file, "a" ); 
$write = fputs( $open, $ban ); 
fclose( $open );