Gah, I'm trying to insert a pre-defined javascript redirection into a new index.php file, being created everytime a user registers on the forums. I've got everything working right - it creates the subdirectory, chmods it, and it creates the index.php file but because of the nature of the javascript redirection,it simply won't redirect or a parse error comes up; here's the code -
$read = '<SCRIPT LANGUAGE =\"JavaScript\">
window.location\=\"http://www.thatcommunity.com/member.php?u=$bbuserinfo[userid]\";
</script>';
$content_add = '<html>
<head>
<?php
echo $read;
?>
</head>
<body>
<a href=\"http://www.thatcommunity.com/member.php?u=$userid\">when you\'re not redirected click here and consider a new browser.</a>
</body>
</html>';
Any help re-writing the javascript redirection to work within the echo variable, or the code itself be greatly appreciated!