Jump to content

[SOLVED] Going crazy. PHP tears layout apart.


Recommended Posts

Okay, I have a weird problem with my PHP.

I added a domainname check on my website, except it causes some problem in Mozilla Firefox.

Check for yourself (with Firefox):

http://www.directhosting.nl/carpediem/layout.php

If you enter a domainname and let "alles" (=all) stay checked, press "Controleer".
You will now notice it tears up the layout while it searches for the domainname availability.

I also made a screenshot, so you can understand the problem I am facing.
[url=http://www.directhosting.nl/carpediem/tearing.jpg]http://www.directhosting.nl/carpediem/tearing.jpg[/url]

It only does this in Firefox and when it looks up domainnames. After the search is done and it displays the results; it shows perfectly.
In Internet Explorer it just shows the background of the website, while it's loading. Though not professional, it looks better then the result in Firefox.

Any one who has an idea what's causing this? I also tried numerous of other WHOIS scripts, but all with the same result. :(
If anyone can provide me with a solution, workaround or anything... Please do! :)

Thanks a million...

/edit

Btw the code for the WHOIS is just one PHP file, from I copied the code and pasted it in my layout.
It's the order that you have things in the PHP file that's causing this.

You're obviously outputting some HTML before searching the whois database, then searching the database and returning the data, then finally outputting the rest of the HTML.  You should probably process the form at the top of the page, get the results, and then output all the HTML with the info in.

Or alternatively, maybe try using the output buffer.

Regards
Huggie
First thanks for taking the time to answer.

Well I just tried placing some off the PHP stuff in the top of my website.
But it only resulted in no domain lookup results at all.

I will try fooling around a bit more, but without a clue on what to do, I think I won't get the result I wish.
Well I hope it helps;

[code]
<table id="domeinnaamchecker" width="538" height="66" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3"><img src="images/cdomeinnaamcheck.jpg" width="538" height="46" /></td>
  </tr>
  <tr>
    <td width="14" height="100%" background="images/laatstenieuws_02.jpg">&nbsp;</td>
    <td width="510" height="100%" nowrap="nowrap" bgcolor="FFFFFF"><table width="510" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" nowrap="nowrap"><?php
    function checkDomain($domain,$server,$findText){
        // Open a socket connection to the whois server
        $con = fsockopen($server, 43);
        if (!$con) return false;
       
        // Send the requested doman name
        fputs($con, $domain."\r\n");
       
        // Read and store the server response
        $response = ' :';
        while(!feof($con)) {
            $response .= fgets($con,128);
        }
       
        // Close the connection
        fclose($con);
       
        // Check the response stream whether the domain is available
        if (strpos($response, $findText)){
            return true;
        }
        else {
            return false; 
        }
    }
   
    function showDomainResult($domain,$server,$findText){
      if (checkDomain($domain,$server,$findText)){
          echo "<tr><td width=\"222\" align=\"left\">$domain</td><td width=\"50\" align=\"center\"><span class=\"dhvrij\">vrij</span></td></tr>";
      }
      else echo "<tr><td width=\"222\">$domain</td><td width=\"50\" align=\"center\"><span class=\"dhbezet\">bezet</span></td></tr>";
    }
?>
            <br />
            <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="domain" id="domain">
              <table width="510" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td align="center">www.
                  <input class="text" name="domainname" type="text" size="36" /></td>
                </tr>
                <tr>
                  <td height="25" align="center" valign="middle"><br />
                    <table width="510" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="12%" height="20">&nbsp;</td>
    <td width="22%" height="20"><input type="checkbox" name="nl"/>
.nl</td>
    <td width="22%" height="20"><input type="checkbox" name="be" />
.be</td>
    <td width="22%" height="20"><input type="checkbox" name="de" />
.de </td>
    <td width="22%" height="20"><input type="checkbox" name="eu" />
.eu</td>
  </tr>
  <tr>
    <td width="12%" height="20">&nbsp;</td>
    <td width="22%" height="20"><input type="checkbox" name="com" />
.com </td>
    <td width="22%" height="20"><input type="checkbox" name="net" />
.net </td>
    <td width="22%" height="20"><input type="checkbox" name="org" />
.org </td>
    <td width="22%" height="20"><input type="checkbox" name="info" />
.info </td>
  </tr>
  <tr>
    <td width="12%" height="20">&nbsp;</td>
    <td width="22%" height="20"><input type="checkbox" name="biz" />
.biz </td>
    <td width="22%" height="20"><input type="checkbox" name="nu" />
.nu </td>
    <td width="22%" height="20"><input type="checkbox" name="name" />
