Professional Web Applications Themes

Calling PHP code - ASP.NET General

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...

  1. #1

    Default 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


    michael Guest

  2. #2

    Default 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 -
    [url]http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=screen+scraping+asp.n[/url]
    et

    Thanks,
    Gavin

    --
    __________________________________________________ _________
    nTierGen.NET Code Generator - [url]http://www.nTierGen.NET/[/url]

    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" <mpettibonesbcglobal.net> wrote in message
    news:u#IGSiPRDHA.2476TK2MSFTNGP10.phx.gbl...
    > 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 Guest

Similar Threads

  1. Calling web service from unmanaged code
    By Jan Tielens in forum ASP.NET Web Services
    Replies: 4
    Last Post: April 27th, 01:10 PM
  2. Calling MFC code from WebService
    By Christopher Kimbell in forum ASP.NET Web Services
    Replies: 1
    Last Post: February 26th, 07:01 PM
  3. Calling c# code from javascript
    By Anita C in forum ASP.NET
    Replies: 1
    Last Post: August 29th, 04:31 PM
  4. Replies: 0
    Last Post: July 11th, 06:27 PM
  5. calling eruby from code?
    By Xavier Noria in forum Ruby
    Replies: 1
    Last Post: July 8th, 03:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139