Forum Moderators: coopster
Is it possible to change the default parser, somehow? So far, I've only tried playing with .htaccess file.
First I wrote
Action php-parser /path/to/php
AddType php-parser .php
Then I tried
Action application/x-httpd-php /path/to/php
So the next shot was
Action application/x-httpd-php /path/to/php
AddType application/x-httpd-php php
AddType application/x-httpd-php foo
Action php-parser /path/to/php
AddType php-parser php
So.. I'm clueless. Totally. How do I use my PHP instead of my web host's. Does anyone have a clue? I'd really appreciate one..
Thanks in advance.
And thanks for the warning, Swash. Luckily, curl is not used very often.
I configured PHP --with-curl so there should be no problem when it comes using it. I even tried the parser and curl with a .cgi file and everything works ok.
It's only that the app consists of dozens of .php files and in orded to use my PHP parser (the way I know) at the moment, I'd have to rename the files to .cgi and add the script handler on the first line. Development work of the app is not done on the web host's server but elsewhere. The list goes on.. Thus, there are multiple arguments which speak in favor of changing the default parser.
Thank you for the replies, though.
Did anyone get the idea or was I just too confusing? Is it possible to change the default parser with .htaccess?
AddType application/x-httpd-php php
And perhaps, in the Action line, quotes around the location of the binary would be worth inserting, who knows? it's all new to me. some things are platform indendant.
php has a rich variety of HTTP functions, is curl necessary?
and do web hosts realy allowing folks to run their own php binaries?
;o)
(or
The dot does not matter. It works with or without.
Quotes are not needed. (I'm not sure if they'd work at all.)
Curl is necessary because it is being used by the nasty little program I'm trying to use within my app.
And some web hosts really do allow their clients to run their own binaries. My host even provides directions how to install php parser for myself.. (Although the directions do not work, but I like the idea. :-)