The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Scripts / handy tips
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 Re: displaying php code
Author: John Prather 
Date:   26-03-03 19:32

The php source option needs to be in your httpd.conf for this to work with a line like:

AddType application/x-httpd-php-source .phps

Also, if you are still working on the file, you can symlink it so that changes you make to the .php file are displayed on php source webpage.

ln -s exampe.php example.phps

This way you won't have two copies of the same file confusing you if a slight change is made to one.

(and i think the original post meant to rename the file .phps, since one assumes the file already ends in .php)

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 displaying php code   new
Dan Langille 29-07-02 03:25 
 Re: displaying php code   new
.daniel.schrock 29-07-02 17:30 
 Re: displaying php code   new
John Prather 26-03-03 19:32 
 Re: displaying php code   new
Jeff 28-09-03 15:01 
 Re: displaying php code   new
Matthew Deville 04-11-04 13:13 
 Re: displaying php code   new
csinclair 05-09-06 19:06 
 Re: displaying php code   new
Dan 05-09-06 19:16 
 Re: displaying php code   new
csinclair 21-11-06 16:21 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org