.name </td>
    <td width="22%" height="20"><input type="checkbox" name="ws" />
.ws </td>
  </tr>
  <tr>
    <td width="12%" height="20">&nbsp;</td>
    <td width="22%" height="20"><input type="checkbox" name="tv" />
.tv </td>
    <td width="22%" height="20"><input type="checkbox" name="co.uk" />
.co.uk </td>
    <td width="22%" height="20"><input type="checkbox" name="mobi" />
.mobi </td>
    <td width="22%" height="20"><input type="checkbox" name="cc" />
.cc</td>
  </tr>
  <tr>
    <td width="12%" height="20">&nbsp;</td>
    <td width="22%" height="20"><input type="checkbox" name="ca" />
.ca </td>
    <td width="22%" height="20"><input name="alle" type="checkbox" checked="checked" />
      alles</td>
    <td width="22%" height="20">&nbsp;</td>
    <td width="22%" height="20">&nbsp;</td>
  </tr>
</table></td>
                </tr>
                <tr>
                  <td align="center" valign="middle"><br/>
                      <input class="text" type="submit" name="submitBtn" value="Controleer" /></td>
                </tr>
              </table>
            </form>
          <?php   
    if (isset($_POST['submitBtn'])){
        $domainbase = (isset($_POST['domainname'])) ? $_POST['domainname'] : '';
        $d_all      = (isset($_POST['alle'])) ? 'alle' : '';   
        $d_nl      = (isset($_POST['nl'])) ? 'nl' : '';   
        $d_be      = (isset($_POST['be'])) ? 'be' : ''; 
        $d_de      = (isset($_POST['de'])) ? 'de' : '';   
        $d_eu      = (isset($_POST['eu'])) ? 'eu' : '';   
        $d_com      = (isset($_POST['com'])) ? 'com' : '';
$d_net      = (isset($_POST['net'])) ? 'net' : '';   
        $d_org      = (isset($_POST['org'])) ? 'org' : '';   
        $d_info      = (isset($_POST['info'])) ? 'info' : '';
$d_biz      = (isset($_POST['biz'])) ? 'biz' : '';   
        $d_nu      = (isset($_POST['nu'])) ? 'nu' : '';   
        $d_name      = (isset($_POST['name'])) ? 'name' : ''; 
$d_ws      = (isset($_POST['ws'])) ? 'ws' : '';   
        $d_tv      = (isset($_POST['tv'])) ? 'tv' : '';   
        $d_couk      = (isset($_POST['co.uk'])) ? 'co.uk' : ''; 
$d_mobi    = (isset($_POST['mobi'])) ? 'mobi' : '';   
        $d_cc    = (isset($_POST['cc'])) ? 'cc' : '';   
        $d_ca      = (isset($_POST['ca'])) ? 'ca' : '';               
        // Check domains only if the base name is big enough
        if (strlen($domainbase)>2){
?>
            <hr />
          <table width="272px">
              <?php       
        if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".nl",'whois.domain-registry.nl','is free');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".be",'whois.dns.be','FREE');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".de",'whois.nic.de','free');
if (($d_eu != '') || ($d_all != '') ) showDomainResult($domainbase.".eu",'whois.eu','FREE');
if (($d_com != '') || ($d_all != '') ) showDomainResult($domainbase.".com",'whois.crsnic.net','No match for');
            if (($d_net != '') || ($d_all != '') ) showDomainResult($domainbase.".net",'whois.crsnic.net','No match for');
            if (($d_org != '') || ($d_all != '') ) showDomainResult($domainbase.".org",'whois.publicinterestregistry.net','NOT FOUND');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".info",'whois.afilias.net','not found');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".biz",'whois.nic.biz','not found');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".nu",'whois.nic.nu','not found');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".name",'whois.nic.name','no match');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".ws",'whois.ripe.net','No entries found');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".tv",'whois.nic.tv','no match');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".couk",'whois.nic.uk','no match');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".mobi",'whois.dotmobiregistry.net','is free');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".cc",'whois.domain-registry.nl','is free');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".ca",'whois.cira.ca','is free');
                    ?>
            </table>
          <?php           
        }
    }
?>
            <hr />        </td>
      </tr>
      <tr>
        <td align="center"><span class="pa">Aan de resultaten van de domeinnaamcheck kunnen geen rechten worden ontleend.<br />
          <br />
        </span></td>
      </tr>
    </table> </td>
    <td width="14" height="100%" background="images/laatstenieuws_04.jpg">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/laatstenieuws_05.jpg" width="538" height="18" alt="" /></td>
  </tr>
</table>
[/code]

In the meantime I will look for another WHOIS script. Cause the problem which I had with a different WHOIS-script, is the same I now have with this script. While the other one was much nicer. :)
I use includes, to display stuff in the place I want it to display.

My best guess is, you want to see the layout.php?

[code]
<html>
<head>
<title>Directhosting // www.directhosting.nl</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="main.css" />
</head>
<body>

<table width="1024" height="360" border="0" align="center" cellpadding="0" cellspacing="0" id="layout">
<tr>
<td height="118" colspan="5"><?php include("header.php"); ?></td>
</tr>
<tr>
<td height="42" colspan="5"><?php include("tspacer.php"); ?></td>
</tr>
<tr>
<td colspan="5">
<img src="images/layout_03.jpg" width="1024" height="19" alt=""></td>
</tr>
<tr>
<td width="20" height="100%" background="images/layout_04.jpg">&nbsp;</td>
<td width="152" valign="top" bgcolor="217fbd"><?php include("navigatie.php"); ?></td>
<td width="538" valign="top" bgcolor="217fbd">

<?php
if ( isset($_GET['nieuws'])) {include('nieuws.php'); }
else if ( isset($_GET['directhosting'])) {include('overons.php'); }
else if ( isset($_GET['netwerk'])) {include('netwerk.php'); }
else if ( isset($_GET['overzicht'])) {include('overzicht.php'); }
else if ( isset($_GET['koper'])) {include('koper.php'); }
else if ( isset($_GET['brons'])) {include('brons.php'); }
else if ( isset($_GET['zilver'])) {include('zilver.php'); }
else if ( isset($_GET['goud'])) {include('goud.php'); }
else if ( isset($_GET['platina'])) {include('platina.php'); }
else if ( isset($_GET['titanium'])) {include('titanium.php'); }
else if ( isset($_GET['pakket'])) {include('pakket.php'); }
else if ( isset($_GET['algemeen'])) {include('algemeen.php'); }
else if ( isset($_GET['prijzen'])) {include('prijzen.php'); }
else if ( isset($_GET['formulieren'])) {include('formulieren.php'); }
else if ( isset($_GET['check'])) {include('domeinnaamcheck.php'); }
else if ( isset($_GET['domeinnaam'])) {include('domeinnaam.php'); }
else if ( isset($_GET['informatie'])) {include('informatie.php'); }
else if ( isset($_GET['prijsoverzicht'])) {include('prijsoverzicht.php'); }
else if ( isset($_GET['server'])) {include('server.php'); }
else if ( isset($_GET['faq'])) {include('kb/index.php'); }
else if ( isset($_GET['abuse'])) {include('abuse.php'); }
else if ( isset($_GET['spam'])) {include('spam.php'); }
else if ( isset($_GET['contact'])) {include('contact.php'); }
else if ( isset($_GET['voorwaarden'])) {include('voorwaarden.php'); }
else if ( isset($_GET['referenties'])) {include('test.php'); }
else if ( isset($_GET['nieuwsalgemeen'])) {include('nalgemeen.php'); }
else if ( isset($_GET['nieuwsnetwerk'])) {include('nnetwerk.php'); }
else if ( isset($_GET['nieuwsarchief'])) {include('archief.php'); }
else if ( isset($_GET['acties'])) {include('actie.php'); }
else if ( isset($_GET['snelheid'])) {include('snelheid.php'); }
else if ( isset($_GET['plesk'])) {include('plesk.php'); }
else if ( isset($_GET['virusmelding'])) {include('virusmeldingen.php'); }
else if ( isset($_GET['tweakers'])) {include('tweakers.php'); }
else if ( isset($_GET['webwereld'])) {include('webwereld.php'); }
else if ( isset($_GET['binnenland'])) {include('binnenland.php'); }
else if ( isset($_GET['buitenland'])) {include('buitenland.php'); }
else {include('domeinnaamcheck.php');}
?>

</td>
<td width="294" valign="top" bgcolor="217fbd">
<?php include("acties.php"); ?>
<?php include("partners.php"); ?></td>
<td width="20" height="100%" background="images/layout_08.jpg">&nbsp;</td>
</tr>
<tr>
<td colspan="5">
<img src="images/layout_09.jpg" width="1024" height="12" alt=""></td>
</tr>
<tr>
<td height="42" colspan="5"><?php include("bspacer.php"); ?></td>
</tr>
<tr>
<td height="61" colspan="5"><?php include("footer.php"); ?></td>
</tr>
</table>

</body>
</html>
[/code]


