Home > 网站建设 > 给php新手的一个好东西

给php新手的一个好东西

自己刚开始学,有些php变量用echo显示不了,就把它们写进文件。先在脚本的同目录下建立1.txt,然后在要检测的变量后面加上下面的小代码。

$fp=fopen("1.txt",'w');
fwrite($fp,$name);

简单的东西但是比较省事。

Categories: 网站建设 Tags:
  1. No comments yet.
  1. No trackbacks yet.

Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).