# signs in my php? What is this?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • navaldesign
    General & Forum Moderator

    • Oct 2005
    • 12080

    #16
    Re: # signs in my php? What is this?

    The #'s should be (normally) removed. However, when you do, the code is looking for the $BannerPath" and doesn't find it, probably because you have defined it as absolute URL (http://www. etc) instead of simply providing the folder name. Try doing so.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

    Comment

    • MoodyMare
      Second Lieutenant

      • Aug 2007
      • 114

      #17
      Re: # signs in my php? What is this?

      Okay, now I get this error
      Parse error: syntax error, unexpected '=' in /home/lwnzamad/public_html/templates/HeaderTemplate.php on line 389


      By the way, YOU GUYS ROCK! I am so thankful for all the help you have given me up to this point. Everyone should recommend you! (And become an affiliate)
      www.reikiforhorses.ca
      Balance Your Horse's Energy For Self-Healing
      www.lucynixon.ca
      Reiki For Pets and Their People
      www.ufindahorse.com
      Work In Progress

      Comment

      • MoodyMare
        Second Lieutenant

        • Aug 2007
        • 114

        #18
        Re: # signs in my php? What is this?

        And here is the php it is trying to "include" (ShowBanner.php)

        <?require_once("conn.php");$qsb = "select BannerID from yellow_banners where BannerType = '$BannerType' ";$rsb = mysql_query($qsb) or die(mysql_error());if(mysql_num_rows($rsb) > '0'){ while($asb = mysql_fetch_array($rsb)) { $NewBannersArray[] = $asb[BannerID]; } $DisplayBannerID = array_rand($NewBannersArray); $BannerID = $NewBannersArray[$DisplayBannerID]; //get the selected banner info $qsb2 = "select * from yellow_banners where BannerID = '$BannerID' "; $rsb2 = mysql_query($qsb2) or die(mysql_error()); $asb2 = mysql_fetch_array($rsb2); echo "<A href=\"re_counter.php?BannerID=$BannerID\" target=_blank><img src=\"banners/$asb2[BannerFile]\" alt=\"$asb2[BannerAlt]\" border=0></a>"; $date_now = time(); $that_ip = $_SERVER[REMOTE_ADDR]; $qsb3 = "insert into yellow_stats set BannerID = '$BannerID', impressions = '1', mydate = '$date_now', ip = '$that_ip' "; mysql_query($qsb3) or die(mysql_error());}?>
        www.reikiforhorses.ca
        Balance Your Horse's Energy For Self-Healing
        www.lucynixon.ca
        Reiki For Pets and Their People
        www.ufindahorse.com
        Work In Progress

        Comment

        • Watdaflip
          Major General

          • Sep 2005
          • 2116

          #19
          Re: # signs in my php? What is this?

          # is a comment, if you have that in there it voids any command after it, it doesn't execute.

          Naval is most likely right, whatever the value of $BannerPath is, its probably trying to include a file using an absolute address.

          Try this

          <?php
          include_once("ShowBanner.php?BannerType=120x60");
          ?>
          <?php
          include_once("ShowBanner.php?BannerType=468x60");
          ?>

          Register/Login Script
          Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

          Comment

          • navaldesign
            General & Forum Moderator

            • Oct 2005
            • 12080

            #20
            Re: # signs in my php? What is this?

            Since we can't see what line 388 and 389 of the file HeadserTemplate.php are, we can't really advise. However it is strange that a commercial script has so many problems. Are you sure that you have defined everything ok? and the script is installed correctly ?
            Navaldesign
            Logger Lite: Low Cost, Customizable, multifeatured Login script
            Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
            DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
            Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

            Comment

            • MoodyMare
              Second Lieutenant

              • Aug 2007
              • 114

              #21
              Re: # signs in my php? What is this?

              I agree about the commercial script having so many problems! This is not the first problem that I have encountered with this script. AND I paid for them to install it, to make sure that I did not do anything wrong. This is my first dynamic site, so I bought the script and had them install it. I thought that would result in it running perfectly. Unfortunately, their support is NOTHING like VodaHost!!!! That's why I'm on this forum, and not theirs!

              Anyway, I'll try watdaflilp's suggestion, and let everyone know how I make out.

              Thanks
              Lucy
              www.reikiforhorses.ca
              Balance Your Horse's Energy For Self-Healing
              www.lucynixon.ca
              Reiki For Pets and Their People
              www.ufindahorse.com
              Work In Progress

              Comment

              • MoodyMare
                Second Lieutenant

                • Aug 2007
                • 114

                #22
                Re: # signs in my php? What is this?

                Now this error

                Warning: include_once(ShowBanner.php?BannerType=120x60) [function.include-once]: failed to open stream: No such file or directory in /home/lwnzamad/public_html/templates/HeaderTemplate.php on line 389

                Warning: include_once() [function.include]: Failed opening 'ShowBanner.php?BannerType=120x60' for inclusion (include_path='.:/usr/lib/php') in /home/lwnzamad/public_html/templates/HeaderTemplate.php on line 389

                Warning: include_once(ShowBanner.php?BannerType=468x60) [function.include-once]: failed to open stream: No such file or directory in /home/lwnzamad/public_html/templates/HeaderTemplate.php on line 393

                Warning: include_once() [function.include]: Failed opening 'ShowBanner.php?BannerType=468x60' for inclusion (include_path='.:/usr/lib/php') in /home/lwnzamad/public_html/templates/HeaderTemplate.php on line 393

                Man! I'm getting frustrated! Is it something to do with the include command? I've tried changing it to require command, but that doesn't work either!
                www.reikiforhorses.ca
                Balance Your Horse's Energy For Self-Healing
                www.lucynixon.ca
                Reiki For Pets and Their People
                www.ufindahorse.com
                Work In Progress

                Comment

                • MoodyMare
                  Second Lieutenant

                  • Aug 2007
                  • 114

                  #23
                  Re: # signs in my php? What is this?

                  Line 389: Now reads
                  <?php
                  include_once("ShowBanner.php?BannerType=120x60");
                  ?>
                  Line 393: Now reads the same as above but 468x60
                  www.reikiforhorses.ca
                  Balance Your Horse's Energy For Self-Healing
                  www.lucynixon.ca
                  Reiki For Pets and Their People
                  www.ufindahorse.com
                  Work In Progress

                  Comment

                  • MoodyMare
                    Second Lieutenant

                    • Aug 2007
                    • 114

                    #24
                    Re: # signs in my php? What is this?

                    *UPDATE* Looks like I fixed the problem!

                    For those interested here is what I did:

                    <?
                    include_once("ShowBanner.php");
                    ?>

                    Went to ShowBanner and changed '$BannerType' to "468x60" or "120x60"

                    Thanks for everyone's help!!
                    www.reikiforhorses.ca
                    Balance Your Horse's Energy For Self-Healing
                    www.lucynixon.ca
                    Reiki For Pets and Their People
                    www.ufindahorse.com
                    Work In Progress

                    Comment

                    Working...
                    X