![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Hi Andy, Appreciate your quick answer. I left the HEAD section out since it wasn't relevant here. I have them on the site, of course. Thanks anyway. Checked the included scripts. Thanks for pointing me to the empty lines after the ?> I never thought to check that. Once done and deleted, this solved the problem quite quickly. Golden tip. Best regards, Michel "Andy Barfield" <abarfield_01@yahoo.com> wrote in message news:3f3ccb63@212.67.96.135... > Michel wrote: > > Hi group, > > > > I have this codeexample: > > > > <?php > > include "../includes/navbar.php"; > > include "../includes/footer.php"; > > ?> > > <HTML> > > <BODY> > > <?php print $navbar; ?> > > <?php print $footer; ?> > > </HTML> > > > I am not using any print or echo "commands" in my included php scripts. > > Why the empty lines? > > And how to get rid of 'm? > > You will probably find that there are empty lines preceding the <?php > tag in your includes, or after the ?> tag. > > If there are and you set headers in your scripts, you will get an > "Headers already sent error". > > Why are they appearing in your HTML files - blank lines oustide of the > <?php.........?> will be served tothe browser just as they are. > > As an aside - consider changing your HTML so that you have a <HEAD>.... > </HEAD> block and include a title - it's nicer to your users if the > bookmark your site and some browsers won't handle your HTML code well > without them. > > HTH, > > Andy > | |||
| Featured Websites | ||||
|
![]() |
| Tags: empty, include, lines |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| multi-lines mysql script | Paweł | PHP | 2 | 07-01-2007 3:34 PM |
| HALO 2 MEDIA FOLDER is empty | berdugoson | Console Subjects | 2 | 06-26-2007 1:28 PM |
| Lines for Wii? | invisibleskull | Computer Consoles | 4 | 05-30-2007 10:05 PM |
| cvs: pearweb /include/bugs pear-bug-accountrequest.php /include/pepr pepr.php /public_html/pepr pepr-proposal-edit.php /sql pearweb_mdb2schema.xml pepr.sql | Greg Beaver | Pear | 0 | 05-27-2007 7:47 PM |
| Featured Websites | ||||
|