Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 View source code (phps)
Index -> Programming, PHP -> PHP Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Amailer




PostPosted: 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
Sponsor
sponsor
Homer_simpson




PostPosted: 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 ... Confused Laughing
but like u can change it to a text so it reads it like a txt...
Amailer




PostPosted: Fri Apr 16, 2004 11:49 pm   Post subject: (No subject)

it's suppose to show the souce in php coloruing the code...
Blade




PostPosted: 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




PostPosted: 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 Neutral
Display posts from previous:   
   Index -> Programming, PHP -> PHP Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: