GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/JimMartinson/CST1146/Resources/Examples/Week/04/ |
Upload File : |
<!DOCTYPE html> <html lang="en"> <head> <title>Week 3 - 7.php</title> <meta charset="utf-8"> <body> <h1>Week 3 - 7.php</h1> Looking at scopre<br> <?php $txt1 = "Learn PHP"; $txt2 = "W3Schools.com"; $x = 5; $y = 4; $z = $x + $y; echo "<h2>", $txt1, "</h2>"; echo "Study PHP at " . $txt2 . "<br>"; echo $z; ?><br><?php print "<h2>" . $txt1 . "</h2>"; print "Study PHP at " . $txt2 . "<br>"; print $z; ?><br><?php ?> <br> These lines output the same thing <br> This is HTML and $x=<? echo $x; ?> (using echo). <br> This is HTML and $x=<? print $x; ?> (using print). <br> This is HTML and $x=<?=$x?> (using the shorthand code). <pre style="background-color:#afa;"><? var_dump($GLOBALS);?></pre> </body> </html>