User talk:Laurence: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
==<?php echo 'Hello World'; ?>==
'''Name''': Laurence Herbert<br/>
'''Nickname''': {james}<br/>
'''Email''': james3785@gmail.com<br/>
'''Experienced in''': HTML,PHP,CSS,Javascript.<br/>
'''Learning''': Perl,PASCAL,C .<br/>
'''System''': AMD 64 3500+, 1.5GB RAM (DDR), 6600GT 128MB, 300GB HD.<br/>
'''Operating System''': Windows Vista Build 6000<br/>
'''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.<br/>
'''Steam ID''': STEAM_0:0:3211787<br/>
'''Favorite Games''': Ricochet, Deathmatch Classic, Team Fortress Classic, Half Life. (I love the old school games).<br/>
'''Favorite Films''': Terminator 1/2 (Hated 3), Matrix 1, Children of men, Borat (Never laughted so hard in a cinema...ever).<br/>
'''Current Projects''': Ricochet Source<br/>


==<?php echo 'Useful PHP Stuff'; ?>==
(Note: I am excluding "<?php" "?>" tags)<br/><br/>
'''Date Commands:'''<br/><br/>
<code>$today = date("F j, Y, g:i a");<br/>
$today = date("m.d.y");<br/>
$today = date("j, n, Y");<br/>
$today = date("Ymd");<br/>
$today = date('h-i-s');<br/>
$today = date("H:i:s");</code>
<br/>
'''Print IP Address:'''<br/><br/>
<code>$ip = $_SERVER["REMOTE_ADDR"];<br/>
echo $ip;</code>
<br/>
'''Browser Info:'''<br/><br/>
<code>$browsinfo = $_SERVER["HTTP_USER_AGENT"];<br/>
echo $browsinfo;</code>
<br/>
'''Make text uppercase:'''<br/><br/>
<code>$example = 'EXAMPLE;<br/>
$example = strtoupper($example);<br/>
echo $example;<br/></code>
<br/>
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.
<code>
<?
$total_ratings = (3+2+3+1+5+2+3);<br/>
$total_votes = 7;<br/>
$average = $total_ratings / $total_votes;<br/>
print("The Average Rating Is: $average");<br/>
?>
</code>

Latest revision as of 09:06, 3 December 2006