Linking File From Another Server

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

    Linking File From Another Server

    i am trying to get a file from a particular server i tried require('http://siteaddress/config.inc'); but got a file access error ca any1 help wif this

    #2
    i am trying to get a file from a particular server i tried require('http://siteaddress/config.inc'); but got a file access error ca any1 help wif this[/b]

    why dont u just go to the server and save it from there. u cant access a config file from outside the server. it has the database details etc in it
    Wapchat4u


    Topsites4u

    Comment


      #3
      no it dnt all it has is a function that i wana run off another server

      Comment


        #4
        make a file name php_codfig.php


        <?php
        include("http:// URL SITE/setup.php");
        ?>

        then

        setup
        <?
        blah blah
        ?>
        Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
        Visit: WapMasterz Coming Back Soon!
        _______
        SCRIPTS FOR SALE BY SUBZERO
        Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
        FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
        _______
        Info & Tips
        php.net
        w3schools.com

        Comment


          #5
          it dnt work sub lol get this error

          Warning: require() [function.require]: URL file-access is disabled in the server configuration in /home/aftadark/public_html/chat/core/main.inc on line 3

          Warning: require(http://afta-dark.net/chat/core/config.inc) [function.require]: failed to open stream: no suitable wrapper could be found in /home/aftadark/public_html/chat/core/main.inc on line 3

          Fatal error: require() [function.require]: Failed opening required &#39;http://afta-dark.net/chat/core/config.inc&#39; (include_path=&#39;.:/usr/lib/php:/usr/local/lib/php&#39;) in /home/aftadark/public_html/chat/core/main.inc on line 3

          or

          Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/aftadark/public_html/chat/core/main.inc on line 3

          Warning: include(http://afta-dark.net/chat/core/config.inc) [function.include]: failed to open stream: no suitable wrapper could be found in /home/aftadark/public_html/chat/core/main.inc on line 3

          Warning: include() [function.include]: Failed opening &#39;http://afta-dark.net/chat/core/config.inc&#39; for inclusion (include_path=&#39;.:/usr/lib/php:/usr/local/lib/php&#39;) in /home/aftadark/public_html/chat/core/main.inc on line 3

          Comment


            #6
            have you try placing keys so it ya going to let users have ya scrript just place a keygen in it so you have to enter it and domain only thing

            like my billing software


            http://billing.oz-au.net is ok
            http://oz-au.net/billing/ is not

            you got what i meant?
            Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
            Visit: WapMasterz Coming Back Soon!
            _______
            SCRIPTS FOR SALE BY SUBZERO
            Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
            FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
            _______
            Info & Tips
            php.net
            w3schools.com

            Comment


              #7
              if this would be as possible as you think, than the site hacking would be very easy because everyoune can read your config files
              Advertise your mobile site for FREE with AdTwirl

              Comment


                #8
                not a clue only thing i can think is set php to cgi and use php.ini to change it all around

                Comment


                  #9
                  its jus 2 stop ppl puting my script on another server by putting few required functions in a file

                  Comment


                    #10
                    i tried this but to no success

                    ini_set(&#39;allow_url_fopen&#39;, &#39;On&#39;);

                    Comment


                      #11
                      try to use your config as txt file

                      and than
                      Code:
                      include (&#39;[url]http://mysite.com/config.txt&#39;[/url]);
                      Advertise your mobile site for FREE with AdTwirl

                      Comment


                        #12
                        try to use your config as txt file

                        and than
                        Code:
                        include (&#39;[url]http://mysite.com/config.txt&#39;[/url]);
                        [/b]
                        didnt work stil same error msg

                        Comment


                          #13
                          Create a .htaccess file and get it to redirect that script to your server. or a redirect in the config or hide it on the script and then they upload the script and get there members they will be redirected to your site so you get loads more members lol can&#39;t think of any other way

                          Comment


                            #14
                            Try this
                            $url=&#39;ftp://user:pass@ftpserver/path/to/script.php&#39;);
                            copy($url,&#39;secret.php&#39;);
                            require(&#39;secret.php&#39;);
                            # The rest of script
                            # at the end place
                            unlink(&#39;secret.php&#39;);

                            Comment

                            Working...
                            X