hani Posted October 29, 2008 Share Posted October 29, 2008 hi, i have somthing in mind but i dnt know if it can be done, if im making somthing like templates and i want the user to download these templates but after he changes some values through my website, how it is possible to make him download it with the changes he made?? thanks Link to comment https://forums.phpfreaks.com/topic/130558-php-coding-help/ Share on other sites More sharing options...
bobbinsbro Posted October 29, 2008 Share Posted October 29, 2008 what kind of template is the user downloading? .php file? HTML? MS word template ? Link to comment https://forums.phpfreaks.com/topic/130558-php-coding-help/#findComment-677329 Share on other sites More sharing options...
hani Posted October 29, 2008 Author Share Posted October 29, 2008 no it is .php or .html mostly Link to comment https://forums.phpfreaks.com/topic/130558-php-coding-help/#findComment-677331 Share on other sites More sharing options...
bobbinsbro Posted October 29, 2008 Share Posted October 29, 2008 i think what i would do it to put made-up html tags where ever i want to edit the template (e.g. <textToChange></textToChange> - browsers ignore any tags they doesn't recognize so this shouldn't be a problem) and then use regular expressions to fin the location of these tags, and replace them with the desired content. you can do this in the php by maybe using pairs of ?><?php in the middle of the code. it would do nothing to the flow of the php, but it would allow you to find the location with regular expression functions. Link to comment https://forums.phpfreaks.com/topic/130558-php-coding-help/#findComment-677341 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.