User:Laurence: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 26: Line 26:
[http://www.hlwarzone.com Half Life Warzone.com]<br/>
[http://www.hlwarzone.com Half Life Warzone.com]<br/>


==<?php echo 'Useful PHP Stuff'; ?>==
==<?php echo 'Random Stuff'; ?>==


(Note: I am excluding "<?php" "?>" tags)<br/><br/>
<br/><br/>


'''Date Commands:'''<br/><br/>
'''Date Commands:'''<br/><br/>
Line 57: Line 57:
'''Make text uppercase:'''<br/><br/>
'''Make text uppercase:'''<br/><br/>


<code>$example = 'EXAMPLE;<br/>
<code>$example = 'RICO;<br/>
$example = strtoupper($example);<br/>
$example = strtoupper($example);<br/>
echo $example;<br/></code>
echo $example;<br/></code>


<br/>
<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>

Revision as of 06:27, 17 June 2007

<?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 'Profiles around the web'; ?>

HL2World: Profile
Marks Servers (NS Community): Profile
Nuclear Dawn (HL2 Mod): Profile
Ricochet Source (HL2 Mod): <Site is offline>
Steampowered.com: Profile

<?php echo 'Domains I own'; ?>

Ricochet Source.com (My Mod)
Half Life Warzone.com

<?php echo 'Random Stuff'; ?>



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 = 'RICO;
$example = strtoupper($example);
echo $example;