P3ngu Posted January 5, 2009 Share Posted January 5, 2009 I could make a script where it retrieves data from another website's page and checks it? Suppose this: I'm on X website and want to pull a file with a list of IPs (banned people) off of Y website. Since includes() and requires() can only be used for your website, I was wondering how I could pull this off. If a user with one of the IPs in the file visits X website, they get redirected to the Y website's banned page. I hope I didn't make that too confusing? Thanks. And don't make it too complicated, I'm neither a noob or a pro at PHP. Quote Link to comment https://forums.phpfreaks.com/topic/139609-is-there-any-way/ Share on other sites More sharing options...
premiso Posted January 5, 2009 Share Posted January 5, 2009 curl or file_get_contents Your server has to allow_fopen_url and or have cUrl installed. Quote Link to comment https://forums.phpfreaks.com/topic/139609-is-there-any-way/#findComment-730393 Share on other sites More sharing options...
DarkerAngel Posted January 6, 2009 Share Posted January 6, 2009 If you search I have a cURL quick function source in a post somewhere you could probably view my recent posts and it should be in like the first or second page. Quote Link to comment https://forums.phpfreaks.com/topic/139609-is-there-any-way/#findComment-730440 Share on other sites More sharing options...
RussellReal Posted January 6, 2009 Share Posted January 6, 2009 curl and file_get_contents will bring the output of Y to X if used on X.. to REDIRECT your user to Y you could use the header function header("location: Y"); Quote Link to comment https://forums.phpfreaks.com/topic/139609-is-there-any-way/#findComment-730627 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.