- Nov 28, 2000
- 2,224
- 0
- 0
I want the script to search through a file, and find the part that is typed out, and then replace it with another input.
Is this how i would go about doing it?
Anyways thanks in advance.
<?
$myFile = fopen("c:\www\dittohost\\test.txt", "a");
$fcontents = file($myFile);
str_replace($oldpassword,$newpassword,$i_dont_know_what_to_put_here);
fclose($myFile);
?>
Is this how i would go about doing it?
Anyways thanks in advance.
<?
$myFile = fopen("c:\www\dittohost\\test.txt", "a");
$fcontents = file($myFile);
str_replace($oldpassword,$newpassword,$i_dont_know_what_to_put_here);
fclose($myFile);
?>