Anyone got an idea why this code is not working? I just get a blank page. This code is not from me. It is tutorial code and worked in the video I have watched.
<!DOCTYPE HTML PUBLIC "-/W3C//DTD HTML 4.01 Transitional//EN" http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Example</title>
</head>
<body style="width: 960px; margin: 25px auto 0;">
<?php
$cur = getcwd();
if (mkdir($cur . '/uploads', 0777)) {
echo 'Directory created';
} else {
echo 'Directory not created';
}
?>
</body>
</html>