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.php" 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.php" 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
Expand|Select|Wrap|Line Numbers
- if(isset($_POST['btnrpt']))
- {
- include('..\rpts\index.php');
- }
Warning: include(..\rpts\index.php) [function.include]: failed to open stream: No such file or directory in C:\AppServ\www\PROJECT\welcome.php on line 51
Warning: include() [function.include]: 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