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); ?> Link to comment https://forums.phpfreaks.com/topic/42719-word-file-edit/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.