* Thus wrote Matthias Wulkow ([EMAIL PROTECTED]): > > 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 > }
what does print_r($this->page->javascript) yield? you'd be better off with a loop like: foreach($this->page->javascript as $file_to_include) { include($file_to_include); } Curt -- If eval() is the answer, you're almost certainly asking the wrong question. -- Rasmus Lerdorf, BDFL of PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php