Re: php to store data
| From: | Ashley Sheridan | Date: | Mon, 02 May 2011 23:23:01 +0000 |
| Subject: | Re: php to store data | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312643@lists.php.net to get a copy of this message | ||
On Mon, 2011-05-02 at 17:55 +1000, sir wally lewis wrote:
> I am a complete novice at php.
> My internet service provider gives me webspace and PHP script execution
> for free.
>
> I would like a simple example of a website that stores data on the
> server, in simple text files.
>
> Is this possible?
>
> Kind Regards,
>
> Robert
>
If you're storing data, try to use a database, as you can do a lot more
with a DB than you can with flat text files on the server, and it's much
faster.
However, if you're stuck with text files, then look at things like
fopen, fwrite and file_get_contents functions, as these should help a
lot.
--
Thanks,
Ash
http://www.ashleysheridan.co.uk