phpcode Posted December 12, 2008 Share Posted December 12, 2008 Hi is it possible to write to a certain part of a file? I want to make a script that would add text between <form> and </form> is it possible? Link to comment https://forums.phpfreaks.com/topic/136627-write-to-certain-part-of-a-file/ Share on other sites More sharing options...
ted_chou12 Posted December 12, 2008 Share Posted December 12, 2008 I believe you can, try preg_replace(); u can use regex syntax to capture some kind of variation between <form>*.?</form> but im not an expert in that, u have to ask someone how that regex works. Ted Link to comment https://forums.phpfreaks.com/topic/136627-write-to-certain-part-of-a-file/#findComment-713371 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.