Error message trying to include a file
| From: | Matthias Wulkow | Date: | Mon, 01 Dec 2003 21:45:25 +0000 |
| Subject: | Error message trying to include a file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-171501@lists.php.net to get a copy of this message | ||
Hi php-general,
I have an array filled with urls of javascript files and then I
include them one by one in a loop.
for( $i = 0 ; $i < sizeof($this->page->javascript) ; $i++ ){
include($this->page->javascript[$i]);
//This line above is line 52 shown on error warning
}
When I had only two files to include it worked. Now I added a third
and I get following error message:
Notice: Undefined offset: 2 in /usr/local/www/ViewPageClass.php on line 52
Warning: writehead() [function.writehead]:
Failed opening '' for inclusion (include_path='.:/usr/local/lib/php')
in /usr/local/www/ViewPageClass.php on line 52
I don't really know what to do,the function writehead doesn't seem to
exist... the javascript file is
http://pajhome.org.uk/crypt/md5/md5.js. I
suppose it's free of
errors...
SvT
--
Who is the ennemy?