you have the right idea, only i want it to do both in the same file.

here is what i mean.

if i open the link

Code: 
http://www.site.com/example.php?type=increase
it would do

Code: 
<?php 
$load = file_get_contents("load.txt"); 
$load = $load + 1; 
$opentxt = fopen("load.txt", "w"); 
fwrite($opentxt, $load); 
fclose($opentxt); 

print $load; 

?>
and if i done

Code: 
http://www.site.com/example.php?type=decrease
it would do

Code: 
<?php 
$load = file_get_contents("load.txt"); 
$load = $load - 1; 
$opentxt = fopen("load.txt", "w"); 
fwrite($opentxt, $load); 
fclose($opentxt); 

print $load; 

?>
but i want to be able to tell the .php file whether or not to increase or decrease the number.

im going to bed now, but i think i know enough php i might be able to finish the rest, but if someone that's better in php gets to it before me it would be greatly appreciated.

i think the rest that is needed to do what i want to do is just simple IF statements.