1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
<?php
$obj = new COM("WScript.Shell");
$obj->Popup("Exemple alert 1",0,"le titre ",0);
// Exemple alert 2
function alerts($message)
{
echo "\r<script language=\"javascript\">\r alert('$message')\r</script>\r";
}
alerts('Exemple alert 2');
//Exemple plusieurs dizaines d'erreurs
$value='';
$j=1;
while ($j<40)
{
$value.="alert numero $j\r";
$j++;
}
$value=urlencode($value);
echo <<< alert
<script>
window.open("alert.php?data=$value",'popup','width=300,height=200,Left=0,Top=0').focus();
</script>
alert;
?> |