Hello and welcome to our community! Is this your first visit?
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
    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.


  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Saskatoon, Saskatchewan
    Thanked 2,662 Times in 2,631 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'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


    Posting Permissions

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