Btw the way, if you check the website again and click on "Referenties" (at the bottom in the navigation), you will see it does the same with a different WHOIS-script. The one I wanted more. :)

Looks okay in IE, but ruins it in Firefox. I think my coding/html is somewhere wrong. Like you said. But I cannot find it.
[quote author=HHawk link=topic=119093.msg487319#msg487319 date=1166452911]
Bah... Tried several things. It won't work.  Maybe I should try a crappy perl whois script.
[/quote]

It's not the script, it's the layout!  It doesn't matter which script you use, they'll all produce the same results.

I'll take a look at this when I get home this evening and see how to work around it.

Regards
Huggie
Ah okay... I figured it was my coding. Man this just really sucks, cause I was faced with this problem on wednesday last week. So I decided on friday evening, that I would try again on monday. But same result.

And since I don't know much about PHP, I cannot figure out what is causing it.
Cause most of the time when I have an obstacle, I try and try again or figure out another way to fix it. But this time nada. So thanks again in advance. :)
I'm afraid I didn't get a chance to look, but replace the code you posted earlier with this and see if it makes much of a difference.  It's buffering the output of that entire table, so it shouldn't print the start of that table until it has all of the results.

[code]
<?php
  // Start buffering the output
  ob_start();
?>

<table id="domeinnaamchecker" width="538" height="66" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="3"><img src="images/cdomeinnaamcheck.jpg" width="538" height="46" /></td>
  </tr>
  <tr>
    <td width="14" height="100%" background="images/laatstenieuws_02.jpg">&nbsp;</td>
    <td width="510" height="100%" nowrap="nowrap" bgcolor="FFFFFF"><table width="510" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="center" nowrap="nowrap">
            <br />
            <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="domain" id="domain">
              <table width="510" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td align="center">www.
                  <input class="text" name="domainname" type="text" size="36" /></td>
                </tr>
                <tr>
                  <td height="25" align="center" valign="middle"><br />
                    <table width="510" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="12%" height="20">&nbsp;</td>
    <td width="22%" height="20"><input type="checkbox" name="nl"/>
.nl</td>
    <td width="22%" height="20"><input type="checkbox" name="be" />
.be</td>
    <td width="22%" height="20"><input type="checkbox" name="de" />
.de </td>
    <td width="22%" height="20"><input type="checkbox" name="eu" />
.eu</td>
  </tr>
  <tr>
    <td width="12%" height="20">&nbsp;</td>
    <td width="22%" height="20"><input type="checkbox" name="com" />
.com </td>
    <td width="22%" height="20"><input type="checkbox" name="net" />
.net </td>
    <td width="22%" height="20"><input type="checkbox" name="org" />
.org </td>
    <td width="22%" height="20"><input type="checkbox" name="info" />
.info </td>
  </tr>
  <tr>
    <td width="12%" height="20">&nbsp;</td>
    <td width="22%" height="20"><input type="checkbox" name="biz" />
.biz </td>
    <td width="22%" height="20"><input type="checkbox" name="nu" />
.nu </td>
    <td width="22%" height="20"><input type="checkbox" name="name" />
.name </td>
    <td width="22%" height="20"><input type="checkbox" name="ws" />
.ws </td>
  </tr>
  <tr>
    <td width="12%" height="20">&nbsp;</td>
    <td width="22%" height="20"><input type="checkbox" name="tv" />
.tv </td>
    <td width="22%" height="20"><input type="checkbox" name="co.uk" />
.co.uk </td>
    <td width="22%" height="20"><input type="checkbox" name="mobi" />
.mobi </td>
    <td width="22%" height="20"><input type="checkbox" name="cc" />
.cc</td>
  </tr>
  <tr>
    <td width="12%" height="20">&nbsp;</td>
    <td width="22%" height="20"><input type="checkbox" name="ca" />
.ca </td>
    <td width="22%" height="20"><input name="alle" type="checkbox" checked="checked" />
      alles</td>
    <td width="22%" height="20">&nbsp;</td>
    <td width="22%" height="20">&nbsp;</td>
  </tr>
</table></td>
                </tr>
                <tr>
                  <td align="center" valign="middle"><br/>
                      <input class="text" type="submit" name="submitBtn" value="Controleer" /></td>
                </tr>
              </table>
            </form>
            <hr />
          <table width="272px">
