New version, but it's CGI :(
It's causing all sorts of problems.

Thanks for the help, but I've killed this method in favor of including a
file that includes the files :)

best,
jaxon

> -----Original Message-----
> From: Robert V. Zwink [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 27, 2001 2:08 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: [PHP] fatal input in flex scanner
>
>
> 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:[EMAIL PROTECTED]]
> Sent: Friday, August 24, 2001 11:29 AM
> To: [EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to