RE: [PHP] PHP in HTML

2002-05-16 Thread Peter

true there's not that much difference .. though it would depend on the
server's connection speed as well as the machines "grunt" as to how much of
a difference there is.

-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Friday, 17 May 2002 4:40 PM
To: Peter
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP in HTML


Do you really find it noticeable quicker? Benchmarks I've seen (none of
them that current) don't seem to support that. Depending on the software
versions involved, it seems to be anywhere from much faster through PHP to
a few % slower. Certainly no major penalty in any case.

If there's interest I'd be willing to do some benchmarks on a few
different setups to see where things stand with current software.

miguel

On Fri, 17 May 2002, Peter wrote:
> I find it better than having every page go thru php not to mention
quicker.
>
>
>
> -Original Message-
> From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 17 May 2002 3:52 PM
> To: Peter
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] PHP in HTML
>
>
> On Fri, 17 May 2002, Peter wrote:
> >> there are also possible good reasons for sending .html files through
> >> php. like if you don't want users to know that your website is written
> >> in php.
> >
> > a better way to do that would be to make up your own extension so
> > instead of having your server use .php for php files make it use .web or
> > what ever you like ...
>
> Why is that better?
>
> There are certain little weirdnesses that crop up when HTML pages have
> file names that fool lesser platforms into thinking they're not HTML,
> especially when they try to save them locally.
>
> miguel
>
>
>
>



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




RE: [PHP] PHP in HTML

2002-05-16 Thread Miguel Cruz

Do you really find it noticeable quicker? Benchmarks I've seen (none of
them that current) don't seem to support that. Depending on the software
versions involved, it seems to be anywhere from much faster through PHP to
a few % slower. Certainly no major penalty in any case.

If there's interest I'd be willing to do some benchmarks on a few 
different setups to see where things stand with current software.

miguel

On Fri, 17 May 2002, Peter wrote:
> I find it better than having every page go thru php not to mention quicker.
> 
> 
> 
> -Original Message-
> From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 17 May 2002 3:52 PM
> To: Peter
> Cc: [EMAIL PROTECTED]
> Subject: RE: [PHP] PHP in HTML
> 
> 
> On Fri, 17 May 2002, Peter wrote:
> >> there are also possible good reasons for sending .html files through
> >> php. like if you don't want users to know that your website is written
> >> in php.
> > 
> > a better way to do that would be to make up your own extension so
> > instead of having your server use .php for php files make it use .web or
> > what ever you like ...
> 
> Why is that better? 
> 
> There are certain little weirdnesses that crop up when HTML pages have 
> file names that fool lesser platforms into thinking they're not HTML, 
> especially when they try to save them locally.
> 
> miguel
> 
> 
> 
> 


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




RE: [PHP] PHP in HTML

2002-05-16 Thread Peter

I find it better than having every page go thru php not to mention quicker.



-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Friday, 17 May 2002 3:52 PM
To: Peter
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] PHP in HTML


On Fri, 17 May 2002, Peter wrote:
>> there are also possible good reasons for sending .html files through
>> php. like if you don't want users to know that your website is written
>> in php.
> 
> a better way to do that would be to make up your own extension so
> instead of having your server use .php for php files make it use .web or
> what ever you like ...

Why is that better? 

There are certain little weirdnesses that crop up when HTML pages have 
file names that fool lesser platforms into thinking they're not HTML, 
especially when they try to save them locally.

miguel



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




RE: [PHP] PHP in HTML

2002-05-16 Thread Miguel Cruz

On Fri, 17 May 2002, Peter wrote:
>> there are also possible good reasons for sending .html files through
>> php. like if you don't want users to know that your website is written
>> in php.
> 
> a better way to do that would be to make up your own extension so
> instead of having your server use .php for php files make it use .web or
> what ever you like ...

Why is that better? 

There are certain little weirdnesses that crop up when HTML pages have 
file names that fool lesser platforms into thinking they're not HTML, 
especially when they try to save them locally.

miguel


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




Re: [PHP] PHP in HTML

2002-05-16 Thread Jason Wong

On Friday 17 May 2002 13:33, Jerome Houston wrote:
> yeah, just find in your web server where to tell it what kind of files to
> send through php.
>
> there are also possible good reasons for sending .html files through php.
> like if you don't want users to know that your website is written in php.

Unless it has been configured otherwise, they can tell from the HTTP headers 
that you're using php.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
A student who changes the course of history is probably taking an exam.
*/


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




RE: [PHP] PHP in HTML

2002-05-16 Thread Peter




there are also possible good reasons for sending .html files through php.
like if you don't want users to know that your website is written in php.

