I have a file that needs to include a file in the parent directory, and I am testing on a WinXP with apache, PHP, and mySQL installed, so I can test my scripts (localhost only)
In my htdocs/teq/PHP/Ses.php I have at the top:
and i get this error:
if I change it to "./Ses.php" same error, and ../../teq/PHP/Ses.php and ../../Ses.php and so forth, but just Ses.php works fine
I have another file in teq/ta/Reg/register.php that includes ../../confs.php located at teq/confs.php that works with no error.
How can I solve this without using the full path?
In my htdocs/teq/PHP/Ses.php I have at the top:
Code:
<?php include_once "../PHP/Ses.php";//this is including itself once ?>
Warning: include_once(../PHP/Ses.php) [function.includ e-once]: failed to open stream: No such file or directory in C:\Program Files\Apache Software Foundation\Apac he2.2\htdocs\te q\PHP\Ses.php on line 2
Warning: include_once() [function.includ e]: Failed opening '../PHP/Ses.php' for inclusion (include_path=' .;c:\php\includ es;..;C:\Progra m Files\Apache Software Foundation\Apac he2.2\htdocs') in C:\Program Files\Apache Software Foundation\Apac he2.2\htdocs\te q\PHP\Ses.php on line 2
Warning: include_once() [function.includ e]: Failed opening '../PHP/Ses.php' for inclusion (include_path=' .;c:\php\includ es;..;C:\Progra m Files\Apache Software Foundation\Apac he2.2\htdocs') in C:\Program Files\Apache Software Foundation\Apac he2.2\htdocs\te q\PHP\Ses.php on line 2
I have another file in teq/ta/Reg/register.php that includes ../../confs.php located at teq/confs.php that works with no error.
How can I solve this without using the full path?
Comment