Embed PHP in HTML

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
andrelamme
-


Joined: 09 Oct 2003
Posts: 3

PostPosted: Mon Oct 13, 2003 4:55 pm    Post subject: Embed PHP in HTML Reply with quote

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 View user's profile Send private message
Moxxnixx
-


Joined: 21 Jun 2003
Posts: 1226
Location: Florida

PostPosted: Mon Oct 13, 2003 7:02 pm    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
andrelamme
-


Joined: 09 Oct 2003
Posts: 3

PostPosted: Mon Oct 13, 2003 7:06 pm    Post subject: Reply with quote

oops...forgot to mention that part
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Fri Oct 17, 2003 3:22 pm    Post subject: Re: Embed PHP in HTML Reply with quote

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 View user's profile Send private message Send e-mail
andrelamme
-


Joined: 09 Oct 2003
Posts: 3

PostPosted: Fri Oct 17, 2003 3:47 pm    Post subject: old school Reply with quote

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 View user's profile Send private message
Kent
-


Joined: 12 Jan 2003
Posts: 137

PostPosted: Fri Oct 24, 2003 6:30 am    Post subject: erm Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group