Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type"
- content="text/html; charset=ISO-8859-1" />
- <link rel="stylesheet" href="/~musman1/stylesheets/makeup.css" type="text/css" media="screen" />
- <title>Lab 1 (lab1.php)</title>
- </head>
- <body>
- <h1>Lab 1 (lab1.php)</h1>
- <div id="nightTime">
- Class name = CS130a, Intro to Programming <br />Student name = Muhammad Usman <br />Assignment = Lab 1 (lab1.php) <br />Date completed: Thu, 02 Sep 10 10:51:33 -0700
- <br />Hello, I see that you are using Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4.
- <h2>Server Info</h2>
- <pre>
- Arrayarray(33) {
- ["TZ"]=>
- string(7) "PST8PDT"
- ["DOCUMENT_ROOT"]=>
- string(14) "/inet/www/docs"
- ["HTTP_ACCEPT"]=>
- string(90) "application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
- ["HTTP_ACCEPT_CHARSET"]=>
- string(30) "ISO-8859-1,utf-8;q=0.7,*;q=0.3"
- ["HTTP_ACCEPT_ENCODING"]=>
- string(17) "gzip,deflate,sdch"
- ["HTTP_ACCEPT_LANGUAGE"]=>
- string(14) "en-US,en;q=0.8"
- ["HTTP_CONNECTION"]=>
- string(10) "keep-alive"
- ["HTTP_COOKIE"]=>
- string(157) "__utmz=58189624.1282294237.13.4.utmcsr=search|utmccn=(organic)|utmcmd=organic|utmctr=printing; __utma=58189624.1554562769.1280729022.1283151746.1283283534.20"
- ["HTTP_HOST"]=>
- string(14) "hills.ccsf.edu"
- ["HTTP_REFERER"]=>
- string(52) "http://hills.ccsf.edu/~musman1/cs130a/labs/index.php"
- ["HTTP_USER_AGENT"]=>
- string(126) "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4"
- ["PATH"]=>
- string(24) "/usr/sbin:/usr/bin:/sbin"
- ["REMOTE_ADDR"]=>
- string(13) "67.180.61.230"
- ["REMOTE_PORT"]=>
- string(5) "49648"
- ["SCRIPT_FILENAME"]=>
- string(54) "/students/musman1/public_html/php/cs130a/labs/lab1.php"
- ["SCRIPT_URI"]=>
- string(56) "http://hills.ccsf.cc.ca.us/~musman1/cs130a/labs/lab1.php"
- ["SCRIPT_URL"]=>
- string(30) "/~musman1/cs130a/labs/lab1.php"
- ["SERVER_ADDR"]=>
- string(11) "147.144.1.2"
- ["SERVER_ADMIN"]=>
- string(21) "sbarger@ccsf.cc.ca.us"
- ["SERVER_NAME"]=>
- string(19) "hills.ccsf.cc.ca.us"
- ["SERVER_PORT"]=>
- string(2) "80"
- ["SERVER_SIGNATURE"]=>
- string(71) "<ADDRESS>Apache/1.3.41 Server at hills.ccsf.cc.ca.us Port 80</ADDRESS>
- "
- ["SERVER_SOFTWARE"]=>
- string(20) "Apache/1.3.41 (Unix)"
- ["GATEWAY_INTERFACE"]=>
- string(7) "CGI/1.1"
- ["SERVER_PROTOCOL"]=>
- string(8) "HTTP/1.1"
- ["REQUEST_METHOD"]=>
- string(3) "GET"
- ["QUERY_STRING"]=>
- string(0) ""
- ["REQUEST_URI"]=>
- string(30) "/~musman1/cs130a/labs/lab1.php"
- ["SCRIPT_NAME"]=>
- string(45) "/cgi-bin/phpwrap/musman1/cs130a/labs/lab1.php"
- ["PATH_INFO"]=>
- string(0) ""
- ["PATH_TRANSLATED"]=>
- string(43) "/inet/www/docs/musman1/cs130a/labs/lab1.php"
- ["PHP_SELF"]=>
- string(45) "/cgi-bin/phpwrap/musman1/cs130a/labs/lab1.php"
- ["REQUEST_TIME"]=>
- int(1283449893)
- }
- </pre>
- </div>
- <h2>Strings</h2>
- <h3>Double-quoted</h3>
- <pre>
- All PHP variables begin with a "$" character.
- <br />We're learning about proper quoting using double quotes (") and single quotes (').
- <br />We can print variables inside of double-quoted strings. For example: DEMO.</pre>
- <h3>Single-quoted</h3>
- <pre>
- All PHP variables begin with a "$" character.
- <br />We're learning about proper quoting using double quotes (") and single quotes (').
- <br />We can print variables inside of doublt-quoted strings. For example: $demo.</pre>
- <p>
- <a href="index.php">Go back to Index</a>
- </p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement