Incredinot Posted March 15, 2010 Share Posted March 15, 2010 Hi.. So i want to have this "script" to run on an external site. This script is ment to call a db, and then print some stuff... But i dont want to give the personer my servername, username and password.. So my question is... Can i somehow just send him a code like: <?php include('http://mysite.com/thescript.php'); ?> Where "thescript.php" contains something like "Connect to my db, print stuff, etc" I hope you understand that poor explanasion :b Link to comment https://forums.phpfreaks.com/topic/195302-a-script-on-external-site/ Share on other sites More sharing options...
trq Posted March 15, 2010 Share Posted March 15, 2010 That will work, and will display any output created by thescript.php. Allot of hosts have remote file inclusion disabled however so you might want to check that first. Link to comment https://forums.phpfreaks.com/topic/195302-a-script-on-external-site/#findComment-1026299 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.