robert_gsfame Posted November 6, 2009 Share Posted November 6, 2009 I put require_once after session_start() before<html> as i will use it to run certain query when submit button was pressed <form action=<?php echo $_SERVER[php_SELF]?>. The problem is that when i run this on my mozilla browser the <title> was turned into Untitled document though i've changed my <title> into let say <title>This is my first page</title>, but when i remove the require_once then it turned into "this is my first page". So where should i put the require_once then, to have it works properly?? Quote Link to comment https://forums.phpfreaks.com/topic/180507-require_once-problem/ Share on other sites More sharing options...
rajivgonsalves Posted November 6, 2009 Share Posted November 6, 2009 depends what is there in the require/included file, if its plain php code doing some stuff it should not make any difference. if its outputting some html it might cause some problems Quote Link to comment https://forums.phpfreaks.com/topic/180507-require_once-problem/#findComment-952268 Share on other sites More sharing options...
mikesta707 Posted November 6, 2009 Share Posted November 6, 2009 just remove any html that is in the included page. Having multiple head and html tags in the same page is not valid HTML anyways. Unless you absolutely need the html. if you post the page though, I can give a more definite answer Quote Link to comment https://forums.phpfreaks.com/topic/180507-require_once-problem/#findComment-952280 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.