0

I am trying to use wp-authentication from another server. So I have login.php file:

<?php
    $content=file_get_contents("http://xxx/custom_login.php");
    echo $content;
?>

and custom_login.php, on another site:

<?php 
    require('wp-blog-header.php'); 
?>

I think this is where it breaks. Although, when called on its own, custom_login.php works fine.

Can I fix this?

ivanacorovic
  • 2,669
  • 4
  • 30
  • 46

0 Answers0