Including files from a different server / domain

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AaronL
    New Member
    • Jan 2007
    • 99

    Including files from a different server / domain

    Hello,

    I'm writing software in PHP that I would like to own the code and allow others to use it on their website without giving them the possibility to steal my php source
    code.

    I tried to use the include statement using the full url to the file but got I got the
    error that url access is disabled on the server. I looked into it further and seen a lot of documentation where turning url_fopen to ON is not recommended.

    How can I include a php file this way? Is is possible?

    - Aaron
  • AaronL
    New Member
    • Jan 2007
    • 99

    #2
    I tried using file_get_conten ts but I'm getting undefined function errors

    Comment

    • AaronL
      New Member
      • Jan 2007
      • 99

      #3
      Well I tried a different way, in that I didn't use functions, I created the page first
      on my server and was able to call it from another server. I guess functions don't get passed, only things that can be echoed out.

      Comment

      Working...