yadew
01-27-2006, 10:55 AM
Hi I am new to php.
I want to run the script
____________________________________________________________
<?php
include("math_lib.php");
?>
<html>
<head>
<title>Include files</title>
</head>
<body>
<?php
print(to_pow(6,10)."<br />");
print(multiply(5,100) ."<br />");
print(divide(5,0) ."<br/>");
print(subtract(100,50) ."<br />");
print(add(100,50) ."<br />");
?>
</body>
</html>
____________________________________________________________
But it showing the error
Warning: main(math_lib.php): failed to open stream: No such file or directory in c:\program files\easyphp1-8\www\1.php on line 2
Warning: main(): Failed opening 'math_lib.php' for inclusion (include_path='.;C:/Program Files/EasyPHP1-8\php\pear\') in c:\program files\easyphp1-8\www\1.php on line 2
Fatal error: Call to undefined function: to_pow() in c:\program files\easyphp1-8\www\1.php on line 23
________________________________________________________
How can i overcome the problem.
I want to run the script
____________________________________________________________
<?php
include("math_lib.php");
?>
<html>
<head>
<title>Include files</title>
</head>
<body>
<?php
print(to_pow(6,10)."<br />");
print(multiply(5,100) ."<br />");
print(divide(5,0) ."<br/>");
print(subtract(100,50) ."<br />");
print(add(100,50) ."<br />");
?>
</body>
</html>
____________________________________________________________
But it showing the error
Warning: main(math_lib.php): failed to open stream: No such file or directory in c:\program files\easyphp1-8\www\1.php on line 2
Warning: main(): Failed opening 'math_lib.php' for inclusion (include_path='.;C:/Program Files/EasyPHP1-8\php\pear\') in c:\program files\easyphp1-8\www\1.php on line 2
Fatal error: Call to undefined function: to_pow() in c:\program files\easyphp1-8\www\1.php on line 23
________________________________________________________
How can i overcome the problem.