Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Internet & the Web (https://www.askmehelpdesk.com/forumdisplay.php?f=177)
-   -   Php remote include (https://www.askmehelpdesk.com/showthread.php?t=17525)

  • Jan 10, 2006, 02:35 PM
    manutd4eva
    Php remote include
    Hi why won't this code work have I done something wrong? Thanks

    Code:

    <html>
    <head>
    <title>test</title>
    </head>


    <body>
    <?php include("http://www.sportinglife.com/football/popup/live_tables.auto?/opt/ASFapache/htdocs/site/football/live/tables/premiership.insdat"); ?>
    </body>

    </html>

  • Jan 11, 2006, 04:18 AM
    LTheobald
    The code looks OK to me but there could be a number of things stopping this.

    First read the paragraph starting "If "URL_fopen_wrappers" are enabled in PHP..." (under example 16-6) on the PHP Manual for the include function.

    Secondly, importing a page like this is going to mess up your HTML. For example it may read:

    Code:

    <html>
    <head>
    <title>test</title>
    </head>


    <body>
    <html>
    <head>
    <title>Sporting Life - Football: Live</title>
    <link rel=stylesheet type="text/css" href="http://www.sportinglife.com/styles/main_styles.css">
    <META HTTP-EQUIV="Expires" CONTENT="0">
    <META HTTP-EQUIV="Refresh" CONTENT="90">
    </title>
    </head>
    <body bgcolor="#f1f0fe"
    >

    Chances are this will mess up the look or the page you are trying to include it on.

    Next - just including like this is BAD. I think you may be breaking copyright. This will also push up the bandwidth usage of the site you are importing (bad).



    I'll keep looking for the correct answer though.
  • Jan 11, 2006, 03:17 PM
    manutd4eva
    I seen a link before on the site with "link too us". Its not there now -dosnt work anyway. I will email the people when I get time

  • All times are GMT -7. The time now is 02:05 AM.