Output source code not parsed code

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Jul 09, 2005 10:07 pm    Post subject: Output source code not parsed code Reply with quote

How do I output the source code of a php file? I tried using .txt file ending but it refused to work if it had html elements in it.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
p3
-


Joined: 17 Jun 2005
Posts: 615

PostPosted: Sat Jul 09, 2005 10:11 pm    Post subject: Re: Output source code not parsed code Reply with quote

The Inquisitor wrote:
How do I output the source code of a php file? I tried using .txt file ending but it refused to work if it had html elements in it.


I was actually wondering the same thing myself...
Back to top View user's profile Send private message Send e-mail
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Sat Jul 09, 2005 10:12 pm    Post subject: Re: Output source code not parsed code Reply with quote

The Inquisitor wrote:
How do I output the source code of a php file? I tried using .txt file ending but it refused to work if it had html elements in it.


On a question slightly related to this, how would I set up .phps to work in abyss?
Is it specific to the apache module or can it be done with a cgi command line arg? (E.G. php-cgi.exe -source)

As to the inquisitor -> Saving it as a txt should work fine, if not, your mime types are screwed :S
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sat Jul 09, 2005 10:15 pm    Post subject: Reply with quote

Just add .phps to the php interpreter i suppose.

I havent touched my mime types.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Sat Jul 09, 2005 10:21 pm    Post subject: Reply with quote

The Inquisitor wrote:
Just add .phps to the php interpreter i suppose.

I havent touched my mime types.


.phps, if enabled in apache, shows the source of the file (Supposedly php) with syntax highlighting, could be usefull to have.
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Jul 10, 2005 9:51 am    Post subject: Reply with quote

That would be very usful. It makes it easier to find certain parts of the script for a start.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Sun Jul 10, 2005 11:46 am    Post subject: Reply with quote

You'll be looking for the PHP highlight_file function then...

http://uk.php.net/highlight_file

That page has links to a couple of nice scripts built around that function. There's also the Beautifier.

http://www.beautifier.org/
Back to top View user's profile Send private message
AbyssUnderground
-


Joined: 31 Dec 2004
Posts: 3855

PostPosted: Sun Jul 10, 2005 3:28 pm    Post subject: Reply with quote

Thanks, Ill give it a go.
_________________
Andy (AbyssUnderground) (previously The Inquisitor)
www.abyssunderground.co.uk
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group