Calling PHP code

M

michael

How do I call from c#, PHP code that will print/echo to the screen (web
browser)?

For example

index.aspx
------------
<%
// code to call my_php_file.php
.....
%>

my_php_file.php
-----------------
<?php
echo "<h2>Hello world</h2>"
?>


RESULT
The web browser display in H2 tags "Hellow world"?

Thanks in advance
 
G

Gavin Joyce

Hi,

You can make a HTTP connection to the web server that serves php pages from
your asp.net page, then use this data as you please.

Have a look here -
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=screen+scraping+asp.n
et

Thanks,
Gavin

--
___________________________________________________________
nTierGen.NET Code Generator - http://www.nTierGen.NET/

Stored Procedures (Get, GetPaged, Insert, Update, Delete)
Data Access Layer - C#
Business Rules Layer - C# & VB.NET
Strongly-Typed DataSets - C#
Web Services - C#
___________________________________________________________
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,575
Members
47,207
Latest member
HelenaCani

Latest Threads

Top