cobus Posted November 29, 2008 Share Posted November 29, 2008 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. Link to comment https://forums.phpfreaks.com/topic/134791-solved-how-to-import-external-data-into-php/ Share on other sites More sharing options...
cobus Posted November 30, 2008 Author Share Posted November 30, 2008 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??? Link to comment https://forums.phpfreaks.com/topic/134791-solved-how-to-import-external-data-into-php/#findComment-701966 Share on other sites More sharing options...
cobus Posted November 30, 2008 Author Share Posted November 30, 2008 Solved! His side : $GoogleSoapApi = file_get_contents ("http://mysite/mykey/key.php"); My side key.php : <?php echo "erwtrestert34534"; ?> Thanks for the people who actually read this topic. Link to comment https://forums.phpfreaks.com/topic/134791-solved-how-to-import-external-data-into-php/#findComment-701976 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.