Yep... At 00:22 21.12.2001 +0700, p13zo wrote: >i cant configure php to work on my window98 +apache 1.3 >i stop apache and edit httpd.conf with notepad and add this line (i read >this on some tutorial books) ; > >#for the apache module >LoadModule php4_module c:/php/sapi/php4apache.dll >AddType application/x-httpd-php.php4 > >#for the cgi binary (you can use that one compiled with force cgi redirect >too) >ScriptAlias /php4/ "C:/php/" >Action application/x-httpd-php4 "/php4/php.exe" >AddType application/x-httpd-php4.php
AddType should read: AddType application/x-httpd-php4 .php A space is needed before .php as it's telling Apache what extensions to send to the parser - if you do something like AddType application/x-httpd-php4 .php .phtml .php3 .php4 Apache will process all the extensions using the parser. >*please note that i dont have any clue on writing a php code, so i just type >anything the book suggest. so it could be a misstype. >anyway, i put those line after the last line of the codes inside httpd.conf. >then i move php4ts.dll to c/windows/system and copy php.ini-dist into >sysroot C:/windows/ and rename it php.ini >when done, starting apache came up with this error; > >Syntax error on line 1035 of c:/apache/conf/httpd.conf: >AddType requires at least two arguments, a mime type followed by one or mo >e extensions > >any idea what i did wrong? It should work now! :) >-- >PHP Windows Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] >To contact the list administrators, e-mail: [EMAIL PROTECTED] // Jonathan Wright // [EMAIL PROTECTED] // GCS d- s: a-- C++(+) US> P+++ L+> E> W+++ !N w !O M- V- PS+@ PE+ // Y PGP t+ !5 X R- tv(-) b(+) DI++++> D+(++) G h-- r-- z--(++) -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]