 |
| Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0 |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

February 26th, 2005, 06:37 PM
|
|
Registered User
|
|
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
how to run php code in asp
i read that it can be done on a web some time ago but i don't know how
|
|

February 26th, 2005, 09:25 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
Are you asking if php code can run 'within an ASP page'
I have never seen it. IMO There are to many fundamental difference in the way IIS serves web pages vs the way Apache serves web pages.
If I may ask, why do you want to fit a round object thru a square hole?
BTW - PHP can run on windows, there are several different ways - I use a tool called Sokkit and it works great.
Wind is your friend
Matt
|
|

February 28th, 2005, 07:17 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
hi,
i think it's impossible...
But if you want to use perl in asp that is possible.
IIS you can run php well. find php.net
surendran
(Anything is Possible)
|
|

March 1st, 2005, 04:59 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Please let me know the manner in which you want to run the php file.
If it is just to execute any script, you can use XMLHTTP Component (OR any other HTTP component available on your server).
Install PHP on your server.
(Make both ASP and PHP enabled on your server.)
Then just request the page using XMLHTTP (either "POST" OR "GET" ).
Please don't mind if it is foolishness.;)
Shibu Narayanan
Software Associates
|
|

March 1st, 2005, 05:16 AM
|
|
Friend of Wrox
|
|
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
|
|
hello mat41,
we need to use both language same page inside asp
exsample:
hello.asp
<%
response.write("Hi Friends")
%>
<?
echo("Welcome");
?>
is it possible?
surendran
(Anything is Possible)
|
|

March 1st, 2005, 05:53 AM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
No way, it is possible
As per my knowledge ASP supports only VBScript, JavaScript and Perl.
(Would like to know if anything else is possible).
For Perl you need to have perl installed in your server.
I think you can go for ASP.NET.
I heard hear that ASP.NET is set to suport almost all languages.
Not tried yet.
Shibu Narayanan
Software Associates
|
|

March 1st, 2005, 06:33 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
surendran
;;;we need to use both language same page inside asp
I have never seen that work and can not imagine how it would. Why would you want to do this? Who ever asked you to has unrealistic expectations. Even if it could work IMO it would not run very smooth
;;;I heard hear that ASP.NET is set to suport almost all languages
Not all but many - I have been on an introductory course only, wow a great looking kettle of fish!! It allows you to write many different flavours of code including PHP
BTW: Post/search this type of question in the PHP area Wrox. I have read a post in there similar to this.
Wind is your friend
Matt
|
|

February 11th, 2010, 01:32 PM
|
|
Registered User
|
|
Join Date: Aug 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
server.execute works wonders
I just added a server.execute line to run some php within an asp.net aspx page, and it worked!
|
|

February 11th, 2010, 05:27 PM
|
|
Friend of Wrox
|
|
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
|
|
Gee this is a very old post you have commented on. I think the topic of this post was to run PHP inside a classic .ASP page not a .ASPX page......wasnt it
__________________
Wind is your friend
Matt
|
|
 |