Re: [PHP] escape sequences not recognized inside an .html

2001-03-27 Thread Mauricio Junqueira

I've check the other articles and came up with the following:
1- take out the extension, html or php, inside the links in way
that I can change from .html to .php and vice-versa without worrie
to change all links.
2- and to add the .html to httpd.conf in order to all files to be parsed.

Not too beatifull but so far, I'm a litte too short in html/php and this is
going to help me to finish the job.

At first, I though that the apache it itself called php and it finds the 
escape sequence, not that the entirely file has to be parsed by php.

Thanks for your replays

Mauricio Junqueira 


wrote:

> Hi,
> I believe I am missing some configuration regarding my apache becouse
> I can only get php to work inside a file .php.
> If my page extension is .html, nothing happend with the php script; but
> just changing from .html to .php everthing works fine.
> Anyone? Anyhelp?
> 
> I'm new over php. I usually do stuff with Delphi/Builder and now I'm
> moving to web oriented programs.
> 
> Thanks for looking!
> 
> Mauricio Junqueira
> Mautec Corp.
> 


-- 
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]




Re: [PHP] escape sequences not recognized inside an .html

2001-03-27 Thread Jason Stechschulte

On Sat, Mar 24, 2001 at 09:06:36PM -0500, Mauricio Junqueira wrote:
> Hi,
> I believe I am missing some configuration regarding my apache becouse 
> I can only get php to work inside a file .php. 
> If my page extension is .html, nothing happend with the php script; but 
> just changing from .html to .php everthing works fine.
> Anyone? Anyhelp?

If you ar using a *nix system, you probably need to add:

AddType application/x-httpd-php .html

to you httpd.conf

-- 
Jason Stechschulte
[EMAIL PROTECTED]
--
/* we have tried to make this normal case as abnormal as possible */
 -- Larry Wall in cmd.c from the perl source code

-- 
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]




RE: [PHP] escape sequences not recognized inside an .html

2001-03-24 Thread Jack Dempsey

Apache needs to be told what files should be parsed as php. If php is the
only one working, then that means you have only php (maybe php3) listed in
your apache configuration. If you wanted parse every single html file (which
has been discussed in this list before--check the archives) then you would
need to add the html extension to line with php. Otherwise, they're normal
html...

jack

-Original Message-
From: Mauricio Junqueira [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 24, 2001 9:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP] escape sequences not recognized inside an .html


Hi,
I believe I am missing some configuration regarding my apache becouse
I can only get php to work inside a file .php.
If my page extension is .html, nothing happend with the php script; but
just changing from .html to .php everthing works fine.
Anyone? Anyhelp?

I'm new over php. I usually do stuff with Delphi/Builder and now I'm moving
to web oriented programs.

Thanks for looking!

Mauricio Junqueira
Mautec Corp.

--
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]




[PHP] escape sequences not recognized inside an .html

2001-03-24 Thread Mauricio Junqueira

Hi,
I believe I am missing some configuration regarding my apache becouse 
I can only get php to work inside a file .php. 
If my page extension is .html, nothing happend with the php script; but 
just changing from .html to .php everthing works fine.
Anyone? Anyhelp?

I'm new over php. I usually do stuff with Delphi/Builder and now I'm moving 
to web oriented programs.

Thanks for looking!

Mauricio Junqueira
Mautec Corp.

-- 
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]