Posted by Amy on 06/22/07 07:17
I have this php file called links.php. It is in a folder on my domain
(www.domain.com/links/links.php)
The file links.php has an include statement:
<?php
include('\folderc\k.php');
When I run links.php, I get the below listed at the bottom of this message.
If however, I place links.php in the same folder as k.php and use the
include statement include('k.php'); it works without any errors.
Would someone know what would be the correct syntax for the include
statement so that I can place links.php in the links folder rather then
folderc.
Thank you
Error message
Warning: main(\folderc\test.php): failed to open stream: No such file or
directory in /usr/www/virtual/userid/www.domain.com/links/links.php on line
6
Warning: main(): Failed opening '\folderc\test.php' for inclusion
(include_path='.:/usr/local/lib/php') in
/usr/www/virtual/userid/www.domain.info/links/links.php on line 6
Navigation:
[Reply to this message]
|