File "lecture_fichier.php"

Full Path: /home/analogde/www/30_09_2024/lecture_fichier.php
File size: 744 bytes
MIME-type: text/html
Charset: utf-8

<!DOCTYPE html>
<html>
<body>

<?php

/*

Cuvier Charges soldes 2023 EXTRAIT 6018.pdf
gaz.pdf
op7y-12391-raw1200_0jpg_04-07-2024_21_33_36____rev_3___.jpg
proc patrice Saint Lary.pdf


*/

	$file="transfert.txt";
	$linecount = 0;
	$handle = fopen($file, "r");
	while(!feof($handle))
	{
		$line = fgets($handle);
		$linecount++;
	}

	fclose($handle);

	echo " ----->>>> " .$linecount;


echo file_get_contents("transfert.txt");

$string = file_get_contents("transfert.txt");


/*if (str_contains($string, "gaz.pdf")) 
{
    echo "The string  was found in the string\n";
}
*/

	if (strpos($string, "op7y-12391-raw1200_0jpg_04-07-2024_21_33_36____rev_3___.jpg" ) !== false)
	{
		echo "The string  was found in the string\n";
	}

?>

</body>
</html>