Hi, You may be able to use HTTP remote includes: <?php include("http://www.yoursite.com/path/to/script.asp"); ?> PHP: There may be better solutions than this. Jay
I use the solution posted by Jay and works perfectly for me. Not only that, I then have PHP scripts inside the ASP page which also execute ... a check to see if user is logged in to display certain data, to do this I need to check for a cookie on the calling domain. Not sure if this is generically possible or only in my server set up but I tried it and it worked Another possibility might be to read the file into a string using file_get_contents.
HMMMmmmm ... Not sure I agree Jay, unless it is on Windows Server running PHP and you pass it the absolute path. It would be a HUUUUUGE security breach if it did read the code ... you would be able to read the code of any asp script you wanted!!! For me, if you would pass the URI, i.e: file_get_contents("hxxp://domain.com/fileasp") would read the output of the script, not the script itself...
I'm not sure what you mean. http://uk3.php.net/file_get_contents Imagine, it opens the file (imagine notepad for example), copies the code, and returns it. You see the source, it doesn't execute. Edit: I see what you mean. If you use HTTP, it's the same as my example [using include(); ] If you use relative (C:\file.asp or file.asp), then it'll read the source. Jay