On Mon, Jan 16, 2012 at 12:50 AM, stephen barncard <stephenrevoluti...@barncard.com> wrote: > Thanks Michael - that did the trick. This saved me a lot of searching... > I guess making any statement would wipe out params set at a higher level. > Hierarchal - like css. > this works all around - everybody's happy > > Options +ExecCGI FollowSymLinks > AddHandler livecode-script .lc .irev > AddHandler php5-script php htm html > DirectoryIndex index.irev index.lc index.php index.html
WARNING!!!!! NEVER EVER do: AddHandler php5-script php htm html This will allow execution of PHP code inside HTML files, you don't want that. Use: AddHandler php5-script php So that only PHP files ending in .php can execute PHP code. With the former, you open yourself to potential security hazards. > Action livecode-script /cgi-bin/livecode-server/livecode-server > > > On 15 January 2012 18:33, Michael Kann <mikek...@yahoo.com> wrote: > >> -- You might have to let php in on the fun in the following line: >> AddHandler livecode-script .lc .irev >> >> http://www.webmasterworld.com/php/3127670.htm >> >> --- On Sun, 1/15/12, stephen barncard <stephenrevoluti...@barncard.com> >> wrote: >> >> From: stephen barncard <stephenrevoluti...@barncard.com> >> Subject: PHP and Livecode Server living together on Dreamhost. >> To: "How to use LiveCode" <use-livecode@lists.runrev.com> >> Date: Sunday, January 15, 2012, 5:51 PM >> >> Hi Gang, >> >> I host many livecode-driven sites on *Dreamhost* using the * >> .htaccess*method, thanks to refinements developed by Andre Garzia a >> few months back. >> This way I don't have to touch Apache, and can't because it's a shared >> server. We couldn't get it to work on the VPS server there, as DH >> virtualize a lot of Apache stuff. >> >> So I put a short file at the top of every domain folder. this (along with >> another .htaccess file in cgi-bin) allows Livecode Server to run: >> >> Options +ExecCGI FollowSymLinks >> AddHandler livecode-script .lc .irev >> DirectoryIndex index.irev index.lc index.php index.html >> Action livecode-script /cgi-bin/livecode-server/livecode-server >> >> This is a modification of a script provided in the docs. >> >> however this script seems to disallow the running of php scripts at the >> same time. >> When this top *.htaccess *script is removed then PHP works. >> >> Is there something I'm missing? >> Surely it's something I said. >> >> >> thanks in advance for any help. >> >> sqb >> -- >> >> >> >> Stephen Barncard > San Francisco Ca. USA > > more about sqb <http://www.google.com/profiles/sbarncar> > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- http://www.andregarzia.com -- All We Do Is Code. http://fon.nu -- minimalist url shortening service. _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode