Problem with sending cookies with file_get_contents
- by Ikke
Hi, i'm trying to get the contents from another file with file_get_contents (don't ask why).
I have two files: test1.php and test2.php. Test1.php returns a string, bases on the user that is logged in.
Test2.php tries to get the contents of test1.php and is being executed by the browser, thus getting the cookies.
To send the cookies with…