#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    MO, US
    Posts
    119
    Rep Power
    15
    i have a php called bottom.php3 and i want it to load on any html page like this -

    <html page>
    <info>
    --bottom.php3--
    </html page>

    What is the code to load the bottom.php3 wherever i want it to be? Please help!!

    Thanks -KeN
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Niteroi, RJ, Brazil
    Posts
    30
    Rep Power
    15
    try include or require

    take a look at the PHP 101 here, at DevShed.

    It's very nice and it comments these functions very well.

    ------------------
    Eduardo Teixeira Cardoso
    PHP Programmer from Brazil
    idnotfound@vircio.com.br
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    London/UK
    Posts
    91
    Rep Power
    15
    Will that work for a .html master page?
    Unless of course the server is set up to pass .html thru the php interpreter

    AFAIK that'll just spew raw php <? include("blah"); ?> to the screen

    Bealers

    ------------------
    http://back-end.org
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Niteroi, RJ, Brazil
    Posts
    30
    Rep Power
    15
    I do use HTML files with PHP tags.

    Since it outputs in the .PHP and interprets, it works...

    ------------------
    Eduardo Teixeira Cardoso
    PHP Programmer from Brazil
    idnotfound@vircio.com.br

Similar Threads

  1. How to create HTML email with PHP?
    By bubbapuck in forum PHP Development
    Replies: 4
    Last Post: March 8th, 2004, 07:48 PM
  2. PHP script - back 2 html
    By JamieH in forum PHP Development
    Replies: 10
    Last Post: February 3rd, 2004, 09:59 AM
  3. Can php be used in html files
    By emzyme in forum PHP Development
    Replies: 3
    Last Post: January 29th, 2004, 02:50 PM
  4. all-in-one php script displaying html
    By emzyme in forum PHP Development
    Replies: 5
    Last Post: January 27th, 2004, 08:07 AM
  5. php n00b. Put a php file into an html template?
    By WorldBuilder in forum PHP Development
    Replies: 3
    Last Post: January 25th, 2004, 09:48 PM

IMN logo majestic logo threadwatch logo seochat tools logo