Få tekst fra nyhedssystem ind på HTML side - muligt ?
Hej.Jeg har hentet et nyhedssystem, som køre ren PHP, og gemmer nyhederne i tekstfiler.. Nu kunne jeg godt tænke mig at få denne tekst ind på min HTML side, ind i nogle Layers. hvordan det ?
Manualen siger:
There are two ways of doing this, using
PHP or SSI. If you pages are already
PHP files then use the PHP way. If they
are .shtml or .shtm then use the SSI
method.
PHP Method:
<?php include ("nphp/news.txt"); ?>
SSI Method:
<!-- #include file="nphp/news.txt" -->
If your pages are just .html then you will
need to rename them and use the correct
method. I reccommend renaming to .PHP and
using the PHP method.
PHP method only works with .PHP extensions,
SSI only works with .SHTML, .SHTM extensions.
