index.php.asp maybe ?
Ton den Hartog
--
Computer museum tonh: http://www.tonh.net/museum - 10.000 visitors !!
GGGallery website generator: http://www.tonh.net/gggallery
Vrij Kunst Centrum : http://www.meesterschap.nu
"Ton den Hartog" <ton.den.hart...@tonh.net> wrote in message
news:3feb37b0$0$331$e4fe...@news.xs4all.nl...
> Just found out my server-side PHP file needs to have the extension .php to
> be interpreted by PHP. Ok, makes sense. But what if I want to combine PHP
> and ASP ???? Or should I just not do that ? :-)
>
> index.php.asp maybe ?
>
> Ton den Hartog
I don't think you should or CAN do that...
--
Sharif Tanvir Karim
http://www.onlyonxbox.net
So far, to the best of my knowledge, this is impossible. ASP supports
VBscript and Jscript. You can get PerlScript from ActiveState and thus
allow ASP to support Perl. I am not aware of any ASP extension that
would allow ASP to interpret PHP...
Cheers,
NC
Maybe you could do something like
<?php include "file.asp"; ?>
in a file with a ".php" extension, but I'm not sure it is a
good idea...
Anyway, servers with support for both asp and php are
rather uncommon.
--
SeeSchloß - envoyez votre spam à sp...@seeschloss.net !
I agree it is a bad idea but sometimes it may be usefull and thus something
should be defined for it. Doesn't for instance Apache or IIS have a setting
for this kind of problems ?
Ton den Hartog
--
Computer museum tonh: http://www.tonh.net/museum - 10.000 visitors !!
GGGallery website generator: http://www.tonh.net/gggallery
Vrij Kunst Centrum : http://www.meesterschap.nu
"Nikolai Chuvakhin" <n...@iname.com> wrote in message
news:32d7a63c.03122...@posting.google.com...
Won't work; the source code of file.asp will be included.
A better idea would be:
readfile ('http://www.mysite.com/path/file.asp');
> Anyway, servers with support for both asp and php are
> rather uncommon.
I've seen quite a few, and I expect PHP to gain additional
traction on Windows now that Zend had come up with Win Enabler,
which, according to Zend, makes PHP run faster on Windows
than on Linux:
http://www.zend.com/store/products/zend-win-enabler.php
Cheers,
NC