Wrox Programmer Forums
|
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
 
Old February 26th, 2005, 06:37 PM
Registered User
 
Join Date: Feb 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old February 26th, 2005, 09:25 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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
 
Old February 28th, 2005, 07:17 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

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)
 
Old March 1st, 2005, 04:59 AM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old March 1st, 2005, 05:16 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

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)
 
Old March 1st, 2005, 05:53 AM
Authorized User
 
Join Date: Aug 2004
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old March 1st, 2005, 06:33 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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
 
Old February 11th, 2010, 01:32 PM
Registered User
 
Join Date: Aug 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Cool server.execute works wonders

I just added a server.execute line to run some php within an asp.net aspx page, and it worked!
 
Old February 11th, 2010, 05:27 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
HOW to Run php program dimpleboy PHP How-To 7 January 22nd, 2015 12:40 AM
How can I run or not run Google AD in my ASP.NET w mycwcgr ASP.NET 2.0 Professional 0 November 5th, 2007 07:18 AM
how can i instool and run php on apple os basimshahin MySQL 0 August 24th, 2006 05:36 AM
run several php with separate ini on IIS6 Charles Lupica PHP How-To 0 February 4th, 2005 08:18 AM
help convert this code from asp to php rehana SQL Server 2000 0 December 12th, 2003 03:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.