Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. Calling ASP page in PHP page

Calling ASP page in PHP page

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
questionphphelp
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sarang_k
    wrote on last edited by
    #1

    Hi, In my PHP application i want to call a asp page and then redirect to php page. I used include_once,require_once,header but still getting an error. How can i do it ? Thanks in advance.

    C V S H 4 Replies Last reply
    0
    • S sarang_k

      Hi, In my PHP application i want to call a asp page and then redirect to php page. I used include_once,require_once,header but still getting an error. How can i do it ? Thanks in advance.

      C Offline
      C Offline
      cjoki
      wrote on last edited by
      #2

      look at the functions file() and file_get_contents()

      Chris J www.redash.org

      1 Reply Last reply
      0
      • S sarang_k

        Hi, In my PHP application i want to call a asp page and then redirect to php page. I used include_once,require_once,header but still getting an error. How can i do it ? Thanks in advance.

        V Offline
        V Offline
        Vasudevan Deepak Kumar
        wrote on last edited by
        #3

        Not sure including an ASP would serve the purpose because PHP might not be able to parse it.

        Vasudevan Deepak Kumar Personal Homepage
        Tech Gossips
        The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep!

        1 Reply Last reply
        0
        • S sarang_k

          Hi, In my PHP application i want to call a asp page and then redirect to php page. I used include_once,require_once,header but still getting an error. How can i do it ? Thanks in advance.

          S Offline
          S Offline
          Shah Rizal
          wrote on last edited by
          #4

          Why not you call that asp page by using ? e.g: <iframe height="%100" width="%100" src="http://yourserver/yourfile.aspx">. But if really want to use your own method,you need to setup your http.conf and install asp extension for apache. Below are the step to run asp on your apache: 1.install Mod_AspDotNet 2.

          Add at the end of C:\Program Files\Apache Group\Apache2\conf\httpd.conf the following lines
          #asp.net
          LoadModule aspdotnet_module "modules/mod_aspdotnet.so"
          AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo

          <IfModule mod_aspdotnet.cpp>

          Mount the ASP.NET /asp application

          AspNetMount /SampleASP "c:/SampleASP"
          #/SampleASP is the alias name for asp.net to execute
          #"c:/SampleASP" is the actual execution of files/folders in that location

          Map all requests for /asp to the application files

          Alias /SampleASP "c:/SampleASP"
          #maps /SampleASP request to "c:/SampleASP"
          #now to get to the /SampleASP type http://localhost/SampleASP
          #It'll redirect http://localhost/SampleASP to "c:/SampleASP"

          Allow asp.net scripts to be executed in the /SampleASP example

          <Directory "c:/SampleASP">
          Options FollowSymlinks ExecCGI
          Order allow,deny
          Allow from all
          DirectoryIndex index.htm index.aspx
          #default the index page to .htm and .aspx
          </Directory>

          For all virtual ASP.NET webs, we need the aspnet_client files

          to serve the client-side helper scripts.

          AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
          <Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
          Options FollowSymlinks
          Order allow,deny
          Allow from all
          </Directory>
          </IfModule>
          #asp.net

          3. Test it by create your index.aspx and restart apache.

          1 Reply Last reply
          0
          • S sarang_k

            Hi, In my PHP application i want to call a asp page and then redirect to php page. I used include_once,require_once,header but still getting an error. How can i do it ? Thanks in advance.

            H Offline
            H Offline
            headspring
            wrote on last edited by
            #5

            I think you can use the function

            get_content($url)

            for get mode or post

            _content($url,$post_param)

            for post mode, you can see below. Calling another url page in the PHP page

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups