LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   php with firefox (https://www.linuxquestions.org/questions/suse-opensuse-60/php-with-firefox-4175441438/)

bscho 12-14-2012 07:28 AM

php with firefox
 
I have suse 12.2 and cannot work without php on firefox. How do I get firefox to recognize php? Any help would be appreciated.

Pearlseattle 12-14-2012 12:49 PM

Browsers (firefox, IE, Safari, Opera, ...) don't know anything about PHP - they cannot interpret it. It's what lies inbetween (apache, some framework...) that translates PHP into something that the browser can understand (html, javascript, ...).

frieza 12-14-2012 05:47 PM

php is in fact a server-side language, which means you need a web server, such as a pache
the web server i'm most familiar with is
you have to install apache, and php than configure a 'document root' for apache, put your php scripts in a folder under that, then brows to 'localhost/folder/phpscript.php'


All times are GMT -5. The time now is 08:34 PM.