har du husket at tilføje de tre linier til din httpd.conf ? ScriptAlias /php/ \"c:/php/\" AddType application/x-httpd-php .php .phtml Action application/x-httpd-php \"/php/php.exe\"
Taget fra php.net Details of installing PHP on Windows with Apache 1.3.x There are two ways to set up PHP to work with Apache 1.3.x on Windows. One is to use the CGI binary (php.exe), the other is to use the Apache module dll. In either case you need to stop the Apache server, and edit your srm.conf or httpd.conf to configure Apache to work with PHP.
Although there can be a few variations of configuring PHP under Apache, these are simple enough to be used by the newcomer. Please consult the Apache Docs for further configuration directives.
If you unziped the PHP package to C:\\PHP\\ as desribed in the General Installation Steps section, you need to insert these lines to your Apache conf file to set up the CGI binary:
ScriptAlias /php/ \"c:/php/\"
AddType application/x-httpd-php .php .phtml
Action application/x-httpd-php \"/php/php.exe\"
Remerber to restart the server, for example, NET STOP APACHE followed by NET START APACHE.
If you would like to use PHP as a module in Apache, you should move php4ts.dll to the windows/system (for Windows 9x/Me) or winnt/system32 (for Windows NT/2000) directory, overwriting any older file. Then you should add the following two lines to you Apache conf file:
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .phtml
To use the source code highlighting feature, simply create a PHP script file and stick this code in: <?php show_source (\"original_php_script.php\"); ?>. Substitute original_php_script.php with the name of the file you wish to show the source of. (This is the only way of doing so).
Note: On Win-Apache all backslashes in a path statement such as: \"c:\\directory\\file.ext\", must be converted to forward slashes.
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.