Click to See Complete Forum and Search --> : PHP script to process another file ext
Hi,
I want a particular php script to process files of a particular extension eg test.abc
How can I achieve this under Win2k using IIS. I know that Apache can handle this kind of situation. Please advise. Thanks in advance.
regards
pug
corsc
09-25-2001, 02:47 AM
To do this for the entire site:
1) Open IIS
2) Right-Click on the web site and choose properties
3) Choose the 'Home directory' tab
4) Click on 'Configuration'
5) On 'App Mappings' tab, click Add
6) Enter the path for the PHP exe or dll (depending on your choice of engines)
7) Enter the Extension you want eg. .php .phtml .php3 or .abc (doesnt matter)
8) Repeat as necessary.
To do this for obnly part of the web site it is the same except you select the directory you want and then do steps 2-7
You have probably done this as part of the installation anyways so you should find more information in the how-tos on how to install PHP on IIS
Hope this helps.
Hi,
Thanks for replying. I guess I did not phrase my problem properly.
Eg
I have an PHP script called "processor.php". I have another dbm file called "data.dbm". What I want is for all files of extension ".dbm" to be processed by the script "processor.php".
Thus, the URL will be http://www.someserver.com/data.dbm. The script processor.php will parse the information in data.dbm and display the output.
Hope this helps.
rgds
pug
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.