Can I insert a PHP include statement on an ASP page?

Posted on 2011-05-10
Last Modified: 2012-06-27
I have an ASP Web site that I want to insert an include statement from a PHP page on a PHP server. Can this be done?

The include statement (<!--#INCLUDE FILE=""-->) gives me a 500 Internal server error.
Question by:kfranck
    LVL 9

    Expert Comment

    Not is not possible, web server needs to be configured to host either asp or php pages...  

    Author Comment

    OK, since I can't include my weather statement (, which is on an PHP server, in my ASP project (on an ASP server), is there a way to convert the PHP statement to ASP or find another method to get this work?
    LVL 9

    Accepted Solution

    yes you need to convert it to asp, I dont have any page to refer you to, but try googling :

    php to asp converter ..

    Good Luck

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    The viewer will learn how to dynamically set the form action using jQuery.

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now