Re: Apache and PHP don't quite work
--- nate <debian-user@aphroland.org> escribió:
> > 1. I put this example code in an html file:
>
> I'm not a php coder(or a coder in anything) but if you
> embed a script doesn't it have to be a .shtml ?
> try making it just a .php file
>
Turning it into a .php file worked. I was under the (mistaken) impression
that because "PHP can be embedded in html," the browser would handle it
correctly. The .shtml thing didn't work, as the browser tried to download
the file (it said the file was mime type text/x-server-parsed-html).
Why is it like that? How do I make the index.html file redirect to the
index.php file (can you tell I am totally new at this)? That way I can
enter http://localhost/ in my address bar and the get the correct PHP page?
> > 2. How do I tell Apache to only accept local connections? I tried
>
> apache doesn't use tcp_wrappers as far as I know, your best bet is to
> tell it to bind to the loopback interface I think:
>
> Listen 127.0.0.1:80
>
I'll have to give that a shot.
> something like that
>
> nate
>
-Roberto
___________________________________________________
Yahoo! Messenger - Nueva versión GRATIS
Super Webcam, voz, caritas animadas, y más...
http://messenger.yahoo.es
Reply to: