hi
i have a mac and am starting to learn the basis of php. I am trying to make a PHP document in a text editor called "BBEdit lite for mac os x" however when i save the code as main.php and open it in my browsers, "firefox" "opera" and "safari" it just shows the text code i am using. please help
Thanks
New to PHP
Moderator: General Moderators
You need something that parses the php script.
Often that's php installed as module of a webserver.
see http://www.php.net/manual/en/install.php
You might also be interested in http://www.apachefriends.org/en/xampp.html
Often that's php installed as module of a webserver.
see http://www.php.net/manual/en/install.php
You might also be interested in http://www.apachefriends.org/en/xampp.html
Just to clarify a little:
As Volta implied, PHP is not interpreted by browsers, so you cannot just point your browser at your PHP script. It is interpreted by the web server before being sent to the browser, so the browser only receives the results of processing the script. Another way of saying it is that PHP is server side technology.
As Volta implied, PHP is not interpreted by browsers, so you cannot just point your browser at your PHP script. It is interpreted by the web server before being sent to the browser, so the browser only receives the results of processing the script. Another way of saying it is that PHP is server side technology.