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!
Hey guys. I am having trouble "replacing" a string in a php/text file. I've created an Update script that is supposed to update a previous php configuration script with my new one. The problem i am having is i cannot replace the ?> with a "" so i can append to the file, then later closing it with the ?> tag.
I know it's probably really easy to do, i just can't get my head over it.
You don't have to remove the trailing ?>. As long as there isn't text (a single carriage return is fine) between the close and open tags, PHP won't really skip a beat.
You don't have to remove the trailing ?>. As long as there isn't text (a single carriage return is fine) between the close and open tags, PHP won't really skip a beat.