Include(remote HTML file) doesn't work since upgrade

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default Include(remote HTML file) doesn't work since upgrade

    When the server upgraded to php 4.3.1 from 4.2.x, I
    was no longer able to include remote html files.
    allow_url_fopen is still enabled and no other settings
    have changed. Running Apache 1.3.27 on Linux.


    This is one line that I use to call the remote html
    file. It also has not changed since the upgrade:

    <?include("http://143.43.222.103/sga");?>

    This line worked before, but no longer does. I have
    tried adding a trailing slash, using single quotes, no
    quotes, etc. Nothing apparently works. Please help!

    __________________________________
    Do you Yahoo!?
    Yahoo! SiteBuilder - Free, easy-to-use web site design software
    [url]http://sitebuilder.yahoo.com[/url]
    Police Trainee Guest

  2. Similar Questions and Discussions

    1. Strange Include problems: Repeat regions will Not workwith include file
      I have a strange problem. I have an Index.asp page and on that page I have a poll that is displays. This poll is located in a sub folder, so to call...
    2. proper way to include constants; as module or include file?
      I am developing a new perl module that uses constants with regular expressions. What is the proper way to offer this file? For example, my perl...
    3. HTML + <input type=file> constraint doesnt work
      Hi I'm trying to input image file using this synax. <input type=file name="tx_file" accept="image/*" class=boxText> But when open file dialouge...
    4. cant get #include to work in .asp file.
      I'm new to html and web coding, this is a simple one - appreciate your help! I'm attempting to get my browser bar links to reside in a single...
    5. INSERTing HTML-File won't work
      Hi there, How do I write an HTML-File to the SQL-Server. (I want to place e-mail in a Table) I created a column HTMLbody with text as DataType....
  3. #2

    Default Re: [PHP] Include(remote HTML file) doesn't work since upgrade

    * Thus wrote Police Trainee (policetrainee@yahoo.com):
    > When the server upgraded to php 4.3.1 from 4.2.x, I
    > was no longer able to include remote html files.
    > allow_url_fopen is still enabled and no other settings
    > have changed. Running Apache 1.3.27 on Linux.
    >
    >
    > This is one line that I use to call the remote html
    > file. It also has not changed since the upgrade:
    >
    > <?include("http://143.43.222.103/sga");?>
    >
    > This line worked before, but no longer does. I have
    > tried adding a trailing slash, using single quotes, no
    > quotes, etc. Nothing apparently works. Please help!
    Was --disable-url-fopen-wrapper compiled in php?

    You can check your phpinfo() output in that.

    Curt
    --
    "I used to think I was indecisive, but now I'm not so sure."
    Curt Zirzow Guest

  4. #3

    Default Re: [PHP] Include(remote HTML file) doesn't work since upgrade

    my phpinfo output does not have that particular init
    value "disable-url-fopen-wrapper". "allow_url_fopen"
    is enabled, safemode is off, and include_path is set
    to .:/usr/local/lib/php. further ideas?

    --- Curt Zirzow <curt@zirzow.dyndns.org> wrote:
    > * Thus wrote Police Trainee
    > (policetrainee@yahoo.com):
    > > When the server upgraded to php 4.3.1 from 4.2.x,
    > I
    > > was no longer able to include remote html files.
    > > allow_url_fopen is still enabled and no other
    > settings
    > > have changed. Running Apache 1.3.27 on Linux.
    > >
    > >
    > > This is one line that I use to call the remote
    > html
    > > file. It also has not changed since the upgrade:
    > >
    > > <?include("http://143.43.222.103/sga");?>
    > >
    > > This line worked before, but no longer does. I
    > have
    > > tried adding a trailing slash, using single
    > quotes, no
    > > quotes, etc. Nothing apparently works. Please
    > help!
    >
    > Was --disable-url-fopen-wrapper compiled in php?
    >
    > You can check your phpinfo() output in that.
    >
    > Curt
    > --
    > "I used to think I was indecisive, but now I'm not
    > so sure."
    >
    > --
    > PHP General Mailing List ([url]http://www.php.net/[/url])
    > To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
    >

    __________________________________
    Do you Yahoo!?
    Yahoo! SiteBuilder - Free, easy-to-use web site design software
    [url]http://sitebuilder.yahoo.com[/url]
    Police Trainee Guest

  5. #4

    Default Re: [PHP] Include(remote HTML file) doesn't work since upgrade

    <20030725065308.91009.qmail@web11704.mail.yahoo.co m>
    Police Trainee:
    > my phpinfo output does not have that particular init
    > value "disable-url-fopen-wrapper". "allow_url_fopen"
    > is enabled, safemode is off, and include_path is set
    > to .:/usr/local/lib/php. further ideas?
    What happens when you try to include it? Is there an error?


    Comex Guest

  6. #5

    Default Re: [PHP] Include(remote HTML file) doesn't work since upgrade

    Warning: main([url]http://143.43.222.103/sga[/url])
    [function.main]: failed to create stream: Invalid
    argument in
    /hsphere/local/home/domain/mydomain.com/includesite.php
    on line 2

    Warning: main() [function.main]: Failed opening
    'http://143.43.222.103/sga' for inclusion
    (include_path='.:/usr/local/lib/php') in
    /hsphere/local/home/domain/mydomain.com/includesite.php
    on
    line 2

    > What happens when you try to include it? Is there
    > an error?
    >
    >
    >
    > --
    > PHP General Mailing List ([url]http://www.php.net/[/url])
    > To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
    >

    __________________________________
    Do you Yahoo!?
    Yahoo! SiteBuilder - Free, easy-to-use web site design software
    [url]http://sitebuilder.yahoo.com[/url]
    Police Trainee Guest

  7. #6

    Default Re: [PHP] Include(remote HTML file) doesn't work since upgrade

    "Police Trainee" <policetrainee@yahoo.com> wrote in message
    news:20030725143730.49499.qmail@web11702.mail.yaho o.com...
    > Warning: main([url]http://143.43.222.103/sga[/url])
    > [function.main]: failed to create stream: Invalid
    > argument in
    > /hsphere/local/home/domain/mydomain.com/includesite.php
    > on line 2
    >
    > Warning: main() [function.main]: Failed opening
    > 'http://143.43.222.103/sga' for inclusion
    > (include_path='.:/usr/local/lib/php') in
    > /hsphere/local/home/domain/mydomain.com/includesite.php
    > on
    > line 2
    >

    Ok - this is kinda weird, but I got it to work on my machine after getting
    the same error.
    I tried including a page off a different server and it worked just fine. So
    I started messing around and got the following to work for the page you're
    trying to include:

    include('http://wiu.edu/SGA/');

    Of course, the graphics don't show...
    Don't ask me why that works instead, but it does for me. Give it a shot.

    -- Rob





    >
    > > What happens when you try to include it? Is there
    > > an error?
    > >
    > >
    > >
    > > --
    > > PHP General Mailing List ([url]http://www.php.net/[/url])
    > > To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
    > >
    >
    >
    > __________________________________
    > Do you Yahoo!?
    > Yahoo! SiteBuilder - Free, easy-to-use web site design software
    > [url]http://sitebuilder.yahoo.com[/url]

    Rob Adams Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139