<?php
    function checkDomain($domain,$server,$findText){
        // Open a socket connection to the whois server
        $con = fsockopen($server, 43);
        if (!$con) return false;
       
        // Send the requested doman name
        fputs($con, $domain."\r\n");
       
        // Read and store the server response
        $response = ' :';
        while(!feof($con)) {
            $response .= fgets($con,128);
        }
       
        // Close the connection
        fclose($con);
       
        // Check the response stream whether the domain is available
        if (strpos($response, $findText)){
            return true;
        }
        else {
            return false; 
        }
    }
   
    function showDomainResult($domain,$server,$findText){
      if (checkDomain($domain,$server,$findText)){
          echo "<tr><td width=\"222\" align=\"left\">$domain</td><td width=\"50\" align=\"center\"><span class=\"dhvrij\">vrij</span></td></tr>";
      }
      else echo "<tr><td width=\"222\">$domain</td><td width=\"50\" align=\"center\"><span class=\"dhbezet\">bezet</span></td></tr>";
    }

    if (isset($_POST['submitBtn'])){
        $domainbase = (isset($_POST['domainname'])) ? $_POST['domainname'] : '';
        $d_all      = (isset($_POST['alle'])) ? 'alle' : '';   
        $d_nl      = (isset($_POST['nl'])) ? 'nl' : '';   
        $d_be      = (isset($_POST['be'])) ? 'be' : ''; 
        $d_de      = (isset($_POST['de'])) ? 'de' : '';   
        $d_eu      = (isset($_POST['eu'])) ? 'eu' : '';   
        $d_com      = (isset($_POST['com'])) ? 'com' : '';
$d_net      = (isset($_POST['net'])) ? 'net' : '';   
        $d_org      = (isset($_POST['org'])) ? 'org' : '';   
        $d_info      = (isset($_POST['info'])) ? 'info' : '';
$d_biz      = (isset($_POST['biz'])) ? 'biz' : '';   
        $d_nu      = (isset($_POST['nu'])) ? 'nu' : '';   
        $d_name      = (isset($_POST['name'])) ? 'name' : ''; 
$d_ws      = (isset($_POST['ws'])) ? 'ws' : '';   
        $d_tv      = (isset($_POST['tv'])) ? 'tv' : '';   
        $d_couk      = (isset($_POST['co.uk'])) ? 'co.uk' : ''; 
$d_mobi    = (isset($_POST['mobi'])) ? 'mobi' : '';   
        $d_cc    = (isset($_POST['cc'])) ? 'cc' : '';   
        $d_ca      = (isset($_POST['ca'])) ? 'ca' : '';               
        // Check domains only if the base name is big enough
        if (strlen($domainbase)>2){

        if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".nl",'whois.domain-registry.nl','is free');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".be",'whois.dns.be','FREE');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".de",'whois.nic.de','free');
if (($d_eu != '') || ($d_all != '') ) showDomainResult($domainbase.".eu",'whois.eu','FREE');
if (($d_com != '') || ($d_all != '') ) showDomainResult($domainbase.".com",'whois.crsnic.net','No match for');
            if (($d_net != '') || ($d_all != '') ) showDomainResult($domainbase.".net",'whois.crsnic.net','No match for');
            if (($d_org != '') || ($d_all != '') ) showDomainResult($domainbase.".org",'whois.publicinterestregistry.net','NOT FOUND');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".info",'whois.afilias.net','not found');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".biz",'whois.nic.biz','not found');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".nu",'whois.nic.nu','not found');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".name",'whois.nic.name','no match');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".ws",'whois.ripe.net','No entries found');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".tv",'whois.nic.tv','no match');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".couk",'whois.nic.uk','no match');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".mobi",'whois.dotmobiregistry.net','is free');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".cc",'whois.domain-registry.nl','is free');
if (($d_nl != '') || ($d_all != '') ) showDomainResult($domainbase.".ca",'whois.cira.ca','is free');

// Flush the buffer as we've got all our results now.
ob_end_flush();
?>
            </table>
          <?php           
        }
    }
?>
            <hr />        </td>
      </tr>
      <tr>
        <td align="center"><span class="pa">Aan de resultaten van de domeinnaamcheck kunnen geen rechten worden ontleend.<br />
          <br />
        </span></td>
      </tr>
    </table> </td>
    <td width="14" height="100%" background="images/laatstenieuws_04.jpg">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="3"><img src="images/laatstenieuws_05.jpg" width="538" height="18" alt="" /></td>
  </tr>
</table>[/code]

Regards
Huggie
If it's code you're using from somewhere else you don't always have much choice unless you're going to re-write it.

So the first command ob_start() says don't output anything!  Everything you come across that's meant to be output, place it into the buffer instead.

Then the ob_end_flush() says dump everything I have in my buffer to the screen.

Regards
Huggie
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.