Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8225211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:20:29+00:00 2026-06-07T15:20:29+00:00

Example: This white space is rendered because of some php I use inside my

  • 0

Example:
Whitespace
This white space is rendered because of some php I use inside my headers.

How can I get rid of this whitespace?

Code who’s generating the whitespace:

<?php
global $domein;
global $domeinnaam;
global $huidigDomein;
global $get;

$domeinnaam = str_replace('www.', '', $_SERVER['SERVER_NAME']);
$domein = str_replace('.nl', '', $domeinnaam);

include('ond/inc/php/meta.php');
if(!isset($_GET['ond']))
    $_GET['ond'] = 'home';
$pagina = $_GET['ond'];

$get = new Get();
$websites = $get->alleWebsites();
$domeinen = $get->huidigDomein($domein);
$huidigDomein = $domeinen[0]->id;
showMeta($websites, $domeinen);
?>

Meta file

  <?php
require_once 'php/db.php';
require_once 'php/db_get.php';
require_once 'php/db_insert.php';
require_once 'php/db_delete.php';
require_once 'php/db_update.php';
require_once 'php/form.php';
require_once 'php/proces.php';
require_once 'php/paginas.php';
require_once 'php/phpmailer.php';
require_once 'php/uploader.php';
require_once 'php/static.php';
require_once 'php/admin.php';
require_once "fckeditor/fckeditor.php"; 
include('ond/inc/php/data.php');


function showMeta($websites, $domeinen)
{
        $rubriek = null;
        $page = null;
        $domein = $domeinen[0]->domein;
        $domeinnaam = $domeinen[0]->domein . '.nl';
        $query = "SELECT * FROM paginas AS p INNER JOIN domeinen AS d ON p.domein = d.id WHERE d.domein = '$domein' AND p.titel = 'Home'";
        $result = mysql_query($query);
        while($row = mysql_fetch_object($result))
            $content = $row->content; 


        if(isset($_GET['id']) && $_GET['ond'] == 'overzicht')
        {
            $id = $_GET['id'];
            $query = "SELECT * FROM rubrieken WHERE id = '$id'";
            $result = mysql_query($query);
            $row = mysql_fetch_object($result);
            $rubriek = 'Overzicht '. ucfirst($row->titel); 
        }
        else
        {
            if(isset($_GET['page']))
            {
                $page = ' - ';
                $page .= urldecode($_GET['page']);
            }

            $pagina = strtolower($_GET['ond']);
            if($pagina == 'home')
                $intro = 'Welkom';
            elseif($pagina == 'aankondiging')
                $intro = 'Nieuws en aankondigingen';
            else
                $intro = ucfirst($pagina);
        }

        if ($websites)
        { 
                $keywords = ucfirst($domeinnaam).', '.ucfirst($domein).', DorpeninDrenthe.nl, Meppel, Bed and Breakfast, Bed & Breakfast, Bed en breakfast, Dagattractie, Dagattracties, Bungalows, Bungalow, Hotels, Hotel, Appartementen, Appartement, Stacaravans, Stacaravan, Chalets, Chalet, Campings, Camping, Galeries, Galerie, Bedrijven, Bedrijf, Restaurants, Restaurant,';
                foreach ($websites as $website)
                { 
                        $url = str_replace("http://www.", " ", $website->url);  
                        $keywords .= strtolower($url);
                        $keywords .= ', ';
                } 

        }

        echo '<meta http-equiv="keywords" content="'.$keywords.'"/>';
        echo '<meta http-equiv="description" content="'.strip_tags(html_entity_decode($content)) .$keywords.'" />';
        echo '<meta name="Author" content="ONDReclame.nl - Meppel - J.M. Suos" />';
        echo '<meta name="Revisit-After" content="1 days" />';
        echo '<meta name="robots" content="index,follow" />';
        echo '<meta name="Title" content="'.ucfirst($domeinnaam). ' - Dorpen in Drenthe - ' . $intro . $rubriek . ' in ' . ucfirst($domein). $page .'"/>';
        echo '<title>'.ucfirst($domeinnaam). ' - Dorpen in Drenthe - ' . $intro . $rubriek . ' in ' . ucfirst($domein) . $page .' </title>';

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:20:31+00:00Added an answer on June 7, 2026 at 3:20 pm

    Seems that every included file gives you one EOL

    Try to delete last EOL after ?> or just delete ?> at all in all php files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How I can remove whitespace from a string, but only if the white space
In this very simple code example, messages get lost every once in a while.
Is it possible to re-write (Apache Mod-Rewrite) a URL from this: http://www.example.com/view.php?t=h5k6 to this
Our company web site generates feeds, but for some reason, white space is being
I have a XML node with a value which is a white space. Example:
Why do I get the white space before and after the delimiter in the
SELECT * FROM dbname WHERE text = 'a%' (this can get all the `text`
I prefer to use tab than white space (may be a little different from
I tried to implement this example to write and read data from internal storage,
Hi while trying out jni example in this link http://wendro.blogspot.com/2010/03/jni-example-eclipse-dev-cpp.html?showComment=1309930446765#c5048550711511727724 with eclipse Helios windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.