Results 1 to 3 of 3

Thread: Embedding PHP into document

  1. #1
    Join Date
    Apr 2003

    Embedding PHP into document

    This might be one of the easiest questions to answer for you, but I'm not that into PHP yet so bear with me.

    How do I use a specific PHP-document that I edit and that the HTML-document then reads from and puts the code into the page so that I dont do my editing in the HTML-document.

    Should I be more specific?

    Ask if you dont understand.


  2. #2
    Join Date
    Dec 2002
    High on life
    First of all, any page that uses PHP must have a .php or .php4 extention.

    To include pages, you uses this:

    PHP Code:
    <?PHP include("yourfile.php"); ?>
    Also, this will just include the exact text in that file into the current one, so in yourfile.php, you exclude elements such as <html>, <head>, etc...

    Personal website http://www.ryanbrill.com/
    Business website: http://www.infinitywebdesign.com/
    TypeSpace http://www.typespace.org/

    I reject your reality and substitute it with my own!

  3. #3
    Join Date
    Apr 2003
    thanks a bunch... i'll figure the rest out.

    i'll get back here if i dont know what to do =)

Thread Information

Users Browsing this Thread

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

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