Re: [PHP] Parsing php in html with IIS

2004-12-16 Thread Richard Lynch
Eric Lindsey wrote:
> How do I configure my IIS server to parse a specific .html
> file for php code?  I know how to do this on apache, but windows scares
> me :-)

So far, all the answers assume he wants to have *ALL* .html files parsed
as PHP.

He only wants *ONE* *SPECIFIC* .html file parsed.

In IIS.

I'm no IIS expert, but I don't think it's flexible enough to do that. 
Microsoft is so borg-like.

Anyway, you might try mixing the answers you've got with different
directories or even the IIS version of VirtualHosts to narrow things down
to just the one .html file.

If all else fails, install Apache :-)

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Parsing php in html with IIS

2004-12-15 Thread phpninja
apache will run on windows so you shouldnt fear:)

Anyways go into the properties tab of the IIS web server, you need to
register .php as a valid file extension, there is a list of all file
extensions under that tab (its one of the tabs in there i cant
remember). Add in .php . If you've already mapped the php .dll or
whatever to parse php files in that same IIS properties area you
should be good to go after adding in that extension map..

phpninja
-Original Message-
From: Eric Lindsey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 15, 2004 2:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Parsing php in html with IIS

Gents,

How do I configure my IIS server to parse a specific .html
file for php code?  I know how to do this on apache, but windows scares
me :-)

 

THANKS!

 

Eric Lindsey

Colorado Information Technologies Inc.

http://www.coinfotech.com 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Parsing php in html with IIS

2004-12-15 Thread Greg Donald
On Wed, 15 Dec 2004 15:02:08 -0700, Eric Lindsey
<[EMAIL PROTECTED]> wrote:
> How do I configure my IIS server to parse a specific .html
> file for php code?  I know how to do this on apache, but windows scares
> me :-)

http://www.php.net/manual/en/install.windows.iis.php


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Parsing PHP

2003-07-27 Thread Jeff Moore
On Saturday, July 26, 2003, at 03:06  AM, Nikhil G. Daddikar wrote:

I am using PHP to develop and web app.

The app also has a scripting language for the *end user*. I was 
thinking if I could expose a very simple subset of PHP to them 
(foreach, if-then-else, variable assignments and comments) and then 
simply "eval" it. But I don't want them to use calls like system or do 
infinite loops etc. that will screw up the system.

I was thinking if I had a PHPparser that returns tokens, then I can 
eliminate the call to unwanted funtions, etc.

Any ideas on how I should proceed?
use smarty
http://smarty.php.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Parsing PHP

2003-07-26 Thread Peter James
There is the tokenizer extension... http://www.php.net/tokenizer

This might give you a good start.

--
Peter James
[EMAIL PROTECTED]

php|architect
The Magazine for PHP Professionals
http://www.phparch.com


- Original Message - 
From: "Nikhil G. Daddikar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 26, 2003 1:06 AM
Subject: [PHP] Parsing PHP


> I am using PHP to develop and web app.
> 
> The app also has a scripting language for the *end user*. I was thinking 
> if I could expose a very simple subset of PHP to them (foreach, 
> if-then-else, variable assignments and comments) and then simply "eval" 
> it. But I don't want them to use calls like system or do infinite loops 
> etc. that will screw up the system.
> 
> I was thinking if I had a PHPparser that returns tokens, then I can 
> eliminate the call to unwanted funtions, etc.
> 
> Any ideas on how I should proceed?
> 
> Thanks.
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] parsing PHP to create HTML only page

2002-09-27 Thread Marek Kilimajer

You can use phpnuke or similar to achieve this, all you need is to 
decide which database to use (you may use
Host: header, or directory). But sure, this won't change your dns 
records or Apache conf files.

Tony Burgess wrote:

>Hi All,
>
>I'm really just looking for some advice!
>
>I am looking to build a website which users will be able to logon and have a
>template based website generated for them, the output will have to be HTML
>so that these sites can be indexed by search engines, it will also have to
>change Apache conf files and DNS records.
>
>Perhaps someone knows of a similar open source project or could point me in
>the right direction.
>
>My idea is to create the site using PHP, making use of a number of different
>templates which will be PHP pages that have the same includes i.e
>Navigation, Header, Footer, Content etc. Once the pages have been generated
>(view source) all you have is the HTML, this is what I would like to
>achieve, but I'm unsure how to pass the pages to give me only HTML from the
>databases.
>
>Any help or advice would be greatly appreciated.
>--
>Tony Burgess
>
>
>
>  
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Parsing PHP output

2002-05-26 Thread Ray Hunter

The problem is that you are sending this output to the browser and not
the server.  You can do this with XML because IE and Netscape have XML
parsers built-in.  You should create a form that will catch the data
from CGI then handle it on the server.  There might be other work
arounds as well...however, I have only played with the XML stuff...

Thanks,

Ray Hunter



-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, May 26, 2002 12:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Parsing PHP output


Dear folks,

Has anyone ever been able to get a CGI to produce valid PHP output??

Whatever I do, my browser ALWAYS wants to open or save the non-parsed
PHP text produced by the CGI file. And yes, I have set the proper
ExecCGI and PHP entries in my vhosts.conf; and yes, I restarted the
server.

Basically, I open an existing php file (in a Perl CGI), and output its
contents again to the Apache server. The CGI starts with sending this
header:

print "Content-type: application/x-httpd-php\n\n";

Then I output the text. But, no matter what I do, it will not parse the
PHP code. I do not understand this. Regular PHP files in that dir work
fine. There is, as far as I can see, no reason why this should not work.

And the PHP file really needs to be generated from the CGI, as it needs
to run as a specific user.

Anyway, any help would be much appreciated,

- Mark



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php