Calling ASP page in PHP page
-
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.
look at the functions file() and file_get_contents()
Chris J www.redash.org
-
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.
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! -
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.
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 locationMap 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.net3. Test it by create your index.aspx and restart apache.
-
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.
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