/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function file_intersperse_contents($szFilename, $szInject, $szFind) { // Check if file exist // If file exist // Get the content // Replace the text // Open the file // Write the text into it if($bWrite) { // If success, close file and return true return true; } // If failure, close file and return false return false; } else { } }