By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,930 Members | 1,465 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,930 IT Pros & Developers. It's quick & easy.

combining server-side languages (like asp and php)

P: n/a
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
--
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

Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a


"Ton den Hartog" <to***********************@tonh.net> wrote in message
news:3f*********************@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
Jul 17 '05 #2

P: n/a
"Ton den Hartog" <to***********************@tonh.net> wrote
in message news:<3f*********************@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 ????


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
Jul 17 '05 #3

P: n/a
> "Ton den Hartog" <to***********************@tonh.net> wrote in
message news:3f*********************@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...


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 !

Jul 17 '05 #4

P: n/a
It is purely hypothetical of course. First my hoster supports both PHP as
ASP. Second the HTML spec says you can include all kinds of languages in the
HTML source so also a mix of them.
Why would it not be possible to have a "html" file with both a VBScript and
a PHP part that are BOTH parsed and executed before the response is sent to
the client ? As far as I know they will not hinder eachother. Only problem
would be if they start reading or writing to html-controls in forms and both
VBS and PHP are doing this to the same control, in that case the order in
which VBS and PHP are ran will influence the client-response html code

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" <nc@iname.com> wrote in message
news:32**************************@posting.google.c om...
"Ton den Hartog" <to***********************@tonh.net> wrote
in message news:<3f*********************@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 ????


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

Jul 17 '05 #5

P: n/a
SeeSchloss <ad********@seeschloss.net> wrote in message
news:<me********************************@seeschlos s.net>...

Maybe you could do something like
<?php include "file.asp"; ?>
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
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.