-jerome



a better way to do that would be to make up your own extension so instead of
having your server use .php for php files make it use .web or what ever you
like ...


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




Re: [PHP] PHP in HTML

2002-05-16 Thread Jerome Houston

yeah, just find in your web server where to tell it what kind of files to 
send through php.

there are also possible good reasons for sending .html files through php.  
like if you don't want users to know that your website is written in php.

-jerome


Original Message Follows
From: Justin French <[EMAIL PROTECTED]>
To: Jeremy <[EMAIL PROTECTED]>

Your Apache config file will be set to only parse PHP pages if they have the
.php extension this is a feature, not a big, because otherwise every
html page on your server will be parsed, rather than just the php ones...
you could modify your apache config iff you wished, but I wouldn't.  .html
for HTML, .php for PHP, all is well.

Justin French


on 17/05/02 12:14 PM, Jeremy ([EMAIL PROTECTED]) wrote:

 > Hi Folks,
 >
 > A simple question that has me puzzled, obviously I have a config file 
wrong
 > somewhere..
 >
 > Why does a filename.php file run as php and a filename.html with php code
 > embedded not produce a php result?
 >
 > cheers,
 >
 > Jeremy Burton
 > Senior Consultant
 > PERTH TOURIST LOUNGE
 >
 > Level 2 Carillon City
 > Murray Street, Perth
 > Ph: +618 9229 2238
 > Fax: +618 9229 2220
 > Email: [EMAIL PROTECTED]
 >
 >
 >


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





_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




RE: [PHP] PHP in HTML

2002-05-16 Thread Peter

if your using apache for you web server .. in httpd.conf you can set it so
you have the following config..
(this is on windows but same basically applies to other OS's)

LoadModule php4_module c:/phpdev/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .html

this will enable .html files to be run through php at the moment you'd have
like this

LoadModule php4_module c:/phpdev/php/sapi/php4apache.dll
AddType application/x-httpd-php .php

there for .html are not run through php and there for the php code in there
is not going to be of use..

hope that helped.



-Original Message-
From: Jeremy [mailto:[EMAIL PROTECTED]]
Sent: Friday, 17 May 2002 12:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP in HTML


Hi Folks,

A simple question that has me puzzled, obviously I have a config file wrong
somewhere..

Why does a filename.php file run as php and a filename.html with php code
embedded not produce a php result?

cheers,

Jeremy Burton
Senior Consultant
PERTH TOURIST LOUNGE

Level 2 Carillon City
Murray Street, Perth
Ph: +618 9229 2238
Fax: +618 9229 2220
Email: [EMAIL PROTECTED]




--
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] PHP in HTML

2002-05-16 Thread Justin French

Your Apache config file will be set to only parse PHP pages if they have the
.php extension this is a feature, not a big, because otherwise every
html page on your server will be parsed, rather than just the php ones...
you could modify your apache config iff you wished, but I wouldn't.  .html
for HTML, .php for PHP, all is well.

Justin French


on 17/05/02 12:14 PM, Jeremy ([EMAIL PROTECTED]) wrote:

> Hi Folks,
> 
> A simple question that has me puzzled, obviously I have a config file wrong
> somewhere..
> 
> Why does a filename.php file run as php and a filename.html with php code
> embedded not produce a php result?
> 
> cheers,
> 
> Jeremy Burton
> Senior Consultant
> PERTH TOURIST LOUNGE
> 
> Level 2 Carillon City
> Murray Street, Perth
> Ph: +618 9229 2238
> Fax: +618 9229 2220
> Email: [EMAIL PROTECTED]
> 
> 
> 


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




Re: [PHP] php in html-- what gives?

2001-07-24 Thread Ben Bleything

Put it in a .php file.  Your webserver probably doesn't interpret PHP in
HTML files (as is proper).  If it MUST be in a HTML file, you'll have to
set up your webserver to interpret php in html files... that process
depends on your webserver.

Ben

On Tue, 24 Jul 2001, CGI GUY wrote:

> I'm trying to test the following:
>
> I have created a simple cookie script:
>
>  if (!IsSet($session)) {
> $cookievalue = md5(uniqid(rand()));
> setcookie('session', $cookievalue, mktime
> (8,0,0,7,31,2001));
> } else {
> mail("[EMAIL PROTECTED]", "cookie", $session);
> }
> ?>
>
> I have placed it in an html page, at the very top (no
> spaces, lines, etc.), and have left no lines/spaces
> between the '?>' and '' tags. Yet the script
> does not execute (nor does it return an error of any
> kind). What gives?!?!
>
>
> __
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]