#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2000
    Posts
    7
    Rep Power
    0
    Dear everyone,

    I write a HTML frame to include some php3 files. And this frame allow user to resize it, but the problem is when the first line of any included php3 file is <? ?>, well, it is just comments inside the <? ?>. It cause my Netscape browser illegal operation when i resize the Netscape window, but it works fine when i change the <? ?> to <?php ?> or put <html> as a first line.

    Can someone explain to me?

    Thank you

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

    Join Date
    May 2000
    Posts
    33
    Rep Power
    14
    The Netscape browser should not encounter these tags at all, because PHP will process these tags and return HTML. How do you include PHP files in HTML? I think it's impossible (I mean, for Netscape to ever see these tags)...
    Please clarify!
  4. #3
  5. .Net Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    London
    Posts
    987
    Rep Power
    15

    <<
    but it works fine when i change the <? ?> to <?php ?> or put <html> as a first line.
    >>


    It seems that header information is not passed properly to the browser.


    <<How do you include PHP files in HTML? I think it's impossible (I mean, for Netscape to ever see these tags)...
    >>

    that is not possible any way.i think he is talking about .php3 file.



    ------------------
    SR -
    shiju.dreamcenter.net

    "The fear of the LORD is the beginning of knowledge..."

    [This message has been edited by Shiju Rajan (edited May 23, 2000).]
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 1999
    Location
    Netherlands
    Posts
    77
    Rep Power
    15
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by nnh97:
    ...it works fine when i change the <? ?> to <?php ?> or put <html> as a first line.[/quote]

    It seems to me that PHP is not set to use short tags (i.e. <? ?> ) on your server. Then you must use <?php ?>.
    Put the following command into a file named for example 'phpinfo.php3':
    <?php
    phpinfo();
    ?>
    When you open that file in your browser you will see all the settings (of PHP, Apache, MySQL) of your server.

    Regards, Peter

IMN logo majestic logo threadwatch logo seochat tools logo