Announcement

Collapse
No announcement yet.

phpinclude 403 problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • phpinclude 403 problem

    Hello Everyone,

    I started having a problem today.

    I dont know if it is related, so I'll state it, you let me know if it makes sence to think it relates and hopefully what to do about it.

    Today, I had a single IP looking at my site, in 75 instances, and my site started acting wierd, getting errors like this

    Warning: Unknown(http://www.tech-unity.com/banner/banner.php): failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden in /home/techun/public_html/forums/global.php(432) : eval()'d code on line 66

    Fatal error: (null)(): Failed opening required 'http://www.tech-unity.com/banner/banner.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/techun/public_html/forums/global.php(432) : eval()'d code on line 66
    A little research told showed me, that if I remove the call from my
    phpinclude_start template, the errors go away.

    As you can see from the highlighted part, going to this link
    http://www.tech-unity.com/banner/banner.php, the banners work fine

    the code I use it

    ob_start();
    require("http://www.tech-unity.com/banner/banner.php");
    $banner = ob_get_contents();
    ob_end_clean();

    I have 3 instances of this, that do different things, and for some reason, all of them blow up the forums with the same type of error, except the file being called.

    the three files being called are
    http://www.tech-unity.com/banner/banner.php
    http://www.tech-unity.com/books.php
    and
    http://www.tech-unity.com/ssnews.php

    As you can see the banners page works, but the others do not

    the books page errors out, the ssnews page shows nothing now, and the banner.php file tells me nothing is wrong.

    But non of them work from within the phpinclude_start template

    Any ideas asto what the problem might be?

    the 403 error makes no sence, so Please?!?!
    Last edited by tomshawk; Sat 20 Nov '04, 5:40am.
    My Website
    My vBulletin Installation

  • #2
    Please, this is really annoying, some help would be most appriciated.

    Thank you
    My Website
    My vBulletin Installation

    Comment


    • #3
      You cannot use a web path, you need to a server path

      /home/mysite/public_html/banner/banner.php for example

      Comment


      • #4
        Originally posted by Zachery
        You cannot use a web path, you need to a server path

        /home/mysite/public_html/banner/banner.php for example
        These files have been working for at least 6 months, up until this guy tryed to hack the site Yesturday.

        I'll look at trying it the other way, but, it doesn't make any sense to me, Sorry.
        My Website
        My vBulletin Installation

        Comment


        • #5
          Originally posted by tomshawk
          These files have been working for at least 6 months, up until this guy tryed to hack the site Yesturday.

          I'll look at trying it the other way, but, it doesn't make any sense to me, Sorry.
          More information on the PHP function 'require' or 'include' can be found here.

          www.php.net/require
          www.php.net/include

          You could include remote files, but there are some requirements and limitations:
          http://uk.php.net/manual/en/ref.file...llow-url-fopen

          Comment

          Loading...
          Working...
          X