So I'm working on some HTML in a php page, and I want to view the styling/HTML in a web browser. On my windows machine, when I drag the php file to the chrome window, it will render the HTML portions. On my mac, if I do this, it will attempt to save the php file. How do I configure it so that it renders the HTML instead of trying to save it?
Asked
Active
Viewed 1,588 times
0
-
Chrome cannot render PHP. That is done on the server side. It is possible that when you are dragging it over on your windows machine it is mapping it to where you are running a local PHP server and on your mac it is not. – afuzzyllama Apr 29 '11 at 21:44
1 Answers
1
Sounds to me like your Mac doesn't have apache turned on?
Or possibly PHP isn't enabled if you do?

Community
- 1
- 1

rivenate247
- 2,116
- 2
- 16
- 18
-
I enabled it but I don't think that's the issue. I'm wondering if it has something to do with configuring chrome – Dan Q Apr 29 '11 at 21:29
-
I tried safari and that just displays the contents of the file as text, instead of rendering the HTML elements, strange.. – Dan Q Apr 29 '11 at 22:12
-
Based on that I'm still thinking you don't have PHP enabled properly or have you not restarted apache after you enabled it? – rivenate247 Apr 29 '11 at 22:51