I have this code:
<?php
$ip = $_SERVER["REMOTE_ADDR"];
echo $ip;
echo "\n";
echo strftime('%c');
echo "\n";
echo date_default_timezone_get();
echo "\n";
?>
All three outputs should be on three separate lines, but they are all on same. What am I doing wrong?
Browser interprets the output as html by default. If you want “see” the real output add this at the begin of file.
or use a
<br />instead of simple new line