如何使用PHP从记事本中检索文本 [英] how to retrieve text from notepad using php

查看:107
本文介绍了如何使用PHP从记事本中检索文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是php开发的初学者。我正在进行一个网站开发,所以我使用文本区域框,我存储了记事本中的一些文本。但是没有从文本区域框中检索文本。



所以请帮帮我?



如何从记事本中检索文字区域?



问候

jeeva

解决方案

如果您正在寻找将记事本文件的内容读入的方法一个文本区域,看看这个示例代码:

 <   html  >  
< body >
< textarea = 20 cols = 50 >
<? php


file = fopen( test.txt, r);

while(! feof(


file ))

{

echo 与fgets(

i am beginner of php development.i am doing one website development so i use Text Area box and i store the some text from notepad.But didn't retrieve text from Text Area Box.

so please help me?

how to i retrieve the text from note pad to text Area?

Regards by
jeeva

解决方案

If you looking for way to read the content of a notepad file into a text area, take a look at this example code:

<html>
<body>
<textarea rows="20" cols="50">
<?php


file = fopen("test.txt","r"); while(! feof(


file)) { echo fgets(


这篇关于如何使用PHP从记事本中检索文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