Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2009
    Posts
    190
    Thanks
    12
    Thanked 2 Times in 2 Posts

    Executing script located on different server

    I wrote a script that I want people to be able to (willingly) include on their website but is executed from my server.

    Possible?

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Not if you are intending it to process.
    If you fetch anything remotely, you will be provided with the results of the script, not the processing capability of the script. This is how PHP works on the http, and would be a massive security risk if it were otherwise.
    Your options is to either use a plain text document which they can include for evaluation, or write a soap or rest style service to allow them to request data, or even just process.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •