Script authorization on the site using PHP methods

    By chance, there was a task to fasten authorization to another site to our service. An example was given by google adSense, where a user can enter the data with which he needs to log in to his site, and google himself log in, and he will surf the site as an authorized user.

    He stopped so far on the following. How to use PHP methods when stealing a page using methods (file_get_contents, fread) to palm off a cookie to a site? Is it possible to do this only using PHP methods, or do you need some third-party solutions?

    Are there any examples of the finished implementation, or you can understand what’s coming out with the PHP authorization script ...

    How do I do it? I promise to write a mini-article on this subject. the topic is covered rather poorly.

    Also popular now: