hasanatkazmi Posted August 3, 2007 Share Posted August 3, 2007 i have following html before head of html in my page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> but when i put some php in page, that php is echoed/displayed in the page, i.e. i need to alter the declarations in html , what to do? any help plz Quote Link to comment https://forums.phpfreaks.com/topic/63237-solved-php-being-echoed/ Share on other sites More sharing options...
wildteen88 Posted August 3, 2007 Share Posted August 3, 2007 PHP is server side. You will need a server that has PHP setup. If you ahve a server with PHP then make sure you save your php code in .php files and not .html files. Quote Link to comment https://forums.phpfreaks.com/topic/63237-solved-php-being-echoed/#findComment-315175 Share on other sites More sharing options...
hasanatkazmi Posted August 3, 2007 Author Share Posted August 3, 2007 i have wamp server (apache + php) on my pc, i m not so new to php there is some other problem Quote Link to comment https://forums.phpfreaks.com/topic/63237-solved-php-being-echoed/#findComment-315178 Share on other sites More sharing options...
wildteen88 Posted August 3, 2007 Share Posted August 3, 2007 Could you post your code here. Also have you saved your code in a .php file? HTML does not change PHP's behaviour. The PHP code is parsed way before the HTML gets to the browser. Quote Link to comment https://forums.phpfreaks.com/topic/63237-solved-php-being-echoed/#findComment-315182 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.