IntroToPHP
Hello, Word!It's nice to see youhello This contains double quotes:"\n
this will be written on
several
lines
Some predefined variables:
- HTTP_USER_AGENT: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
- /Workbench/IntroToPHP.php
- 38.107.179.218
Array
(
[PATH] => /bin:/usr/bin:/sbin:/usr/sbin
[RAILS_ENV] => production
[FCGI_ROLE] => RESPONDER
[UNIQUE_ID] => Ty96oUWju3AAAHDrbbwAAAAL
[SCRIPT_URL] => /Workbench/IntroToPHP.php
[SCRIPT_URI] => http://www.columbuswebmakers.com/Workbench/IntroToPHP.php
[dsid] => 2765948
[ds_id_2765948] =>
[DH_USER] => columbuswebmakers
[HTTP_X_CC_ID] => ccc02-01
[HTTP_IF_MODIFIED_SINCE] => Mon, 09 Aug 2010 09:56:12 GMT
[HTTP_HOST] => www.columbuswebmakers.com
[HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
[HTTP_ACCEPT] => text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
[HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
[HTTP_ACCEPT_ENCODING] => gzip
[HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
[HTTP_CONNECTION] => close
[HTTP_CACHE_CONTROL] => no-cache
[HTTP_PRAGMA] => no-cache
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache
[SERVER_NAME] => www.columbuswebmakers.com
[SERVER_ADDR] => 69.163.184.131
[SERVER_PORT] => 80
[REMOTE_ADDR] => 38.107.179.218
[DOCUMENT_ROOT] => /home/columbuswebmakers/columbuswebmakers.com
[SERVER_ADMIN] => webmaster@columbuswebmakers.com
[SCRIPT_FILENAME] => /home/columbuswebmakers/columbuswebmakers.com/Workbench/IntroToPHP.php
[REMOTE_PORT] => 60755
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /Workbench/IntroToPHP.php
[SCRIPT_NAME] => /Workbench/IntroToPHP.php
[PHP_SELF] => /Workbench/IntroToPHP.php
[REQUEST_TIME] => 1328511649
[argv] => Array
(
)
[argc] => 0
)
This server is running PHP v5.2.17 on Linux
About Strings
Hello, JoelHello, Joel Goldstick
Joel
About number_format and for looping
0.12
1.23
12.35
123.45
1,234.50
12,345.00
123,450.00
1,234,500.00
12,345,000.00
123,450,000.00
1,234,500,000.00
12,345,000,000.00
123,450,000,000.00
1,234,500,000,000.00
12,345,000,000,000.00