Posted by Gazornenplat on 11/16/05 17:31
DATABASE_CLASS is a constant
DATABASE_CLASS(...) is a function which doesn't exist
You could try something like:
<html>
<head>
<title></title>
</head>
<?php
define("DATABASE_CLASS", 'MySQL_5_Database("$user");');
$user = "Ian";
eval(DATABASE_CLASS);
function MySQL_5_Database($user)
{
echo "Hello $user";
}
?>
<body>
</body>
</html>
Navigation:
[Reply to this message]
|