RE: [PHP] fatal input in flex scanner

From: Date: Mon, 27 Aug 2001 18:08:29 +0000
Subject: RE: [PHP] fatal input in flex scanner
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-64671@lists.php.net to get a copy of this message
This line seems a little odd: $files_to_include[count($files_to_include)] = $file; I would change it to: $files_to_include[] = $file; Could be a bit of a bug. I am able to run your script on my server, so the error could also be coming from one of the files you are trying to include. Are you running an old version of php? Robert V. Zwink http://www.zwink.net/daid.php -----Original Message----- From: Jaxon [mailto:jaxon@salamander.net] Sent: Friday, August 24, 2001 11:29 AM To: php-general@lists.php.net Subject: [PHP] fatal input in flex scanner okay... I have a function that includes multiple files in a directory - it was working but I changed something and I'm now getting a "Fatal error: input in flex scanner failed" can anyone see where I messed up? cheers, jaxon ----------------------------------- function group_include($directory) { $handle=opendir("$directory"); while ($file = readdir($handle)) { //load files in $directory into array if ($file != ".." && $file != ".") { $files_to_include[count($files_to_include)] = $file; } } //clean up and sort closedir($handle); if (is_array($files_to_include)) { while (list ($key, $val) = each ($files_to_include)) { include "$directory/$val"; } } } //include common and page specific modules $common_include_dir="modules/common"; $page_include_dir="modules/page"; group_include($common_include_dir); group_include($page_include_dir); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#64671) next »