Forum: PHP Mar 28th, 2008 |
| Replies: 8 Views: 974 Perhaps something like this?
<?php
function myfunction($buffer) {
return str_replace('hello', 'goodbye', $buffer);
}
$mystuff = ob_start("myfunction");
?>
I am here to say hello |
Forum: PHP Mar 28th, 2008 |
| Replies: 1 Views: 1,243 Its possible. It requires a GEO-IP database. There are a number of free and commercial ones available.
Matti Ressler
Suomedia |
Forum: PHP Mar 21st, 2008 |
| Replies: 9 Views: 960 Try this (assuming that $set_rank is the user's rank):
$rank_check = 5; // the page rank
$let_them_pass = false;
if($set_rank > $rank_check) {
$let_them_pass = true;
}
if($let_them_pass... |