Jump to content

[SOLVED] How to "import" external data into php?


cobus

Recommended Posts

Hello everyone.

 

I just got referred here from another board, and I have question that may sound stupid.

 

I would like to share my Google Soap Api with someone.

But I would like to remain in control over it.

 

This person has a script that requires the API.

$GoogleSoapApi = "2341kjhlkh23143214";

 

Now what I would like to do is hide this from him, and keep the code on my server.

 

Is there a way that he can call this API from my server into his script?

Could I maybe encrypt it with Ioncube?

 

The only reason why I would like the API on my server is so that I can deny access to him if I need the API for myself.

Also I would like this API to reside in a file rather than in my database.

 

Thank you.

Please people.

 

On his side I have added

$GoogleSoapApi = require ("http://mysite/mykey/key.php");
echo "GoogleSoapApi";

 

On my side I have key.php

<?php

echo "erwtrestert34534";

?>

 

When I enter his site the API is displayed correctly due to the "echo" command on his side. But still the script does not work.

 

If I replace the code on his side with

$GoogleSoapApi = "erwtrestert34534";code]
then everything is peachy. 

Ideas???

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.