rockinaway Posted October 9, 2007 Share Posted October 9, 2007 What I want to do is have a user uplaod a script to their website. Via that script I can use a webpage of mine to retrieve data from their database. That script will have all the necessary functions in it, and will require the file in my internal script and then call the functions. However I cannot seem to require the script from an external website.. I get: Failed opening required 'http://www.wickettowicket.com/adminfuel.php' What is wrong with this? What could be an alternative to do the same job? Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/ Share on other sites More sharing options...
TomKrush Posted October 9, 2007 Share Posted October 9, 2007 This problem is most likely a php.ini problem. Sometimes servers disable file scripts from other systems. Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-365719 Share on other sites More sharing options...
rockinaway Posted October 10, 2007 Author Share Posted October 10, 2007 AdminFusion has one that doesn't have any problems.. why so? Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366211 Share on other sites More sharing options...
trq Posted October 10, 2007 Share Posted October 10, 2007 AdminFusion has one that doesn't have any problems.. why so? Explain? Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366219 Share on other sites More sharing options...
rockinaway Posted October 10, 2007 Author Share Posted October 10, 2007 You see they have this thing know as PostFusion.. where you upload 2 scripts, for your forum software, to your forum's root directory (works on any forum without fault) and then what they do is retrieve data from the forum's database and send it back to the PostFusion where stats are made etc. SO the file must be included for the data to be received etc.. right.. maybe you should download the scripts and have a look.. but they are hard to understand. (not spaced out) Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366229 Share on other sites More sharing options...
trq Posted October 10, 2007 Share Posted October 10, 2007 Sorry, but I have no idea who they are or what your rambling about. What is the output of... <?php echo ini_get('allow_url_fopen')."<br />"; echo ini_get('allow_url_include'); ?> ? Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366237 Share on other sites More sharing options...
rockinaway Posted October 10, 2007 Author Share Posted October 10, 2007 The output from my website? Or from the external website where the scripts are placed? http://www.adminfusion.com/ That is the website I was talking about.. Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366247 Share on other sites More sharing options...
trq Posted October 10, 2007 Share Posted October 10, 2007 The output from my website? Or from the external website where the scripts are placed? Place the script I want the output of on the same server you are attempting to to call... <?php include 'http://www.wickettowicket.com/adminfuel.php' ?> Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366252 Share on other sites More sharing options...
rockinaway Posted October 10, 2007 Author Share Posted October 10, 2007 When I navigate to the file via web browser I get 0 ... Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366256 Share on other sites More sharing options...
trq Posted October 10, 2007 Share Posted October 10, 2007 Then you cannot include remote files from that server. Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366259 Share on other sites More sharing options...
trq Posted October 10, 2007 Share Posted October 10, 2007 You need to enable allow_url_fopen and allow_url_include. Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366260 Share on other sites More sharing options...
rockinaway Posted October 10, 2007 Author Share Posted October 10, 2007 But howcome this AdminFusion stuff works? Where they get data from the DB and retrieve it.. do they use something other than include/require? As their scripts work on the same server as the one I am trying it on... Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366263 Share on other sites More sharing options...
trq Posted October 10, 2007 Share Posted October 10, 2007 You keep brining up the adminfusion thing. How does this relate to your problem? Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366277 Share on other sites More sharing options...
rockinaway Posted October 10, 2007 Author Share Posted October 10, 2007 It is a similar thing. I have a script on my website that wants to get data from another persons website, where adminfuel.php is uploaded.. AdminFusion works in exactly the same way.. Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366279 Share on other sites More sharing options...
trq Posted October 10, 2007 Share Posted October 10, 2007 So adminfusion is hosted on the same server as you? And you say they are able to include files from remote sites? Maybe you need to take this up with your host. Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366281 Share on other sites More sharing options...
rockinaway Posted October 10, 2007 Author Share Posted October 10, 2007 No they are not on the same server as me.. but what they do is give scripts for download that will work on any server that do the same job as what I want doing.. Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366283 Share on other sites More sharing options...
trq Posted October 10, 2007 Share Posted October 10, 2007 Well the truth is, you cannot include remote files from ANY server. You MUST have the correct wrappers enabled. Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366289 Share on other sites More sharing options...
rockinaway Posted October 10, 2007 Author Share Posted October 10, 2007 Wonder how they do it.. what is the file on another server send data somehow to my files? Any way of doing this? Quote Link to comment https://forums.phpfreaks.com/topic/72518-a-script-from-another-website/#findComment-366302 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.