How to parse .php to .html
Moderator: General Moderators
How to parse .php to .html
I've done research on how to parse php code into html and found it by creating .htaccess with the following code:
Action php-script /interpreters/php-script
AddHandler php-script .php .php4 .php3 .html .htm
Therefore, I created (copy and paste the .htaccess) .htaccess at the wwwroot directory but still not working.
Does anyone has suggestion? Thank you
Action php-script /interpreters/php-script
AddHandler php-script .php .php4 .php3 .html .htm
Therefore, I created (copy and paste the .htaccess) .htaccess at the wwwroot directory but still not working.
Does anyone has suggestion? Thank you
I don't have apache installed on our Windows NT. Is there a way for me to parse php to html? I'm desperately stuck opening the .php file with password prompt. I can get in just fine internally with http://hostname/file.php just fine.
But if I go to http://www.hostname.com/file.php, I get password prompt & 401.3 ACL error. I set IUSR_machine name to read php.ini,wwwroot,c:/php directory. The funny thing is that I get CGI error if I give IUSR an execute permission for php-cgi.exe. Windows NT is way too strict!
I'm trying to work around it by parsing the php code to html, but still couldn't get it to work. If you can help me, I greatly appreciated. Desperate for solution here.
But if I go to http://www.hostname.com/file.php, I get password prompt & 401.3 ACL error. I set IUSR_machine name to read php.ini,wwwroot,c:/php directory. The funny thing is that I get CGI error if I give IUSR an execute permission for php-cgi.exe. Windows NT is way too strict!
I'm trying to work around it by parsing the php code to html, but still couldn't get it to work. If you can help me, I greatly appreciated. Desperate for solution here.
Thank you again Burrito for your valuable input. FYI, I got the php dynamic content to work using the php variable. I got this idea from your input. Thank you for that
PHP folder:
IUSR_machine (RX) (R) 1. Directory 2. File access
IWAM_machine (RX) (RX)
Administrator (ALL)
IP_Browsers (RX) (RX)
System Full Control (All)
PHP-CGI.EXE
IUSR_machine (R) 1. Directory 2. File access
IWAM_machine (RX)
Administrator (ALL)
IP_Browsers (RX)
System Full Control (All)
PHP.INI
IUSR_machine (RX)
Administrator (ALL)
Everyone (RX)
IP_Browsers (RX) (RX)
System Full Control (All)
I checked the directory setting and the anynomous checkbox is checked. Still not working.
Nonetheless, thank you so much for your input
PHP folder:
IUSR_machine (RX) (R) 1. Directory 2. File access
IWAM_machine (RX) (RX)
Administrator (ALL)
IP_Browsers (RX) (RX)
System Full Control (All)
PHP-CGI.EXE
IUSR_machine (R) 1. Directory 2. File access
IWAM_machine (RX)
Administrator (ALL)
IP_Browsers (RX)
System Full Control (All)
PHP.INI
IUSR_machine (RX)
Administrator (ALL)
Everyone (RX)
IP_Browsers (RX) (RX)
System Full Control (All)
I checked the directory setting and the anynomous checkbox is checked. Still not working.
Nonetheless, thank you so much for your input
OK guys, I think it is more than just permission problem. It could be IIS and SSL issue here. We do have SSL certification in place.
The reason that I think that it could be the problem is that I can't even open .asp, .cfm, or .shtml without getting username and password prompt.
If you have any suggestion, I would greatly appreciate it
The reason that I think that it could be the problem is that I can't even open .asp, .cfm, or .shtml without getting username and password prompt.
If you have any suggestion, I would greatly appreciate it