dizyn Posted March 14, 2007 Share Posted March 14, 2007 I am trying this code to edit word file, it works fine if the both strings are same lenght but not if both are of different length. any help <?PHP $tmp= file_get_contents("work.doc"); $tmp = str_replace ("sys" , "asd",$tmp); $tmp= file_put_contents("work2.doc" , $tmp); ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.