Reply to Re: could someone help me with the logic behind this

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация