hi all,
i'm doing a project using php & now i'm stuck with an error which is difficult to resolve by myself.
i have a file named "welcome.ph p" inside a folder called "PROJECT" in "C:\AppServ\WWW \"
& inside that "PROJECT", i'm having a sub-folder called "rpts", which contains some php files using for reports. (i used "PHP Report Maker 4" software to create those reports)
problem is;
when i click on the button "view reports" in the "welcome.ph p" page (main page); i want to display the "index.php" file which is inside the "rpts" folder.
i used the following code; but it's giving errors
[errors]:
Warning: include(..\rpts \index.php) [function.includ e]: failed to open stream: No such file or directory in C:\AppServ\www\ PROJECT\welcome .php on line 51
Warning: include() [function.includ e]: Failed opening '..\rpts\index. php' for inclusion (include_path=' .;C:\php5\pear' ) in C:\AppServ\www\ PROJECT\welcome .php on line 51
if anyone can find the error; pls help me
thnx in advance
i'm doing a project using php & now i'm stuck with an error which is difficult to resolve by myself.
i have a file named "welcome.ph p" inside a folder called "PROJECT" in "C:\AppServ\WWW \"
& inside that "PROJECT", i'm having a sub-folder called "rpts", which contains some php files using for reports. (i used "PHP Report Maker 4" software to create those reports)
problem is;
when i click on the button "view reports" in the "welcome.ph p" page (main page); i want to display the "index.php" file which is inside the "rpts" folder.
i used the following code; but it's giving errors
Code:
if(isset($_POST['btnrpt']))
{
include('..\rpts\index.php');
}
Warning: include(..\rpts \index.php) [function.includ e]: failed to open stream: No such file or directory in C:\AppServ\www\ PROJECT\welcome .php on line 51
Warning: include() [function.includ e]: Failed opening '..\rpts\index. php' for inclusion (include_path=' .;C:\php5\pear' ) in C:\AppServ\www\ PROJECT\welcome .php on line 51
if anyone can find the error; pls help me
thnx in advance
Comment