PHP help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Viowatch
    So Fucking Banned
    • Mar 2006
    • 257

    #1

    PHP help

    Hiya,

    I'm having trouble with php. I want to add a link dump script/refer trading/link script to my website index.html source but not that sure on how. say I wanna add yup.php on my website, do I put a code like this on my index.html source? Because this is not making the dump show up... <!--#include virtual="yup.php" -->

    thx4help
  • uni9
    Registered User
    • Nov 2005
    • 35

    #2
    wrong php code it's
    <?php include('FILENAMEHERE.PHP'); ?>
    $ Make Money with NastyDollars! $

    Comment

    • sfera
      Confirmed User
      • Aug 2005
      • 8597

      #3
      hmm not much help for ya

      Comment

      • Viowatch
        So Fucking Banned
        • Mar 2006
        • 257

        #4
        Thanks, I added that code for friends.php & the link dump, it doesn't even show at all now. Dunno why, any ideas? Maybe theres something I have to config to let php load on my site?

        peace

        Comment

        • Viowatch
          So Fucking Banned
          • Mar 2006
          • 257

          #5
          The owner of the script said try looking at register_globals and see if it's on, since it might be off and reject all scripts. Where do I go to see if thats on?

          Comment

          • Viowatch
            So Fucking Banned
            • Mar 2006
            • 257

            #6
            It must be because I have php scripts off somewhere, I don't know where I can turn it on. Because another link dump script doesn't work with that code, but if I enter <iframe src="asd/path-to-linkdump/index.php" width="100" height="195" frameborder="0" scrolling="no"></iframe> it loads.

            Comment

            • mfps
              Confirmed User
              • Mar 2006
              • 640

              #7
              try making a file called test.php

              inside put the following:

              <?
              print("test");
              ?>

              put it on your site, and type in the url
              if that works, the include syntax i use is:

              include 'asdf.php';

              note: that needs to go inside a .php file

              Comment

              • Viowatch
                So Fucking Banned
                • Mar 2006
                • 257

                #8
                It works when I go to test.php...but where do I put include 'asdf.php'; exactly? In test.php?

                Comment

                • mfps
                  Confirmed User
                  • Mar 2006
                  • 640

                  #9
                  you would need to put it inside your index.php.
                  also this means you would need to convert your index.html file to a php file.

                  im not really sure what the script you want to use does, or how you want to use it.

                  if you explain it to me like i am a child, i will help you.

                  Comment

                  • mfps
                    Confirmed User
                    • Mar 2006
                    • 640

                    #10
                    Originally posted by Viowatch
                    It works when I go to test.php...but where do I put include 'asdf.php'; exactly? In test.php?
                    but yes, you could put it in test.php, before the print("test");

                    Comment

                    • Viowatch
                      So Fucking Banned
                      • Mar 2006
                      • 257

                      #11
                      Well it was working, and the 2 test urls showed up, but now it says " Fatal error: Call to undefined function: func_listlinks() in /home/.harpiy/viowatch/pornoh.com/psychedelictest.php on line 58" On the main page.

                      anyways, heres the readme that came with this trading/friends script if you guys could double check if I did this right.

                      To use the script on your main page use the following code in your .php file:
                      <?PHP
                      INCLUDE "config.php";
                      func_Checkrefer();
                      ?>

                      So that means create a .php file w/ that code above in it...say the name I create is blah.php, I'd save that to my main directory & in the html source where I want the script to show up add this? <?php include('blah.php'); ?>

                      And there is this in the readme:
                      Where ever you want to show the links you will put this in your .php file:
                      <?PHP func_Listlinks(5);?>

                      The func links was the one listing it (the 2 urls), not the blah.php I said above. That was just a white box that didn't do anything. So do I need to link the above To use the script on your main page use the following code in your .php file:
                      <?PHP
                      INCLUDE "config.php";
                      func_Checkrefer();
                      ?>

                      & link the func one on my main index source to make it show up or what?

                      Well thats about it for now, I'm sorry if I sound dumb with this, I'm just new to php looking for some help, thanks I really appreciate it <3

                      Comment

                      • mfps
                        Confirmed User
                        • Mar 2006
                        • 640

                        #12
                        Originally posted by Viowatch
                        Well it was working, and the 2 test urls showed up, but now it says " Fatal error: Call to undefined function: func_listlinks() in /home/.harpiy/viowatch/pornoh.com/psychedelictest.php on line 58" On the main page.
                        Where ever you want to show the links you will put this in your .php file:
                        <?PHP func_Listlinks(5);?>
                        looks like you need to capitalize the L in Listlinks

                        So that means create a .php file w/ that code above in it...say the name I create is blah.php, I'd save that to my main directory & in the html source where I want the script to show up add this? <?php include('blah.php'); ?>
                        i dont think php can be included in an html file, however html can be included in a php file.

                        build your html like this :

                        <?
                        include 'config.php'
                        func_Checkrefer();
                        $msg.="< HTML >";
                        $msg.="< HEAD >";
                        $msg.="< TITLE >DONT INCLUDE THE SPACES IN THE TAGS< /TITLE>";
                        $msg.="< /HEAD >";
                        $msg.="< BODY >";
                        $msg.=func_Listlinks(5);
                        $msg.="< /BODY >";
                        $msg.="< /HTML >";
                        print ($msg);
                        ?>

                        hope this helps

                        mfps

                        Comment

                        • Mike Seth
                          Registered User
                          • Feb 2006
                          • 88

                          #13
                          Why does your home directory begin with a dot? This looks like hax0red to me.
                          Mike Seth - 274-570-412 <mikeseth at gmail.com>

                          Comment

                          Working...