Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP include aspx

Status
Not open for further replies.

tswitz00

IS-IT--Management
Jan 26, 2005
67
US
We have a form writting in aspx and running on a windows server and we are trying to put it in webpage on a unix server.

I know you can use a php include to open a page inside of another page
<?php include(' ?>

but that doesnt seem to work with
<?php include(' ?>

I know you cant run asp itself on a unix server but if the form itself is running on the windows server can you not import the url through include?

Is there any other way to open that form.aspx inside of a page on our unix server without using frames?
 
Have you tried an iframe as opposed to an ordinary frame? It might be a little less messy.
I'm pretty sure you can't include anything non php (programming wise) in a php page, as the whole page will parse as php.


----------------------------------------
Sometimes, when my code just won't behave, I take it outside and make it listen to britney spears music, and when it comes back it's really well behaved. I wonder if it's suffering from post tramatic stress syndrome now..
 
you could make a socket call to that aspx page on the windows server, which would make it seem (to the windows server) like a regular browser was asking for the call, and then it would execute and return the output of the aspx script to PHP, which could then just echo it out to the unix server's web stream. This is actually fairly common.

would look something like:

$fp = fsockopen("$request = "GET /form.aspx HTTP/1.1\r\nHost: Close\r\n\r\n";
fwrite($fp, $request);
while (!feof($fp)) {
echo fgets($fp);
}
 
Thanks for the help, I think that is gonig to work.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top