Rassac
asked on
PHP Undefined function error
Hi, I am trying to update a php file through another php file but am receiving the following error:
Fatal error: Call to undefined function file_put_content() in c:\Inetpub\wwwroot\putcont ent.php on line 5
My code below:
Fatal error: Call to undefined function file_put_content() in c:\Inetpub\wwwroot\putcont
My code below:
[Putcontent.php]
<?
$my_file = "some_file.php";
$f_content = file_get_contents($my_file);
$string_data = "Lorem ipsum";
file_put_content($fh, $string_data);
?>
[some_file.php]
<html >
<head>
</head>
<body>
<div id="my_div">
<?=$string_data?>
</div>
</body>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.