I'm running Apache 1.3.19/php 4.06 under OpenBSD.
I have 30 virtual domains... all plain html (or w/ little php), some
date functions and mysql queries. 
But one of them has a lot of php. 
It's giving me a strange problem...
Here is index.php
require_once("include/layout.inc"); // HERE IS THE COMMONHEADER
require_once("home.inc"); //THIS IS JUST PLAIN TEXT.
//commonFooter(); // THIS is in include/layout.inc also. COMMENTED NOW.

Simple (the commonHeader / commonFooter idea was taken from php.net
itself) (open source eh?) ;)

Now. This works fine from SOME PLACES, and I mean, from the internal
network and from many places around the globe, but I've found that from
certain places (no pattern found) it will just say, web site found
waiting for reply. (I will paste the commonheader/footer contents
There seems not to be any kind of pattern. From places where this
doesn't work, other sites (from the 30) will work just fine, even

I've found that removing what I will show you on commondeader function
it will work. For testing purposes I Commented out commonFooter.
Functions like print_link, print_image etc. are also on layout.inc (and
they work, because if I comment out Commonheader/footer from index.php,
the home.inc has some of these functions and the page will display

Here is commonHeader. 
If I REMOVE almost everything (unable to find a pattern either) it will
"work". But it doesn’t work like this... as I've said it will say web
site found waiting for reply (tested on IE 5.5 and Lynx from linux, but
lynx from localhost works and my IE from windows98 works either!)

function commonHeader($title="",$dont_enclose=0,$headers_gone=0) {
    global $MYSITE, $MIRRORS, $COUNTRIES, $enclosed;
    global $SIDEBAR_DATA, $prevsearch;

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
if ($title){
echo ": $title";
} else {
echo "www.mydomain.com";}
<link rel="stylesheet" href="/style.css">

<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"
bgcolor="#ffffff" text="#000000" link="#000099" alink="#0000ff"
<a name="TOP"></a>

<table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="100%"
    <td width="40%" style="border-bottom-style: solid;
border-bottom-width: 1">
      <a href="/"><?php print_image('logobig.jpg', 'mydomain.com');
    <td width="60%" style="border-bottom-style: solid;
border-bottom-width: 1">
    <table border="0" cellpadding="0" cellspacing="0"
style="border-collapse: collapse" bordercolor="#111111" width="100%"
      <tr height="30">
        <td width="100%" valign="center" align="right">
        <font size="2" face="Courier New">Buenos Aires, <?php
        $today = date("F j, Y");
        echo $today;?></font></td>
      <tr >
        <td width="100%" VALIGN="bottom" align="right">
    print_link('/cv.php','curriculum vitae',false,'class="small"');
    echo delim();
    print_link('/projects.php', 'projects', false, 'class="small"');
    echo delim();
  <tr height="15">
    <td width="100%" bgcolor="#C0C0C0" colspan="2"
style="border-top-style: solid; border-top-width: 1;
border-bottom-style: solid; border-bottom-width: 1" >&nbsp;</td>
<!-- End Of Paste -->

ANY ideas?????????????????? I am crazy about this... and have no idea
what it could be. There are no firewalling rules on the box (all is
open) and as I've told you... I can access from certain places.. (for
example I go to a friend's dial up account and it works fine but other
ppl tells me it's not working!)

If commonheader is reduced to 
function commonHeader($title="",$dont_enclose=0,$headers_gone=0) {

WORKS!!!!!!! (although as I've told you I haven't found what exactly is

Any help would be appreciated...
Thanks in advance.


Martin Marconcini

"Life must be lived looking forward and can be understood only looking
backward." Soren Kierkegaard

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to