PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i used file() because i couldnt get fread to print right and i used the array created by file() to print out only certain lines of the file using for and each.
maybe you should read the file with fread, do the replace and explode it to an array.
maybe some other hints:
- preg_replace_callback
- if you're replacing constants strings (using PCRE only because of the limit-option) you can do this by strpos, substr and .
- others know a good trick