logo SnippetVamp

php 111astuce 107fonctions 90css 74javascript 70html 54fichiers 32jquery 27texte 19securite 18bootstrap 14graphisme 14parser 13debug 11python 11responsive 9pluXML 7crossbrowser 5evenements 5vanilla 5ajax 4conversion 3form 3auto_ 2bash 2dothtaccess 2lib 2markdown 2mobile 2promise 2effets 1erreurs 1fallback 1filter 1mail 1social 1
SnippetVamp 3.1d - 2026 - GNU GPL - FAQ
1 - Récupérer le code source d'une page en numérotant les lignes
// display source code
$lines = file('http://google.com/');
foreach ($lines as $line_num => $line) { 
	// loop thru each line and prepend line numbers
	echo "Line #<b>{$line_num}</b> : " . htmlspecialchars($line) . "<br>n";
}
			
php texte debug
http://perishablepress.com/code-snippets/#code-snippets_php
public - 16/04/2013 - Add to pack - texte seul - permalink