OM2 Posted July 17, 2013 Share Posted July 17, 2013 I will have a PHP file Within that PHP file I'll have something like this: <!-- #### Start of my code --> <!-- #### End of my code --> I want to write code that replaces everything between those 2 delimeters in the file I'm just not sure where to start with the pattern matching - seems so complex to me right now I'd like to make water tight as possible - I want to have several of these in the same file Any code to help me start would be great Thanks OM Quote Link to comment Share on other sites More sharing options...
Muddy_Funster Posted July 17, 2013 Share Posted July 17, 2013 lookup the following on the manual website : file_get_contents(), substrpos() and substr_replace() - they should get you going along the right lines. Quote Link to comment Share on other sites More sharing options...
OM2 Posted July 30, 2013 Author Share Posted July 30, 2013 @Muddy_Funster, thanks for the reply. i didn't realise i had a reply - didn't get email notification i'll give that a go and will post back 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.