I have a simple script uploaded to mydomain.com/test.php containing the following:
<?php setcookie("tester"); echo "tester"; ?>
I then have a file hosted locally with the following code:
<?php include "http://www.mydomain.com/test.php"; ?>
When I run the local file, the echo text is shown, however the cookie isn't set. If I place test.php locally also, the include works as expected.
Thanks for any help,