用php 代码上传一个压缩包跟txt文件,在页面里面输出内容
上传一个txt文件包含如下信息
* tension
There's an indefinable air of tension at the meeting.
The tension in the Far East is building up again.
* reputation
She had a reputation for punctuality.
This restaurant has a fine reputation.
页面输出
tension$There's an indefinable air of tension at the meeting.
reputation$She had a reputation for punctuality.
PS:思路应该是先用“*”分割内容。然后在采集第一行的单词,及此单词下的第一句句子。
PHP本身不能上传啊,需要HTML来上传
PHP只是接收文件。
js验证一次,php验证一次