phps

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


Joined: 28 Dec 2005
Posts: 9
Location: Tijuana, BC, México

PostPosted: Fri Dec 29, 2006 5:43 pm    Post subject: phps Reply with quote

I search for the forums about how to display a source using the extension .phps.

I went to SSI parameters and I found this extensions:
shtml
shtm
stm

I added the phps one and I restarted Abyss.

When I try to view, let's say hello.phps, the browser has a blank page, but when you see the source-code of the page you can see clearly the php source code.

I'm trying to display highlighted source code.

Thanks!
_________________
Source Code, plugins, skins, Nsis en español, Got IRC?.
Back to top View user's profile Send private message Visit poster's website MSN Messenger
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Dec 29, 2006 6:22 pm    Post subject: Reply with quote

Hello Joelito,

I believe the code for highlighting PHP code is the following. This is the proper
way for highlighting a PHP file.

01. Put the PHP source code in a file called "source.phps"

02. Create a new file called "view_source.php" with the following
code provided below.

Code:
<?php
highlight_file("source.phps");
?>


03. Now open your browser and browse to "view_source.php" and you will see
your highlighted PHP code. E.g.: http://localhost/view_source.php

Note: Both files need to be in the same directory, and PHP needs to be
installed before this will work. The PHPS extension is optional. I just used
it so it's easier for you to locate the file with the source.

Sincerely, Josh (TRUSTAbyss)
Back to top View user's profile Send private message Visit poster's website
Joelito
-


Joined: 28 Dec 2005
Posts: 9
Location: Tijuana, BC, México

PostPosted: Sat Dec 30, 2006 2:06 am    Post subject: Reply with quote

I that did the trick :wink: 8)
_________________
Source Code, plugins, skins, Nsis en español, Got IRC?.
Back to top View user's profile Send private message Visit poster's website MSN Messenger
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