Can an ASP site have PHP codes?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mkx
    Confirmed User
    • Nov 2003
    • 4001

    #1

    Can an ASP site have PHP codes?

    I am looking to add some PHP codes to an asp site. Is this possible? What would the extension be? .asp? .php? .aspphp?

    Hope someone can help
  • AMADude
    Confirmed User
    • Apr 2004
    • 3875

    #2
    hmmm. Good question. If your server parses php it should be able to have both, but the .php or .asp I dont know.
    No sig, just here to fuck around.

    Comment

    • mkx
      Confirmed User
      • Nov 2003
      • 4001

      #3
      I might have to connect to an external database on a different server since one server supports just asp and one server supports just php. I am pretty new to php and haven't yet learned asp so any help would help.

      Comment

      • Warden
        Confirmed User
        • Nov 2002
        • 2906

        #4
        You can't have PHP code in ASP or vice versa. The other interpreter won't know what to do with the code and output it as text. However, you can have PHP reside on the same server as ASP, the code just can't be imbedded with the others files. Basically it is ill advised.
        AIM: ZeeRiddler
        ICQ: 128160005
        Warden's MS

        Comment

        • mkx
          Confirmed User
          • Nov 2003
          • 4001

          #5
          Ok maybe I will just learn ASP

          Microsoft access acts as the database file. Is this good or bad for SEO or does it not make a difference?
          Last edited by mkx; 11-20-2004, 10:17 PM.

          Comment

          • Varius
            Confirmed User
            • Jun 2004
            • 6890

            #6
            I know you can set this in php.ini

            ; Allow ASP-style <% %> tags.
            asp_tags = Off

            however I've never tested if you could then embed ASP code in php pages (I really doubt it)
            Skype variuscr - Email varius AT gmail

            Comment

            • Varius
              Confirmed User
              • Jun 2004
              • 6890

              #7
              As for extensions, with Apache you can configure it to read any extension you want, say for example you can have .html read as php
              Skype variuscr - Email varius AT gmail

              Comment

              • Rantan
                Confirmed User
                • Aug 2004
                • 714

                #8
                the short answer is no...
                www.jesusjohnson.com

                Comment

                • fusionx
                  Confirmed User
                  • Nov 2003
                  • 4618

                  #9
                  Originally posted by raulph
                  Ok maybe I will just learn ASP

                  Microsoft access acts as the database file. Is this good or bad for SEO or does it not make a difference?
                  Makes no difference for SEO, but MSAccess doesn't scale well - it won't handle much load.

                  Most windows servers nowdays have PHP as well as ASP. Check with your host. If your server doesn't have it, ask them to install it.

                  If you want to use both in a single site, for whatever reason, just have your ASP post or link to a PHP file, or vice versa. You can't mix the two in the same file..

                  Comment

                  • Calvinguy
                    Confirmed User
                    • Oct 2002
                    • 1752

                    #10
                    Originally posted by raulph
                    .aspphp?

                    Comment

                    • mkx
                      Confirmed User
                      • Nov 2003
                      • 4001

                      #11
                      Ok thanks guys. I think it might be easier for me to just learn asp. Going to try w3schools.com any other good sites?

                      Comment

                      • bawdy
                        Confirmed User
                        • Feb 2002
                        • 1424

                        #12
                        You could try to use the Server.Execute method in asp to run a php file...

                        Comment

                        Working...