Posted by Arjen on 09/28/77 11:42
gerg wrote:
> I'm trying to write a script to allow the site admin to upload a .txt
> file only to the server. Once it's uploaded, have the information
> stripped and read into a database. then the file can be destroyed. I
> basically want the text from the .txt file to be copied into a database,
> thus made searchable. It's my first time doing this kind of script so
> I'm not familiar with the functions that would best serve this process.
> I'm off to google but if someone could help me with the basic functions
> I should be using to accomplish this I would really appreciate it.
> Thanks in advance.
>
> Greg
something like
$text = file_get_contents ($_FILES['userfile']['tmp_name']);
and then maybe striptags
and build some error handling
Arjen
[Back to original message]
|