Re: [PHP] php doesn't work in html files

2004-01-12 Thread Manuel Vázquez Acosta
The facts is that EVERY html (php embeded or not) will be processed by PHP, which is totally unnecesary and a waste of time. The best practice is to append the .php extension to your php files. If your your working for production you must consider that your host provider won't agree to put his ser

RE: [PHP] php doesn't work in html files

2004-01-12 Thread Nico Berg
Hi, It works. I decided to add .html to the list of extensions that will be opend by php if asked for in apache. I understand here that it will take more time before html files are processed? True? Thanks all, Nico Berg > -Oorspronkelijk bericht- > Van: Nico Berg [mailto:[EMAIL PROTECTED

Re: [PHP] php doesn't work in html files

2004-01-11 Thread Chris Shiflett
--- Nico Berg <[EMAIL PROTECTED]> wrote: > I use Apache version 1.3 and WIndows 2000. [snip] > echo "this is the second line"; > ?> > > Output is: This is a line > > So the php part is not done at all. Do you have PHP installed? Chris = Chris Shiflett - http://shiflett.org/ PHP Securit

Re: [PHP] php doesn't work in html files

2004-01-11 Thread Kelly Hallman
On Sun, 11 Jan 2004, MadHD wrote: > Try to rename the .html file in .php (index.html -> index.php) and test > it. You can reconfigure apache to pass all .html files to php compiler > but i don't recommend it because it reduce drastically the performance. ...IF those .html files don't mostly all co

Re: [PHP] php doesn't work in html files

2004-01-11 Thread MadHD
- Original Message - From: "Nico Berg" To: "'PHP General'" Sent: Sunday, January 11, 2004 2:04 PM Subject: [PHP] php doesn't work in html files > Hi there all, > > I use Apache version 1.3 and WIndows 2000. The site is not global but only > local so I use the url http://localhost/index.ht

Re: [PHP] php doesn't work in html files

2004-01-11 Thread Jason Wong
On Sunday 11 January 2004 21:04, Nico Berg wrote: > I use Apache version 1.3 and WIndows 2000. The site is not global but only > local so I use the url http://localhost/index.html > > This index.html look's like this: [snip] > So the php part is not done at all. Is that right? I always believed

Re: [PHP] php doesn't work in html files

2004-01-11 Thread Stuart
Nico Berg wrote: Hi there all, This index.html look's like this: This is a line Output is: This is a line So the php part is not done at all. Is that right? I always believed php should work in html? Assuming you have the web server set up according to PHP's installation docs, you either nee