473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

IIS6 - php-source

Is it possible to make IIS6 render .phps files as php-source? I haven't
been able to locate any information on this, and am beginning to believe
it's not possible.
-- Brian 'bojo' Jones
Jul 17 '05 #1
3 1384
NC
Brian "bojo" Jones wrote:

Is it possible to make IIS6 render .phps files as php-source?


I don't think so. Moreover, even Apache does this only when
PHP is installed as an Aoache module.

This said, look into highlight_file() and highlight_string():

http://www.php.net/highlight_file
http://www.php.net/highlight_string

Cheers,
NC

Jul 17 '05 #2
NC wrote:
Brian "bojo" Jones wrote:
Is it possible to make IIS6 render .phps files as php-source?

I don't think so. Moreover, even Apache does this only when
PHP is installed as an Aoache module.

This said, look into highlight_file() and highlight_string():

http://www.php.net/highlight_file
http://www.php.net/highlight_string

Cheers,
NC


Wonderful, that is exactly what I was digging around for. Thank you
very much.

-- Brian
Jul 17 '05 #3
DH
Brian "bojo" Jones wrote:
Is it possible to make IIS6 render .phps files as php-source? I haven't
been able to locate any information on this, and am beginning to believe
it's not possible.
-- Brian 'bojo' Jones


Consider writing a "hiliter.php" script to which you can pass filenames
to via an A HREF tag from a dirctory listing:
<a href="hiliter.php?f=filename.php">hiliter</a>

hiliter.php might contain something like:

$f = array_key_exists('f', $_GET)
? strip_tags(stripslashes(trim($_GET['f'])))
: '';

if(!empty($f)){

if(file_exists($f)){

$string = file_get_contents($f);

highlight_string($string);

}else{

echo '<p>unable to locate '.$f.'</p>';

}

}elseif(empty($f)){

echo "\n".'<p>Filename is empty</p>';

}
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: pbrenon | last post by:
Hello everybody, I try to install php on a 2003 server and IIS6 and It doesn't work. I had modified the mime type of the IIS server, i'd used phpinstaller one time and another time i'd do it...
4
by: Artem | last post by:
hello. this is the setup: i have 2 computers at home. one of them has a registered domain name, and is acting as a web server (runs under windows 2003 iis6). my second machine has apache...
2
by: Ramon | last post by:
Hello, I recently installed PHP and MySQL on Windows Server 2003 Web Edition (IIS6). PHP and MySQL run fine without problems. But I can't get PHP's DOMXML and XSLT extensions to work....
1
by: Ole Kramer, SFS GmbH | last post by:
We have installed PHP 5.0.1 on a Windows 2003 Server with IIS6 in ISAPI mode. The processing of .php files works fine with our basis version of the php.ini file. But, as soon as we edit the php.ini...
2
by: plank | last post by:
Hi, I am trying to install PHP using the ISAPI dll. It works fine using the EXE, but with the DLL I receive the following error message: The specified procedure could not be found. I have...
11
by: Ed Dearlove | last post by:
**Also posted in inetserver.iis newsgroup as I am unsure of where the problem lies** Hi, I have a strange problem, or I may just be stupid, but wondering if anyone can help with this one: ...
5
by: lidnia | last post by:
Hi Just thought I'd post this as I've been searching for a solution to this for ages and found nothing!! The Problem: Windows Server 2003, PHP 5 and IIS6 PHP works fine in the default...
0
by: Mike Wasilewski | last post by:
I am just setting up a win 2003 server running IIS6 , php, with pear packages installed. I am trying to get the Pear Mail package working but cannot get it to send a message and it returns no...
10
by: olafilink | last post by:
Hello, we're running an Win2003server with IIS6 and PHP4 in fastCGI config. When i try to use system() command to execute ffmpeg.exe it works ok when i run the PHP script from the commandline on...
5
by: swethak | last post by:
Hi All, I configured PHP in hosting server by following the 5 steps in the below link. Kerry Webster » Install and Configure PHP5 with IIS6 on Windows Server 2003 But the php pages are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.