Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    58

    Unanswered: the tag <img src= ""> in incfile

    Hi,

    I want know if it is possible to include

    the tag <img src= "photo.jpeg"> in a include file in PHP

    I have tried the following but I dont get my picture on the page:

    header.inc

    <TR>
    <TD align=middle><img src= "photo.jpeg"></TD>
    <TD align=middle> &nbsp</TD>
    <TD colspan=2 align="middle"><FONT face=Verdana
    color=purple><STRONG><B>RECOGUI</B></STRONG></FONT></TD>
    </TR>

    index.php

    <?php
    ........
    include("header.inc")

    .......
    ?>



    thank you in advance for any idea.

  2. #2
    Join Date
    Feb 2002
    Location
    San Francisco, CA
    Posts
    441
    Change it to

    PHP Code:
    ........
    require(
    "header.inc")
    ....... 
    NB: Changing from include to require will change the type of error generated from a warning (which you may not see) to an actual error message (i.e. the program should crash if it can't include the "header.inc" file)...

    If it crashes, it should say why (likely to be can't find the file), you can then correct the path.

    If this doesn't help, post some more details + some more code please.

Posting Permissions

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