Forums
This topic is locked
filepath string
Posted 08 Jul 2006 09:23:09
1
has voted
08 Jul 2006 09:23:09 Chris Trace posted:
hey there,for some reason a string file is not being stream coreclty
$language_file = "../../includes/calendar/calendar." . $calendar_language; //Language file into variable
$fd = fopen( $language_file, "r" ); //Open the language file
$fd = fread( $fd, filesize( $language_file ) ); //Read the opened file
$language_array = explode( "\n" , $fd ); //Put file info into array
$dayname = array_slice($language_array,0,7); //The names of the days
$monthname = array_slice($language_array,7); //The rest of the language file are the monthnames
the error is
Warning: fopen(../../includes/calendar/calendar.uk): failed to open stream: No such file or directory in
but the calendar.uk file is in that directory on the server.
Anything wrong with the code itself in expanding the include?
Thanks
Replies
Replied 08 Jul 2006 09:28:03
08 Jul 2006 09:28:03 Chris Trace replied:
got it fixed
for some reason it was pathing from the inserted document direcotry position and not from the script position.
for some reason it was pathing from the inserted document direcotry position and not from the script position.