? $html_document = "1.txt"; Door Onbekende gebruiker op 10-01-2006 14:17 1.500 views 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 Link gekopieerd
M Martijn B 11-01-2006 16:43 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 ''; } ?> Link gekopieerd