PHP write to file

前端 未结 6 1911
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-15 14:49

below is some code I am using to \"translate\" a map array into SQL code so I can easily update my database when I have updated my game map. As you can see it prints out the

6条回答
  •  旧时难觅i
    2021-01-15 15:28

    $str = <<>>
    if( $fh = @fopen( "myfile.txt", "a+" ) ) {
                fputs( $fh, $str, strlen($str) );
                fclose( $fh );
    }
    

    this should do...

提交回复
热议问题