ASP string into PHP string

Discussion in 'C#' started by GLD, Jul 15, 2007.

  1. #1
    Hi there,

    I'm very new to ASP, and I've run into a problem I'm hoping you could al help me with I have an ASP string - how can I turn that ASP string into a PHP string?
     
    GLD, Jul 15, 2007 IP
  2. malkassem

    malkassem Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Can you add some more details, code sample? I am not sure what you mean by turning ASP string into PHP string.
     
    malkassem, Jul 15, 2007 IP
  3. GLD

    GLD Well-Known Member

    Messages:
    307
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Well basically I have an ASP script which outputs a string which varies depending on preferences, say
    <%
    String = "This is the output!"
    %>
    Code (markup):
    I'd like to be able to get that output into a PHP string, so that I could then carry on coding with that string in PHP, i.e.

    <?php
    $newstring = "This is the output!";
    ?>
    Code (markup):
     
    GLD, Jul 16, 2007 IP
  4. malkassem

    malkassem Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I don't think you can have both ASP and PHP in one page.

    What you will need to do is create an ASP and PHP, and try to do a web requestion in PHP.
     
    malkassem, Jul 16, 2007 IP