OK, laat ik niet lui zijn.
Ik heb dus volgende script gevonden op het net bij
www.4cm.com
Ik heb al enkele aanpassingen gedaan om de juiste data uit de fokzine pagina te krijgen.
Maar hoe start ik dan het script en waar geef ik aan welke htm file ie moet aanmaken/wijzigen?
Mijn excuses voor de grote listing
<quote>
<?php
###############################################################
# Script Title: 4CM_Grabber
# File: 4CM_Grabber.php
# Description: This script will Grab information from a given web site
# Author: John B. Abela
# Email: support@4cm.com
# Web:
http://www.4cm.com/
# Version: 2.0.5
#
# Copyright © 1996-2000
www.4cm.com. All Rights Reserved.
#
#
#
www.4cm.com (4CM) offers no warranties on this script.
# The downloader of the script is solely responsible for any
# problems caused by the installation of the script or use
# of the script, including possible legal action for the grabbing
# of the data, as a result of this script!
#
# ALL COPYRIGHT NOTICES REGARDING:
www.4cm.com
# MUST REMAIN INTACT IN THE SCRIPT AND IN THE HTML OF THE SCRIPT!
#
# For more info on this script, see:
#
http://www.4cm.com/
#
# (Please be kind and sign our guestbook at:
#
http://www.4cm.com/guestbook/ and say your using
# this script!!)
###############################################################
########################
## Mandatory Setting ##
########################
echo '<table width="100%" cellpadding="0" cellspacing="0" border="0">';
echo '<TR><TD><font face="Verdana,helvetica" size="1"><B>AF News Today</B></font></TD></TR>';
$GrabURL = "http://www.fokzine.net/news.fok."; //- Complete URL of the page your grabbing from!
$GrabStart = '<DIV id=mainfp>'; //- HTML Code To Start Grab. Must Be A Unique Bit Of Code!
$GrabEnd = '<FORM action=http://www.fokzine.net/ method=get>'; //- HTML Code To End Grab. Must Be A Unique Bit Of Code!
#############################
## Do Not Edit Below Here ##
## Do Not Edit Below Here ##
#############################
$OpenFile = fopen("$GrabURL", "r"); //- DO NOT CHANGE
$RetrieveFile = fread($OpenFile, 200000); //- Reduce This To Save Memory
$GrabData = eregi("$GrabStart(.*)$GrabEnd", $RetrieveFile, $DataPrint);
$DataPrint[1] = str_replace("</dt><br /><br />", "<BR>", $DataPrint[1]);
$DataPrint[1] = str_replace("<dt>", "", $DataPrint[1]);
$DataPrint[1] = str_replace("</dt>", "", $DataPrint[1]);
$DataPrint[1] = str_replace("<DL>", "", $DataPrint[1]);
$DataPrint[1] = str_replace("</DL>", "", $DataPrint[1]);
$DataPrint[1] = str_replace("<dl>", "", $DataPrint[1]);
$DataPrint[1] = str_replace("</dl> </td>", "</td>", $DataPrint[1]);
$DataPrint[1] = str_replace("</dl> </td>", "</td>", $DataPrint[1]);
$DataPrint[1] = str_replace('cellpadding="4"', "", $DataPrint[1]);
$DataPrint[1] = str_replace('<font face="Arial,helvetica" size="2">', '<font face="Verdana,helvetica" size="1">', $DataPrint[1]);
//- $DataPrint[1] = str_replace("", "", $DataPrint[1]);
fclose($OpenFile); //- DO NOT CHANGE
echo $DataPrint[1]; //- DO NOT CHANGE
echo '</TR></TABLE>';
echo " <font face=Verdana size=1>Script Provided By: <a href=\"http://www.4cm.com/\" target=\"_blank\">www.4cm.com</a></font>"; //- DO NOT REMOVE
####################
## End of Script ##
####################
?>
</quote>