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 October 7th, 2004, 03:04 PM
Registered User
 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Calling PHP functions from ASP

Greets.

Gotta library of PHP code for talking to various databases. Just inherited some ASP code that wants to talk to these databases. Don't want to re-write the library in ASP. What I'd like to do is write an intermediate layer that lets the ASP call the PHP functions and accept the data returned.

Anybody done anything like that?

Thanks.
 
Old October 7th, 2004, 10:03 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Cross-post at http://p2p.wrox.com/topic.asp?TOPIC_ID=20369

_________________________
- Vijay G
Strive for Perfection
 
Old November 23rd, 2004, 09:58 AM
Registered User
 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't think that's difficult. You can use querystring. For instance, the .asp pages will do their functionality as needed but when they want to use PHP libraries, they will get redirected to http://www.domain.com/somepage.php?name=<%=myname%>&age=<%=myage%>

The somepage.php will retrive the variables from querystring, pass those variables to the PHP functions and the result will be transfered back to the asp page in a similar way, but with PHP syntax. e.g, http://www.domain.com/somepage.asp&name=&name&age=$age

For the site visitor, he/she won't be able to see any .php page because a redirection will be done on entrance and exit to the PHP page.

I hope you have got what I want to say. Just use your imagination to make usability of PHP functions transparently. Tell me if it works or not.

 
Old January 5th, 2005, 08:03 AM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Has anyone come up with an answer for this because I have the same problem. I suppose I'd also have the same problem if I were a PHP guy trying to call a method inside a VB dll from PHP. This is a very interesting topic. My problem is the same as Smoobly. If you know an answer please let us know.

Thanks

Quote:
quote:Originally posted by Smoobly
 Greets.

Gotta library of PHP code for talking to various databases. Just inherited some ASP code that wants to talk to these databases. Don't want to re-write the library in ASP. What I'd like to do is write an intermediate layer that lets the ASP call the PHP functions and accept the data returned.

Anybody done anything like that?

Thanks.
 
Old January 10th, 2005, 06:11 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

arsalanj20

As I asked in the post:
http://p2p.wrox.com/topic.asp?TOPIC_ID=20369
Have you actually done this?

Intrigued

webdoc90
I rewrote all myn. Somebody please feel free to correct me as I would like to hear from somebody who has actually done this - Anyhow IMO (constructively) 'square pegs aren’t supposed to go in round holes'


Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
calling .jsp functions from ASp.net Laxmikant_it .NET Framework 2.0 2 January 1st, 2008 02:47 AM
Calling functions ejmichaud Access VBA 2 July 16th, 2004 10:03 AM
calling functions with conditions Toka1 Javascript How-To 2 February 5th, 2004 09:29 AM
Calling functions in Windows? jacob C# 0 November 5th, 2003 03:57 PM





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