Ok, I've been coding php for awhile and I still can't figure out what precisely causes this " input in flex scanner failed " error message. I can fix it, sometimes, by harding coding input into class functions/functions but I don't want to have to do that. For example, I have a database query that takes a GET parameter (id) and matches it against a database record, thereby deriving the needed information for include(), etc. When I give an input that isn't going to be found (slkfja, etc.) I get the above message. This isn't the only place I get it, but it is just really starting to annoy me...as I don't know how to fix it, nor what precisely causes it (other than bad input, but I _do_ have error handlers that aren't even called)...
Thanks for any help
-TylerDon't mind me, I just figured it out:
For all those who want to know, the error signifies trying to include() a directory. ie: include("/temp/");
in my case I used $var="dir/".$othervar;
then include($var);
since my $othervar was empty, it tried to include "dir/"
Thanks to anyone thinking about helping-
TylerYou're welcome
I was curious about this error, and found this:
<!-- m --><a class="postlink" href="http://www.faqts.com/knowledge_base/view.phtml/aid/220/fid/5">http://www.faqts.com/knowledge_base/vie ... /220/fid/5</a><!-- m -->
Oh well, a little bit too late Originally posted by illusina
Don't mind me, I just figured it out:
For all those who want to know, the error signifies trying to include() a directory. ie: include("/temp/");
in my case I used $var="dir/".$othervar;
then include($var);
since my $othervar was empty, it tried to include "dir/"
Thanks to anyone thinking about helping-
Tyler
that is why you need to check to see if the variable isset before you including anything. security protection too.
by the way I have never had that error come up so thanks for letting us know about it.
Thanks for any help
-TylerDon't mind me, I just figured it out:
For all those who want to know, the error signifies trying to include() a directory. ie: include("/temp/");
in my case I used $var="dir/".$othervar;
then include($var);
since my $othervar was empty, it tried to include "dir/"
Thanks to anyone thinking about helping-
TylerYou're welcome
I was curious about this error, and found this:
<!-- m --><a class="postlink" href="http://www.faqts.com/knowledge_base/view.phtml/aid/220/fid/5">http://www.faqts.com/knowledge_base/vie ... /220/fid/5</a><!-- m -->
Oh well, a little bit too late Originally posted by illusina
Don't mind me, I just figured it out:
For all those who want to know, the error signifies trying to include() a directory. ie: include("/temp/");
in my case I used $var="dir/".$othervar;
then include($var);
since my $othervar was empty, it tried to include "dir/"
Thanks to anyone thinking about helping-
Tyler
that is why you need to check to see if the variable isset before you including anything. security protection too.
by the way I have never had that error come up so thanks for letting us know about it.