Author |
Message |
Amailer

|
Posted: Thu Apr 15, 2004 5:54 pm Post subject: View source code (phps) |
|
|
Hey,
Ahh i got a little problem, i got php installed correctly with apache.
code: |
######### ENABLE PHP #############
ScriptAlias /php/ "C:/php/"
Action application/x-httpd-php "/php/php.exe"
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
##################################
|
now, when i try to view the source code of a php file by renaming it to .phps it makes me download the file... why?? why isn't it working? |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Homer_simpson

|
Posted: Fri Apr 16, 2004 11:41 pm Post subject: (No subject) |
|
|
what did u expect it to do... it doesn't have anything to open the source.. with altho i think i'm sounding pretty wrong ...
but like u can change it to a text so it reads it like a txt... |
|
|
|
|
 |
Amailer

|
Posted: Fri Apr 16, 2004 11:49 pm Post subject: (No subject) |
|
|
it's suppose to show the souce in php coloruing the code... |
|
|
|
|
 |
Blade
|
Posted: Fri Apr 23, 2004 3:08 pm Post subject: (No subject) |
|
|
well, as far as i can see there's nothin wrong with it. but this is what i have in mine. and i am using the regular httpd.conf file that comes with the windows version with php added
code: | AddType application/x-httpd-php .php
LoadModule php4_module c:/php/sapi/php4apache2.dll
AddType application/x-httpd-php-source .phps |
|
|
|
|
|
 |
Amailer

|
Posted: Sun Apr 25, 2004 4:48 am Post subject: (No subject) |
|
|
well i just put in what you had and my apache server crashed..a nd i keeped getting a php error that it couldn't find ./php_gd2.dll  |
|
|
|
|
 |
|