Perhaps I'm missing something but doesn't Apache hand off to PHP before it looks at anything inside the file? Doesn't it hand it off at the fact that the target is SomeFile.php. So the tag <?php4/5/6/X doesn't mean anything since by the time the tag gets read it's already in PHP4 or 5 or 6. So the tags can't be used. On the other hand you COULD name the files .php4, .php5 and set apache to pass .php4 files to php4 and .php5 files to php5.. You can already do this as far as I know. James Kilbride > -----Original Message----- > From: GamblerZG [mailto:gambler@xxxxxxxxxxxxxx] > Sent: Tuesday, October 11, 2005 2:57 PM > To: php-general@xxxxxxxxxxxxx > Subject: Re: Obsession with BC > > > On the final hand, if you pass the pages off from apache to > a php exe > > or module.. How does Apache know which one to pass it to? Php4 or > > Php5? > > By the processing instruction target. That's what it's there > for. I guess php 5 and 4 are not the best examples, since > php5 already uses '<?php' PITarget. Let's say '<?php6' means > PHP6, and '<?php' means 4/5. > > > If I have both php4 and php5 code in a page should i run > both sections > > or only the sections listed for php5(if it's on php5)? > > You shouldn't run any sections, and give an error. The whole > point is to separate different versions of the language > instead of mixing them. Do you know a lot of scripts which > use features specific to both php4 and php5? I don't. And > it's an awful practice anyway. > > -- > PHP General Mailing List (http://www.php.net/) To > unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php