On Wednesday 11 June 2003 23:54, Matt Palermo wrote: > I have text a file which contains php code. I am using it as a template > for some other pages. I want to take everything in that file and store it > in a string or array and then output it all to an empty file (this will > make both files look exactly the same).
Any reason why you don't copy the file instead? > I am using the file_get_contents() > function to do this, but it seems to have trouble because it looks like it > is trying to execute the php code in the file I am trying to get. Anyone > know of a better way to go about this? Thanks. file_get_contents() does NOT try to execute anything in the file. If you think otherwise, show us your code. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Humor in the Court: Q: Are you qualified to give a urine sample? A: Yes, I have been since early childhood. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php