Find the answer to your Linux question:
Results 1 to 4 of 4
I need to figure out the translation of a asp tag to a php one, if possible. I want to enclose another web site page into one of my tables. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    flw
    flw is offline
    Linux Engineer
    Join Date
    Mar 2003
    Location
    U.S.A.
    Posts
    1,025

    asp to php conversion


    I need to figure out the translation of a asp tag to a php one, if possible.

    I want to enclose another web site page into one of my tables.

    I could use

    What is the PHP way of doing this?

    or could I use a frameset within a table like:

    <frameset>
    <frame src="http://www.domain.com/stuff.html">
    </frameset>
    Dan

    \"Keep your friends close and your enemies even closer\" from The Art of War by Sun Tzu\"

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    with php to include a file:

    Code:
    <? require&#40;"filename.php"&#41;; ?>

  3. #3
    flw
    flw is offline
    Linux Engineer
    Join Date
    Mar 2003
    Location
    U.S.A.
    Posts
    1,025
    <? require("filename.php"); ?>
    so to include a file like a pdf it would just be:

    <? require(filename.pdf"); ?>
    If the file is on another site would it be:

    <? require(http://www.domain.com/filename.pdf"); ?>
    This linking a article from another site within my sites table is what I'm trying to do.
    Dan

    \"Keep your friends close and your enemies even closer\" from The Art of War by Sun Tzu\"

  4. #4
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    Quote Originally Posted by flw
    This linking a article from another site within my sites table is what I'm trying to do.
    AFAIK it cannot be done like that. Require() is for local file only.

    Make a hyperlink "Download Here!" and get the user to get it that way.

    Jason

Posting Permissions

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