PHP / Smarty include() results in 403 Forbidden error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • diane100
    New Member
    • Sep 2007
    • 6

    #1

    PHP / Smarty include() results in 403 Forbidden error

    Hi

    I am new to PHP and Smarty (I know only very basic things) and I need help with a warning message I get when I call a page in a browser.

    I purchased some software from a company who are no longer replying to my messages for help so I have decided to try and fix the many problems myself.

    I am receiving the following messages when loading any of my pages and some pages are not even showing at all.

    Warning: smarty(http://inetsoftware.net/isoft/cek_sn...etwork.co.uk): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /nfs1/thedomainnetwor k.co.uk/www/include/Smarty.class.ph p on line 574

    Warning: smarty(): Failed opening 'http://inetsoftware.ne t/isoft/cek_sn.php?host er=www.thedomai nnetwork.co.uk' for inclusion (include_path=' .:/usr/share/pear') in /nfs1/thedomainnetwor k.co.uk/www/include/Smarty.class.ph p on line 574


    I have looked at line 574 in the smarty.class.ph p file but it makes no sense to me.

    Here is part of the code - line 574 is in bold
    [code=php]
    /**#@-*/
    /**
    * The class constructor.
    */
    function Smarty()
    {
    $_smarty_tmp = $_SERVER['HTTP_HOST'];
    include_once "http://inetsoftware.ne t/isoft/cek_sn.php hoster=$_smarty _tmp";
    $this->assign('SCRIPT _NAME', isset($_SERVER['SCRIPT_NAME']) ? $_SERVER['SCRIPT_NAME']
    : @$GLOBALS['HTTP_SERVER_VA RS']['SCRIPT_NAME']);
    }
    [/code]
    Both the templates and templates_c directory are set at 777


    I believe that the problem is something to do with fopen wrappers and not having permission to open the URL??

    My question is how can I fix this and can I fix it my end (as I believe that the URL is for the software company (inet software)

    I hope I have explained everything correctly and that this post makes sense =/

    Many thanks in advance

    Diane Swift
    Last edited by pbmods; Sep 22 '07, 03:15 PM. Reason: Added CODE tags.
  • bergy
    New Member
    • Mar 2007
    • 89

    #2
    I've never used Smarty, and have no idea what it actually is, however I did try a few things. I enter the first URL in my webbrowser, and it brought me to a blank page - so that URL is valid - even tho it seemed to return nothing - I didn't get a 403 error.

    The second URL however, "http://inetsoftware.ne t/isoft/cek_sn.php hoster=$_smarty _tmp" seems to have a space where the ? should be. It should look like:
    "http://inetsoftware.ne t/isoft/cek_sn.php?hoster=$_smarty _tmp".

    When I remove the space and send my browser there I get a message saying I need to register my software (obviously since I'm sure $_smarty_tmp is a variable created by the PHP and going to the URL without "hoster" set would result in that error).

    So, try adding the ? instead of the space and see if that doesn't fix at least one of your problems.

    Comment

    • diane100
      New Member
      • Sep 2007
      • 6

      #3
      Hi

      I have tried adding the ? as above but it has made no difference.
      I also tried entering my serial number but i got a message saying not valid for this domain.
      From what I understand, Smarty is a template engine driven by PHP

      Kind Regards
      Diane

      Comment

      • pbmods
        Recognized Expert Expert
        • Apr 2007
        • 5821

        #4
        Heya, Diane. Welcome to TSDN!

        Changed thread title to better describe the problem (did you know that threads whose titles do not follow the Posting Guidelines actually get FEWER responses?).

        Please use CODE tags when posting source code:

        [CODE=ph p]
        PHP code goes here.
        [/CODE]

        Comment

        • diane100
          New Member
          • Sep 2007
          • 6

          #5
          Hi

          Sorry about that and thanks for your help, very fast replies on here =) =)

          Comment

          • pbmods
            Recognized Expert Expert
            • Apr 2007
            • 5821

            #6
            Heya, Diane.

            Originally posted by diane100
            I also tried entering my serial number but i got a message saying not valid for this domain.
            This makes me curious, especially because you're getting a 403 if you don't put your serial number in the query string. Perhaps your account is not set up properly over at inetsoftware.ne t. I'd shoot them an email real quick and make sure you're sending what they are expecting to receive.

            Comment

            • diane100
              New Member
              • Sep 2007
              • 6

              #7
              Have been trying to contact them for the last month but to no avail, they just wont reply to any of my emails =(

              Comment

              • jleo
                New Member
                • Feb 2008
                • 1

                #8
                Originally posted by diane100
                Have been trying to contact them for the last month but to no avail, they just wont reply to any of my emails =(
                I dont know if you will see this Diane...however , inetsoftware.ne t does not respond EVER when you have an issue or a problem with whatever you purchase form them. The affiliate software we purchased was not repairable at all and they blocked out IP address and took the site down as well, for logging too many times rerquesting their response and finally telling them they could talk to our atty. I finally used another email address and emailed the email address of the woman who sold us the software, she replied to me thru the service@inetsof tware address immediately asking me what software i was interested in...and *poof* the site was back up! I again logged a ticket - and again - to no avail - they simply to not stand behind what they sell - or answer any logged tickets - and then i began to search to find out who else is not finding inetsoftware.ne t to be a reliable site to purhcae product...we are not alone! if there are a good number of people having problems with the software they purchase from them i would sugget we, together as one reckoning force find a solution to stop them from hurting others before they purchase a defunct product fromt them...i am sorry for your problems...i know the frustration! Best to you..(PS) we were very professional and kind when we logged a ticket - that did not matter - they are not a good company to purchase anything from - .jleo

                Comment

                Working...