dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: [RESOLVED] Include HTML Only

  1. #1
    Join Date
    Jul 2012
    Posts
    32

    resolved [RESOLVED] Include HTML Only

    I Need A Include Statement That Will Include The HTML File Without letting the HTML File Run PHP, Thank You.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,633
    readfile(), although the output would then include any PHP source code within that file -- not sure if that's what you want?
    Last edited by NogDog; 07-11-2012 at 10:55 AM.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Oct 2007
    Posts
    371
    You could use readfile() as nogdog suggested, then use either DOM or string functions to remove any php blocks.

  4. #4
    Join Date
    Jul 2012
    Posts
    32
    Thank You!! It Will Hide <? and <?php but nothing else Thank You Lots

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles