View previous topic :: View next topic |
Author |
Message |
andrelamme -
Joined: 09 Oct 2003 Posts: 3
|
Posted: Mon Oct 13, 2003 4:55 pm Post subject: Embed PHP in HTML |
|
|
For those who have been having problems getting PHP to work in extensions other than PHP (e.g. embedding in html files), do the following...
Open the abyss.conf file and find a line akin to
cgiinterpreter "t:/php/php.exe" php
now simply copy and paste and edit the extension for additional items you want PHP to handle, e.g. on my machine is currently set as follows
cgiinterpreter "t:/php/php.exe" php
cgiinterpreter "t:/php/php.exe" html
cgiinterpreter "t:/php/php.exe" htm
cgiinterpreter "t:/php/php.exe" lx2
now php pops in for each of those 4 file extensions... |
|
Back to top |
|
 |
Moxxnixx -
Joined: 21 Jun 2003 Posts: 1226 Location: Florida
|
Posted: Mon Oct 13, 2003 7:02 pm Post subject: |
|
|
It actually works. :D
FYI - Don't forget to shut off and restart Abyss for changes to take effect.
Strange, how come nobody's thought of this before?
Last edited by Moxxnixx on Mon Oct 13, 2003 7:09 pm; edited 2 times in total |
|
Back to top |
|
 |
andrelamme -
Joined: 09 Oct 2003 Posts: 3
|
Posted: Mon Oct 13, 2003 7:06 pm Post subject: |
|
|
oops...forgot to mention that part |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Oct 17, 2003 3:22 pm Post subject: Re: Embed PHP in HTML |
|
|
andrelamme,
Why opening the config file and hacking it when you can do the same from the console without any problems:
Open CGI Parameters, Add a CGI Interpreter, enter t:/php/php.exe in the Interpreter field and enter php html htm l2x in the associated extensions field. Validate and restart. _________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
 |
andrelamme -
Joined: 09 Oct 2003 Posts: 3
|
Posted: Fri Oct 17, 2003 3:47 pm Post subject: old school |
|
|
I am a bit too old school, and always attempt to do things in the config file. Anybody who has dealt with web-interfaces for apache will know why I prefer editing the config files directly |
|
Back to top |
|
 |
Kent -
Joined: 12 Jan 2003 Posts: 137
|
Posted: Fri Oct 24, 2003 6:30 am Post subject: erm |
|
|
i have had my server setup this way for almost a year now so i can embed php into html pages.... no one has ever asked me if it was possible so I have never said anything about it.... |
|
Back to top |
|
 |
|