dinger2121
Programmer
Hello,
I have an ASP web site, but would like to include a php script within a page. can this be done?
Thanks
I have an ASP web site, but would like to include a php script within a page. can this be done?
Thanks
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
What kind of page ?dinger2121 said:include a php script within a page
This however will make every single asp page you have be sent through the PHP interpreter regardless of whether or not there is any PHP code present in the page.PHP Online Manual said:Windows and PWS/IIS 3
The recommended method for configuring these servers is to use the REG file included with the distribution (pws-php4cgi.reg in the SAPI folder for PHP 4, or pws-php5cgi.reg in the main folder for PHP 5). You may want to edit this file and make sure the extensions and PHP install directories match your configuration. Or you can follow the steps below to do it manually.
Warning
These steps involve working directly with the Windows registry. One error here can leave your system in an unstable state. We highly recommend that you back up your registry first. The PHP Development team will not be held responsible if you damage your registry.
* Run Regedit.
* Navigate to: HKEY_LOCAL_MACHINE /System /CurrentControlSet /Services /W3Svc /Parameters /ScriptMap.
* On the edit menu select: New->String Value.
* Type in the extension you wish to use for your php scripts. For example .php [green]In your case this would be .asp[/green]
* Double click on the new string value and enter the path to php.exe in the value data field. ex: C:\php\php.exe "%s" %s for PHP 4, or C:\php\php-cgi.exe "%s" %s for PHP 5.
* Repeat these steps for each extension you wish to associate with PHP scripts.