dcsimg
www.webdeveloper.com
Results 1 to 7 of 7

Thread: Is it possible to use php in an ASP page?

  1. #1
    Join Date
    Jan 2012
    Posts
    16

    Is it possible to use php in an ASP page?

    Hi,

    Is it possible to use php in an ASP page? (.asp)
    Is it possible to use ASP in a PHP page? (.php)

    Also, what is the difference between .asp and .aspx?

    Thanks

  2. #2
    Join Date
    Jan 2012
    Posts
    16

    Is it possible to use PHP in an ASP page?

    Hi,

    Is it possible to use PHP in an ASP page? (.asp)
    Is it possible to use ASP in a PHP page? (.php)

    Thanks

  3. #3
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,143
    No.

  4. #4
    Join Date
    Jan 2012
    Posts
    16
    So how could I get around this?

    Also, what is the difference between .asp and .aspx?

  5. #5
    Join Date
    Sep 2008
    Location
    Akron, OH
    Posts
    1,143
    You use PHP or ASP, but not both within the same file.

    As for the difference between .asp and .aspx:
    http://lmgtfy.com/?q=.asp+vs+.aspx

  6. #6
    Join Date
    Sep 2011
    Posts
    60
    1. ASP and PHP is 2 different languages and has 2 different compilers, so you can not mix php and asp inside the same page, but you can mix them inside website if your server configured to run php and asp with many restrictions, because it would be different applications even inside the same folder...
    2. ASP is Active Server Pages aspx is dot.net. DOT.NET has 2 compilers c# and vb. VB.NET has the same syntax as ASP (vbScript), but more complex, object oriented

  7. #7
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,633
    You might be able to have one interact with the other by keeping them as separate scripts/files, and invoking one from the other via the shell (e.g. PHP's shell_exec()) or via cURL, but they won't co-exist in the same file. Or depending on what you need to do, you might use AJAX on the client side to populate a particular part of the page via a script in the other language.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles