variable value from another domain

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waqasahmed996
    New Member
    • Jun 2008
    • 160

    variable value from another domain

    hi
    i want help from you in a matter.i want to include a file which is on another server.

    include ("http://www.example.net/page.php?a=".$a ."&s=".$s."&c=" .$c);

    values are passed successfully.Bu t i am enable to access variable values from page.php.

    i want to access a variable value which is on page.php

    Thanks in advance
    Last edited by Atli; Dec 3 '08, 10:08 AM. Reason: Replaced real URL with example.com
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi.

    This page you are getting, is it processed at the remote location, or does it simply return the PHP code?
    (Try putting the URL in a browser. What does it show?)

    If you want to use a PHP file from a remote location, the remote server must return the actual code, rather than executing it and returning the output (unless that output happens to be PHP code, ofc).

    Also, please refrain from posting links to pages that contain inappropriate material.
    I suspect you did it accidentally, but please just use example.com when posting example links, rather than a random name. (They are usually all being used).

    Thanks.

    Comment

    • waqasahmed996
      New Member
      • Jun 2008
      • 160

      #3
      hi
      thanks for reply.yes i ll write example.com next time.
      actually i want to process from that page.To ensure that license key has gained by user. for this i am trying to do that license key of user data base will be compared with data base of Example Web Page.

      And if user license key is authentic than i want to return a value from www.example.net/page.php to the user page. But i am unable to return that value after checking from database.



      it think i am not conveying my problem efficiently

      Comment

      • dlite922
        Recognized Expert Top Contributor
        • Dec 2007
        • 1586

        #4
        Originally posted by waqasahmed996
        hi
        thanks for reply.yes i ll write example.com next time.
        actually i want to process from that page.To ensure that license key has gained by user. for this i am trying to do that license key of user data base will be compared with data base of Example Web Page.

        And if user license key is authentic than i want to return a value from www.example.net/page.php to the user page. But i am unable to return that value after checking from database.



        it think i am not conveying my problem efficiently
        what is the description of the problem? What does this program do for you?

        Is it suppose to check with your server about a license and see if it is still valid?

        What you need to do is build an API that returns an XML. You can pass these variables to your page and your page displays valid XML. the xml could contain the response.

        I can still easily hack your software if this is the case. I can compare the response from the license server of a valid license and a bogus one. Then change your code or my host directory so that that URL license always returns the valid license response and the program or subscription i'm running works.

        That is with the assumption I can't access the obfuscated and encoded PHP code. PHP is not compiled, that means all the source code is in front of me.

        Before going into a prolix description of distributing copyrighted PHP application, is this your goal?



        Dan

        Comment

        Working...