Calling PHP code

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • michael

    #1

    Calling PHP code

    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


  • Gavin Joyce

    #2
    Re: Calling PHP code

    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 -

    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#
    _______________ _______________ _______________ ______________
    "michael" <mpettibone@sbc global.net> wrote in message
    news:u#IGSiPRDH A.2476@TK2MSFTN GP10.phx.gbl...[color=blue]
    > 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
    >
    >[/color]


    Comment

    Working...