server2別の Webサイトからリモート Web サイトにアクセスするためのコードに問題がありますserver1。ログインするために server2 内から使用するコードは次のコードです。
require_once("http://server2.com/access/models/config.php");
if (!securePage($_SERVER['PHP_SELF'])){die();}
//Prevent the user visiting the logged in page if he/she is already logged in
if(isUserLoggedIn()) { header("Location: http://server2.com/access/account.php"); die(); }
require_once()server2 では、ページが通過しないため使用できないように見えます。使用するとinclude() 、ユーザーのアクセスが通過しなくなります。cURLまたはパスのようなコードが欠落していると思います。server2別のリモートサーバーからmy を呼び出すコードを投稿できますか?