I am trying to:
Can someone please tell me how to do this....im sorry im very new to PHP.
Thank You......
Try this
$s = file_get_contents( 'file.html' ); $s = preg_replace( '/"cre"/','"cre2"',$s ); if( $fp = fopen( 'file.html','w' ) ) { fwrite( $fp , $s ); fclose( $fp ); } else echo 'Could not write to file ';
HalfaBee