The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
2. Cookies - is there any reason I can set and retrieve these on one Linux PHP server, but not another?
3. HTML content - can I put HTML, or PHP, pages into Flash by assigning content to a scrollframe? Like how iframe works in IE? I should know this one, but can't be bothered to remember.
Oh, and thanks in advance.
And yes, I tested it every possible way - it really wasn't setting.
Try setting a cookie without any timestamp, domain, site or secure server, but just with a name and value - or check that $content doesn't contain any characters which could cause PHP to drop out of the setcookie function.
Have you got these test online?
The problem is setting the cookie though - it won't. I've used this script on two other sites and it's worked fine (before the headers, of course):
setcookie("cookiename", $content, time()+3600 * 24, "directory", "sitename.com", 0);
It won't set - not in temp files or anything.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
2. Cookies - is there any reason I can set and retrieve these on one Linux PHP server, but not another?
As Nimco said, it might be the PHP version numbers. Older versions of PHP use the $HTTP_COOKIE_VARS['cookiename'] superglobal, whereas newer versions (PHP 4.1.0 upwards) use the $_COOKIE['cookiename'] superglobal (superglobals are variables available anywhere in a PHP page). Newer versions also make use of the $_REQUEST['cookiename'] superglobal.
The problem might also be that register_globals is turn on on one server, but not the other. If this is the case, $cookiename would be available only on the server with register_globals turned on.
What code have you used to work with the cookie?
3. Should be able to, yes. Can you call the PHP page directly, since if you call it into Flash from the server, the server will parse the PHP.
PHP Mail - how do you change the 'from' address to something that's not the server name?
Simply add the extra headers ([URL]http://uk.php.net/manual/en/function.mail.php[/URL]):
mail("[email protected]","Subject - Contact Form","Message content - hello world","FROM: [email protected]");
2. Cookies - is there any reason I can set and retrieve these on one Linux PHP server, but not another?
3. HTML content - can I put HTML, or PHP, pages into Flash by assigning content to a scrollframe? Like how iframe works in IE? I should know this one, but can't be bothered to remember.
Oh, and thanks in advance.