I am getting the following error while running the code,
Warning: require_once(product.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\pro\application\modules\products\controllers\test1.php on line 2
Fatal error: require_once() [function.require]: Failed opening required 'product.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\pro\application\modules\products\controllers\test1.php on line 2
The code is simple,
<?php
require_once "product.php";
$array = "I am Fahad and I am testing this code";
$start = 4;
$limit = 9;
$value = limit($array, $start, $limit);
echo $value;
?>
The file product.php lies in the same directory as of the file which I am running. It still is giving an error. Please help out. Thanks
C:\xampp\htdocs\pro\application\modules\products\controllers\product.phpis the location of the file correct? - Xeoncross