<?php $content = file_get_contents("data/temp.conf"); $content = str_replace("192.168.1.1","211.149.123.45",$content); $content = str_replace("domain.com","xiaoz.me",$content); echo $content; ?>