RE: [PHP] How do i include ASP script into PHP...??!
| From: | Jason Murray | Date: | Tue, 17 Apr 2001 02:17:24 +0000 |
| Subject: | RE: [PHP] How do i include ASP script into PHP...??! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-48866@lists.php.net to get a copy of this message | ||
> $f=fopen('http://your.server/legacyscript.asp"),
> "r");
> if($f)
> {
> /*read the data from the file handle and deal with it as you
> wish - you
> might want to process it somehow, or just output it as part
> of the current
> page*/
> fclose($fp);
> }
This won't include the ASP script.
It will include the OUTPUT of the ASP script, just like hitting
a web page run by PHP will produce the OUTPUT of the PHP script.
It also won't work at all well currently because your fopen
filename quote starts with a ' and ends with a "...
Jason