User:Laurence
<?php echo 'Hello World'; ?>
Name: Laurence Herbert
Nickname: {james}
Email: james3785@gmail.com
Experienced in: HTML,PHP,CSS,Javascript.
Learning: Perl,PASCAL,C .
System: AMD 64 3500+, 1.5GB RAM (DDR), 6600GT 128MB, 300GB HD.
Operating System: Windows Vista Build 6000
Games I own: Counter-Strike, Counter-Strike: Source, Condition Zero, Day of Defeat, Day of Defeat: Source, Deathmatch Classic, Garry's Mod (10), Half Life, Half Life: Source, Half Life: Blueshift, Half Life 2, Half Life 2: Deathmatch, Half Life 2: Episode 1, Half Life 2: Lost Coast, Half Life Deathmatch: Source, Opposing Force, Ricochet, Team Fortress Classic.
Steam ID: STEAM_0:0:3211787
Favorite Games: Ricochet, Deathmatch Classic, Team Fortress Classic, Half Life. (I love the old school games).
Favorite Films: Terminator 1/2 (Hated 3), Matrix 1, Children of men, Borat (Never laughted so hard in a cinema...ever).
Current Projects: Ricochet Source
<?php echo 'Useful PHP Stuff'; ?>
(Note: I am excluding "<?php" "?>" tags)
Date Commands:
$today = date("F j, Y, g:i a");
$today = date("m.d.y");
$today = date("j, n, Y");
$today = date("Ymd");
$today = date('h-i-s');
$today = date("H:i:s");
Print IP Address:
$ip = $_SERVER["REMOTE_ADDR"];
echo $ip;
Browser Info:
$browsinfo = $_SERVER["HTTP_USER_AGENT"];
echo $browsinfo;
Make text uppercase:
$example = 'EXAMPLE;
$example = strtoupper($example);
echo $example;
The output would then be: EXAMPLE. You can also use the "strtolower" function to make text lowercase.
<?php echo 'Random stuff'; ?>
Just keeping this here for future reference.
<?
$total_ratings = (3+2+3+1+5+2+3);
$total_votes = 7;
$average = $total_ratings / $total_votes;
print("The Average Rating Is: $average");
?>