Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Calling php function from asp
Old 07-20-2006, 04:04 PM Calling php function from asp
Junior Talker

Posts: 1
Trades: 0
Hi guys, I have my web site written in asp. Now, I am trying to integrate a webservice written in php. Does anyone know how to call a php function from asp??
soyeyemi is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-20-2006, 04:59 PM Re: Calling php function from asp
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,938
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
I don't think you can call a component from a separate language like that.

The only thing I can think of is using ASPTear to download the page with the service and manipulate accordingly.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 07-23-2006, 03:22 AM Re: Calling php function from asp
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
is php running on the host? You can change php config so that it reads code inside of <% %> but very unusual for php and asp to be running on the same server..
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 07-24-2006, 05:56 AM Re: Calling php function from asp
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
I don't think that world work. As soon as the PHP interpreter ran into ASP code between <% %>, it would get confused.

Just get the ASP page to redirect to the page with the PHP function on it, and use a query string to pass parameters, etc.
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 07-29-2006, 05:26 PM Re: Calling php function from asp
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Or call the PHP page (and function) using a server side XMLHTTP request
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-30-2006, 06:11 AM Re: Calling php function from asp
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
If it's a web service it's possible to write ASP to handle back the output. Why do you have to call on PHP? You could just rewrite what it does in ASP if needs be.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 08-09-2006, 10:55 AM Re: Calling php function from asp
Super Talker

Posts: 116
Trades: 0
Chris,

I notice you're referring to "server side XMLHTTP request". Could you please give an example?

As you all can tell, I started a thread about using variables within an SQL INSERT in ASP.

I actually have the identical code written in PHP that works beautifully. I could call that up in my ASP code (or call the ASP from PHP).

BTW, we're hosted by a third-party (that's why I have to use DSN-less connections). I run PHP, ASP & ASP.NET on our website all the time.

Thanks for any help.
DonnaZ
DonnaZ is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Calling php function from asp
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30609 seconds with 12 queries