Click here to Skip to main content
15,897,718 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,
I am planning to develop a site in PHP on MYSQL Database with Linux OS. I need to call an aspx page from the PHP page irrespective of the Database that asp site is running on.
1. Is it possible to contact the asp site and update the data on their Database?
2. If yes, how could I do it?
Can you please HELP me?
Thanks in advance
V XLNC
Posted

There are a number of factors, but it should be possible if:

1) The site is configured to allow remote data writes
2) Proper authentication/authorization is configured and you have the credentials
3) You know what parameters are required to send to the receiving script.

Without any information on the site you're trying to access, no one will be able to offer you any code or direction.

If we can assume the ASP.NET site has webmethods exposed, all that is required is that you provide the proper credentials in your request. With the proper auth header, and the correct params in your request, you should be good to go.

Look for a PHP toolkit that can build something to work with from a web reference.

Note that the default configuration of ASP.NET on IIS should be set up in such a way to prevent XSS attacks; if you don't know the developer/publisher of the target app you may have a hard time getting anywhere.

Cheers.
 
Share this answer
 
Comments
RaviRanjanKr 15-Jun-11 2:42am    
Nice Answer, My 5 :)
yes you can do it by sending request to asp x page either by using http request class or by using web client methods and these object send record or data in UTF format u can decode that using stream classes. so search in php for http request or web request classes. These classes work in .net for calling pages of other server.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900