ik heb dit in mn php
$html_document = "1.txt";
tussen de "" stond eerst een html text
hoe kan ik er voor zorgen dat ik tussen die "" de data uit het bestand 1.txt laad?

alvast bedankt
yoram
Ja

<?php
function stormy_file_read( $_sPath )
{
if( file_exists($_sPath) && is_readable($_sPath) )
{
$sContent = '';

if( function_exists('file_get_contents') )
{
return file_get_contents($_sPath);
}
elseif( $h = @fopen($_sPath, 'rb') )
{
$sContent = fread($h, filesize($_sPath));
fclose($h);
}

return $sContent;
}

trigger_error("<strong>Stormy</strong>: Can't read file \"$_sPath\"");
return '';
}

?>
bedankt iedereen het is gelukt!

Gr,
yoram

Reageren