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. 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. 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. 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"); Link to comment https://forums.phpfreaks.com/topic/139609-is-there-any-way/#findComment-730627 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.