Click to See Complete Forum and Search --> : file controls and include


Charles
01-13-2006, 07:46 AM
I've gotten myself lost in the PHP manual. How do I include a file without that included file getting run through the PHP interpreter?

LiLcRaZyFuZzY
01-13-2006, 08:03 AM
what do you want to do?
to print the actual php code on the page?

bokeh
01-13-2006, 09:30 AM
Charles, you do it how I posted in the other thread http://webdeveloper.com/forum/showthread.php?t=89132 See post #25. The file in that post is the file that will send the headers and then include the xml file without parsing it. Just save that with a .php extension and it will send your xml file as is.

Charles
01-13-2006, 09:51 AM
Charles, you do it how I posted in the other thread http://webdeveloper.com/forum/showthread.php?t=89132 See post #25. The file in that post is the file that will send the headers and then include the xml file without parsing it. Just save that with a .php extension and it will send your xml file as is.Somehow my eye glossed over that last line. Thanks, that's exactly what I need and I aplogize not being more careful.