Page 1 of 1

is Php code browser dependent

Posted: Mon Mar 12, 2007 3:21 am
by chitrapu
hiiii,
i would like to know if php code is browser dependent

Posted: Mon Mar 12, 2007 3:24 am
by volka
This forum is coded in php. Open your browser's source view for this page. Do you see any php code? No, only html/javascript, but no php code. php runs on the server, not "in" the browser.

Posted: Mon Mar 12, 2007 4:19 am
by CoderGoblin
PHP is not browser dependant, although it can get the users browser using a command get_browser.

The php is used to build HTML pages. These HTML pages may contain javascript and should contain CSS styling. It is these things that can be browser dependant. If you are aiming for a browser you will always run into this no matter how you build your pages (no matter what language). It is nothing to do with PHP.