relative filename /home/www... in stead of /www/.....
| From: | Chris Hayes | Date: | Sat, 25 Aug 2001 20:03:40 +0000 |
| Subject: | relative filename /home/www... in stead of /www/..... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-64451@lists.php.net to get a copy of this message | ||
dear group,
I use the $DOCUMENT_ROOT to make a complete file name.
$fpname=$DOCUMENT_ROOT.'/includes/blocks/dynmenu.php';
It does not work on one site: the document root misses the /home/ start. I could
just hardcode this but i'ld rather have a function that would work everywhere.
What can i do?
Warning: fopen("/www/ecodorp/admin/modules/dynmenu.src","r")
- No such file or directory in /home/www/ecodorp/php/post/admin/modules/dynmenu.php on line 378
I cannot open /www/ecodorp/admin/modules/dynmenu.src
Chris
--------------------------------------------------------------------
-- C.Hayes Droevendaal 35 6708 PB Wageningen the Netherlands --
--------------------------------------------------------------------