Ask a Question related to ASP.NET General, Design and Development.

  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. Similar Questions and Discussions

    1. 3 buttons calling 6 boxes. Help in code.
      Hi, here is the code for 3 buttons. Each is calling for 2 boxes. There are 2 problems. 1- First clicked button does not respond at all. 2- After...
    2. Calling MFC code from WebService
      Hi, I am trying to make data that is retrieved from old MFC code available through a WebService. I created a Winform application for test...
    3. Calling c# code from javascript
      Hi, Can one call a c# function from within a javascript function ? I have a c# > function GetLanguageItem(title), how can I call the above...
    4. Security problem with Managed Code calling Unmanaged Code in a Web Page
      Hello, I have a web page which contains an ActiveX control (unmanaged) and a Windows Forms User Control (managed). Both reside on a web page and...
    5. calling eruby from code?
      I've found documentation for running eruby(1) from the command line and for configuring Apache to handle eruby templates. Do you know how to...
  3. #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" <mpettibone@sbcglobal.net> wrote in message
    news:u#IGSiPRDHA.2476@TK2MSFTNGP10.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

Posting Permissions

  • You may not post new threads
  • You may 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